/* Isolated hero motion: real six-frame idles, stable root, no layout animation. */
.hero-scene{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none;background:#26152f}
.hero-scene svg{display:block;width:100%;height:100%;overflow:hidden}
.hero-world{background-image:linear-gradient(90deg,#28152de6 0%,#28152dbb 26%,#28152d00 61%)!important;background-color:transparent!important;pointer-events:none;z-index:-1}
.hero-sprite{width:128px;height:128px;background-repeat:no-repeat;image-rendering:pixelated;background-size:768px auto;animation:sprite-idle 1.5s steps(6,end) infinite;will-change:background-position;transform:scaleX(-1);transform-origin:64px 116px}
.hero-sprite.monk{background-image:url(idle-monk.webp);animation-duration:1.8s;animation-delay:-.3s}
.hero-sprite.mage{background-image:url(idle-mage.webp);animation-duration:2.1s;animation-delay:-.7s}
.hero-sprite.warrior{background-image:url(idle-warrior.webp);animation-duration:1.8s;animation-delay:-1.1s}
.hero-sprite.hunter{background-image:url(idle-hunter.webp);animation-duration:2.2s;animation-delay:-.5s}
@keyframes sprite-idle{from{background-position:0 0}to{background-position:-768px 0}}
.boss-aura{transform-origin:1390px 225px;animation:boss-light 5s ease-in-out infinite;mix-blend-mode:screen}
@keyframes boss-light{0%,100%{opacity:.035;transform:scale(.95)}50%{opacity:.12;transform:scale(1.04)}}
.hero-ember{fill:#ffcd9a;opacity:0;animation:ember-rise 6s linear infinite;pointer-events:none}
.hero-ember:nth-of-type(2n){animation-delay:-2s;animation-duration:7s}.hero-ember:nth-of-type(3n){animation-delay:-4s;animation-duration:8s}
@keyframes ember-rise{0%{opacity:0;transform:translate(0,10px)}15%{opacity:.7}75%{opacity:.4}100%{opacity:0;transform:translate(12px,-65px)}}
.motion-toggle{position:absolute;right:3%;top:22px;z-index:4;background:#38203feb;color:#ffe1c3;border:1px solid #b785a8;border-radius:11px;padding:9px 13px;font:700 11px system-ui;letter-spacing:.04em}
.motion-toggle:hover{background:#684363}.hero.motion-paused *{animation-play-state:paused!important}
.hero.motion-paused .hero-sprite{background-position:0 0!important;animation:none!important}
.hero.motion-paused .boss-aura,.hero.motion-paused .hero-ember{opacity:0;animation:none!important}
.hero.motion-suspended *,.hero.document-hidden *{animation-play-state:paused!important}
@media(max-width:600px){.hero-world{background-image:linear-gradient(180deg,#26152f 0%,#26152fd9 30%,#26152f22 58%,#26152f44 100%)!important;background-color:transparent!important}.motion-toggle{top:auto;bottom:104px;right:16px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.hero-sprite{animation:none!important;background-position:0 0!important}.boss-aura,.hero-ember{animation:none!important;opacity:0!important}}
