@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #f2f0e8;
  --ink-dim: rgba(242, 240, 232, 0.64);
  --ink-faint: rgba(242, 240, 232, 0.36);
  --accent: #ff9a3c;
  --danger: #ff4d3d;
  --good: #a6e86e;
  --panel: rgba(10, 12, 14, 0.74);
  --line: rgba(242, 240, 232, 0.17);
  --font: "Barlow Condensed", "Bahnschrift", "DIN Alternate", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --chamfer: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --cut: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

* { box-sizing: border-box; }

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

button, input { font-family: inherit; }
h1, h2, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.game {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.game.is-dead .viewport canvas { filter: saturate(0.3) contrast(1.06); }

.viewport { position: absolute; inset: 0; }
.viewport canvas { display: block; width: 100%; height: 100%; }

/* ---------- Screen-space feedback ---------- */

.fx { position: absolute; inset: 0; pointer-events: none; }
.fx-vignette { background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.42) 100%); }
.fx-damage { background: radial-gradient(ellipse at center, transparent 38%, rgba(196, 12, 4, 0.82) 100%); opacity: 0; }
.fx-scope { opacity: 0; transition: opacity 0.1s linear; }
.fx-scope svg { display: block; width: 100%; height: 100%; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes feed-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes feed-out { to { opacity: 0; transform: translateX(14px); } }
@keyframes hitmark { 0% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(0.85); } }
@keyframes popup {
  0% { opacity: 0; transform: translateY(10px); }
  12% { opacity: 1; transform: none; }
  72% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-16px); }
}
@keyframes banner {
  0% { opacity: 0; }
  10% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes toast {
  0% { opacity: 0; transform: translateX(-16px); }
  8% { opacity: 1; transform: none; }
  84% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(-10px); }
}
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

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

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-variant-numeric: tabular-nums;
}
.game[data-hud="on"] .hud { opacity: 1; }
.game[data-hud="dead"] .hud { opacity: 0.25; }
.game[data-hud="dead"] .death { opacity: 1; }

