/* ============================================================
   NEON BREACH — interface / HUD / menus
   ============================================================ */

:root {
  --bg: #03050a;
  --ink: #eaf6ff;
  --muted: #7d8ca6;
  --dim: #4a5568;
  --cyan: #43f3ff;
  --cyan-soft: #82f8ff;
  --magenta: #ff2bd6;
  --red: #ff3b5c;
  --amber: #ffbf5e;
  --lime: #9dff6a;
  --panel: rgba(6, 10, 18, 0.66);
  --line: rgba(109, 236, 255, 0.22);
  --line-strong: rgba(109, 236, 255, 0.48);
  --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
  --font-ui: "Bahnschrift", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --gap: 11px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; }
button:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }
kbd { font-family: var(--font-mono); }
::selection { background: var(--cyan); color: #00151a; }

#app {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 45%, #0a1020 0%, #03050a 60%, #010204 100%);
}

#scene {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: crosshair;
}

.is-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* ---------- full screen FX ---------- */

.fx { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

.fx-vignette {
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.34) 74%, rgba(0, 0, 0, 0.82) 100%);
}

.fx-scanlines {
  z-index: 7;
  opacity: 0.06;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.7) 0px,
    rgba(255,255,255,0.7) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
}

.fx-damage {
  z-index: 8;
  opacity: 0;
  background:
    radial-gradient(ellipse at center, transparent 36%, rgba(255, 23, 64, 0.13) 63%, rgba(255, 20, 58, 0.72) 100%);
  box-shadow: inset 0 0 140px rgba(255, 15, 55, 0.55);
  transition: opacity 120ms linear;
}

.fx-lowhp {
  z-index: 6;
  opacity: 0;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(255, 16, 48, 0.26) 100%);
  transition: opacity 0.5s ease;
}

body.low-health .fx-lowhp { opacity: 1; animation: lowhpPulse 1.3s ease-in-out infinite; }

@keyframes lowhpPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* ---------- generic HUD ---------- */

#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }

#hud::before,
#hud::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67,243,255,0.28) 20%, rgba(67,243,255,0.28) 80%, transparent);
  opacity: 0.55;
}
#hud::before { top: 104px; }
#hud::after { bottom: 112px; opacity: 0.22; }

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  padding: 22px 32px 0;
}

.brand-block { justify-self: start; min-width: 240px; }

.brandline { display: flex; align-items: center; gap: 9px; }

.brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 26px rgba(67,243,255,0.5);
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.brand-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #dff9ff;
}
.brand-title em { font-style: normal; color: var(--cyan); margin-left: 4px; }

.build {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--dim);
  border: 1px solid rgba(125,140,166,0.22);
  border-radius: 2px;
  padding: 2px 5px;
  margin-left: 4px;
}

.scoreline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.scoreline .label { font-size: 8px; letter-spacing: 0.2em; color: var(--muted); }
.scoreline b { font-family: var(--font-display); font-size: 25px; line-height: 1; letter-spacing: 0.05em; color: #f2fcff; font-weight: 600; }
.scoreline .slash { color: rgba(125,140,166,0.3); font-size: 13px; }
.scoreline #kills { font-size: 18px; color: var(--cyan-soft); }

.combo {
  align-self: center;
  margin-left: 8px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1b0019;
  background: var(--magenta);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  box-shadow: 0 0 14px rgba(255,43,214,0.45);
  transition: opacity 0.24s, transform 0.24s;
}
.combo.is-empty { opacity: 0; transform: translateY(4px); }
.combo.bump { animation: comboBump 0.3s cubic-bezier(.2,1.7,.3,1); }

@keyframes comboBump {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.wave-block {
  justify-self: center;
  text-align: center;
  min-width: 236px;
  padding-top: 2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.eyebrow i { width: 18px; height: 1px; background: var(--red); box-shadow: 0 0 8px var(--red); }

.wave-title {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: #c9d6e8;
}
.wave-title b {
  color: var(--cyan);
  font-size: 22px;
  letter-spacing: 0.08em;
  margin-left: 4px;
  text-shadow: 0 0 18px rgba(67,243,255,0.45);
}

.wave-track {
  position: relative;
  width: 196px;
  height: 2px;
  margin: 7px auto 0;
  background: rgba(125,140,166,0.18);
  overflow: hidden;
}
.wave-track i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  box-shadow: 0 0 8px rgba(67,243,255,0.7);
  transition: width 0.25s ease;
}

.remaining {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: #6d7e96;
}

.boss-bar { width: 292px; margin: 12px auto 0; }
.boss-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em;
  color: var(--red); margin-bottom: 4px;
}
.boss-meta b { color: #ffd5dc; }
.boss-track { height: 3px; background: rgba(255,59,92,0.14); border: 1px solid rgba(255,59,92,0.22); }
.boss-track i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #ff3658, #ff9b63);
  box-shadow: 0 0 12px rgba(255,54,88,0.75);
  transition: width 0.18s ease;
}

.sys-block { justify-self: end; display: flex; align-items: center; gap: 8px; }

.sys-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  background: rgba(7,12,20,0.48);
  border: 1px solid rgba(125,140,166,0.17);
  color: #a7b6c9;
  font-size: 9px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sys-btn:hover { border-color: var(--line-strong); color: var(--cyan); background: rgba(20,42,55,0.4); }
.sys-btn { pointer-events: auto; }

.sys-btn kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  padding: 0 4px;
  font-size: 8px;
  border: 1px solid rgba(125,140,166,0.35);
  color: #d5e2ed;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
}

