.arena-hud {
  --ah-yellow: #f5d444;
  --ah-paper: #f0f1e9;
  --ah-orange: #ff9267;
  --ah-panel: rgba(22, 27, 24, .86);
  --ah-edge: rgba(226, 231, 209, .27);
  --ah-left: max(26px, env(safe-area-inset-left));
  --ah-right: max(26px, env(safe-area-inset-right));
  --ah-top: max(23px, env(safe-area-inset-top));
  --ah-bottom: max(24px, env(safe-area-inset-bottom));
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  color: var(--ah-paper);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.arena-hud *, .arena-hud *::before, .arena-hud *::after {box-sizing: border-box}
.arena-hud [hidden] {display: none !important}
.arena-hud button {font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent}
.arena-hud button:focus-visible {outline: 2px solid var(--ah-yellow); outline-offset: 4px}
.arena-hud svg {display: block; width: 21px; height: 21px}
.ah-damage {position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(212,49,28,.23) 75%, rgba(230,55,32,.85) 100%)}
.ah-board, .ah-pause, .ah-radar, .ah-bottom, .ah-hint, .ah-status {z-index: 2}
.ah-radar {
  position: absolute;
  top: var(--ah-top);
  left: var(--ah-left);
  width: clamp(117px, 12vw, 168px);
  background: var(--ah-panel);
  border: 1px solid var(--ah-edge);
  border-top: 2px solid var(--ah-yellow);
}
.ah-radar-head, .ah-mapname {display: flex; align-items: center; padding: 5px 8px; color: #e0e5d3; font-size: 10px; letter-spacing: .08em}
.ah-radar-head {justify-content: space-between}
.ah-radar-head > span {display: flex; align-items: center; gap: 5px}
.ah-radar-head i {width: 4px; height: 4px; background: var(--ah-yellow)}
.ah-radar-head b {font: 600 9px/1 var(--mono, monospace); color: var(--ah-yellow)}
.ah-radar canvas {display: block; width: 100%; height: auto}
.ah-mapname {gap: 4px}
.ah-mapname svg {width: 12px; height: 12px; color: var(--ah-yellow)}
.ah-board {position: absolute; top: var(--ah-top); left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; background: var(--ah-panel); border: 1px solid var(--ah-edge)}
.ah-point, .ah-clock {display: flex; align-items: center; justify-content: center}
.ah-point {gap: 9px; padding: 7px 13px; white-space: nowrap; border-bottom: 2px solid currentColor}
.ah-player {color: var(--ah-yellow)}
.ah-foe {color: var(--ah-orange)}
.ah-point small, .ah-clock span {font-size: 10px; font-weight: 650; letter-spacing: .075em}
.ah-point strong, .ah-clock b, .ah-digits b {font-family: var(--mono, "SFMono-Regular", Consolas, monospace); font-variant-numeric: tabular-nums; letter-spacing: -.06em; white-space: nowrap}
.ah-point strong {font-size: 27px}
.ah-clock {min-width: 89px; flex-direction: column; gap: 2px; padding: 6px 13px; background: rgba(0,0,0,.22); border-inline: 1px solid var(--ah-edge)}
.ah-clock span {color: #afb5a9; font-size: 9px}
.ah-clock b {font-size: 20px; line-height: 1.1}
.ah-clock.ah-urgent b {color: var(--ah-orange)}
.ah-precision .ah-foe {display: none}
.ah-precision .ah-clock {border-right: 0}
.ah-pause {position: absolute; top: var(--ah-top); right: var(--ah-right); width: 43px; height: 43px; display: grid; place-items: center; background: var(--ah-panel); border: 1px solid var(--ah-edge); pointer-events: auto}
.ah-pause:hover, .ah-pause:active {color: var(--ah-yellow); border-color: var(--ah-yellow)}
.ah-pause svg {width: 18px; height: 18px}
.ah-cross, .ah-hit {--ah-kick: 0px; --ah-gap: calc(4px + var(--ah-kick)); position: absolute; left: 50%; top: 50%; width: 0; height: 0}
.ah-cross i, .ah-cross b, .ah-hit i {position: absolute; display: block; background: #efffdc; box-shadow: 0 0 2px #111, 0 0 1px 1px rgba(0,0,0,.55)}
.ah-cross i {width: 5px; height: 2px; top: -1px}
.ah-cross i:nth-child(1) {right: var(--ah-gap)}
.ah-cross i:nth-child(2) {left: var(--ah-gap)}
.ah-cross i:nth-child(3), .ah-cross i:nth-child(4) {left: -1px; width: 2px; height: 5px}
.ah-cross i:nth-child(3) {top: auto; bottom: var(--ah-gap)}
.ah-cross i:nth-child(4) {top: var(--ah-gap)}
.ah-cross b {left: -1px; top: -1px; width: 2px; height: 2px}
.ah-hit {opacity: 0}
.ah-hit i {width: 8px; height: 2px; background: #ffdf60; transform: rotate(45deg)}
.ah-hit i:nth-child(1) {left: 6px; top: 9px}
.ah-hit i:nth-child(2) {right: 6px; bottom: 9px}
.ah-hit i:nth-child(3) {left: 6px; bottom: 9px; transform: rotate(-45deg)}
.ah-hit i:nth-child(4) {right: 6px; top: 9px; transform: rotate(-45deg)}
.ah-status {position: absolute; top: calc(50% + 29px); left: 50%; transform: translateX(-50%); padding: 5px 9px; color: var(--ah-yellow); background: var(--ah-panel); font-size: 11px; letter-spacing: .09em}
.ah-bottom {display: flex; align-items: center; gap: 11px; position: absolute; bottom: var(--ah-bottom); padding: 10px 14px 10px 11px; min-width: 136px; background: var(--ah-panel); border: 1px solid var(--ah-edge); border-left: 3px solid var(--ah-yellow)}
.ah-health {left: var(--ah-left)}
.ah-ammo {right: var(--ah-right)}
.ah-stat-icon {color: var(--ah-yellow)}
.ah-stat-icon svg {width: 24px; height: 24px}
.ah-stat {flex: 1}
.ah-stat small {font-size: 10px; letter-spacing: .1em; color: #d4d9cc}
.ah-digits {display: flex; gap: 6px; align-items: baseline; margin: 1px 0 4px}
.ah-digits b {font-size: 29px; line-height: 1}
.ah-digits > span {font: 600 11px/1 var(--mono, monospace); color: #b9c0b3; white-space: nowrap}
.ah-meter {height: 2px; background: #4c514b}
.ah-meter i {display: block; height: 100%; width: 100%; background: var(--ah-yellow); transform-origin: left center}
.ah-health.ah-critical, .ah-ammo.ah-low {border-left-color: var(--ah-orange)}
.ah-critical .ah-digits b, .ah-low .ah-digits b {color: var(--ah-orange)}
.ah-critical .ah-meter i, .ah-low .ah-meter i {background: var(--ah-orange)}
.ah-hint {position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--ah-bottom); border: 1px solid rgba(235,240,224,.17); background: rgba(20,24,21,.75); padding: 7px 10px; font-size: 11px; letter-spacing: .03em; white-space: nowrap}
.ah-hint kbd {display: inline-block; padding: 2px 3px; border: 1px solid #757a70; border-radius: 2px; font: 600 9px/1 var(--mono, monospace)}
.ah-touch-hint, .ah-touch {display: none}
.ah-has-touch .ah-touch, .ah-has-touch .ah-touch-hint {display: block}
.ah-has-touch .ah-desktop-hint {display: none}
.ah-look {position: absolute; inset: 0 0 0 29%; pointer-events: auto; touch-action: none}
.ah-stick, .ah-action {position: absolute; background: rgba(24,29,26,.57); border: 1px solid rgba(231,234,218,.48); border-radius: 50%; touch-action: none; pointer-events: auto}
.ah-stick {width: 100px; height: 100px; left: var(--ah-left); bottom: var(--ah-bottom); z-index: 2}
.ah-stick-cross {position: absolute; inset: 12%; background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(240,243,223,.2) 50%, transparent calc(50% + .5px)), linear-gradient(0deg, transparent calc(50% - .5px), rgba(240,243,223,.2) 50%, transparent calc(50% + .5px))}
.ah-stick i {position: absolute; left: 50%; top: 50%; width: 39%; height: 39%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(240,240,210,.65); background: rgba(219,222,202,.25)}
.ah-actions {position: absolute; right: var(--ah-right); bottom: var(--ah-bottom); width: 132px; height: 106px; z-index: 2}
.arena-hud .ah-action {padding: 0; display: grid; place-items: center}
.ah-fire {right: 0; bottom: 0; width: 62px; height: 62px; border-color: rgba(250,218,80,.95); color: var(--ah-yellow) !important}
.ah-fire svg {width: 27px; height: 27px}
.ah-jump, .ah-reload {width: 42px; height: 42px}
.ah-jump {right: 9px; top: -4px}
.ah-reload {right: 71px; bottom: 4px}
.ah-held {background-color: rgba(118,108,50,.8)}
.ah-has-touch .ah-bottom {bottom: calc(var(--ah-bottom) + 117px); min-width: 96px; padding: 6px 9px; gap: 7px}
.ah-has-touch .ah-digits b {font-size: 21px}
.ah-has-touch .ah-stat-icon svg {width: 17px}
.ah-has-touch .ah-hint {bottom: calc(var(--ah-bottom) + 12px)}
@media (max-width: 760px) {
  .arena-hud {--ah-left: max(12px, env(safe-area-inset-left)); --ah-right: max(12px, env(safe-area-inset-right)); --ah-top: max(12px, env(safe-area-inset-top)); --ah-bottom: max(12px, env(safe-area-inset-bottom))}
  .ah-radar {width: 104px}
  .ah-point {gap: 5px; padding: 5px 8px}
  .ah-point strong {font-size: 22px}
  .ah-clock {min-width: 65px; padding: 5px 7px}
  .ah-clock b {font-size: 17px}
  .ah-pause {width: 39px; height: 39px}
}
@media (max-width: 550px) {
  .ah-radar {width: 87px}
  .ah-radar-head {padding: 4px; font-size: 8px; letter-spacing: 0}
  .ah-radar-head b {font-size: 8px}
  .ah-mapname {font-size: 9px; padding: 3px}
  .ah-board {left: 53%}
  .ah-point small {display: none}
  .ah-point {min-width: 30px}
  .ah-clock {min-width: 57px}
  .ah-hint, .ah-has-touch .ah-hint {bottom: auto; top: calc(var(--ah-top) + 103px); font-size: 10px}
  .ah-has-touch .ah-stick {width: 89px; height: 89px}
  .ah-bottom {min-width: 107px}
}
@media (max-height: 480px) {
  .arena-hud {--ah-top: max(8px, env(safe-area-inset-top)); --ah-bottom: max(9px, env(safe-area-inset-bottom))}
  .ah-radar {width: 90px}
  .ah-mapname {display: none}
  .ah-stick {width: 78px; height: 78px}
  .ah-actions {height: 79px; width: 123px}
  .ah-jump {right: 59px; top: -3px}
  .ah-reload {right: 70px; bottom: -3px}
  .ah-jump, .ah-reload {width: 37px; height: 37px}
  .ah-fire {width: 57px; height: 57px}
  .ah-has-touch .ah-bottom {bottom: calc(var(--ah-bottom) + 86px); gap: 6px; padding: 4px 7px}
  .ah-has-touch .ah-stat small {font-size: 8px}
}
