/* NETWAR — world.html styles, part 1 of 9: Shell, header, map pane, map dock, cold-load and CRT effects.
   Moved out of world.html's <style> block unchanged (2026-10-03); the files load in this
   order, which is the old cascade order — a later file still overrides an earlier one. */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; overflow: clip; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; background: #05030a; color: #cfc7e8; font-family: 'Consolas', 'Courier New', monospace;
       display: flex; align-items: stretch; justify-content: center; min-height: 100vh; min-height: 100dvh;
       padding: 8px; overflow: hidden; overflow: clip; }
* { scrollbar-width: thin; scrollbar-color: rgba(55, 213, 245, 0.65) #0c081a; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: #0a0614; border-left: 1px solid #1a1028;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45); }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #1e4a5a 0%, #37d5f5 45%, #6a4a9a 100%);
  border-radius: 1px; border: 1px solid rgba(55, 213, 245, 0.35); }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #1e5a44 0%, #37f5a3 50%, #37d5f5 100%);
  box-shadow: 0 0 8px rgba(55, 245, 163, 0.35); }
*::-webkit-scrollbar-thumb:active { background: #37f5a3; }
*::-webkit-scrollbar-corner { background: #0a0614; }
/* Main shell: column flex — map grows, chrome stays readable 1100–1920 */
#panel { display: flex; flex-direction: column; width: min(100%, 1600px); max-width: 100%;
         max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); min-height: 0; flex: 1 1 auto;
         border: 1px solid #4c2a8a; background: #0b0714;
         box-shadow: 0 0 24px rgba(120,60,220,0.25), inset 0 0 60px rgba(30,10,60,0.35);
         position: relative; overflow: hidden; overflow: clip;
         --chrome-text: #e8e2ff;
         --chrome-secondary: #b0a4d8;
         --chrome-muted: #948ab8;
         --chrome-cyan: #37d5f5;
         --chrome-magenta: #ff2bd6;
         --chrome-ok: #37f5a3;
         --chrome-warn: #f5a337;
         --chrome-alert: #f55858;
         --chrome-font: 'Share Tech Mono', Consolas, 'Courier New', monospace;
         --chrome-display: Orbitron, 'Share Tech Mono', sans-serif; }
#panel.safehouse-mode { width: 100%; max-width: 100%;
  height: calc(100vh - 16px); max-height: calc(100vh - 16px);
  height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); /* the visible height on a tablet, bars shown or not */
  flex: 1 1 auto; overflow: hidden; }
#panel.safehouse-mode #bar,
#panel.safehouse-mode #viewport,
#panel.safehouse-mode #toolbar,
#panel.safehouse-mode #feed-wrap { display: none !important; }

/* Design Spec chrome — fonts + brightened text (bar / HUD / inspect / NL / toolbar only) */
#bar, #hud, #inspect-dock, #neural-link, #toolbar, #feed-wrap {
  user-select: none; -webkit-user-select: none;
  font-family: var(--chrome-font);
  color: var(--chrome-text);
}
#bar .t, #hud .sitrep, #inspect .sitrep-title, #inspect .sitrep-section-title,
#neural-link .nl-title, #toolbar .lane-label, #toolbar .sw-drive-title {
  font-family: var(--chrome-display);
}

#bar { display: flex; align-items: center; gap: 12px;
       padding: 9px 14px; border-bottom: 1px solid #3a2170; background: #0e0919;
       flex-shrink: 0; min-width: 0; overflow: clip; contain: paint; }
#bar .t { color: var(--chrome-cyan); font-weight: 900; letter-spacing: 0.28em; font-size: 15px;
          text-transform: uppercase; text-shadow: 0 0 14px rgba(55,213,245,0.55);
          flex-shrink: 0; white-space: nowrap; }
