/* SPI-51: PvP turn ring only (ported from Testbot SPI-48 hud_clarity ring).
   The ring sits around the active portrait: green on your turn, orange on
   the opponent's. It replaces the centre turn wording and the SPI-33
   bobbing arrow inside #battle. DexRun boss duels keep their arrow.
   No ghost HP bar, pips, shield facets, NEED chips or low-HP edge. */
#battle .arena-hud > .hcl-ring{
  position:absolute;z-index:4;pointer-events:none;display:none;border-radius:50%;box-sizing:border-box;
  --hcl-frac:360deg;--hcl-col:#7cff38;--hcl-ring-pad:6px;--hcl-ring-w:4px;
  background:conic-gradient(var(--hcl-col) var(--hcl-frac),rgba(255,255,255,.14) 0);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - var(--hcl-ring-w)),#000 calc(100% - var(--hcl-ring-w) + .5px));
          mask:radial-gradient(farthest-side,transparent calc(100% - var(--hcl-ring-w)),#000 calc(100% - var(--hcl-ring-w) + .5px));
}
#battle .arena-hud > .hcl-ring.on{display:block}
#battle .arena-hud > .hcl-ring.opp{--hcl-col:#ffb04a}
#battle .arena-hud > .hcl-ring.red{--hcl-col:#ff3b3b}
#battle .arena-hud > .hcl-ring.red.hcl-anim{animation:hclRingRed .5s ease-in-out infinite alternate}
@keyframes hclRingRed{from{opacity:1}to{opacity:.45}}
html.fx-off #battle .arena-hud > .hcl-ring{animation:none!important}
@media (prefers-reduced-motion:reduce){
  #battle .arena-hud > .hcl-ring{animation:none!important}
}

/* The turn ring replaces the SPI-33 bobbing turn arrow in every PvP mode
   and pack. The arrow lives inside #battle on pvp.html; DexRun boss duels
   are outside #battle and keep it. Short landscape phones get a thicker
   6px ring (layout unchanged: it is an absolutely placed overlay). */
html #battle .dexa-turn-icon.dexa-turn-icon,
html #battle .dexa-turn-icon.dexa-turn-icon.on{display:none!important}
@media (max-height:520px) and (min-width:560px) and (orientation:landscape){
  #battle .arena-hud > .hcl-ring{--hcl-ring-pad:10px;--hcl-ring-w:6px}
}

/* Centre turn wording (#status "IS THINKING", #fx "Waiting for opponent")
   is cleared in PvP; collapse the empty slots so they cannot cover a fighter. */
#battle .pve-parity-arena > .arena-notifications > #fx:empty,
#battle .pve-parity-arena > .arena-notifications > #status:empty{
  display:none!important;
  min-height:0!important;
}
