* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  color-scheme: dark;
  --amber: #ffc16a;
  --teal: #8ed8cd;
  --ink: #141d1d;
  --white: #f5f0e5;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}
body {
  margin: 0;
  background: #536963;
  color: var(--white);
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#lobby {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(13, 25, 26, 0.93) 0%,
      rgba(21, 34, 32, 0.78) 26%,
      rgba(31, 41, 36, 0.12) 64%,
      rgba(20, 30, 27, 0.04)
    ),
    linear-gradient(
      0deg,
      rgba(17, 30, 29, 0.65),
      transparent 24%,
      transparent 80%,
      rgba(30, 42, 38, 0.26)
    );
}
.mast,
footer {
  position: absolute;
  left: 5.5vw;
  right: 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mast {
  top: 4.6vh;
}
.brand {
  display: flex;
  align-items: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: 0.065em;
  gap: 0.42em;
}
.brand > span {
  font: 600 9px monospace;
  align-self: end;
  letter-spacing: 0.13em;
  margin-bottom: 0.35em;
}
.brandmark {
  width: 21px;
  height: 23px;
  display: inline-block;
  background: var(--amber);
  clip-path: polygon(
    0 78%,
    41% 0,
    64% 0,
    23% 78%,
    44% 78%,
    78% 15%,
    100% 52%,
    75% 100%,
    0 100%
  );
}
nav,
.actions,
.under,
.mapkey,
.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiet,
.small,
.iconbtn {
  color: var(--white);
  border: 1px solid #f6e9c54a;
  background: #14232378;
  border-radius: 5px;
  padding: 0.55em 0.92em;
}
.quiet:hover,
.small:hover,
.secondary:hover,
.iconbtn:hover {
  background: #343f3ce0;
  border-color: var(--amber);
}
.launch {
  margin: 1vh 0 0 8vw;
  position: relative;
  max-width: 650px;
  width: fit-content;
}
.mode,
.tiny {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.mode {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eacb96;
}
.mode i {
  width: 26px;
  height: 2px;
  background: var(--amber);
}
.mode span,
.map-title span,
footer b {
  color: #b2a68b;
}
.launch h1 {
  font-size: clamp(66px, 7.8vw, 120px);
  letter-spacing: -0.08em;
  line-height: 1.07;
  margin: 0.18em 0 0.14em;
  font-weight: 900;
  text-shadow: 0 5px 30px #17251d2e;
}
.launch h1 span {
  color: #f3dfb6;
}
.map-title {
  font-size: clamp(17px, 1.6vw, 26px);
  letter-spacing: 0.13em;
  color: #dfdfce;
  margin: 0 0 1.55em;
}
.actions {
  gap: 10px;
}
.primary,
.secondary,
.option {
  border-radius: 5px;
  font-weight: 700;
  padding: 0.85em 1.45em;
}
.primary {
  background: var(--amber);
  color: #292b22;
  border: 1px solid #ffd18a;
  box-shadow: 0 3px 18px #1720162e;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.primary:hover {
  background: #ffd395;
}
.secondary,
.option {
  background: #23302bd4;
  color: var(--white);
  border: 1px solid #e5dbbf72;
}
.secondary span {
  margin-left: 0.9em;
}
.playtri {
  display: block;
  width: 10px;
  height: 13px;
  background: #29342b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.under {
  margin-top: 15px;
  color: #a3ada0;
  font-size: 13px;
}
.textbutton {
  background: none;
  border: none;
  padding: 4px 0;
  color: #e0dfcf;
}
.textbutton:hover {
  color: var(--amber);
  text-decoration: underline;
}
.status {
  font-size: 13px;
  color: #ffdb9f;
  min-height: 1.4em;
  margin-top: 0.6em;
}
.mapcard {
  position: absolute;
  right: 5.5vw;
  bottom: 12vh;
  width: 180px;
  background: #172b29dc;
  border: 1px solid #d9dfbd50;
  border-radius: 7px;
  padding: 12px 15px;
  color: #f2edda;
}
.mapcard > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tiny {
  color: #c3bfa9;
  font-family: ui-monospace, monospace;
}
.mapcard canvas {
  height: 110px;
  max-width: 100%;
  display: block;
  margin: 6px auto;
}
.mapkey {
  justify-content: space-between;
  font-size: 10px;
  color: #cbcdbc;
}
.mapkey b {
  color: var(--amber);
}
.mapkey span + span b {
  color: var(--teal);
}
footer {
  bottom: 3.5vh;
  border-top: 1px solid #e7e2ce38;
  padding-top: 12px;
  color: #d9dbcb;
  font-size: 11px;
  letter-spacing: 0.05em;
}
footer b {
  padding: 0 0.5em;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #8dc1a6;
  border-radius: 100%;
  margin-right: 5px;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  text-shadow: 0 1px 4px #19231a;
}
.radar,
.stats,
.ammo,
.match,
.game-actions,
#feed,
#notice,
#progress,
.hint {
  position: absolute;
}
.radar {
  top: 16px;
  left: 16px;
  border: 1px solid #ffffff44;
  border-radius: 5px;
  padding: 6px 9px;
  background: #142323ce;
  display: grid;
  justify-items: center;
  color: #d5d7c0;
  font-size: 10px;
}
.radar canvas {
  width: clamp(98px, 12vw, 158px);
}
.match {
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  text-align: center;
}
.scoreline {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  background: #182523df;
  border-radius: 5px;
  overflow: hidden;
}
.scoreline > span {
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.scoreline b {
  font-size: 24px;
}
.teamt {
  color: var(--amber);
}
.teamct {
  color: var(--teal);
}
#timer {
  padding: 7px 12px;
  font:
    bold 21px ui-monospace,
    monospace;
}
.match #phase {
  padding: 6px 11px;
  background: #1d2926bf;
  border-radius: 0 0 4px 4px;
  display: inline-block;
  font-size: 12px;
  white-space: nowrap;
}
.game-actions {
  top: 16px;
  right: 14px;
  pointer-events: auto;
}
.small {
  font-size: 12px;
}
.stats,
.ammo {
  bottom: 26px;
  background: #182420d9;
  border: 1px solid #efeadb55;
  padding: 8px 14px;
  border-radius: 4px;
}
.stats {
  left: 22px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.stats strong,
.ammo strong {
  font:
    700 28px ui-monospace,
    monospace;
  color: var(--white);
}
.stats b {
  color: var(--amber);
}
.stats span,
.ammo span {
  font-size: 12px;
}
.ammo {
  right: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.ammo small {
  font-size: 15px;
  color: #c5cbb9;
}
.hint {
  bottom: 9.5%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  background: #17231fa3;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}
#cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#fff, #fff) center top/2px 5px,
    linear-gradient(#fff, #fff) center bottom/2px 5px,
    linear-gradient(#fff, #fff) left center/5px 2px,
    linear-gradient(#fff, #fff) right center/5px 2px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 1px #24322a);
}
#feed {
  top: 63px;
  right: 14px;
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
  color: #f6eed7;
}
#feed div {
  margin: 2px 0;
  background: #19231fae;
  padding: 1px 7px;
  border-radius: 3px;
  width: fit-content;
  margin-left: auto;
}
#notice {
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 700;
  background: #172722ca;
  border-radius: 3px;
  padding: 5px 12px;
  text-align: center;
}
#notice:empty,
.hint:empty {
  display: none;
}
#progress {
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  text-align: center;
}
#progress i {
  display: block;
  width: 130px;
  height: 5px;
  background: #222c26;
  margin-top: 5px;
}
#bar {
  height: 100%;
  display: block;
  background: var(--amber);
}
.hurt {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px #b5462b65;
  opacity: 0;
  transition: opacity 0.15s;
}
dialog {
  padding: 22px 26px 25px;
  border: 1px solid #9caa9475;
  border-radius: 10px;
  width: min(460px, 93vw);
  color: var(--white);
  background: #1b2927;
  box-shadow: 0 20px 80px #0d15199c;
  max-height: 86vh;
  overflow: auto;
}
dialog::backdrop {
  background: #1521208f;
  backdrop-filter: blur(3px);
}
.dialoghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.iconbtn {
  font-size: 20px;
  padding: 0;
  width: 30px;
  height: 30px;
}
.dialoghead .tiny {
  color: var(--amber);
}
h2 {
  font-size: 26px;
  margin: 4px 0 15px;
}
dialog p,
.muted {
  font-size: 13px;
  line-height: 1.65;
  color: #bfc9bc;
}
label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  margin: 10px 0;
  gap: 10px;
}
select,
input {
  width: 62%;
  min-height: 35px;
  border: 1px solid #667468;
  border-radius: 4px;
  background: #12201e;
  color: var(--white);
  padding: 5px 8px;
}
.formbuttons {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.formbuttons button,
.option {
  font-size: 14px;
}
.option {
  padding: 0.55em 0.85em;
}
.keylist {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}
.keylist b {
  color: var(--amber);
  font-family: monospace;
}
.result {
  font-size: 33px;
  color: var(--amber);
  font-weight: 800;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th,
.table td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid #43514a;
}
.table th {
  color: var(--amber);
}
.errmsg {
  color: #ffba91;
  font-size: 12px;
  margin-top: 8px;
  min-height: 1.2em;
}
@media (max-width: 710px) {
  .mapcard {
    display: none;
  }
  .launch {
    margin-left: 7vw;
  }
  .map-title {
    margin-bottom: 1.15em;
  }
  .brand > span {
    display: none;
  }
  .radar {
    top: 8px;
    left: 6px;
  }
  .game-actions {
    top: auto;
    bottom: 78px;
    right: 6px;
  }
  #feed {
    top: 65px;
  }
  .hint {
    max-width: 95%;
    white-space: normal;
  }
  .stats,
  .ammo {
    bottom: 12px;
    padding: 6px;
  }
  .stats {
    left: 6px;
  }
  .ammo {
    right: 6px;
  }
  .stats strong,
  .ammo strong {
    font-size: 21px;
  }
  .quiet {
    font-size: 12px;
  }
  .mast {
    top: 3vh;
  }
  .game-actions .small {
    font-size: 11px;
  }
}
@media (max-height: 470px) {
  .mapcard {
    display: none;
  }
  .launch h1 {
    font-size: 52px;
  }
  .launch {
    margin-top: 6vh;
  }
  .radar canvas {
    width: 88px;
  }
  .map-title {
    margin-bottom: 12px;
  }
  footer {
    bottom: 2vh;
  }
  .mast {
    top: 2vh;
  }
}