#bar .t::before { content: none; }
.beta-mark {
  font-size: 8px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--chrome-muted); text-shadow: none; opacity: 0.7;
  margin-left: 0.45em; vertical-align: super;
}
#build-id {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 9px; letter-spacing: 0.06em;
  color: #7a8898; border: 1px solid #2a3844;
  background: #0a1016; padding: 2px 7px; margin-left: 8px;
  cursor: help; user-select: all; white-space: nowrap;
  vertical-align: middle;
}
#build-id:hover { color: #8fd6ff; border-color: #3a6a88; }
#playtest-rec {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  margin-left: 8px; padding: 2px 8px;
  border: 1px solid #5a2a2a; background: #180808; color: #c07070;
  cursor: pointer; vertical-align: middle; white-space: nowrap;
}
#playtest-rec:hover { border-color: #ff5c5c; color: #ff8a8a; }
#playtest-rec.on {
  border-color: #ff3030; background: #3a0808; color: #ff5050;
  box-shadow: 0 0 10px rgba(255,48,48,0.45);
  animation: rec-blink 1.2s steps(2, end) infinite;
}
#playtest-rec[hidden] { display: none !important; }
/* Frozen (owner, 2026-10-07): shown, inert. */
#playtest-rec:disabled, #playtest-rec:disabled:hover { cursor: default; opacity: 0.5; border-color: #5a2a2a; color: #c07070; }
@keyframes rec-blink { 50% { opacity: 0.55; } }
#playtest-markers {
  display: none; margin-left: 6px; gap: 3px; vertical-align: middle;
}
#playtest-rec.on ~ #playtest-markers,
.brand-text:has(#playtest-rec.on) #playtest-markers { display: inline-flex; }
#playtest-markers button {
  font: 700 8px/1 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.05em; padding: 2px 5px;
  border: 1px solid #3a4850; background: #0a1016; color: #9aa4b2;
  cursor: pointer;
}
#playtest-markers button:hover { color: #8fd6ff; border-color: #3a6a88; }
#grid-update-banner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  align-items: center; justify-content: center; gap: 14px;
  padding: 10px 16px; background: #1a1208; border-bottom: 1px solid #E6B800;
  color: #E6B800; font: 11px/1.3 Share Tech Mono, ui-monospace, monospace;
  letter-spacing: 1.2px;
}
#grid-update-banner.show { display: flex; }
#grid-update-reload {
  font: inherit; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  padding: 5px 12px; background: #E6B800; color: #111; border: 0;
}
#node-restart-banner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 390;
  padding: 6px 12px; text-align: center; background: #140c18;
  border-bottom: 1px solid #f5a337; color: #f5a337;
  font: 10px/1.3 Share Tech Mono, ui-monospace, monospace; letter-spacing: 1px;
}
#node-restart-banner.show { display: block; }
/* A message from the host (/admin BROADCAST), until the player closes it. */
#host-msg-banner {
  display: none; position: fixed; top: 34px; left: 50%; transform: translateX(-50%); z-index: 391;
  max-width: min(720px, calc(100vw - 32px)); padding: 10px 40px 10px 14px; background: #08161d;
  border: 1px solid #37d5f5; box-shadow: 0 0 18px rgba(55,213,245,0.35); color: #d6f6ff;
  font: 13px/1.45 Share Tech Mono, ui-monospace, monospace;
}
#host-msg-banner.show { display: block; }
#host-msg-banner b { display: block; color: #37d5f5; letter-spacing: 0.14em; font-size: 11px; margin-bottom: 2px; }
#host-msg-banner span { white-space: pre-wrap; }
#host-msg-banner button { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #37d5f5; font-size: 18px; cursor: pointer; }
#inf-ticker { flex: 1 1 auto; min-width: 72px; display: flex; align-items: center; gap: 8px;
  height: 18px; overflow: hidden; border-left: 1px solid #3a2170; padding-left: 10px; }
#inf-ticker .inf-ticker-tag {
  flex-shrink: 0; font-size: 9px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--chrome-cyan); border: 1px solid rgba(55,213,245,0.35);
  padding: 1px 6px; background: rgba(8, 20, 28, 0.9);
  text-shadow: 0 0 8px rgba(55,213,245,0.35); }
