@font-face {
  font-family: Barlow;
  src: url("/fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #e8e7d9;
  --muted: #aeb5a4;
  --accent: #c4dc78;
  --ink: #1a231e;
  --line: #dce6ca30;
  font-family: Barlow, Arial, sans-serif;
  color: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #26352d;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#game {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#17241d70, transparent);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.build {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.build b {
  margin-left: 6px;
  font-weight: 500;
  color: var(--paper);
}
.header-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
  height: 34px;
  margin: 0;
}
.header-button {
  padding: 0 16px;
  font-size: 10px;
  letter-spacing: 2px;
}
.icon-button {
  width: 34px;
  padding: 0;
  font-size: 21px;
}
#menu {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #15231ff5 0%,
      #18261eeb 28%,
      #18261e90 49%,
      #14251a08 78%
    ),
    linear-gradient(0deg, #14201ee8, transparent 23%);
}
.menu-content {
  position: absolute;
  top: calc(50% + 9px);
  transform: translateY(-50%);
  left: 7%;
  width: 420px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  scrollbar-width: thin;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
h1 {
  font:
    800 clamp(62px, 6.4vw, 96px) / 0.88 "Barlow Condensed",
    "Arial Narrow",
    Impact,
    sans-serif;
  letter-spacing: -1.5px;
  margin: 25px 0 22px;
}
h1 span {
  color: var(--accent);
}
.intro {
  font-size: 13px;
  line-height: 1.7;
  color: #b6c0b4;
  margin: 0 0 28px;
}
.location {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  gap: 14px;
}
.location-icon {
  font-size: 31px;
  color: var(--accent);
}
.location strong {
  font:
    600 24px "Barlow Condensed",
    sans-serif;
  letter-spacing: 2px;
  display: block;
}
.location div > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 3px;
  color: var(--muted);
}
.map-tag {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #c4dc7860;
  padding: 6px 8px;
  color: var(--accent);
}
.mode-label {
  display: flex;
  justify-content: space-between;
  margin: 22px 0 10px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.mode-label span {
  color: #7b8a7b;
}
.modes {
  display: flex;
  gap: 10px;
}
.mode {
  position: relative;
  text-align: left;
  flex: 1;
  background: #d7ead006;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 13px 15px;
}
.mode.selected {
  border-color: var(--accent);
  background: #c4dc7810;
}
.mode-icon {
  font-size: 19px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.mode strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.mode small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.radio {
  position: absolute;
  right: 13px;
  top: 16px;
  width: 9px;
  height: 9px;
  border: 1px solid #96a58a;
  border-radius: 50%;
}
.selected .radio {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px #253626;
}
.deploy {
  width: 100%;
  border: 0;
  background: var(--accent);
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.7px;
  margin-top: 15px;
  transition: background 0.15s;
}
.deploy:hover {
  background: #d8efa0;
}
.deploy > span:last-child {
  font-size: 23px;
  line-height: 0.8;
}
#status {
  font-size: 10px;
  color: var(--muted);
  min-height: 13px;
  margin: 10px 0 0;
  line-height: 1.5;
}
#status.error {
  color: #ffb290;
}
#network-fields {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
#network-fields label:first-child {
  width: 32%;
}
#network-fields label:last-child {
  width: 68%;
}
input:not([type="range"], [type="checkbox"]),
select {
  width: 100%;
  margin-top: 7px;
  background: #12221e;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0;
}
.map-caption {
  position: absolute;
  right: 6%;
  bottom: 145px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.caption-line {
  height: 1px;
  width: 65px;
  background: var(--paper);
}
.map-caption > span:nth-child(2) {
  font:
    600 24px "Barlow Condensed",
    sans-serif;
  letter-spacing: 2px;
}
.map-caption small {
  display: block;
  font:
    500 8px Barlow,
    Arial,
    sans-serif;
  letter-spacing: 2px;
  margin-top: 6px;
}
.map-caption b {
  font-size: 36px;
  font-weight: 400;
  margin-left: 10px;
}
kbd {
  font:
    500 9px Barlow,
    Arial,
    sans-serif;
  display: inline-block;
  border: 1px solid #d9e6ce40;
  min-width: 19px;
  padding: 4px 5px;
  text-align: center;
  line-height: 1;
  color: var(--paper);
}
.bottom-note {
  margin-left: auto !important;
}
body.playing header {
  display: none;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  text-shadow: 0 1px 4px #0006;
}
.radar-wrap {
  position: absolute;
  top: 72px;
  left: 27px;
  width: 192px;
}
.radar-label {
  padding: 0 8px 10px;
  font:
    600 13px "Barlow Condensed",
    sans-serif;
  letter-spacing: 1px;
}
.radar-label span {
  float: right;
  font:
    500 8px Barlow,
    sans-serif;
  color: var(--accent);
  padding-top: 3px;
}
.radar-circle {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #becda377;
  background: #2d3b30;
  box-shadow: 0 3px 18px #0004;
}
#radar {
  display: block;
  width: 100%;
  height: 100%;
}
.radar-circle::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #d5e1bc20;
  border-radius: 50%;
  pointer-events: none;
}
.radar-player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 15px;
  transform: translate(-50%, -50%);
  background: #e3f5a7;
  clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%);
  filter: drop-shadow(0 1px 2px #000);
}
.radar-bearing {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  color: #e3f5a7;
  font-size: 7px;
}
.radar-footer {
  text-align: center;
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 2px;
  padding: 10px 0;
}
.match {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: linear-gradient(#17241dcc, #17241d00);
  padding: 0 36px 20px;
}
.match > span {
  font-size: 8px;
  letter-spacing: 3px;
  color: #d0d5c4;
}
.match > strong {
  display: block;
  font:
    600 44px/1.2 "Barlow Condensed",
    sans-serif;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.match > div {
  font-size: 8px;
  letter-spacing: 1px;
  color: #d0d5c4;
}
.match b {
  font-size: 12px;
  color: var(--accent);
  margin-right: 5px;
}
.match i {
  display: inline-block;
  width: 1px;
  height: 8px;
  background: var(--line);
  margin: 0 12px;
}
#feed {
  position: absolute;
  top: 32px;
  right: 27px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.kill-item {
  padding: 9px 12px;
  background: #15211fbc;
  border-right: 2px solid var(--accent);
  font-size: 11px;
}
.kill-item span {
  color: var(--accent);
  margin: 0 12px;
  font-size: 10px;
}
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  --gap: 5px;
  filter: drop-shadow(0 1px 1px #0008);
}
#crosshair i {
  position: absolute;
  display: block;
  background: #d3ec9c;
}
#crosshair i:nth-child(1) {
  width: 7px;
  height: 2px;
  right: var(--gap);
  top: -1px;
}
#crosshair i:nth-child(2) {
  width: 7px;
  height: 2px;
  left: var(--gap);
  top: -1px;
}
#crosshair i:nth-child(3) {
  height: 7px;
  width: 2px;
  bottom: var(--gap);
  left: -1px;
}
#crosshair i:nth-child(4) {
  height: 7px;
  width: 2px;
  top: var(--gap);
  left: -1px;
}
#hitmarker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  opacity: 0;
  color: var(--accent);
}
#damage {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 150px #b52f1b90;
  opacity: 0;
}
.health {
  position: absolute;
  bottom: 68px;
  left: 35px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.health > span {
  font:
    500 35px Barlow,
    sans-serif;
  color: var(--accent);
}
.health > strong {
  font:
    600 57px "Barlow Condensed",
    sans-serif;
  min-width: 72px;
}
.health b {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
}
.health-track {
  margin-top: 10px;
  background: #fff3;
  width: 87px;
  height: 3px;
}
.health-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.weapon {
  position: absolute;
  right: 35px;
  bottom: 65px;
  text-align: right;
}
.weapon-name {
  font:
    600 20px "Barlow Condensed",
    sans-serif;
  letter-spacing: 1px;
}
.weapon-name span {
  font:
    500 8px Barlow,
    sans-serif;
  margin-left: 10px;
  color: #d0d5c4;
}
.weapon strong {
  font:
    600 65px/1.1 "Barlow Condensed",
    sans-serif;
}
.reserve {
  font:
    500 30px "Barlow Condensed",
    sans-serif;
  color: #c1c8b5;
  margin-left: 10px;
}
.weapon small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #d0d5c4;
}
.weapon kbd {
  font-size: 8px;
  padding: 2px 4px;
  min-width: 14px;
}
.hud-bottom {
  position: absolute;
  bottom: 22px;
  left: 35px;
  right: 35px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #c1c8b5;
}
.hud-bottom kbd {
  font-size: 8px;
}
#respawn {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: #14211eeb;
  padding: 25px 45px;
}
#respawn > span {
  color: #e8a081;
  font-size: 10px;
  letter-spacing: 3px;
}
#respawn strong {
  display: block;
  font:
    600 40px "Barlow Condensed",
    sans-serif;
  margin: 10px 0;
}
#respawn p {
  font-size: 12px;
  color: var(--muted);
}
.overlay {
  position: fixed;
  inset: 0;
  background: #13221da8;
  display: grid;
  place-items: center;
  z-index: 10;
}
.panel,
dialog {
  background: #1c2b24;
  padding: 36px;
  border: 1px solid var(--line);
  width: 420px;
  max-width: calc(100vw - 32px);
}
h2 {
  font:
    600 40px "Barlow Condensed",
    sans-serif;
  margin: 16px 0 20px;
  letter-spacing: 1px;
}
.panel p,
dialog p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.secondary {
  display: block;
  margin: 12px 0 0;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 15px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 2px;
}
dialog {
  color: var(--paper);
  padding: 30px;
}
dialog::backdrop {
  background: #13221dbb;
}
dialog h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close {
  border: 0;
  background: transparent;
  font-size: 30px;
  color: var(--muted);
}
dialog label {
  margin: 22px 0;
}
.settings-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.settings-tabs button {
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  letter-spacing: 2px;
}
.settings-tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.controls-list {
  margin: 0;
}
.controls-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.controls-list dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}
.controls-list dd {
  margin: 0;
  flex-shrink: 0;
}
dialog output {
  float: right;
  color: var(--accent);
}
dialog .hint {
  margin: -14px 0 22px;
}
input[type="range"] {
  width: 100%;
  display: block;
  margin-top: 13px;
  accent-color: var(--accent);
}
.sound-label {
  display: flex;
  justify-content: space-between;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
#scoreboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 32px;
  background: #192820f2;
  border: 1px solid var(--line);
  width: 460px;
  max-width: 90vw;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr 35px 35px;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.score-row.you {
  color: var(--accent);
}
.score-head {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}
.score-row span:not(:first-child) {
  text-align: right;
}
.score-row small {
  color: var(--muted);
  font-size: 9px;
  margin-left: 9px;
}
@media (max-height: 800px) {
  .menu-content {
    width: 380px;
    top: calc(50% + 8px);
  }
  h1 {
    font-size: 66px;
    margin: 18px 0;
  }
  .intro {
    margin-bottom: 17px;
  }
  .location {
    padding: 12px 0;
  }
  .mode-label {
    margin-top: 15px;
  }
  .mode {
    padding: 10px 13px;
  }
  .mode-icon {
    margin-bottom: 4px;
  }
  .deploy {
    padding: 14px 18px;
  }
}
@media (max-width: 800px) {
  header {
    padding: 0 22px;
    height: 70px;
  }
  .build,
  .map-caption,
  .bottom-note {
    display: none;
  }
  .menu-content {
    left: 6%;
    width: min(420px, 88%);
    max-height: calc(100dvh - 140px);
  }
  #menu {
    background: linear-gradient(90deg, #15231fee, #15231f88);
  }
  .radar-wrap {
    width: 126px;
    left: 16px;
    top: 65px;
  }

  .radar-footer {
    display: none;
  }
  .radar-label span {
    display: none;
  }
  .health {
    left: 18px;
  }
  .weapon {
    right: 18px;
  }
  .hud-bottom {
    left: 18px;
    right: 18px;
  }
  #feed {
    top: 142px;
    right: 16px;
  }
  .match {
    top: 18px;
  }
  h1 {
    font-size: 72px;
  }
}

