.game-heading { margin-bottom: 18px; }
.arena {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(480px, 46vw, 600px);
  border: 1px solid #355476;
  border-radius: 14px;
  background: #081521 radial-gradient(ellipse at 50% 45%, #193657, #081521 75%);
  color: #f0f6ff;
  user-select: none;
}
.arena canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arena.is-playing canvas { touch-action: none; cursor: crosshair; }
.arena-hud {
  position: absolute;
  inset: 15px 15px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.arena-metrics {
  display: flex;
  gap: 22px;
  padding: 8px 13px;
  border: 1px solid #44698880;
  border-radius: 8px;
  background: #081320e8;
}
.arena-metrics div { display: grid; gap: 1px; }
.arena-metrics span, .arena-health-label, .arena-counter {
  font-size: .72rem;
  color: #bacde3;
}
.arena-metrics b, .arena-health-label b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.arena-metrics b { color: #e1f1ff; font-size: .95rem; letter-spacing: .04em; }
.arena-button {
  min-height: 44px;
  touch-action: manipulation;
  padding: 7px 15px;
  border-radius: 7px;
  border: 1px solid #446887;
  background: #14283d;
  color: #e3f2ff;
  font-size: .87rem;
  font-weight: 650;
}
.arena-button:hover:not(:disabled) { background: #24445f; }
.arena-button:disabled { opacity: .45; cursor: default; }
.arena-pause { pointer-events: auto; background: #081320ed; }
.arena-vitals {
  position: absolute;
  inset: auto auto 15px 15px;
  width: min(220px, calc(100% - 30px));
  padding: 9px 12px;
  border: 1px solid #44698880;
  border-radius: 8px;
  background: #081320e8;
  pointer-events: none;
}
.arena-health-label { display: flex; justify-content: space-between; }
.arena-health-label b { color: #cde8ff; }
.arena-health {
  width: 100%;
  height: 6px;
  display: block;
  margin: 6px 0 4px;
  appearance: none;
  border: 0;
  accent-color: #5de1fa;
  background: #274661;
}
.arena-health::-webkit-progress-bar { background: #274661; }
.arena-health::-webkit-progress-value { background: #5de1fa; }
.arena-health::-moz-progress-bar { background: #5de1fa; }
.arena-health.is-low { accent-color: #ff937c; }
.arena-health.is-low::-webkit-progress-value { background: #ff937c; }
.arena-health.is-low::-moz-progress-bar { background: #ff937c; }
.arena-counter { display: block; line-height: 1.5; }
.arena-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: radial-gradient(ellipse at center, #08162550, #050d18b0);
}
.arena-card {
  width: min(100%, 468px);
  padding: clamp(19px, 4vw, 37px);
  border: 1px solid #6384a37d;
  border-radius: 14px;
  background: #081424ee;
  box-shadow: 0 24px 60px #0007;
}
.arena-kicker {
  margin-bottom: 7px;
  color: #80e3f8;
  font: 650 .74rem / 1.4 var(--sans);
  letter-spacing: .18em;
}
.arena-card h3 {
  margin: 0;
  color: #f2f9ff;
  font-size: clamp(1.75rem, 4.2vw, 3.15rem);
  line-height: 1.13;
  letter-spacing: -.05em;
}
.arena-description { margin-top: 12px; max-width: 30em; color: #c3d4e9; font-size: .88rem; }
.arena-best:not(:empty) { margin-top: 12px; font-size: .8rem; color: #90c5ff; }
.arena-actions, .arena-upgrades { display: flex; flex-wrap: wrap; gap: 8px; }
.arena-actions:not(:has(:not([hidden]))), .arena-upgrades:empty { display: none; }
.arena-actions, .arena-upgrades { margin-top: 18px; }
.arena-primary { background: #87deff; border-color: #87deff; color: #07192b; }
.arena-primary:hover:not(:disabled) { background: #b4eeff; }
.arena-upgrades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arena-upgrade { padding: 8px; text-align: left; white-space: normal; }
.arena-upgrade span { display: block; color: #a9c7e5; font-size: .72rem; font-weight: 400; line-height: 1.35; margin-top: 3px; }
.arena-stick {
  position: absolute;
  z-index: 1;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border: 1px solid #9cdbff9c;
  border-radius: 50%;
  background: #091a2d77;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.arena-stick span { width: 30px; height: 30px; border-radius: 50%; background: #8fddfff0; }
.arena-controls { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 12px; color: var(--muted); font-size: .8rem; }
.arena-controls kbd { color: #d9eaff; font-family: var(--mono); }
@media (max-width: 530px) {
  .arena { height: clamp(390px, 135vw, 530px); }
  .arena-hud { inset: 10px 10px auto; }
  .arena-vitals { inset: auto auto 10px 10px; width: 180px; }
  .arena-metrics { gap: 13px; }
  .arena-upgrades { grid-template-columns: 1fr; }
  .arena-upgrade { padding: 6px 10px; }
}
@media (max-width: 375px) {
  .nav { gap: 5px; font-size: .71rem; }
}