#inf-ticker .inf-ticker-clip {
  flex: 1 1 auto; min-width: 0; height: 18px; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
#inf-ticker .inf-ticker-track {
  display: flex; width: max-content; height: 18px; align-items: center;
  animation: inf-ticker-scroll 36s linear infinite;
  will-change: transform; }
#inf-ticker:hover .inf-ticker-track { animation-play-state: paused; }
#inf-ticker .inf-ticker-seq {
  display: flex; align-items: center; gap: 0; flex-shrink: 0; white-space: nowrap;
  padding-right: 28px; }
#inf-ticker .inf-tick-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.08em; color: var(--syn-color, var(--chrome-secondary));
  font-variant-numeric: tabular-nums; }
#inf-ticker .inf-tick-item i {
  display: inline-block; width: 6px; height: 6px; border-radius: 1px;
  background: var(--syn-color, var(--chrome-muted));
  box-shadow: 0 0 6px var(--syn-color, var(--chrome-muted)); }
#inf-ticker .inf-tick-item b { font-weight: 700; letter-spacing: 0.12em; }
#inf-ticker .inf-tick-item.lead b { text-shadow: 0 0 8px var(--syn-color, #37d5f5); }
#inf-ticker .inf-tick-pts { color: var(--chrome-muted); font-size: 9px; letter-spacing: 0.04em; }
#inf-ticker .inf-tick-delta.up { color: #37f5a3; }
#inf-ticker .inf-tick-delta.down { color: #f55858; }
#inf-ticker .inf-tick-sep { color: #3a2170; padding: 0 14px; font-size: 8px; }
#inf-ticker .inf-tick-meta { color: var(--chrome-muted); font-size: 9px; letter-spacing: 0.12em; }
@keyframes inf-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
#bar .bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* ---- Info array: Sound/Manual/Feedback/Support as a joined LED-slot panel (Crimson) ---- */
.info-array {
  display: flex; align-items: stretch; flex-shrink: 0;
  border: 1px solid #241c38; background: #0b0716;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}
.info-array button { border-radius: 0 !important; }
.info-array button + button { border-left: 1px solid #201a30 !important; }
#bar .live {
  font-size: 11px; color: var(--chrome-ok); border: 1px solid #1e5a44; padding: 5px 11px 5px 9px;
  background: #050f0a; flex-shrink: 0; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}
#bar .live::before { content: '● '; animation: blink 1.2s infinite; }
#bar .live.off { color: var(--chrome-alert); border-color: #5a1e2a; background: #15070a; }
#bar .live.off::before { content: '○ '; animation: none; }
#btn-neural-link {
  font: 10px var(--chrome-font); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 11px; cursor: pointer; flex-shrink: 0; position: relative;
  color: #37d5f5; border: 1px solid rgba(55,213,245,0.65);
  background: rgba(6,20,26,0.9);
  box-shadow: 0 0 14px rgba(55,213,245,0.2);
  transition: border-color 0.15s, box-shadow 0.15s;
  /* Label strobes like an HDD activity LED — chrome stays put. */
  animation: nl-hdd-tick 4.6s steps(1, end) infinite;
}
#btn-neural-link::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  background: #0a1f26; border: 1px solid #37d5f5; vertical-align: middle;
  box-shadow: 0 0 5px rgba(55,213,245,0.5);
}
#btn-neural-link:hover,
#btn-neural-link:focus-visible {
  color: #d8f8ff; border-color: #37d5f5;
  box-shadow: 0 0 20px rgba(55,213,245,0.4);
  animation: nl-glitch 0.35s steps(2) 1;
}
#btn-neural-link.has-inbox { position: relative; }
#btn-neural-link.has-inbox::after {
  content: attr(data-inbox);
  position: absolute; top: -5px; right: -6px;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px; font: 700 9px/14px var(--chrome-font);
  color: #12080f; background: #f5a337; border: 1px solid #8a5a18;
  text-align: center; letter-spacing: 0;
}
@keyframes blink { 50% { opacity: 0.25; } }
/* Map fills leftover panel space — avoid fixed height that wastes chrome band */
#viewport { position: relative; flex: 1 1 auto; min-height: 280px; min-width: 0; height: auto; }
#tier-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }

