/* ASTERVEIL V8 — character-specific sprite atlas isolation.
   Original atlas: 3 class columns x 2 gender rows.
   Prevent legacy global center-bottom !important from forcing Meta male
   for every non-animated character, including Iris female ranger.
   Preloaded Luna/Meta/Adam artwork remains authoritative while active. */
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite:not(.has-luna-frames):not(.has-meta-frames):not(.has-adam-frames){
 background-size:300% 200%!important;
 background-repeat:no-repeat!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite[data-avatar-role="warrior"][data-avatar-gender="female"]:not(.has-luna-frames):not(.has-meta-frames):not(.has-adam-frames){
 background-position:0% 0%!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite[data-avatar-role="warrior"][data-avatar-gender="male"]:not(.has-luna-frames):not(.has-meta-frames):not(.has-adam-frames){
 background-position:0% 100%!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite[data-avatar-role="mage"][data-avatar-gender="female"]:not(.has-luna-frames):not(.has-meta-frames):not(.has-adam-frames){
 background-position:50% 0%!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite[data-avatar-role="mage"][data-avatar-gender="male"]:not(.has-luna-frames):not(.has-meta-frames):not(.has-adam-frames){
 background-position:50% 100%!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite[data-avatar-role="ranger"][data-avatar-gender="female"]:not(.has-luna-frames):not(.has-meta-frames):not(.has-adam-frames){
 background-position:100% 0%!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite[data-avatar-role="ranger"][data-avatar-gender="male"]:not(.has-luna-frames):not(.has-meta-frames):not(.has-adam-frames){
 background-position:100% 100%!important;
}
/* Safe fallback when a special frame sequence has not been decoded yet:
   keep the sprite visible until it is replaced atomically. */
body.av-ui-ready #battleStage.battle-command-v3 .stage-combatants .combatant.ally #battleHero.hero-sprite{
 background-color:transparent;
}
