/* DEXATRON approved global six-move combat artwork (BeanBot TEST).
 * Presentation only: no replacement of DOM IDs, event listeners, state or rules.
 * PvP (including tournaments), PvE and DexRun PvP end-boss all use the same art.
 * Keep native text in each button for assistive technology.
 */
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon),
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon),
#dexrunBossActions > button[data-combat-action]{
 appearance:none!important;
 position:relative!important;display:block!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;min-height:52px!important;
 height:clamp(56px, 10vh, 84px)!important;aspect-ratio:auto!important;
 padding:0!important;border:0!important;border-radius:0!important;
 background:transparent var(--dexa-combat-image) center center/contain no-repeat!important;
 box-shadow:none!important;text-shadow:none!important;
 color:transparent!important;-webkit-text-fill-color:transparent!important;
 font-size:0!important;line-height:0!important;letter-spacing:0!important;
 text-indent:0!important;overflow:visible!important;
 touch-action:manipulation;cursor:pointer;
 transition:filter .15s ease,transform .12s ease,opacity .15s ease!important;
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon),
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon),
#dexrunBossActions > button[data-combat-action]{
 --dexa-combat-image:none;
 --dexa-combat-cost:"";
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon)::after,
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon)::after,
#dexrunBossActions > button[data-combat-action]::after{
 content:var(--dexa-combat-cost);
 position:absolute;right:6%;bottom:7%;z-index:1;
 padding:2px 4px;max-width:60%;
 border:1px solid rgba(255,219,99,.45);border-radius:5px;
 background:rgba(2,7,9,.90);
 color:#ffe68b!important;-webkit-text-fill-color:#ffe68b!important;
 font:800 clamp(8px,1.7vw,11px)/1.1 system-ui,sans-serif!important;
 letter-spacing:.01em;text-indent:0!important;
 pointer-events:none;
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon),
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon),
#dexrunBossActions > button[data-combat-action]:active:not(:disabled){
 transform:scale(.955)!important;filter:brightness(1.14)!important;
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon),
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon),
#dexrunBossActions > button[data-combat-action]:disabled{
 opacity:.72!important;filter:brightness(.92) saturate(.86)!important;
 cursor:not-allowed!important;
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon),
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon),
#dexrunBossActions > button[data-combat-action]:focus-visible{
 outline:2px solid #d7ff9c!important;outline-offset:1px!important;
}
@media(prefers-reduced-motion:reduce){
 #battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon),
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon),
#dexrunBossActions > button[data-combat-action]{transition:none!important}
}

#battle .moves > #strike,
#battleScreen .actions > #strike,
#dexrunBossActions > button[data-combat-action="strike"]{
 --dexa-combat-image:url("/assets/pvp/combat_buttons/combat_strike.png");
 --dexa-combat-cost:"+1 ⚡";
}

#battle .moves > #lightPower,
#battleScreen .actions > #lightPower,
#dexrunBossActions > button[data-combat-action="light_power"]{
 --dexa-combat-image:url("/assets/pvp/combat_buttons/combat_light_power.png");
 --dexa-combat-cost:"2 ⚡";
}

#battle .moves > #ability,
#battleScreen .actions > #special,
#dexrunBossActions > button[data-combat-action="ability"]{
 --dexa-combat-image:url("/assets/pvp/combat_buttons/combat_power_attack.png");
 --dexa-combat-cost:"3 ⚡";
}

#battle .moves > #guard,
#battleScreen .actions > #guard,
#dexrunBossActions > button[data-combat-action="guard"]{
 --dexa-combat-image:url("/assets/pvp/combat_buttons/combat_defend.png");
 --dexa-combat-cost:"+1 ⚡";
}

#battle .moves > #regen,
#battleScreen .actions > #regen,
#dexrunBossActions > button[data-combat-action="regen"]{
 --dexa-combat-image:url("/assets/pvp/combat_buttons/combat_regen.png");
 --dexa-combat-cost:"1 ⚡";
}

#battle .moves > #siphon,
#battleScreen .actions > #siphon,
#dexrunBossActions > button[data-combat-action="siphon"]{
 --dexa-combat-image:url("/assets/pvp/combat_buttons/combat_life_siphon.png");
 --dexa-combat-cost:"2 ⚡";
}

/* Disabled moves retain their original coloured PNG at 72% opacity across PvP, PvE and DexRun.
   The disabled attribute, energy cost rules, click handling and turn gating are unchanged. */
/* Special Aegis, replay, navigation, Chaos and other controls stay untouched. */