.sound-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.sound-bars i { display: block; width: 2px; background: var(--cyan); box-shadow: 0 0 4px rgba(67,243,255,0.7); animation: eq 1.1s ease-in-out infinite; }
.sound-bars i:nth-child(1) { height: 4px; animation-delay: -0.2s; }
.sound-bars i:nth-child(2) { height: 9px; animation-delay: -0.7s; }
.sound-bars i:nth-child(3) { height: 6px; animation-delay: -0.4s; }
.sound-bars i:nth-child(4) { height: 3px; animation-delay: -0.9s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
.muted .sound-bars i { animation-play-state: paused; background: #536173; box-shadow: none; transform: scaleY(0.55); }

/* ---------- crosshair & hit marker ---------- */

#crosshair {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  z-index: 12;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.9));
  transition: opacity 0.15s;
}
#crosshair .ch {
  position: absolute;
  display: block;
  background: rgba(235, 252, 255, 0.94);
  box-shadow: 0 0 5px rgba(67,243,255,0.65);
  transition: transform 0.08s linear, background 0.2s;
}
.ch-top, .ch-bottom { width: 1px; height: 7px; left: 0; transform: translateX(-50%); }
.ch-left, .ch-right { width: 7px; height: 1px; top: 0; transform: translateY(-50%); }
.ch-top { top: calc(var(--gap) * -1 - 7px); }
.ch-bottom { top: var(--gap); }
.ch-left { left: calc(var(--gap) * -1 - 7px); }
.ch-right { left: var(--gap); }
.ch-dot {
  position: absolute;
  width: 2px; height: 2px;
  left: -1px; top: -1px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--cyan);
}

body.is-aiming #crosshair .ch { background: var(--cyan); }
body.is-aiming #crosshair .ch-dot { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }

#hitmarker {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  z-index: 13;
  opacity: 0;
}
#hitmarker i {
  position: absolute;
  width: 8px; height: 1.5px;
  background: #fff;
  box-shadow: 0 0 7px rgba(255,255,255,0.95);
}
#hitmarker i:nth-child(1) { transform: translate(-12px, -9px) rotate(45deg); }
#hitmarker i:nth-child(2) { transform: translate(4px, -9px) rotate(-45deg); }
#hitmarker i:nth-child(3) { transform: translate(-12px, 7.5px) rotate(-45deg); }
#hitmarker i:nth-child(4) { transform: translate(4px, 7.5px) rotate(45deg); }
#hitmarker.show { animation: hitmark 0.22s ease-out; }
#hitmarker.head i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
#hitmarker.head.show { animation: hitmarkHead 0.3s ease-out; }
#hitmarker.kill i { width: 11px; background: var(--red); box-shadow: 0 0 10px var(--red); }

@keyframes hitmark {
  0% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(0.85); }
}
@keyframes hitmarkHead {
  0% { opacity: 1; transform: scale(1.55) rotate(0deg); }
  100% { opacity: 0; transform: scale(1) rotate(8deg); }
}

/* ---------- wave banner ---------- */

