.masthead{height:401px}
.hero-art{inset:0 0 53px}
.hero-scenery{background-position:center top;background-size:126% auto;transform:scale(1.08)}
.original-motion{position:absolute;left:0;right:0;top:0;width:100%;aspect-ratio:1012/303;z-index:3;pointer-events:none;opacity:0;transition:opacity .5s}
.original-motion ruffle-player{display:block;width:100%;height:100%;background:transparent!important;pointer-events:none}
/* Override legacy stage-size rules with geometry derived from the live nav. */
.masthead.hero-four .original-motion{width:var(--classic-movie-width,1012px)!important;height:var(--classic-movie-height,303px)!important;top:var(--classic-movie-top,0px)!important;bottom:auto!important;aspect-ratio:1012/303}
[data-hero-scene=classic] .original-motion.scene-ready{opacity:1}
[data-hero-scene=classic] :is(.hero-archer,.hero-mage,.hero-fairy,.hero-orb,.hero-user-models){opacity:0;visibility:hidden}
[data-hero-scene=custom] .original-motion{opacity:0;visibility:hidden}
[data-hero-scene=custom] :is(.hero-archer,.hero-mage,.hero-fairy,.hero-orb){transition:opacity .5s}
.hero-archer{width:410px;right:263px;top:-8px}.hero-mage{width:430px;right:0;top:-25px}
.hero-fairy{height:130px;right:580px;top:100px}
.hero-orb{display:none}
.hero-user-models{position:absolute;inset:0;z-index:2;pointer-events:none;transition:opacity .5s}
.hero-user-model{position:absolute;width:130px;height:190px;bottom:-12px;left:24%;display:block;filter:drop-shadow(0 8px 6px #29322066);transform-origin:50% 90%;animation:cast-breathe 4.6s ease-in-out infinite}
.hero-user-model img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.hero-user-model-1{left:32%;width:120px;height:178px;bottom:-5px;animation-delay:-1.5s}
.hero-user-model-2{left:17%;height:160px;width:125px;bottom:2px;animation-delay:-3s}
.hero-scene-controls{position:absolute;right:16px;bottom:75px;z-index:12;display:flex;align-items:center;gap:3px;background:#1a392c8c;backdrop-filter:blur(4px);padding:3px 8px 3px 13px;border:1px solid #dedbb547;border-radius:30px;box-shadow:0 3px 10px #16291e22}
.hero-scene-controls>span{font:8px Georgia,serif;letter-spacing:1.6px;color:#eee4bd;margin-right:8px}
.hero-scene-controls button{width:26px;height:25px;display:grid;place-items:center;border:0;background:none;padding:0;border-radius:50%}
.hero-scene-controls i{width:6px;height:6px;background:#e0dfc569;border:1px solid #fff0c666;border-radius:50%;transition:transform .2s,background .2s;box-shadow:0 0 0 2px transparent}
.hero-scene-controls button[aria-pressed=true] i{background:#f5e2a2;box-shadow:0 0 0 3px #e4d49033;transform:scale(1.12)}
.hero-scene-controls button:hover i{background:#fff4c6;transform:scale(1.3)}
.hero-scene-controls button:focus-visible{outline:1px solid #e4deb6;outline-offset:0}
@keyframes cast-breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@media(max-width:1100px){.masthead{height:365px}.hero-archer{right:225px;width:365px}.hero-mage{right:-10px;width:390px}.hero-fairy{right:520px;height:115px}.hero-user-model{width:110px;height:170px;left:22%}.hero-user-model-1{left:31%;width:100px;height:156px}.hero-user-model-2{left:16%;width:110px;height:145px}}
@media(max-width:850px){.masthead{height:340px}.hero-art{bottom:66px}.original-motion{width:110%;max-width:none;left:-10%;aspect-ratio:1012/303}.hero-scene-controls{bottom:96px;right:10px}.hero-archer{width:320px;right:175px;top:2px}.hero-mage{width:365px;right:-40px;top:-9px}.hero-fairy{right:460px;height:105px;top:105px}.hero-user-model{height:145px;left:25%;width:95px}.hero-user-model-1{left:34%;height:140px;width:95px}.hero-user-model-2{left:17%;height:135px;width:90px}}
@media(max-width:600px){.masthead{height:328px}.hero-art{bottom:89px}.original-motion{width:155%;left:-55%;top:28px;aspect-ratio:1012/303}.hero-brand{width:158px;left:10px;top:12px}.hero-brand span{font-size:7px}.hero-scenery{background-size:auto 310px}.hero-archer{width:218px;right:104px;top:40px}.hero-mage{width:255px;right:-25px;top:14px}.hero-fairy{display:none}.hero-user-model{left:24%;height:110px;width:70px;bottom:-12px}.hero-user-model-1{left:37%;height:108px;width:70px}.hero-user-model-2{left:15%;height:100px;width:65px}.hero-scene-controls{bottom:101px;right:7px;padding:2px 5px;gap:1px;backdrop-filter:blur(3px)}.hero-scene-controls>span{display:none}.hero-scene-controls button{width:23px;height:23px}.hero-scene-controls i{width:5px;height:5px}.game-start{bottom:81px}}
@media(prefers-reduced-motion:reduce){.original-motion,.hero-user-models{transition:none}.hero-user-model{animation:none}}

/* Entrances run on the artwork inside each floating figure, so the landing
   pose flows directly into the existing idle motion without a transform jump. */
.cast-awaiting :is(.hero-mage,.hero-archer,.hero-fairy,.hero-user-models){opacity:0;visibility:hidden}
.cast-entering[data-hero-scene=custom] :is(.hero-mage>img,.hero-archer>img,.hero-user-model>img){animation:cast-materialize 1.6s cubic-bezier(.19,.7,.24,1) both;transform-origin:55% 85%;will-change:transform,opacity,filter}
.cast-entering .hero-mage>img{animation-delay:.12s!important;--arrival-x:70px;--arrival-y:24px}
.cast-entering .hero-archer>img{animation-delay:.7s!important;--arrival-x:40px;--arrival-y:38px}
.cast-entering .hero-user-model-2>img{animation-delay:1.35s!important;--arrival-x:-26px;--arrival-y:36px}
.cast-entering .hero-user-model-0>img{animation-delay:1.65s!important;--arrival-x:0px;--arrival-y:42px}
.cast-entering .hero-user-model-1>img{animation-delay:1.95s!important;--arrival-x:22px;--arrival-y:35px}
.cast-entering[data-hero-scene=custom] .hero-fairy{animation:fairy-arrival 1.7s 2.1s ease-out both,float 5s 3.8s ease-in-out infinite;transform-origin:center}
.cast-entering .hero-mage :is(.fire-glow,.fire-motes){animation:cast-effect-arrive .9s .9s both}
.cast-entering .hero-archer .bow-glint{animation:cast-effect-arrive .9s 1.4s both}
.cast-arrival-light{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden;visibility:hidden}
[data-hero-scene=custom].cast-entering .cast-arrival-light{visibility:visible}
.cast-arrival-light i{position:absolute;width:36%;height:110%;top:-10%;border-radius:50%;opacity:0;background:radial-gradient(ellipse at center,#fff7cb99 0,#ffe8a42e 23%,transparent 61%);mix-blend-mode:screen}
.arrival-mage{right:-1%}.arrival-archer{right:24%;background:radial-gradient(ellipse at center,#eaffcd88 0,#d5ecab2a 25%,transparent 62%)!important}
.cast-entering .arrival-mage{animation:cast-summon-light 1.9s .08s both}.cast-entering .arrival-archer{animation:cast-summon-light 1.9s .65s both}
.cast-arrival-light>span{position:absolute;left:25%;top:59%;font-size:22px;color:#fff4c0;opacity:0;text-shadow:0 0 12px #d9ef9e;mix-blend-mode:screen}
.cast-arrival-light>span:nth-of-type(2){left:33%;top:55%;font-size:17px}.cast-arrival-light>span:nth-of-type(3){left:40%;top:63%;font-size:26px}
.cast-entering .cast-arrival-light>span{animation:cast-arrival-spark 1.6s 1.3s both}.cast-entering .cast-arrival-light>span:nth-of-type(2){animation-delay:1.65s}.cast-entering .cast-arrival-light>span:nth-of-type(3){animation-delay:1.95s}
.cast-suspended *{animation-play-state:paused!important}
@keyframes cast-materialize{0%{opacity:0;transform:translate(var(--arrival-x,40px),var(--arrival-y,30px)) scale(.88);filter:brightness(5) saturate(0) blur(2px)}22%{opacity:.9;filter:brightness(4) saturate(.15) blur(.3px)}60%{opacity:1;transform:translate(-3px,-3px) scale(1.018);filter:brightness(1.35) saturate(.8) blur(0)}100%{opacity:1;transform:translate(0,0) scale(1);filter:brightness(1) saturate(1) blur(0)}}
@keyframes fairy-arrival{0%{opacity:0;translate:-30px 35px;filter:brightness(4) saturate(0)}30%{opacity:.85;filter:brightness(2)}100%{opacity:1;translate:0 0;filter:drop-shadow(0 6px 3px #40321555)}}
@keyframes cast-effect-arrive{from{opacity:0}to{opacity:1}}
@keyframes cast-summon-light{0%{opacity:0;transform:scale(.65)}30%{opacity:.7}65%{opacity:.3;transform:scale(1.1)}100%{opacity:0;transform:scale(1.3)}}
@keyframes cast-arrival-spark{0%{opacity:0;transform:translateY(30px) scale(.2) rotate(-30deg)}25%{opacity:1}100%{opacity:0;transform:translateY(-45px) scale(.5) rotate(45deg)}}
@media(max-width:600px){.cast-arrival-light>span{left:22%;font-size:15px}.cast-arrival-light>span:nth-of-type(2){left:33%;font-size:13px}.cast-arrival-light>span:nth-of-type(3){left:43%;font-size:16px}.cast-arrival-light i{width:55%}.arrival-archer{right:24%}}
@media(prefers-reduced-motion:reduce){.cast-entering[data-hero-scene=custom] :is(.hero-mage>img,.hero-archer>img,.hero-user-model>img,.hero-fairy){animation:none;opacity:1;transform:none;filter:none}.cast-arrival-light{display:none}}