/* TEST combat presentation v2: no combat panels, only fighter names + 3 bars.
   Existing HUD selection, stats, Chaos Cards, live matches and 6 action handlers
   remain in place. This only suppresses decorative UI while a fight is shown. */
main[data-hud] #battle.card {
  padding:0!important;margin-top:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
main:has(#battle:not(.hide)) #hudLaunch{display:none!important}
main:has(#battle:not(.hide)) .battle-utility-bar{height:auto!important;margin:0 0 2px!important}
main:has(#battle:not(.hide)) .battle-utility-bar .pvp-screen-toggle{
  background:transparent!important;border:0!important;box-shadow:none!important;
}
main[data-hud] #battle .pve-parity-arena {
  margin:0!important;padding:4px 0 6px!important;
  border:0!important;border-radius:0!important;outline:0!important;
  box-shadow:none!important;backdrop-filter:none!important;
}
#battle .pve-parity-arena .stage-label,
#battle .pve-parity-arena .signal-lines,
#battle .pve-parity-arena .arena-lights,
#battle .pve-parity-arena .crowd,
#battle .pve-parity-arena .holo-ring,
#battle .pve-parity-arena .arena-floor {display:none!important}
#battle .pve-parity-arena .arena-hud {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:clamp(14px,10vw,75px)!important;
  margin:7px 0 0!important;padding:0 8px!important;width:100%!important;
  box-sizing:border-box!important;pointer-events:none;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f,
main[data-hud] #battle .pve-parity-arena .arena-hud > .f.r {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;
  gap:4px!important;text-align:left;
  background:none!important;border:0!important;border-radius:0!important;
  outline:0!important;box-shadow:none!important;filter:none!important;
  overflow:visible!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f.r {text-align:right!important}
#battle .pve-parity-arena .arena-hud #aboosts,
#battle .pve-parity-arena .arena-hud #bboosts {
  display:flex!important;
  align-items:flex-start!important;
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  height:calc(3.75em + 2px)!important;
  min-height:calc(3.75em + 2px)!important;
  max-height:calc(3.75em + 2px)!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  font:800 clamp(16px,4.2vw,18px)/1.25 ui-sans-serif,system-ui,Arial,sans-serif!important;
  letter-spacing:-0.02em!important;
  color:#f4fff6!important;
  text-shadow:0 1px 2px #041008!important;
  white-space:pre-line!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
}
#battle .pve-parity-arena .arena-hud .face,
#battle .pve-parity-arena .arena-hud #ao,
#battle .pve-parity-arena .arena-hud #bo,
#battle .pve-parity-arena .arena-hud .stats,
#battle .pve-parity-arena .arena-hud .resource-label {
  display:none!important;
}
#battle .pve-parity-arena .arena-hud .f > b {
  display:block!important;order:0!important;
  color:#fff!important;font-size:clamp(12px,3vw,16px)!important;
  line-height:1.2!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  text-shadow:0 2px 6px #000!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud .f > .bar,
main[data-hud] #battle .pve-parity-arena .arena-hud .f > .resource-bar {
  display:block!important;box-sizing:border-box!important;
  width:100%!important;height:7px!important;min-height:7px!important;
  margin:0!important;padding:0!important;border:0!important;
  border-radius:999px!important;outline:0!important;
  background:rgba(0,0,0,.43)!important;box-shadow:none!important;
  overflow:hidden!important;
}
#battle .pve-parity-arena .arena-hud .f > .bar {order:1!important}
#battle .pve-parity-arena .arena-hud .f > .shield-bar {order:2!important}
#battle .pve-parity-arena .arena-hud .f > .energy-bar {order:3!important}
#battle .pve-parity-arena .arena-hud .bar > .hp,
#battle .pve-parity-arena .arena-hud .resource-bar > div {
  border:0!important;box-shadow:none!important;border-radius:999px!important;
}
#battle .pve-parity-arena .arena-hud .f > .bar .hp{
  background:linear-gradient(90deg,#16c660,#68ff8a)!important
}
#battle .pve-parity-arena .arena-hud .f.r > .bar .hp{
  background:linear-gradient(90deg,#f74a55,#ff8c7c)!important
}
#battle .pve-parity-arena .arena-hud .shield-fill{
  background:linear-gradient(90deg,#1389d4,#75eaff)!important
}
#battle .pve-parity-arena .arena-hud .energy-fill{
  background:linear-gradient(90deg,#d8a027,#ffe872)!important
}
#battle .pve-parity-arena .icons.clash{
  padding-top:4px!important;margin-top:0!important;
}
#battle .spectator{border:0!important;box-shadow:none!important;background:transparent!important}
#battle .battle-history{
  margin-top:3px!important;padding:4px 2px!important;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
