/* Shared HUD animation must scale to ten cards. Pulse one SVG group instead
   of changing the geometry of eight filtered circles on every card/frame. */
.v3-body .v3-card .hud-frame .hud-frame-nodes circle {
    animation: none;
    r: 2.3;
}
.v3-body .v3-card .hud-frame .hud-frame-nodes {
    animation: v3HudGlowPulse 3s ease-in-out infinite;
}
@keyframes v3HudGlowPulse {
    0%, 100% { opacity: .4; }
    50% { opacity: 1; }
}

/* Keep the liquid gradient and moving highlight, but move an already painted
   highlight instead of repainting every HP/mana/XP background continuously. */
.v3-body .v3-card .bar-fill {
    animation: none;
}
.v3-body .v3-card .bar-fill::after {
    background-size: 100% 100%;
    animation: v3BarHighlightSweep 3.2s ease-in-out infinite;
}
@keyframes v3BarHighlightSweep {
    0% { transform: translateX(-120%); }
    60%, 100% { transform: translateX(120%); }
}

/* Registered gradient-angle properties repaint their icons and invalidate
   styles. Animate these decorative borders on interaction; the coloured
   passive/ultimate frames and all availability cues remain visible at rest. */
.v3-body .v3-card .hero-passive-badge:not(:hover):not(:focus-within) .passive-icon,
.v3-body .v3-card .ability-icon-wrapper.ultimate:not(:hover):not(:focus-within) .ability-icon {
    animation: none;
}

/* Idle cards keep their HUD lighting while the active and inspected cards
   animate. Avoid continuously rasterizing filtered SVG strokes on ten cards. */
.v3-arena--large-roster .v3-card:not(.v3-current-actor, :hover, :focus-within) .hud-frame-chase,
.v3-body .v3-arena--large-roster .v3-card:not(.v3-current-actor, :hover, :focus-within) .hud-frame-nodes,
.v3-body .v3-arena--large-roster .v3-card:not(.v3-current-actor, :hover, :focus-within) .bar-fill::after {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .v3-body .v3-card .hud-frame .hud-frame-nodes,
    .v3-body .v3-card .bar-fill::after { animation: none; }
}
