/* A single pixel grid and palette for the CN Tower and stadium. */
:root{--tower-art-sky:#b5c5c7;--tower-art-distant:#91a9ad;--tower-art-building:#6c8890;--tower-art-window:#ead4a5;--tower-art-ground:#7a9190;--tower-art-moon:#eee3c1}
html[data-theme="dark"]{--tower-art-sky:#243442;--tower-art-distant:#304451;--tower-art-building:#3e5662;--tower-art-window:#d8b980;--tower-art-ground:#34474e;--tower-art-moon:#e4d2a0}
.tower-scene-art{position:absolute;inset:0;width:100%;height:100%}
.pixel-jumper{opacity:0;transform:translate(332px,207px);transform-box:view-box}
.tower-card.jumping .pixel-jumper{animation:pixel-flight 4.3s linear both}
.tower-card.jumping .jumper-2{animation-delay:.42s}.tower-card.jumping .jumper-3{animation-delay:.84s}
.parachute-canopy,.parachute-lines{transform-box:fill-box;transform-origin:center bottom}
.tower-card.jumping .parachute-canopy{animation:canopy-deploy 4.3s steps(5,end) both}
.tower-card.jumping .parachute-lines{animation:lines-deploy 4.3s steps(5,end) both}
@keyframes pixel-flight{0%{opacity:0;transform:translate(329px,207px) scale(.48)}3%{opacity:1}12%{transform:translate(364px,237px) scale(.6)}24%{transform:translate(405px,257px) scale(.72)}45%{transform:translate(478px,280px) scale(.8)}68%{transform:translate(535px,320px) scale(.75)}90%{opacity:1;transform:translate(586px,380px) scale(.65)}100%{opacity:0;transform:translate(603px,430px) scale(.6)}}
@keyframes canopy-deploy{0%,9%{scale:.15 .1;opacity:0}16%{scale:.5 .65;opacity:1}24%,100%{scale:1 1;opacity:1}}
@keyframes lines-deploy{0%,9%{scale:1 .1;opacity:0}24%,100%{scale:1 1;opacity:1}}
/* Five connected two-handed poses: hold, wind-up, swing, contact, recovery. */
.maple-card.chaos .pose-hold{animation:refined-hold 2.5s steps(1,end) both}
.maple-card.chaos .pose-lift{animation:refined-lift 2.5s steps(1,end) both}
.maple-card.chaos .pose-swing{animation:refined-swing 2.5s steps(1,end) both}
.maple-card.chaos .pose-strike{animation:refined-strike 2.5s steps(1,end) both}
@keyframes refined-hold{0%,11%{opacity:1}12%,87%{opacity:0}88%,100%{opacity:1}}
@keyframes refined-lift{0%,11%{opacity:0}12%,39%{opacity:1}40%,100%{opacity:0}}
@keyframes refined-swing{0%,39%{opacity:0}40%,45%{opacity:1}46%,72%{opacity:0}73%,87%{opacity:1}88%,100%{opacity:0}}
@keyframes refined-strike{0%,45%{opacity:0}46%,72%{opacity:1}73%,100%{opacity:0}}
.maple-card.chaos .lumberjack-body{animation:chop-weight 2.5s steps(3,end) both}
@keyframes chop-weight{0%,11%,88%,100%{translate:0 0}20%,39%{translate:0 -1px}46%,70%{translate:-1px 1px}73%{translate:0 0}}
.maple-card.chaos .wood-chips{animation:refined-impact 2.5s steps(5,end) both}
.maple-card.chaos .log-left{animation:refined-split-left 2.5s steps(6,end) both}
.maple-card.chaos .log-right{animation:refined-split-right 2.5s steps(6,end) both}
@keyframes refined-impact{0%,45%{opacity:0;translate:0 0}47%{opacity:1;translate:0 -2px}68%,100%{opacity:0;translate:-14px -25px}}
@keyframes refined-split-left{0%,45%{transform:none}52%,94%{transform:translate(-9px,6px) rotate(-30deg)}100%{transform:none}}
@keyframes refined-split-right{0%,45%{transform:none}52%,94%{transform:translate(9px,6px) rotate(30deg)}100%{transform:none}}
/* Head is the approved shirt cutout; paws and blink give the peek a little life. */
.raccoon-peek{transition:transform .35s steps(6,end);transform:translateY(135px)}
.raccoon-card.lid-open .raccoon-peek{transition:none;animation:curious-peek .95s steps(7,end) both}
@keyframes curious-peek{0%,22%{transform:translateY(135px)}58%{transform:translateY(10px)}80%{transform:translateY(-4px)}100%{transform:translateY(0)}}
.raccoon-blink{opacity:0}.raccoon-card.lid-open .raccoon-blink{animation:curious-blink 5s steps(1,end) 1s infinite}
@keyframes curious-blink{0%,44%,49%,100%{opacity:0}45%,48%{opacity:1}}
.raccoon-paws{opacity:0;transform:translateY(8px);transition:opacity .12s,transform .2s steps(3,end)}
.raccoon-card.lid-open .raccoon-paws{opacity:1;transform:none;transition-delay:.7s}
.raccoon-scene-art .bin-lid{transition:transform .5s steps(7,end)}
.raccoon-card.lid-open .bin-lid{transform:rotate(-82deg)}
@media(prefers-reduced-motion:reduce){.tower-card.jumping .pixel-jumper{animation:none}.maple-card.chaos .chop-pose,.maple-card.chaos .lumberjack-body,.maple-card.chaos .wood-chips,.maple-card.chaos .split-log{animation:none}.maple-card.chaos .pose-hold{opacity:1}.maple-card.chaos .pose-lift,.maple-card.chaos .pose-swing,.maple-card.chaos .pose-strike{opacity:0}.raccoon-card.lid-open .raccoon-peek{animation:none;transform:none}.raccoon-card.lid-open .raccoon-blink{animation:none}.raccoon-peek,.raccoon-paws,.raccoon-scene-art .bin-lid{transition:none}}
/* Keep the complete stage visible on phones, including the stump and landing zone. */
@media(max-width:650px){.scene-tower,.scene-maple,.scene-raccoon{min-height:0;aspect-ratio:8/5}.scene-tower .scene-stamp{display:none}.scene-tower .scene-action,.scene-raccoon .scene-action{bottom:36px}.scene-tower .scene-caption,.scene-raccoon .scene-caption{bottom:12px}.scene-maple .scene-action{top:38px;padding:9px 10px}}
