@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Space+Mono:wght@400;700&display=swap");

:root {
  --ink: #f5f7f2;
  --acid: #c9ff2f;
  --orange: #ff5b35;
  --black: #090b0f;
  --panel: rgba(7, 10, 13, 0.78);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--ink);
  font-family: "Barlow Condensed", Impact, sans-serif;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: .055;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #000 4px);
  mix-blend-mode: multiply;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% 45%, transparent 48%, rgba(3,7,10,.18) 76%, rgba(2,4,7,.52) 112%);
}

.game-shell, #game { width: 100%; height: 100%; }
#game { display: block; }
.hidden { display: none !important; }

.round-restart-countdown {
  position: fixed;
  top: max(90px, 14vh);
  left: 50%;
  z-index: 45;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 1px solid var(--orange);
  background: rgba(9, 11, 15, .92);
  color: var(--ink);
  box-shadow: 0 4px 24px #0008;
  pointer-events: none;
}
.round-restart-countdown span { font: 700 11px "Space Mono", monospace; letter-spacing: .08em; white-space: nowrap; }
.round-restart-countdown strong { color: var(--orange); font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(9,11,15,.35), rgba(9,11,15,.88)),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(201,255,47,.05) 90px);
  backdrop-filter: blur(7px) saturate(.82);
}

.overlay::before, .overlay::after {
  position: absolute;
  content: "";
  background: var(--acid);
}
.overlay::before { width: 22vw; height: 7px; top: 8vh; right: 0; }
.overlay::after { width: 7px; height: 22vh; bottom: 0; left: 8vw; }

.eyebrow {
  color: var(--acid);
  font: 700 12px/1 "Space Mono", monospace;
  letter-spacing: .24em;
}