/* Map style dock — layers, zoom-tier jumps, CLASSIC/SIGNAL (public/signal-map.js) */
#map-style { position: absolute; right: 12px; bottom: 12px; z-index: 7; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
#map-style > * { pointer-events: auto; }
#map-style .ms-layers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#map-style .ms-layers label {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
  border: 1px solid rgba(120,100,200,0.25); background: rgba(10,7,22,0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: 'Chakra Petch', 'Segoe UI', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: #bdb2e0; cursor: pointer; user-select: none;
}
#map-style .ms-layers input { accent-color: #37d5f5; margin: 0; width: 14px; height: 14px; cursor: pointer; }
#map-style.ms-classic .ms-layers { opacity: 0.4; }
#map-style.ms-classic .ms-layers label { cursor: not-allowed; }
#map-style .ms-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#map-style .ms-seg { display: inline-flex; border: 1px solid rgba(120,100,200,0.3); background: rgba(10,7,22,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#map-style .ms-seg button {
  background: none; border: 0; padding: 9px 14px; cursor: pointer;
  font-family: 'Chakra Petch', 'Segoe UI', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.18em; color: #8c82b0;
}
#map-style .ms-seg button:hover { color: #ece6ff; }
#map-style .ms-seg button[aria-pressed="true"] { color: #04030a; background: #37d5f5; }
#map-style .ms-seg.ms-ba button[aria-pressed="true"] { background: #ffe2a8; }
#map-style .ms-seg button:focus-visible, #map-style .ms-layers label:focus-within { outline: 2px solid #37d5f5; outline-offset: 2px; }
:root[data-phone="land"] #map-style .ms-layers, :root[data-phone="port"] #map-style .ms-layers { display: none; }
:root[data-phone="land"] #map-style .ms-seg button, :root[data-phone="port"] #map-style .ms-seg button { padding: 7px 9px; font-size: 10px; letter-spacing: 0.12em; }

#map-loading {
  display: none;
  position: absolute; inset: 0; z-index: 5;
  align-items: center; justify-content: center;
  pointer-events: none;
  background: rgba(6, 4, 12, 0.55);
  color: #c8b8e8;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
#map-loading.show { display: flex; }

