/* Preview-only 16-frame outfit visual review; production styles remain unaffected. */
#battleHero.av-qa-review-active{position:relative!important;background-image:none!important;background-color:transparent!important;-webkit-mask:none!important;mask:none!important}
#battleHero.av-qa-review-active::before,#battleHero.av-qa-review-active::after{display:none!important;content:none!important}
#battleHero.av-qa-review-active>.av-qa-review-frame{position:absolute!important;inset:0;display:block!important;width:100%!important;height:100%!important;z-index:9;pointer-events:none;image-rendering:auto}
#battleHero.av-qa-review-active>canvas:not(.av-qa-review-frame){display:none!important}

/* Stable Battle stance: do not translate/rotate/bounce the hero when attacking.
   Sprite-sheet pose changes, projectiles and hit VFX remain active.
   Loaded after game-v2 and HD-2D styles to override their attackHero,
   swordLunge, magicPose, bowRelease, vtBladeDash and related movements.
   Do not reset transform: battle alignment uses positioning transforms. */
#battleStage.attack .ally .hero-sprite,
#battleStage.cast .ally .hero-sprite,
.battle-redesign-v2 #battleStage.hd2d-stage.attack .ally .hero-sprite,
.battle-redesign-v2 #battleStage.hd2d-stage.cast .ally .hero-sprite {
  animation: none !important;
  transition: none !important;
}
#battleStage.attack #battleHero.av-qa-review-active,
#battleStage.cast #battleHero.av-qa-review-active,
#battleStage.attack #battleHero.av-qa-review-active > .av-qa-review-frame,
#battleStage.cast #battleHero.av-qa-review-active > .av-qa-review-frame {
  animation: none !important;
  transition: none !important;
}

/* Static idle Battle stance: neither character nor monster floats/bobs.
   Keeps the sprite anchored without overriding transform-based layout.
   Other state animations (attack, miss, victory, defeat) and VFX are unaffected.
   The Luna guard animation, the base heroIdle/monsterIdle, HD-2D idle,
   and redesign vtIdleBreathe/vtIdleHover all lose to this final override. */
#battleStage:not(.attack):not(.miss):not(.cast):not(.battle-victory):not(.battle-defeat) .ally .hero-sprite,
#battleStage:not(.attack):not(.miss):not(.cast):not(.battle-victory):not(.battle-defeat) .enemy-unit .monster-sprite {
  animation: none !important;
  transition: none !important;
}

/* Incoming damage: prevent hero recoil/rocking, preserve damage and enemy VFX. */
#battleStage.miss .ally .hero-sprite,
#battleStage.miss #battleHero.av-qa-review-active,
#battleStage.miss #battleHero.av-qa-review-active > .av-qa-review-frame {
  animation: none !important;
  transition: none !important;
}
/* Unified on-stage body footprint across jobs/genders/outfits.
   Includes QA 16f and existing 12f canvases. Feet remain stage-anchored. */
.battle-redesign-v2 #battleStage .stage-combatants .combatant.ally #battleHero.hero-sprite{
  width:clamp(143px,17vw,210px)!important;
  height:clamp(183px,19vw,220px)!important;
  max-height:calc(100% - 22px);
  transform-origin:center bottom!important;
}
@media(max-width:620px){
 .battle-redesign-v2 #battleStage .stage-combatants .combatant.ally #battleHero.hero-sprite{
  width:clamp(104px,31vw,153px)!important;
  height:clamp(140px,39vw,180px)!important;
 }
}
/* All player classes use a 13.5% smaller desktop body scale, centered at the feet. */
