/* Stable hit targets surround the moving card; revealed artwork never spins. */
.tarot-selection-scene{position:relative;isolation:isolate;width:min(100%,760px);margin:12px auto 22px;padding:48px 30px 50px;overflow:visible;pointer-events:none;perspective:1200px;background:radial-gradient(ellipse at 50% 48%,#7553932d,transparent 68%)}
.tarot-selection-orbit{position:absolute;left:3%;right:3%;height:105px;bottom:25px;border:1px solid #d5b87829;border-radius:50%;transform:rotate(-6deg);box-shadow:0 0 35px #9479c511,inset 0 0 28px #9479c50b}
.tarot-selection-orbit:after{content:"";position:absolute;inset:15px -16px;border:1px solid #bda4ef1a;border-radius:50%;transform:rotate(12deg)}
.tarot-selection-orbit:before{content:"";position:absolute;inset:-30px 35px;background:radial-gradient(ellipse,#c69f531c,transparent 68%);filter:blur(10px)}
.tarot-deck-float{position:relative;transform-style:preserve-3d;animation:tarot-deck-drift 17s ease-in-out infinite;animation-play-state:var(--tarot-deck-state,var(--tarot-motion-state,running))}
.tarot-deck-sway{position:relative;transform-style:preserve-3d;transform-origin:50% 60%;animation:tarot-deck-sway 27s ease-in-out infinite;animation-play-state:var(--tarot-deck-state,var(--tarot-motion-state,running))}
.tarot-selection-scene:hover .tarot-deck-float{--tarot-deck-state:paused}
.tarot-orbit-slots{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:56px;max-width:590px;margin:auto}
.tarot-orbit-slot{position:relative;width:100%;aspect-ratio:2/3;perspective:1000px;pointer-events:auto}
.tarot-orbit-slot:after{content:"";position:absolute;bottom:-19px;left:7%;right:7%;height:18px;border-radius:50%;background:#0006;filter:blur(9px);z-index:-1}
.tarot-orbit-float{position:relative;width:100%;aspect-ratio:2/3;animation:tarot-card-float var(--tarot-float-duration,7s) ease-in-out var(--tarot-float-delay,0s) infinite;animation-play-state:var(--tarot-motion-state,running);transform-style:preserve-3d;pointer-events:none}
.tarot-turntable{position:relative;width:100%;height:100%;transform-style:preserve-3d;animation:tarot-card-turn var(--tarot-turn-duration,22s) linear var(--tarot-turn-delay,0s) infinite;animation-play-state:var(--tarot-motion-state,running);will-change:transform}
.tarot-orbit-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:12px;transform:translateZ(1px)}
.tarot-orbit-rear{transform:rotateY(180deg) translateZ(1px)}
.tarot-gild-edge{position:absolute;inset:-1px;display:block;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none}
.tarot-gild-runner{animation:tarot-gild-run var(--tarot-gild-duration,11s) linear var(--tarot-gild-delay,0s) infinite;animation-play-state:var(--tarot-motion-state,running);filter:drop-shadow(0 0 3px #ffd879a6)}
.tarot-gild-sparks{animation-name:tarot-gild-spark-run;animation-direction:reverse;opacity:.75;stroke-dashoffset:470}
.tarot-sky-content .tarot-orbit-face .tarot-back{width:100%;height:100%;aspect-ratio:2/3;border-radius:12px;box-shadow:0 15px 30px #0008,0 0 25px #d5b8781a;background:radial-gradient(ellipse at 40% 28%,#493464,#141a35 76%);border:1px solid #d5b878;outline:1px solid #d5b87850;outline-offset:-9px;font-size:58px;color:#efdbad}
.tarot-sky-content .tarot-orbit-face .tarot-back small{font-size:7px;letter-spacing:2px;color:#dcc797}
.tarot-sky-content .tarot-orbit-face .tarot-back{position:relative;overflow:hidden;isolation:isolate;box-shadow:0 15px 30px #0008,0 0 28px #d5b87826,inset 0 0 22px #e9c17a0a;background:radial-gradient(ellipse at 40% 28%,#4e386a,#141a35 76%)}
.tarot-orbit-face .tarot-back:before{content:"";position:absolute;inset:-45% -65%;z-index:0;pointer-events:none;background:linear-gradient(108deg,transparent 35%,#c89d4612 43%,#ffecb64d 49%,#fff7d452 50%,#d4a74d20 54%,transparent 63%);animation:tarot-gild-sweep var(--tarot-gild-duration,11s) ease-in-out var(--tarot-gild-delay,0s) infinite;animation-play-state:var(--tarot-motion-state,running);mix-blend-mode:screen}
.tarot-back-sigil,.tarot-orbit-face .tarot-back small{position:relative;z-index:1;text-shadow:0 0 18px #e9c17a35}
.tarot-sky-content .card-flip{position:relative;aspect-ratio:2/3;perspective:1000px;isolation:isolate}
.tarot-sky-content .card-flip:not([aria-expanded=true]){background:transparent;transform:none;box-shadow:none}
.tarot-orbit-slot:hover,.tarot-sky-content .card-flip:is(:hover,:focus-visible),[data-tarot-card-motion][data-tarot-motion-paused=true],[data-tarot-deck-motion][data-tarot-motion-paused=true]{--tarot-motion-state:paused}
.tarot-sky-content .tarot-welcome{background:rgba(10,14,37,.4)}
.tarot-sky-content .tarot-intro{margin-top:10px}
.tarot-sky-content .tarot-spread{padding-block:16px}
@keyframes tarot-card-turn{0%{transform:rotateY(0deg) rotateZ(-3deg)}25%{transform:rotateY(90deg) rotateZ(1deg)}50%{transform:rotateY(180deg) rotateZ(3deg)}75%{transform:rotateY(270deg) rotateZ(-1deg)}100%{transform:rotateY(360deg) rotateZ(-3deg)}}
@keyframes tarot-card-float{0%,100%{transform:translateY(3px)}50%{transform:translateY(-9px)}}
@keyframes tarot-deck-drift{0%,100%{transform:translate3d(0,3px,0)}35%{transform:translate3d(-9px,-9px,0)}70%{transform:translate3d(9px,-5px,0)}}
@keyframes tarot-deck-sway{0%,100%{transform:rotateZ(-2deg) rotateX(3deg) rotateY(-4deg)}50%{transform:rotateZ(2deg) rotateX(-2deg) rotateY(4deg)}}
@keyframes tarot-gild-run{to{stroke-dashoffset:-1000}}
@keyframes tarot-gild-spark-run{to{stroke-dashoffset:-530}}
@keyframes tarot-gild-sweep{0%,14%{transform:translateX(-45%);opacity:0}24%{opacity:.75}46%{transform:translateX(45%);opacity:0}100%{transform:translateX(45%);opacity:0}}
@media(max-width:700px){.tarot-selection-scene{padding:28px 12px 36px}.tarot-orbit-slots{gap:24px;max-width:440px}.tarot-sky-content .tarot-orbit-face .tarot-back{font-size:42px}.tarot-selection-orbit{height:75px}}
@media(max-width:420px){.tarot-orbit-slots{gap:17px}.tarot-sky-content .tarot-orbit-face .tarot-back{font-size:31px}.tarot-sky-content .tarot-orbit-face .tarot-back small{font-size:4px;letter-spacing:.8px}.tarot-selection-scene{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.tarot-orbit-float,.tarot-turntable,.tarot-deck-float,.tarot-deck-sway,.tarot-gild-runner,.tarot-orbit-face .tarot-back:before{animation:none!important;transform:none!important;will-change:auto}.tarot-orbit-face{transform:none}.tarot-orbit-rear{display:none}.tarot-orbit-face .tarot-back:before{opacity:0}}
@media print{.tarot-selection-scene{display:none}.tarot-orbit-float,.tarot-turntable,.tarot-deck-float,.tarot-deck-sway,.tarot-gild-runner,.tarot-orbit-face .tarot-back:before{animation:none!important;transform:none!important;will-change:auto}}