.wave-banner {
  position: absolute;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  width: min(620px, 86vw);
  text-align: center;
  z-index: 14;
  opacity: 0;
  pointer-events: none;
}
.wave-banner.show { animation: bannerIn 2.7s cubic-bezier(.2,.8,.2,1) both; }
.banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 8px;
}
.banner-kicker::before, .banner-kicker::after {
  content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--red));
}
.banner-kicker::after { background: linear-gradient(90deg, var(--red), transparent); }
.wave-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: #f1fdff;
  text-shadow: 0 0 32px rgba(67,243,255,0.22), 0 0 90px rgba(67,243,255,0.12);
}
.wave-banner h2 b { color: var(--cyan); font-weight: 600; }
.wave-banner p {
  margin: 12px 0 0;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #96a8bb;
  text-transform: uppercase;
}
.wave-banner::before, .wave-banner::after {
  content: "";
  position: absolute;
  left: 50%; width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  transform: translateX(-50%);
}
.wave-banner::before { top: -22px; }
.wave-banner::after { bottom: -22px; }
.wave-banner.show::before, .wave-banner.show::after { animation: bannerLine 2.4s ease both; }

@keyframes bannerIn {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(0.97); filter: blur(5px); }
  9% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  76% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -52%); }
}
@keyframes bannerLine {
  0% { width: 0; opacity: 0; }
  15% { width: 100%; opacity: 1; }
  75% { width: 100%; opacity: 1; }
  100% { width: 30%; opacity: 0; }
}

/* ---------- notifications ---------- */

.toasts {
  position: absolute;
  left: 50%; bottom: 150px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 15;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #cdebff;
  background: rgba(6,16,25,0.78);
  border: 1px solid rgba(67,243,255,0.25);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  animation: toastIn 0.28s ease both;
  white-space: nowrap;
}
.toast::before { content: ""; width: 4px; height: 4px; background: var(--cyan); box-shadow: 0 0 7px var(--cyan); transform: rotate(45deg); }
.toast.heal { color: var(--lime); border-color: rgba(157,255,106,0.3); }
.toast.heal::before { background: var(--lime); box-shadow: 0 0 7px var(--lime); }
.toast.warn { color: var(--amber); border-color: rgba(255,191,94,0.34); }
.toast.warn::before { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.toast.bad { color: #ff9aab; border-color: rgba(255,59,92,0.35); }
.toast.bad::before { background: var(--red); box-shadow: 0 0 7px var(--red); }
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-5px); }
}

.kill-feed {
  position: absolute;
  top: 106px;
  right: 32px;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  z-index: 15;
}
.feed-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: #b8c9d9;
  padding: 3px 8px;
  background: rgba(4,10,16,0.45);
  border-right: 1px solid rgba(255,43,214,0.5);
  animation: feedIn 0.22s ease both;
}
.feed-item::before { content: "×"; color: var(--magenta); }
.feed-item em { font-style: normal; color: var(--magenta); font-size: 8px; }
.feed-item.head { border-right-color: var(--amber); color: #ffe4bc; }
.feed-item.head::before { content: "◆"; color: var(--amber); }
.feed-item.boss { border-right-color: var(--red); color: #ffd1d9; font-size: 9.5px; }
.feed-item.boss::before { content: "✕"; color: var(--red); }
@keyframes feedIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.score-pop {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 14;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(67,243,255,0.55);
  pointer-events: none;
  animation: scoreFloat 0.75s ease-out forwards;
}
.score-pop.head { color: var(--amber); text-shadow: 0 0 12px rgba(255,191,94,0.6); }
.score-pop::after { content: " PTS"; font-family: var(--font-mono); font-size: 7px; color: rgba(255,255,255,0.45); letter-spacing: 0.12em; }
@keyframes scoreFloat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -62%) scale(1.04); }
  100% { opacity: 0; transform: translate(-50%, -145%) scale(0.95); }
}

/* ---------- bottom HUD panels ---------- */

