/* Zombie Base Defense: HUD and menus.
   Military tactical look: stencil numbers, olive/khaki panels with angled
   corners and amber brackets, hazard red for danger, subtle scanlines/noise.
   Everything is scoped under #hud.zbd. */

#hud.zbd {
  --ink: #0b0d09;
  --panel-a: rgba(20, 24, 15, 0.8);
  --panel-b: rgba(9, 11, 7, 0.66);
  --line: rgba(214, 200, 154, 0.24);
  --line-hi: rgba(214, 200, 154, 0.45);
  --sand: #efe6c6;
  --khaki: #c4b689;
  --olive: #7d8b45;
  --olive-hi: #a9bb5c;
  --amber: #ffb21e;
  --amber-hi: #ffd36b;
  --red: #ff3b2b;
  --goo: #9bff3d;
  --ally: #7cf06a;
  --veh: #58b8ff;
  --f-stencil: 'Black Ops One', 'Impact', 'Arial Black', sans-serif;
  --f-ui: 'Rajdhani', 'Bahnschrift', 'Arial Narrow', 'Roboto Condensed', sans-serif;

  font-family: var(--f-ui);
  font-size: clamp(12px, calc(0.66vw + 0.7vh), 20px);
  color: var(--sand);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}
#hud.zbd *, #hud.zbd *::before, #hud.zbd *::after { box-sizing: border-box; }
#hud.zbd .is-hidden { display: none !important; }
:where(#hud.zbd) .ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
:where(#hud.zbd) button { font-family: inherit; }
:where(#hud.zbd) :is(h1, h2, h3, h4) { font-weight: 400; }

/* ---------- shared: panels, key caps, mouse glyphs, buttons ---------- */

.zbd .p {
  --cut: 0.75em;
  --acc: rgba(255, 178, 30, 0.85);
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 240, 200, 0.06), rgba(255, 240, 200, 0) 42%),
    linear-gradient(180deg, var(--panel-a), var(--panel-b));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
}
.zbd .p::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--acc), var(--acc)) top right / 1.1em 2px no-repeat,
    linear-gradient(var(--acc), var(--acc)) top right / 2px 1.1em no-repeat,
    linear-gradient(var(--acc), var(--acc)) bottom left / 1.1em 2px no-repeat,
    linear-gradient(var(--acc), var(--acc)) bottom left / 2px 1.1em no-repeat;
}
.zbd .p::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  opacity: 0.7;
}

.zbd .kc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em;
  height: 1.8em;
  padding: 0 0.42em;
  margin: 0 0.1em;
  font: 700 0.82em/1 var(--f-ui);
  letter-spacing: 0.04em;
  color: #1b1c13;
  text-shadow: none;
  background: linear-gradient(180deg, #f6eed4, #cfc29a);
  border-radius: 0.3em;
  box-shadow: 0 0.17em 0 #75694b, 0 0.25em 0.45em rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  vertical-align: middle;
  position: relative;
  top: -0.08em;
}
.zbd .kc.wide { min-width: 3.1em; }
.zbd .kc.wider { min-width: 5em; }
.zbd .sep { font-style: normal; margin: 0 0.15em; color: var(--khaki); }

.zbd .mouse {
  display: inline-block;
  width: 1.15em;
  height: 1.7em;
  margin: 0 0.18em;
  border-radius: 0.6em;
  border: 2px solid #e9dfbf;
  position: relative;
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0.15em 0.35em rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.zbd .mouse::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0.62em;
  background: #e9dfbf;
  transform: translateX(-50%);
  z-index: 1;
}
.zbd .mouse.l::after,
.zbd .mouse.r::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 0.62em;
  background: var(--amber);
}
.zbd .mouse.l::after { left: 0; }
.zbd .mouse.r::after { right: 0; }
.zbd .mouse.w::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.18em;
  width: 0.3em;
  height: 0.46em;
  background: var(--amber);
  border-radius: 0.2em;
  transform: translateX(-50%);
  z-index: 2;
}

.zbd .btn {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  border: 0;
  background: none;
  padding: 0.6em 2.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font: 400 1em/1 var(--f-stencil);
  letter-spacing: 0.08em;
  color: #1b1405;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  isolation: isolate;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.zbd .btn::before,
.zbd .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0.9em 0, 100% 0, calc(100% - 0.9em) 100%, 0 100%);
}
.zbd .btn::before {
  background: linear-gradient(180deg, #ffe08f 0%, #ffb21e 52%, #e38f06 100%);
  box-shadow: inset 0 -0.2em 0 rgba(120, 60, 0, 0.35);
}
.zbd .btn::after {
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  animation: zbd-shimmer 3.2s ease-in-out infinite;
}
.zbd .btn:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.1) drop-shadow(0 0 0.7em rgba(255, 178, 30, 0.55)); }
.zbd .btn:active { transform: translateY(1px) scale(0.99); }
.zbd .btn .ic { width: 0.95em; height: 0.95em; }
.zbd .btn-xl { font-size: 2.2em; padding: 0.5em 1.9em; }
.zbd .btn-ghost { color: var(--sand); text-shadow: 0 1px 2px #000; font-size: 1.1em; padding: 0.5em 1.4em; }
.zbd .btn-ghost::before { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-hi); }
.zbd .btn-ghost::after { display: none; }
.zbd .btn-ghost:hover { filter: none; }
.zbd .btn-ghost:hover::before { background: rgba(255, 178, 30, 0.22); }
.zbd .btn-ghost .kc { font-size: 0.7em; }

.zbd .kicker {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font: 700 0.95em var(--f-ui);
  letter-spacing: 0.32em;
  color: var(--amber);
}
.zbd .kicker .ic { width: 1.2em; height: 1.2em; }
.zbd .kicker.danger { color: var(--red); justify-content: center; }

.zbd .card-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 0.9em;
  font: 400 1.35em/1 var(--f-stencil);
  letter-spacing: 0.08em;
  color: var(--sand);
}
.zbd .card-title .ic { width: 1.05em; height: 1.05em; color: var(--amber); }
.zbd .card-title small { margin-left: auto; font: 700 0.5em var(--f-ui); letter-spacing: 0.28em; color: var(--khaki); }
.zbd .card-sub {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1em 0 0.55em;
  padding-top: 0.75em;
  border-top: 1px solid var(--line);
  font: 400 0.95em/1 var(--f-stencil);
  letter-spacing: 0.12em;
  color: var(--khaki);
}
.zbd .card-sub .ic { width: 1.5em; height: 1.5em; color: var(--veh); }

/* Control grids: [keys label] [keys label] */
.zbd .ctl-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 0.38em 0.7em; align-items: center; }
.zbd .ctl-grid.one { grid-template-columns: auto 1fr; }
.zbd .ctl { display: contents; }
.zbd .ctl-keys { display: inline-flex; align-items: center; white-space: nowrap; min-height: 1.9em; }
.zbd .ctl-label { font: 600 0.92em var(--f-ui); color: var(--sand); letter-spacing: 0.02em; white-space: nowrap; }
.zbd .ctl-grid.small .ctl-keys { min-height: 1.7em; }
.zbd .ctl-grid.small .ctl-label { font-size: 0.88em; color: var(--khaki); }

/* ---------- screens ---------- */

.zbd .screen { position: absolute; inset: 0; pointer-events: auto; display: flex; z-index: 5; }
.zbd .scr-noise {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 96px 96px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  animation: zbd-noise 0.6s steps(3) infinite;
}
.zbd .scr-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 8, 4, 0.82) 0%, rgba(6, 8, 4, 0.55) 34%, rgba(6, 8, 4, 0) 62%),
    linear-gradient(0deg, rgba(6, 8, 4, 0.75) 0%, rgba(6, 8, 4, 0) 26%),
    radial-gradient(ellipse at 60% 40%, transparent 35%, rgba(0, 0, 0, 0.6) 100%);
}
.zbd .scr-dim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 45%, rgba(10, 12, 7, 0.6), rgba(4, 5, 3, 0.9));
  -webkit-backdrop-filter: blur(5px) saturate(0.7);
  backdrop-filter: blur(5px) saturate(0.7);
}
.zbd .scr-dim.heavy { background: radial-gradient(ellipse at 50% 40%, rgba(16, 19, 11, 0.86), rgba(4, 5, 3, 0.95)); }

/* ----- title ----- */
.zbd .scr-title { flex-direction: column; }
.zbd .ts-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4em 2.6em 0;
  font: 700 0.9em var(--f-ui);
  letter-spacing: 0.26em;
  color: var(--khaki);
}
.zbd .ts-top .ic { width: 1.3em; height: 1.3em; color: var(--amber); margin-right: 0.5em; }
.zbd .ts-classified { display: flex; align-items: center; }
.zbd .ts-classified span { padding: 0.2em 0.6em; border: 1px solid rgba(255, 59, 43, 0.6); color: #ff8a73; background: rgba(255, 59, 43, 0.08); }
.zbd .ts-best { display: flex; align-items: center; gap: 0.5em; }
.zbd .ts-best b { font: 400 1.5em var(--f-stencil); color: var(--amber-hi); letter-spacing: 0.05em; }
.zbd .ts-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5em;
  padding: 0 2.6em;
}
.zbd .ts-left { flex: 1; min-width: 0; max-width: 56em; container-type: inline-size; animation: zbd-rise 0.8s cubic-bezier(.2, .8, .2, 1) both; }
.zbd .ts-brand { display: flex; align-items: center; gap: min(1.3em, 2.3cqw); }
.zbd .ts-emblem { flex: none; }
.zbd .ts-emblem .emblem { width: min(7.4em, 13.5cqw); height: auto; display: block; filter: drop-shadow(0 0.4em 0.9em rgba(0, 0, 0, 0.7)); animation: zbd-float 4s ease-in-out infinite; }
.zbd .ts-title { margin: 0; font-size: 1em; font-family: var(--f-stencil); line-height: 0.86; }
.zbd .ts-title .t1 {
  position: relative;
  display: block;
  font-size: min(11.4em, 19cqw);
  letter-spacing: 0.03em;
  color: var(--goo);
  white-space: nowrap;
  text-shadow: 0 0.035em 0 #3f8a14, 0 0.07em 0 #23510a, 0 0.12em 0.25em rgba(0, 0, 0, 0.75);
}
.zbd .t1-drips { position: absolute; left: 0.04em; right: 0.12em; top: 84%; height: 0.3em; color: #78d82f; filter: drop-shadow(0 0.04em 0 #23510a); z-index: -1; }
.zbd .t1-drips .drips { width: 100%; height: 100%; display: block; }
.zbd .ts-title .t2 {
  display: block;
  margin-top: 0.36em;
  white-space: nowrap;
  font-size: min(5.24em, 8.7cqw);
  letter-spacing: 0.1em;
  color: var(--sand);
  text-shadow: 0 0.05em 0 #6e6446, 0 0.1em 0.25em rgba(0, 0, 0, 0.8);
}
.zbd .ts-tagline { margin: 0.8em 0 1.1em; font: 600 1.55em var(--f-ui); letter-spacing: 0.04em; color: var(--khaki); }
.zbd .ts-tagline b { color: var(--amber-hi); }
.zbd .ts-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.9em 1.1em; }