#battle .battle-history .log{background:transparent!important;border:0!important}
/* Retain approved artwork and original handlers, but lose the grey disabled
   effect and the duplicate energy-cost plaques superimposed on baked artwork. */
#battle .moves{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;margin:4px 0 0!important;padding:0!important;
  border:0!important;background:transparent!important;
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
  width:100%!important;min-height:0!important;height:auto!important;
  aspect-ratio:8/3!important;box-sizing:border-box!important;
  border:0!important;border-radius:0!important;outline:0!important;
  box-shadow:none!important;
  background-color:transparent!important;background-size:100% 100%!important;
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon)::after{
  display:none!important;content:none!important;
}
#battle .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon):disabled{
  opacity:.72!important;filter:brightness(.92) saturate(.86)!important;
}
@media(max-width:390px){
  #battle .pve-parity-arena .arena-hud{gap:13px!important;padding:0 4px!important}
  #battle .moves{gap:4px!important}
  #battle .pve-parity-arena .arena-hud .f>b{font-size:12px!important}
}
/* PvE battle uses the same no-box presentation; leave loadout selection intact. */
#battleScreen > .panel{
  border:0!important;background:transparent!important;box-shadow:none!important;
  border-radius:0!important;backdrop-filter:none!important;
}
#battleScreen .fighters .fighter{
  border:0!important;border-radius:0!important;outline:0!important;
  box-shadow:none!important;background:transparent!important;
}
#battleScreen .fighters .face,
#battleScreen .fighters .power,
#battleScreen #pveBoostHud,
#battleScreen .fighters .stats,
#battleScreen .fighters .battle-meter-label {display:none!important}
#battleScreen .fighters :is(.bar,.battle-meter){
  border:0!important;box-shadow:none!important;background:rgba(0,0,0,.35)!important;
  border-radius:999px!important;
}
#battleScreen .arena{
  border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important
}
#battleScreen .arena .stage-label{display:none!important}
/* Cosmetic DexRun end-boss panel border removal; do not touch its controls. */
#dexrunBossPvPPanel > div{
  border:0!important;box-shadow:none!important;background:transparent!important
}


/* PvP mobile touch/HUD correction (2026-11-07): faint empty resources must
   remain visible; keep each existing button above arena effects and stop
   iOS WebView from painting dynamic button text over the approved PNG labels. */
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .resource-bar{
  display:block!important;flex:0 0 9px!important;
  height:9px!important;min-height:9px!important;max-height:9px!important;
  overflow:hidden!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .shield-bar{
  background:rgba(16,89,124,.45)!important;
  border:1px solid rgba(109,218,255,.95)!important;
  box-shadow:inset 0 0 2px rgba(50,182,238,.45)!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .energy-bar{
  background:rgba(119,77,12,.46)!important;
  border:1px solid rgba(255,215,107,.94)!important;
  box-shadow:inset 0 0 2px rgba(240,177,57,.42)!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .resource-bar > div{
  height:100%!important;min-height:0!important;
}
#battle > .moves{
  position:relative!important;z-index:30!important;isolation:isolate;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;min-width:0!important;
  gap:8px!important;pointer-events:auto!important;
}
#battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
  display:block!important;position:relative!important;z-index:1!important;
  width:100%!important;min-width:0!important;height:auto!important;
  min-height:64px!important;aspect-ratio:8 / 3!important;
  padding:0!important;box-sizing:border-box!important;
  background-size:100% 100%!important;background-repeat:no-repeat!important;
  text-indent:-9999px!important;white-space:nowrap!important;overflow:hidden!important;
  pointer-events:auto!important;touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}
@media(max-width:390px){
  #battle > .moves{gap:5px!important}
  #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
    min-height:58px!important
  }
}


/* PvP controls v4: original 512x192 artwork at QuizBot's mobile two-column
   sizing, vivid available actions, clearly muted unavailable actions, and
   energy gained/spent BELOW (not on top of) each illustrated control.
   Keep original six buttons and JS click handlers untouched. */