.hud-panel {
  position: absolute;
  bottom: 26px;
  z-index: 12;
  padding: 12px 15px 11px;
  background: linear-gradient(135deg, rgba(8,14,22,0.76), rgba(5,9,15,0.4));
  border: 1px solid rgba(109,236,255,0.14);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  backdrop-filter: blur(4px);
}
.hud-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 54px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(67,243,255,0.7);
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #6f8197;
  margin-bottom: 9px;
}
.panel-label b { font-size: 7.5px; font-weight: 500; color: var(--cyan); letter-spacing: 0.1em; }
.panel-label em { font-style: normal; color: #9aabbe; margin-left: 5px; letter-spacing: 0.04em; }

.vitals { left: 32px; width: 304px; }
.health-row { display: flex; align-items: flex-end; gap: 13px; }
.hp-num { display: flex; align-items: baseline; gap: 4px; line-height: 0.75; }
.hp-num span {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #effcff;
  text-shadow: 0 0 20px rgba(67,243,255,0.17);
  font-variant-numeric: tabular-nums;
}
.hp-num small { font-family: var(--font-mono); font-size: 8px; color: #758399; letter-spacing: 0.06em; }

.hp-bar {
  position: relative;
  flex: 1;
  height: 11px;
  margin-bottom: 4px;
  background: rgba(125,140,166,0.11);
  box-shadow: inset 0 0 0 1px rgba(125,140,166,0.13);
  overflow: hidden;
}
.hp-bar > i {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #25c9de, var(--cyan) 65%, #d2fdff);
  box-shadow: 0 0 13px rgba(67,243,255,0.48);
  transition: width 0.28s cubic-bezier(.2,.8,.2,1), background 0.4s;
  z-index: 1;
}
.hp-bar .segments {
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 2px), rgba(3,7,12,0.88) calc(10% - 2px), rgba(3,7,12,0.88) 10%);
}
.hp-bar.low > i { background: linear-gradient(90deg, #ff234b, #ff6b7f); box-shadow: 0 0 15px rgba(255,35,75,0.5); }
.hp-bar.mid > i { background: linear-gradient(90deg, #ff9f3d, var(--amber)); box-shadow: 0 0 15px rgba(255,191,94,0.42); }

.panel-hint {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(125,140,166,0.1);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #526075;
}
.panel-hint kbd { color: #a3b1c3; font-size: 7px; border: 1px solid rgba(125,140,166,0.24); padding: 0 3px; border-radius: 1px; }

.ammo-panel { right: 32px; width: 282px; text-align: right; }
.ammo-panel::before { left: auto; right: 0; background: var(--magenta); box-shadow: 0 0 8px rgba(255,43,214,0.7); }
.ammo-row { display: flex; align-items: baseline; justify-content: flex-end; line-height: 0.8; }
.ammo-row b {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #f0fdff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(67,243,255,0.16);
}
.ammo-row .mag { font-family: var(--font-mono); font-size: 15px; color: #74859c; margin-left: 5px; }
.ammo-row small {
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: #485568;
  margin-left: 12px;
  align-self: center;
}
.ammo-panel.low-ammo .ammo-row b { color: var(--amber); }
.ammo-panel.empty .ammo-row b { color: var(--red); animation: ammoFlash 0.7s ease-in-out infinite; }
@keyframes ammoFlash { 50% { opacity: 0.45; } }

.reload-track { height: 2px; margin-top: 9px; background: rgba(125,140,166,0.12); overflow: hidden; }
.reload-track i {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--magenta) 0 4px, rgba(255,43,214,0.25) 4px 6px);
  box-shadow: 0 0 8px rgba(255,43,214,0.5);
}
.ammo-panel.reloading .reload-track i { animation: reloadStripes 0.5s linear infinite; }
@keyframes reloadStripes { to { background-position: 12px 0; } }

.hud-corner { position: absolute; width: 18px; height: 18px; border-color: rgba(67,243,255,0.28); border-style: solid; opacity: 0.65; }
.hud-corner.tl { top: 96px; left: 20px; border-width: 1px 0 0 1px; }
.hud-corner.tr { top: 96px; right: 20px; border-width: 1px 1px 0 0; }
.hud-corner.bl { bottom: 96px; left: 20px; border-width: 0 0 1px 1px; }
.hud-corner.br { bottom: 96px; right: 20px; border-width: 0 1px 1px 0; }

/* ============================================================
   SCREENS
   ============================================================ */

.screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease, visibility 0.35s;
}

/* ---------- start ---------- */

.screen-start {
  overflow: hidden;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(2,5,10,0.97) 0%, rgba(2,5,10,0.9) 36%, rgba(2,5,10,0.35) 68%, rgba(2,5,10,0.72) 100%),
    radial-gradient(ellipse at 74% 50%, rgba(27,79,116,0.2), transparent 48%),
    radial-gradient(ellipse at 14% 90%, rgba(104,12,78,0.16), transparent 52%);
}
.screen-start::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 20%, transparent 82%, rgba(0,0,0,0.7));
}

