/* The artwork contains its own title. Keep the semantic heading for readers. */
body[data-prelaunch] #result[data-vortex-scene] {
 width:100%;max-width:none;min-height:100svh;margin:0;padding:calc(env(safe-area-inset-top,0px) + 22px) max(env(safe-area-inset-right,0px),16px) max(28px,env(safe-area-inset-bottom,0px));text-align:center
}
#result[data-vortex-scene] :is(#daily-result-note:not([data-saved]),#card-name,#welcome-limit:not([data-daily-progress])){
 position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap
}
#result #daily-result-note[data-saved]{margin:.65rem auto 0;color:#ffedc3;font:500 .95rem/1.4 system-ui,sans-serif}
body[data-prelaunch] #result[data-vortex-scene] #card-face{
 display:block;width:auto;height:auto;max-width:min(80%,420px);max-height:61svh;margin:0 auto;
 border-radius:12px;box-shadow:0 10px 30px #0409127a;transform-origin:center;backface-visibility:hidden
}
body[data-prelaunch] #result[data-vortex-scene] #daily-short{margin:16px auto 14px;max-width:34ch;text-wrap:balance;font:500 19px/1.4 Georgia,serif;color:#fff6df;text-shadow:var(--portal-text-shadow)}
body[data-prelaunch] #result[data-vortex-scene] .daily-actions{width:fit-content;max-width:100%;margin:0 auto 14px}
body[data-prelaunch] #result[data-vortex-scene] #welcome-entry{width:auto;max-width:100%;padding-inline:22px}
body[data-daily-intro] {overflow:hidden}
body[data-daily-intro] :is(#home-navigation,#feedback,footer),body[data-daily-intro] #result>:not(#card-face):not(#card-name):not(.daily-wait-skip){visibility:hidden!important;pointer-events:none}
#result .daily-wait-skip{position:fixed;z-index:35;bottom:calc(18px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);min-height:44px;width:max-content;max-width:90%}
body[data-prelaunch] #result[data-vortex-scene=reading] #card-face{visibility:hidden;height:0;margin:0}
#result[data-vortex-scene=reading] #card-name{position:static!important;clip-path:none;width:auto!important;height:auto!important;margin:0 auto 8px!important;white-space:normal}
#result[data-vortex-scene=waiting] #card-face{visibility:hidden}
#result[data-vortex-scene] .daily-test-guidance{margin:0 auto 8px}
#result[data-vortex-scene] .listen-seal{width:44px;height:44px;border:1px solid #ba9f68;border-radius:50%;background:#162333de;color:#f4d592;position:relative;font-size:0}
#result[data-vortex-scene] .listen-seal::before{display:block;width:20px;height:20px;margin:auto;background:currentColor;content:'';mask:url('/ui/volume-2.svg') center/contain no-repeat}
#result[data-vortex-scene] .listen-seal.listen-text::before{mask-image:url('/ui/book-open.svg')}
#result[data-vortex-scene] .listen-seal[aria-pressed=true]::before{mask:none;width:12px;height:12px;border-radius:2px}
#result[data-vortex-scene] .listen-seal:focus-visible::after{content:attr(aria-label);position:absolute;z-index:2;bottom:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:15rem;background:#131d2a;color:#fff2d3;border-radius:4px;padding:3px 8px;font:14px/1.4 system-ui,sans-serif}
#daily-spoken-text:not([hidden]){flex-basis:100%;margin:.5rem auto;max-width:34ch;text-wrap:pretty}
#result[data-vortex-scene=waiting]::before{content:"";position:fixed;inset:0;pointer-events:none;margin:auto;
 width:min(calc(100% - 20px),calc(57svh - 18px));height:auto;aspect-ratio:96/162;max-height:calc(100svh - 32px);
 background:url('/media/vortex-back-detail.png') center/contain no-repeat;border-radius:11px}
