/* Choreographed 32-second cycle: pursuit, disappearance, fairy dance, rest. */
.story-parade{position:fixed;inset:90px 0 100px;pointer-events:none;z-index:15;overflow:hidden;contain:layout paint}.story-parade[hidden]{display:none}
.parade-traveller{position:absolute;width:76px;left:0;top:0;color:#648b85;opacity:0;animation:story-chase 32s linear infinite;filter:drop-shadow(0 3px 3px #3a071121)}
.parade-dancer{transform-origin:50% 65%;animation:chase-bounce .6s ease-in-out infinite alternate}.parade-dancer svg{display:block;width:100%;height:auto;overflow:visible}
.traveller-7{width:42px;animation-delay:0s}.traveller-5{width:35px;animation-delay:.35s}.traveller-6{width:35px;color:#a777ad;animation-delay:.7s}.traveller-0{animation-delay:1.25s}.traveller-1{width:68px;animation-delay:2.1s}.traveller-2{width:65px;animation-delay:3s}
.traveller-0 .parade-dancer{animation:monkey-vault 2.4s ease-in-out infinite}.parade-staff{transform-origin:58px 88px;animation:staff-twirl .85s linear infinite}.traveller-1 .parade-dancer{animation:chase-bounce .4s ease-in-out infinite alternate}.traveller-2 .parade-dancer{animation:chase-bounce 1.5s ease-in-out infinite alternate}
.traveller-3,.traveller-4{width:94px;animation-name:story-fairies;animation-delay:15s}.traveller-4{width:86px;animation-delay:17s}.traveller-3 .parade-dancer,.traveller-4 .parade-dancer{animation:fairy-pirouette 4.8s ease-in-out infinite;transform-origin:50% 55%}.traveller-4 .parade-dancer{animation-delay:-1.6s}
.fairy-silk{transform-origin:60px 65px;animation:silk-sway 2.8s ease-in-out infinite alternate}.fairy-silk path{animation:silk-flow 2.8s ease-in-out infinite alternate;stroke-width:5;opacity:.85}.fairy-arms{transform-origin:60px 66px;animation:dance-arms 2.4s ease-in-out infinite alternate}.fairy-skirt{transform-origin:60px 67px;animation:skirt-fan 2.4s ease-in-out infinite alternate}
.parade-toggle{position:fixed;right:8px;bottom:80px;z-index:16;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #d4af7c;border-radius:50%;background:#fff9edeb;color:#6d0f1f;font:22px/1 Georgia,serif;cursor:pointer}.parade-toggle:focus-visible{outline:3px solid #d4af7c;outline-offset:3px}
body:has(dialog[open]) .story-parade,body:has(dialog[open]) .parade-toggle,body:has(input:focus) .story-parade,body:has(select:focus) .story-parade,body:has(textarea:focus) .story-parade{visibility:hidden}.parade-paused *,body:has(dialog[open]) .story-parade *,body:has(input:focus) .story-parade *{animation-play-state:paused!important}
@keyframes story-chase{0%{opacity:0;transform:translate(-110px,24vh) scale(.65)}2%{opacity:1;transform:translate(1vw,24vh) scale(1)}9%{opacity:1;transform:translate(24vw,13vh) rotate(-12deg)}16%{opacity:1;transform:translate(48vw,29vh) rotate(12deg)}23%{opacity:1;transform:translate(72vw,12vh) rotate(-12deg)}29%{opacity:1;transform:translate(90vw,22vh) scale(1)}33%,100%{opacity:0;transform:translate(105vw,15vh) scale(.55)}}
@keyframes story-fairies{0%{opacity:0;transform:translate(94vw,0) scale(.2) rotate(-20deg)}4%{opacity:1;transform:translate(83vw,5vh) scale(1) rotate(-12deg)}12%{opacity:1;transform:translate(62vw,20vh) rotate(12deg)}20%{opacity:1;transform:translate(40vw,8vh) rotate(-12deg)}29%{opacity:1;transform:translate(18vw,25vh) rotate(12deg)}35%,100%{opacity:0;transform:translate(-80px,5vh) scale(.3)}}
@keyframes staff-twirl{to{transform:rotate(360deg)}}
@keyframes monkey-vault{0%,100%{transform:translateY(0) rotate(-12deg)}30%{transform:translateY(-16px) rotate(15deg)}48%{transform:translateY(-22px) rotate(15deg)}75%{transform:translateY(-8px) rotate(348deg)}90%{transform:translateY(0) rotate(348deg)}}
@keyframes chase-bounce{to{transform:translateY(-8px) rotate(10deg)}}
@keyframes fairy-pirouette{0%,100%{transform:translateY(0) rotate(-8deg) scaleX(1)}25%{transform:translateY(-9px) rotate(12deg) scaleX(.85)}48%{transform:translateY(-16px) rotate(-5deg) scaleX(.35)}68%{transform:translateY(-9px) rotate(-15deg) scaleX(-1)}82%{transform:translateY(-4px) rotate(-10deg) scaleX(-.35)}}
@keyframes silk-sway{to{transform:rotate(9deg) translateY(-4px)}}
@keyframes silk-flow{from{d:path('M43 62 C-10 15 4 118 34 84 S109 22 115 72 S82 128 77 110')}to{d:path('M43 62 C-15 103 3 15 34 44 S130 115 115 52 S70 25 77 110')}}
@keyframes dance-arms{from{transform:rotate(-12deg) scaleY(.9)}to{transform:rotate(14deg) scaleY(1.08)}}@keyframes skirt-fan{from{transform:skewX(-8deg) scaleX(.93)}to{transform:skewX(10deg) scaleX(1.12)}}
@media(max-width:600px){.story-parade{inset:76px 0 108px}.parade-traveller{width:44px}.traveller-1,.traveller-2,.traveller-4,.traveller-5,.traveller-6{display:none}.traveller-7{width:27px}.traveller-3{width:58px}.parade-toggle{bottom:65px;width:32px;height:32px;min-height:32px}}
@media(prefers-reduced-motion:reduce){.story-parade,.parade-toggle{display:none}.story-parade *{animation:none!important}}
/* Scene casting supersedes the original fixed character schedule. */
.story-parade{--travel-sign:1}
.story-parade.scene-reverse{--travel-sign:-1}
.story-parade .parade-traveller{display:none;animation:none;opacity:0}
.story-parade .parade-traveller.scene-actor{display:block;animation:scene-route 10s linear both;animation-delay:var(--entry-delay,0s)}
.scene-reverse .parade-traveller{left:auto;right:0}
.scene-clock{position:absolute;width:0;height:0;overflow:hidden;animation:scene-tick 16s linear infinite}
@keyframes scene-tick{from{opacity:0}to{opacity:.001}}
@keyframes scene-route{
 0%{opacity:0;transform:translate(calc(var(--travel-sign)*-110px),24vh) scale(.6)}
 6%{opacity:1;transform:translate(calc(var(--travel-sign)*1vw),24vh) scale(1)}
 27%{opacity:1;transform:translate(calc(var(--travel-sign)*24vw),13vh) rotate(-12deg)}
 48%{opacity:1;transform:translate(calc(var(--travel-sign)*48vw),29vh) rotate(12deg)}
 69%{opacity:1;transform:translate(calc(var(--travel-sign)*72vw),12vh) rotate(-12deg)}
 88%{opacity:1;transform:translate(calc(var(--travel-sign)*90vw),22vh) scale(1)}
 100%{opacity:0;transform:translate(calc(var(--travel-sign)*105vw),15vh) scale(.55)}
}
/* Keep all roles available on mobile; only the current two or three are cast. */
@media(max-width:600px){.story-parade .traveller-1,.story-parade .traveller-2{width:42px}.story-parade .traveller-3,.story-parade .traveller-4{width:58px}.story-parade .traveller-5,.story-parade .traveller-6{width:25px}}
body:has(select:focus) .story-parade *,body:has(textarea:focus) .story-parade *{animation-play-state:paused!important}
/* Larger characters and three brief appearances inside the viewport per scene. */
.story-parade .parade-traveller{width:104px}
.story-parade .traveller-1{width:92px}.story-parade .traveller-2{width:90px}
.story-parade .traveller-3,.story-parade .traveller-4{width:120px}
.story-parade .traveller-5,.story-parade .traveller-6{width:48px}.story-parade .traveller-7{width:56px}
.story-parade .parade-traveller.scene-actor{animation-name:scene-apparition;animation-duration:7.2s}
.scene-clock{animation-duration:12s}
@keyframes scene-apparition{
 0%{opacity:0;transform:translate(calc(var(--travel-sign)*12vw),24vh) scale(.55)}
 4%{opacity:1;transform:translate(calc(var(--travel-sign)*14vw),23vh) scale(1)}
 23%{opacity:1;transform:translate(calc(var(--travel-sign)*38vw),13vh) scale(1) rotate(-10deg)}
 27%{opacity:0;transform:translate(calc(var(--travel-sign)*41vw),12vh) scale(.6)}
 33%{opacity:0;transform:translate(calc(var(--travel-sign)*58vw),32vh) scale(.6)}
 37%{opacity:1;transform:translate(calc(var(--travel-sign)*60vw),31vh) scale(1)}
 56%{opacity:1;transform:translate(calc(var(--travel-sign)*76vw),21vh) scale(1) rotate(10deg)}
 60%{opacity:0;transform:translate(calc(var(--travel-sign)*78vw),20vh) scale(.6)}
 66%{opacity:0;transform:translate(calc(var(--travel-sign)*20vw),9vh) scale(.6)}
 70%{opacity:1;transform:translate(calc(var(--travel-sign)*22vw),10vh) scale(1)}
 92%{opacity:1;transform:translate(calc(var(--travel-sign)*48vw),26vh) scale(1) rotate(-10deg)}
 100%{opacity:0;transform:translate(calc(var(--travel-sign)*52vw),28vh) scale(.55)}
}
@media(max-width:600px){.story-parade .parade-traveller{width:62px}.story-parade .traveller-1,.story-parade .traveller-2{width:58px}.story-parade .traveller-3,.story-parade .traveller-4{width:76px}.story-parade .traveller-5,.story-parade .traveller-6{width:36px}.story-parade .traveller-7{width:40px}}
/* Occasional champagne shooting stars and local firework blooms. */
.parade-sky{position:absolute;inset:0;pointer-events:none}
.parade-meteor{position:absolute;left:0;top:0;width:110px;height:2px;border-radius:50%;opacity:0;background:linear-gradient(90deg,transparent,#d4af7c80,#fff3c9);box-shadow:0 0 5px #f3d9a866;animation:champagne-meteor 24s linear infinite;animation-delay:2s;transform-origin:right center}
.parade-meteor:after{content:'';position:absolute;right:-2px;top:-2px;width:6px;height:6px;background:#fff6da;border-radius:50%;box-shadow:0 0 8px 2px #efcb77}
.meteor-1{top:12%;left:8%;width:85px;animation-duration:29s;animation-delay:14s}
@keyframes champagne-meteor{0%{opacity:0;transform:translate(-12vw,-5vh) rotate(36deg)}1%{opacity:.9;transform:translate(-4vw,1vh) rotate(36deg)}7%{opacity:.9;transform:translate(65vw,45vh) rotate(36deg)}9%,100%{opacity:0;transform:translate(78vw,54vh) rotate(36deg)}}
.parade-firework{position:absolute;left:30%;top:32%;width:0;height:0}
.firework-1{left:72%;top:48%}
.parade-firework i{position:absolute;width:4px;height:4px;border-radius:50%;background:#f3d9a8;box-shadow:0 0 5px #e6bb6b;opacity:0;animation:champagne-burst 28s ease-out infinite;animation-delay:8s}
.parade-firework i:nth-child(3n){background:#fff3d7;width:3px;height:3px}.parade-firework i:nth-child(4n){background:#e3a9b8;box-shadow:0 0 5px #e3a9b866}
.firework-1 i{animation-duration:34s;animation-delay:20s}
@keyframes champagne-burst{0%{opacity:0;transform:translate(0,0) scale(.4)}.7%{opacity:.95;transform:translate(0,0) scale(1.3)}4%{opacity:.9;transform:translate(calc(var(--spark-x)*.75),calc(var(--spark-y)*.65)) scale(1)}9%,100%{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.25)}}
@media(max-width:600px){.parade-meteor{width:74px}.meteor-1{width:58px}.parade-firework{transform:scale(.65)}.parade-firework i:nth-child(3n){display:none}}