.start-glow {
  position: absolute;
  top: 46%; right: 16%;
  width: 44vw; height: 44vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,243,255,0.11) 0%, rgba(255,43,214,0.05) 44%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.start-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67,243,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,243,255,0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, transparent 3%, #000 46%, #000 84%, transparent);
  opacity: 0.8;
  pointer-events: none;
}

.menu-wrap {
  position: relative;
  z-index: 2;
  width: min(1260px, calc(100% - 9vw));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.62fr);
  gap: clamp(36px, 6vw, 94px);
  align-items: center;
  padding: 6vh 0 8vh;
}

.menu-main { max-width: 700px; }

.system-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: #8da0b5;
  margin-bottom: clamp(22px, 4vh, 42px);
}
.system-kicker .dim { color: #4c5b6e; }
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(157,255,106,0.8);
  animation: livePulse 2.1s ease-in-out infinite;
}

.menu-main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(80px, 10.2vw, 154px);
  font-weight: 650;
  line-height: 0.76;
  letter-spacing: -0.055em;
  color: #f3fbff;
  text-shadow: 0 0 70px rgba(105,230,255,0.12);
}
.menu-main h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(67,243,255,0.9);
  text-shadow: 0 0 44px rgba(67,243,255,0.28), 0 0 100px rgba(67,243,255,0.12);
  position: relative;
}
.menu-main h1 span::after {
  content: "";
  position: absolute;
  left: 4%; bottom: 0.08em;
  width: 92%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 82%);
  box-shadow: 0 0 12px rgba(67,243,255,0.5);
  opacity: 0.55;
}

.cn-title {
  margin-top: clamp(15px, 2.4vh, 25px);
  padding-left: 4px;
  font-size: clamp(10px, 1.05vw, 13px);
  font-weight: 500;
  letter-spacing: 0.72em;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(67,243,255,0.35);
}

.lede {
  margin: clamp(22px, 3.4vh, 35px) 0 0;
  padding-left: 13px;
  border-left: 1px solid rgba(67,243,255,0.33);
  font-size: clamp(12px, 1.12vw, 14px);
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #c1cfdd;
}
.lede span { color: #6f8196; font-size: 0.92em; }

.deploy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: min(330px, 100%);
  min-height: 68px;
  margin-top: clamp(26px, 4vh, 42px);
  padding: 12px 25px;
  border: 0;
  background: linear-gradient(100deg, #33e3f2, #9af9ff 58%, #c6fdff);
  color: #00161a;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%);
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s, filter 0.22s;
  box-shadow: 0 0 0 rgba(67,243,255,0);
}
.deploy::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}
.deploy:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 45px rgba(67,243,255,0.23); }
.deploy:hover::before { transform: translateX(130%); }
.deploy:active { transform: translateY(0); }
.btn-label {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.btn-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.17em;
  color: rgba(0,22,26,0.55);
}
.btn-sub i { font-style: normal; font-size: 12px; transition: transform 0.2s; }
.deploy:hover .btn-sub i { transform: translate(2px, -2px); }

.deploy.compact { width: 240px; min-height: 58px; margin-top: 0; padding: 9px 20px; }
.deploy.compact .btn-label { font-size: 15px; }

.controls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(24px, 4.5vh, 46px);
  padding-top: 16px;
  border-top: 1px solid rgba(125,140,166,0.13);
  max-width: 620px;
}
.controls-grid > div { display: flex; align-items: center; gap: 9px; }
.controls-grid em { font-style: normal; font-size: 9px; letter-spacing: 0.1em; color: #65778c; }
.keypair { display: inline-flex; gap: 3px; }

kbd, .keypair kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(125,140,166,0.27);
  border-bottom-color: rgba(125,140,166,0.13);
  background: rgba(255,255,255,0.035);
  color: #aebdd0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0;
  border-radius: 2px;
}

.headphone-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: #3f4c5e;
}

/* menu sidebar */