/* Cold-load: smear + glitch first, planet draws, then chrome fades in together. */
@keyframes boot-chrome-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes boot-signal-lock {
  0% {
    filter: blur(14px) saturate(1.55) contrast(1.28);
    transform: translate(0);
  }
  7% {
    filter: blur(12px) saturate(1.7) contrast(1.35) drop-shadow(-6px 0 #ff2bd6) drop-shadow(6px 0 #37d5f5);
    transform: translate(-7px, 1px) skewX(-0.7deg);
  }
  11% { filter: blur(11px) saturate(1.45); transform: none; }
  24% {
    filter: blur(8px) drop-shadow(5px 0 #37d5f5) drop-shadow(-5px 0 #ff2bd6);
    transform: translate(4px, -2px);
  }
  28% { filter: blur(7px) saturate(1.3); transform: none; }
  46% {
    filter: blur(4px) drop-shadow(-3px 0 #ff2bd6);
    transform: translate(-3px, 0) skewX(0.35deg);
  }
  51% { filter: blur(3px); transform: none; }
  72% { filter: blur(1.4px) saturate(1.12); transform: none; }
  82% {
    filter: blur(2px) drop-shadow(7px 0 #ff2bd6) drop-shadow(-7px 0 #37d5f5);
    transform: translate(5px, 1px);
  }
  87% { filter: blur(0.6px); transform: none; }
  100% { filter: none; transform: none; }
}
@keyframes boot-glitch-scan {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 0.55; }
  50% { opacity: 0.2; transform: translateY(2px); }
  52% { opacity: 0.7; }
}
@keyframes boot-glitch-slice {
  0%, 100% { opacity: 0; top: 22%; transform: translateX(0); }
  8% { opacity: 0.85; top: 18%; transform: translateX(-14px); }
  12% { opacity: 0; }
  38% { opacity: 0; top: 58%; }
  42% { opacity: 0.7; transform: translateX(18px) skewX(-8deg); }
  46% { opacity: 0; }
  68% { opacity: 0; top: 8%; }
  72% { opacity: 0.55; transform: translateX(-10px); }
  76% { opacity: 0; }
  88% { opacity: 0; top: 71%; }
  91% { opacity: 0.6; transform: translateX(12px); }
  94% { opacity: 0; }
}
@keyframes boot-glitch-rgb {
  0%, 100% { opacity: 0; }
  6% { opacity: 0.45; }
  10% { opacity: 0; }
  40% { opacity: 0; }
  44% { opacity: 0.35; }
  48% { opacity: 0; }
  80% { opacity: 0; }
  84% { opacity: 0.4; }
  88% { opacity: 0; }
}
body.boot-chrome:not(.boot-chrome-run) #bar,
body.boot-chrome:not(.boot-chrome-run) #hud,
body.boot-chrome:not(.boot-chrome-run) #toolbar,
body.boot-chrome:not(.boot-chrome-run) #feed-wrap,
body.boot-chrome:not(.boot-chrome-run) #demo-cta-banner.show,
body.boot-chrome:not(.boot-chrome-run) #deploy-banner.show {
  opacity: 0;
  pointer-events: none;
}
body.boot-chrome.boot-chrome-run #bar,
body.boot-chrome.boot-chrome-run #hud,
body.boot-chrome.boot-chrome-run #toolbar,
body.boot-chrome.boot-chrome-run #feed-wrap,
body.boot-chrome.boot-chrome-run #demo-cta-banner.show,
body.boot-chrome.boot-chrome-run #deploy-banner.show {
  animation: boot-chrome-in 0.45s ease-out forwards;
}
body.boot-chrome #btn-neural-link:not(.on) { animation: none; }
body.boot-chrome:not(.boot-glitch-run) #viewport {
  filter: blur(12px) saturate(1.5) contrast(1.22);
}
body.boot-chrome.boot-glitch-run #viewport {
  animation: boot-signal-lock var(--boot-reveal-ms, 1450ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#boot-glitch {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  overflow: hidden;
}
body.boot-chrome #boot-glitch { display: block; }
body.boot-chrome-run #boot-glitch { opacity: 0; transition: opacity 0.2s ease-out; }
#boot-glitch .boot-glitch-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(55, 213, 245, 0.05) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
  animation: boot-glitch-scan 0.18s steps(2) infinite;
}
#boot-glitch .boot-glitch-rgb {
  position: absolute; inset: -4px;
  background:
    linear-gradient(90deg, rgba(255, 43, 214, 0.18), transparent 42%, transparent 58%, rgba(55, 213, 245, 0.18));
  mix-blend-mode: screen;
  opacity: 0;
}
body.boot-glitch-run #boot-glitch .boot-glitch-rgb {
  animation: boot-glitch-rgb var(--boot-reveal-ms, 1450ms) steps(2) both;
}
#boot-glitch .boot-glitch-slice {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 11%;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 214, 0.22), rgba(55, 213, 245, 0.22), transparent);
  mix-blend-mode: screen;
  opacity: 0;
}
body.boot-glitch-run #boot-glitch .boot-glitch-slice {
  animation: boot-glitch-slice var(--boot-reveal-ms, 1450ms) steps(1) both;
}
@keyframes boot-term-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
#boot-glitch .boot-term {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 88vw);
  padding: 14px 16px 12px;
  background: rgba(6, 4, 14, 0.82);
  border: 1px solid rgba(55, 213, 245, 0.5);
  box-shadow: 0 0 28px rgba(55, 213, 245, 0.16), inset 0 0 28px rgba(255, 43, 214, 0.07);
  font-family: 'Share Tech Mono', Consolas, monospace;
  text-transform: uppercase;
  animation: boot-term-in 0.28s ease-out both;
}
#boot-glitch .boot-term-head {
  font-family: Orbitron, 'Share Tech Mono', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #37d5f5;
  text-shadow: 0 0 12px rgba(55, 213, 245, 0.55), 1px 0 #ff2bd6, -1px 0 #37d5f5;
  margin-bottom: 10px;
}
#boot-glitch .boot-term-log {
  min-height: 5.6em;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.55;
  color: #c8f6ff;
}
#boot-glitch .boot-term-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#boot-glitch .boot-term-prompt { color: #ff2bd6; margin-right: 8px; text-shadow: 0 0 8px rgba(255, 43, 214, 0.55); }
#boot-glitch .boot-term-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(55, 213, 245, 0.22);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #37d5f5;
}
#boot-glitch .boot-term-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: #37d5f5;
  box-shadow: 0 0 8px #37d5f5;
  animation: blink 0.9s steps(1) infinite;
}
canvas { position: absolute; inset: 0; cursor: grab; }
canvas.dragging { cursor: grabbing; }
#fx { pointer-events: none; }
/* Round 18 — CRT simulation from the reference (Netwar HUD v2 neon.dc.html,
   lines 70-72), scoped to the map only. In the reference these 3 layers sit
   on the whole 2560x1288 canvas (header/panels/toolbar included); here they
   are children of #tier-map alone (siblings of #c/#fx, below #hud z-index:5
   and #inspect-dock z-index:6) so the scanlines/vignette/sweep render only
   over the globe, never over SITREP, TARGET, the header, toolbar or ticker.
   #tier-map's own `overflow: hidden` (above) clips the sweep band to the
   map's actual bounds, whatever size that is at the current viewport. */