.compass {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(46vw, 600px);
  height: 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.compass canvas { display: block; width: 100%; height: 100%; }

.objective {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 18px;
  background: var(--panel);
  clip-path: var(--chamfer);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.objective i { width: 1px; height: 14px; background: var(--line); }
.objective b { color: var(--accent); font-weight: 700; margin-left: 4px; }
.objective.is-clear b { color: var(--good); }
.objective.is-clear span:first-child { color: var(--good); }

.radar { position: absolute; top: 18px; left: 20px; width: 178px; }
.radar-disc {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(6, 10, 10, 0.78);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 5px rgba(0, 0, 0, 0.22);
}
.radar-disc canvas { display: block; width: 100%; height: 100%; }
.radar-streaks { position: absolute; left: 190px; bottom: 0; display: flex; flex-direction: column; gap: 6px; }
.radar-streaks li {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: var(--ink-faint);
  clip-path: var(--cut);
}
.radar-streaks li svg { width: 22px; height: 22px; }
.radar-streaks li.is-held { color: var(--accent); animation: glow 1.2s ease-in-out infinite; }
.radar-streaks li.is-live { color: var(--good); animation: none; }

.killfeed {
  position: absolute;
  top: 22px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.killfeed li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 11px;
  background: rgba(8, 10, 11, 0.66);
  white-space: nowrap;
  animation: feed-in 0.16s ease-out, feed-out 0.4s ease-in 5.2s forwards;
}
.killfeed li.is-me { background: rgba(255, 154, 60, 0.2); }
.killfeed li.is-death { background: rgba(255, 77, 61, 0.22); }
.killfeed .name-you { color: var(--accent); font-weight: 700; }
.killfeed .name-foe { color: var(--danger); font-weight: 600; }
.killfeed .name-foe-is-victim { color: var(--ink); }
.killfeed .tool { font-size: 13px; letter-spacing: 0.18em; color: var(--ink-dim); }
.killfeed .hs { color: #ffd34d; font-size: 15px; font-weight: 700; }

.crosshair { position: absolute; left: 50%; top: 50%; --gap: 8px; color: #fff; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)); }
.crosshair .ch { position: absolute; background: currentColor; }
.crosshair .ch-t, .crosshair .ch-b { width: 2px; height: 10px; left: -1px; }
.crosshair .ch-l, .crosshair .ch-r { height: 2px; width: 10px; top: -1px; }
.crosshair .ch-t { bottom: var(--gap); }
.crosshair .ch-b { top: var(--gap); }
.crosshair .ch-l { right: var(--gap); }
.crosshair .ch-r { left: var(--gap); }
.crosshair .ch-dot { width: 2px; height: 2px; left: -1px; top: -1px; border-radius: 50%; }
.game[data-ads="1"] .crosshair .ch { opacity: 0; }
.game[data-designate="1"] .crosshair .ch { opacity: 0; }
.designator { display: none; position: absolute; width: 72px; height: 72px; left: -36px; top: -36px; color: var(--accent); animation: glow 1s ease-in-out infinite; }
.game[data-designate="1"] .designator { display: block; }

.hitmarker { position: absolute; left: 50%; top: 50%; opacity: 0; color: #fff; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)); }
.hitmarker i { position: absolute; left: -1.5px; top: -6px; width: 3px; height: 12px; background: currentColor; }
.hitmarker i:nth-child(1) { transform: rotate(45deg) translateY(-15px); }
.hitmarker i:nth-child(2) { transform: rotate(135deg) translateY(-15px); }
.hitmarker i:nth-child(3) { transform: rotate(225deg) translateY(-15px); }
.hitmarker i:nth-child(4) { transform: rotate(315deg) translateY(-15px); }
.hitmarker.is-hit { animation: hitmark 0.2s ease-out; }
.hitmarker.is-kill { color: var(--danger); animation: hitmark 0.32s ease-out; }
.hitmarker.is-head { color: #ffd34d; animation: hitmark 0.36s ease-out; }

.hitdir i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: var(--danger);
  opacity: 0;
}

.popups {
  position: absolute;
  left: calc(50% + 44px);
  top: calc(50% + 14px);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.popups li {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  animation: popup 1.35s ease-out forwards;
}
.popups li em { font-style: normal; margin-left: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); }

.banner { position: absolute; left: 50%; top: 27%; transform: translate(-50%, -50%); text-align: center; opacity: 0; white-space: nowrap; }
.banner.is-on { animation: banner 3.4s ease-out forwards; }
.banner-title {
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.banner-title::before, .banner-title::after { content: ""; display: inline-block; vertical-align: middle; width: clamp(30px, 5vw, 84px); height: 3px; background: var(--accent); margin: 0 22px 0.18em; }
.banner.is-win .banner-title::before, .banner.is-win .banner-title::after { background: var(--good); }
.banner-sub { margin-top: 6px; font-size: 19px; font-weight: 600; letter-spacing: 0.34em; color: var(--ink); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }

.toast {
  position: absolute;
  left: 34px;
  top: 44%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
}
.toast.is-on { animation: toast 2.8s ease-out forwards; }
.toast svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.toast kbd { background: var(--accent); color: #17110a; border: 0; margin: 0 0 0 6px; }

.vitals { position: absolute; left: 26px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.lives { display: flex; gap: 4px; }
.lives li { width: 15px; height: 10px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); opacity: 0.9; }
.lives li.is-spent { background: var(--ink-faint); }
.lives.is-critical li:not(.is-spent) { background: var(--danger); animation: pulse 0.9s ease-in-out infinite; }
.health { display: flex; align-items: center; gap: 12px; }
.health-num { font-size: 46px; font-weight: 700; line-height: 0.9; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65); }
.health-bar { width: 148px; height: 5px; background: rgba(255, 255, 255, 0.16); }
.health-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; }
.health.is-low .health-num { color: var(--danger); animation: pulse 0.9s ease-in-out infinite; }
.health.is-low .health-bar i { background: var(--danger); }
.grenades { display: flex; gap: 6px; }
.grenades li { width: 18px; height: 22px; color: var(--ink); }
.grenades li.is-spent { color: var(--ink-faint); }
.grenades svg { display: block; width: 100%; height: 100%; }

.weapon { position: absolute; right: 398px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.slots { display: flex; gap: 6px; margin-bottom: 4px; }
.slots li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  border: 1px solid transparent;
}
.slots li b { font-weight: 700; color: var(--accent); }
.slots li.is-active { color: var(--ink); border-color: var(--line); background: rgba(0, 0, 0, 0.32); }
.ammo { line-height: 0.86; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65); }
.ammo-mag { font-size: 62px; font-weight: 700; }
.ammo-reserve { font-size: 27px; font-weight: 600; color: var(--ink-dim); margin-left: 8px; }
.weapon-name { font-size: 20px; font-weight: 700; letter-spacing: 0.24em; color: var(--accent); }
.weapon-state { min-height: 19px; font-size: 15px; font-weight: 600; letter-spacing: 0.22em; color: var(--ink-dim); }
.weapon-state.is-warn { color: var(--accent); }
.weapon-state.is-danger { color: var(--danger); animation: pulse 0.7s ease-in-out infinite; }
.weapon.is-low .ammo-mag { color: var(--accent); }
.weapon.is-empty .ammo-mag { color: var(--danger); }
.reload-track { display: inline-block; width: 96px; height: 4px; margin-left: 8px; vertical-align: middle; background: rgba(255, 255, 255, 0.16); }
.reload-track i { display: block; height: 100%; background: var(--accent); }

.streakmeter { position: absolute; right: 398px; bottom: 150px; width: 250px; }
.streak-track { position: relative; height: 4px; background: rgba(255, 255, 255, 0.16); }
.streak-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width 0.25s ease-out; }
.streak-nodes li { position: absolute; bottom: 9px; left: calc(var(--p) * 100%); width: 30px; height: 30px; transform: translateX(-50%); color: var(--ink-faint); }
.streak-nodes li::after { content: ""; position: absolute; left: 50%;; bottom: -7px; width: 1px; height: 6px; background: var(--ink-faint); }
.streak-nodes li svg { display: block; width: 100%; height: 100%; }
.streak-nodes li.is-passed { color: var(--ink); }
.streak-nodes li.is-held { color: var(--accent); animation: glow 1.2s ease-in-out infinite; }
.streak-nodes li.is-live { color: var(--good); animation: none; }
.streak-nodes kbd {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 16px;
  padding: 0 3px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
  background: var(--accent);
  color: #17110a;
  opacity: 0;
}
.streak-nodes li.is-held kbd { opacity: 1; }
.streak-count { margin-top: 8px; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: 0.24em; color: var(--ink-dim); }

.hints-short { display: none; }
.hints {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.death { position: absolute; left: 50%; top: 31%; transform: translate(-50%, -50%); text-align: center; opacity: 0; transition: opacity 0.5s ease 0.3s; white-space: nowrap; }
.death-title { font-size: clamp(44px, 5.6vw, 76px); font-weight: 700; letter-spacing: 0.12em; color: var(--danger); line-height: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.death-by { margin-top: 8px; font-size: 21px; font-weight: 600; letter-spacing: 0.16em; color: var(--ink); }
.death-by b { color: var(--accent); font-weight: 700; }
.death-count { margin-top: 18px; font-size: 30px; font-weight: 700; letter-spacing: 0.1em; }

/* ---------- Screens ---------- */

.screen { position: absolute; inset: 0; display: none; }
.screen.is-active { display: flex; }

.screen-menu {
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 5vh, 54px) clamp(22px, 5.5vw, 92px);
  background:
    linear-gradient(90deg, rgba(7, 9, 10, 0.9) 0%, rgba(7, 9, 10, 0.58) 36%, rgba(7, 9, 10, 0) 64%),
    linear-gradient(0deg, rgba(7, 9, 10, 0.74), rgba(7, 9, 10, 0) 34%);
}
.menu-body { display: flex; flex-direction: column; gap: clamp(18px, 4.2vh, 44px); max-width: 640px; }
.brand-kicker { font-size: 15px; font-weight: 600; letter-spacing: 0.34em; color: var(--accent); text-transform: uppercase; }
.brand-title { margin: 8px 0 0 -4px; font-size: clamp(88px, 12.4vw, 196px); font-weight: 700; line-height: 0.8; letter-spacing: 0.01em; }
.brand-title span { color: var(--accent); }
.brand-rule { width: 92px; height: 5px; margin: 22px 0 12px; background: var(--accent); }
.brand-line { max-width: 400px; font-size: 20px; line-height: 1.3; color: var(--ink-dim); }

.menu-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.menu-item {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  padding: 6px 20px;
  color: var(--ink);
  text-align: left;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 0; background: var(--accent); transform: translateY(-50%); transition: height 0.15s ease; }
.menu-item:hover, .menu-item:focus-visible { color: var(--accent); outline: none; }
.menu-item:hover::before, .menu-item:focus-visible::before { height: 68%; }
.menu-item small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.menu-item.is-primary { font-size: 50px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 8px; }

.menu-side {
  position: absolute;
  right: clamp(22px, 5.5vw, 92px);
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  padding: 20px 20px 18px;
  background: var(--panel);
  clip-path: var(--chamfer);
}
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 0 10px; }
.segmented button {
  padding: 8px 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  cursor: pointer;
}
.segmented button:hover { color: var(--ink); border-color: var(--ink-dim); }
.segmented button.is-on { background: var(--accent); border-color: var(--accent); color: #17110a; }
.blurb { min-height: 2.6em; font-size: 17px; line-height: 1.3; color: var(--ink-dim); }
.record { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.record-score { margin-top: 4px; font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.record-detail { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.menu-foot { display: flex; gap: 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }

.screen-panel { align-items: center; justify-content: center; padding: 22px; background: rgba(6, 8, 9, 0.68); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.panel { width: min(540px, 100%); max-height: 100%; overflow: auto; padding: 26px 32px 24px; background: rgba(12, 14, 16, 0.94); border: 1px solid var(--line); clip-path: var(--chamfer); }
.panel-wide { width: min(980px, 100%); }
.panel-head h2 { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-head p { margin-top: 8px; max-width: 640px; font-size: 19px; line-height: 1.3; color: var(--ink-dim); }
.panel-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.btn {
  appearance: none;
  padding: 10px 24px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: rgba(255, 255, 255, 0.15); border-color: var(--ink-dim); outline: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #17110a; }
.btn-accent:hover, .btn-accent:focus-visible { background: #ffb46c; border-color: #ffb46c; color: #17110a; }

.loadout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.loadout-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.loadout-col > .label { grid-column: 1 / -1; margin-bottom: 2px; }
.weapon-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
}
.weapon-card:hover { border-color: var(--ink-dim); }
.weapon-card.is-on { border-color: var(--accent); background: rgba(255, 154, 60, 0.12); }
.weapon-card.is-taken { opacity: 0.36; cursor: not-allowed; }
.weapon-card .card-name { font-size: 24px; font-weight: 700; letter-spacing: 0.05em; line-height: 1; }
.weapon-card .card-role { grid-column: 1; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--ink-dim); }
.weapon-card .card-mag { grid-row: 1; grid-column: 2; align-self: center; justify-self: end; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-dim); white-space: nowrap; }
.weapon-card .card-stats { grid-column: 1 / -1; display: grid; gap: 3px; margin-top: 7px; }
.stat { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-dim); }
.stat i { display: block; height: 3px; background: rgba(255, 255, 255, 0.13); }
.stat i b { display: block; height: 100%; background: var(--ink); }
.weapon-card.is-on .stat i b { background: var(--accent); }

.howto { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; margin-top: 14px; }
.keys { width: 100%; border-collapse: collapse; font-size: 20px; }
.keys th { padding: 7px 14px 7px 0; text-align: left; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-dim); white-space: nowrap; }
.keys td { padding: 7px 0; }
.keys em, .tips em { font-style: normal; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
kbd {
  display: inline-block;
  min-width: 27px;
  margin-right: 4px;
  padding: 2px 8px;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
}
.howto-side .label + * { margin-top: 8px; }
.streak-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.streak-list svg { width: 28px; height: 28px; color: var(--accent); }
.streak-list b { font-size: 21px; font-weight: 700; letter-spacing: 0.08em; }
.streak-list small { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-dim); }
.streak-list kbd { margin: 0; }
.tips { margin-top: 10px; display: grid; gap: 6px; font-size: 17px; line-height: 1.3; color: var(--ink-dim); }
.tips li { padding-left: 14px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: 0.56em; width: 5px; height: 5px; background: var(--accent); }
.howto-side .label:not(:first-child) { margin-top: 20px; }

.settings { margin-top: 12px; }
.setting { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 21px; }
.setting output { min-width: 48px; text-align: right; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.setting[type="range"], .setting input[type="range"] { grid-column: 1 / -1; width: 100%; height: 4px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.setting-toggle { cursor: pointer; }
.setting-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.setting-toggle i { position: relative; width: 46px; height: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); transition: background 0.15s ease, border-color 0.15s ease; }
.setting-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ink-dim); transition: transform 0.15s ease, background 0.15s ease; }
.setting-toggle input:checked + i { background: rgba(255, 154, 60, 0.25); border-color: var(--accent); }
.setting-toggle input:checked + i::after { transform: translateX(22px); background: var(--accent); }
.setting-toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-pause { justify-content: flex-start; padding-left: clamp(22px, 8vw, 150px); background: linear-gradient(90deg, rgba(6, 8, 9, 0.92), rgba(6, 8, 9, 0.6) 46%, rgba(6, 8, 9, 0.3)); }
.pause-grid { display: grid; grid-template-columns: minmax(260px, 400px) 260px; gap: clamp(30px, 6vw, 90px); align-items: start; }
.pause-title { margin: 4px 0 14px; font-size: clamp(72px, 9vw, 128px); font-weight: 700; line-height: 0.82; letter-spacing: 0.04em; text-transform: uppercase; }
.pause-note { max-width: 400px; margin-top: 18px; font-size: 17px; line-height: 1.9; color: var(--ink-dim); }
.pause-side { padding-top: 14px; }
.quickkeys { margin-top: 10px; display: grid; gap: 0; }
.quickkeys li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.quickkeys span { color: var(--ink-dim); }
.quickkeys b { font-weight: 700; letter-spacing: 0.06em; }

.panel-end { width: min(760px, 100%); }
.end-title { margin: 4px 0 4px; font-size: clamp(76px, 9vw, 124px); font-weight: 700; line-height: 0.86; letter-spacing: 0.05em; text-transform: uppercase; }
.screen-end.is-win .end-title { color: var(--good); }
.screen-end.is-loss .end-title { color: var(--danger); }
.end-sub { font-size: 21px; color: var(--ink-dim); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.stats div { padding: 12px 14px; background: rgba(12, 14, 16, 0.97); }
.stats dt { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.stats dd { margin-top: 2px; font-size: 36px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats .is-best dd { color: var(--accent); }
.stats .is-best dd::after { content: "NEW BEST"; display: block; font-size: 12px; letter-spacing: 0.2em; }

.screen-desktop { background: linear-gradient(90deg, rgba(7, 9, 10, 0.92), rgba(7, 9, 10, 0.6) 48%, rgba(7, 9, 10, 0.1)), linear-gradient(0deg, rgba(7, 9, 10, 0.7), rgba(7, 9, 10, 0) 40%); }
.desktop-card { max-width: 460px; padding: 20px 22px; background: var(--panel); clip-path: var(--chamfer); }
.desktop-card p { margin-top: 8px; font-size: 19px; line-height: 1.32; color: var(--ink-dim); }
.desktop-card b { color: var(--ink); font-weight: 700; }
.desktop-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.desktop-keys b { margin-right: 6px; color: var(--accent); }

.boot {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(ellipse at 50% 58%, #1c2125, #0b0c0d 72%);
  transition: opacity 0.45s ease;
}
.game:not(.is-booting) .boot { opacity: 0; pointer-events: none; }
.boot-title { margin-top: 6px; font-size: clamp(64px, 10vw, 140px); font-weight: 700; line-height: 0.84; letter-spacing: 0.01em; }
.boot-title span { color: var(--accent); }
.boot-bar { width: 180px; height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.boot-bar i { display: block; width: 40%; height: 100%; background: var(--accent); animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.fatal { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: #0b0c0d; }
.fatal h2 { font-size: 48px; font-weight: 700; letter-spacing: 0.06em; }
.fatal p { max-width: 460px; font-size: 20px; line-height: 1.3; color: var(--ink-dim); }

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .hints .hints-long { display: none; }
  .hints .hints-short { display: inline; }
  .weapon { right: 376px; }
  .streakmeter { right: 376px; }
}
@media (max-width: 980px) {
  .radar { width: 132px; }
  .radar-disc { width: 132px; height: 132px; }
  .radar-streaks { left: 142px; }
  .radar-streaks li { width: 28px; height: 28px; }
  .menu-side { display: none; }
  .pause-side { display: none; }
  .pause-grid { grid-template-columns: minmax(260px, 400px); }
  .howto { grid-template-columns: 1fr; gap: 20px; }
  .loadout { grid-template-columns: 1fr; gap: 14px; }
  .loadout-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .weapon { right: 16px; }
  .streakmeter { right: 16px; width: 190px; }
  .ammo-mag { font-size: 46px; }
  .health-num { font-size: 36px; }
  .health-bar { width: 96px; }
  .compass { width: 56vw; }
  .objective { font-size: 14px; gap: 9px; padding: 3px 12px; top: 52px; }
  .killfeed { top: 164px; font-size: 15px; }
  .vitals { left: 16px; bottom: 16px; }
  .popups { left: calc(50% + 30px); }
  .toast { left: 16px; font-size: 18px; }
  .panel { padding: 20px 20px 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel-head h2 { font-size: 38px; }
}

/* Short windows: the notice must still fit. */
@media (max-height: 460px) {
  .screen-menu { padding: 16px 22px; }
  .menu-body { gap: 10px; }
  .brand-title { font-size: clamp(44px, 13vh, 88px); }
  .brand-rule { width: 60px; height: 3px; margin: 8px 0 6px; }
  .brand-line { display: none; }
  .desktop-card { max-width: 440px; padding: 12px 16px; }
  .desktop-card p { margin-top: 4px; font-size: 16px; }
  .desktop-keys { margin-top: 8px; font-size: 13px; }
}

/* Peeks and previews: the live backdrop stays, interactive chrome steps aside. */
.game.is-peek .menu-nav,
.game.is-peek .menu-side,
.game.is-peek .menu-foot,
.game.is-peek .brand-line { display: none; }
.game.is-peek .menu-body { gap: 0; }
.game.is-peek .brand-rule { margin-bottom: 0; }
.game.is-peek .brand-kicker { font-size: 13px; letter-spacing: 0.24em; white-space: nowrap; }
.game.is-peek .brand-kicker::after { content: "  ·  MOUSE + KEYBOARD"; }

@media (prefers-reduced-motion: reduce) {
  .boot-bar i,
  .lives.is-critical li,
  .health.is-low .health-num,
  .weapon-state.is-danger,
  .radar-streaks li.is-held,
  .streak-nodes li.is-held,
  .designator { animation: none; }
  .menu-item::before, .btn, .hud, .death, .boot { transition-duration: 0s; }
  .banner, .toast, .popups li { animation-duration: 2.6s; animation-timing-function: linear; }
  .banner.is-on { animation-name: fade; }
  .toast.is-on { animation-name: fade; }
  .popups li { animation-name: fade; }
}
@keyframes fade { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