.menu-side {
  position: relative;
  align-self: center;
  padding: 26px 0 24px 30px;
  border-left: 1px solid rgba(125,140,166,0.15);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-side::before {
  content: "";
  position: absolute;
  left: -1px; top: 12%;
  width: 1px; height: 26%;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 9px rgba(67,243,255,0.45);
}
.side-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(125,140,166,0.14);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #91a2b6;
}
.side-head span { color: #445166; }
.stat-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(125,140,166,0.08);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #5b6b80;
}
.stat-line b { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.12em; color: #c0d0e0; }
.stat-line b.warn { color: var(--red); text-shadow: 0 0 12px rgba(255,59,92,0.3); }

.side-rule { height: 1px; margin: 22px 0 17px; background: linear-gradient(90deg, rgba(125,140,166,0.18), transparent); }
.side-subhead { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.18em; color: #6e8197; margin-bottom: 15px; }

.tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.tips li { position: relative; padding-left: 15px; }
.tips li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 4px; height: 4px;
  background: var(--magenta);
  box-shadow: 0 0 7px rgba(255,43,214,0.65);
  transform: rotate(45deg);
}
.tips b { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.07em; color: #b8c8d9; margin-bottom: 3px; }
.tips span { display: block; font-size: 9px; line-height: 1.65; color: #536277; letter-spacing: 0.02em; }

.radar {
  position: relative;
  width: 148px; height: 148px;
  margin: 28px auto 20px;
  border: 1px solid rgba(67,243,255,0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,38,50,0.28) 0%, rgba(5,10,15,0.15) 50%, transparent 71%);
  overflow: hidden;
}
.radar::before, .radar::after {
  content: ""; position: absolute; background: rgba(67,243,255,0.1);
}
.radar::before { left: 50%; top: 6%; width: 1px; height: 88%; }
.radar::after { top: 50%; left: 6%; height: 1px; width: 88%; }
.radar-ring { position: absolute; border: 1px solid rgba(67,243,255,0.11); border-radius: 50%; }
.radar-ring.r1 { inset: 19px; }
.radar-ring.r2 { inset: 38px; }
.radar-ring.r3 { inset: 57px; background: rgba(67,243,255,0.04); }
.radar-sweep {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(67,243,255,0.02) 250deg, rgba(67,243,255,0.16) 345deg, transparent 360deg);
  animation: sweeper 3.8s linear infinite;
}
@keyframes sweeper { to { transform: rotate(360deg); } }
.radar-blip { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 7px var(--red); }
.radar-blip.b1 { top: 34%; right: 24%; animation: blip 2.7s ease-in-out infinite; }
.radar-blip.b2 { bottom: 26%; left: 31%; animation: blip 3.3s 0.9s ease-in-out infinite; }
.radar-blip.b3 { top: 56%; left: 23%; animation: blip 4s 1.7s ease-in-out infinite; }
@keyframes blip { 0%, 100% { opacity: 0.15; } 30% { opacity: 1; } 55% { opacity: 0.25; } }
.radar-label {
  position: absolute; left: 0; right: 0; bottom: 34px;
  text-align: center;
  font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.16em; color: #3d4c5f;
}
.signal-row { display: flex; align-items: center; gap: 3px; margin-top: auto; }
.signal-row span { display: block; width: 4px; background: rgba(67,243,255,0.35); }
.signal-row span:nth-child(1) { height: 3px; }
.signal-row span:nth-child(2) { height: 5px; }
.signal-row span:nth-child(3) { height: 7px; }
.signal-row span:nth-child(4) { height: 9px; }
.signal-row span:nth-child(5) { height: 11px; }
.signal-row span:nth-child(6) { height: 5px; opacity: 0.3; }
.signal-row span:nth-child(7) { height: 7px; opacity: 0.3; }
.signal-row span:nth-child(8) { height: 9px; opacity: 0.3; }
.signal-row b { margin-left: 6px; font-family: var(--font-mono); font-size: 6.5px; font-weight: 400; letter-spacing: 0.12em; color: #4d5e71; }

.menu-foot {
  position: absolute;
  left: 4.5vw; right: 4.5vw; bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(125,140,166,0.1);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #3d4b5e;
}
.menu-foot b { color: #7b8ea3; font-weight: 400; }

/* ---------- pause ---------- */

.screen-pause,
.screen-over {
  align-items: center;
  justify-content: center;
  background: rgba(2,5,10,0.58);
  backdrop-filter: blur(9px) saturate(0.7);
}
.screen-pause::before,
.screen-over::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67,243,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,243,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  pointer-events: none;
}

.pause-card, .over-card {
  position: relative;
  width: min(660px, calc(100% - 40px));
  padding: clamp(28px, 4.4vw, 52px);
  background: linear-gradient(145deg, rgba(9,16,26,0.94), rgba(3,7,12,0.9));
  border: 1px solid rgba(109,236,255,0.18);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.035);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.pause-card::before, .over-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 130px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 10px rgba(67,243,255,0.7);
}
.pause-card .system-kicker { margin-bottom: 12px; }
.paused-dot { width: 6px; height: 6px; border: 1px solid var(--cyan); box-shadow: 0 0 8px rgba(67,243,255,0.6); }
.pause-card h2, .over-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #f0fbff;
}
.pause-card h2 span { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0.36em; color: var(--cyan); margin-top: 12px; }

