@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-condensed-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlow-condensed-800.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/barlow-condensed-900.ttf) format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400.ttf) format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500.ttf) format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600.ttf) format('truetype');
}
:root {
  --cream: #ece9db;
  --orange: #ff6a2b;
  --muted: #91958a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #141715;
  color: var(--cream);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
header {
  height: 88px;
  margin: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #373a32;
}
.brand {
  color: var(--cream);
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brandmark {
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: #171a15;
  width: 30px;
  height: 32px;
  transform: skew(-10deg);
  font-size: 27px;
}
.edition {
  font:
    11px 'IBM Plex Mono',
    monospace;
  letter-spacing: 2px;
  color: var(--muted);
  margin-left: 5px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  letter-spacing: 1px;
}
.online {
  color: #aeb4a4;
  font-size: 10px;
}
.online i,
.footer-note i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #a3c18c;
  margin-right: 8px;
  border-radius: 50%;
}
.header-right button {
  background: none;
  border: 0;
  font-size: 10px;
  color: #bcbfb3;
  letter-spacing: 1px;
}
.header-right button:last-child {
  font-size: 23px;
  border-left: 1px solid #45483d;
  padding-left: 24px;
}
main {
  margin: 26px 42px 0;
}
.stage {
  position: relative;
  height: calc(100vh - 199px);
  min-height: 480px;
  max-height: 1000px;
  overflow: hidden;
  background: #343b33;
  border: 1px solid #4c5044;
}
.stage:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  max-height: none;
  border: 0;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #00000008 4px
  );
  box-shadow: inset 0 0 150px #0006;
}
.perf {
  pointer-events: none;
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #aeb2a0;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.top-hud {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.tiny {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #aeb2a0;
  display: block;
}
.arena-label b,
.match-label b {
  font-size: 12px;
  letter-spacing: 1.5px;
  display: block;
  margin-top: 8px;
}
.match-label {
  text-align: right;
}
.score {
  display: flex;
  gap: 23px;
  padding: 10px 25px 12px;
  background: #171d18c9;
  border: 1px solid #88917d33;
  margin-top: -5px;
}
.score > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.score span {
  font-size: 9px;
  letter-spacing: 1px;
}
.score strong {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 29px;
  line-height: 1;
}
.score > div:last-child strong {
  color: var(--orange);
}
.score-line {
  align-self: center;
  color: #707563;
}
.menu {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #141b16ed 0%,
    #141b16ba 34%,
    #141b1620 74%
  );
  display: block;
  z-index: 1; /* Above the HUD, which otherwise shows through it in low windows. */
  overflow-y: auto;
  padding: 105px 6% 130px;
}
.menu-inner {
  max-width: 650px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow > span {
  height: 5px;
  width: 5px;
  background: var(--orange);
}
h1 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(65px, 7.2vw, 112px);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -1.2px;
  margin: 24px 0;
}
h1 em {
  color: var(--orange);
  font-style: normal;
}
.menu p {
  font-size: 11px;
  line-height: 1.9;
  color: #b1b7a8;
  margin-bottom: 28px;
}
.primary {
  background: var(--orange);
  color: #171b15;
  border: 0;
  padding: 19px 23px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.2px;
  min-width: 260px;
  text-align: left;
}
.primary span {
  float: right;
  font-size: 20px;
  line-height: 12px;
}
.primary:hover {
  background: #ff834e;
}
.menu-meta {
  display: flex;
  gap: 23px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #8f9987;
  margin-top: 19px;
}
.sector-stamp {
  position: absolute;
  right: 40px;
  bottom: 142px;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 90px;
  font-weight: 800;
  color: #e9ecd629;
  line-height: 0.8;
  text-align: right;
}
.sector-stamp span {
  display: block;
  font:
    8px/1.6 'IBM Plex Mono',
    monospace;
  letter-spacing: 2px;
  margin-top: 12px;
  color: #a6ac95;
}
.bottom-hud {
  position: absolute;
  bottom: 27px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.health-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.health-value b,
.ammo-box b {
  font:
    600 42px/0.95 'Barlow Condensed',
    Impact,
    sans-serif;
}
.plus {
  color: var(--orange);
  font-size: 27px;
}
.small {
  font-size: 10px;
  margin-top: 15px;
}
.health-track {
  height: 3px;
  background: #a6ac9844;
  width: 138px;
  margin-top: 10px;
}
.health-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
}
.weapon-label {
  text-align: center;
  padding-bottom: 2px;
}
.weapon-label b {
  font-size: 10px;
  letter-spacing: 1.5px;
  display: block;
  margin: 9px 0;
}
.weapon-label > span:last-child {
  font-size: 8px;
  letter-spacing: 1px;
  line-height: 1.5;
}
.ammo-box {
  text-align: right;
}
.ammo-box > div {
  margin-top: 9px;
}
.ammo-box > div span {
  font-size: 18px;
  color: #98a28e;
  margin-left: 8px;
}
.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  pointer-events: none;
}
.crosshair i {
  position: absolute;
  background: #f0f1d8;
}
.crosshair i:nth-child(1) {
  left: 11px;
  top: 0;
  width: 2px;
  height: 6px;
}
.crosshair i:nth-child(2) {
  left: 11px;
  bottom: 0;
  width: 2px;
  height: 6px;
}
.crosshair i:nth-child(3) {
  top: 11px;
  left: 0;
  width: 6px;
  height: 2px;
}
.crosshair i:nth-child(4) {
  top: 11px;
  right: 0;
  width: 6px;
  height: 2px;
}
#hitmarker {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  color: #fff3d4;
  text-shadow:
    0 0 12px #ff6a2b,
    0 1px 3px #111;
  pointer-events: none;
}
.damage {
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 140px #ff3222,
    inset 0 0 36px #ff3222aa;
  opacity: 0;
  pointer-events: none;
}
.notice {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  color: #ece9db;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
}
.pause {
  position: absolute;
  right: 32px;
  top: 105px;
  background: #141b1688;
  border: 1px solid #737c6355;
  width: 31px;
  height: 31px;
  display: none;
}
footer {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px 0;
  align-items: center;
  font-size: 9px;
  color: #aaafa0;
  letter-spacing: 0.6px;
}
.controls > span {
  white-space: nowrap;
}
kbd {
  font:
    9px 'IBM Plex Mono',
    monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #515647;
  border-bottom-width: 2px;
  min-width: 23px;
  height: 23px;
  margin-right: 4px;
  padding: 0 5px;
  color: #dedfce;
}
.footer-note {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #858e7a;
  white-space: nowrap;
}
.touch-controls {
  display: none;
}
.hidden {
  display: none !important;
}
body.playing .menu {
  display: none;
}
body.playing .pause {
  display: block;
}
body.playing .crosshair {
  opacity: 1;
}
body:not(.playing) .crosshair {
  opacity: 0.25;
}
@media (min-width: 1700px) {
  .menu {
    padding-left: 8%;
  }
}
@media (max-width: 1000px) {
  header {
    margin: 0 22px;
  }
  main {
    margin: 20px 22px 0;
  }
  .controls {
    column-gap: 12px;
  }
  .footer-note {
    display: none;
  }
  .stage {
    height: calc(100vh - 180px);
  }
  .menu-meta {
    gap: 12px;
  }
  .online {
    display: none;
  }
}
@media (max-width: 650px) {
  header {
    height: 65px;
    margin: 0 14px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .edition {
    font-size: 8px;
    margin-left: 0;
  }
  .header-right {
    gap: 8px;
  }
  .header-right button:last-child {
    padding-left: 10px;
  }
  main {
    margin: 12px 10px;
  }
  .stage {
    height: calc(100dvh - 145px);
    min-height: 520px;
  }
  .top-hud {
    left: 17px;
    right: 17px;
    top: 18px;
  }
  .arena-label b {
    font-size: 10px;
  }
  .match-label {
    display: none;
  }
  .score {
    padding: 9px 12px;
    gap: 12px;
  }
  .score > div {
    gap: 8px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  h1 {
    font-size: 69px;
  }
  .menu-meta {
    flex-direction: column;
    gap: 8px;
  }
  .sector-stamp {
    display: none;
  }
  .bottom-hud {
    left: 17px;
    right: 17px;
    bottom: 22px;
  }
  .weapon-label {
    display: none;
  }
  .health-value b,
  .ammo-box b {
    font-size: 33px;
  }
  .health-track {
    width: 104px;
  }
  .controls {
    column-gap: 8px;
    font-size: 8px;
  }
  .controls > .tiny,
  .controls > span:last-child,
  .controls > span:nth-last-child(2) {
    display: none;
  }
  body.playing .touch-controls {
    display: flex;
    position: absolute;
    bottom: 100px;
    left: 15px;
    right: 15px;
    justify-content: space-between;
  }
  .touch-controls button {
    background: #172019a8;
    border: 1px solid #a4ae8288;
    width: 42px;
    height: 42px;
    touch-action: none;
  }
  .touch-controls > button {
    color: var(--orange);
    width: 65px;
  }
  .pause {
    right: 17px;
    top: 80px;
  }
}

/* Stronger hit confirmation, independent of scene lighting. */
/* Combat status is separate from transient announcements. */
[hidden] {
  display: none !important;
}
.respawn-status {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 100px);
  padding: 14px 20px;
  background: #172019ed;
  border: 1px solid #b99e6488;
  color: #edc788;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.4px;
  text-align: center;
  text-shadow: 0 2px 6px #0008;
  pointer-events: none;
}
.health-warning {
  display: block;
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #ff7e69;
}
.ammo-warning {
  display: block;
  margin-top: 10px;
  color: #ffb078;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.notice.between-waves {
  top: auto;
  bottom: 30%;
}
.ammo-box b.low-ammo {
  color: #ffb078;
  text-shadow: 0 0 12px #ff6a2b55;
}
.wave-start {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 3px;
  color: #f1d4a0;
  text-align: center;
  text-shadow: 0 2px 12px #000;
  pointer-events: none;
  white-space: nowrap;
}
.personal-best {
  max-width: 540px;
  margin: 0 0 20px;
  padding: 12px 0;
  border-bottom: 1px solid #82917155;
  color: #b6bfaa;
  font-size: 10px;
}
.personal-best > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.personal-best b {
  color: var(--cream);
  font-size: 18px;
  margin-left: 4px;
}
.personal-best strong {
  font-size: 8px;
  letter-spacing: 1px;
  color: #edc788;
}
.personal-best b.new-record {
  color: #edc788;
}
.settings-open {
  display: block;
  margin: 0 0 16px;
}
.settings-panel {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #78896a;
  background: #18221b;
  color: var(--cream);
  font:
    11px 'IBM Plex Mono',
    monospace;
  box-shadow: 0 15px 80px #0009;
}
.settings-panel::backdrop {
  background: #0c130fd9;
}
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.settings-heading h2 {
  font-size: 18px;
  letter-spacing: 2px;
  margin: 0;
}
.settings-panel .fov-picker {
  display: grid;
  grid-template-columns: minmax(auto, 16em) minmax(80px, 1fr) 44px;
  max-width: none;
}
.settings-panel .fov-picker input {
  width: 100%;
}
.settings-panel .setting-hint {
  line-height: 1.7;
}
.settings-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 24px;
  border-bottom: 1px solid #667358;
  padding-bottom: 12px;
}
.settings-tabs button {
  flex: 1;
  border: 1px solid #667358;
  background: #202b21;
  padding: 12px 7px;
  font-size: 10px;
}
.settings-tabs button[aria-selected='true'] {
  color: #171b15;
  background: var(--orange);
  border-color: var(--orange);
}
.settings-panel [role='tabpanel'][hidden] {
  display: none;
}
.settings-panel .balance-settings {
  margin: 0;
  padding: 0;
  border: 0;
}
.settings-panel .balance-settings h3 {
  font-size: 12px;
  letter-spacing: 1px;
  color: #edc788;
}
.setting-group {
  border: 1px solid #66735877;
  margin: 16px 0;
  padding: 12px;
}
.setting-group summary {
  cursor: pointer;
  font-size: 11px;
  color: #edc788;
  line-height: 1.6;
}
.audio-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(70px, 1fr) 36px 34px 34px;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  font-size: 10px;
}
.audio-row input {
  min-width: 0;
  width: 100%;
  accent-color: var(--orange);
}
.audio-row output {
  text-align: right;
  color: #ced7bf;
}
.audio-row button {
  border: 1px solid #667358;
  background: #263728;
  padding: 7px 0;
  font-size: 14px;
}
.settings-note {
  margin-top: 24px;
}
@media (max-width: 480px) {
  .settings-panel {
    padding: 16px;
  }
  .settings-tabs {
    gap: 4px;
  }
  .settings-tabs button {
    font-size: 9px;
  }
  .audio-row {
    grid-template-columns: 1fr 36px 34px 34px;
    gap: 6px;
  }
  .audio-row label {
    grid-column: 1/-1;
  }
  .balance-field {
    align-items: flex-start;
  }
  .balance-field input {
    width: 65px;
  }
}
.sound-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  letter-spacing: 1px;
}
.sound-picker input {
  accent-color: var(--orange);
}
.wave-summary {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #bdc7ad;
}
.kill-notice {
  position: absolute;
  left: 50%;
  top: calc(50% + 33px);
  transform: translateX(-50%);
  color: #ffe9bb;
  font-size: 10px;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
#hitmarker.elimination {
  font-size: 54px;
  color: #fff5de;
  text-shadow:
    0 0 16px #ffb54b,
    0 1px 4px #000;
}
#hitmarker.headshot.elimination {
  color: #ffe283;
}
.previous-result {
  margin: 0 0 20px;
  max-width: 540px;
  color: #b6bfaa;
  font-size: 10px;
  line-height: 1.8;
}
.previous-result .tiny {
  margin-bottom: 5px;
}
.next-run-mode {
  display: block;
  margin: 0 0 12px;
  color: #c4cbb7;
  font-size: 9px;
  letter-spacing: 1px;
}
.balance-settings {
  margin: 22px 0;
  border-top: 1px solid #73826477;
  border-bottom: 1px solid #73826477;
  padding: 16px 0;
}
.balance-settings summary {
  cursor: pointer;
  color: #edc788;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.6;
}
.balance-settings summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.balance-settings .setting-hint {
  margin: 14px 0;
}
.balance-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  color: #d2d8c8;
  font-size: 10px;
  line-height: 1.5;
}
.balance-field small {
  display: block;
  color: #98a68c;
  font-size: 9px;
  margin-top: 3px;
}
.balance-field > span:last-child {
  flex-shrink: 0;
  color: #aebca0;
  font-size: 9px;
}
.balance-field input {
  width: 80px;
  padding: 8px 6px;
  font: 12px monospace;
  color: var(--cream);
  background: #202b21;
  border: 1px solid #728060;
  color-scheme: dark;
}
.balance-field input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
#runMode {
  margin-top: 8px;
  font-size: 8px;
}
.weapon-slots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 9px 0;
}
.weapon-slots button {
  pointer-events: auto;
  padding: 7px 9px;
  border: 1px solid #82947777;
  background: #17231be6;
  color: #bdcbb5;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.weapon-slots button[aria-pressed='true'] {
  border-color: #a3dab8;
  color: #e4f9df;
  background: #344b3bdd;
}
.weapon-slots button:disabled {
  opacity: 0.4;
}
.loot-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 62px);
  transform: translateX(-50%);
  max-width: 80%;
  color: #baf1cf;
  font-size: 9px;
  letter-spacing: 1px;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 5px #000;
  pointer-events: none;
}
.low-health .health-value,
.low-health .plus {
  color: #ff7e69;
}
.low-health .health-track i {
  background: #ff5545;
}
.ammo-box .reload-progress {
  margin-top: 10px;
  width: 130px;
  text-align: left;
}
.ammo-box .reload-progress span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #edc788;
  margin: 0;
}
.reload-progress > div {
  height: 4px;
  background: #d9dfb52b;
  margin-top: 6px;
}
.reload-progress i {
  display: block;
  height: 100%;
  background: var(--orange);
  width: 0;
}
@media (max-width: 650px) {
  .respawn-status {
    top: 120px;
    max-width: calc(100% - 34px);
    padding: 12px 16px;
    font-size: 18px;
    letter-spacing: 0.8px;
  }
  .health-warning {
    font-size: 7px;
    max-width: 135px;
    line-height: 1.5;
  }
  .ammo-box .reload-progress {
    width: 90px;
  }
}