main[data-hud] #battle > .moves{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:8px!important;row-gap:8px!important;
  align-items:start!important;
  justify-items:stretch!important;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
  display:block!important;position:relative!important;
  box-sizing:border-box!important;width:100%!important;
  max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:62px!important;
  aspect-ratio:8 / 3!important;
  margin:0 0 21px!important;padding:0!important;
  overflow:visible!important;
  border:0!important;border-radius:0!important;
  background-color:transparent!important;
  background-position:center center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
  font-size:0!important;line-height:0!important;
  color:transparent!important;-webkit-text-fill-color:transparent!important;
  text-indent:0!important;white-space:nowrap!important;
  isolation:isolate;touch-action:manipulation!important;
  transition:filter .13s ease,opacity .13s ease,transform .12s ease!important;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon)::after{
  display:block!important;
  content:attr(data-energy-cost)!important;
  position:absolute!important;left:0;right:0;top:calc(100% + 3px);
  z-index:1;
  width:100%;height:17px;box-sizing:border-box!important;
  padding:1px 0!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;
  color:#fff2a5!important;-webkit-text-fill-color:#fff2a5!important;
  font:900 11px/15px system-ui,Arial,sans-serif!important;
  text-align:center!important;
  letter-spacing:.07em!important;text-indent:0!important;
  text-shadow:0 1px 3px #000,0 0 6px #000!important;
  pointer-events:none;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon):not(:disabled){
  opacity:1!important;
  filter:brightness(1.55) saturate(1.55) contrast(1.08)
    drop-shadow(0 0 9px rgba(255,179,74,.66))!important;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon):disabled{
  opacity:.72!important;filter:brightness(.92) saturate(.86)!important;
  cursor:not-allowed!important;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon):active:not(:disabled){
  transform:scale(.97)!important;
  filter:brightness(1.78) saturate(1.7) contrast(1.1)
    drop-shadow(0 0 11px rgba(255,203,107,.85))!important;
}
@media(max-width:390px){
  main[data-hud] #battle > .moves{column-gap:5px!important;row-gap:7px!important}
  main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
    min-height:60px!important;margin-bottom:21px!important
  }
}


/* TEST PvP polish v5 (requested): centre each illustrated combat control in
   its grid cell and darken recessed artwork without dimming neon framing.
   Never move/change the baked icon/text relative to its own PNG.
   Existing six real buttons and server-driven disabled states remain intact. */
main[data-hud] #battle > .moves{
  justify-items:center!important;
  align-items:start!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
  width:calc(100% - 12px)!important;
  max-width:330px!important;
  justify-self:center!important;
  margin:0 auto 21px!important;
  background-color:transparent!important; /* keep transparent PNG corners, no boxes */
  background-position:50% 50%!important;
  background-size:contain!important;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon):not(:disabled){
  opacity:1!important;
  filter:brightness(1.31) contrast(1.52) saturate(1.55)
     drop-shadow(0 0 9px rgba(255,170,57,.67))!important;
}
main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon):active:not(:disabled){
  filter:brightness(1.5) contrast(1.55) saturate(1.65)
     drop-shadow(0 0 12px rgba(255,189,77,.86))!important;
}
@media(max-width:390px){
  main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
    width:calc(100% - 8px)!important;
    max-width:100%!important;
  }
}


/* BeanBot TEST — borderless, viewport-backed PvP with whole-number HP labels.
   The original fighters, footwork, turn timings and six buttons are untouched.
   Only the scene presentation and DOM-bound HP readouts change. */
/* The original default arena is for ordinary matches only. The approved
   Dexatron PvE scene owns its wallpaper and must not request this older art. */
html:not([data-pve-dexatron-approved="1"]) body:has(#battle:not(.hide)){
  padding:0!important;
  min-height:100dvh!important;
  background-image:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.08)),
    url("/assets/arenas/arena_bg_v4_octagon_D.webp?v=20261124-arena-v4-r1")!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