.range-mode {
  width: 100%;
  margin-top: 10px;
  min-height: 58px;
  padding-left: 48px;
}
.range-mode .mode-icon {
  position: absolute;
  left: 16px;
  top: 16px;
}
#range-tools {
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: #17271ed9;
  border: 1px solid var(--line);
  padding: 12px 16px;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 1px;
}
#range-readout {
  color: var(--accent);
  margin-bottom: 9px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 800px) {
  #range-tools {
    bottom: 160px;
    font-size: 8px;
    padding: 9px;
  }
}

#sessions {
  width: 640px;
  max-height: calc(100dvh - 48px);
}
#sessions-list {
  display: grid;
  gap: 8px;
}
.session-recording {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
}
.session-recording strong, .session-recording small {
  display: block;
}
.session-recording strong { font-size: 13px; }
.session-recording small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.sessions-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#replay-drop {
  position: fixed;
  inset: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: #17221bea;
  border: 2px dashed #d8e98a;
  color: #d8e98a;
  font-size: 32px;
  pointer-events: none;
}
#replay-drop span {
  font-size: 16px;
  color: #dce1d2;
}
#replay-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  background: #18221f;
  color: #e4e8d9;
  padding: 16px 24px;
  max-width: 90vw;
}
#replay-notice.error {
  border: 1px solid #d88570;
}
#replay-controls {
  position: fixed;
  z-index: 50;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 32px));
  padding: 16px 20px;
  background: #17221bf2;
  border: 1px solid #64705b;
  color: #e4e8d9;
  box-shadow: 0 12px 32px #0005;
}
.replay-heading,
.replay-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
#replay-title {
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
#replay-info {
  flex: 1;
  font-size: 12px;
  color: #b8c2aa;
}
#replay-seek {
  width: 100%;
  margin: 16px 0;
  accent-color: #d8e98a;
}
#replay-controls button,
#replay-controls select {
  background: #29362c;
  border: 1px solid #637158;
  color: #e4e8d9;
  padding: 7px 10px;
  cursor: pointer;
}
#replay-play {
  min-width: 72px;
  color: #d8e98a !important;
}
#replay-time {
  flex: 1;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.replay-buttons label {
  font-size: 12px;
}
.replaying .health,
.replaying .weapon {
  bottom: 180px;
}
.replaying .hud-bottom {
  display: none;
}
#replay-drop[hidden],
#replay-controls[hidden],
#replay-notice[hidden] {
  display: none;
}
