/* ASTERVEIL: Wordbound — pixel RPG enhancement */
.gender-options{display:flex;gap:10px;margin:14px 0 8px}.gender-options button{flex:1;padding:10px}.creator-preview{min-height:190px;display:grid;place-items:center;background:radial-gradient(ellipse at center,#394766,#111a31 68%);border:1px solid #67779866;border-radius:18px;margin:12px 0 18px;overflow:hidden}.creator-preview .hero-sprite{width:140px;height:170px}.classgrid .choice{min-height:142px}.classgrid .hero-sprite{width:100%;height:110px;margin:0 auto 4px}.classgrid .choice strong{font-size:14px}.classgrid .choice small{font-size:11px}
.hero-sprite{background-image:url('assets/heroes.webp');background-size:300% 200%;background-repeat:no-repeat;background-position:50% 0%;image-rendering:auto;flex-shrink:0}.hero-sprite.ascended{background-image:url('assets/heroes-ascended.webp')}.monster-sprite{width:100%;height:100%;background:url('assets/monsters.webp') 0% center/400% 100% no-repeat;image-rendering:auto}.portrait-stage{height:300px;background:radial-gradient(circle at 48% 40%,#4d446d,#1b2a4b 59%,#10172c);border:1px solid #967d91;display:grid;place-items:center}.portrait-aura{position:absolute;width:210px;height:210px;top:12%;border-radius:50%;background:radial-gradient(circle,#f9d68877,transparent 68%);filter:blur(9px);animation:breathe 3s ease-in-out infinite}.portrait-stage .portrait-sprite{position:relative;z-index:1;width:215px;height:285px;transition:filter .4s}.portrait-stage .badge{z-index:3}.portrait-stage .hero-sprite.ascended{filter:drop-shadow(0 0 14px #f3c97a)}
.battle-stage{height:260px;position:relative;overflow:hidden;border:2px solid #576989;border-radius:16px;background:linear-gradient(180deg,#192644 0%,#313e6c 55%,#546c66 65%,#233b3e 100%);isolation:isolate}.battle-stage:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 78% 20%,#f6d2949c,transparent 18%),linear-gradient(120deg,transparent 53%,#ffffff0a 53% 54%,transparent 54%),repeating-linear-gradient(90deg,transparent 0 44px,#ffffff09 46px 48px);pointer-events:none}.stage-sky{position:absolute;inset:0;display:flex;justify-content:space-around;color:#f9d992;font-size:24px;opacity:.65;animation:twinkle 4s linear infinite}.stage-combatants{display:flex;justify-content:space-around;align-items:flex-end;position:absolute;inset:28px 12px 24px;z-index:1}.combatant{width:40%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;filter:drop-shadow(0 10px 8px #02061199)}.combatant small{display:block;background:#0a123bbd;color:#fff;border-radius:12px;border:1px solid #ffffff4a;padding:2px 12px;z-index:2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ally .hero-sprite{width:150px;height:184px;max-width:100%;animation:heroIdle 2.3s ease-in-out infinite}.enemy-unit .monster-sprite{width:210px;height:176px;max-width:100%;animation:monsterIdle 2.7s ease-in-out infinite}.stage-ground{position:absolute;bottom:0;left:0;right:0;height:27px;background:repeating-linear-gradient(110deg,#1e4e50 0 36px,#2c5d59 36px 66px);border-top:3px solid #86ae97}.enemy-mark{height:57px;width:57px;display:grid;place-items:center;background:#211c3b;border:1px solid #8d6b9b;border-radius:13px;color:#e8bbf0;font-size:24px}.hit-effect{position:absolute;z-index:3;top:23%;left:59%;width:105px;height:105px;transform:scale(0);border-radius:50%;pointer-events:none;background:radial-gradient(circle,#fff 0 8%,#ffe48f 8% 19%,#ff8b9a99 22%,transparent 65%)}.combat-text{position:absolute;top:8px;left:0;right:0;text-align:center;font-size:18px;font-weight:700;color:#ffe09b;z-index:4;text-shadow:0 2px 8px #000;opacity:0;pointer-events:none}.battle-stage.attack .ally .hero-sprite{animation:attackHero .52s ease-out}.battle-stage.attack .enemy-unit .monster-sprite{animation:monsterHit .55s ease-out}.battle-stage.attack .hit-effect{animation:magicBurst .6s ease-out}.battle-stage.attack .combat-text{animation:combatFlash .9s ease-out}.battle-stage.miss .ally .hero-sprite{animation:heroMiss .5s ease-out}.battle-stage.miss .combat-text{animation:combatFlash .9s ease-out;color:#b3d6ee}
.equipment-list{display:grid;gap:9px}.item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:13px;border:1px solid #536582;background:#101b31}.item-icon{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:10px;background:linear-gradient(140deg,#68527a,#27294d);font-size:26px}.item .item-info{min-width:0;flex:1}.item strong{display:block;font-size:13px}.item small{display:block;font-size:11px;color:#b6c1d3}.item button{padding:7px 10px;font-size:11px;border-radius:10px;border:1px solid #9c8b75;color:#f5dda1;background:#363042;white-space:nowrap}.item button:disabled{color:#8994a9;border-color:#47506c;background:#1c2741}.item.equipped{border-color:#f7cf79;background:#3d3345}.specialization{background:#17213a;border:1px solid #4b5a76;border-radius:13px;margin-top:12px;padding:12px}.specialization strong{display:block;color:#eec986}.specialization small{color:#b7c2d6}.specialization button{width:100%;margin-top:8px}
@keyframes heroIdle{50%{transform:translateY(-5px)}}@keyframes monsterIdle{50%{transform:translateY(-9px) rotate(1deg)}}@keyframes heroMiss{25%{transform:translateX(-10px)}60%{transform:translateX(4px)}}@keyframes attackHero{45%{transform:translate(47px,-12px) scale(1.06)}80%{transform:translate(12px,0)}}@keyframes monsterHit{35%{transform:translateX(18px) rotate(6deg);filter:brightness(2.4)}70%{transform:translateX(-8px)}}@keyframes magicBurst{35%{transform:scale(1.55);opacity:1}100%{transform:scale(2.3);opacity:0}}@keyframes combatFlash{20%{opacity:1;transform:translateY(3px)}90%{opacity:1;transform:translateY(-14px)}100%{opacity:0}}@keyframes twinkle{50%{opacity:.3}}@keyframes breathe{50%{opacity:.8;transform:scale(1.1)}}
@media(max-width:770px){.battle-stage{height:245px}.portrait-stage{height:255px}.portrait-stage .portrait-sprite{width:185px;height:240px}.classgrid .hero-sprite{height:96px}.classgrid .choice{min-height:125px;padding:7px 3px}.ally .hero-sprite{width:120px;height:160px}.enemy-unit .monster-sprite{width:155px;height:153px}}
@media(prefers-reduced-motion:reduce){.hero-sprite,.monster-sprite,.portrait-aura,.stage-sky,.hit-effect,.combat-text{animation:none!important}}

/* Class-specific attacks and tactical one-use hint */
.special-bar{display:flex;align-items:center;gap:12px;margin:12px 0 14px;padding:11px 13px;background:linear-gradient(95deg,#343058,#1c3651);border:1px solid #977bb2;border-radius:13px;flex-wrap:wrap}
.special-button{background:linear-gradient(135deg,#9f8bde,#78c4d2);border:0;color:#121a30;border-radius:10px;padding:10px 13px;font-weight:700;box-shadow:0 0 16px #a38df13b;flex-shrink:0}
.special-button:hover:not(:disabled){filter:brightness(1.14);transform:translateY(-1px)}.special-button:disabled{opacity:.5;cursor:default;box-shadow:none}
.special-description{color:#d7d6eb;font-size:12px;flex:1;min-width:125px}
.attack-projectile{position:absolute;z-index:4;pointer-events:none;left:33%;top:38%;width:78px;height:15px;opacity:0;transform:translate(-10px,0) scale(.4)}
.battle-stage.attack.warrior .attack-projectile{background:linear-gradient(100deg,transparent,#fffad4 38%,#ffd17e 70%,transparent);border-radius:50%;box-shadow:0 0 26px #ffb75c;animation:swordArc .8s ease-out}
.battle-stage.attack.mage .attack-projectile{width:65px;height:65px;top:33%;border-radius:50%;background:radial-gradient(circle,#fff 8%,#a2eaff 20%,#9b70ff 55%,transparent 72%);box-shadow:0 0 40px #a389ff;animation:arcaneShot .85s ease-in-out}
.battle-stage.attack.ranger .attack-projectile{width:110px;height:10px;top:39%;background:linear-gradient(90deg,#7ce5a8,#ffffff 65%,#f5dc74);clip-path:polygon(0 28%,74% 28%,74% 0,100% 50%,74% 100%,74% 72%,0 72%);filter:drop-shadow(0 0 9px #6eeca3);animation:starArrow .72s ease-out}
.battle-stage.cast .attack-projectile{width:84px;height:84px;top:27%;left:21%;border:3px solid #d7b5ff;border-radius:50%;box-shadow:0 0 24px #a78bfa, inset 0 0 22px #9eeeff;background:radial-gradient(circle,#d7b5ff44,transparent 65%);animation:spellCharge 1s ease-out}
.battle-stage.cast .combat-text{animation:combatFlash 1.05s ease-out}
.battle-stage.cast .ally .hero-sprite{animation:castPose .85s ease-out}
.battle-stage.attack.warrior .ally .hero-sprite{animation:swordLunge .85s ease-out}
.battle-stage.attack.mage .ally .hero-sprite{animation:magicPose .85s ease-out}
.battle-stage.attack.ranger .ally .hero-sprite{animation:bowRelease .85s ease-out}
.battle-stage.attack .hit-effect{animation:magicBurst .85s ease-out}
.battle-stage.attack .enemy-unit .monster-sprite{animation:monsterHit .85s ease-out}
@keyframes swordArc{0%{opacity:0;transform:translate(-24px,38px) rotate(-65deg) scale(.2)}25%{opacity:1}62%{opacity:1;transform:translate(120px,-36px) rotate(62deg) scale(1.7)}100%{opacity:0;transform:translate(180px,-68px) rotate(110deg) scale(.7)}}
@keyframes arcaneShot{0%{opacity:0;transform:translate(-20px,12px) scale(.2)}22%{opacity:1;transform:translate(0,0) scale(1)}70%{opacity:1;transform:translate(144px,-10px) scale(1.1)}100%{opacity:0;transform:translate(177px,-20px) scale(1.7)}}
@keyframes starArrow{0%{opacity:0;transform:translateX(-30px) scale(.6)}18%{opacity:1}72%{opacity:1;transform:translateX(176px) scale(1)}100%{opacity:0;transform:translateX(205px) scale(.7)}}
@keyframes swordLunge{0%,100%{transform:translateX(0)}28%{transform:translate(13px,-6px) rotate(-8deg)}55%{transform:translate(54px,-18px) rotate(6deg)}}
@keyframes magicPose{0%,100%{transform:translateY(0)}25%{transform:translateY(-13px) rotate(-4deg);filter:brightness(1.45)}60%{transform:translateY(-17px) rotate(4deg)}}
@keyframes bowRelease{0%,100%{transform:translateX(0)}30%{transform:translateX(-14px) rotate(-9deg)}60%{transform:translateX(8px) rotate(3deg)}}
@keyframes spellCharge{0%{opacity:0;transform:scale(.1) rotate(0deg)}38%{opacity:1;transform:scale(1.3) rotate(150deg)}100%{opacity:0;transform:scale(2) rotate(340deg)}}
@keyframes castPose{0%,100%{transform:translateY(0)}40%{transform:translateY(-12px);filter:brightness(1.7)}}
@media(prefers-reduced-motion:reduce){.battle-stage.attack .attack-projectile,.battle-stage.cast .attack-projectile,.battle-stage.attack .ally .hero-sprite,.battle-stage.cast .ally .hero-sprite{animation:none!important}.battle-stage.attack .attack-projectile,.battle-stage.cast .attack-projectile{opacity:.7}}

/* Full-frame special-move cinematic, with graceful reduced-motion fallback */
.sound-toggle{padding:7px 9px;border-radius:9px;border:1px solid #7585a7;background:#111d37;color:#e5e8fa;font-size:11px;white-space:nowrap}
.sound-toggle:focus-visible,.special-button:focus-visible{outline:3px solid #ffe1a1;outline-offset:3px}
.cutscene{display:none;position:absolute;inset:0;z-index:8;overflow:hidden;isolation:isolate;pointer-events:none;color:white;text-align:center}
.battle-stage.special-cutscene .cutscene{display:block}
.cutscene:before{content:'';position:absolute;inset:-30%;background:radial-gradient(ellipse at 50% 45%,#392665 0%,#090c29 53%,#050819 75%);animation:cinemaZoom 2.3s ease-out both;z-index:-2}
.cutscene.warrior{--spell:#ffd693;--spell2:#ff756b}.cutscene.mage{--spell:#cba8ff;--spell2:#79dfff}.cutscene.ranger{--spell:#91e8ba;--spell2:#ffed91}
.cutscene-starfield{position:absolute;inset:-100%;background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0deg 19deg,var(--spell) 20deg 20.5deg,transparent 22deg 44deg);opacity:.22;animation:cinemaSpin 2.25s linear both}
.cutscene-ring{position:absolute;left:50%;top:47%;width:210px;height:210px;transform:translate(-50%,-50%) scale(.05);border:4px solid var(--spell);border-radius:50%;box-shadow:0 0 13px var(--spell),inset 0 0 24px var(--spell2),0 0 80px var(--spell2);animation:cinemaRing 2.3s ease-in-out both}
.cutscene-ring:before,.cutscene-ring:after{content:'✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧';position:absolute;inset:8px;border:1px dashed var(--spell2);border-radius:50%;color:var(--spell);font-size:12px;line-height:180px;word-spacing:4px;animation:cinemaSpin 2.2s linear both}
.cutscene-flare{position:absolute;left:50%;top:48%;width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 40px 25px var(--spell),0 0 95px 40px var(--spell2);animation:cinemaFlare 2.3s ease-in-out both}
.cutscene-portrait{position:absolute;left:5%;bottom:3%;width:180px;height:205px;filter:drop-shadow(0 0 14px var(--spell));animation:cinemaHero 2.3s cubic-bezier(.2,.7,.2,1) both}
.cutscene-overlay-text{position:absolute;z-index:3;top:22%;left:26%;right:2%;display:flex;align-items:center;flex-direction:column;gap:6px;filter:drop-shadow(0 4px 11px #000)}
.cutscene-overlay-text small{font-size:10px;letter-spacing:2.5px;color:var(--spell);font-weight:700;animation:cinemaText 2.3s ease both}
.cutscene-overlay-text strong{font-family:Marcellus,Georgia,serif;font-size:clamp(19px,3vw,32px);line-height:1.15;letter-spacing:1px;text-shadow:0 2px 4px #000,0 0 24px var(--spell);animation:cinemaTitle 2.3s ease both}
.cutscene-overlay-text span{color:#dfe8f7;letter-spacing:1px;font-size:9px;animation:cinemaText 2.3s ease both}
.cutscene-slash{position:absolute;z-index:2;left:38%;top:51%;height:10px;width:95%;transform:translateX(-100%) rotate(-16deg) scaleX(.15);background:linear-gradient(90deg,transparent,var(--spell2),#fff,var(--spell),transparent);filter:drop-shadow(0 0 22px var(--spell2));animation:cinemaSlash 2.3s ease-in-out both}
.cutscene-flash{position:absolute;inset:0;z-index:5;background:#fff;opacity:0;animation:cinemaFlash 2.3s ease-out both}
.cutscene.mage .cutscene-slash{height:19px;top:48%;border-radius:50%;transform:translateX(-100%) rotate(0) scaleX(.1)}
.cutscene.ranger .cutscene-slash{height:7px;transform:translateX(-100%) rotate(-4deg) scaleX(.15);clip-path:polygon(0 25%,93% 25%,93% 0,100% 50%,93% 100%,93% 75%,0 75%)}
@keyframes cinemaZoom{0%{transform:scale(1.6);filter:brightness(.2)}25%{filter:brightness(1)}100%{transform:scale(1)}}
@keyframes cinemaSpin{from{transform:rotate(0deg)}to{transform:rotate(150deg)}}
@keyframes cinemaRing{0%{transform:translate(-50%,-50%) scale(.04);opacity:0}27%{transform:translate(-50%,-50%) scale(.94);opacity:1}62%{transform:translate(-50%,-50%) scale(1.07);opacity:1}90%,100%{transform:translate(-50%,-50%) scale(3);opacity:0}}
@keyframes cinemaFlare{0%,16%{opacity:0;transform:scale(.1)}42%{opacity:.8;transform:scale(1)}71%{opacity:1;transform:scale(3)}100%{opacity:0;transform:scale(8)}}
@keyframes cinemaHero{0%{opacity:0;transform:translate(-95px,35px) scale(.76)}24%{opacity:1;transform:translate(0,0) scale(1)}70%{opacity:1;transform:translate(12px,-8px) scale(1.07)}100%{opacity:0;transform:translate(95px,-26px) scale(1.18)}}
@keyframes cinemaText{0%,18%{opacity:0;transform:translateY(10px)}30%,78%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-14px)}}
@keyframes cinemaTitle{0%,23%{opacity:0;transform:scale(1.7)}34%,78%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.13)}}
@keyframes cinemaSlash{0%,55%{opacity:0;transform:translateX(-120%) rotate(-16deg) scaleX(.2)}62%{opacity:1}78%{opacity:1;transform:translateX(8%) rotate(-16deg) scaleX(1)}100%{opacity:0;transform:translateX(70%) rotate(-16deg) scaleX(1.4)}}
@keyframes cinemaFlash{0%,65%,85%,100%{opacity:0}73%{opacity:.82}78%{opacity:.1}}
@media(max-width:650px){.cutscene-portrait{width:130px;height:176px;left:-1%}.cutscene-overlay-text{left:24%;top:19%;right:2%}.cutscene-overlay-text strong{font-size:19px}.cutscene-ring{width:155px;height:155px}.cutscene-ring:before,.cutscene-ring:after{line-height:123px;font-size:8px}.sound-toggle{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.cutscene:before,.cutscene-starfield,.cutscene-ring,.cutscene-flare,.cutscene-portrait,.cutscene-overlay-text small,.cutscene-overlay-text strong,.cutscene-overlay-text span,.cutscene-slash,.cutscene-flash{animation:none!important}.cutscene:before{filter:none}.cutscene-ring{transform:translate(-50%,-50%) scale(.9);opacity:.6}.cutscene-portrait,.cutscene-overlay-text small,.cutscene-overlay-text strong,.cutscene-overlay-text span{opacity:1}.cutscene-flash,.cutscene-slash,.cutscene-flare{opacity:0}}

/* Four milestone wardrobe sprite sets, shared by profile, arena and cinematic */
.hero-sprite[data-gear="1"]{background-image:url('assets/heroes.webp')}
.hero-sprite[data-gear="20"]{background-image:url('assets/heroes-traveler.webp')}
.hero-sprite[data-gear="30"]{background-image:url('assets/heroes-moonsteel.webp')}
.hero-sprite[data-gear="40"]{background-image:url('assets/heroes-celestial.webp')}
.item .item-portrait{height:73px;width:63px;flex-shrink:0;border-radius:10px;border:1px solid #9582af;box-shadow:inset 0 0 15px #faf2d133;background-color:#313450;background-size:300% 200%}
.item .item-portrait[data-gear="20"]{background-color:#48415a}.item .item-portrait[data-gear="30"]{background-color:#334768}.item .item-portrait[data-gear="40"]{background-color:#675431}
.portrait-stage.gear-change:after{content:'✦ ✧ ✦';position:absolute;z-index:5;top:20%;left:0;right:0;text-align:center;font-size:38px;letter-spacing:25px;color:#ffdb92;text-shadow:0 0 18px #fff5a5;pointer-events:none;animation:outfitSpark .84s ease-out both}
.portrait-stage.gear-change .portrait-sprite{animation:outfitReveal .8s ease-out both}
@keyframes outfitReveal{0%{filter:brightness(3) drop-shadow(0 0 22px #ffe2a3);transform:scale(.9)}60%{filter:brightness(1.4) drop-shadow(0 0 19px #e9ca91);transform:scale(1.045)}100%{filter:brightness(1);transform:scale(1)}}
@keyframes outfitSpark{0%{opacity:0;transform:translateY(28px) scale(.3)}36%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-45px) scale(1.3)}}
@media(max-width:700px){.item .item-portrait{width:55px;height:66px}.item{gap:8px}}
@media(prefers-reduced-motion:reduce){.portrait-stage.gear-change .portrait-sprite,.portrait-stage.gear-change:after{animation:none!important}}
/* Four fully transparent monster portraits; no rectangular backdrop or white fringe. */
.monster-sprite{background-image:url('assets/monsters-clean.webp')}

/* Creator sprite atlas: 3 columns x 2 rows of square character cells.
   Keep each rendered cell square: using width:100% with a fixed short height
   stretched characters horizontally on desktop. */
.game-vellotale .classgrid .hero-sprite{width:min(100%,136px);height:auto;aspect-ratio:1/1;margin:0 auto 8px;background-size:300% 200%}
.game-vellotale .classgrid .choice{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-height:176px}
.game-vellotale .creator-preview{min-height:250px}
.game-vellotale .creator-preview .hero-sprite{width:220px;height:220px;max-width:90%;aspect-ratio:1/1;background-size:300% 200%}
.game-vellotale .portrait-stage .portrait-sprite{width:265px;height:265px;max-width:95%;aspect-ratio:1/1;background-size:300% 200%}
@media(max-width:770px){.game-vellotale .classgrid .hero-sprite{width:min(100%,105px);height:auto}.game-vellotale .classgrid .choice{min-height:150px}.game-vellotale .creator-preview{min-height:215px}.game-vellotale .creator-preview .hero-sprite{width:190px;height:190px}}
@media(max-width:430px){.game-vellotale .classgrid{gap:6px}.game-vellotale .classgrid .hero-sprite{width:min(100%,90px)}.game-vellotale .classgrid .choice{min-height:136px;padding:8px 3px}.game-vellotale .creator-preview .hero-sprite{width:175px;height:175px}}


/* ASTERVEIL tactical-diorama combat choreography. No gameplay/score changes. */
.battle-stage{perspective:780px;transform-style:preserve-3d}
.battle-stage .stage-combatants{transform:rotateX(3deg);transform-origin:center bottom}
.battle-stage .ally .hero-sprite,.battle-stage .enemy-unit .monster-sprite{will-change:transform,filter}
.battle-stage .battle-action-effect{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.battle-stage .battle-action-effect i{position:absolute;left:67%;top:49%;width:9px;height:9px;border-radius:50%;opacity:0;background:#ffe9a4;box-shadow:0 0 14px #fff1b4}
.battle-stage.attack.warrior .ally .hero-sprite{animation:vtBladeDash .86s cubic-bezier(.2,.75,.25,1) both}
.battle-stage.attack.warrior .hit-effect{top:30%;left:57%;width:135px;height:105px;border-radius:5%;background:linear-gradient(145deg,transparent 39%,#fff9df 43%,#ffe18b 47%,#72e3df 51%,transparent 56%);animation:vtSwordArc .8s ease-out both}
.battle-stage.attack.warrior .battle-action-effect i{animation:vtBladeSparks .85s ease-out both;animation-delay:calc(var(--i)*24ms)}
.battle-stage.attack.mage .ally .hero-sprite{animation:vtMageCast 1s ease-in-out both}
.battle-stage.attack.mage .hit-effect{top:19%;left:56%;width:155px;height:155px;background:radial-gradient(circle,#fff9d8 0 5%,#a5f5e9 15%,#a28bfa88 36%,transparent 68%);animation:vtSpellRing 1s ease-out both}
.battle-stage.attack.mage .battle-action-effect i{background:#a9eefa;animation:vtArcaneOrbit 1s ease-out both;animation-delay:calc(var(--i)*24ms)}
.battle-stage.attack.ranger .ally .hero-sprite{animation:vtArcherRelease .9s ease-out both}
.battle-stage.attack.ranger .hit-effect{top:37%;left:58%;width:130px;height:50px;background:linear-gradient(90deg,transparent,#c7fff6 28%,#fff5b8 60%,transparent);animation:vtArrowStrike .8s ease-out both}
.battle-stage.attack.ranger .battle-action-effect i{background:#b7ffe5;animation:vtArrowSparks .85s ease-out both;animation-delay:calc(var(--i)*18ms)}
.battle-stage.attack .enemy-unit .monster-sprite{animation:vtEnemyImpact .82s ease-out both}
.battle-stage.miss .enemy-unit .monster-sprite{animation:vtEnemyLunge .82s ease-out both}
.battle-stage.miss .ally .hero-sprite{animation:vtHeroRecoil .82s ease-out both}
.battle-stage.miss .battle-action-effect i{left:29%;background:#ff9caf;animation:vtBladeSparks .7s ease-out both}
.battle-stage.attack .combat-text,.battle-stage.miss .combat-text{animation:vtFloatingDamage 1.05s ease-out both}
@keyframes vtBladeDash{0%,100%{transform:translateX(0) scale(1)}18%{transform:translateX(-14px) scale(.97)}42%{transform:translateX(64px) scale(1.12) rotate(-7deg)}65%{transform:translateX(42px) rotate(5deg)}}
@keyframes vtSwordArc{0%{opacity:0;transform:scale(.3) rotate(-55deg)}40%{opacity:1;transform:scale(1.2) rotate(25deg)}100%{opacity:0;transform:scale(1.5) rotate(65deg)}}
@keyframes vtBladeSparks{0%,20%{opacity:0;transform:translate(0,0) scale(.3)}43%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(72px) scale(.1)}}
@keyframes vtMageCast{0%,100%{transform:translateY(0)}28%{transform:translateY(-20px) scale(1.04);filter:drop-shadow(0 0 14px #a6e8ff)}55%{transform:translateY(-16px) scale(1.09);filter:drop-shadow(0 0 24px #c9a9ff)}}
@keyframes vtSpellRing{0%{opacity:0;transform:scale(.15) rotate(0)}35%{opacity:1}100%{opacity:0;transform:scale(1.8) rotate(180deg)}}
@keyframes vtArcaneOrbit{0%{opacity:0;transform:rotate(var(--angle)) translateX(10px)}35%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(110px) scale(.2)}}
@keyframes vtArcherRelease{0%,100%{transform:translateX(0)}25%{transform:translateX(-19px) rotate(-3deg)}48%{transform:translateX(9px) rotate(4deg)}}
@keyframes vtArrowStrike{0%{opacity:0;transform:translateX(-260px) scaleX(.3)}40%{opacity:1}70%{opacity:1;transform:translateX(0) scaleX(1)}100%{opacity:0;transform:translateX(22px) scaleX(.6)}}
@keyframes vtArrowSparks{0%,40%{opacity:0}65%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(55px)}}
@keyframes vtEnemyImpact{0%,100%{transform:translateX(0);filter:none}44%{transform:translateX(16px) rotate(6deg);filter:brightness(1.8) drop-shadow(0 0 12px #fff2bb)}58%{transform:translateX(-8px) rotate(-4deg)}}
@keyframes vtEnemyLunge{0%,100%{transform:translateX(0)}42%{transform:translateX(-64px) scale(1.08)}}
@keyframes vtHeroRecoil{0%,100%{transform:translateX(0);filter:none}50%{transform:translateX(-15px) rotate(-5deg);filter:brightness(1.4)}}
@keyframes vtFloatingDamage{0%{opacity:0;transform:translateY(18px) scale(.7)}22%{opacity:1;transform:translateY(0) scale(1.08)}75%{opacity:1}100%{opacity:0;transform:translateY(-30px)}}
@media(prefers-reduced-motion:reduce){.battle-stage.attack .ally .hero-sprite,.battle-stage.attack .enemy-unit .monster-sprite,.battle-stage.miss .ally .hero-sprite,.battle-stage.miss .enemy-unit .monster-sprite,.battle-stage .battle-action-effect i,.battle-stage .hit-effect{animation:none!important}}
