/* BKS Creations | SAGE TAROT V5 | 2026-11-13
 * Visual layer only. V4/V3/78-card interpretation and existing return scripts are untouched.
 * Three user-approved artworks, optimized to WebP and loaded on the corresponding view.
 */
:root{--v5-gold:#f0ca83;--v5-ivory:#fff2d5;--v5-purple:#ba8fe7;--v5-panel:rgba(21,8,36,.9);--v5-line:rgba(243,195,115,.58)}
html{scroll-behavior:smooth}
body{
  color:#fff5ea;
  background-color:#10051c;
  background-image:linear-gradient(180deg,rgba(8,2,18,.24),rgba(15,4,30,.06) 35%,rgba(8,1,15,.36)),url('sage-tarot-v5-main.webp');
  background-position:center center;
  background-size:cover;
  background-attachment:fixed;
  background-repeat:no-repeat;
}
body::before,.tarot-atmosphere{display:none!important}
.tarot-shell{position:relative;isolation:isolate;width:min(1260px,calc(100% - 34px));padding:16px 0 20px;min-height: min(100dvh,850px);display:flex;flex-direction:column;gap:0}
.tarot-shell::before{content:"";position:absolute;inset:-16px -30px 0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(4,1,12,.64),rgba(5,1,15,.24) 36%,transparent 57%,rgba(5,1,15,.18) 82%,rgba(5,1,15,.6))}
.sage-v5-topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;min-height:46px;padding:3px 14px;border:1px solid rgba(240,196,119,.42);border-radius:14px;background:linear-gradient(90deg,rgba(16,5,29,.95),rgba(53,19,65,.85),rgba(16,5,29,.95));box-shadow:0 10px 28px #02000570,inset 0 1px #f7d29d2b}
.sage-v5-topbar .return-link{position:static;justify-self:start;display:inline-flex;align-items:center;gap:6px;border-radius:10px;padding:10px 11px;color:#ffe0a1;letter-spacing:.08em;font:800 11px/1.1 system-ui,sans-serif}
.sage-v5-brand{font:600 20px/1.1 Georgia,serif;letter-spacing:.18em;color:#ffe3aa;text-shadow:0 0 15px #db9c6961;white-space:nowrap}
.sage-v5-brand span{color:#e9bfeb;font-size:.72em;letter-spacing:.27em}
.sage-v5-guide-link{justify-self:end;padding:10px;color:#f4d3c4;text-decoration:none;font:800 11px system-ui,sans-serif;letter-spacing:.11em;border-radius:10px}
.sage-v5-topbar a:hover,.sage-v5-topbar a:focus-visible{color:#fff;border-color:#eecd89;background:#5b285d88;outline:2px solid #e5bd82;outline-offset:2px}
.sage-v5-chapter{margin:0 0 5px;color:#f2c784;font:800 10px/1.2 system-ui,sans-serif;letter-spacing:.3em}
.tarot-header{margin:12px auto 7px;max-width:720px;padding:9px 23px 12px;border:1px solid rgba(231,185,112,.34);border-radius:18px;background:linear-gradient(100deg,rgba(18,4,39,.88),rgba(20,6,42,.65),rgba(18,4,39,.88));box-shadow:0 6px 22px #0006}
.tarot-header .eyebrow{font-size:9px;color:#dbb2e4;letter-spacing:.3em}
.tarot-header h1{font:500 clamp(30px,3.45vw,49px)/1.08 Georgia,serif;color:#ffe2ae;margin:5px 0;text-shadow:0 2px 16px #0b022d,0 0 18px #df98e17d}
.tarot-header .intro{max-width:560px;margin:5px auto 0;color:#f6dfd8;font:400 clamp(12px,1.05vw,14px)/1.4 Georgia,serif}
.sage-v4-spread-choice,.sage-v4-spread-choice:where(*){position:static!important;left:auto!important;top:auto!important;display:flex!important;justify-content:center;align-items:center;gap:5px;width:max-content;max-width:calc(100vw - 22px);margin:5px auto 10px!important;padding:4px!important;border-radius:999px;border:1px solid #ecc486ab;background:rgba(12,3,28,.94);box-shadow:0 6px 22px #030007ad}
.sage-v4-spread-choice span{padding:9px 26px!important;color:#eee0ec;font-size:11px!important;letter-spacing:.1em}
.sage-v4-spread-choice input:checked+span{color:#220c2e;background:linear-gradient(135deg,#e1a65a,#ffe0a1);box-shadow:0 2px 9px #edbd8151}
.question-panel{width:min(660px,94%);margin:0 auto 10px;padding:10px 16px 9px;border-radius:15px;border:1px solid #e8b87e85;background:rgba(14,5,27,.87);box-shadow:0 6px 24px #0009}
.question-panel label{font-size:10px;letter-spacing:.13em;margin:0 0 5px;color:#f7d69a}
.question-panel input{min-height:34px;padding:8px 12px;border-color:#ad8aa483;border-radius:9px;background:#090319b3;font-size:13px}
.question-panel input::placeholder{color:#baadc4}
.question-panel p{font-size:10px;margin:4px 1px 0;color:#e9c7c6}
.reading-table{width:min(830px,100%);max-width:830px;gap:clamp(12px,5vw,92px);margin:auto auto 0;align-items:end;grid-template-columns:repeat(3,minmax(0,1fr))}
.reading-position{min-width:0}
.position-label{margin:0 0 5px;color:#ffe5a7;font:700 12px/1.2 Georgia,serif;letter-spacing:.17em;text-shadow:0 2px 7px #07000a}
.card-stage{width:min(100%,152px);aspect-ratio:7/12;filter:drop-shadow(0 6px 12px #10021ca6)}
.empty-card,.tarot-card{border:2px solid #f5d095;border-radius:10px;box-shadow:0 5px 18px #000a,0 0 20px #b86bba60}
.empty-card{background:repeating-radial-gradient(circle at center,#d39b541e 0 2px,transparent 3px 14px),linear-gradient(155deg,#451b61d9,#11041eea 68%,#090417f0)}
.empty-card span{font-size:36px}.empty-card small{font-size:9px}
.card-back{border-width:4px}
.card-back-mark{font-size:26px}
.card-caption{min-height:36px;margin-top:6px;text-shadow:0 2px 6px #080010}
.card-caption strong{font-size:13px;color:#ffe5c6;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.card-caption span{font-size:10px;color:#eedee1;margin-top:1px}
.sage-v4-one-card .reading-table{max-width:250px!important;grid-template-columns:minmax(0,1fr)!important;gap:0}
.sage-v4-one-card .card-stage{width:min(100%,174px)}
.sage-v4-one-card .position-label{font-size:15px}
.reading-summary{margin:6px auto 0;padding:7px 12px;width:min(690px,96%);border:1px solid #d5a96d6e;border-radius:12px;background:rgba(17,4,28,.87);box-shadow:0 6px 15px #08000b80}
#question-echo{font-size:12px;color:#ffe0a5}
#reading-status{font-size:11px;color:#f5dde8;margin:3px 0 0}
.reading-controls{gap:9px;margin:9px auto 0;max-width:95%}
.reading-controls button{min-width:126px;padding:10px 15px;font-size:10px;letter-spacing:.05em;border-color:#efce90b7;background:#190925ee;color:#ffe0a8;box-shadow:0 6px 15px #0009}
.reading-controls .primary-control{color:#2d1023;background:linear-gradient(125deg,#f8d78f,#d9a163)}
.reading-controls button[hidden]{display:none!important}
.tarot-shell footer{margin:8px auto 0;color:#ebc8b1;font-size:10px;text-shadow:0 1px 5px #000}
/* The original full how-it-works guide remains below the immersive desktop reading room. */
.tarot-editorial-zone{position:relative;z-index:1;padding:26px 14px 50px;background:linear-gradient(180deg,#14061dd9,#11051d)}
/* Reading results: one-card study or three-card celestial library. */
body.free-reading-open{overflow:hidden!important}
.free-reading-stage[hidden]{display:none!important}
body .free-reading-stage:not([hidden]){position:fixed!important;inset:0!important;z-index:220!important;display:grid!important;place-items:center!important;padding:24px!important;overflow:hidden!important;background:linear-gradient(180deg,#080211a3,#0d031bbd),url('sage-tarot-v5-three.webp') center/cover no-repeat!important}
body.sage-v4-one-card .free-reading-stage:not([hidden]){background:linear-gradient(180deg,#080211a8,#0d031bc0),url('sage-tarot-v5-one.webp') center/cover no-repeat!important}
body .free-reading-stage:not([hidden]) .free-reading-panel{position:relative;isolation:isolate;display:grid!important;grid-template-columns:minmax(0,1.58fr) minmax(300px,.95fr);grid-template-areas:'kicker kicker' 'title title' 'question question' 'cardshead overallhead' 'cards overall' 'extras extras' 'actions actions' 'note note';grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto auto;gap:4px 15px;width:min(1280px,100%);max-width:1280px;max-height:calc(100dvh - 48px);margin:0 auto!important;padding:20px 23px 15px!important;overflow-y:auto;overflow-x:hidden;border-radius:22px;border:1px solid #f1bf79aa;background:linear-gradient(130deg,#1b072be8,#18092ee8 52%,#10051deb);box-shadow:0 20px 80px #000d,inset 0 1px #ffdeae33;color:#fff3ed}
.free-reading-panel>.free-reading-close{position:absolute!important;top:14px!important;right:16px!important;z-index:3;cursor:pointer;border:1px solid #e8c189a1;border-radius:999px;background:#31173e;color:#ffe6a7;padding:8px 13px;font-weight:800;letter-spacing:.04em}
.free-reading-panel>.free-reading-kicker{grid-area:kicker!important;justify-self:start;margin:0!important;color:#edc68c;font:800 10px/1.3 system-ui,sans-serif;letter-spacing:.21em}
.free-reading-panel>#free-reading-title{grid-area:title!important;margin:2px 100px 1px 0!important;font:500 clamp(24px,3vw,36px)/1.07 Georgia,serif;color:#ffe0a3;text-shadow:0 1px 16px #c38b7d75}
.free-reading-panel>#free-reading-question{grid-area:question!important;margin:1px 0 7px!important;padding:4px 9px;border-left:2px solid #f0cb8e;color:#edcde7;font-size:12px;line-height:1.4}
.free-reading-panel>#free-reading-question:empty{display:none}
.free-reading-panel>#free-reading-question+.sage-tarot-v3-step-heading{grid-area:cardshead!important}
.free-reading-panel>#free-reading-cards+.sage-tarot-v3-step-heading{grid-area:overallhead!important}
.free-reading-panel>.sage-tarot-v3-step-heading{display:flex!important;align-items:center;gap:9px;margin:3px 0 4px!important;padding:6px 0 0!important;border-top:1px solid #e6b87767}
.free-reading-panel>.sage-tarot-v3-step-heading .sage-tarot-v3-step-number{width:27px;height:27px;flex-basis:27px;font-size:11px;border:1px solid #eec990}
.free-reading-panel>.sage-tarot-v3-step-heading h3{margin:0!important;font:500 18px/1.15 Georgia,serif!important;color:#f7d58f!important}
.free-reading-panel>.sage-tarot-v3-step-heading p{margin:3px 0 0!important;font-size:10px!important;line-height:1.25!important;color:#e1c9db}
.free-reading-panel>#free-reading-cards{grid-area:cards!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:9px;margin:0!important;max-height:min(55vh,490px);overflow-y:auto;overscroll-behavior:contain;padding:2px 4px 8px 1px}
.free-reading-panel>.free-reading-direct{grid-area:overall!important;min-width:0;max-height:min(55vh,490px);overflow:auto;overscroll-behavior:contain;margin:0!important;padding:15px 17px!important;border:1px solid #e5bf8eb5!important;border-radius:14px;background:#270d3cd9;box-shadow:inset 0 0 30px #a76bd31f}
.free-reading-panel>.free-reading-direct .free-reading-direct-label{display:none!important}
.free-reading-panel>#free-reading-cards .free-reading-card{min-width:0;margin:0!important;padding:12px!important;border:1px solid #e4b77a93;border-radius:12px;background:linear-gradient(145deg,#301543dd,#1b0a2fd9);box-shadow:0 4px 14px #05000970}
.free-reading-panel .free-reading-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:9px;min-width:0;margin:0 0 10px}
.free-reading-panel .free-reading-card-image{width:60px;max-width:40%;flex:0 0 60px;border:1px solid #eec993;border-radius:5px;overflow:hidden}
.free-reading-panel .free-reading-card-image img{display:block;width:100%;height:auto;aspect-ratio:7/12;object-fit:cover}
.free-reading-panel .free-reading-card-head>div:last-child{flex:1 1 100px;min-width:0}
.free-reading-panel .free-reading-position{margin:0 0 4px;color:#e6b8f0;font:700 10px system-ui,sans-serif;letter-spacing:.14em}
.free-reading-panel .free-reading-card h3{margin:0 0 5px;font:600 17px/1.1 Georgia,serif;color:#ffe5aa}
.free-reading-panel .free-reading-orientation{margin:0;color:#eecaa1;font-size:10px}
.free-reading-panel .sage-v4-card-note{font-size:12px;line-height:1.5!important;margin:6px 0}
.free-reading-panel .sage-v4-card-depth{margin-top:9px;padding-top:8px;border-color:#eec99360}
.free-reading-panel .sage-v4-card-depth summary{font-size:11px;color:#ffe1a2}
.free-reading-panel .sage-v4-card-depth p{font-size:12px;line-height:1.5!important}
.free-reading-panel>#free-reading-direct{font-size:13px;line-height:1.64!important;max-width:none!important;white-space:pre-line;color:#fff1e4}
.free-reading-panel>.sage-tarot-v3-extra{grid-area:extras!important;margin:4px 0!important;border:1px solid #d7aa7c92;border-radius:12px;background:#1a092bd9}
.free-reading-panel>.sage-tarot-v3-extra>summary{padding:9px 12px!important;font:600 13px/1.2 Georgia,serif!important;color:#ffdfaa}
.free-reading-panel>.sage-tarot-v3-extra[open]{max-height:26vh;overflow-y:auto}
.free-reading-panel>.sage-tarot-v3-extra[open] .free-reading-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px}
.free-reading-panel>.sage-tarot-v3-extra[open] .free-reading-insight{min-width:0}
.free-reading-panel>.sage-tarot-v3-extra p{font-size:13px;line-height:1.55}
.free-reading-panel>.free-reading-actions{grid-area:actions!important;display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin:4px 0 0!important;padding:0!important}
.free-reading-panel>.free-reading-actions button{min-width:130px;margin:0!important;padding:8px 12px!important;border:1px solid #eac388ab;border-radius:999px;color:#ffdfa6;background:#321a42;font-size:11px;font-weight:700;cursor:pointer}
.free-reading-panel>.free-reading-actions button:hover,.free-reading-panel>.free-reading-actions button:focus-visible{background:#71477d;color:#fff;outline:2px solid #f8d294;outline-offset:2px}
.free-reading-panel>.free-reading-note{grid-area:note!important;text-align:center;margin:4px 0 0!important;color:#d6bdd9;font:400 10px/1.3 system-ui,sans-serif}
body.sage-v4-one-card .free-reading-panel{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important}
body.sage-v4-one-card .free-reading-panel>#free-reading-cards{grid-template-columns:minmax(0,1fr)!important}
body.sage-v4-one-card .free-reading-panel .free-reading-card-head{flex-wrap:nowrap}
body.sage-v4-one-card .free-reading-panel .free-reading-card-image{width:105px;max-width:38%;flex-basis:105px}
body.sage-v4-one-card .free-reading-panel .sage-v4-card-note{font-size:14px}
@media(min-width:900px) and (min-height:680px){
  .tarot-shell{min-height:100dvh;max-height:100dvh}
  .tarot-shell .reading-table{margin-top:auto}
}
@media(max-height:760px) and (min-width:900px){
  .tarot-shell{padding-top:7px; padding-bottom:4px}
  .sage-v5-topbar{min-height:37px}.tarot-header{margin:5px auto 5px;padding:6px 16px}.tarot-header h1{font-size:31px}.tarot-header .intro{font-size:11px}
  .sage-v4-spread-choice{margin:3px auto 6px!important}.sage-v4-spread-choice span{padding:6px 22px!important}
  .question-panel{padding:6px 13px;margin-bottom:5px}.question-panel p{display:none}
  .card-stage{width:min(100%,128px)}.sage-v4-one-card .card-stage{width:min(100%,149px)}
  .reading-controls{margin-top:5px}.reading-controls button{padding:8px 13px}
  .tarot-shell footer{margin:3px auto 0}
}
@media(max-width:899px){
  body{background-attachment:scroll;background-position:50% 15%}
  .tarot-shell{min-height:100dvh;width:calc(100% - 22px);padding:10px 0 15px}
  .sage-v5-topbar{grid-template-columns:auto 1fr auto;gap:4px;padding:2px 4px}
  .sage-v5-brand{font-size:17px;justify-self:center;letter-spacing:.1em}
  .sage-v5-topbar .return-link,.sage-v5-guide-link{font-size:10px;padding:10px 6px}
  .tarot-header{padding:8px 12px;margin:10px auto 8px}
  .tarot-header h1{font-size:clamp(29px,7vw,43px)}
  .sage-v4-spread-choice{margin:4px auto 9px!important}
  .question-panel{width:min(660px,100%)}
  .reading-table{gap:8px;margin:20px auto 5px}
  .card-stage{width:min(100%,137px)}
  .position-label{font-size:10px;letter-spacing:.06em}
  .card-caption strong{font-size:11px}.card-caption span{font-size:9px}
  .reading-controls{max-width:100%}
  .reading-controls button{min-width:112px}
  body .free-reading-stage:not([hidden]){padding:10px!important}
  body .free-reading-stage:not([hidden]) .free-reading-panel{display:block!important;max-height:calc(100dvh - 20px);padding:18px 13px!important}
  .free-reading-panel>.free-reading-close{top:11px!important;right:9px!important}
  .free-reading-panel>#free-reading-title{margin-right:73px!important;font-size:27px}
  .free-reading-panel>.sage-tarot-v3-step-heading{margin:11px 0 6px!important}
  .free-reading-panel>#free-reading-cards{max-height:none;overflow:visible;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:10px!important}
  .free-reading-panel .free-reading-card-head{display:block}.free-reading-panel .free-reading-card-image{width:68px;max-width:100%;margin-bottom:8px}
  .free-reading-panel>.free-reading-direct{max-height:none;overflow:visible;margin-bottom:12px!important}
  body.sage-v4-one-card .free-reading-panel .free-reading-card-head{display:flex}
  .free-reading-panel>.sage-tarot-v3-extra[open]{max-height:none}
}
@media(max-width:620px){
  .sage-v5-brand{font-size:14px}.sage-v5-brand span{display:none}
  .tarot-header .intro{font-size:12px}
  .reading-table{gap:5px}.card-stage{width:min(100%,100px)}
  .sage-v4-one-card .card-stage{width:min(100%,169px)}
  .card-caption{min-height:43px}
  .reading-summary{margin-top:11px}
  .free-reading-panel>#free-reading-cards{grid-template-columns:minmax(0,1fr)!important;gap:9px}
  .free-reading-panel .free-reading-card-head{display:flex}
  .free-reading-panel .free-reading-card-image{margin:0}
  .free-reading-panel .sage-v4-card-note{font-size:13px}
  .free-reading-panel>.sage-tarot-v3-extra[open] .free-reading-insights{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .free-reading-stage *, .tarot-shell *{animation:none!important;transition:none!important}
}

/* V5 uses the existing V1 guide functionality, without two competing navigation rows. */
.sage-v5-topbar.sage-v5-with-guides{grid-template-columns:auto auto minmax(0,1fr);gap:14px;position:relative;z-index:100}
.sage-v5-topbar .sage-tarot-guide-system{position:static!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;margin:0!important;z-index:auto!important;width:100%!important;pointer-events:auto}
.sage-v5-topbar .sage-tarot-guide-controls{width:100%;max-width:none;gap:7px}
.sage-v5-topbar .sage-tarot-guide-button{min-height:33px;padding:5px 8px;border-radius:10px;font-size:9px;white-space:normal;background:rgba(43,14,52,.84);box-shadow:none;backdrop-filter:none}
.sage-tarot-ambient-light,.sage-tarot-welcome{display:none!important}
@media(max-width:899px){
  .sage-v5-topbar.sage-v5-with-guides{grid-template-columns:auto 1fr;gap:3px 12px}
  .sage-v5-topbar.sage-v5-with-guides .sage-v5-brand{justify-self:end}
  .sage-v5-topbar.sage-v5-with-guides .sage-tarot-guide-system{grid-column:1/-1}
  .sage-v5-topbar .sage-tarot-guide-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .sage-v5-topbar .sage-tarot-guide-button{padding:7px 3px;min-height:30px;font-size:9px}
}
/* Original 2026 room stylesheet uses !important and absolute placement.
   V5 deliberately resets only presentation properties after it, not any interaction. */
body,body.sage-tarot-experience-v1{
  background-color:#11061e!important;
  background-image:linear-gradient(180deg,rgba(7,1,19,.47),rgba(6,1,17,.18) 35%,rgba(5,1,13,.34) 72%,rgba(7,1,15,.72)),url('sage-tarot-v5-main.webp')!important;
  background-position:center,center center!important;
  background-size:cover,cover!important;
  background-attachment:fixed,fixed!important;
  background-repeat:no-repeat,no-repeat!important;
}
.tarot-shell{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:min(1220px,calc(100% - 24px))!important;max-width:none!important;
  margin:0 auto!important;padding:12px 0 14px!important;
  min-height:100dvh!important;height:auto!important;max-height:none!important;
  background:transparent!important;
}
.sage-v5-topbar{order:1}
.sage-v5-topbar .return-link{
  position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  padding:9px 10px!important;margin:0!important;min-width:0!important;z-index:auto!important;
  border-radius:9px!important;transform:none!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;
}
.tarot-shell>.tarot-header{
  order:2;position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  z-index:2!important;transform:none!important;width:min(720px,96%)!important;
  max-width:720px!important;margin:12px auto 6px!important;padding:7px 20px 10px!important;
}
.tarot-header h1{font-size:clamp(31px,3.25vw,47px)!important;font-weight:500!important;line-height:1.08!important;margin:4px 0 5px!important;color:#ffe0a5!important}
.tarot-shell>.sage-v4-spread-choice{order:3}
.tarot-shell>.question-panel{
  order:4;position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  z-index:2!important;transform:none!important;width:min(660px,94%)!important;
  margin:0 auto 8px!important;padding:10px 14px!important;border-radius:14px!important;
  background:rgba(14,5,29,.89)!important;backdrop-filter:none!important;
}
.question-panel label{display:block!important;margin:0 0 4px!important;font-size:10px!important}
.question-panel input{height:35px!important;border-radius:10px!important;padding:6px 12px!important}
.question-panel p{margin:4px 0 0!important;display:block!important}
.tarot-shell>.reading-table{
  order:5;position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:end!important;
  z-index:3!important;transform:none!important;width:min(800px,96%)!important;
  max-width:800px!important;height:auto!important;gap:clamp(12px,5vw,75px)!important;
  margin:auto auto 4px!important;
}
.reading-position{grid-template-rows:auto auto auto!important}
.card-stage{width:auto!important;height:clamp(180px,27vh,250px)!important;max-width:100%!important;aspect-ratio:7/12!important}
.empty-card,.card-back{
  background: url('/static/tarot/art/sage-tarot-card-back.png') center/cover no-repeat,
    radial-gradient(circle at 50% 44%,#eac98b 0 4px,transparent 5px 11px,#f2c984 12px 13px,transparent 14px),
    repeating-conic-gradient(from 5deg,#ddb06f55 0 4deg,transparent 4deg 18deg),
    linear-gradient(160deg,#6e3170,#1c0d39 66%,#15081f)!important;
  border:2px solid #f3cf86!important;
}
.empty-card::before,.card-back::before{content:''!important;display:block!important;position:absolute;inset:12%;border:1px solid #eec78c91;border-radius:4px}
.empty-card::after,.card-back::after{content:''!important;display:block!important;position:absolute;inset:21%;border:1px solid #f3d89b85;transform:rotate(45deg)}
.tarot-shell>.reading-summary{
  order:6;position:relative!important;inset:auto!important;display:block!important;
  z-index:2!important;width:min(650px,96%)!important;margin:5px auto 2px!important;
  padding:5px 12px!important;background:rgba(11,4,24,.78)!important;
}
.tarot-shell>.reading-controls{
  order:7;position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  display:flex!important;transform:none!important;z-index:4!important;justify-content:center!important;
  width:auto!important;margin:8px auto 0!important;
}
.tarot-shell>.reading-controls button{min-width:124px!important;min-height:34px!important;padding:8px 14px!important;font-size:10px!important}
.tarot-shell>.free-reading-stage{order:9}
.tarot-shell>footer{order:8;position:relative!important;inset:auto!important;transform:none!important;margin:7px auto 0!important}
.sage-tarot-reveal-cue{order:10}
.sage-v4-one-card .reading-table{grid-template-columns:minmax(0,1fr)!important;max-width:260px!important;gap:0!important}
.sage-v4-one-card .reading-table .card-stage{height:clamp(205px,32vh,286px)!important}
@media(min-width:900px) and (min-height:650px){
  html,body{overflow:hidden!important;height:100%!important}
  .tarot-shell{height:100dvh!important;min-height:0!important;max-height:100dvh!important}
}
@media(min-width:900px) and (max-height:780px){
  .tarot-shell{padding:6px 0 4px!important}
  .tarot-shell>.tarot-header{margin:4px auto 3px!important;padding:5px 16px!important}
  .tarot-shell>.tarot-header .intro{display:none}
  .tarot-shell>.question-panel{margin-bottom:3px!important;padding:6px 12px!important}
  .question-panel p{display:none!important}
  .tarot-shell .card-stage{height:clamp(155px,25vh,200px)!important}
  .tarot-shell.sage-v4-one-card .card-stage,.sage-v4-one-card .reading-table .card-stage{height:clamp(185px,29vh,240px)!important}
  .tarot-shell>.reading-controls{margin:4px auto 0!important}
}
@media(max-width:899px){
  html,body{height:auto!important;overflow-y:auto!important}
  body{background-attachment:scroll,scroll!important;background-position:center top,center top!important}
  .tarot-shell{min-height:100dvh!important;padding:9px 0 16px!important}
  .tarot-shell>.tarot-header{margin:9px auto 6px!important;padding:8px!important}
  .tarot-shell>.question-panel{width:100%!important}
  .tarot-shell>.reading-table{width:100%!important;margin:18px auto 4px!important;gap:7px!important}
  .tarot-shell .card-stage{height:clamp(125px,31vw,225px)!important}
  .sage-v4-one-card .reading-table .card-stage{height:245px!important}
  .tarot-shell>.reading-controls{max-width:100%;flex-wrap:wrap}
}
/* Keep status announcements accessible without another visual strip over the approved table art. */
.tarot-shell>.reading-summary{
  position:absolute!important;width:1px!important;height:1px!important;
  margin:-1px!important;padding:0!important;overflow:hidden!important;
  clip-path:inset(50%)!important;border:0!important;
}

/* SAGE-TAROT-V5-CARD-STAGE-HOTFIX-20261113 */
@media (min-width:900px) {
  .tarot-shell > .reading-table {
    width:min(770px,96%)!important;
    max-width:770px!important;
    gap:clamp(22px,2.8vw,42px)!important;
    margin:auto auto 24px!important;
  }
  .tarot-shell > .reading-table .card-stage {
    width:min(100%,174px)!important;
    height:auto!important;
    aspect-ratio:7/12!important;
    margin:0 auto!important;
  }
  .tarot-shell > .reading-table .position-label {
    margin-bottom:8px!important;
  }
  .sage-v4-one-card .reading-table .card-stage {
    width:min(100%,202px)!important;
  }
}
@media (min-width:900px) and (max-height:780px) {
  .tarot-shell > .reading-table {
    margin-bottom:10px!important;
  }
  .tarot-shell > .reading-table .card-stage {
    width:min(100%,145px)!important;
  }
  .sage-v4-one-card .reading-table .card-stage {
    width:min(100%,170px)!important;
  }
}

/* SAGE-TAROT-V5-LIFT-20261113 */
@media (min-width:900px) and (min-height:650px) {
  .tarot-shell > .reading-controls {
    margin-bottom: clamp(48px, 8vh, 72px) !important;
  }
}

/* SAGE-TAROT-V5-CLEAN-CARD-20261113 */

/* Remove decorative overlays covering card artwork */
.tarot-shell > .reading-table .empty-card::before,
.tarot-shell > .reading-table .empty-card::after,
.tarot-shell > .reading-table .card-face.card-back::before,
.tarot-shell > .reading-table .card-face.card-back::after {
    content: none !important;
    display: none !important;
}

/* Larger three-card spread */
@media (min-width:900px) {
    .tarot-shell:not(.sage-v4-one-card)
    > .reading-table .card-stage {
        width: min(100%,194px) !important;
        height: auto !important;
        aspect-ratio: 7/12 !important;
    }
}

/* Size adjustment for shorter desktop screens */
@media (min-width:900px) and (max-height:780px) {
    .tarot-shell:not(.sage-v4-one-card)
    > .reading-table .card-stage {
        width: min(100%,165px) !important;
    }
}