body:has(#battle:not(.hide))::before{display:none!important}
main:has(#battle:not(.hide)){max-width:none!important;width:100%!important}
main[data-hud] #battle:not(.hide){
  width:100%!important;max-width:760px!important;margin:0 auto!important;
  min-height:0!important;padding:0!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;background:transparent!important;
}
main[data-hud] #battle .pve-parity-arena{
  background:transparent!important;background-image:none!important;
  background-color:transparent!important;border:0!important;border-radius:0!important;
  outline:0!important;box-shadow:none!important;overflow:visible!important;
}
main[data-hud] #battle .pve-parity-arena .stage-back{
  display:none!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f{
  position:relative!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .bar{
  width:calc(100% - 42px)!important;max-width:calc(100% - 42px)!important;
  margin:0 0 0 42px!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f.r > .bar{
  margin:0 42px 0 0!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .hp-readout{
  position:absolute!important;
  /* Align the HP numerals beside the GREEN/RED bar, not underneath it. */
  top:7px!important;
  left:0;right:auto;display:block!important;
  width:38px;height:14px;margin:0;padding:0;
  font:900 clamp(12px,2.7vw,15px)/14px system-ui,Arial,sans-serif!important;
  font-variant-numeric:tabular-nums;
  color:#fff!important;text-align:left!important;
  white-space:nowrap;text-shadow:0 2px 5px #000,0 0 3px #000;
  order:1!important;pointer-events:none;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f.r > .hp-readout{
  left:auto;right:0;text-align:right!important;
}
@media(max-width:390px){
  main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .bar{
    width:calc(100% - 36px)!important;max-width:calc(100% - 36px)!important;
    margin-left:36px!important;
  }
  main[data-hud] #battle .pve-parity-arena .arena-hud > .f.r > .bar{
    margin-left:0!important;margin-right:36px!important;
  }
  main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .hp-readout{
    width:84px;min-width:84px;font-size:13px!important;
  }
}


/* TEST PvP v9: structural HP alignment, no absolute HP positioning.
   The numbers and matching health bars share a real layout row so font sizes,
   player names and iPhone viewport changes cannot make them overlap. */
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .hp-row{
  display:flex!important;flex-direction:row!important;
  align-items:center!important;gap:7px!important;
  order:1!important;width:100%!important;min-width:0!important;
  min-height:14px!important;padding:0!important;margin:0!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .hp-row > .hp-readout{
  position:static!important;display:block!important;flex:0 0 84px!important;
  width:84px!important;min-width:84px!important;height:16px!important;
  margin:0!important;padding:0!important;order:0!important;
  font:900 13px/16px ui-sans-serif,system-ui,Arial,sans-serif!important;
  overflow:hidden!important;
  font-variant-numeric:tabular-nums!important;
  color:#fff!important;text-align:left!important;
  white-space:nowrap!important;
  text-shadow:0 2px 5px #000,0 0 3px #000!important;
  pointer-events:none;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f.r > .hp-row > .hp-readout{
  text-align:right!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .hp-row > .bar{
  position:relative!important;display:block!important;
  flex:1 1 auto!important;min-width:0!important;
  width:auto!important;max-width:none!important;
  height:9px!important;min-height:9px!important;
  margin:0!important;padding:0!important;
  order:0!important;box-sizing:border-box!important;
  border:0!important;border-radius:999px!important;
  background:rgba(0,0,0,.43)!important;overflow:hidden!important;
}
main[data-hud] #battle .pve-parity-arena .arena-hud > .f.r > .hp-row > .bar{
  margin:0!important;
}
/* The centre of this fighter lane is anchored at the bottom of the arena.
   Increase lane height instead of applying transforms/top offsets to the
   actual fighters (which can interfere with PvP motion animations). */
@media(max-width:520px){
 main[data-hud] #battle .pve-parity-arena .icons.clash{
   min-height:290px!important;align-items:flex-end!important;
 }
 main[data-hud] #battle .pve-parity-arena .icons.clash > .arena-fighter{
   top:0!important;align-self:flex-end!important;
 }
 main[data-hud] #battle > .moves{
   margin-top:8px!important;row-gap:2px!important;column-gap:4px!important;
 }
 main[data-hud] #battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon){
   margin:0 auto 13px!important;
 }
}
@media(max-width:390px){
 main[data-hud] #battle .pve-parity-arena .icons.clash{
   min-height:265px!important;
 }
 main[data-hud] #battle .pve-parity-arena .arena-hud > .f > .hp-row > .hp-readout{
   flex-basis:84px!important;width:84px!important;min-width:84px!important;
 }
}

/* Contain effects locally while allowing the scene to continue above/below. */
#battle .pve-parity-arena .combat-fx,
#battle .pve-parity-arena .fx-layer{overflow:hidden}
/* Keep all six controls on screen. Later 8/3 rules were stretching each
   button until the bottom row left the viewport and could not be tapped. */
#battle > .moves > :is(#strike,#lightPower,#ability,#guard,#regen,#siphon),
#battleScreen .actions > :is(#strike,#lightPower,#special,#guard,#regen,#siphon),
#dexrunBossActions > button[data-combat-action]{
  aspect-ratio:auto!important;
  height:clamp(56px, 10vh, 78px)!important;
  min-height:52px!important;
  max-height:78px!important;
  pointer-events:auto!important;
}
