/* The hollow base stays behind the cards; its front lip masks their origin. */
.cube-interior{filter:none;transition:opacity .65s .25s}.is-open .cube-interior,.is-open .cube-bottom{transform:none}.is-open .cube-top{transform:translateY(-355px)}.is-open .artifact-stage{transform:translateY(40px) scale(.78)}
.artifact-light{background:radial-gradient(ellipse at 50% 80%,#ff213e60,#f1142b17 42%,transparent 70%);top:39%;height:30%;filter:blur(20px)}.artifact-seam{background:radial-gradient(ellipse,#ff183c55,#c509291c 40%,transparent 70%)}.is-open .artifact-seam{opacity:.5}.cube-bottom{transition:opacity .6s}.is-open .cube-bottom{opacity:0}
.triangle-trigger{filter:drop-shadow(5px 7px 1px #000b) drop-shadow(0 0 5px #f9384933)}.triangle-trigger:hover{filter:drop-shadow(4px 5px 2px #000b) drop-shadow(0 0 9px #ff304d88)}.triangle-trigger:focus-visible{outline-color:#ff6075}
.front-occluder{position:absolute;left:50%;top:-60px;width:620px;height:620px;margin-left:-310px;transform-origin:50% 55%;transform:translateY(40px) scale(.78);z-index:6;opacity:0;pointer-events:none;visibility:hidden}.front-occluder img{width:100%;height:100%;object-fit:contain;clip-path:polygon(0 45%,17% 45%,49% 65%,82% 45%,100% 45%,100% 100%,0 100%)}
.is-open .front-occluder{visibility:visible;opacity:1}.cards-emerging .front-occluder{animation:clear-lip 3.4s linear both}
.reveal-scene.is-open .choice-card{animation:none;visibility:hidden;opacity:0;pointer-events:none;transform-origin:50% 50%}
.reveal-scene.is-open.cards-emerging .choice-card{visibility:visible;animation:cavity-exit 3.2s cubic-bezier(.22,.7,.2,1) calc(var(--layer)*.16s) both;pointer-events:auto}
.reveal-scene.is-open .route-cards[inert] .choice-card{pointer-events:none}
@keyframes cavity-exit{0%{opacity:0;transform:translate3d(0,-155px,0) rotateX(66deg) rotateZ(-10deg) scale(.2)}12%{opacity:1;transform:translate3d(0,-200px,0) rotateX(56deg) rotateZ(-8deg) scale(.23)}42%{opacity:1;transform:translate3d(calc(var(--slot)*32px),-350px,0) rotateX(15deg) rotateZ(calc(var(--slot)*-8deg)) scale(.4)}55%{opacity:1;transform:translate3d(calc(var(--slot)*85px),-300px,0) rotateX(0) rotateZ(calc(var(--slot)*-8deg)) scale(.48)}100%{opacity:1;transform:translate3d(calc(var(--slot)*var(--spread)),var(--rest-y,65px),0) rotateX(0) rotateZ(0) scale(1)}}
@keyframes clear-lip{0%,45%{opacity:1}58%,100%{opacity:0}}
.reveal-scene .gift-glow{background:radial-gradient(ellipse,#be18341c,#2c334019 45%,transparent 70%)}.reveal-scene .stage-floor{background:radial-gradient(ellipse,#a4193026,transparent 64%)}.spark-field i{background:#ff6173;box-shadow:0 0 8px #ff254f}.reveal-hero:after{background:radial-gradient(ellipse at 50% 42%,#23303b38,transparent 52%),radial-gradient(ellipse at 50% 66%,#8f102322,transparent 45%),linear-gradient(180deg,#080809,#0b0d10 65%,#09090b)}
@media(max-width:700px){.is-open .artifact-stage{transform:translateY(25px) scale(.72)}.front-occluder{width:480px;height:480px;margin-left:-240px;top:-25px;transform:translateY(25px) scale(.72)}.reveal-scene.is-open.cards-emerging .choice-card{animation-name:cavity-exit-mobile}}
@keyframes cavity-exit-mobile{0%{opacity:0;transform:translate3d(0,-230px,0) rotateX(66deg) rotateZ(-8deg) scale(.18)}12%{opacity:1;transform:translate3d(0,-260px,0) rotateX(55deg) rotateZ(-8deg) scale(.2)}42%{opacity:1;transform:translate3d(0,-370px,0) rotateX(15deg) rotateZ(-5deg) scale(.32)}55%{opacity:1;transform:translate3d(0,-300px,0) rotateX(0) rotateZ(0) scale(.4)}100%{opacity:1;transform:translate3d(0,calc(30px + var(--layer)*450px),0) rotateX(0) rotateZ(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.reveal-scene.is-open.cards-emerging .choice-card{animation:none;opacity:1;visibility:visible;transform:translateX(calc(var(--slot)*var(--spread))) translateY(var(--rest-y,65px))}.is-open .front-occluder{display:none}}
@media(max-width:700px) and (prefers-reduced-motion:reduce){.reveal-scene.is-open.cards-emerging .choice-card{transform:translateY(calc(30px + var(--layer)*450px))}}