/* GoldSrc-style unobstructed HUD. */
#hud {
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
.radar {
  border: 1px solid #d4b56766;
  background: #172119b8;
  border-radius: 50% 50% 7px 7px;
  padding: 6px 7px 5px;
  color: #ffd080;
}
.radar canvas {
  width: clamp(100px, 10vw, 145px);
}
.match .scoreline {
  background: #191b16aa;
  border-radius: 0;
}
.match #phase,
.small {
  border-radius: 0;
}
.stats,
.ammo {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f6bd67;
  font-variant-numeric: tabular-nums;
  padding: 0;
  text-shadow: 1px 2px 3px #382714;
}
.stats .tiny {
  font-size: 0;
}
.stats .tiny::before {
  content: "✚";
  font: bold 28px Arial;
  color: #e7a955;
}
.stats strong,
.ammo strong {
  color: #ffd080;
  font:
    700 clamp(24px, 3.2vw, 38px) "Arial Narrow",
    Arial,
    sans-serif;
  letter-spacing: -1px;
}
.stats #cash,
.ammo small {
  color: #efb36a;
  font-weight: 700;
}
.stats #armor {
  font-size: 17px;
  color: #f4c186;
}
.ammo {
  gap: 10px;
}
.ammo span {
  font-size: 14px;
  font-weight: 700;
}
.hint {
  color: #eed5a7;
  background: #28261e8c;
  border-radius: 1px;
}
#cross {
  --gap: 4px;
  width: calc(var(--gap) * 2 + 11px);
  height: calc(var(--gap) * 2 + 11px);
  background:
    linear-gradient(#77eb43, #77eb43) center top/2px 5px,
    linear-gradient(#77eb43, #77eb43) center bottom/2px 5px,
    linear-gradient(#77eb43, #77eb43) left center/5px 2px,
    linear-gradient(#77eb43, #77eb43) right center/5px 2px;
  background-repeat: no-repeat;
}
#field:focus {
  outline: 0;
}
#held-score {
  position: absolute;
  inset: 11% auto auto 50%;
  transform: translateX(-50%);
  width: min(490px, 88vw);
  max-height: 79vh;
  overflow: hidden;
  background: #17201eee;
  color: #eee3c7;
  padding: 12px 20px;
  border: 1px solid #aa9868;
  pointer-events: none;
}
#held-score table {
  font-variant-numeric: tabular-nums;
}
#engage {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}
.checkrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.checkrow input {
  width: auto;
}
#scope,
#blind,
#smoke-screen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#scope {
  background: radial-gradient(circle closest-side, transparent 98%, #111 100%);
}
#scope::before,
#scope::after {
  content: "";
  position: absolute;
  background: #24251e;
}
#scope::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}
#scope::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}
#blind {
  background: white;
  opacity: 0;
}
#smoke-screen {
  background: #aaa89e;
  opacity: 0;
  transition: opacity 0.17s;
}
.control-hint {
  position: absolute;
  right: 24px;
  bottom: 90px;
  display: grid;
  gap: 3px;
  text-align: right;
  color: #efe4c5;
  font: 600 12px/1.4 system-ui;
  text-shadow: 0 1px 3px black;
}
.buy-context {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: #b6b29d;
  margin: 0 0 13px;
}
.buy-context strong {
  font: 700 23px/1 monospace;
  color: #f2c478;
}
.buy-list {
  display: grid;
  gap: 3px;
}
.buy-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  color: #eee9d7;
  background: #29312c;
  border: 1px solid #4a5145;
  font: inherit;
  cursor: pointer;
}
.buy-row:hover,
.buy-row:focus-visible {
  background: #394337;
  border-color: #c8a765;
}
.buy-row kbd {
  color: #e7b86a;
  font: 700 14px monospace;
}
.buy-row b {
  color: #d3b780;
  font: 600 13px monospace;
}
#buy-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: #ddc696;
}
@media (max-height: 620px) {
  .buy-row {
    padding: 4px 10px;
  }
  .buy-list {
    gap: 2px;
  }
  .control-hint {
    bottom: 70px;
  }
}
#loadout { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:3px; margin-top:3px; }
#loadout span { background:rgba(21,27,21,.76); color:#d7d6c9; padding:3px 6px; border-bottom:2px solid transparent; }
#loadout .selected { color:#ffd683; border-color:#e3b658; }
#loadout kbd { font:inherit; opacity:.76; }
#field.night-vision { filter:grayscale(1) brightness(1.7) sepia(1) saturate(3.2) hue-rotate(44deg); }
#held-shield { pointer-events:none; position:absolute; bottom:-16%; left:-8%; width:28%; height:56%; border-radius:12% 9% 4% 4%; background:linear-gradient(115deg,#424c4c,#2e373a 74%,#535e5b); border:6px solid #323a3a; box-shadow:inset 0 0 0 3px #6c7772; transform:rotate(-14deg); transition:transform .2s,left .2s,bottom .2s; }
#held-shield.raised { left:23%;bottom:-4%;height:64%;width:54%;transform:rotate(0); }
#held-shield i { display:block; width:67%; height:12%;margin:12% auto; background:#647770;box-shadow:inset 0 0 0 5px #252d2c; }
#weapon-mode { color:#ebd5a3; font-size:11px; letter-spacing:.035em; }
#weapon-mode:empty { display:none; }