/* The top chevron rotates toward the source of the last hit. */
.damage-direction {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  pointer-events: none;
  transform-origin: center;
}
.damage-direction i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px;
  height: 11px;
  transform: translateX(-50%);
  background: #ff6d51;
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 50% 65%);
  filter: drop-shadow(0 0 4px #ff4234);
}

/* Match menus remain scrollable on short windows and smaller screens. */
.menu h1 {
  font-size: clamp(56px, 6.8vw, 102px);
}
.menu:has(.result-stats:not([hidden])) h1 {
  font-size: clamp(50px, 5.3vw, 76px);
  margin: 16px 0;
}
.difficulty-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #b6bfaa;
}
.difficulty-picker select {
  font:
    11px 'IBM Plex Mono',
    monospace;
  background: #202b21;
  color: var(--cream);
  border: 1px solid #728060;
  padding: 8px 28px 8px 10px;
  border-radius: 0;
  cursor: pointer;
  color-scheme: dark;
}
.difficulty-picker select:disabled {
  opacity: 0.55;
  cursor: default;
}
.difficulty-picker select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid #82917155;
  border-bottom: 1px solid #82917155;
}
.result-stats dt {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #a2af96;
}
.result-stats dd {
  margin: 7px 0 0;
  font-size: 18px;
  color: var(--cream);
}
.secondary {
  background: #17231bdc;
  border: 1px solid #78896a;
  padding: 13px 16px;
  font-size: 9px;
  letter-spacing: 1px;
}
.secondary:hover {
  background: #314331;
}
#restartMatch {
  margin-left: 10px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.restart-confirm {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #b89d65;
  max-width: 440px;
  background: #18221bf2;
}
.restart-confirm p {
  margin: 0 0 12px;
  font-size: 10px;
  color: #e2d5af;
}
.restart-confirm > div {
  display: flex;
  gap: 10px;
}
@media (max-width: 650px) {
  .menu {
    padding: 85px 22px 155px;
  }
  .menu h1 {
    font-size: 62px;
  }
  .menu:has(.result-stats:not([hidden])) h1 {
    font-size: 50px;
  }
  .result-stats dd {
    font-size: 16px;
  }
  .primary {
    min-width: 235px;
  }
  #restartMatch {
    display: block;
    margin: 12px 0 0;
  }
}

