/* Keep the original right-hand pair and animated carousel intact. */
.hero-four .hero-quartet{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:visible;opacity:1;visibility:visible;transition:opacity .35s}
.hero-four .hero-quartet>figure{position:absolute;margin:0;max-width:none;filter:none;opacity:1;visibility:visible}
.hero-four .hero-quartet>figure>img{display:block;width:100%;height:auto;max-width:none;filter:none}
/* Canonical e2a4 positions are intentionally fixed in pixels. */
.hero-four .hero-archer{left:auto;width:310px;height:auto;right:230px;top:-20px;z-index:3;filter:drop-shadow(0 8px 5px #47341966);transform-origin:62% 100%;animation:archer-welcome 7s ease-in-out infinite}
.hero-four .hero-mage{left:auto;width:335px;height:auto;right:0;top:-29px;z-index:4;filter:drop-shadow(0 8px 4px #4c271d55);transform-origin:50% 100%;animation:mage-welcome 6.5s ease-in-out infinite}
/* New guests occupy the left, behind the preserved original pair and logo. */
.hero-four .hero-swordswoman{width:340px;height:auto;left:calc(14% + 45px);right:auto;top:-12px;z-index:1;transform-origin:50% 85%;animation:quartet-breathe 6.5s ease-in-out -.8s infinite}
.hero-four .hero-demon{width:300px;height:auto;left:calc(50% - 175px);right:auto;top:-11px;z-index:2;transform-origin:50% 85%;animation:quartet-breathe 7s ease-in-out -3s infinite}
.hero-four .hero-fairy,.hero-four .hero-orb,.hero-four .hero-user-models{display:none!important}
.hero-four[data-hero-scene=classic] .hero-quartet,.hero-four.cast-awaiting .hero-quartet{opacity:0;visibility:hidden}
.hero-four .original-motion{display:block}
.hero-four .hero-scene-controls{display:flex}
.hero-four[data-hero-scene=classic] .original-motion.scene-ready{opacity:1;visibility:visible}
.hero-four.quartet-entering[data-hero-scene=custom] :is(.hero-swordswoman,.hero-demon)>img{animation:cast-materialize 1.6s cubic-bezier(.19,.7,.24,1) both;transform-origin:55% 85%;will-change:transform,opacity,filter}
.hero-four.quartet-entering[data-hero-scene=custom] .hero-swordswoman>img{animation-delay:1.86s;--arrival-x:40px;--arrival-y:38px}.hero-four.quartet-entering[data-hero-scene=custom] .hero-demon>img{animation-delay:1.28s;--arrival-x:70px;--arrival-y:24px}
.quartet-arrival{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;visibility:hidden}.quartet-arrival i{position:absolute;top:0;left:20%;width:25%;height:110%;background:radial-gradient(ellipse,#eaffcd88 0,#d5ecab2a 25%,transparent 62%);opacity:0}.quartet-arrival i:nth-child(2){left:35%;background:radial-gradient(ellipse,#fff7cb99 0,#ffe8a42e 23%,transparent 61%)}.quartet-arrival i:nth-child(3){left:56%;background:radial-gradient(ellipse,#eaffcd88 0,#d5ecab2a 25%,transparent 62%)}.quartet-arrival i:nth-child(4){left:77%;background:radial-gradient(ellipse,#fff7cb99 0,#ffe8a42e 23%,transparent 61%)}.quartet-entering[data-hero-scene=custom] .quartet-arrival{visibility:visible}.quartet-entering .quartet-arrival i{animation:cast-summon-light 1.9s 1.82s both}.quartet-entering .quartet-arrival i:nth-child(2){animation-delay:1.24s}.quartet-entering .quartet-arrival i:nth-child(3){animation-delay:.65s}.quartet-entering .quartet-arrival i:nth-child(4){animation-delay:.08s}
@keyframes quartet-breathe{0%,100%{transform:translate(calc(var(--pointer-x,0px) * .75),calc(var(--pointer-y,0px) * .6)) rotate(-.35deg)}50%{transform:translate(calc(var(--pointer-x,0px) * .75 + 1px),calc(var(--pointer-y,0px) * .6 - 4px)) rotate(.35deg)}}
@keyframes quartet-appear{0%{opacity:0;transform:translateY(25px) scale(.96)}45%{opacity:1}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes quartet-light{0%,100%{opacity:0;transform:scale(.75)}35%{opacity:.8;transform:scale(1)}}
@media(max-width:1100px){.hero-four .hero-archer{width:300px;right:220px;top:-20px}.hero-four .hero-mage{width:320px;right:0;top:-29px}.hero-four .hero-swordswoman{width:310px;left:calc(14% + 35px);top:-3px}.hero-four .hero-demon{width:280px;left:calc(50% - 174px);top:-6px}}
@media(max-width:850px){.hero-four .hero-archer{width:280px;right:180px;top:-20px}.hero-four .hero-mage{width:300px;right:-20px;top:-29px}.hero-four .hero-swordswoman{width:250px;left:calc(10% + 35px);top:8px}.hero-four .hero-demon{width:240px;left:calc(43% - 110px);top:1px}}
@media(max-width:600px){.masthead.hero-four{height:295px}.hero-four .hero-archer{width:202px;right:98px;top:20px}.hero-four .hero-mage{width:230px;right:-25px;top:0}.hero-four .hero-swordswoman{width:185px;left:-55px;top:72px}.hero-four .hero-demon{width:160px;left:30px;top:70px}.quartet-arrival i{left:0;width:45%}.quartet-arrival i:nth-child(2){left:20%}.quartet-arrival i:nth-child(3){left:45%}.quartet-arrival i:nth-child(4){left:70%}}
@media(prefers-reduced-motion:reduce){.hero-four .hero-quartet>figure,.hero-four.quartet-entering[data-hero-scene=custom] :is(.hero-swordswoman,.hero-demon)>img{animation:none;transform:none}.quartet-arrival{display:none}}

/* Keep all four faces visible within the narrow original header. */
@media(max-width:600px){.hero-four .hero-swordswoman{width:120px;left:-10px;top:60px}.hero-four .hero-demon{width:100px;left:40px;top:70px;z-index:5}.hero-four .game-start,.hero-four .game-start:hover{left:10px;bottom:91px;transform:scale(.36);transform-origin:bottom left}}