h1, h2 {
  margin: 14px 0 8px;
  font-size: clamp(78px, 13vw, 190px);
  line-height: .7;
  letter-spacing: -.045em;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 rgba(0,0,0,.45);
}
h1 span { color: var(--acid); }
h2 { font-size: clamp(70px, 12vw, 160px); color: var(--acid); }
.lede { margin: 24px 0 32px; color: #bbc0bb; font: 400 15px "Space Mono", monospace; }

button {
  position: relative;
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 18px 22px 18px 28px;
  border: 0;
  color: #080a08;
  background: var(--acid);
  font: 800 18px "Barlow Condensed", sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
  clip-path: polygon(0 0, 94% 0, 100% 25%, 100% 100%, 6% 100%, 0 75%);
  box-shadow: 0 13px 34px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.35);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
button:hover { transform: translateY(-3px); filter: brightness(1.12); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 24px rgba(201,255,47,.18); }
button kbd { padding: 4px 8px; color: var(--acid); background: var(--black); }

.control-picker { display: grid; grid-template-columns: auto minmax(260px, 420px); gap: 12px 14px; align-items: center; margin: 0 0 18px; }
.control-picker span { color: #d6ddd7; font: 800 11px "Space Mono", monospace; letter-spacing: .15em; }
.control-picker select { padding: 11px 38px 11px 14px; color: #fff; border: 2px solid rgba(67,169,208,.8); outline: 0; background: #10263b; font: 700 12px "Space Mono", monospace; cursor: pointer; }
.control-picker select:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(201,255,47,.16); }
.mode-buttons { display: flex; gap: 12px; }
.name-picker { display: grid; grid-template-columns: auto minmax(180px, 280px); gap: 7px 14px; align-items: center; margin: 20px 0 16px; }
.name-picker span { color: var(--acid); font: 800 11px "Space Mono", monospace; letter-spacing: .18em; }
.name-picker input { padding: 11px 14px; color: #fff; border: 2px solid rgba(201,255,47,.72); outline: 0; background: rgba(8,12,18,.88); font: 800 16px "Space Mono", monospace; text-transform: uppercase; }
.name-picker input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(201,255,47,.18); }
.name-picker small { grid-column: 2; color: #99a3ad; font: 700 9px "Space Mono", monospace; }
.audio-settings { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin: 0 0 16px; font: 700 10px "Space Mono", monospace; }
.audio-settings button { min-width: 112px; padding: 10px 14px; font-size: 10px; }
.audio-settings label { display: flex; align-items: center; gap: 9px; }
.audio-settings input { width: 100px; accent-color: var(--acid); }
.audio-settings output { min-width: 34px; }
.audio-settings small { color: #a6b0ab; font-size: 8px; }
.mode-buttons { flex-wrap: wrap; }
#startScreen { overflow-y: auto; }
#startScreen .mode-buttons { justify-content: center; max-width: 1120px; }
#startScreen > .controls,
#startScreen > .control-picker { display: none; }
.mode-category {
  flex: 1 1 480px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(7,12,17,.8), rgba(16,31,41,.62));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 16px 34px rgba(0,0,0,.2);
}
.mode-category > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 4px 9px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mode-category > header span { color: var(--acid); font: 800 13px "Space Mono", monospace; letter-spacing: .16em; }
.mode-category > header small { color: #87939b; font: 700 8px "Space Mono", monospace; letter-spacing: .12em; }
.mode-category > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mode-category button { min-width: 0 !important; padding: 15px 14px 34px; gap: 10px; justify-content: space-between; }
.mode-category button kbd { font-size: 8px; white-space: nowrap; }
.mode-category .player-count {
  position: absolute;
  bottom: 9px;
  left: 14px;
  color: #aeb9b2;
  font: 700 8px "Space Mono", monospace;
  font-style: normal;
  letter-spacing: .12em;
}
#startButton .player-count { color: #24300b; }
#startButton, #skyMapButton {
  border-bottom: 4px solid var(--acid);
  font-size: 18px;
}
#skyMapButton { border-color: #43a9d0; background: rgba(11,44,67,.92); }

.briefing-screen { overflow-y: auto; }
.briefing-screen h2 { margin: 22px 0 12px; font-size: clamp(54px, 8vw, 105px); line-height: .82; }
.briefing-objective { max-width: 760px; margin: 0 0 24px; color: #c1c9c4; font: 600 14px/1.6 "Space Mono", monospace; }
.briefing-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.4fr); gap: 16px; width: min(940px, 94vw); text-align: left; }
.briefing-panel { padding: 18px; border: 1px solid rgba(201,255,47,.24); background: rgba(6,11,16,.76); box-shadow: 0 18px 42px rgba(0,0,0,.3); }
.briefing-panel h3 { margin: 0 0 14px; color: var(--acid); font: 800 11px "Space Mono", monospace; letter-spacing: .2em; }
.briefing-list { display: grid; gap: 8px; }
.briefing-list p { margin: 0; padding: 9px 11px; color: #e7ebe7; border-left: 3px solid #43a9d0; background: rgba(67,169,208,.1); font: 700 11px/1.4 "Space Mono", monospace; }
.briefing-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.briefing-controls div { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 9px; background: rgba(255,255,255,.055); }
.briefing-controls kbd { flex: 0 0 auto; padding: 4px 7px; color: #0a0d0b; background: var(--acid); }
.briefing-controls span { color: #bdc5bf; font: 700 9px/1.3 "Space Mono", monospace; letter-spacing: .08em; }
.briefing-actions { display: flex; gap: 14px; margin-top: 20px; }
.briefing-screen .control-picker { margin: 18px 0 0; }
button.secondary { color: var(--ink); border: 1px solid rgba(201,255,47,.55); background: rgba(12,35,55,.85); }
button.secondary kbd { color: #080a08; background: var(--acid); }
.hide-seek-button { border-color: rgba(255,201,40,.8) !important; }
.hide-seek-button kbd { background: #ffc928 !important; }
.vehicle-button { border-color: rgba(255,91,53,.85) !important; }
.vehicle-button kbd { background: #ff5b35 !important; }
.controls { display: flex; gap: 30px; margin-top: 52px; }
.controls div { display: flex; flex-direction: column; gap: 8px; }
kbd { font: 700 12px "Space Mono", monospace; }
.controls span { color: #747a77; font: 600 11px "Space Mono", monospace; letter-spacing: .13em; }

.hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.hud.respawn-active { pointer-events: auto; }
.killer-view-active .hud { visibility: hidden; }
.killer-view { position: fixed; inset: 0; z-index: 20; pointer-events: none; border: 5px solid #ff7048; background: linear-gradient(#071014c9, transparent 28% 75%, #071014cf); text-align: center; }
.killer-view[hidden] { display: none; }
.killer-view header { padding: 72px 16px 26px; }
.killer-view header span, .killer-view small, .killer-view footer { font: 700 11px "Space Mono", monospace; letter-spacing: .12em; }
.killer-view h2 { margin: 6px 0; overflow-wrap: anywhere; color: #ffb296; font: 900 clamp(24px, 5vw, 48px) "Barlow Condensed", sans-serif; }
.killer-view footer { position: absolute; bottom: 30px; left: 0; right: 0; }
.killer-view footer strong { font-size: 22px; color: #ffb296; }
.spawn-shield { position: absolute; top: 76px; left: 50%; z-index: 4; padding: 9px 16px; color: #102033; border: 2px solid #fff; background: #62ff91; box-shadow: 0 0 22px rgba(98,255,145,.65); font: 900 11px "Space Mono", monospace; letter-spacing: .13em; transform: translateX(-50%) skewX(-5deg); animation: shield-pulse .7s alternate infinite; }
.spawn-shield strong { margin-left: 9px; font-size: 18px; }
@keyframes shield-pulse { to { filter: brightness(1.2); box-shadow: 0 0 34px rgba(98,255,145,.85); } }
.role-banner {
  position: absolute;
  top: 72px;
  left: 50%;
  z-index: 4;
  display: grid;
  min-width: 280px;
  padding: 10px 18px;
  color: #091018;
  border-bottom: 4px solid #ffc928;
  background: rgba(255,255,255,.92);
  text-align: center;
  transform: translateX(-50%) skewX(-4deg);
}
.role-banner span, .role-banner small { font: 700 8px "Space Mono", monospace; letter-spacing: .14em; }
.role-banner strong { color: #d54f26; font: 900 28px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.hide-seek-mode.hider-role .role-banner { border-color: #42e59b; }
.hide-seek-mode.hider-role .role-banner strong { color: #178553; }
.hide-seek-mode.hider-role .ammo-panel,
.hide-seek-mode.hider-role .weapon-rack,
.hide-seek-mode.hider-role .crosshair,
.hide-seek-mode.hider-role .scope { display: none !important; }
.hide-seek-mode.hider-role .respawn-loadout { display: none; }
.hide-seek-mode #radar { display: none; }
.hide-seek-mode .multiplayer-scoreboard header small { display: none; }
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px;
  border-top: 4px solid var(--acid);
  font: 800 17px "Barlow Condensed", sans-serif;
  letter-spacing: .1em;
  background: linear-gradient(rgba(5,9,13,.5), transparent);
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.performance-monitor { position: fixed; top: 50%; right: 20px; z-index: 25; transform: translateY(-50%); width: 136px; padding: 12px; border: 1px solid rgba(201,255,47,.3); border-right: 3px solid var(--acid); background: rgba(9,11,15,.85); color: #fff; pointer-events: none; font: 700 10px "Space Mono", monospace; font-variant-numeric: tabular-nums; }
.performance-monitor > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; }
.performance-monitor > div > span { color: #b4c7df; font-size: 9px; }
.performance-monitor strong { font-size: 19px; }
.performance-monitor strong small { margin-left: 4px; color: #b4c7df; font-size: 9px; }
.performance-monitor > small { display: block; margin-top: 8px; color: var(--acid); font-size: 8px; }
.performance-monitor > small.offline { color: var(--orange); }
.performance-monitor > small.online { color: #42e59b; }
@media (max-width: 600px) { .performance-monitor { right: 8px; width: 116px; padding: 8px; } }
.match { display: flex; gap: 18px; align-items: center; }
.match span { color: #a4aaa6; font: 700 9px "Space Mono", monospace; }
.match strong { color: var(--acid); font: 700 18px "Space Mono", monospace; }

.score-card {
  position: absolute;
  top: 70px; left: 28px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--acid);
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(10px) saturate(1.2);
  transform: skewX(-4deg);
}
.score-card span { color: #929894; font: 700 8px "Space Mono", monospace; letter-spacing: .16em; }
.score-card strong { font: 800 32px/1 "Barlow Condensed", sans-serif; }
.score-card i { grid-column: 1 / -1; height: 1px; background: rgba(255,255,255,.12); }

.multiplayer-scoreboard {
  position: absolute;
  top: 170px;
  left: 28px;
  width: 235px;
  overflow: hidden;
  border-left: 3px solid #42e59b;
  background: rgba(12,35,55,.82);
  box-shadow: 0 12px 30px rgba(35,94,130,.2);
}
.multiplayer-scoreboard header, .multiplayer-scoreboard div div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.multiplayer-scoreboard header { padding: 9px 12px; background: rgba(66,229,155,.13); }
.multiplayer-scoreboard header span { font: 800 11px "Space Mono", monospace; letter-spacing: .1em; }
.multiplayer-scoreboard header small { color: #42e59b; font: 700 7px "Space Mono", monospace; }
.multiplayer-scoreboard div div { padding: 7px 12px; border-top: 1px solid rgba(255,255,255,.08); font: 700 10px "Space Mono", monospace; }
.multiplayer-scoreboard div div.local { color: var(--acid); }
.multiplayer-scoreboard b { color: #fff; font-size: 14px; }

#radar {
  position: absolute;
  top: 70px; right: 28px;
  width: 150px; height: 150px;
  border: 1px solid rgba(201,255,47,.35);
  border-radius: 50%;
  background: rgba(7, 10, 13, .64);
  transform: rotate(45deg);
}

.crosshair {
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%);
}
.crosshair i { position: absolute; background: rgba(255,255,255,.88); box-shadow: 0 0 3px #000; }
.crosshair i:nth-child(1), .crosshair i:nth-child(2) { width: 8px; height: 2px; top: 16px; }
.crosshair i:nth-child(1) { left: 0; }
.crosshair i:nth-child(2) { right: 0; }
.crosshair i:nth-child(3), .crosshair i:nth-child(4) { width: 2px; height: 8px; left: 16px; }
.crosshair i:nth-child(3) { top: 0; }
.crosshair i:nth-child(4) { bottom: 0; }
.crosshair.firing { transform: translate(-50%,-50%) scale(1.35); }

.shotgun-spread { position: absolute; top: 50%; left: 50%; width: var(--shotgun-spread-size); height: var(--shotgun-spread-size); transform: translate(-50%, -50%); border: 1px solid rgba(255,160,120,.95); border-radius: 50%; box-sizing: border-box; box-shadow: 0 0 7px rgba(255,82,40,.32); pointer-events: none; }
.shotgun-spread[hidden] { display: none; }

.accuracy-reticle { position: absolute; top: 50%; left: 50%; width: 0; height: 0; pointer-events: none; color: #d6ff97; }
.accuracy-reticle[hidden] { display: none; }
.accuracy-reticle.unsteady { color: #ffc56b; }
.accuracy-reticle b { position: absolute; top: 0; left: 0; width: 9px; height: 1px; background: currentColor; box-shadow: 0 0 3px #000; transform-origin: 0 0; transition: transform .1s linear, color .1s linear; }
.accuracy-reticle b::after { content: ""; position: absolute; top: -2px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 3px #000; }
.accuracy-reticle b:nth-child(1) { transform: translateX(var(--accuracy-radius)); }
.accuracy-reticle b:nth-child(2) { transform: rotate(90deg) translateX(var(--accuracy-radius)); }
.accuracy-reticle b:nth-child(3) { transform: rotate(180deg) translateX(var(--accuracy-radius)); }
.accuracy-reticle b:nth-child(4) { transform: rotate(270deg) translateX(var(--accuracy-radius)); }

.hitmarker {
  position: absolute;
  top: 50%; left: 50%;
  opacity: 0;
  color: var(--acid);
  font: 400 42px/1 Arial;
  transform: translate(-50%,-50%) rotate(45deg);
}
.hitmarker.show { animation: hit .18s ease-out; }
@keyframes hit { 0% { opacity: 1; transform: translate(-50%,-50%) rotate(45deg) scale(1.25); } 100% { opacity: 0; } }

.damage-flash { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 100px 45px rgba(255,40,20,.65); }
.damage-flash.show { animation: damage .35s; }
.damage-direction { position: absolute; top: 50%; left: 50%; width: 210px; height: 210px; opacity: 0; transform: translate(-50%,-50%) rotate(var(--hit-angle, 0rad)); pointer-events: none; }
.damage-direction i { position: absolute; top: -8px; left: 50%; width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 28px solid #ff3f35; filter: drop-shadow(0 0 7px #ff2418); transform: translateX(-50%); }
.damage-direction.show { animation: direction-hit .72s ease-out; }
@keyframes direction-hit { 0% { opacity: 1; scale: .82; } 35% { opacity: 1; } 100% { opacity: 0; scale: 1.08; } }
@keyframes damage { 0%,35% { opacity: 1; } 100% { opacity: 0; } }

.scope {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}
.scope.scope-sniper {
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(201,255,47,.7) 50%, transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgba(201,255,47,.7) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle, transparent 0 31%, rgba(201,255,47,.4) 31.3% 31.6%, transparent 32% 47%, rgba(0,0,0,.94) 47.5%);
}
.scope.scope-rifle {
  background:
    linear-gradient(90deg, transparent calc(50% - 22px), rgba(201,255,47,.72) calc(50% - 21px) calc(50% - 8px), transparent calc(50% - 7px) calc(50% + 7px), rgba(201,255,47,.72) calc(50% + 8px) calc(50% + 21px), transparent calc(50% + 22px)),
    linear-gradient(transparent calc(50% - 22px), rgba(201,255,47,.72) calc(50% - 21px) calc(50% - 8px), transparent calc(50% - 7px) calc(50% + 7px), rgba(201,255,47,.72) calc(50% + 8px) calc(50% + 21px), transparent calc(50% + 22px)),
    radial-gradient(circle, #c9ff2f 0 2px, rgba(201,255,47,.2) 3px, transparent 7px);
}
.scope.scope-machine {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,201,40,.42) 50%, transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgba(255,201,40,.42) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle, transparent 0 30px, rgba(255,201,40,.75) 31px 33px, transparent 34px);
}
.scope.show { display: block; }
.scope i { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(201,255,47,.35); border-radius: 50%; transform: translate(-50%,-50%); }
.scope.scope-sniper i:first-child { width: 28vw; height: 28vw; }
.scope.scope-sniper i:nth-child(2) { width: 10vw; height: 10vw; }
.scope.scope-rifle i:first-child { width: 112px; height: 112px; border-color: rgba(201,255,47,.2); }
.scope.scope-rifle i:nth-child(2) { width: 48px; height: 48px; border-color: rgba(201,255,47,.48); }
.scope.scope-machine i:first-child { width: 92px; height: 92px; border-color: rgba(255,201,40,.28); border-style: dashed; }
.scope.scope-machine i:nth-child(2) { width: 12px; height: 12px; border-color: #ffc928; }
.scope span { position: absolute; left: 50%; bottom: 12%; color: rgba(201,255,47,.7); font: 700 9px "Space Mono"; letter-spacing: .18em; transform: translateX(-50%); }
.scope.show span { display: none; }

/* Weapon-specific optics */
.scope::before, .scope::after { position: absolute; content: ""; pointer-events: none; }
.scope-ranger {
  background:
    radial-gradient(circle, rgba(190,255,225,.05) 0 10%, transparent 24%),
    radial-gradient(circle, transparent 0 43%, rgba(5,10,12,.14) 64%, rgba(2,4,6,.62) 100%);
}
.scope-ranger::before { inset: calc(50% - 52px); border: 2px solid rgba(143,255,189,.68); border-radius: 50%; box-shadow: 0 0 8px rgba(80,255,155,.4), inset 0 0 12px rgba(80,255,155,.18); }
.scope-ranger::after { top: 50%; left: 50%; width: 7px; height: 7px; border: 2px solid #b7ffcf; border-radius: 50%; box-shadow: 0 0 9px #42e59b; transform: translate(-50%,-50%); }
.scope-ranger i:first-child { width: 124px; height: 1px; border: 0; border-radius: 0; background: linear-gradient(90deg, #8affb5 0 35%, transparent 35% 65%, #8affb5 65%); opacity: .72; }
.scope-ranger i:nth-child(2) { width: 1px; height: 124px; border: 0; border-radius: 0; background: linear-gradient(#8affb5 0 35%, transparent 35% 65%, #8affb5 65%); opacity: .72; }

.scope-ravager {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,198,48,.28) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle, transparent 0 38%, rgba(18,12,3,.18) 62%, rgba(4,3,2,.68) 100%);
}
.scope-ravager::before { top: calc(50% - 42px); left: 50%; width: 78px; height: 78px; border-right: 3px solid #ffc928; border-bottom: 3px solid #ffc928; transform: translateX(-50%) rotate(45deg); filter: drop-shadow(0 0 5px rgba(255,190,30,.6)); }
.scope-ravager::after { top: 50%; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #fff1a5; box-shadow: 0 0 10px #ffc928; }
.scope-ravager i:first-child { width: 150px; height: 78px; border-color: rgba(255,201,40,.48); border-width: 0 0 1px; border-radius: 0; }
.scope-ravager i:nth-child(2) { width: 72px; height: 120px; border-color: rgba(255,201,40,.35); border-style: dashed; }

.scope-longbow {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(214,240,255,.76) 50%, transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgba(214,240,255,.76) 50%, transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, transparent 0 calc(50% - 1px), rgba(0,0,0,0) 50%),
    radial-gradient(circle, rgba(122,183,208,.08) 0 33%, rgba(156,215,232,.18) 33.3% 33.6%, transparent 34% 43%, rgba(0,0,0,.97) 43.5%);
}
.scope-longbow::before { top: 50%; left: 50%; width: 8px; height: 36vh; transform: translate(-50%,-50%); background: repeating-linear-gradient(transparent 0 25px, rgba(213,241,255,.78) 26px 28px, transparent 29px 36px); opacity: .78; }
.scope-longbow::after { top: 50%; left: 50%; width: 36vh; height: 8px; transform: translate(-50%,-50%); background: repeating-linear-gradient(90deg, transparent 0 25px, rgba(213,241,255,.78) 26px 28px, transparent 29px 36px); opacity: .78; }
.scope-longbow i:first-child { width: 26vh; height: 26vh; border-color: rgba(210,240,255,.34); }
.scope-longbow i:nth-child(2) { width: 3px; height: 3px; border: 0; background: #eafaff; box-shadow: 0 0 8px #8bdfff; }

.scope-breaker { background: radial-gradient(circle, transparent 0 34%, rgba(59,16,5,.12) 58%, rgba(10,4,2,.62) 100%); }
.scope-breaker::before { top: 50%; left: 50%; width: var(--shotgun-spread-size); height: var(--shotgun-spread-size); outline: 1px solid rgba(255,160,120,.95); border-radius: 50%; box-shadow: 0 0 7px rgba(255,82,40,.32); background: rgba(255,112,72,.025); transform: translate(-50%,-50%); }
.scope-breaker::after { top: 50%; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: #ffd0be; transform: translate(-50%,-50%); }
.scope-breaker i { display: none; }

.scope-viper { background: radial-gradient(circle at 50% 50%, rgba(50,255,177,.055), transparent 26%, rgba(1,10,7,.52) 100%); }
.scope-viper::before { top: 50%; left: 50%; width: 64px; height: 64px; border: 2px solid rgba(66,229,155,.68); border-radius: 22% 22% 45% 45%; box-shadow: 0 0 9px rgba(66,229,155,.4); transform: translate(-50%,-50%); }
.scope-viper::after { top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #d5ffec; box-shadow: 0 0 10px #42e59b; transform: translate(-50%,-50%); }
.scope-viper i:first-child { width: 110px; height: 1px; border: 0; border-radius: 0; background: linear-gradient(90deg, transparent, #42e59b 22% 38%, transparent 38% 62%, #42e59b 62% 78%, transparent); }
.scope-viper i:nth-child(2) { width: 1px; height: 110px; border: 0; border-radius: 0; background: linear-gradient(transparent, #42e59b 22% 38%, transparent 38% 62%, #42e59b 62% 78%, transparent); }

.scope-comet {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,154,52,.62) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle, rgba(255,170,65,.05) 0 31%, rgba(255,148,45,.32) 31.5% 32%, transparent 32.5% 43%, rgba(0,0,0,.96) 43.5%);
}
.scope-comet::before { top: 50%; left: calc(50% + 13px); width: 64px; height: 150px; transform: translateY(-18%); background: repeating-linear-gradient(transparent 0 17px, rgba(255,150,45,.75) 18px 20px, transparent 21px 27px); clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); }
.scope-comet::after { top: calc(50% - 4px); left: calc(50% - 4px); width: 8px; height: 8px; border: 2px solid #fff0c7; border-radius: 50%; box-shadow: 0 0 9px #ff8a38; }
.scope-comet i:first-child { width: 29vh; height: 29vh; border-color: rgba(255,145,48,.35); }
.scope-comet i:nth-child(2) { width: 12vh; height: 12vh; border-color: rgba(255,145,48,.5); border-style: dashed; }

.health-panel, .medkit-copy { display: flex; justify-content: space-between; margin-top: 10px; color: #9fffb9; font: 800 9px "Space Mono", monospace; letter-spacing: .08em; }
.medkit-copy b { color: #fff; font-size: 13px; }
.medkit-track { height: 6px; margin-top: 5px; border: 1px solid rgba(98,255,145,.35); background: #122219; }
.medkit-track i { display: block; width: 0; height: 100%; background: #62ff91; box-shadow: 0 0 10px #62ff91; transition: width .06s linear; }
.ammo-panel {
  position: absolute;
  bottom: 30px;
  padding: 13px 18px;
  background: var(--panel);
  border-bottom: 3px solid var(--acid);
  box-shadow: 0 14px 32px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(10px) saturate(1.2);
}
.health-panel { left: 28px; width: 230px; }
.health-copy { display: flex; justify-content: space-between; align-items: end; }
.health-copy span, .ammo-panel > span { color: #9ba19c; font: 700 9px "Space Mono", monospace; letter-spacing: .15em; }
.health-copy strong { font: 800 38px/1 "Barlow Condensed", sans-serif; }
.health-track { height: 5px; margin-top: 9px; background: #31352f; }
.health-track i { display: block; width: 100%; height: 100%; background: var(--acid); transition: width .2s, background .2s; }
.medkit-copy { display: flex; justify-content: space-between; margin-top: 10px; color: #9fffb9; font: 800 9px "Space Mono", monospace; letter-spacing: .08em; }
.medkit-copy b { color: #fff; font-size: 13px; }
.medkit-track { height: 6px; margin-top: 5px; border: 1px solid rgba(98,255,145,.35); background: #122219; }
.medkit-track i { display: block; width: 0; height: 100%; background: #62ff91; box-shadow: 0 0 10px #62ff91; transition: width .06s linear; }
.ammo-panel { right: 28px; min-width: 150px; text-align: right; }
.sidearm-hint { display: block; margin-top: 4px; color: #b4c7df; font: 700 8px "Space Mono", monospace; }
.ammo-panel div strong { font: 800 44px/1 "Barlow Condensed", sans-serif; }
.ammo-panel div i { margin-left: 5px; color: #7c827f; font: 700 12px "Space Mono", monospace; }

.grenade-copy { display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 7px; color: #ffcf5a; font: 800 9px "Space Mono", monospace; letter-spacing: .1em; }
.grenade-copy b { min-width: 20px; color: #fff; font-size: 17px; }
.weapon-rack {
  position: absolute;
  bottom: 31px;
  left: 50%;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}
.weapon-rack div {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 108px;
  padding: 8px 10px;
  color: #7e8580;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(7,10,13,.6);
  font: 700 9px "Space Mono", monospace;
}
.weapon-rack div.active { color: var(--ink); border-color: var(--acid); background: rgba(7,10,13,.9); }
.weapon-rack span { letter-spacing: .05em; }
.weapon-rack div.active kbd { color: var(--black); background: var(--acid); }
.weapon-rack kbd { padding: 2px 5px; color: #899087; border: 1px solid #525951; }

.feed { position: absolute; top: 235px; right: 28px; text-align: right; }
.feed p { margin: 0 0 5px; font: 700 11px "Space Mono", monospace; animation: fadeFeed 3s forwards; }
.feed b { color: var(--acid); }
@keyframes fadeFeed { 0%,75%{opacity:1} 100%{opacity:0} }

.message {
  position: absolute;
  top: 22%; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(560px, 85vw); text-align: center;
  font: 900 clamp(18px, 2.7vw, 32px) "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  transform: translateX(-50%);
}
.message-item { padding: 3px 10px; text-shadow: 0 2px 8px #000; animation: message 1.8s both; }
@keyframes message { 0%{opacity:0;transform:translateY(6px)} 12%,80%{opacity:1;transform:translateY(0)} 100%{opacity:0} }
.grenade-charge { position: absolute; top: calc(50% + 64px); left: 50%; transform: translateX(-50%); width: min(190px, 60vw); padding: 8px; background: #091013cc; border: 1px solid #ffffff38; font: 700 9px "Space Mono", monospace; }
.grenade-charge[hidden] { display: none; }
.grenade-charge > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.grenade-charge-track { height: 6px; background: #ffffff26; overflow: hidden; }
.grenade-charge-track i { display: block; height: 100%; background: var(--acid); transform: scaleX(0); transform-origin: left; }

.respawn-screen {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  background:
    linear-gradient(rgba(8,10,13,.86), rgba(8,10,13,.94)),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(255,91,53,.08) 90px);
  backdrop-filter: grayscale(1) blur(3px);
}
.respawn-screen { pointer-events: auto; }
.respawn-loadout { display: flex; flex-direction: column; gap: 8px; width: min(360px, 80vw); margin: 20px 0 14px; }
.respawn-loadout span { color: var(--acid); font: 800 10px "Space Mono", monospace; letter-spacing: .18em; }
.respawn-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.respawn-actions button { min-width: 260px; justify-content: space-between; }
#spawnButton:disabled { color: #757b77; background: #242925; cursor: not-allowed; filter: grayscale(1); transform: none; }
#spawnButton.ready { box-shadow: 0 0 28px rgba(201,255,47,.42); }
.respawn-screen h2 { margin: 18px 0 8px; color: var(--orange); font-size: clamp(64px, 10vw, 140px); }
.respawn-screen p { color: #a8ada9; font: 700 12px "Space Mono", monospace; letter-spacing: .12em; }
.respawn-clock {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 12px 18px;
  border-left: 3px solid var(--acid);
  background: rgba(0,0,0,.52);
}
.respawn-clock span { color: #9aa09b; font: 700 10px "Space Mono", monospace; letter-spacing: .16em; }
.respawn-clock strong { min-width: 32px; color: var(--acid); font: 900 48px/1 "Barlow Condensed", sans-serif; }

#resultText { color: #a8ada9; font: 400 14px "Space Mono", monospace; }

@media (max-width: 650px) {
  #startScreen { justify-content: flex-start; }
  #startScreen .mode-buttons { width: 100%; }
  #startScreen .mode-buttons button { width: 100%; justify-content: space-between; }
  .mode-category { flex-basis: 100%; }
  .mode-category > div { grid-template-columns: 1fr; }
  .mode-category > header small { display: none; }
  .briefing-screen { justify-content: flex-start; }
  .briefing-grid { grid-template-columns: 1fr; }
  .briefing-controls { grid-template-columns: 1fr; }
  .briefing-actions { width: 94vw; flex-direction: column-reverse; }
  .briefing-actions button { width: 100%; justify-content: space-between; }
  .controls { gap: 17px; flex-wrap: wrap; justify-content: center; }
  .multiplayer-scoreboard {
  position: absolute;
  top: 170px;
  left: 28px;
  width: 235px;
  overflow: hidden;
  border-left: 3px solid #42e59b;
  background: rgba(12,35,55,.82);
  box-shadow: 0 12px 30px rgba(35,94,130,.2);
}
.multiplayer-scoreboard header, .multiplayer-scoreboard div div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.multiplayer-scoreboard header { padding: 9px 12px; background: rgba(66,229,155,.13); }
.multiplayer-scoreboard header span { font: 800 11px "Space Mono", monospace; letter-spacing: .1em; }
.multiplayer-scoreboard header small { color: #42e59b; font: 700 7px "Space Mono", monospace; }
.multiplayer-scoreboard div div { padding: 7px 12px; border-top: 1px solid rgba(255,255,255,.08); font: 700 10px "Space Mono", monospace; }
.multiplayer-scoreboard div div.local { color: var(--acid); }
.multiplayer-scoreboard b { color: #fff; font-size: 14px; }

#radar { width: 100px; height: 100px; }
  .health-panel { width: 170px; }
  .lede { max-width: 300px; }
  .grenade-copy { display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 7px; color: #ffcf5a; font: 800 9px "Space Mono", monospace; letter-spacing: .1em; }
.grenade-copy b { min-width: 20px; color: #fff; font-size: 17px; }
.weapon-rack { display: none; }
}

.parkour-hud {
  position: absolute;
  top: 24px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 22px;
  color: #14314b;
  border-bottom: 4px solid #ff7048;
  background: rgba(255,255,255,.88);
  transform: translateX(-50%) skewX(-4deg);
}
.parkour-hud span, .parkour-hud small { font: 700 9px "Space Mono", monospace; letter-spacing: .14em; }
.parkour-hud strong { color: #1b75a6; font: 900 30px/1 "Barlow Condensed", sans-serif; }
.parkour-mode .score-card,
.parkour-mode #radar,
.parkour-mode .health-panel,
.parkour-mode .ammo-panel,
.parkour-mode .weapon-rack,
.parkour-mode .crosshair,
.parkour-mode .feed,
.parkour-mode .match,
.parkour-mode .multiplayer-scoreboard { display: none !important; }
.vehicle-hud {
  display: none;
  position: absolute;
  left: 50%; bottom: 28px;
  min-width: 340px;
  padding: 10px 22px;
  color: #fff;
  border: 1px solid rgba(255,180,61,.85);
  background: linear-gradient(90deg, rgba(12,16,20,.9), rgba(77,31,13,.82));
  transform: translateX(-50%) skewX(-4deg);
  text-align: center;
}
.vehicle-hud span, .vehicle-hud small { display: block; font: 700 9px "Space Mono", monospace; letter-spacing: .14em; }
.vehicle-hud strong { display: block; color: #ffb43d; font: 900 30px/1 "Barlow Condensed", sans-serif; }
.vehicle-mode .vehicle-hud { display: block; }
.vehicle-mode .weapon-rack,
.vehicle-mode .ammo-panel,
.vehicle-mode .medkit-copy,
.vehicle-mode .medkit-track { display: none !important; }
.scope-vehicle { background: radial-gradient(circle, rgba(255,180,61,.035) 0 24%, transparent 25% 40%, rgba(3,7,10,.72) 62% 100%); }
.scope-vehicle::before { top: 50%; left: 50%; width: min(46vh, 46vw); height: min(46vh, 46vw); border: 2px solid rgba(255,180,61,.72); border-radius: 50%; box-shadow: 0 0 18px rgba(255,91,53,.3), inset 0 0 22px rgba(255,180,61,.12); transform: translate(-50%,-50%); }
.scope-vehicle::after { top: 50%; left: 50%; width: 8px; height: 8px; border: 2px solid #fff0b0; border-radius: 50%; box-shadow: 0 0 12px #ff8a38; transform: translate(-50%,-50%); }
.scope-vehicle i:first-child { width: min(56vh, 56vw); height: 1px; border: 0; border-radius: 0; background: linear-gradient(90deg, transparent, #ffb43d 22% 46%, transparent 46% 54%, #ffb43d 54% 78%, transparent); }
.scope-vehicle i:nth-child(2) { width: 1px; height: min(56vh, 56vw); border: 0; border-radius: 0; background: linear-gradient(transparent, #ffb43d 22% 46%, transparent 46% 54%, #ffb43d 54% 78%, transparent); }
.vehicle-mode .health-panel { bottom: 28px; }
.vehicle-mode .crosshair { transform: translate(-50%, -50%) scale(1.3); }
.multiplayer-scoreboard div div.team-red { border-left: 4px solid #ff4f5e; color: #ff9ca5; }
.multiplayer-scoreboard div div.team-blue { border-left: 4px solid #438cff; color: #9fc2ff; }
.multiplayer-scoreboard div div.team-red.local { background: rgba(255,79,94,.13); }
.multiplayer-scoreboard div div.team-blue.local { background: rgba(67,140,255,.13); }
/* Prominent combat vitals */
.health-panel { position: absolute; bottom: 30px; display: block; margin-top: 0; width: min(300px, calc(50vw - 40px)); padding: 18px 22px; border: 2px solid rgba(201,255,47,.45); border-bottom: 6px solid var(--acid); background: linear-gradient(135deg, rgba(10,17,21,.88), rgba(6,10,13,.68)); box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 18px rgba(201,255,47,.14), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(12px) saturate(1.25); }
.health-copy span { color: #d8ded9; font-size: 11px; }
.health-copy strong { color: #fff; font-size: 54px; text-shadow: 0 0 16px rgba(201,255,47,.55); }
.health-track { height: 14px; margin-top: 11px; border: 2px solid rgba(255,255,255,.18); background: #171d19; }
.health-track i { box-shadow: 0 0 14px currentColor; }
@media (max-height: 450px), (max-width: 700px) {
  .health-panel { bottom: 16px; padding: 10px 12px; }
  .health-copy strong { font-size: 36px; }
  .health-copy span { font-size: 9px; }
  .health-track { height: 10px; margin-top: 7px; }
}

.stats-open { margin-bottom: 16px; font-size: 11px; padding: 10px 16px; }
.stats-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; color: #eef2eb; border: 1px solid #414d3b; background: #0c1215; box-shadow: 0 24px 90px #000b; }
.stats-dialog::backdrop { background: #000b; backdrop-filter: blur(6px); }
.stats-dialog [hidden] { display: none !important; }
.stats-header, .stats-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stats-header h2 { margin: 6px 0 16px; font-size: 28px; }
.stats-dialog button { font-size: 11px; padding: 10px 16px; }
.stats-unlock { display: grid; gap: 12px; max-width: 550px; margin: 24px 0; }
.stats-unlock label, .stats-actions span, .stats-note { color: #a2afaa; font-size: 12px; }
.stats-unlock input { width: 100%; padding: 14px; color: white; background: #161e22; border: 1px solid #4b5652; }
.stats-unlock p, #statsStatus { color: #bcc9bc; font-size: 13px; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0 28px; }
.stats-cards > div { display: grid; gap: 10px; padding: 18px; border: 1px solid #304038; background: #131d1c; }
.stats-cards span { font-size: 10px; letter-spacing: 1px; color: #a4b6a6; }
.stats-cards strong { font-size: 27px; color: var(--acid); }
.stats-table-wrap { overflow-x: auto; }
.stats-dialog table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-dialog th, .stats-dialog td { padding: 12px; text-align: left; border-bottom: 1px solid #2e3b36; white-space: nowrap; }
.stats-dialog th { color: #a4b6a6; }
.stats-events { max-height: 270px; overflow: auto; font-size: 12px; }
.stats-events > div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #25332d; }
.stats-events time { flex-shrink: 0; color: #8fa48f; }
.stats-chart { margin-bottom: 28px; padding: 16px; border: 1px solid #304038; background: #101917; }
.stats-chart-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats-chart-header h3 { margin: 0; }
.stats-chart-header label { font-size: 12px; color: #a4b6a6; }
.stats-chart-header select { margin-left: 8px; padding: 8px; color: white; background: #16231d; border: 1px solid #405346; }
.stats-chart-legend { display: flex; gap: 20px; margin: 16px 0; font-size: 12px; }
.stats-connected { color: #36c9ff; }
.stats-playing { color: #c9ff2f; }
#statsPlayerChart { display: block; width: 100%; height: auto; min-height: 180px; }
#statsPlayerChart:focus-visible { outline: 2px solid var(--acid); }

/* One viewport anchor for navigation, including the native statistics dialog. */
.screen-menu-button, .stats-dialog .screen-menu-button {
  position: fixed; top: 16px; right: 16px; z-index: 80;
  width: 144px; height: 44px; min-width: 0; margin: 0; padding: 10px 14px;
  display: flex; align-items: center; justify-content: center;
  font: 800 12px "Space Mono", monospace; letter-spacing: .04em;
  transform: none; pointer-events: auto;
}
.screen-menu-button:hover, .stats-dialog .screen-menu-button:hover { transform: none; }
.spawn-weapon-button { width: min(520px, 88vw); min-height: 125px; padding: 20px 26px; gap: 10px; align-items: flex-start; color: #fff; background: linear-gradient(120deg, #18272a, #11231a); border: 2px solid var(--acid); text-align: left; }
.spawn-weapon-button strong { font-size: 27px; letter-spacing: .03em; }
.spawn-weapon-button small { color: #b5c7b9; font: 700 10px "Space Mono", monospace; letter-spacing: .06em; }
.weapon-selection-screen { z-index: 40; display: block; overflow-y: auto; padding: 76px 28px 24px; text-align: left; background: radial-gradient(ellipse at 70% 25%, #1c3030, #0b1115 65%); backdrop-filter: none; }
.weapon-selection-screen::before, .weapon-selection-screen::after { display: none; }
.armory-container { max-width: 1200px; margin: 0 auto; }
.deployment-options { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; width: min(780px, 88vw); margin: 20px 0 14px; }
.deployment-options .spawn-weapon-button { width: 100%; min-width: 0; margin: 0; padding: 18px; }
.deployment-options .spawn-weapon-button strong { overflow-wrap: anywhere; }
.controls-button { border-color: #43a9d0; background: linear-gradient(120deg, #172b35, #122025); }
#controlsScreen { z-index: 42; }
.controls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.controls-panel { min-width: 0; padding: 20px; border: 1px solid #3e554b; background: #111e20; }
.controls-panel h3 { color: var(--acid); font-size: 26px; margin: 0 0 16px; }
.controls-panel dl { margin: 0; }
.controls-panel dl > div { padding: 12px 0; border-top: 1px solid #31463c; }
.controls-panel dt { color: #fff; font: 700 11px/1.6 "Space Mono", monospace; }
.controls-panel dd { margin: 5px 0 0; color: #b7c9bd; font: 400 12px/1.8 "Space Mono", monospace; }
.armory-header h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; margin: 12px 0; }
.armory-header p { color: #b3c1ba; font: 400 12px/1.7 "Space Mono", monospace; }
.armory-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 26px; margin-top: 22px; }
.weapon-choice-list { display: flex; flex-direction: column; gap: 12px; }
.weapon-choice-card { display: grid; grid-template-columns: 100px 1fr; gap: 10px; min-height: 90px; padding: 8px; clip-path: none; border: 1px solid #3c5148; color: #d9e5dd; background: #111e20; text-align: left; letter-spacing: .01em; }
.weapon-choice-card.selected { border: 2px solid var(--acid); background: #203025; }
.weapon-choice-card img { display: block; width: 100%; height: 70px; object-fit: contain; }
.weapon-choice-card strong { font-size: 21px; }
.weapon-choice-card small { display: block; margin-top: 6px; color: #a6b9ae; font: 700 8px/1.5 "Space Mono", monospace; }
.weapon-detail { min-width: 0; }
.weapon-detail > h3 { margin: 10px 0 16px; color: white; font-size: clamp(30px, 4vw, 46px); line-height: 1; scroll-margin-top: 84px; }
.weapon-detail > .eyebrow { font-size: 10px; }
.weapon-preview-stage { position: relative; border: 1px solid #3e554b; background: radial-gradient(ellipse, #52695f, #19282a 70%); }
#weaponPreview { display: block; width: 100%; height: 300px; touch-action: none; cursor: grab; }
#weaponPreview:active { cursor: grabbing; }
.weapon-preview-stage > span { position: absolute; bottom: 12px; left: 16px; color: #dae6db; font: 700 9px "Space Mono", monospace; pointer-events: none; }
.weapon-description, .weapon-tips p { color: #cad6ce; font: 400 13px/1.8 "Space Mono", monospace; }
.weapon-detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #354b40; border: 1px solid #354b40; }
.weapon-detail-stats > div { padding: 13px 16px; background: #111e1d; }
.weapon-detail-stats dt { margin-bottom: 7px; color: #96b4a0; font: 700 9px "Space Mono", monospace; text-transform: uppercase; }
.weapon-detail-stats dd { margin: 0; color: white; font: 700 13px/1.5 "Space Mono", monospace; }
.weapon-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.weapon-tips h4 { color: var(--acid); font: 700 10px "Space Mono", monospace; }
.weapon-accuracy-note { color: #97aca0; font: 400 10px/1.8 "Space Mono", monospace; }
.armory-footer { position: sticky; bottom: -24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid #456043; background: #0d1717f5; }
.armory-footer p { color: var(--acid); font: 700 11px/1.5 "Space Mono", monospace; }
@media (max-width: 750px) {
  .controls-grid { grid-template-columns: 1fr; }
  .weapon-selection-screen { padding: 78px 16px 24px; }
  .armory-layout { grid-template-columns: 1fr; gap: 24px; }
  .weapon-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .weapon-choice-card { grid-template-columns: 1fr; gap: 3px; text-align: center; }
  .weapon-choice-card strong { font-size: 19px; }
  .weapon-choice-card img { height: 80px; }
  .weapon-choice-card small { font-size: 7px; }
  #weaponPreview { height: 250px; }
  .weapon-tips { grid-template-columns: 1fr; gap: 0; }
  .armory-footer { flex-direction: column; align-items: stretch; }
  .armory-footer button { justify-content: center; }
}
@media (max-width: 550px) {
  .deployment-options { gap: 8px; }
  .deployment-options .spawn-weapon-button { padding: 12px; min-height: 125px; }
  .deployment-options .spawn-weapon-button strong { font-size: 19px; }
  .deployment-options .spawn-weapon-button small { font-size: 7px; }
  .deployment-options .spawn-weapon-button span { font-size: 8px; }
}
.topbar { padding-right: 184px; gap: 12px; }
.topbar .brand { min-width: 0; }
.topbar .match { flex-shrink: 0; }
@media (max-width: 650px) {
  .topbar { padding-left: 16px; padding-top: 12px; }
  .topbar .brand { font-size: 14px; }
  .topbar .brand small { display: none; }
  .topbar .match { position: absolute; right: 20px; top: 66px; }
  .topbar .match span { display: none; }
  #radar { top: 100px; }
}
@media (max-width: 600px) { .stats-dialog { padding: 16px; } .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-cards strong { font-size: 23px; } }