.pause-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0 26px;
  border-top: 1px solid rgba(125,140,166,0.14);
  border-bottom: 1px solid rgba(125,140,166,0.14);
}
.pause-stats > div { padding: 17px 16px 16px 0; }
.pause-stats > div + div { padding-left: 20px; border-left: 1px solid rgba(125,140,166,0.12); }
.pause-stats span { display: block; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.15em; color: #67798e; margin-bottom: 6px; }
.pause-stats b { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: 0.03em; color: #eaf9ff; font-variant-numeric: tabular-nums; }

.pause-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 9px; }
.ghost {
  min-height: 58px;
  padding: 0 19px;
  border: 1px solid rgba(125,140,166,0.23);
  background: rgba(255,255,255,0.02);
  color: #8fa2b7;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ghost:hover { border-color: rgba(67,243,255,0.45); color: var(--cyan); background: rgba(67,243,255,0.04); }
.pause-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(125,140,166,0.12);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #536478;
}
.pause-foot kbd { margin-right: 5px; }
.text-btn {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #7f93aa;
  cursor: pointer;
  transition: color 0.2s;
}
.text-btn:hover { color: var(--cyan); }

/* ---------- game over ---------- */

.screen-over { background: rgba(8,2,6,0.64); }
.screen-over .over-card { border-color: rgba(255,59,92,0.23); }
.screen-over .over-card::before { background: var(--red); box-shadow: 0 0 10px rgba(255,59,92,0.7); }
.system-kicker.danger { color: #ff7c92; margin-bottom: 18px; }
.dead-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255,59,92,0.8); }
.over-card h2 { font-size: clamp(56px, 8vw, 96px); line-height: 0.88; }
.over-card h2 span { color: transparent; -webkit-text-stroke: 1px rgba(255,59,92,0.8); }
.over-copy {
  margin: 24px 0 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255,59,92,0.35);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #8e7a82;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 28px;
  border-top: 1px solid rgba(255,59,92,0.17);
  border-bottom: 1px solid rgba(255,59,92,0.17);
}
.stat-cell { padding: 15px 14px 14px 0; }
.stat-cell + .stat-cell { padding-left: 18px; border-left: 1px solid rgba(125,140,166,0.11); }
.stat-cell.wide { grid-column: span 4; border-bottom: 1px solid rgba(125,140,166,0.1); padding-left: 0; }
.stat-cell span { display: block; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.14em; color: #7b6b72; margin-bottom: 5px; }
.stat-cell b { font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: 0.04em; color: #f4eef0; font-variant-numeric: tabular-nums; }
.stat-cell.wide b { font-size: 41px; color: var(--red); text-shadow: 0 0 28px rgba(255,59,92,0.24); }
.over-actions { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.screen-over .deploy { background: linear-gradient(100deg, #ff3155, #ff8d83 60%, #ffc7bb); color: #1a0308; }
.screen-over .deploy .btn-sub { color: rgba(26,3,8,0.55); }
.over-foot { margin-top: 22px; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.09em; color: #4e3d44; }

/* ---------- loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020409;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader-inner { text-align: center; }
.loader-mark {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  color: #f0fbff;
}
.loader-mark span { color: var(--cyan); margin-left: 7px; font-weight: 400; }
.loader-text { margin-top: 19px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.27em; color: #6d8095; }
.loader-bar { width: 190px; height: 1px; margin: 17px auto 11px; background: rgba(125,140,166,0.16); overflow: hidden; }
.loader-bar i { display: block; width: 0; height: 100%; background: var(--cyan); box-shadow: 0 0 9px rgba(67,243,255,0.65); animation: loadFill 1.2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes loadFill { to { width: 100%; } }
.loader-sub { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.17em; color: #334154; }

.nojs {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: #03050a; color: #fff; font-size: 14px; z-index: 200;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .menu-wrap { grid-template-columns: minmax(0, 1fr) 220px; gap: 38px; width: calc(100% - 8vw); }
  .menu-side { padding-left: 22px; min-height: 440px; }
  .radar { width: 118px; height: 118px; margin: 20px auto 16px; }
  .radar-ring.r1 { inset: 15px; } .radar-ring.r2 { inset: 30px; } .radar-ring.r3 { inset: 46px; }
  .radar-label { bottom: 25px; }
  .topbar { padding: 18px 24px 0; }
  .vitals { left: 24px; } .ammo-panel { right: 24px; }
  .kill-feed { right: 24px; }
}

@media (max-width: 820px) {
  .menu-side { display: none; }
  .menu-wrap { grid-template-columns: 1fr; width: calc(100% - 12vw); }
  .menu-main { max-width: 580px; }
  .menu-main h1 { font-size: clamp(72px, 17vw, 130px); }
  .menu-foot { font-size: 6px; }
  .menu-foot span:last-child { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .wave-block { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); }
  .sys-block { grid-column: 2; }
  .brand-block { grid-column: 1; }
  .brandline .build { display: none; }
  .vitals { width: 230px; }
  .ammo-panel { width: 220px; }
  .ammo-row b { font-size: 40px; }
  .hp-num span { font-size: 33px; }
  .hud-panel { bottom: 18px; padding: 10px 12px; }
  .vitals { left: 16px; } .ammo-panel { right: 16px; }
  .toasts { bottom: 118px; }
  .kill-feed { top: 94px; right: 16px; width: 210px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell.wide { grid-column: span 2; }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n+4) { border-top: 1px solid rgba(125,140,166,0.11); }
  .pause-actions .deploy.compact { width: 100%; }
  .pause-actions .ghost { flex: 1; }
}

@media (max-width: 560px) {
  .topbar { padding: 12px 12px 0; }
  .brand-title { font-size: 10px; }
  .scoreline b { font-size: 18px; }
  .scoreline .label, .scoreline .slash { display: none; }
  .scoreline { gap: 6px; margin-top: 7px; }
  .scoreline #kills { font-size: 15px; }
  .combo { font-size: 8px; }
  .sys-btn { padding: 0 8px; height: 26px; font-size: 8px; }
  .pause-btn span { display: none; }
  .wave-block { top: 44px; }
  .eyebrow { font-size: 6px; }
  .wave-title { font-size: 9px; }
  .wave-title b { font-size: 15px; }
  .wave-track { width: 130px; }
  .remaining { font-size: 7px; }
  .wave-banner h2 { font-size: 42px; }
  .wave-banner p { font-size: 8px; letter-spacing: 0.18em; }
  .vitals, .ammo-panel { width: calc(50% - 22px); }
  .vitals { left: 12px; } .ammo-panel { right: 12px; }
  .panel-label { font-size: 6px; gap: 5px; }
  .panel-label em { display: none; }
  .hp-num span { font-size: 30px; }
  .ammo-row .mag { font-size: 11px; }
  .ammo-row small { display: none; }
  .panel-hint { font-size: 6px; white-space: nowrap; overflow: hidden; }
  .hud-corner { display: none; }
  #hud::before, #hud::after { display: none; }
  .kill-feed { top: 88px; width: 180px; }
  .feed-item { font-size: 7px; }
  .menu-wrap { padding: 4vh 0 10vh; width: calc(100% - 36px); }
  .menu-main h1 { font-size: clamp(64px, 20vw, 100px); }
  .cn-title { letter-spacing: 0.55em; }
  .lede { font-size: 11px; }
  .lede br { display: none; }
  .lede span { display: block; margin-top: 3px; }
  .deploy { width: 100%; }
  .controls-grid { gap: 9px 14px; }
  .controls-grid em { font-size: 8px; }
  .controls-grid > div:nth-child(4) { display: none; }
  .menu-foot { left: 18px; right: 18px; bottom: 14px; }
  .pause-card, .over-card { padding: 24px 22px; width: calc(100% - 24px); }
  .pause-stats { margin: 22px 0 20px; }
  .pause-stats b { font-size: 20px; }
  .pause-stats > div { padding-right: 8px; }
  .pause-stats > div + div { padding-left: 10px; }
  .pause-card h2, .over-card h2 { font-size: 42px; }
  .over-card h2 { font-size: 60px; }
  .pause-actions .ghost { min-height: 46px; }
  .stat-cell b { font-size: 18px; }
  .stat-cell.wide b { font-size: 32px; }
  .over-actions .deploy.compact { width: 100%; }
  .over-actions .ghost { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