#result[data-vortex-scene=waiting][data-daily-deck=Success]::before{background-image:url('/assets/success-back-gold-border.png')}
body:not([data-daily-intro]) #result[data-vortex-scene=waiting]::before{content:none}
#daily-scene-options{border-bottom:1px solid #b79c695e;padding:2px 0 8px;text-align:left}
#daily-scene-options :is(.other-reading-paths,.advice-path,.daily-test-guidance){margin:0;max-width:none;text-align:left}
#daily-scene-options summary{display:inline-flex;min-height:44px;background:transparent;border:0;box-shadow:none;color:#ffe4a2;padding:7px 8px;font:400 15px/1.4 system-ui,sans-serif;text-decoration:none}
#daily-scene-options .advice-path details>div{justify-content:flex-start}
@media(prefers-reduced-motion:no-preference){
 #result[data-vortex-scene=settled][data-vortex-reveal] #daily-short{animation:daily-words .65s ease-out both}
 #result[data-vortex-scene=settled][data-vortex-reveal] .daily-actions{animation:daily-words .4s .9s ease-out both}
 @keyframes daily-words{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
@media(max-height:480px){body[data-prelaunch] #result[data-vortex-scene]{padding-block-start:9px}body[data-prelaunch] #result[data-vortex-scene] #card-face{max-height:54svh}}
@media(max-width:480px) and (orientation:portrait){body[data-prelaunch] #result[data-vortex-scene]{padding-block-start:calc(env(safe-area-inset-top,0px) + 58px)}}
#result .other-reading-paths,#result .result-secondary-actions{display:none}
body[data-prelaunch] #result .daily-actions #welcome-entry{background:#3c3022;border-color:#f4ce77}
body[data-prelaunch] #result[data-vortex-scene] #daily-short{margin:8px auto;font:500 16px/1.35 system-ui,sans-serif}
/* Keep one card in view while the grid request hands off to the face download. */
body:has(#selection:not([hidden]) #backs [data-feedback="pending"] img[src$="success-back-gold-border.png"]),
body:has(#result:not([hidden])[data-daily-deck="Success"]){--oc-turn-back:url('/assets/success-back-gold-border.png')}
body:has(#selection:not([hidden]) #backs [data-feedback="pending"] img[src$="back-wellbeing.jpg"]){--oc-turn-back:url('/media/divine-back-detail.jpg')}
body:has(#welcome-first:not([hidden])[lang="fr"],#welcome-pick:not([hidden])[lang="fr"],#selection:not([hidden]) .daily-pick-cue[lang="fr"],#result:not([hidden]) #daily-result-note[lang="fr"]){--oc-loading-label:"Chargement"}
html.oc-app body:has(
 #selection:not([hidden]) #backs [data-feedback="pending"],
 #welcome-pick:not([hidden]) #welcome-backs .card-back:not(.already-chosen)[data-feedback="pending"],
 #result:not([hidden])[data-vortex-scene="waiting"][data-first-reveal="pending"],
 #welcome-first:not([hidden])[data-face-loading]:not([data-reopened])
){
 --oc-wait-back-width:min(49vw,30svh,218px);
 --oc-wait-back-height:calc(var(--oc-wait-back-width) * 1.6875);
}
html.oc-app body:has(
 #selection:not([hidden]) #backs [data-feedback="pending"],
 #welcome-pick:not([hidden]) #welcome-backs .card-back:not(.already-chosen)[data-feedback="pending"],
 #result:not([hidden])[data-vortex-scene="waiting"][data-first-reveal="pending"],
 #welcome-first:not([hidden])[data-face-loading]:not([data-reopened])
)::after{
 content:"";position:fixed;inset:0;margin:auto;z-index:32;pointer-events:none;
 width:var(--oc-wait-back-width);height:var(--oc-wait-back-height);
 border-radius:8px;background:var(--oc-turn-back,url('/media/vortex-back-detail.png')) center/100% 100% no-repeat;
 box-shadow:0 0 0 1px #e2bf76,0 8px 36px #130e20,0 0 58px #efce7f70;
}
html.oc-app body:has(
 #selection:not([hidden]) #backs [data-feedback="pending"],
 #welcome-pick:not([hidden]) #welcome-backs .card-back:not(.already-chosen)[data-feedback="pending"],
 #result:not([hidden])[data-vortex-scene="waiting"][data-first-reveal="pending"],
 #welcome-first:not([hidden])[data-face-loading]:not([data-reopened])
)>main::before{
 content:var(--oc-loading-label,"Loading");position:fixed;z-index:33;pointer-events:none;
 inset-block-start:calc(50% + var(--oc-wait-back-height) / 2 + 1.1rem);
 inset-inline:0;text-align:center;color:#ffe29b;font:600 clamp(16px,4.2vw,22px)/1.2 Georgia,serif;
 text-shadow:0 1px 2px #090710,0 0 10px #090710;
}
html.oc-app :is(#selection:not([hidden]) #backs,#welcome-pick:not([hidden]) #welcome-backs):has(.card-back:not(.already-chosen)[data-feedback="pending"])::after,
html.oc-app #result[data-vortex-scene="waiting"][data-first-reveal="pending"]::after,
html.oc-app #result[data-vortex-scene="waiting"][data-first-reveal="pending"]::before,
html.oc-app #welcome-first:not([hidden])[data-face-loading]:not([data-reopened])::before{
 content:"";position:fixed;inset:0;width:auto;height:auto;max-height:none;aspect-ratio:auto;
 margin:0;border:0;border-radius:0;background:#100d1bd6;box-shadow:none;animation:none;pointer-events:none;z-index:30;
}
html.oc-app #result[data-vortex-scene="waiting"][data-first-reveal="pending"]::before{content:none}
html.oc-app #welcome-first[data-face-loading] #welcome-first-face{visibility:hidden}
html.oc-app #welcome-first[data-face-loading][data-reopened]::before{
 content:var(--oc-loading-label,"Loading");display:block;margin:1rem auto;color:#ffe29b;font:600 1rem/1.3 Georgia,serif
}
/* A saved face is loading, not being drawn. Reuse the shell's orbit at icon size. */
html.oc-app #result[data-vortex-scene="waiting"][data-first-reveal="no"]::after{width:24px;height:24px;top:calc(50% - 12px);left:calc(50% - 12px);background:#171218;border-width:2px;box-shadow:none}
@media(prefers-reduced-motion:no-preference){
 html.oc-app body:has(
  #selection:not([hidden]) #backs [data-feedback="pending"],
  #welcome-pick:not([hidden]) #welcome-backs .card-back:not(.already-chosen)[data-feedback="pending"],
  #result:not([hidden])[data-vortex-scene="waiting"][data-first-reveal="pending"],
  #welcome-first:not([hidden])[data-face-loading]:not([data-reopened])
 )::after{animation:oc-card-turn 1.15s ease-in-out infinite alternate}
 @keyframes oc-card-turn{
  from{transform:perspective(600px) rotateY(-27deg) translateY(3px)}
  to{transform:perspective(600px) rotateY(27deg) translateY(-3px)}
 }
}
@media(max-width:650px){
 body[data-prelaunch] #result[data-vortex-scene] #card-face{max-height:min(43svh,370px)}
 body[data-prelaunch] #result[data-vortex-scene] .daily-test-guidance{margin-block:0}
}
/* The centered card clears the corner menu without a full-width header gap. */
@media(max-height:700px) and (max-width:480px) and (orientation:portrait){
 body[data-prelaunch] #result[data-vortex-scene]{padding-block-start:calc(env(safe-area-inset-top,0px) + 8px);padding-inline:max(8px,env(safe-area-inset-left,0px)) max(8px,env(safe-area-inset-right,0px))}
 body[data-prelaunch] #result[data-vortex-scene] #card-face{max-height:40svh}
 body[data-prelaunch] #result[data-vortex-scene] #daily-short{margin:6px auto}
}
/* Master geometry: card width determines row height, including on narrow phones. */
body[data-prelaunch] #welcome-pick:not(.five-back-pick) #welcome-backs {
 grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:auto;grid-template-rows:none;
 gap:2px;width:min(100%,max(373px,calc((100svh - var(--pick-chrome) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 256 / 442)));
 height:auto;padding:0;border:0;background:transparent;box-shadow:none;align-content:start;overflow:visible;
}
body[data-prelaunch] #welcome-backs:focus {outline:none}
body[data-prelaunch] #result .daily-actions #welcome-entry[data-simple-next]{grid-column:1/-1;justify-self:center;min-width:55%;height:auto}
body[data-prelaunch] #welcome-pick:not(.five-back-pick) #welcome-backs .card-back {width:100%;height:auto;min-height:0;padding:0;aspect-ratio:256/442;border-radius:3px}
body[data-prelaunch] #welcome-pick:not(.five-back-pick) #welcome-backs .card-back img {width:100%;height:100%;object-fit:contain}
.daily-pick-cue{padding:.3rem 1rem .65rem;text-align:center;color:#fff6df;text-shadow:var(--portal-text-shadow)}
.daily-pick-cue p{margin:0;font:500 .94rem/1.35 system-ui,sans-serif}
#daily-tomorrow{grid-column:1/-1;margin:.65rem auto 0;max-width:38ch;text-align:center;text-wrap:balance;font:400 .9rem/1.4 system-ui,sans-serif;color:#fff1d5;text-shadow:var(--portal-text-shadow)}
#welcome-registration-why{box-sizing:border-box;width:min(calc(100% - 32px),38ch);margin:.65rem auto;color:#fff5df;font:400 1rem/1.5 system-ui,sans-serif}
#welcome-registration-why summary{display:grid;place-items:center;width:fit-content;min-height:44px;margin-inline:auto;padding:.35rem .9rem;border:1px solid #a18550;border-radius:20px;background:#182331;color:#ffe8b1;cursor:pointer;text-decoration:none;list-style:none}
#welcome-registration-why[open] p{margin:.5rem 0;padding:.7rem .85rem;text-align:start;background:#13121d;border-radius:8px}
#welcome-edition-menu{display:none}
body:has(:is(#welcome-first,#welcome-table-screen,#welcome-pick):not([hidden])) #home-menu-panel #welcome-edition-menu{display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-height:44px}
#welcome-card-edition{font:inherit;color:inherit;background:#142630;min-height:40px;border:1px solid #b59a62;border-radius:4px}
body:has(#saved-daily:not([hidden])) footer{display:none}
#saved-daily:not([hidden]){box-sizing:border-box;display:flex;flex-direction:column;align-items:center;width:100%;min-height:100svh;padding:clamp(5rem,25svh,16rem) 1rem max(2rem,env(safe-area-inset-bottom));text-align:center}
#saved-daily>.logo{width:min(75%,20rem);height:clamp(7rem,23svh,14rem);object-fit:contain;margin:0 auto}
.saved-daily-choices{width:min(100%,25rem);margin:clamp(.8rem,4svh,2rem) auto 1.6rem;color:#fff3d9;text-shadow:var(--portal-text-shadow)}
#saved-daily-title{margin:0;font-size:2rem;line-height:1.15}
.saved-daily-choices>p{margin:.4rem 0 1.25rem;font:400 1rem/1.4 system-ui,sans-serif}
.saved-daily-primary{display:grid;justify-items:center;gap:.65rem;margin:auto}
.daily-spread-link{display:inline-flex;justify-content:center;align-items:center;min-height:46px;margin:0;padding:.45rem 1.15rem;text-decoration:none;white-space:nowrap}
.saved-daily-open{min-height:44px;padding:.4rem 1rem;color:#fff0cc;background:transparent;border:0;box-shadow:none;font:500 .95rem/1.2 system-ui,sans-serif}
.daily-products{display:grid;gap:.9rem;width:min(100%,34rem);margin:1rem auto 0;text-align:start}
.daily-products article{display:grid;grid-template-columns:minmax(68px,1fr) minmax(0,2.4fr);align-items:center;gap:clamp(.75rem,4vw,1.25rem);padding:clamp(.7rem,3.5vw,1.25rem);border:1px solid #a789535e;border-radius:12px;background:linear-gradient(145deg,#18293c,#0d1e2e);box-shadow:0 10px 24px #07050c55}
.daily-products .product-art{display:block;width:100%;height:clamp(6rem,28vw,10rem);object-fit:cover;border-radius:6px}
.daily-products .card-art{object-fit:contain}
.daily-products :is(h2,h3){margin:0;color:#ffe9b1;font:500 clamp(1.17rem,5vw,1.6rem)/1.1 Georgia,serif}
.daily-products p{margin:.45rem 0 .85rem;color:#faf0df;font:400 .92rem/1.38 system-ui,sans-serif}
.daily-products .daily-product-link{display:inline-flex;align-items:center;padding:.32rem .86rem;min-height:44px;margin:0;color:#fff0cc;text-decoration:none;white-space:nowrap;font-size:.92rem}
.daily-products .daily-product-link::before{inset-inline-end:-.5rem;inset-block-start:-.45rem;font-size:.68rem}
.daily-products [data-report-award]{grid-column:1/-1}
#saved-daily :is(a,button):focus-visible,.daily-products a:focus-visible{outline:2px solid #ffdf88;outline-offset:3px}
#welcome-first[data-phase="revealed"] #welcome-first-face{cursor:pointer}
body[data-prelaunch] #result[data-vortex-scene]:has(#daily-reveal-main){display:block;padding:0}
#daily-reveal-main{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100svh;padding:calc(48px + env(safe-area-inset-top,0px)) 12px max(16px,env(safe-area-inset-bottom,0px))}
body[data-prelaunch] #result[data-vortex-scene]:not([data-vortex-scene=reading]) #daily-reveal-main #card-face{max-height:72svh;max-width:min(100%,520px);width:auto;height:auto;object-fit:contain;margin:0 auto}
body[data-prelaunch] #result[data-vortex-scene] #daily-reveal-main #daily-short{margin:12px auto;max-width:34ch}
body[data-prelaunch] #result #daily-reveal-main .daily-actions{display:block;width:min(100%,17rem);margin:0 auto}
#daily-reveal-main #welcome-limit[data-daily-progress]{margin:0 auto .65rem;font:500 .9rem/1.3 system-ui,sans-serif;color:#fff3d9;text-shadow:var(--portal-text-shadow)}
body[data-prelaunch] #result #daily-reveal-main #welcome-entry{position:relative;display:flex;align-items:center;justify-content:center;gap:.5em;width:100%;min-height:44px;margin:0;padding:.45rem .75rem}
body[data-prelaunch] #result #daily-reveal-main #welcome-entry[aria-busy=true]{opacity:1;animation:none;cursor:progress}
body[data-prelaunch] #result #daily-reveal-main #welcome-entry[aria-busy=true]::after{content:"";position:static;flex:none;box-sizing:border-box;width:18px;height:18px;margin:0;border:2px solid #9c8257;border-top-color:#fff5da;border-right-color:#fff5da;border-radius:50%;background:none;animation:oc-draw-orbit .85s linear infinite}
@media(prefers-reduced-motion:reduce){body[data-prelaunch] #result #daily-reveal-main #welcome-entry[aria-busy=true]::after{animation:none}}
#daily-reveal-more{display:grid;width:min(calc(100% - 32px),32rem);margin:0 auto;padding:1rem 0 2rem;grid-template-columns:minmax(0,1fr);justify-items:center;gap:.5rem}
body[data-daily-intro] #result>#daily-reveal-main{visibility:visible!important}
body[data-daily-intro] #daily-reveal-main>:not(#card-face):not(#card-name){visibility:hidden!important}
body[data-prelaunch] #welcome-first.guided-reading{box-sizing:border-box;width:100%;max-width:none;min-height:100svh;margin:0 auto;padding:0 0 max(24px,env(safe-area-inset-bottom))}
body[data-prelaunch] #welcome-first.guided-reading #welcome-first-title{display:grid;place-items:center;min-height:56px;padding:env(safe-area-inset-top,0px) 56px 0;margin:0;font-size:1.35rem}
body[data-prelaunch] #welcome-first.guided-reading #welcome-first-face{display:block;width:min(100%,min(640px,53svh));max-width:100%;height:auto;max-height:none;margin:0 auto;object-fit:contain}
@media(max-width:650px) and (orientation:portrait){
 body[data-prelaunch] #welcome-first.guided-reading #welcome-first-face{width:100%;border-radius:0}
}
body[data-prelaunch] #welcome-first.guided-reading #welcome-first-detail{box-sizing:border-box;width:min(100%,38ch);margin:1rem auto;padding:0 16px;text-align:center}
body[data-prelaunch] #welcome-first.guided-reading #welcome-first-meaning{margin:0;text-align:center;text-wrap:balance}
body[data-prelaunch] #welcome-first.guided-reading .reading-actions{width:fit-content;max-width:100%;margin:.75rem auto}
body[data-prelaunch] #welcome-first.guided-reading #welcome-continue{width:auto;min-width:8rem;min-height:44px;margin:0;padding:.45rem 1rem}
#welcome-first[data-spotlight] :is(#welcome-first-detail,.reading-actions,#welcome-pair,#welcome-oracle-more){visibility:hidden}
