:root {
  color-scheme: dark;
  --ink: #eef0ea;
  --muted: #a5b0b1;
  --line: #ffffff22;
  --panel: #162127ee;
  --gold: #d9ba7c;
  --blue: #89b5cf;
  --red: #ce8166;
  font-family: "Arial", sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #18262d;
  color: var(--ink);
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 12px 20px;
  letter-spacing: 1px;
  text-align: left;
  transition:
    background 0.16s,
    border-color 0.16s;
}
button:hover {
  background: #ffffff13;
  border-color: #ffffff60;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #172126;
  font-weight: 700;
}
button.primary:hover {
  background: #ebd09b;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
input,
select {
  accent-color: var(--gold);
  background: #111d24;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px;
  min-height: 44px;
}
input[type="checkbox"] {
  min-height: 24px;
  width: 22px;
}
input[type="range"] {
  padding: 0;
}
canvas#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 55% 40%, transparent 38%, #07101690 100%);
}
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#ui > * {
  pointer-events: auto;
}
.brand {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}
.brand span {
  font-weight: 300;
  color: var(--gold);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #101e2670;
  backdrop-filter: blur(8px);
}
.wordmark {
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 19px;
}
.wordmark small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 18px;
}
.status {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 2px;
}
.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #92b68c;
}
.main-menu {
  position: absolute;
  left: 0;
  top: 76px;
  bottom: 50px;
  width: 470px;
  padding: 48px 48px 20px;
  background: linear-gradient(90deg, #14212bf5, #14212bba 75%, transparent);
}
.main-menu h1 {
  margin: 18px 0 8px;
}
.main-menu .tagline {
  color: #b9c4c7;
  letter-spacing: 3px;
  font-size: 11px;
  margin-bottom: 36px;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.menu-nav button {
  border: 0;
  border-left: 2px solid transparent;
  min-height: 48px;
  padding-left: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}
.menu-nav button:hover {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, #ffffff16, transparent);
}
.menu-nav .play {
  font-size: 23px;
  color: var(--gold);
  margin-bottom: 5px;
}
.navno {
  font-size: 10px;
  color: #90a1aa;
  display: inline-block;
  width: 28px;
  font-weight: 400;
  vertical-align: middle;
}
.brief {
  position: absolute;
  right: 48px;
  bottom: 104px;
  border-left: 2px solid var(--gold);
  padding: 12px 20px;
  background: #13212b88;
  max-width: 350px;
  backdrop-filter: blur(8px);
}
.brief h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 10px 0;
}
.brief p {
  font-size: 13px;
  color: #ced4d4;
  line-height: 1.7;
  margin: 0;
}
.footer {
  position: absolute;
  bottom: 0;
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0 40px;
  background: #101c23c0;
  color: #a5b3b9;
  font-size: 10px;
  letter-spacing: 2px;
}
.panel-screen {
  position: absolute;
  inset: 76px 0 50px;
  background: #11212be8;
  backdrop-filter: blur(14px);
  overflow: auto;
  padding: 32px 5vw;
}
.screen-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.screen-head h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 4px;
  margin: 0;
}
.screen-head button {
  font-size: 20px;
  min-width: 48px;
  text-align: center;
  padding: 8px;
}
.configure {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  gap: 40px;
  max-width: 1300px;
  margin: auto;
}
.map-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.map-card {
  padding: 0;
  position: relative;
  background: #223b49;
  overflow: hidden;
  min-height: 180px;
}
.map-card.selected {
  border-color: var(--gold);
  box-shadow: inset 0 -3px var(--gold);
}
.map-card .terrain {
  height: 125px;
  display: block;
  position: relative;
  background: linear-gradient(150deg, #8fabae 0 43%, #b49a76 44% 62%, #7d7161 63%);
}
.map-card .terrain:before {
  content: "";
  position: absolute;
  width: 40%;
  height: 70%;
  bottom: 0;
  left: 15%;
  background: #a68b69;
  box-shadow:
    40px 25px #877456,
    70px 48px #d0b98e;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}
.map-card .terrain.mirage {
  filter: hue-rotate(12deg) saturate(0.7);
}
.map-card .terrain.range {
  filter: hue-rotate(150deg) saturate(0.2);
}
.map-card b {
  display: block;
  padding: 14px;
  font-size: 13px;
  letter-spacing: 2px;
}
.section-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 16px;
}
.description {
  line-height: 1.8;
  color: #b6c0c4;
  font-size: 14px;
  margin-top: 24px;
  max-width: 630px;
}
.field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  gap: 16px;
  min-height: 56px;
  font-size: 14px;
}
.field select,
.field input[type="number"] {
  width: 180px;
}
.field input[type="range"] {
  width: 170px;
}
.field output {
  min-width: 40px;
  text-align: right;
  color: var(--gold);
}
.field label {
  flex: 1;
}
.team-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.team-buttons button {
  min-height: 64px;
  font-size: 14px;
}
.team-buttons .selected {
  background: #ffffff15;
  border-color: var(--gold);
}
.team-buttons .ct {
  color: var(--blue);
}
.team-buttons .t {
  color: var(--gold);
}
.launch-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.launch-row button {
  min-width: 180px;
  text-align: center;
}
.tiny {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 50px auto;
}
.mode-cards button {
  padding: 32px;
  min-height: 270px;
  background: #ffffff05;
}
.mode-cards strong {
  font-size: 25px;
  display: block;
  margin: 20px 0;
  font-weight: 400;
}
.mode-cards p {
  font-size: 14px;
  line-height: 1.8;
  color: #aebfc8;
  letter-spacing: 0;
}
.mode-cards span {
  color: var(--gold);
  font-size: 12px;
}
.settings-grid {
  max-width: 960px;
  margin: auto;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  max-width: 1000px;
  margin: auto;
}
kbd {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #ffffff50;
  background: #ffffff0a;
  font-size: 12px;
  min-width: 32px;
  text-align: center;
  box-shadow: 0 2px #0005;
}
.pause-wrap {
  position: absolute;
  inset: 0;
  background: #08151cb0;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}
.pause-box {
  width: 360px;
  background: #14252df0;
  padding: 32px;
  border-top: 2px solid var(--gold);
}
.pause-box h1 {
  font-weight: 400;
  letter-spacing: 4px;
  font-size: 26px;
  margin: 0 0 24px;
}
.pause-box button {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.pause-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.scoreboard {
  position: absolute;
  inset: 12% 12%;
  background: #14252df5;
  border-top: 2px solid var(--gold);
  padding: 24px;
  overflow: auto;
}
.scoreboard h2 {
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 3px;
}
.scoreboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.scoreboard th,
.scoreboard td {
  padding: 13px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.scoreboard th:first-child,
.scoreboard td:first-child {
  text-align: left;
}
.scoreboard .ct {
  color: var(--blue);
}
.scoreboard .t {
  color: var(--gold);
}
.scoreboard .dead {
  opacity: 0.4;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px #0009;
}
#hud[hidden] {
  display: none;
}
.top-score {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.team-score {
  background: #142534cf;
  min-width: 75px;
  padding: 8px 14px;
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 3px solid var(--blue);
}
.team-score.t {
  color: var(--gold);
  border-color: var(--gold);
}
.team-score small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #dae0df;
}
.timer {
  background: #111b21db;
  padding: 8px 22px;
  min-width: 120px;
  font-size: 27px;
}
.timer small {
  display: block;
  color: #bfc8c9;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 3px;
}
.radar-wrap {
  position: absolute;
  top: 20px;
  left: 24px;
}
.radar-wrap canvas {
  width: 190px;
  height: 190px;
  border: 1px solid #d3d7ce55;
  border-radius: 50%;
  background: #121f29c4;
}
.location {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--gold);
  letter-spacing: 1px;
}
.money {
  font-size: 26px;
  color: #d8e1b5;
  margin-top: 12px;
  font-weight: 700;
}
.alive {
  position: absolute;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 3px;
  font-size: 12px;
}
.vitals {
  position: absolute;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.vitals b {
  font-size: 34px;
  color: #dfe9ec;
}
.vitals span {
  color: var(--blue);
  font-size: 18px;
  margin-right: 8px;
}
.vitals small {
  display: block;
  height: 3px;
  background: var(--blue);
  margin-top: 5px;
}
.ammo {
  position: absolute;
  right: 30px;
  bottom: 23px;
  text-align: right;
}
.ammo b {
  font-size: 42px;
}
.ammo em {
  font-size: 22px;
  font-style: normal;
  color: #a8b8c2;
}
.ammo .weapon-name {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #dce2e0;
}
.slots {
  position: absolute;
  right: 24px;
  bottom: 112px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  font-size: 12px;
  color: #ced8df;
  text-align: right;
}
.slots span {
  padding: 6px 10px;
  background: #12233199;
}
.slots .active {
  color: var(--gold);
  border-right: 2px solid var(--gold);
}
.feed {
  position: absolute;
  top: 125px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.feed div {
  background: #14212bdc;
  padding: 7px 12px;
  font-size: 12px;
  border-right: 2px solid var(--gold);
}
.feed .ct {
  color: var(--blue);
}
.feed .t {
  color: var(--gold);
}
.feed i {
  font-style: normal;
  color: #cbd2d2;
  padding: 0 10px;
}
.objective {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}
.objective .progress {
  height: 4px;
  width: 240px;
  background: #ffffff30;
  margin: 10px auto;
}
.objective .progress i {
  height: 100%;
  background: var(--gold);
  display: block;
}
.announcement {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 420px;
  text-align: center;
  background: #13232de8;
  padding: 20px 40px;
  border-top: 2px solid var(--gold);
}
.announcement h2 {
  margin: 4px 0 10px;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 3px;
}
.announcement p {
  font-size: 13px;
  color: #bac8ca;
  margin: 0;
}
.hint {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.4px;
  background: #10222bc9;
  padding: 10px 16px;
  max-width: 80%;
  text-align: center;
}
.hud-help {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 1px;
  color: #c3cccb;
}
.training-stats {
  position: absolute;
  left: 26px;
  top: 280px;
  background: #13232dce;
  padding: 16px;
  font-size: 12px;
  line-height: 2.2;
  border-left: 2px solid var(--gold);
}
#crosshair {
  position: fixed; left: 50%; top: 50%; width: 0; height: 0;
  pointer-events: none; --gap: 7px;
}
#crosshair i {position:absolute;background:#b7dab7;box-shadow:0 0 1px #000;width:2px;height:7px;left:-1px;}
#crosshair i:nth-child(1){top:calc(-7px - var(--gap));}
#crosshair i:nth-child(2){top:var(--gap);}
#crosshair i:nth-child(3){width:7px;height:2px;top:-1px;left:calc(-7px - var(--gap));}
#crosshair i:nth-child(4){width:7px;height:2px;top:-1px;left:var(--gap);}
#hitmark {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: white;
  pointer-events: none;
  opacity: 0;
}
#flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
#hurt {
  position: fixed;
  inset: 0;
  box-shadow: inset 0 0 110px #bc392d;
  opacity: 0;
  pointer-events: none;
}
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #14232ff5;
  border-left: 2px solid var(--gold);
  padding: 14px 24px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  max-width: 80%;
  z-index: 30;
}
#loading {
  position: fixed;
  inset: 0;
  background: #14232c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 90;
}
#loading p {
  font-size: 12px;
  letter-spacing: 5px;
  color: #acb8bd;
}
#loading small {
  color: #9eafb6;
  font-size: 12px;
  margin-top: 16px;
}
.load-track {
  height: 2px;
  width: 260px;
  background: #ffffff15;
  margin-top: 30px;
  overflow: hidden;
}
.load-track i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: load 1.5s infinite;
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
#fatal {
  position: fixed;
  inset: 10%;
  z-index: 100;
  background: #14232c;
  padding: 50px;
  overflow: auto;
}
.buy-screen {
  position: absolute;
  inset: 0;
  background: #0f1b25e8;
  backdrop-filter: blur(14px);
  padding: 30px 4vw;
  overflow: auto;
}
.buy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.buy-top h1 {
  font-size: 26px;
  letter-spacing: 4px;
  font-weight: 400;
  margin: 0;
}
.buy-layout {
  display: grid;
  grid-template-columns: 210px 1fr 240px;
  gap: 25px;
}
.buy-nav button {
  width: 100%;
  display: block;
  border: 0;
  border-left: 2px solid transparent;
  font-size: 12px;
  min-height: 44px;
  letter-spacing: 2px;
}
.buy-nav button.active {
  border-left-color: var(--gold);
  background: #ffffff0d;
  color: var(--gold);
}
.buy-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.weapon-card {
  padding: 18px;
  min-height: 146px;
  background: #ffffff05;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
}
.weapon-card svg {
  width: 100%;
  height: 45px;
  fill: #9faeaf;
  opacity: 0.85;
  margin: 5px 0 12px;
}
.weapon-card strong {
  font-size: 14px;
  letter-spacing: 1px;
}
.weapon-card .price {
  color: var(--gold);
  font-size: 13px;
  margin-top: 5px;
}
.weapon-card small {
  font-size: 10px;
  color: #a4b5bd;
  letter-spacing: 0.5px;
  line-height: 1.6;
}
.economy {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.economy h2 {
  font-size: 32px;
  color: #d8deb2;
  margin: 12px 0 24px;
}
.economy .tier {
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 2px;
}
.economy p {
  font-size: 12px;
  line-height: 1.9;
  color: #adbec4;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: auto;
}
.inventory-grid article {
  background: #ffffff08;
  border-left: 2px solid var(--blue);
  padding: 20px;
  min-height: 150px;
}
.inventory-grid h3 {
  font-size: 17px;
  font-weight: 400;
  margin: 12px 0 4px;
}
.inventory-grid p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.scope {
  --scope-radius: min(46vw,46vh);
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  /* The aperture fits the shorter PLAYABLE dimension, including portrait and
     letterboxed windows. Every pixel outside it is fully opaque black. */
  background: radial-gradient(circle at 50% 50%, transparent 0 calc(var(--scope-radius) - 1px), #000 var(--scope-radius));
  opacity: 1;
  mix-blend-mode: normal;
  display: none;
}
.scope:before,
.scope:after {
  content: "";
  position: absolute;
  background: #000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.scope:before { width: calc(var(--scope-radius) * 2); height: 1px; }
.scope:after { height: calc(var(--scope-radius) * 2); width: 1px; }
.scope.active { display: block; }
.notice {
  padding: 16px 20px;
  background: #ffffff06;
  border-left: 2px solid var(--gold);
  font-size: 13px;
  line-height: 1.7;
  color: #c2cdd1;
  margin-top: 24px;
}
.result {
  text-align: center;
  max-width: 700px;
  margin: 60px auto;
}
.result h1 {
  font-size: 48px;
  letter-spacing: 5px;
  font-weight: 300;
}
.result .final-score {
  font-size: 80px;
  color: var(--gold);
}
.result button {
  margin: 20px 6px;
}
.result p {
  color: var(--muted);
  line-height: 1.8;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.mobile-note {
  display: none;
}
@media (max-width: 800px) {
  .main-menu {
    width: 380px;
    padding: 36px 24px;
  }
  .brief {
    display: none;
  }
  .topbar {
    padding: 0 24px;
  }
  .wordmark small {
    display: none;
  }
  .configure {
    grid-template-columns: 1fr;
  }
  .map-options {
    gap: 8px;
  }
  .map-card b {
    padding: 10px;
    font-size: 11px;
  }
  .mode-cards {
    grid-template-columns: 1fr;
    margin: 0;
    gap: 10px;
  }
  .mode-cards button {
    min-height: 130px;
    padding: 20px;
  }
  .mode-cards strong {
    font-size: 20px;
    margin: 8px 0;
  }
  .mode-cards p {
    margin: 0;
  }
  .buy-layout {
    grid-template-columns: 145px 1fr;
  }
  .economy {
    grid-column: 1 / -1;
  }
  .buy-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .controls-grid {
    grid-template-columns: 1fr;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .status {
    font-size: 10px;
  }
  .footer {
    padding: 0 16px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .radar-wrap {
    transform: scale(0.7);
    transform-origin: top left;
  }
  .team-score {
    font-size: 22px;
    min-width: 55px;
  }
  .timer {
    font-size: 22px;
    padding: 8px 12px;
    min-width: 100px;
  }
  .scoreboard {
    inset: 8% 3%;
    padding: 12px;
  }
  .scoreboard td,
  .scoreboard th {
    padding: 10px 4px;
    font-size: 11px;
  }
  .mobile-note {
    display: block;
    color: var(--gold);
    font-size: 11px;
    margin-top: 12px;
  }
  .field select {
    width: 150px;
  }
  .screen-head h1 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
/* Thumbnails are captures of the playable scenes, not stock art. */
.map-card[data-map="sirocco"] .terrain {
  background: url("assets/previews/sirocco.webp") center/cover;
}
.map-card[data-map="kasbah"] .terrain {
  background: url("assets/previews/kasbah.webp") center/cover;
  filter: none;
}
.map-card[data-map="range"] .terrain {
  background: url("assets/previews/range.webp") center/cover;
  filter: none;
}
.map-card .terrain:before {
  display: none;
}
/* Game UI is not a document: suppress selection, dragging and long-press menus. */
html,body,body *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
img,canvas{-webkit-user-drag:none;user-drag:none}
html,body{overscroll-behavior:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Fixed descendants share the centred playable viewport, including HUD. */
html,body{width:100%;height:100%;background:#05090c}
#viewport{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,200vh);height:min(100vh,200vw);overflow:hidden;background:#18262d}
#fatal button{margin-top:20px;padding:14px 24px;background:#d9ba7c;color:#14212a;border:0;cursor:pointer}

.load-error{pointer-events:auto;max-width:min(520px,calc(100vw - 32px));padding:28px;background:#182d39;color:#fff;border:1px solid #88a9bb;line-height:1.5}
.load-error::backdrop{background:#061018c9}
.load-error button{margin:12px 12px 0 0;padding:12px 20px;cursor:pointer;background:#304f61;color:#fff;border:1px solid #9bb6c6}

.scope-zoom{position:absolute;left:calc(50% + 55px);top:calc(50% + 55px);font:14px Arial;color:#fff;text-shadow:0 1px 3px #000;pointer-events:none}
