/* feature:battle-animations | Work-ID 20260930-battle-move-animations-57f9 (Trello "animação de batalha", zenux).
   Paint-only rules for the move effect canvas, the held status badge, the ▼ of every finished line and the animation setting.
   Nothing here touches a control's box, size or position (UI hover geometry policy): visibility, opacity and animation only. */

/* The canvas the move library (battle_canvas_fx.js) draws on: over the sprites, like the HG/SS particle canvas. */
.fx-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
/* While it draws a move, that move's classic CSS stand-ins give way to it (battle_fx.js quiet / fx-move). */
.battle-stage.fxc-ready .fx.fx-move{visibility:hidden}

/* A status that lands this turn shows its badge (SLP, PAR, PSN, BRN, FRZ) only when its message is shown (battle_fx.js holdBadges). */
.battle-stage .combat-card .combat-status.status-held{visibility:hidden}
/* feature:battle-hp-flicker-learn-order: the solid HUD (responsive-hud.css) forces `.combat-status{visibility:visible!important}` (its "HP" label), which showed a held badge before its
   event. Same box, only its paint waits: a rule that out-ranks it in weight and specificity. */
#battle-dialog .battle-stage .combat-card .combat-status.status-held.status-held.status-held{visibility:hidden!important}

/* The blinking ▼ waits after every finished line, not only after the ones that need a confirm; it hides while a picture plays. */
.battle-controls.playing .battle-message:not(.typing):not(.acting) .battle-message-next{visibility:visible}
.battle-controls .battle-message.acting .battle-message-next{visibility:hidden}

/* Settings: animations off (accessibility). The idle bob and breathing stop like with prefers-reduced-motion. */
html.battle-anim-off .battle-stage.idle .battle-sprite,
html.battle-anim-off .battle-stage.idle .combat-card,
html.battle-anim-off #battle-dialog#battle-dialog .battle-stage.idle .battle-sprite,
html.battle-anim-off #battle-dialog#battle-dialog .battle-stage.idle .combat-card{animation:none!important;translate:none;scale:none}
html.battle-anim-off .fx-canvas,html.battle-anim-off .fx-particles,html.battle-anim-off .gba-canvas{display:none}   /* feature:gba-move-animations: the Emerald animation canvases (battle_gba/) */
@media(prefers-reduced-motion:reduce){.fx-canvas,.gba-canvas{display:none}}