/* Title mode buttons: PLAY (battle) and EXPLORE BASE. */
.zbd .mode-btn {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.8em 2.6em 0.85em 1.15em;
  text-align: left;
  font-family: var(--f-ui);
  font-size: 1em;
  clip-path: polygon(1em 0, 100% 0, 100% calc(100% - 1em), calc(100% - 1em) 100%, 0 100%, 0 1em);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.zbd .mode-btn:hover { transform: translateY(-2px) scale(1.025); filter: brightness(1.1) drop-shadow(0 0 0.8em rgba(255, 178, 30, 0.45)); }
.zbd .mode-btn:active { transform: translateY(1px) scale(0.99); }
.zbd .mb-ic { flex: none; display: flex; }
.zbd .mb-ic .ic { width: 2.3em; height: 2.3em; }
.zbd .mb-txt { display: flex; flex-direction: column; gap: 0.28em; min-width: 0; }
.zbd .mb-txt b { font: 400 2.15em/1 var(--f-stencil); letter-spacing: 0.06em; white-space: nowrap; }
.zbd .mb-txt small { font: 700 0.92em/1.22 var(--f-ui); letter-spacing: 0.03em; }
.zbd .mb-key { position: absolute; top: 0.5em; right: 0.75em; font-size: 0.78em; opacity: 0.9; }
.zbd .mb-key .kc { margin: 0; }
.zbd .mb-play {
  color: #1b1405;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #ffe08f 0%, #ffb21e 55%, #e38f06 100%);
  box-shadow: inset 0 -0.25em 0 rgba(120, 60, 0, 0.35);
}
.zbd .mb-play::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 45%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  animation: zbd-shimmer 3.2s ease-in-out infinite;
}
.zbd .mb-play .mb-txt small { color: rgba(40, 24, 0, 0.82); text-shadow: none; }
.zbd .mb-play .mb-ic { color: #2a1a00; }
.zbd .mb-explore {
  flex: 1 1 22em;
  max-width: 30em;
  color: var(--sand);
  background:
    linear-gradient(180deg, rgba(155, 255, 61, 0.2), rgba(155, 255, 61, 0.05)),
    linear-gradient(180deg, rgba(36, 46, 22, 0.92), rgba(14, 18, 9, 0.92));
  box-shadow: inset 0 0 0 2px rgba(155, 255, 61, 0.65), inset 0 -0.25em 0 rgba(0, 0, 0, 0.35);
}
.zbd .mb-explore .mb-txt b { color: var(--goo); text-shadow: 0 0.06em 0 #23510a, 0 0.1em 0.3em rgba(0, 0, 0, 0.6); }
.zbd .mb-explore .mb-txt small { color: var(--khaki); }
.zbd .mb-explore .mb-ic { color: var(--goo); filter: drop-shadow(0 0 0.35em rgba(155, 255, 61, 0.5)); }
.zbd .mb-explore:hover { filter: brightness(1.15) drop-shadow(0 0 0.8em rgba(155, 255, 61, 0.45)); }
.zbd .ts-touch {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1em;
  padding: 0.6em 1em;
  max-width: 34em;
  background: rgba(255, 59, 43, 0.14);
  box-shadow: inset 0.3em 0 0 var(--red);
  font: 700 1.05em var(--f-ui);
}
.zbd .ts-touch .ic { width: 1.4em; height: 1.4em; color: var(--red); }
.zbd .ts-brief {
  list-style: none;
  margin: 1.8em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em 1.6em;
  max-width: 46em;
  font: 600 1.02em/1.25 var(--f-ui);
}
.zbd .ts-brief li { display: flex; align-items: center; gap: 0.7em; }
.zbd .ts-brief li > .ic { width: 2em; height: 2em; color: var(--amber); padding: 0.3em; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .ts-brief b { color: var(--amber-hi); }
.zbd .ts-brief .kc { font-size: 0.75em; }
.zbd .ts-controls { width: 32em; flex: none; max-height: 100%; overflow: hidden; padding: 1.15em 1.3em 1.2em; animation: zbd-rise 0.8s 0.12s cubic-bezier(.2, .8, .2, 1) both; }
/* Labels may wrap here rather than run past the panel edge (VIS-1). */
.zbd .ts-controls .ctl-grid { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
.zbd .ts-controls .ctl-label { white-space: normal; }
.zbd .ctl-tip { display: flex; align-items: center; gap: 0.55em; margin: 0.9em 0 0; padding: 0.5em 0.75em; font: 600 0.86em/1.3 var(--f-ui); color: var(--sand); background: rgba(155, 255, 61, 0.08); box-shadow: inset 0.22em 0 0 var(--goo); }
.zbd .ctl-tip .ic { width: 1.25em; height: 1.25em; color: var(--goo); }
.zbd .ctl-tip b { color: var(--goo); }
.zbd .ctl-tip .kc { font-size: 0.8em; }
.zbd .ts-ticker { position: relative; height: 2.5em; display: flex; align-items: center; background: rgba(0, 0, 0, 0.62); overflow: hidden; }
.zbd .hazard { position: absolute; left: 0; right: 0; top: 0; height: 0.36em; background: repeating-linear-gradient(-45deg, var(--amber) 0 0.8em, #141410 0.8em 1.6em); }
.zbd .ticker { flex: 1; overflow: hidden; white-space: nowrap; padding-top: 0.36em; font: 700 0.95em var(--f-ui); letter-spacing: 0.26em; color: var(--amber-hi); }
.zbd .ticker-track { display: inline-flex; animation: zbd-ticker 60s linear infinite; }
.zbd .ticker-track span { white-space: nowrap; }

/* ----- pause ----- */
.zbd .ps-wrap { position: relative; margin: auto; display: flex; gap: 2.6em; align-items: stretch; width: min(74em, 94vw); }
.zbd .ps-left { width: 23.5em; flex: none; display: flex; flex-direction: column; justify-content: center; }
.zbd .mbtn > span { white-space: nowrap; }
.zbd .ps-title { margin: 0.12em 0 0.35em; font: 400 5.2em/1 var(--f-stencil); color: var(--sand); letter-spacing: 0.04em; text-shadow: 0 0.06em 0 #4a4230, 0 0.1em 0.3em rgba(0, 0, 0, 0.8); }
.zbd .ps-menu { display: flex; flex-direction: column; gap: 0.5em; }
.zbd .mbtn {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75em;
  border: 0;
  padding: 0.62em 1em;
  color: var(--sand);
  text-align: left;
  font: 400 1.45em/1 var(--f-stencil);
  letter-spacing: 0.07em;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 0.6em) 100%, 0 100%);
  transition: background 0.15s, padding 0.15s, box-shadow 0.15s;
  text-shadow: 0 1px 2px #000;
}
.zbd .mbtn .ic { width: 0.95em; height: 0.95em; }
.zbd .mbtn:hover, .zbd .mbtn.active {
  padding-left: 1.4em;
  background: linear-gradient(90deg, rgba(255, 178, 30, 0.34), rgba(255, 178, 30, 0.04));
  box-shadow: inset 0.3em 0 0 var(--amber), inset 0 0 0 1px rgba(255, 178, 30, 0.45);
}
.zbd .mbtn.primary { color: #1b1405; text-shadow: none; background: linear-gradient(90deg, #ffd36b, #ffb21e); box-shadow: none; }
.zbd .mbtn.primary:hover { filter: brightness(1.1); box-shadow: inset 0.3em 0 0 #fff4; }
.zbd .mbtn.danger:hover, .zbd .mbtn.confirm {
  background: linear-gradient(90deg, rgba(255, 59, 43, 0.5), rgba(255, 59, 43, 0.06));
  box-shadow: inset 0.3em 0 0 var(--red), inset 0 0 0 1px rgba(255, 59, 43, 0.5);
}
.zbd .mbtn.confirm { animation: zbd-blink 0.5s ease-in-out infinite alternate; }
.zbd .mbtn-key { margin-left: auto; font: 700 0.42em var(--f-ui); letter-spacing: 0.24em; font-style: normal; opacity: 0.65; }
/* Explore mode ON/OFF switch in the pause menu. */
.zbd .mode-tog .tog {
  margin-left: auto;
  position: relative;
  flex: none;
  width: 4.6em;
  height: 2em;
  font: 700 0.5em/2em var(--f-ui);
  letter-spacing: 0.14em;
  font-style: normal;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px var(--line-hi);
  transition: background 0.15s;
}
.zbd .mode-tog .tog b { position: absolute; top: 0; font-weight: 700; }
.zbd .mode-tog .tog-off { right: 0.55em; color: var(--khaki); }
.zbd .mode-tog .tog-on { left: 0.6em; color: #142800; opacity: 0; text-shadow: none; }
.zbd .mode-tog .tog-knob { position: absolute; top: 0.25em; left: 0.25em; width: 1.5em; height: 1.5em; background: var(--khaki); transition: transform 0.18s cubic-bezier(.2, .8, .2, 1), background 0.15s; }
.zbd .mode-tog.on { background: linear-gradient(90deg, rgba(155, 255, 61, 0.3), rgba(155, 255, 61, 0.05)); box-shadow: inset 0.3em 0 0 var(--goo), inset 0 0 0 1px rgba(155, 255, 61, 0.5); }
.zbd .mode-tog.on .tog { background: var(--goo); box-shadow: 0 0 0.8em rgba(155, 255, 61, 0.5); }
.zbd .mode-tog.on .tog-on { opacity: 1; }
.zbd .mode-tog.on .tog-off { opacity: 0; }
.zbd .mode-tog.on .tog-knob { transform: translateX(2.6em); background: #142800; }
.zbd .mode-tog.on > .ic { color: var(--goo); }
.zbd .ps-mode {
  display: flex;
  align-items: center;
  gap: 0.85em;
  margin: -0.2em 0 1em;
  padding: 0.75em 1em;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0.25em 0 0 var(--khaki), inset 0 0 0 1px var(--line);
}
.zbd .pm-ic { flex: none; display: flex; color: var(--khaki); }
.zbd .pm-ic .ic { width: 2.5em; height: 2.5em; }
.zbd .pm-txt { display: flex; flex-direction: column; gap: 0.25em; min-width: 0; }
.zbd .pm-txt b { font: 400 1.3em/1.05 var(--f-stencil); letter-spacing: 0.05em; color: var(--sand); }
.zbd .pm-txt span { font: 600 0.98em/1.28 var(--f-ui); color: var(--khaki); }
.zbd .ps-mode.explore { background: rgba(155, 255, 61, 0.09); box-shadow: inset 0.25em 0 0 var(--goo), inset 0 0 0 1px rgba(155, 255, 61, 0.35); }
.zbd .ps-mode.explore .pm-ic, .zbd .ps-mode.explore b { color: var(--goo); }
.zbd .ps-mode.alert { background: rgba(255, 59, 43, 0.16); box-shadow: inset 0.25em 0 0 var(--red), inset 0 0 0 1px rgba(255, 59, 43, 0.55); }
.zbd .ps-mode.alert .pm-ic, .zbd .ps-mode.alert b { color: #ff6a52; }
.zbd .ps-mode.alert b { animation: zbd-blink 0.55s ease-in-out infinite alternate; }
.zbd .ps-mode.alert span { color: var(--sand); }
.zbd .ps-panel { flex: 1; min-width: 0; padding: 1.5em 1.7em; min-height: 28em; }
.zbd .sitrep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
.zbd .sr { padding: 0.7em 0.9em; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .sr small, .zbd .gs small, .zbd .go-score small, .zbd .go-best small {
  display: block;
  font: 700 0.72em var(--f-ui);
  letter-spacing: 0.26em;
  color: var(--khaki);
}
.zbd .sr b { display: block; margin-top: 0.15em; font: 400 2em/1 var(--f-stencil); color: var(--sand); }
.zbd .ps-tip { display: flex; align-items: center; gap: 0.7em; margin: 1.4em 0 0; padding: 0.8em 1em; background: rgba(255, 178, 30, 0.08); box-shadow: inset 0.25em 0 0 var(--amber); font: 600 1.05em var(--f-ui); color: var(--sand); }
.zbd .ps-tip .ic { width: 1.3em; height: 1.3em; color: var(--amber); }
.zbd .setting {
  display: grid;
  grid-template-columns: 13em 1fr 4.2em;
  align-items: center;
  gap: 1em;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--line);
  font: 700 1.05em var(--f-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.zbd .setting small { font-weight: 600; color: var(--khaki); }
.zbd .set-val { font: 400 1.15em var(--f-stencil); color: var(--amber-hi); text-align: right; }
.zbd input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.55em;
  --val: 50%;
  background: linear-gradient(90deg, #ffb21e 0, #ffd36b var(--val), rgba(0, 0, 0, 0.55) var(--val));
  box-shadow: inset 0 0 0 1px var(--line-hi);
  outline: none;
  cursor: pointer;
  pointer-events: auto;
}
.zbd input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.3em;
  height: 1.3em;
  background: linear-gradient(180deg, #ffe08f, #ffb21e);
  border: 2px solid #1b1405;
  transform: rotate(45deg);
  box-shadow: 0 0 0.6em rgba(255, 178, 30, 0.6);
}
.zbd input[type='range']::-moz-range-thumb { width: 1.2em; height: 1.2em; background: var(--amber); border: 2px solid #1b1405; border-radius: 0; }
.zbd .toggle-row { grid-template-columns: 1fr auto; }
.zbd .toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.zbd .switch { width: 3.2em; height: 1.5em; position: relative; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px var(--line-hi); transition: background 0.15s; }
.zbd .switch::after { content: ''; position: absolute; top: 0.2em; left: 0.2em; width: 1.1em; height: 1.1em; background: var(--khaki); transition: transform 0.15s, background 0.15s; }
.zbd .toggle-row input:checked + .switch { background: rgba(155, 255, 61, 0.25); }
.zbd .toggle-row input:checked + .switch::after { transform: translateX(1.7em); background: var(--goo); }
.zbd .click-resume { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.62); cursor: pointer; z-index: 3; }
.zbd .click-resume { background: rgba(0, 0, 0, 0.72); }
.zbd .cr-box { display: flex; flex-direction: column; align-items: center; gap: 0.45em; padding: 1.6em 3.2em 1.5em; text-align: center; background: linear-gradient(180deg, rgba(26, 30, 18, 0.97), rgba(12, 14, 9, 0.97)); box-shadow: inset 0 0 0 2px rgba(255, 178, 30, 0.7), 0 1em 3em rgba(0, 0, 0, 0.7); clip-path: polygon(1em 0, 100% 0, 100% calc(100% - 1em), calc(100% - 1em) 100%, 0 100%, 0 1em); animation: zbd-pulse 1.1s ease-in-out infinite alternate; }
.zbd .cr-box .ic { width: 4em; height: 4em; color: var(--amber); }
.zbd .cr-box b { font: 400 3.2em/1 var(--f-stencil); color: var(--amber-hi); letter-spacing: 0.06em; }
.zbd .cr-box small { font: 700 1em var(--f-ui); letter-spacing: 0.2em; color: var(--khaki); }

/* ----- armory ----- */
.zbd .ar-wrap { position: relative; margin: auto; width: min(86em, 95vw); height: min(47em, 93vh); display: flex; flex-direction: column; gap: 0.8em; }
.zbd .ar-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.6em; border-bottom: 2px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--amber) 0 0.5em, transparent 0.5em 1em) 2; }
.zbd .ar-title { display: flex; align-items: center; gap: 0.8em; }
.zbd .ar-title > .ic { width: 3.1em; height: 3.1em; color: var(--amber); filter: drop-shadow(0 0.2em 0.4em #000); }
.zbd .ar-title h2 { margin: 0; font: 400 2.9em/1 var(--f-stencil); letter-spacing: 0.06em; }
.zbd .ar-title small { font: 700 0.85em var(--f-ui); letter-spacing: 0.24em; color: var(--khaki); }
.zbd .ar-head-right { display: flex; align-items: center; gap: 1.4em; }
.zbd .ar-keys { font: 700 0.85em var(--f-ui); letter-spacing: 0.12em; color: var(--khaki); }
.zbd .ar-body { flex: 1; min-height: 0; display: flex; gap: 1.2em; }
.zbd .ar-list { flex: 1.45; min-width: 0; overflow-y: auto; padding-right: 0.6em; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.1em 1.3em; scrollbar-width: thin; scrollbar-color: var(--amber) rgba(0, 0, 0, 0.3); }
.zbd .ar-list::-webkit-scrollbar { width: 6px; }
.zbd .ar-list::-webkit-scrollbar-thumb { background: var(--amber); }
.zbd .ar-list::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.zbd .ar-group-title { display: flex; align-items: center; gap: 0.6em; margin: 0.5em 0 0.5em; font: 400 1.02em/1 var(--f-stencil); letter-spacing: 0.16em; color: var(--amber); }
.zbd .ar-group-title i { font: 700 0.8em var(--f-ui); font-style: normal; color: var(--khaki); }
.zbd .ar-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.zbd .ar-group { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.zbd .ar-grid { display: flex; flex-wrap: wrap; gap: 0.55em; }
.zbd .ar-card {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  width: 10.6em;
  border: 0;
  padding: 0.55em 0.6em 0.55em;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  color: var(--sand);
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0.6em 0, 100% 0, 100% calc(100% - 0.6em), calc(100% - 0.6em) 100%, 0 100%, 0 0.6em);
  transition: background 0.12s, box-shadow 0.12s, transform 0.12s;
}
.zbd .ar-card-art { display: block; height: 4em; position: relative; }
.zbd .ar-card canvas { width: 100%; height: 100%; display: block; position: relative; }
/* Real 3D renders get a soft light backdrop so dark guns read on dark cards. */
.zbd .ar-card.is-3d .ar-card-art::before {
  content: '';
  position: absolute;
  inset: -0.15em -0.2em;
  background: radial-gradient(ellipse 58% 62% at 50% 55%, rgba(239, 230, 198, 0.42), rgba(239, 230, 198, 0.12) 62%, transparent 82%);
}
.zbd .ar-card.is-3d.selected .ar-card-art::before { background: radial-gradient(ellipse 58% 62% at 50% 55%, rgba(255, 214, 120, 0.62), rgba(255, 178, 30, 0.16) 62%, transparent 82%); }
.zbd .ar-card.is-3d canvas { filter: drop-shadow(0 0.18em 0.18em rgba(0, 0, 0, 0.55)); }
.zbd .ar-card-name { font: 700 0.95em var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zbd .ar-card-name.long { font-size: 0.8em; letter-spacing: 0.05em; }
.zbd .ar-hot { position: absolute; top: 0.4em; left: 0.75em; font: 400 0.85em/1 var(--f-stencil); color: var(--khaki); opacity: 0.85; }
.zbd .ar-card-eq { position: absolute; top: 0.4em; right: 0.5em; display: none; color: var(--goo); }
.zbd .ar-card-eq .ic { width: 1em; height: 1em; filter: drop-shadow(0 0 0.3em rgba(155, 255, 61, 0.7)); }
.zbd .ar-card.equipped .ar-card-eq { display: block; }
.zbd .ar-card:hover { background: linear-gradient(180deg, rgba(255, 178, 30, 0.16), rgba(255, 178, 30, 0.04)); transform: translateY(-1px); }
.zbd .ar-card.selected { background: linear-gradient(180deg, rgba(255, 178, 30, 0.3), rgba(255, 178, 30, 0.08)); box-shadow: inset 0 0 0 2px var(--amber); }
.zbd .ar-card.selected .ar-hot { color: var(--amber-hi); }
.zbd .ar-empty { display: flex; align-items: center; gap: 0.6em; padding: 2em 1em; font: 700 1.1em var(--f-ui); color: var(--khaki); }
.zbd .ar-empty .ic { width: 1.6em; height: 1.6em; color: var(--amber); }
.zbd .ar-detail { flex: 1; min-width: 22em; display: flex; flex-direction: column; padding: 1em 1.3em 1.2em; }
.zbd .ar-preview {
  position: relative;
  flex: none;
  height: 12.5em;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 178, 30, 0.16), transparent 70%),
    linear-gradient(rgba(214, 200, 154, 0.08) 1px, transparent 1px) 0 0 / 1.2em 1.2em,
    linear-gradient(90deg, rgba(214, 200, 154, 0.08) 1px, transparent 1px) 0 0 / 1.2em 1.2em,
    rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
}
.zbd .ar-big { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0.55em 0.45em rgba(0, 0, 0, 0.6)); }
.zbd .ar-cat { position: absolute; left: 0.7em; top: 0.55em; font: 700 0.75em var(--f-ui); letter-spacing: 0.26em; color: var(--khaki); }
.zbd .ar-eq-tag { position: absolute; right: 0.7em; top: 0.5em; display: flex; align-items: center; gap: 0.35em; font: 400 0.85em var(--f-stencil); letter-spacing: 0.08em; color: var(--goo); }
.zbd .ar-name { margin: 0.45em 0 0.15em; font: 400 2.05em/1 var(--f-stencil); letter-spacing: 0.03em; }
.zbd .ar-name.long { font-size: 1.7em; }
.zbd .ar-desc { margin: 0 0 0.6em; min-height: 2.5em; font: 600 1em/1.25 var(--f-ui); color: var(--khaki); }
.zbd .ar-chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.75em; }
.zbd .chip { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.22em 0.6em; font: 700 0.78em var(--f-ui); letter-spacing: 0.14em; color: var(--khaki); background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .chip .ic { width: 1.15em; height: 1.15em; color: var(--amber); }
.zbd .chip b { color: var(--sand); }
.zbd .ar-stats { display: grid; gap: 0.45em; }
.zbd .stat { display: grid; grid-template-columns: 6.6em 1fr 1.7em; gap: 0.75em; align-items: center; font: 700 0.9em var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.zbd .stat-bar { position: relative; height: 0.7em; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 calc(10% - 2px), transparent calc(10% - 2px) 10%); }
.zbd .stat-fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--amber-hi) 0 calc(10% - 2px), transparent calc(10% - 2px) 10%); clip-path: inset(0 100% 0 0); transition: clip-path 0.3s cubic-bezier(.2, .8, .2, 1); }
.zbd .stat-cur { position: absolute; top: -0.25em; bottom: -0.25em; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0.35em #fff; z-index: 1; }
.zbd .stat-val { font: 400 1.1em var(--f-stencil); text-align: right; }
.zbd .stat-val.up { color: var(--goo); }
.zbd .stat-val.down { color: #ff7a5a; }
.zbd .ar-skins-head { display: flex; justify-content: space-between; margin: 0.95em 0 0.45em; font: 700 0.8em var(--f-ui); letter-spacing: 0.26em; color: var(--khaki); }
.zbd .ar-skins-head b { color: var(--amber-hi); font-weight: 700; }
.zbd .ar-skins { display: flex; flex-wrap: wrap; gap: 0.45em; }
.zbd .swatch {
  pointer-events: auto;
  cursor: pointer;
  width: 2.3em;
  height: 2.3em;
  border: 0;
  clip-path: polygon(0.45em 0, 100% 0, 100% calc(100% - 0.45em), calc(100% - 0.45em) 100%, 0 100%, 0 0.45em);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45), inset 0 0.5em 0.5em rgba(255, 255, 255, 0.15);
  transition: transform 0.1s;
}
.zbd .swatch:hover { transform: scale(1.08); }
.zbd .swatch.active { box-shadow: inset 0 0 0 3px var(--amber-hi), inset 0 0 0 5px rgba(0, 0, 0, 0.65); transform: scale(1.1); }
.zbd .ar-equip { margin-top: auto; align-self: stretch; font-size: 1.85em; }

/* ----- game over ----- */
.zbd .scr-over { align-items: center; justify-content: center; }
.zbd .scr-over:not(.is-hidden) { animation: zbd-fade 0.9s ease-out 1.1s both; }
.zbd .go-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(70, 0, 0, 0.45), rgba(16, 0, 0, 0.92));
  -webkit-backdrop-filter: grayscale(0.9) blur(2px);
  backdrop-filter: grayscale(0.9) blur(2px);
}
.zbd .go-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.95em; width: min(56em, 92vw); text-align: center; }
.zbd .go-title {
  position: relative;
  margin: 0;
  font: 400 5.6em/1 var(--f-stencil);
  letter-spacing: 0.04em;
  color: var(--red);
  text-shadow: 0 0.05em 0 #3c0000, 0 0 0.5em rgba(255, 0, 0, 0.45);
  animation: zbd-slam 0.6s cubic-bezier(.2, 1.4, .4, 1) 1.2s both;
}
.zbd .go-title::before,
.zbd .go-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.zbd .go-title::before { color: #00e5ff; transform: translate(-2px, 0); clip-path: inset(0 0 62% 0); animation: zbd-glitch 2.6s steps(1) infinite; mix-blend-mode: screen; }
.zbd .go-title::after { color: #ffe100; transform: translate(2px, 0); clip-path: inset(58% 0 0 0); animation: zbd-glitch 3.1s steps(1) infinite reverse; mix-blend-mode: screen; }
.zbd .go-wave { font: 700 1.4em var(--f-ui); letter-spacing: 0.22em; color: var(--sand); }
.zbd .go-wave b { font: 400 1.3em var(--f-stencil); color: var(--amber-hi); letter-spacing: 0.06em; }
.zbd .go-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7em; width: 100%; }
.zbd .gs { display: flex; flex-direction: column; align-items: center; gap: 0.25em; padding: 0.9em 0.6em 0.8em; }
.zbd .gs > .ic { width: 2em; height: 2em; color: var(--khaki); }
.zbd .gs b { font: 400 2.1em/1 var(--f-stencil); color: var(--sand); }
.zbd .go-score { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0.95em 1.7em; --acc: rgba(155, 255, 61, 0.8); }
.zbd .go-score-main { text-align: left; }
.zbd .go-score-main b { font: 400 3.3em/1 var(--f-stencil); color: var(--amber-hi); text-shadow: 0 0 0.4em rgba(255, 178, 30, 0.35); }
.zbd .go-best { display: flex; align-items: center; gap: 0.55em; }
.zbd .go-best > .ic { width: 2em; height: 2em; color: var(--amber); }
.zbd .go-best b { font: 400 1.8em/1 var(--f-stencil); }
.zbd .go-new { padding: 0.25em 0.6em; font: 400 0.95em var(--f-stencil); letter-spacing: 0.06em; color: #142800; background: var(--goo); text-shadow: none; animation: zbd-pulse 0.6s ease-in-out infinite alternate; }
.zbd .btn-again { margin-top: 0.3em; }

/* ---------- in-game HUD ---------- */

.zbd .hud-game { position: absolute; inset: 0; transition: opacity 0.5s; }
.zbd[data-mode='title'] .hud-game { display: none; }
.zbd[data-mode='gameover'] .hud-game { opacity: 0; transition: opacity 0.9s 0.4s; }
.zbd[data-mode='pause'] .hud-game, .zbd[data-mode='armory'] .hud-game { opacity: 0.3; transition: opacity 0.2s; }

.zbd .fx-lowhp, .zbd .fx-hit { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.zbd .fx-lowhp { background: radial-gradient(ellipse at center, transparent 38%, rgba(170, 0, 0, 0.4) 68%, rgba(120, 0, 0, 0.88) 100%); }
.zbd .fx-lowhp::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 24, 0, 0.6) 100%); opacity: 0; }
.zbd .fx-lowhp.pulse::after { animation: zbd-hp-pulse 0.85s ease-in-out infinite; }
.zbd .fx-hit { background: radial-gradient(ellipse at center, transparent 42%, rgba(255, 30, 10, 0.35) 75%, rgba(220, 0, 0, 0.65) 100%); }

/* Corners */
.zbd .h-tl { position: absolute; left: 1.5em; top: 1.3em; display: flex; flex-direction: column; align-items: center; gap: 0.75em; }
.zbd .h-top { position: absolute; left: 50%; top: 0.8em; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4em; }
.zbd .h-tr { position: absolute; right: 1.5em; top: 1.3em; width: 24em; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5em; }
.zbd .h-bl { position: absolute; left: 1.5em; bottom: 1.4em; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em; }
.zbd .h-br { position: absolute; right: 1.5em; bottom: 1.4em; }
/* Bottom center column: never wider than the gap between the corner panels. */
.zbd .h-bc { position: absolute; left: 50%; bottom: 2.2em; transform: translateX(-50%); width: max(24em, min(46em, calc(100vw - 50em))); display: flex; flex-direction: column; align-items: center; gap: 0.55em; pointer-events: none; }
.zbd .h-center { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }

/* Minimap */
.zbd .mm { position: relative; width: 13.2em; height: 13.2em; }
.zbd .mm-canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.zbd .mm-ring {
  position: absolute;
  inset: -0.42em;
  border-radius: 50%;
  border: 0.22em solid rgba(214, 200, 154, 0.6);
  box-shadow: 0 0 0 0.2em rgba(0, 0, 0, 0.6), 0 0.35em 1em rgba(0, 0, 0, 0.55), inset 0 0 1.4em rgba(0, 0, 0, 0.75);
}
.zbd .mm-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.6deg, rgba(255, 211, 107, 0.65) 0 1.2deg, transparent 1.2deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 0.45em), #000 calc(100% - 0.45em));
  mask: radial-gradient(circle, transparent calc(100% - 0.45em), #000 calc(100% - 0.45em));
}
.zbd .mm-key { display: flex; align-items: center; gap: 0.35em; font: 700 0.72em var(--f-ui); letter-spacing: 0.24em; color: var(--khaki); }
.zbd .mm-key .kc { font-size: 0.95em; }

/* Compass */
.zbd .compass {
  position: relative;
  width: 24em;
  height: 1.9em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.zbd .compass-strip {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  will-change: transform;
  background: repeating-linear-gradient(90deg, rgba(239, 230, 198, 0.55) 0 1px, transparent 1px 1.2em) left bottom / 100% 0.42em no-repeat;
}
.zbd .compass-strip .cd {
  position: absolute;
  bottom: 0.48em;
  transform: translateX(-50%);
  font: 700 0.78em/1 var(--f-ui);
  letter-spacing: 0.04em;
  color: rgba(239, 230, 198, 0.75);
}
.zbd .compass-strip .cd.card { font: 400 1.15em/1 var(--f-stencil); color: var(--amber-hi); }
.zbd .compass-strip .cd.inter { font-size: 0.9em; color: var(--sand); }
.zbd .compass-mark { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; border: 0.38em solid transparent; border-bottom-color: var(--amber); margin-left: -0.38em; }
.zbd .compass-boss { position: absolute; left: 50%; top: 0; margin-left: -0.6em; width: 1.2em; height: 1.2em; color: var(--red); filter: drop-shadow(0 0 0.3em rgba(255, 40, 20, 0.9)); }
.zbd .compass-boss .ic { width: 1.2em; height: 1.2em; }
.zbd .compass-boss.edge { opacity: 0.6; }

/* Wave */
.zbd .wave { display: flex; align-items: stretch; gap: 1em; padding: 0.35em 1.3em 0.45em; min-width: 17em; justify-content: center; --cut: 0.6em; }
.zbd .wave-num { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.zbd .wave-num small, .zbd .wave-info small, .zbd .score small, .zbd .hp-top small, .zbd .veh-hp small, .zbd .gauge small {
  font: 700 0.7em var(--f-ui);
  letter-spacing: 0.3em;
  color: var(--khaki);
}
.zbd .wave-num b { font: 400 2.5em/1 var(--f-stencil); color: var(--amber-hi); text-shadow: 0 0 0.35em rgba(255, 178, 30, 0.4), 0 2px 0 #000; }
.zbd .wave-info { display: flex; flex-direction: column; justify-content: center; padding-left: 1em; border-left: 1px solid var(--line); }
.zbd .wave-val { font: 400 1.95em/1 var(--f-stencil); color: var(--sand); }
.zbd .wave.inter .wave-val { color: var(--goo); }
.zbd .wave.standby .wave-val { font-size: 1.35em; color: var(--khaki); letter-spacing: 0.08em; }
.zbd .wave.urgent .wave-val { color: var(--red); animation: zbd-blink 0.45s ease-in-out infinite alternate; }
.zbd .wave-bar { width: 17em; height: 0.28em; background: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); }
.zbd .wave-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--olive), var(--goo)); }
.zbd .wave-bar.inter i { background: linear-gradient(90deg, var(--amber), var(--amber-hi)); }

/* Explore mode: badge + firing range / hidden zombie counters (replaces the wave panel). */
.zbd .xp { display: flex; align-items: stretch; padding: 0.4em 0.4em 0.45em 0.5em; --cut: 0.6em; --acc: rgba(155, 255, 61, 0.9); animation: zbd-rise 0.35s ease-out both; }
.zbd .xp-badge { display: flex; align-items: center; gap: 0.45em; padding: 0 0.95em 0 0.35em; color: var(--goo); border-right: 1px solid var(--line); }
.zbd .xp-badge .ic { width: 2.1em; height: 2.1em; filter: drop-shadow(0 0 0.35em rgba(155, 255, 61, 0.55)); }
.zbd .xp-badge b { font: 400 1.02em/0.98 var(--f-stencil); letter-spacing: 0.1em; text-shadow: 0 0 0.45em rgba(155, 255, 61, 0.35), 0 2px 0 #000; }
.zbd .xp-stat { display: flex; align-items: center; gap: 0.5em; padding: 0 1em; }
.zbd .xp-stat + .xp-stat { border-left: 1px solid var(--line); }
.zbd .xp-stat > .ic { width: 1.75em; height: 1.75em; color: var(--amber); }
.zbd .xp-hidden > .ic { color: var(--goo); }
.zbd .xp-stat b { display: block; font: 400 1.85em/1 var(--f-stencil); color: var(--sand); white-space: nowrap; }
.zbd .xp-stat b i { font-style: normal; font-size: 0.55em; color: var(--khaki); margin-left: 0.25em; }
.zbd .xp-stat small { display: block; margin-top: 0.1em; font: 700 0.6em var(--f-ui); letter-spacing: 0.22em; color: var(--khaki); white-space: nowrap; }
.zbd .xp-hidden.done b, .zbd .xp-hidden.done b i { color: var(--goo); text-shadow: 0 0 0.4em rgba(155, 255, 61, 0.6), 0 2px 0 #000; }
.zbd .xp-hint { display: flex; align-items: center; gap: 0.45em; padding: 0.22em 0.9em 0.26em; font: 700 0.8em var(--f-ui); letter-spacing: 0.06em; color: var(--sand); background: rgba(10, 12, 8, 0.62); clip-path: polygon(0.5em 0, 100% 0, calc(100% - 0.5em) 100%, 0 100%); white-space: nowrap; }
.zbd .xp-hint .ic { width: 1.15em; height: 1.15em; color: var(--amber); }
.zbd .xp-hint b { color: var(--amber-hi); }
.zbd .xp-hint > i { font-style: normal; color: var(--khaki); }
.zbd .xp-hint .kc { font-size: 0.78em; }
.zbd .boss { width: 30em; display: flex; flex-direction: column; align-items: center; gap: 0.25em; margin-top: 0.25em; animation: zbd-rise 0.4s ease-out both; }
.zbd .boss-name { display: flex; align-items: center; gap: 0.5em; font: 400 1.15em/1 var(--f-stencil); letter-spacing: 0.14em; color: #ff6a52; text-shadow: 0 0 0.5em rgba(255, 40, 20, 0.7), 0 2px 0 #000; }
.zbd .boss-name .ic { width: 1.2em; height: 1.2em; }
.zbd .boss-bar { position: relative; width: 100%; height: 1em; background: rgba(30, 0, 0, 0.75); box-shadow: inset 0 0 0 1px rgba(255, 80, 60, 0.65), 0 0 0.8em rgba(255, 30, 0, 0.35); transform: skewX(-22deg); }
.zbd .boss-bar i { position: absolute; left: 0.18em; right: 0.18em; top: 0.18em; bottom: 0.18em; transform-origin: left; }
.zbd .boss-chip { background: rgba(255, 240, 220, 0.8); }
.zbd .boss-fill { background: linear-gradient(180deg, #ff7a52, #d81e08 60%, #8e0c00); }
.zbd .boss-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 2px), rgba(0, 0, 0, 0.5) calc(5% - 2px) 5%); }

/* Score / kills / allies */
.zbd .score { padding: 0.4em 1.3em 0.5em 1.7em; min-width: 12.5em; text-align: right; }
.zbd .score small { display: block; }
.zbd .score-val { display: block; font: 400 2.35em/1 var(--f-stencil); color: var(--sand); }
.zbd .score-pop { position: absolute; right: 1.3em; top: 100%; font: 400 1.2em/1 var(--f-stencil); color: var(--amber-hi); opacity: 0; text-shadow: 0 0 0.4em rgba(255, 178, 30, 0.6), 0 2px 0 #000; }
.zbd .score { overflow: visible; }
.zbd .tr-row { display: flex; gap: 0.5em; }
.zbd .pill {
  display: flex;
  align-items: center;
  gap: 0.42em;
  padding: 0.3em 0.85em 0.3em 0.6em;
  background: rgba(10, 12, 8, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0.5em 0, 100% 0, 100% 100%, 0 100%, 0 0.5em);
}
.zbd .pill .ic { width: 1.35em; height: 1.35em; }
.zbd .pill b { font: 400 1.3em/1 var(--f-stencil); }
.zbd .pill small { font: 700 0.66em var(--f-ui); letter-spacing: 0.22em; color: var(--khaki); }
.zbd .pill.kills .ic { color: #e9dfbf; }
.zbd .pill.allies .ic { color: var(--ally); }
.zbd .pill.allies.none .ic, .zbd .pill.allies.none b { color: var(--red); }

/* Kill feed */
.zbd .feed { display: flex; flex-direction: column; align-items: flex-end; gap: 0.28em; margin-top: 0.35em; }
.zbd .fe {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.28em 0.75em 0.28em 1.6em;
  font: 700 0.95em/1.1 var(--f-ui);
  letter-spacing: 0.07em;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(10, 12, 8, 0), rgba(10, 12, 8, 0.78) 1.6em);
}
.zbd .fe .ic { width: 1.35em; height: 1.35em; color: var(--goo); }
.zbd .fe-w { color: var(--khaki); font-size: 0.82em; letter-spacing: 0.12em; }
.zbd .fe-hs { padding: 0.1em 0.4em; font: 400 0.78em/1.2 var(--f-stencil); letter-spacing: 0.06em; color: #1b1000; background: var(--amber); text-shadow: none; }
.zbd .fe-pts { font: 400 1.05em var(--f-stencil); color: var(--amber-hi); }
.zbd .fe.bad { color: #ffb4a6; }
.zbd .fe.bad .ic { color: var(--red); }
.zbd .fe.boss .ic { color: var(--red); }
.zbd .fe.boss .fe-name { color: #ff8a73; }
.zbd .fe.info .ic { color: var(--amber); }

/* Crosshair */
.zbd .xhair { position: absolute; left: 0; top: 0; --gap: 8px; }
.zbd .xl, .zbd .xdot, .zbd .xcirc { position: absolute; left: 0; top: 0; }
.zbd .xl { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55); transition: transform 0.06s linear; }
.zbd .xl.t, .zbd .xl.b { width: 2px; height: 11px; }
.zbd .xl.l, .zbd .xl.r { width: 11px; height: 2px; }
.zbd .xl.t { transform: translate(-1px, calc(-100% - var(--gap))); }
.zbd .xl.b { transform: translate(-1px, var(--gap)); }
.zbd .xl.l { transform: translate(calc(-100% - var(--gap)), -1px); }
.zbd .xl.r { transform: translate(var(--gap), -1px); }
.zbd .xdot { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
.zbd .xcirc { width: calc(var(--gap) * 2 + 10px); height: calc(var(--gap) * 2 + 10px); border: 2px solid rgba(255, 255, 255, 0.92); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.45); }
.zbd .xhair[data-style='cross'] .xcirc { display: none; }
.zbd .xhair[data-style='dot'] .xl, .zbd .xhair[data-style='dot'] .xcirc { display: none; }
.zbd .xhair[data-style='dot'] .xdot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.zbd .xhair[data-style='circle'] .xl { display: none; }
.zbd .xhair[data-style='vehicle'] .xcirc { --gap: 14px; border-color: rgba(88, 184, 255, 0.95); }
.zbd .xhair[data-style='vehicle'] .xl { background: rgba(160, 215, 255, 0.95); }
.zbd .hitm { position: absolute; left: 0; top: 0; width: 36px; height: 36px; transform: translate(-50%, -50%); opacity: 0; }
.zbd .hitm i { position: absolute; left: 50%; top: 50%; width: 2.5px; height: 9px; margin: -4.5px 0 0 -1.25px; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.9); }
.zbd .hitm i:nth-child(1) { transform: rotate(45deg) translateY(-11px); }
.zbd .hitm i:nth-child(2) { transform: rotate(135deg) translateY(-11px); }
.zbd .hitm i:nth-child(3) { transform: rotate(225deg) translateY(-11px); }
.zbd .hitm i:nth-child(4) { transform: rotate(315deg) translateY(-11px); }
.zbd .hitm.kill i { width: 3.5px; height: 12px; margin: -6px 0 0 -1.75px; background: var(--red); box-shadow: 0 0 4px rgba(255, 40, 20, 0.9), 0 0 1px #000; }
.zbd .hitm.hs i { background: var(--amber-hi); }
.zbd .hitm.kill.hs i { background: var(--red); }
.zbd .hs-pop { position: absolute; left: 0; top: 2.4em; transform: translateX(-50%); white-space: nowrap; opacity: 0; font: 400 1.55em/1 var(--f-stencil); letter-spacing: 0.08em; color: var(--amber-hi); text-shadow: 0 0 0.45em rgba(255, 130, 0, 0.8), 0 2px 0 #000; }
.zbd .dmg-ring { position: absolute; left: 0; top: 0; }
.zbd .dmg { position: absolute; left: -9.5em; top: -9.5em; width: 19em; height: 19em; opacity: 0; }
.zbd .dmg svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 0.35em rgba(255, 30, 10, 0.9)); }

/* Sniper scope */
.zbd .scope { position: absolute; inset: 0; }
.zbd .scope-mask { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0, transparent calc(44vh - 1px), #000 44vh); }
.zbd .scope-reticle { position: absolute; left: 50%; top: 50%; width: 88vh; height: 88vh; transform: translate(-50%, -50%); }
.zbd .hud-game.scoped .h-center { display: none; }

/* Banner */
.zbd .banner { position: absolute; left: 0; right: 0; top: 26%; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.zbd .banner-stripe { width: 30em; height: 0.42em; margin-bottom: 0.55em; background: repeating-linear-gradient(-45deg, var(--amber) 0 0.7em, #141410 0.7em 1.4em); box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, 0.5); }
.zbd .banner-title { font: 400 4.6em/1 var(--f-stencil); letter-spacing: 0.08em; color: var(--sand); text-shadow: 0 0.05em 0 #5c5236, 0 0.09em 0 #000, 0 0 0.6em rgba(0, 0, 0, 0.7); }
.zbd .banner-sub { margin-top: 0.45em; padding: 0.3em 1.6em; font: 700 1.35em var(--f-ui); letter-spacing: 0.28em; color: var(--amber-hi); background: rgba(0, 0, 0, 0.6); clip-path: polygon(0.7em 0, 100% 0, calc(100% - 0.7em) 100%, 0 100%); }
.zbd .banner.v-boss .banner-title { color: var(--red); text-shadow: 0 0 0.4em rgba(255, 30, 0, 0.7), 0 0.06em 0 #000; }
.zbd .banner.v-boss .banner-stripe { background: repeating-linear-gradient(-45deg, var(--red) 0 0.7em, #141410 0.7em 1.4em); }
.zbd .banner.v-boss .banner-sub { color: #fff; background: rgba(170, 10, 0, 0.75); }
.zbd .banner.v-clear .banner-title { color: var(--goo); text-shadow: 0 0.05em 0 #2d6a0c, 0 0.09em 0 #000, 0 0 0.5em rgba(155, 255, 61, 0.35); }
.zbd .banner.v-clear .banner-stripe { background: repeating-linear-gradient(-45deg, var(--goo) 0 0.7em, #141410 0.7em 1.4em); }
.zbd .banner.v-explore .banner-title { color: var(--goo); text-shadow: 0 0.05em 0 #2d6a0c, 0 0.09em 0 #000, 0 0 0.5em rgba(155, 255, 61, 0.35); }
.zbd .banner.v-explore .banner-stripe { background: repeating-linear-gradient(-45deg, var(--goo) 0 0.7em, #141410 0.7em 1.4em); }
.zbd .banner.v-explore .banner-sub { color: #fff; background: rgba(30, 60, 10, 0.78); }
.zbd .banner.v-gold .banner-title {
  color: #ffc928;
  text-shadow: 0 0.05em 0 #8a5600, 0 0.1em 0 #000, 0 0 0.5em rgba(255, 150, 0, 0.9);
  animation: zbd-pulse 0.5s ease-in-out infinite alternate;
}
.zbd .banner-title.long { font-size: 3.5em; }
.zbd .banner.v-gold .banner-stripe { background: repeating-linear-gradient(-45deg, #ffd36b 0 0.7em, #3a2a00 0.7em 1.4em); box-shadow: 0 0 1em rgba(255, 190, 40, 0.6); }
.zbd .banner.v-gold .banner-sub { color: #1b1000; background: linear-gradient(90deg, #ffd36b, #ffb21e); text-shadow: none; }

/* Bottom center: toasts, prompt, vehicle hints */
.zbd .toasts { display: flex; flex-direction: column-reverse; align-items: center; gap: 0.35em; max-width: 100%; }
/* Toasts wrap instead of running under the corner panels (WH-6). */
.zbd .toast {
  display: flex;
  align-items: center;
  gap: 0.55em;
  max-width: 100%;
  padding: 0.38em 1.2em 0.38em 0.9em;
  font: 700 1em/1.2 var(--f-ui);
  letter-spacing: 0.1em;
  color: var(--sand);
  background: rgba(10, 12, 8, 0.8);
  box-shadow: inset 0 0 0 1px var(--line), inset 0.25em 0 0 var(--amber);
  white-space: normal;
  text-align: center;
}
.zbd .toast .ic { width: 1.3em; height: 1.3em; color: var(--amber); }
.zbd .prompt {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.45em 1.4em 0.45em 0.6em;
  font: 700 1.25em var(--f-ui);
  letter-spacing: 0.12em;
  background: rgba(10, 12, 8, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 178, 30, 0.6), 0 0 1.2em rgba(0, 0, 0, 0.4);
  clip-path: polygon(0.6em 0, 100% 0, 100% calc(100% - 0.6em), calc(100% - 0.6em) 100%, 0 100%, 0 0.6em);
  animation: zbd-rise 0.2s ease-out both;
}
.zbd .prompt .kc { font-size: 0.95em; background: linear-gradient(180deg, #ffe08f, #ffb21e); box-shadow: 0 0.17em 0 #8a5a00, 0 0.25em 0.45em rgba(0, 0, 0, 0.5); }
.zbd .prompt { max-width: 100%; }
.zbd .prompt span { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.zbd .prompt.long { font-size: 1.05em; }
.zbd .prompt.small { font-size: 0.88em; opacity: 0.82; padding: 0.3em 1em 0.3em 0.45em; }
.zbd .veh-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35em 0.75em; max-width: 100%; padding: 0.45em 0.85em; background: rgba(10, 12, 8, 0.7); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .kc.click { min-width: 3.3em; letter-spacing: 0.06em; }
.zbd .vh { display: inline-flex; align-items: center; gap: 0.15em; font: 700 0.88em var(--f-ui); letter-spacing: 0.05em; white-space: nowrap; }
.zbd .vh b { margin-left: 0.25em; }
.zbd .vh .kc { font-size: 0.78em; }

/* Health */
.zbd .fps { padding: 0.15em 0.55em; font: 700 0.78em var(--f-ui); letter-spacing: 0.14em; color: var(--goo); background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 1px rgba(155, 255, 61, 0.3); }
.zbd .health { display: flex; align-items: center; gap: 0.8em; width: 21.5em; padding: 0.7em 1.2em 0.8em 0.95em; }
.zbd .hp-icon .ic { width: 2.4em; height: 2.4em; color: #ff5b4a; filter: drop-shadow(0 0 0.35em rgba(255, 60, 40, 0.55)); }
.zbd .health.low .hp-icon .ic { animation: zbd-beat 0.8s ease-in-out infinite; }
.zbd .hp-body { flex: 1; min-width: 0; }
.zbd .hp-top { display: flex; justify-content: space-between; align-items: baseline; }
.zbd .hp-val { font: 400 2.15em/1 var(--f-stencil); }
.zbd .health.low .hp-val { color: #ff6a52; }
.zbd .hp-bar { position: relative; height: 1em; margin-top: 0.3em; background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 1px rgba(214, 200, 154, 0.28); transform: skewX(-20deg); }
.zbd .hp-bar i { position: absolute; left: 0.16em; right: 0.16em; top: 0.16em; bottom: 0.16em; transform-origin: left; }
.zbd .hp-chip { background: rgba(255, 236, 214, 0.85); }
.zbd .hp-fill { background: linear-gradient(180deg, #c5f070, #82b12e 55%, #557a16); box-shadow: 0 0 0.6em rgba(155, 255, 61, 0.3); }
.zbd .health.mid .hp-fill { background: linear-gradient(180deg, #ffe08f, #ffb21e 55%, #c97b00); box-shadow: 0 0 0.6em rgba(255, 178, 30, 0.35); }
.zbd .health.low .hp-fill { background: linear-gradient(180deg, #ff8a6a, #e2200a 55%, #8e0c00); box-shadow: 0 0 0.6em rgba(255, 40, 20, 0.5); }
.zbd .hp-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0, 0, 0, 0.55) calc(10% - 2px) 10%); }

/* Ammo */
.zbd .ammo { width: 19.5em; padding: 0.7em 1.2em 0.75em 1.35em; }
.zbd .ammo-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.zbd .ammo-gun {
  width: 7.2em;
  height: 2.75em;
  flex: none;
  display: block;
  /* Soft light behind the gun so dark 3D renders read on the dark panel. */
  background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(239, 230, 198, 0.26), rgba(239, 230, 198, 0.06) 65%, transparent 80%);
  filter: drop-shadow(0 0.15em 0.2em rgba(0, 0, 0, 0.6));
}
.zbd .ammo-names { flex: 1; min-width: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.zbd .ammo-name { font: 400 1.15em/1.05 var(--f-stencil); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.zbd .ammo-name.long { font-size: 0.95em; }
.zbd .ammo-name.xlong { font-size: 0.8em; }
.zbd .ammo-name.xxlong { font-size: 0.68em; letter-spacing: 0.02em; }
.zbd .ammo-skin { font: 700 0.7em var(--f-ui); letter-spacing: 0.24em; color: var(--amber); }
.zbd .ammo-mid { display: flex; align-items: baseline; justify-content: flex-end; gap: 0.3em; margin-top: 0.1em; }
.zbd .ammo-mag { font: 400 3.3em/1 var(--f-stencil); color: var(--sand); }
.zbd .ammo-size { font: 400 1.35em/1 var(--f-stencil); color: var(--khaki); }
.zbd .ammo.low .ammo-mag { color: var(--amber); }
.zbd .ammo.empty .ammo-mag { color: var(--red); animation: zbd-blink 0.4s ease-in-out infinite alternate; }
.zbd .ammo-alert { margin-right: auto; align-self: center; display: flex; align-items: center; gap: 0.3em; font: 400 0.95em var(--f-stencil); letter-spacing: 0.08em; color: var(--amber-hi); animation: zbd-blink 0.5s ease-in-out infinite alternate; }
.zbd .ammo.empty .ammo-alert { color: var(--red); }
.zbd .ammo-rounds { display: flex; gap: 2px; height: 0.55em; margin-top: 0.4em; transform: skewX(-20deg); }
.zbd .ammo-rounds i { flex: 1 1 0; background: var(--amber-hi); box-shadow: 0 0 0.3em rgba(255, 200, 80, 0.4); }
.zbd .ammo-rounds i.spent { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.zbd .ammo-rounds.bar { background: rgba(255, 255, 255, 0.12); }
.zbd .ammo-rounds.bar i { transform-origin: left; }
.zbd .ammo-reload { display: flex; align-items: center; gap: 0.6em; margin-top: 0.4em; font: 400 0.85em var(--f-stencil); letter-spacing: 0.12em; color: var(--amber-hi); }
.zbd .ammo-reload-bar { flex: 1; height: 0.4em; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .ammo-reload-bar i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.zbd .ammo-nades { display: flex; align-items: center; justify-content: flex-end; gap: 0.35em; margin-top: 0.45em; }
.zbd .ammo-nades .kc { font-size: 0.68em; margin-right: 0.2em; }
.zbd .nade-icons { display: flex; gap: 0.12em; }
.zbd .nade .ic { width: 1.4em; height: 1.4em; color: var(--olive-hi); filter: drop-shadow(0 1px 1px #000); transition: opacity 0.2s; }
.zbd .nade.empty .ic { opacity: 0.2; color: #888; }

/* Vehicle */
.zbd .veh { width: 21em; padding: 0.75em 1.2em 0.85em 1.35em; --acc: rgba(88, 184, 255, 0.85); }
.zbd .veh-top { display: flex; align-items: center; gap: 0.6em; }
.zbd .veh-icon .ic { width: 2.6em; height: 2.6em; color: var(--veh); filter: drop-shadow(0 0 0.3em rgba(88, 184, 255, 0.45)); }
.zbd .veh-top { min-width: 0; }
.zbd .veh-name { min-width: 0; font: 400 1.4em/1 var(--f-stencil); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zbd .veh-name.long { font-size: 1.15em; }
.zbd .veh-name.xlong { font-size: 0.98em; letter-spacing: 0.02em; }
.zbd .veh-name.xxlong { font-size: 0.84em; letter-spacing: 0; }
.zbd .veh-hp { display: flex; align-items: center; gap: 0.6em; margin-top: 0.45em; }
.zbd .veh-hp-bar { flex: 1; height: 0.8em; position: relative; background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 1px var(--line); transform: skewX(-20deg); }
.zbd .veh-hp-bar i { position: absolute; inset: 0.14em; transform-origin: left; background: linear-gradient(180deg, #9fd6ff, #3a8fd6); }
.zbd .veh-hp-bar.low i { background: linear-gradient(180deg, #ff8a6a, #d81e08); }
.zbd .veh-hp-val { font: 400 1em var(--f-stencil); min-width: 3em; text-align: right; }
.zbd .veh-gauges { display: flex; justify-content: flex-end; gap: 1.3em; margin-top: 0.2em; }
.zbd .gauge { display: flex; flex-direction: column; align-items: flex-end; }
.zbd .gauge b { font: 400 2.7em/1 var(--f-stencil); }
.zbd .gauge.alt b { color: var(--veh); }
.zbd .veh-w { display: grid; grid-template-columns: 1fr auto; gap: 0.2em 0.6em; margin-top: 0.45em; font: 700 0.88em var(--f-ui); letter-spacing: 0.1em; }
.zbd .vw-state { color: var(--goo); }
.zbd .veh-w.cool .vw-state { color: var(--amber); }
.zbd .veh-w.hot .vw-state { color: var(--red); animation: zbd-blink 0.35s infinite alternate; }
.zbd .vw-bar { grid-column: 1 / -1; height: 0.38em; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .vw-bar i { display: block; height: 100%; transform-origin: left; background: var(--goo); }
.zbd .veh-w.cool .vw-bar i { background: var(--amber); }
.zbd .veh-w.hot .vw-bar i { background: linear-gradient(90deg, var(--amber), var(--red)); }
.zbd .veh-ammo { margin-top: 0.35em; text-align: right; font: 700 0.85em var(--f-ui); letter-spacing: 0.14em; color: var(--khaki); }

/* Big map */
.zbd .bigmap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.zbd .bigmap-frame { display: flex; flex-direction: column; gap: 0.6em; padding: 0.9em 1.1em 1em; }
.zbd .bm-head { display: flex; align-items: center; gap: 0.55em; }
.zbd .bm-head .ic { width: 1.5em; height: 1.5em; color: var(--amber); }
.zbd .bm-head b { font: 400 1.35em/1 var(--f-stencil); letter-spacing: 0.1em; }
.zbd .bm-head small { font: 700 0.72em var(--f-ui); letter-spacing: 0.24em; color: var(--khaki); }
.zbd .bm-close { margin-left: auto; display: flex; align-items: center; gap: 0.4em; font: 700 0.8em var(--f-ui); letter-spacing: 0.2em; color: var(--khaki); }
.zbd .bm-canvas { width: min(74vh, 70vw); height: min(74vh, 70vw); display: block; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.zbd .bm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em 1.2em; font: 700 0.75em var(--f-ui); letter-spacing: 0.16em; color: var(--khaki); }
.zbd .lg { display: inline-flex; align-items: center; gap: 0.4em; }
.zbd .lg i { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; }
.zbd .lg-you { background: #ffd36b; clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%); border-radius: 0 !important; }
.zbd .lg-zombie { background: #ff4433; }
.zbd .lg-boss { background: #ff2a1a; box-shadow: 0 0 0 2px #fff; }
.zbd .lg-ally { background: #7cf06a; }
.zbd .lg-veh { background: #58b8ff; border-radius: 0 !important; }
.zbd .lg-crate { background: #ffb21e; border-radius: 0 !important; }
.zbd .lg-range { background: rgba(255, 178, 30, 0.2); box-shadow: inset 0 0 0 2px #ffb21e; border-radius: 0 !important; }
.zbd .lg-found { background: #9bff3d; box-shadow: 0 0 0 2px #fff; }
.zbd .lg.only-explore { display: none; }
.zbd.explore .lg.only-explore { display: inline-flex; }
.zbd.explore .lg.only-battle { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px), (max-height: 560px) {
  .zbd .ts-controls { display: none; }
  .zbd .ts-brief { grid-template-columns: 1fr; }
  .zbd .ar-detail { min-width: 18em; }
}

/* ---------- animations ---------- */
@keyframes zbd-shimmer { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes zbd-noise { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
@keyframes zbd-ticker { to { transform: translateX(-50%); } }
@keyframes zbd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes zbd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zbd-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-0.25em) rotate(2deg); } }
@keyframes zbd-pulse { from { opacity: 0.65; transform: scale(0.98); } to { opacity: 1; transform: scale(1.02); } }
@keyframes zbd-blink { from { opacity: 1; } to { opacity: 0.45; } }
@keyframes zbd-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
@keyframes zbd-hp-pulse { 0%, 100% { opacity: 0.15; } 20% { opacity: 1; } 45% { opacity: 0.35; } 60% { opacity: 0.8; } }
@keyframes zbd-slam { from { opacity: 0; transform: scale(2.2); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes zbd-glitch {
  0%, 86%, 100% { transform: translate(0, 0); opacity: 0; }
  88% { transform: translate(-4px, 1px); opacity: 0.6; }
  91% { transform: translate(5px, -1px); opacity: 0.6; }
  94% { transform: translate(-2px, 0); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .zbd .scr-noise, .zbd .ticker-track, .zbd .btn::after, .zbd .ts-emblem .emblem { animation: none; }
}

/* One-click redeploy after PLAY AGAIN */
.zbd .ts-quick { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px;
  background: rgba(20, 24, 14, 0.88); border: 2px solid #f0b43c; border-radius: 4px;
  font-family: 'Black Ops One', Impact, sans-serif; color: #ffd36a; letter-spacing: 0.08em;
  pointer-events: none; animation: zbd-quick-pulse 1.2s ease-in-out infinite alternate; }
.zbd .ts-quick b { font-size: 26px; font-weight: 400; }
.zbd .ts-quick small { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 15px; color: #e8e6d9; letter-spacing: 0.04em; }
@keyframes zbd-quick-pulse { from { box-shadow: 0 0 0 rgba(240, 180, 60, 0); } to { box-shadow: 0 0 22px rgba(240, 180, 60, 0.55); } }

/* ---------- saved battle: CONTINUE, PICK A WAVE, TRY AGAIN ---------- */

/* Title: CONTINUE (secondary, under PLAY) + PICK A WAVE (expands in place of the brief). */
.zbd .ts-save { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.7em 1.1em; margin-top: 0.85em; }
.zbd .ts-continue {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 2.7em 0.55em 0.85em;
  color: var(--sand);
  text-align: left;
  font-family: var(--f-ui);
  font-size: 1em;
  background:
    linear-gradient(180deg, rgba(255, 178, 30, 0.2), rgba(255, 178, 30, 0.05)),
    linear-gradient(180deg, rgba(36, 40, 22, 0.94), rgba(14, 16, 9, 0.94));
  box-shadow: inset 0 0 0 2px rgba(255, 178, 30, 0.75), inset 0 -0.25em 0 rgba(0, 0, 0, 0.35);
  clip-path: polygon(0.8em 0, 100% 0, 100% calc(100% - 0.8em), calc(100% - 0.8em) 100%, 0 100%, 0 0.8em);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.zbd .ts-continue:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.15) drop-shadow(0 0 0.7em rgba(255, 178, 30, 0.45)); }
.zbd .ts-continue:active { transform: translateY(1px) scale(0.99); }
.zbd .tc-ic { display: flex; }
.zbd .tc-ic .ic { width: 1.75em; height: 1.75em; color: var(--amber); filter: drop-shadow(0 0 0.3em rgba(255, 178, 30, 0.5)); }
.zbd .tc-txt { display: flex; flex-direction: column; gap: 0.25em; min-width: 0; }
.zbd .tc-txt b { font: 400 1.5em/1 var(--f-stencil); letter-spacing: 0.05em; color: var(--amber-hi); white-space: nowrap; }
.zbd .tc-txt b i { font-style: normal; color: var(--khaki); }
.zbd .tc-txt small { font: 700 0.85em/1.2 var(--f-ui); letter-spacing: 0.03em; color: var(--khaki); }
.zbd .ts-pick {
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 1.1em;
  font: 400 1.2em/1 var(--f-stencil);
  letter-spacing: 0.06em;
  color: var(--sand);
  text-shadow: 0 1px 2px #000;
  background: rgba(10, 12, 8, 0.72);
  box-shadow: inset 0 0 0 1px var(--line-hi);
  clip-path: polygon(0.6em 0, 100% 0, 100% calc(100% - 0.6em), calc(100% - 0.6em) 100%, 0 100%, 0 0.6em);
  transition: background 0.12s, box-shadow 0.12s;
}
.zbd .ts-pick .ic { width: 1.15em; height: 1.15em; color: #ff6a52; }
.zbd .ts-pick .tp-caret { width: 0; height: 0; border: 0.32em solid transparent; border-top-color: var(--khaki); margin-top: 0.3em; transition: transform 0.15s; }
.zbd .ts-pick:hover, .zbd .ts-pick[aria-expanded='true'] { background: rgba(255, 178, 30, 0.2); box-shadow: inset 0 0 0 2px rgba(255, 178, 30, 0.7); }
.zbd .ts-pick[aria-expanded='true'] .tp-caret { transform: rotate(180deg) translateY(0.3em); }
.zbd .ts-waves { margin-top: 1em; width: fit-content; min-width: 26em; max-width: 46em; padding: 0.75em 1em 0.85em; background: rgba(10, 12, 8, 0.76); box-shadow: inset 0 0 0 1px var(--line), inset 0.25em 0 0 var(--amber); }
.zbd .tw-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3em 0.9em; }
.zbd .tw-head b { font: 400 1.1em var(--f-stencil); letter-spacing: 0.1em; color: var(--amber); }
.zbd .tw-head small { font: 600 0.95em var(--f-ui); color: var(--khaki); }
.zbd .tw-head small .ic { width: 1.1em; height: 1.1em; color: #ff6a52; }
.zbd .tw-grid { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 0.65em; max-height: 9.6em; overflow-y: auto; padding: 0.1em; scrollbar-width: thin; scrollbar-color: var(--amber) rgba(0, 0, 0, 0.3); }
.zbd .tw-btn {
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  width: 3.2em;
  height: 3.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  color: var(--sand);
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px var(--line-hi);
  clip-path: polygon(0.45em 0, 100% 0, 100% calc(100% - 0.45em), calc(100% - 0.45em) 100%, 0 100%, 0 0.45em);
  transition: transform 0.1s, background 0.1s;
}
.zbd .tw-btn b { font: 400 1.45em/1 var(--f-stencil); }
.zbd .tw-btn .ic { width: 0.95em; height: 0.95em; color: #ff6a52; }
.zbd .tw-btn.boss { background: linear-gradient(180deg, rgba(255, 59, 43, 0.3), rgba(255, 59, 43, 0.08)); box-shadow: inset 0 0 0 2px rgba(255, 90, 60, 0.7); }
.zbd .tw-btn.boss b { font-size: 1.2em; color: #ffb4a6; }
.zbd .tw-btn.cp { box-shadow: inset 0 0 0 2px var(--amber); }
.zbd .tw-btn:hover { transform: translateY(-2px) scale(1.06); color: #1b1405; text-shadow: none; background: linear-gradient(180deg, #ffe08f, #ffb21e); }
.zbd .tw-btn:hover b, .zbd .tw-btn:hover .ic { color: #1b1405; }

/* Pause: the progress note and the saved-game row in Settings. */
.zbd .ps-save { display: flex; align-items: center; gap: 0.7em; margin: 0.6em 0 0; padding: 0.6em 1em; font: 600 0.98em/1.25 var(--f-ui); color: var(--sand); background: rgba(155, 255, 61, 0.07); box-shadow: inset 0.25em 0 0 var(--goo); }
.zbd .ps-save .ic { width: 1.3em; height: 1.3em; color: var(--goo); }
.zbd .ps-save b { color: var(--goo); }
.zbd .setting.save-row { grid-template-columns: 1fr auto; cursor: default; }
.zbd .save-row .set-name small { display: block; margin-top: 0.2em; }
.zbd .set-btn {
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.9em;
  font: 400 0.85em/1 var(--f-stencil);
  letter-spacing: 0.08em;
  color: var(--sand);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.zbd .set-btn .ic { width: 0.9em; height: 0.9em; color: #ff8a73; }
.zbd .set-btn:hover, .zbd .set-btn.confirm { background: rgba(255, 59, 43, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 59, 43, 0.7); }
.zbd .set-btn.confirm { animation: zbd-blink 0.5s ease-in-out infinite alternate; }
.zbd .set-btn:disabled { opacity: 0.4; cursor: default; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); animation: none; }

/* Game over: TRY WAVE N AGAIN (primary when there is a save) next to PLAY AGAIN. */
.zbd .go-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.7em 1.2em; margin-top: 0.3em; }
.zbd .go-actions .btn { font-size: 1.85em; }
.zbd .go-actions .btn.btn-ghost { font-size: 1.85em; padding: 0.5em 1.6em; }
.zbd .go-save { display: flex; align-items: center; gap: 0.55em; margin: 0; font: 600 1em var(--f-ui); color: var(--khaki); }
.zbd .go-save .ic { width: 1.2em; height: 1.2em; color: var(--goo); }
.zbd .go-save b { color: var(--amber-hi); }

/* ---------- the big world: compass pins, call-in, places, gunship, maps ---------- */

/* Compass: a pins row above the heading strip. Edges fade less so edge pins stay readable. */
.zbd .compass {
  height: 3.15em;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.zbd .compass-pins { position: absolute; left: 0; right: 0; top: 0; height: 1.4em; }
.zbd .compass-boss { z-index: 2; }
.zbd .cpin {
  position: absolute;
  left: 50%;
  top: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.14em;
  padding: 0.05em 0.42em 0.05em 0.22em;
  background: rgba(10, 12, 8, 0.66);
  border-radius: 0.75em;
  box-shadow: inset 0 0 0 1px rgba(255, 178, 30, 0.5);
  white-space: nowrap;
  font-style: normal;
  will-change: transform;
}
.zbd .cp-ic { display: flex; }
.zbd .cp-ic .ic { width: 1.2em; height: 1.2em; color: var(--amber-hi); }
.zbd .cp-txt { font: 700 0.74em/1 var(--f-ui); letter-spacing: 0.05em; color: var(--sand); }
.zbd .cpin.unk { box-shadow: inset 0 0 0 1px rgba(214, 200, 154, 0.38); }
.zbd .cpin.unk .ic { color: var(--khaki); }
.zbd .cp-gate { z-index: 1; background: rgba(130, 12, 0, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 90, 60, 0.85); animation: zbd-blink 0.5s ease-in-out infinite alternate; }
.zbd .cp-gate .ic { color: #ffd0c4; }
.zbd .cp-gate .cp-txt { color: #fff; font-family: var(--f-stencil); font-weight: 400; letter-spacing: 0.04em; }
.zbd .cp-callin { z-index: 1; background: rgba(70, 50, 0, 0.82); box-shadow: inset 0 0 0 1px var(--amber-hi), 0 0 0.5em rgba(255, 200, 60, 0.5); }
.zbd .cp-callin .cp-txt { color: var(--amber-hi); }
.zbd .cpin.edge { opacity: 0.9; }

/* Call-in status pill (under the compass). */
.zbd .callin {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55em;
  min-width: 17em;
  padding: 0.32em 1.1em 0.5em 0.6em;
  background: rgba(44, 32, 4, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 107, 0.75), 0 0 1em rgba(0, 0, 0, 0.4);
  clip-path: polygon(0.55em 0, 100% 0, calc(100% - 0.55em) 100%, 0 100%);
  animation: zbd-rise 0.25s ease-out both;
}
.zbd .ci-ic { display: flex; }
.zbd .ci-ic .ic { width: 1.9em; height: 1.9em; color: var(--amber-hi); filter: drop-shadow(0 0 0.35em rgba(255, 200, 60, 0.6)); animation: zbd-blink 0.6s ease-in-out infinite alternate; }
.zbd .ci-txt { display: flex; flex-direction: column; gap: 0.12em; }
.zbd .ci-title { font: 400 1.05em/1 var(--f-stencil); letter-spacing: 0.08em; color: var(--amber-hi); }
.zbd .ci-sub { font: 700 0.7em/1 var(--f-ui); letter-spacing: 0.18em; color: var(--sand); }
.zbd .ci-bar { position: absolute; left: 0.8em; right: 0.8em; bottom: 0.16em; height: 0.2em; background: rgba(0, 0, 0, 0.55); }
.zbd .ci-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--amber), var(--amber-hi)); }
.zbd .callin.landing .ci-bar i { background: var(--goo); }
.zbd .callin.landing .ci-title { color: var(--goo); }

/* Explore panel: places discovered. */
.zbd .xp-places > .ic { color: var(--amber-hi); }
.zbd .xp-places.done b, .zbd .xp-places.done b i { color: var(--goo); text-shadow: 0 0 0.4em rgba(155, 255, 61, 0.6), 0 2px 0 #000; }

/* Discovery banner: big place icon, gold title. */
.zbd .banner-icon { display: flex; margin-bottom: 0.15em; }
.zbd .banner-icon .ic { width: 4.4em; height: 4.4em; color: var(--amber-hi); filter: drop-shadow(0 0 0.55em rgba(255, 178, 30, 0.65)) drop-shadow(0 0.14em 0 #000); }
.zbd .banner-title.xlong { font-size: 2.85em; }
.zbd .banner.v-discover .banner-title { color: var(--amber-hi); text-shadow: 0 0.05em 0 #6a4a00, 0 0.09em 0 #000, 0 0 0.6em rgba(255, 178, 30, 0.45); }
.zbd .banner.v-discover .banner-stripe { background: repeating-linear-gradient(-45deg, var(--amber-hi) 0 0.7em, #2a2008 0.7em 1.4em); }
.zbd .banner.v-discover .banner-sub { color: #1b1000; background: linear-gradient(90deg, #ffd36b, #ffb21e); text-shadow: none; }

/* Feed lines: places and soldiers driving. */
.zbd .fe.place { color: #ffe9b0; }
.zbd .fe.place .ic { color: var(--amber-hi); }
.zbd .fe.ally .ic { color: var(--veh); }

/* Gunship: missiles, locks, lock progress. */
.zbd .veh-msl { margin-top: 0.5em; padding-top: 0.45em; border-top: 1px solid var(--line); font: 700 0.84em var(--f-ui); letter-spacing: 0.12em; }
.zbd .msl-row, .zbd .lock-row { display: flex; align-items: center; gap: 0.55em; }
.zbd .lock-row { margin-top: 0.4em; }
.zbd .msl-lbl { display: inline-flex; align-items: center; gap: 0.3em; min-width: 6.4em; color: var(--khaki); }
.zbd .msl-lbl .ic { width: 1.35em; height: 1.35em; color: var(--amber); }
.zbd .msl-pips { flex: 1; display: flex; gap: 2px; height: 0.7em; transform: skewX(-20deg); }
.zbd .msl-pips i { flex: 1 1 0; background: var(--amber-hi); box-shadow: 0 0 0.3em rgba(255, 200, 80, 0.4); }
.zbd .msl-pips i.spent { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.zbd .msl-n { margin-left: auto; min-width: 1.6em; text-align: right; font: 400 1.3em/1 var(--f-stencil); color: var(--sand); }
.zbd .veh-msl.empty .msl-n { color: var(--red); }
.zbd .lock-slots { display: flex; gap: 0.6em; padding-left: 0.25em; }
.zbd .lock-slots i { width: 0.78em; height: 0.78em; transform: rotate(45deg); box-shadow: inset 0 0 0 2px rgba(255, 90, 60, 0.55); }
.zbd .lock-slots i.on { background: var(--red); box-shadow: 0 0 0.55em rgba(255, 40, 20, 0.9), inset 0 0 0 2px #ffd0c4; }
.zbd .lock-hint { margin-left: auto; font: 400 0.85em/1 var(--f-stencil); letter-spacing: 0.05em; color: var(--khaki); white-space: nowrap; }
.zbd .lock-hint.go { color: #ff6a52; animation: zbd-blink 0.35s ease-in-out infinite alternate; }
.zbd .veh-msl.full .lock-hint { color: #fff; }
.zbd .lock-bar { margin-top: 0.35em; height: 0.32em; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .lock-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--amber), var(--red)); }
.zbd .veh-msl.reload .lock-bar i { background: linear-gradient(90deg, var(--olive), var(--amber-hi)); }
.zbd .veh-msl.reload .lock-hint { color: var(--amber); }
.zbd .veh.gunship { --acc: rgba(255, 90, 60, 0.85); }

/* Missile lock boxes. */
.zbd .lockon { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.zbd .lk {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s, 60px);
  height: var(--s, 60px);
  margin: calc(var(--s, 60px) / -2) 0 0 calc(var(--s, 60px) / -2);
  will-change: transform;
}
.zbd .lk-in { position: absolute; inset: 0; }
.zbd .lk-c { position: absolute; width: 30%; height: 30%; border: 0 solid var(--amber); filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)); }
.zbd .lk-c.tl { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; }
.zbd .lk-c.tr { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; }
.zbd .lk-c.bl { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; }
.zbd .lk-c.br { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; }
.zbd .lk-dot { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg); border: 2px solid var(--amber); }
.zbd .lk.locked .lk-c { border-color: var(--red); filter: drop-shadow(0 0 4px rgba(255, 40, 20, 0.9)); }
.zbd .lk.locked .lk-dot { background: var(--red); border-color: #ffd0c4; }
.zbd .lk.locked::after { content: ''; position: absolute; inset: -7px; border: 2px solid rgba(255, 59, 43, 0.6); animation: zbd-lk-pulse 0.7s ease-in-out infinite; }
.zbd .lk-flash { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; opacity: 0; }
.zbd .lk-tag { position: absolute; left: 50%; top: 100%; margin-top: 5px; transform: translateX(-50%); padding: 1px 7px 2px; font: 400 13px/1.2 var(--f-stencil); letter-spacing: 0.08em; color: #1b1000; background: var(--amber); white-space: nowrap; text-shadow: none; }
.zbd .lk.locked .lk-tag {
  left: auto;
  right: -10px;
  top: -10px;
  min-width: 20px;
  height: 20px;
  margin: 0;
  padding: 0 5px;
  transform: none;
  border-radius: 10px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: #fff;
  background: #d8281a;
  box-shadow: 0 0 0 2px #ffd0c4, 0 0 0.6em rgba(255, 40, 20, 0.7);
}
@keyframes zbd-lk-pulse { 0%, 100% { transform: scale(1); opacity: 0.95; } 50% { transform: scale(1.1); opacity: 0.3; } }

/* Big map: whole world + base close-up + places list. */
.zbd .bm-head { flex-wrap: wrap; }
.zbd .bm-head .bm-places { display: inline-flex; align-items: center; gap: 0.4em; margin-left: 1em; padding: 0.22em 0.75em; background: rgba(255, 178, 30, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 178, 30, 0.5); font: 700 0.78em var(--f-ui); letter-spacing: 0.2em; color: var(--khaki); }
.zbd .bm-head .bm-places .ic { width: 1.25em; height: 1.25em; }
.zbd .bm-head .bm-places b { font: 400 1.3em/1 var(--f-stencil); letter-spacing: 0.04em; color: var(--amber-hi); }
.zbd .bm-body { display: flex; align-items: flex-start; gap: 0.9em; }
.zbd .bm-canvas { width: min(78vh, 56vw); height: min(78vh, 56vw); }
.zbd .bm-side { width: min(40vh, 27vw); display: flex; flex-direction: column; gap: 0.4em; min-width: 0; }
.zbd .bm-base { display: block; width: min(40vh, 27vw); height: min(40vh, 27vw); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px rgba(255, 178, 30, 0.55); }
.zbd .bm-sub { display: flex; align-items: center; gap: 0.4em; font: 700 0.72em var(--f-ui); letter-spacing: 0.2em; color: var(--khaki); }
.zbd .bm-sub .ic { width: 1.35em; height: 1.35em; color: var(--amber); }
.zbd .bm-sub b { font: 400 1.25em/1 var(--f-stencil); letter-spacing: 0.08em; color: var(--sand); }
.zbd .bm-sub small { margin-left: auto; font: inherit; color: var(--amber-hi); }
.zbd .bm-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.14em; }
.zbd .bmp { display: flex; align-items: center; gap: 0.45em; padding: 0.12em 0.55em 0.12em 0.3em; background: rgba(0, 0, 0, 0.32); font: 700 0.78em/1.15 var(--f-ui); letter-spacing: 0.05em; }
.zbd .bmp-ic { display: flex; }
.zbd .bmp-ic .ic { width: 1.4em; height: 1.4em; color: var(--khaki); opacity: 0.8; }
.zbd .bmp.found .bmp-ic .ic { color: var(--amber-hi); opacity: 1; }
.zbd .bmp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--khaki); font-weight: 700; }
.zbd .bmp.found .bmp-name { color: var(--sand); }
.zbd .bmp-dist { font-size: 0.9em; letter-spacing: 0.1em; color: var(--khaki); white-space: nowrap; }
.zbd .bmp.here { box-shadow: inset 0.22em 0 0 var(--goo); }
.zbd .bmp.here .bmp-dist { color: var(--goo); }
.zbd .lg-crew { background: #58b8ff; box-shadow: 0 0 0 2px #7cf06a; border-radius: 0 !important; }
.zbd .lg-star { width: 1em !important; height: 1em !important; background: #ffd36b; border-radius: 0 !important; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.zbd .lg-poi { background: #2c3618; box-shadow: 0 0 0 2px #ffb21e; }
.zbd .lg-unk { background: #26261f; box-shadow: 0 0 0 2px rgba(214, 200, 154, 0.75); }

/* Pause: places discovered. */
.zbd .ps-places { margin-top: 1em; }
.zbd .ps-places h4 { display: flex; align-items: center; gap: 0.5em; margin: 0 0 0.45em; font: 700 0.78em var(--f-ui); letter-spacing: 0.22em; color: var(--khaki); }
.zbd .ps-places h4 .ic { width: 1.4em; height: 1.4em; color: var(--amber); }
.zbd .ps-places h4 b { margin-left: auto; font: 400 1.45em/1 var(--f-stencil); letter-spacing: 0.04em; color: var(--amber-hi); }
.zbd .pp-chips { display: flex; flex-wrap: wrap; gap: 0.35em; }
.zbd .pp-chip { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.2em 0.6em 0.2em 0.3em; font: 700 0.82em var(--f-ui); letter-spacing: 0.05em; color: var(--khaki); background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); }
.zbd .pp-chip .ic { width: 1.3em; height: 1.3em; opacity: 0.75; }
.zbd .pp-chip.found { color: var(--sand); box-shadow: inset 0 0 0 1px rgba(255, 178, 30, 0.55); background: rgba(255, 178, 30, 0.1); }
.zbd .pp-chip.found .ic { color: var(--amber-hi); opacity: 1; }