@media (max-width: 650px) {
  .touch-controls > div {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    gap: 5px;
  }
  .touch-controls {
    align-items: flex-end;
  }
}
@media (max-width: 650px) {
  .touch-controls > #touchWeapon,
  .touch-controls > #touchPickup {
    width: 42px;
  }
}

.fov-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 380px;
  color: #b6bfaa;
  font-size: 9px;
  letter-spacing: 1px;
  margin: 0 0 7px;
}
.fov-picker input {
  min-width: 80px;
  width: 150px;
  accent-color: var(--orange);
  cursor: pointer;
}
.fov-picker output {
  min-width: 35px;
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0;
}
.fov-picker input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.setting-hint {
  font-size: 8px;
  color: #96a28c;
  line-height: 1.5;
  margin-bottom: 20px;
}
@media (max-width: 650px) {
  .fov-picker {
    gap: 10px;
  }
  .fov-picker input {
    width: 115px;
  }
}

.headshot-notice {
  position: absolute;
  left: 50%;
  top: calc(50% - 43px);
  transform: translateX(-50%);
  color: #ffe495;
  font-size: 9px;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
#hitmarker.headshot {
  color: #ffe283;
  text-shadow:
    0 0 14px #ffaf39,
    0 1px 3px #111;
}
@media (max-width: 650px) {
  .result-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* HUD readability: brighter, shadowed small text. */
.top-hud .tiny,
.bottom-hud .tiny,
.weapon-label > span:last-child,
.small {
  color: #cfd4c1;
  text-shadow: 0 1px 3px #000c;
}
.health-value,
.ammo-box > div,
.weapon-label b,
.top-hud b {
  text-shadow:
    0 1px 3px #000c,
    0 0 10px #0008;
}