#map-crt { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
#map-crt .map-crt-scanlines {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,255,245,0.035) 1px, transparent 1px);
  background-size: 100% 3px;
}
#map-crt .map-crt-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 240px 60px rgba(2,8,14,0.9);
  animation: map-crt-flicker 7s infinite;
}
/* Perf pass (performance audit, same day): the sweep originally animated
   `top` (-120px -> 100%) to travel the band down a responsive-height
   container. That forces a synchronous layout recalculation on every
   animation frame — measured on this exact page via a benchmark of 2000
   forced style+layout flushes on a real #tier-map child: ~187us per change
   vs ~2.5us for the equivalent background-position change (~73x). Same
   visual result, driving background-position-y (paint-only, same trick
   already used elsewhere in this file for the NEURAL LINK button's
   `dataStream` keyframe) instead of `top` — no layout cost, every frame,
   for as long as the map is on screen. */
#map-crt .map-crt-sweep {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, transparent, rgba(77,255,159,0.055) 60%, rgba(140,255,210,0.1));
  background-repeat: no-repeat;
  background-size: 100% 120px;
  animation: map-crt-scan 9s linear infinite;
}
/* SIGNAL style: the Main Core's radar sweep replaces the horizontal CRT band */
#tier-map.signal-map #map-crt .map-crt-sweep { display: none; }
@keyframes map-crt-flicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.86; } 98% { opacity: 1; } 99% { opacity: 0.92; } }
@keyframes map-crt-scan { 0% { background-position: 0 -120px; } 100% { background-position: 0 100%; } }
#hud { position: absolute; top: 10px; left: 12px; font-size: 12px; color: var(--chrome-secondary);
       background: rgba(10,6,20,0.88); border: 1px solid #2c1a55; border-top: 2px solid var(--chrome-cyan);
       padding: 8px 10px; line-height: 1.65;
       pointer-events: none; max-width: min(340px, 36vw); z-index: 5;
       max-height: min(72vh, calc(100% - 20px));
       display: flex; flex-direction: column; min-height: 0; overflow: hidden; overflow: clip;
       box-shadow: 0 0 18px rgba(55,213,245,0.08); }
#hud .hud-body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
#hud .hud-status, #hud .hud-foot { flex: 0 0 auto; }
