/* The card copy stays still. Only the isolated character stage moves. */
.character-stage.has-bundle-motion{--universe-open:1;--universe-ink:1;--universe-burst:1}
.bundle-universe{position:absolute;inset:0;z-index:0;pointer-events:none;color:var(--accent);overflow:hidden}
.bundle-universe svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;overflow:hidden}
#neon-panel .character-stage.has-bundle-motion>img,.character-stage.has-bundle-motion>img{z-index:2;transform:translateY(calc(12px*(1 - var(--universe-open)))) rotate(calc(-2deg*(1 - var(--universe-open)))) scale(calc(.94 + .06*var(--universe-open)));transform-origin:50% 78%;transition:none}
#neon-panel .maestro .character-stage.has-bundle-motion>img,.maestro .character-stage.has-bundle-motion>img{transform:translateY(calc(9px*(1 - var(--universe-open)))) rotate(calc(2deg*(1 - var(--universe-open)))) scale(calc(.94 + .06*var(--universe-open)))}
#neon-panel .character-stage.has-bundle-motion>.stage-word,.character-stage.has-bundle-motion>.stage-word{z-index:1;transform:translateX(calc(-16px*(1 - var(--universe-open)))) skewX(calc(-8deg*(1 - var(--universe-open))));opacity:calc(.07 + .08*var(--universe-open))}
#neon-panel .character-stage.has-bundle-motion::before,.character-stage.has-bundle-motion::before{transform:rotate(calc(24deg*var(--universe-open))) scale(calc(.8 + .2*var(--universe-open)));opacity:calc(.3 + .7*var(--universe-open))}
#neon-panel .character-stage.has-bundle-motion>.stage-line,.character-stage.has-bundle-motion>.stage-line{transform:rotate(calc(-6deg + 3deg*var(--universe-open))) scaleX(calc(.4 + .6*var(--universe-ink)));transform-origin:50% 50%}
.rift-shadow{stroke-width:25;opacity:calc(.03 + .09*var(--universe-open));stroke-dasharray:500;stroke-dashoffset:calc(500*(1 - var(--universe-ink)))}
.rift-stitch{stroke-width:2.5;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--universe-ink));opacity:.9}
.rift-orbit{stroke-width:1;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--universe-burst));opacity:.5}
.rift-chip{fill:currentColor;stroke-width:1;fill-opacity:.12;opacity:calc(.12 + .75*var(--universe-burst));transform-box:fill-box;transform-origin:center;transform:translate(calc(var(--chip-x)*var(--universe-burst)),calc(var(--chip-y)*var(--universe-burst))) rotate(calc(var(--chip-spin)*var(--universe-burst))) scale(calc(.15 + .85*var(--universe-burst)))}
.chip-0{--chip-x:-22px;--chip-y:-16px;--chip-spin:-25deg}.chip-1{--chip-x:21px;--chip-y:-14px;--chip-spin:32deg}.chip-2{--chip-x:-28px;--chip-y:3px;--chip-spin:18deg}.chip-3{--chip-x:24px;--chip-y:12px;--chip-spin:-30deg}.chip-4{--chip-x:-13px;--chip-y:13px;--chip-spin:23deg}.chip-5{--chip-x:15px;--chip-y:18px;--chip-spin:-17deg}
.eclipse-outline{stroke-width:2;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--universe-ink));opacity:.78;transform-origin:260px 178px;transform:rotate(-90deg) scale(calc(.65 + .35*var(--universe-open)))}
.eclipse-orbits{transform-origin:260px 178px;transform:rotate(calc(-45deg + 85deg*var(--universe-open)));opacity:calc(.15 + .6*var(--universe-open))}
.eclipse-orbits ellipse{stroke-width:1;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--universe-burst))}
.orbit-moon{fill:var(--accent);stroke:none;transform-origin:457px 178px;transform:scale(var(--universe-burst))}
.eclipse-rays{stroke-width:2;transform-origin:260px 178px;transform:rotate(calc(40deg*var(--universe-open))) scale(calc(.75 + .25*var(--universe-burst)));opacity:calc(.08 + .72*var(--universe-burst))}
@media(max-width:760px){.rift-chip{stroke-width:1.5}.eclipse-outline{stroke-width:2.5}}
/* Gold remains decorative; offer text needs stronger contrast on daylight paper. */
:root[data-theme=light] :is(#neon-panel .bundle,.bundle) :is(.coin-bonus,.price){color:var(--theme-text,#152d4a)}
:root[data-theme=light] :is(#neon-panel .bundle,.bundle) .tag{color:var(--theme-accent,#087582)}
:root[data-motion=reduced] .bundle-universe{display:none}
:root[data-motion=reduced] .character-stage.has-bundle-motion>:is(img,.stage-word,.stage-line),:root[data-motion=reduced] .character-stage.has-bundle-motion::before{transform:none!important}
@media(prefers-reduced-motion:reduce){.bundle-universe{display:none}.character-stage.has-bundle-motion>:is(img,.stage-word,.stage-line),.character-stage.has-bundle-motion::before{transform:none!important}}
