:root {
  --bg: #05040a;
  --panel: rgba(9, 7, 18, 0.6);
  --grid: #0f0c1c;
  --text: #f0b32a;
  --text-dim: #7c6320;
  --line: #7a5a14;
  --line-soft: rgba(122, 90, 20, 0.42);
  --hi: #47ffa9;
  --red: #ff4747;
  --orange: #ff6a1f;
  --amberred: #ff3b2f;
  --cyan: #39d6c8;
  --blue: #5f7bff;
  --green: #54ff8a;
  --moon: #cfd6e6;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Saira Condensed", "Helvetica Neue", system-ui, sans-serif;
  --tt: "Share Tech Mono", ui-monospace, "Courier New", monospace;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
body {
  cursor: crosshair;
}
canvas {
  display: block;
}

#crt-screen {
  position: fixed;
  inset: 0;
  z-index: 0;
  transform-origin: 50% 50%;
  transform: scale(var(--fe-fit, 1));
  transition: transform 0.45s ease;
}
body.retro #crt-screen {
  overflow: hidden;
  border-radius: 26px;
  box-shadow:
    0 0 0 2px #000,
    0 10px 60px 8px rgba(0, 0, 0, 0.85);
}
#warp {
  position: fixed;
  inset: 0;
}
#warp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  transform: scale(var(--fe-fill, 1));
  transform-origin: 50% 50%;
  transition: transform 0.4s ease;
}

#warp.fisheye {
  filter: url(#fisheye-filter);
}

:root {
  --crt: 0.3;
}
#retro-fx {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
body.retro #retro-fx {
  opacity: var(--crt, 1);
}
#retro-fx > div {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crt-grille {
  mix-blend-mode: screen;
  opacity: 0.5;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 26, 26, 0.9) 0,
    rgba(255, 26, 26, 0.9) 1px,
    rgba(30, 255, 90, 0.85) 1px,
    rgba(30, 255, 90, 0.85) 2px,
    rgba(44, 90, 255, 0.9) 2px,
    rgba(44, 90, 255, 0.9) 3px
  );
}

.crt-scan {
  mix-blend-mode: multiply;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.6) 0,
    rgba(0, 0, 0, 0.6) 1px,
    transparent 1px,
    transparent 3px
  );
}

#retro-fx::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 24%;
  top: -24%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(170, 255, 205, 0.09) 44%,
    rgba(220, 255, 235, 0.16) 50%,
    rgba(170, 255, 205, 0.09) 56%,
    transparent
  );
  mix-blend-mode: screen;
  animation: tvRoll 7.5s linear infinite;
}

.crt-glass {
  border-radius: 46px;
  box-shadow:
    inset 0 0 220px 90px rgba(0, 0, 0, 0.92),
    inset 0 0 90px 20px rgba(0, 0, 0, 0.7);
  background:
    radial-gradient(
      140% 140% at 50% 50%,
      transparent 48%,
      rgba(0, 0, 0, 0.55) 78%,
      rgba(0, 0, 0, 0.97) 100%
    ),
    linear-gradient(
      90deg,
      rgba(255, 0, 64, 0.07),
      transparent 5%,
      transparent 95%,
      rgba(0, 170, 255, 0.07)
    ),
    radial-gradient(
      48% 38% at 22% 15%,
      rgba(255, 255, 255, 0.05),
      transparent 62%
    );
}

body.retro #warp {
  animation:
    tvShudder 6s infinite,
    tvFlicker 5s infinite;
}
body.retro #retro-fx {
  animation: crtOn 0.5s ease-out;
}
@keyframes crtOn {
  0% {
    filter: brightness(2.6) contrast(0.2);
    transform: scaleY(0.004);
  }
  36% {
    filter: brightness(1.8) contrast(0.7);
    transform: scaleY(1);
  }
  100% {
    filter: none;
    transform: none;
  }
}
@keyframes tvRoll {
  0% {
    top: -24%;
  }
  100% {
    top: 100%;
  }
}
@keyframes tvShudder {
  0%,
  1.6%,
  7%,
  47%,
  49.5%,
  92%,
  97%,
  100% {
    transform: translate(0, 0);
  }
  2% {
    transform: translate(-2px, 0);
  }
  4% {
    transform: translate(2px, 1px);
  }
  6% {
    transform: translate(-1px, 0);
  }
  48% {
    transform: translate(1px, -1px);
  }
  49% {
    transform: translate(-1px, 0);
  }
  93% {
    transform: translate(-3px, 0);
  }
  94.5% {
    transform: translate(2px, 1px);
  }
  96% {
    transform: translate(-1px, 0);
  }
}
@keyframes tvFlicker {
  0%,
  100%,
  49%,
  51% {
    opacity: 1;
  }
  50% {
    opacity: 0.93;
  }
  72% {
    opacity: 1;
  }
  73% {
    opacity: 0.9;
  }
  74% {
    opacity: 1;
  }
}

#crt-boot {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  background: #eafff2;
}
body.crt-boot #crt-boot {
  animation: crtBootFlash 1.6s ease-out forwards;
}
body.crt-boot #warp {
  animation: crtBootWarp 1.6s ease-out;
}
body.crt-boot #retro-fx {
  opacity: 1;
  animation: crtBootScan 1.6s steps(1, end) forwards;
}

@keyframes crtBootFlash {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }
  6% {
    opacity: 0.95;
    transform: scaleY(0.02);
  }
  14% {
    opacity: 0.8;
    transform: scaleY(0.004);
  }
  22% {
    opacity: 0.55;
    transform: scaleY(1);
  }
  34% {
    opacity: 0.14;
  }
  60% {
    opacity: 0.05;
  }
  100% {
    opacity: 0;
  }
}
@keyframes crtBootWarp {
  0% {
    transform: scaleY(0.004);
    filter: brightness(3) saturate(0);
  }
  10% {
    transform: scaleY(0.03);
  }
  30% {
    transform: scaleY(1);
    filter: brightness(1.8) saturate(0.7);
  }
  55% {
    filter: brightness(1.15);
  }
  100% {
    filter: none;
    transform: none;
  }
}

@keyframes crtBootScan {
  0% {
    opacity: 1;
  }
  12% {
    opacity: 0.35;
  }
  22% {
    opacity: 0.9;
  }
  38% {
    opacity: 0.5;
  }
  55% {
    opacity: 0.7;
  }
  75% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}

#stars,
#scene,
#viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#stars {
  z-index: 0;
}
#scene {
  z-index: 1;
}
b {
  font-weight: 600;
}

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
#scan {
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(30, 16, 0, 0.2) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: roll 9s linear infinite;
}
@keyframes roll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 120px;
  }
}
#vign {
  background: radial-gradient(
    ellipse at 50% 48%,
    transparent 60%,
    rgba(0, 0, 0, 0.34) 90%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

#grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(71, 255, 169, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 255, 169, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask: radial-gradient(ellipse at 50% 46%, #000 38%, transparent 90%);
  mask: radial-gradient(ellipse at 50% 46%, #000 38%, transparent 90%);
}
#grain {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: flick 0.13s steps(2) infinite;
}
@keyframes flick {
  50% {
    opacity: 0.025;
  }
}

.corner {
  position: fixed;
  width: 22px;
  height: 22px;
  z-index: 42;
  pointer-events: none;
  border-color: var(--line);
  opacity: 0.9;
}
.corner.tl {
  top: 12px;
  left: 12px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.corner.tr {
  top: 12px;
  right: 12px;
  border-top: 1px solid;
  border-right: 1px solid;
}
.corner.bl {
  bottom: 12px;
  left: 12px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}
.corner.br {
  bottom: 12px;
  right: 12px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

#hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

body.retro #hud {
  transform: scale(0.93);
  transform-origin: 50% 50%;
}
#hud .layer,
#hud .panel,
#hud header {
  pointer-events: auto;
}
.live {
  color: var(--red);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.panel {
  position: relative;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.panel.fixed {
  position: fixed;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line);
  opacity: 0.8;
}
.panel::before {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}
.panel::after {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}
.pbody {
  padding: 13px 12px 11px;
}
.plabel {
  position: absolute;
  top: -9px;
  left: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--red);
  text-transform: uppercase;
  background: var(--bg);
  padding: 2px 8px;
  border: 1px solid var(--red);
  white-space: nowrap;
}
.plabel .caret {
  font-style: normal;
  margin-left: 6px;
  opacity: 0.8;
  display: inline-block;
  transition: transform 0.2s;
}

#sidecol .panel > .plabel {
  cursor: pointer;
}
.panel.collapsed {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-color: transparent;
  background: none;
  overflow: visible;
}
.panel.collapsed > *:not(.plabel) {
  display: none !important;
}
.panel.collapsed > .plabel {
  position: static;
  display: inline-flex;
  margin: 0;
}
.panel.collapsed > .plabel .caret {
  transform: rotate(-90deg);
}

.hud-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text);
  background: rgba(20, 14, 2, 0.5);
  border: 1px solid var(--line);
  padding: 5px 11px;
  cursor: pointer;
  text-transform: uppercase;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.18s,
    text-shadow 0.18s,
    filter 0.15s;
}
body:not(.retro) .hud-btn:hover,
.hud-btn:focus-visible,
.hud-btn.crt-hover {
  outline: none;
  color: #fff2cf;
  border-color: var(--text);
  background: rgba(240, 179, 42, 0.16);
  text-shadow:
    0 0 8px rgba(240, 179, 42, 0.8),
    0 0 18px rgba(240, 179, 42, 0.4);
  box-shadow:
    0 0 14px rgba(240, 179, 42, 0.32),
    inset 0 0 10px rgba(240, 179, 42, 0.12);
}
.hud-btn:active {
  filter: brightness(1.25);
}
.hud-btn.sq {
  padding: 5px 9px;
}
.hud-btn.on {
  color: var(--hi);
  border-color: var(--hi);
  box-shadow:
    0 0 12px rgba(71, 255, 169, 0.3),
    inset 0 0 8px rgba(71, 255, 169, 0.1);
  text-shadow: 0 0 8px rgba(71, 255, 169, 0.5);
}
.hud-btn.on b {
  color: var(--hi);
}
.hud-btn b {
  color: var(--text);
}
.hud-btn .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hi);
  box-shadow: 0 0 8px var(--hi);
  flex: 0 0 auto;
}
.hud-btn[aria-pressed="false"] .led {
  background: var(--text-dim);
  box-shadow: none;
}

#id {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 22;
  text-align: right;
  max-width: 56vw;
}
#title {
  display: inline-block;
  text-align: center;
}

#k-name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(36px, 5.7vw, 80px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    180deg,
    #9fffd4 0 2px,
    rgba(45, 175, 116, 0.9) 2px 3px,
    #7df5bd 3px 4px
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(71, 255, 169, 0.5))
    drop-shadow(0 0 22px rgba(71, 255, 169, 0.22));
}
#k-mission {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  margin-top: 7px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(9px, 1.05vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
#k-mission span {
  white-space: nowrap;
}

#id .src {
  margin-top: 11px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
#rail {
  display: inline;
  pointer-events: auto;
}
#rail a {
  color: var(--red);
  text-decoration: none;
  pointer-events: auto;
  transition:
    color 0.15s,
    text-shadow 0.18s,
    filter 0.15s;
}
#rail a::before {
  content: " · ";
  color: var(--text-dim);
}
#rail a:first-child::before {
  content: " ";
}
body:not(.retro) #rail a:hover,
#rail a.crt-hover {
  color: #ff8f8f;
  filter: brightness(1.15);
  text-shadow:
    0 0 8px var(--red),
    0 0 18px rgba(255, 71, 71, 0.55);
}
#dsn-side .counts {
  margin-top: 4px;
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
#dsn-side .counts b {
  color: var(--text);
  font-weight: 400;
}
#id .stamp {
  margin-top: 4px;
  font-family: var(--tt);
  font-size: 12px;
  color: var(--text);
}
#id .credit {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
#id .credit b {
  color: var(--text);
}
#id .credit b#k-handle {
  color: var(--hi);
}
#id .hd-ctl {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

#dsn-side {
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
  background: rgba(5, 4, 10, 0.42);
  padding: 8px 10px;
}
#dsn-side .dsnline {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--hi);
}
#dsn-side .dsnline b {
  color: var(--text);
}
#dsn-side .dsnline.off {
  color: var(--text-dim);
}
#dsn-side .srcnote {
  margin-top: 3px;
  font-family: var(--tt);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--hi);
  opacity: 0.7;
}
.view-label {
  position: fixed;
  top: 20px;
  left: 340px;
  z-index: 22;
}

#map-ui {
  position: fixed;
  top: 20px;
  left: 306px;
  z-index: 21;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  pointer-events: none;
}
#map-ui[hidden] {
  display: none;
}
#map-ui .map-chip {
  font-family: var(--tt);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
  padding: 5px 12px;
  background: rgba(20, 8, 2, 0.5);
  text-shadow: 0 0 8px rgba(255, 106, 31, 0.5);
}
#map-ui .map-toggles {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.mtg {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  background: rgba(10, 7, 19, 0.55);
  cursor: pointer;
  transition: 0.15s;
}
.mtg.on[data-tg="orb"] {
  color: var(--text);
  border-color: var(--text);
  box-shadow: 0 0 10px rgba(240, 179, 42, 0.22);
}
.mtg.on[data-tg="cme"] {
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 10px rgba(255, 106, 31, 0.25);
}
.mtg.on[data-tg="flr"] {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(255, 71, 71, 0.25);
}
.mtg.on[data-tg="sol"] {
  color: var(--hi);
  border-color: var(--hi);
  box-shadow: 0 0 10px rgba(71, 255, 169, 0.25);
}
.map-status {
  max-width: 300px;
  font-family: var(--tt);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-shadow: 0 0 6px rgba(255, 106, 31, 0.4);
  line-height: 1.5;
}
.map-approach {
  min-width: 236px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 4, 10, 0.55);
  padding: 12px 14px;
  font-family: var(--tt);
}
.ma-h {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.ma-des {
  color: var(--hi);
  margin: 4px 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ma-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.ma-row b {
  font-weight: 400;
}
.ma-row b.red {
  color: var(--red);
}
.ma-row b.grn {
  color: var(--hi);
}
.ma-date {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 10.5px;
}
.map-hint {
  font-family: var(--tt);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

#viewport {
  z-index: 2;
  display: none;
}
#viewport.show {
  display: block;
}
#scene.hide {
  display: none;
}

#sidecol {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 266px;
  bottom: 176px;
  z-index: 22;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#sidecol > .panel {
  display: flex;
  flex-direction: column;
}
.viewsw {
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.18s;
}
body:not(.retro) .viewsw:hover,
.viewsw:focus-visible,
.viewsw.crt-hover {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 16px rgba(240, 179, 42, 0.16);
}
.viewsw.on {
  border-color: var(--hi);
  box-shadow: 0 0 16px rgba(71, 255, 169, 0.22);
}
.viewsw.on > .plabel {
  color: var(--hi);
  border-color: var(--hi);
}

#craft {
  flex: 0 0 auto;
}
.cr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.cr-top .cr-code {
  color: var(--hi);
}
.cr-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  color: var(--hi);
  text-shadow: 0 0 8px rgba(71, 255, 169, 0.4);
  margin-top: 3px;
}
.cr-spec {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  font-family: var(--tt);
  font-size: 11px;
}
.cr-spec .k {
  color: var(--text-dim);
  letter-spacing: 0.12em;
}
.cr-spec .v {
  color: var(--text);
  text-align: right;
}
.cr-spec .v.hl {
  color: var(--hi);
}
.cr-spec .v.rd {
  color: var(--orange);
}
.cr-spec .v.cy {
  color: var(--cyan);
}
.cr-dsn {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--tt);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.cr-dsn .live {
  color: var(--cyan);
}
.cr-dsn b {
  color: var(--text);
}

.cr-view {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--tt);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.cr-view .open {
  color: var(--orange);
}
.viewsw.on .cr-view #cr-view-lbl,
.viewsw.on .cr-view .open {
  color: var(--hi);
}
.viewsw:not(.on) .cr-view #cr-view-lbl {
  color: var(--text-dim);
}
body:not(.retro) .viewsw:hover .cr-view .open,
.viewsw.crt-hover .cr-view .open {
  color: #fff2cf;
  text-shadow: 0 0 8px var(--orange);
}

#orbital-mini {
  flex: 0 0 auto;
  height: 94px;
  position: relative;
}
#galaxy-mini {
  flex: 0 0 auto;
  height: 120px;
  position: relative;
}
.gx-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gx-meta b {
  color: var(--hi);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-meta i {
  color: var(--cyan);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.pviz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  pointer-events: none;
  clip-path: inset(0);
}
.pv-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  padding: 16px 10px 6px;
  background: linear-gradient(
    0deg,
    rgba(5, 4, 10, 0.95),
    rgba(5, 4, 10, 0.3) 62%,
    transparent
  );
  font-family: var(--tt);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.pv-cap b {
  color: var(--hi);
}
.pv-cap .open {
  color: var(--orange);
  white-space: nowrap;
}
body:not(.retro) .viewsw:hover .open,
.viewsw.crt-hover .open {
  color: #fff2cf;
  text-shadow: 0 0 8px var(--orange);
}

#fleet {
  flex: 1 1 auto;
  min-height: 96px;
}
#sidecol #fleet,
#sidecol #galaxies {
  display: none;
}
#sidecol.show-fleet #fleet {
  display: flex;
}
#sidecol.show-fleet #feedpanel {
  flex: 0 0 auto;
  height: 130px;
}
#fleet .pbody {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 12px 12px 9px;
}
#galaxies {
  flex: 1 1 auto;
  min-height: 120px;
}
#sidecol.show-galaxies #galaxies {
  display: flex;
}
#galaxies .pbody {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 12px 12px 9px;
}
#galaxy-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
}
#galaxy-cards::-webkit-scrollbar {
  width: 5px;
}
#galaxy-cards::-webkit-scrollbar-thumb {
  background: var(--line-soft);
}
.fcard .fc-dist {
  font-family: var(--tt);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-top: 1px;
}
#fleet .fleet-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
#fleet-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  mask-image: linear-gradient(180deg, #000 93%, transparent);
}
#fleet-cards::-webkit-scrollbar {
  width: 5px;
}
#fleet-cards::-webkit-scrollbar-thumb {
  background: var(--line-soft);
}
.fcard {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(9, 7, 18, 0.5);
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-8px);
  animation: fcardIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition:
    border-color 0.15s,
    box-shadow 0.18s,
    background 0.15s;
}
@keyframes fcardIn {
  to {
    opacity: 1;
    transform: none;
  }
}
body:not(.retro) .fcard:hover,
.fcard.crt-hover {
  border-color: var(--text);
  box-shadow: 0 0 14px rgba(240, 179, 42, 0.18);
}
.fcard.on {
  border-color: var(--hi);
  background: rgba(71, 255, 169, 0.07);
  animation:
    fcardIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    fcardPulse 1.8s ease-in-out 0.34s infinite;
}
@keyframes fcardPulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(71, 255, 169, 0.2);
  }
  50% {
    box-shadow: 0 0 18px rgba(71, 255, 169, 0.5);
  }
}
.fcard canvas,
.fcard .fc-thumb {
  width: 58px;
  height: 36px;
  flex: 0 0 auto;
  opacity: 0.95;
}
.fcard .fc-thumb {
  object-fit: contain;
  image-rendering: auto;
}
.fcard .fc-thumb.ended {
  opacity: 0.5;
  filter: grayscale(0.3) brightness(0.9);
}
.fcard .fc-info {
  min-width: 0;
  flex: 1;
}
.fcard .fc-code {
  font-family: var(--tt);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.fcard.on .fc-code {
  color: var(--hi);
}
.fcard .fc-live {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--hi);
}
.fcard .fc-live.ended {
  color: var(--text-dim);
}
.fcard .fc-live.dsn {
  color: var(--cyan);
}
.fcard .fc-region {
  font-family: var(--tt);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

#feedpanel {
  flex: 1 1 auto;
  min-height: 70px;
}
#feedpanel .pbody {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 12px 12px 9px;
}
.feed-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--tt);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 4px;
}
#feedbox {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-family: var(--tt);
  font-size: 11px;
  line-height: 1.55;
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
#feedbox .ln {
  display: grid;
  grid-template-columns: 32px 1fr 52px 46px 38px;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
}
#feedbox .ln .i {
  color: var(--text-dim);
}
#feedbox .ln .d {
  color: var(--text-dim);
}
#feedbox .ln .ld {
  text-align: right;
}
#feedbox .ln .v {
  text-align: right;
  color: var(--text-dim);
}
#feedbox .ln.close {
  color: var(--red);
}
#feedbox .ln.close .v {
  color: var(--red);
}

#nav {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 52px;
  z-index: 24;
  display: flex;
  gap: 12px;
  pointer-events: auto;
}
.navcard {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 18px);
  padding: clamp(18px, 3.6vh, 42px) clamp(6px, 1vw, 16px);
  border: 1px solid var(--line-soft);
  background: rgba(9, 7, 18, 0.66);
  cursor: pointer;
  pointer-events: auto;
  font-family: var(--serif);
  transition:
    border-color 0.15s,
    box-shadow 0.18s,
    background 0.15s,
    transform 0.15s;
}
body:not(.retro) .navcard:hover,
.navcard:focus-visible,
.navcard.crt-hover {
  outline: none;
  border-color: var(--hi);
  background: rgba(71, 255, 169, 0.09);
  box-shadow: 0 0 22px rgba(71, 255, 169, 0.3);
  transform: translateY(-3px);
}
.navcard .nav-ic {
  width: clamp(38px, 3.8vw, 64px);
  height: clamp(28px, 2.9vw, 48px);
  opacity: 0.92;
  flex: 0 0 auto;
}
.navcard .nc-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: 0.03em;
  color: var(--hi);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(71, 255, 169, 0.3);
}
body:not(.retro) .navcard:hover .nc-label,
.navcard.crt-hover .nc-label {
  color: #eafff2;
  text-shadow: 0 0 14px rgba(71, 255, 169, 0.6);
}

#id .id-cta {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
#recruiter {
  position: relative;
  border: 1px solid var(--hi);
  color: var(--hi);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 22px);
  letter-spacing: 0.2em;
  padding: 12px 24px;
  background: rgba(71, 255, 169, 0.07);
  text-shadow: 0 0 10px rgba(71, 255, 169, 0.5);
}
body:not(.retro) #recruiter:hover,
#recruiter.crt-hover {
  background: rgba(71, 255, 169, 0.16);
  color: #eafff2;
  box-shadow: 0 0 26px rgba(71, 255, 169, 0.5);
}
@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
#recruiter::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  pointer-events: none;
  background: conic-gradient(
    from var(--ang),
    transparent 0 66%,
    #47ffa9 80%,
    #eafff2 87%,
    #47ffa9 93%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: travelBorder 2.6s linear infinite;
}
@keyframes travelBorder {
  to {
    --ang: 360deg;
  }
}
body:not(.retro) .navcard:hover .nc-label,
.navcard.crt-hover .nc-label {
  color: #fff2cf;
  text-shadow: 0 0 8px rgba(71, 255, 169, 0.6);
}

#mtime {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  z-index: 23;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(0deg, rgba(5, 4, 10, 0.94), transparent);
}
#mtime #mt-play,
#mtime #fisheye {
  border-color: var(--orange);
  color: var(--orange);
  white-space: nowrap;
}
body:not(.retro) #mtime #mt-play:hover,
body:not(.retro) #mtime #fisheye:hover,
#mtime #mt-play.crt-hover,
#mtime #fisheye.crt-hover {
  color: #fff2cf;
  border-color: var(--text);
}
#mtime #fisheye[aria-pressed="true"] {
  border-color: var(--hi);
  color: var(--hi);
}
#mtime .mt-label {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--orange);
  white-space: nowrap;
}
.mt-track {
  position: relative;
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--amberred), var(--orange));
}
.mt-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 39px,
    rgba(5, 4, 10, 0.92) 39px,
    rgba(5, 4, 10, 0.92) 40px
  );
}
#mt-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid var(--hi);
  filter: drop-shadow(0 0 6px var(--hi));
}
.mt-clock {
  font-family: var(--tt);
  font-size: clamp(15px, 1.5vw, 22px);
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 0 10px rgba(240, 179, 42, 0.35);
  white-space: nowrap;
}

#tip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -150%);
  transition: opacity 0.12s;
  font-family: var(--tt);
  font-size: 11px;
  background: rgba(5, 4, 10, 0.94);
  border: 1px solid var(--text);
  padding: 4px 9px;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(240, 179, 42, 0.3);
}
#tip .nm {
  color: var(--hi);
}
#tip .cat {
  color: var(--text-dim);
  font-size: 10px;
}

#dossier {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: -480px;
  transform: translateY(-50%);
  width: min(430px, 90vw);
  max-height: 80vh;
  overflow: auto;
  background: linear-gradient(
    160deg,
    rgba(12, 9, 4, 0.98),
    rgba(5, 4, 10, 0.99)
  );
  border: 1px solid var(--text);
  box-shadow:
    -8px 0 60px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(240, 179, 42, 0.14);
  transition: right 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#dossier.open {
  right: 26px;
}
#dossier .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line-soft);
}
#dossier .idx {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
#dossier h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: var(--hi);
  margin-top: 3px;
  text-shadow: 0 0 12px rgba(71, 255, 169, 0.4);
  padding-right: 14px;
}
#dossier .cls {
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-top: 6px;
}
#dossier .x {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  border: 1px solid var(--line-soft);
  padding: 3px 9px;
}
#dossier .x:hover {
  color: var(--red);
  border-color: var(--red);
}
#dossier .body {
  padding: 14px 18px 20px;
}
#dossier .desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
  opacity: 0.92;
}
#dossier .desc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#dossier .desc li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.92;
  padding-left: 16px;
  position: relative;
  overflow-wrap: anywhere;
}
#dossier .desc li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
}
#dossier .meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-family: var(--tt);
  font-size: 12px;
  margin-bottom: 14px;
}
#dossier .meta .k {
  color: var(--text-dim);
  letter-spacing: 0.12em;
}
#dossier .meta .v {
  color: var(--text);
}
#dossier .tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
#dossier .tech span {
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid rgba(57, 214, 200, 0.4);
  padding: 2px 9px;
}
#dossier .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#dossier a.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--text);
  padding: 7px 15px;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(240, 179, 42, 0.4);
  transition: 0.15s;
  text-transform: uppercase;
}
#dossier a.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  box-shadow: none;
}
#dossier a.btn:hover {
  background: var(--hi);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(71, 255, 169, 0.5);
}
#dossier a.btn.ghost:hover {
  background: var(--text);
  color: var(--bg);
}

#panel-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 4, 10, 0.5),
    rgba(2, 1, 4, 0.88)
  );
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  transition: opacity 0.3s;
}
#panel-scrim.show {
  opacity: 1;
  pointer-events: auto;
}
#panel {
  position: fixed;
  z-index: 46;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(880px, 93vw);
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    160deg,
    rgba(12, 9, 4, 0.98),
    rgba(5, 4, 10, 0.99)
  );
  border: 1px solid var(--text);
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.7),
    0 0 34px rgba(240, 179, 42, 0.14),
    inset 0 0 44px rgba(240, 179, 42, 0.04);
  transition:
    opacity 0.3s,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#panel.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#panel .corner {
  position: absolute;
  border-color: var(--text);
}
#panel .corner.tl {
  top: 8px;
  left: 8px;
}
#panel .corner.tr {
  top: 8px;
  right: 8px;
}
#panel .corner.bl {
  bottom: 8px;
  left: 8px;
}
#panel .corner.br {
  bottom: 8px;
  right: 8px;
}
#panel .p-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line-soft);
}
#panel .p-kicker {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--red);
}
#panel h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--hi);
  margin-top: 6px;
  text-shadow: 0 0 12px rgba(71, 255, 169, 0.4);
}
#panel .p-body {
  padding: 18px 22px 24px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) rgba(240, 179, 42, 0.08);
}

#panel .p-body::-webkit-scrollbar {
  width: 9px;
}
#panel .p-body::-webkit-scrollbar-track {
  background: rgba(240, 179, 42, 0.06);
  border-left: 1px solid var(--line-soft);
}
#panel .p-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange), var(--text));
  box-shadow: inset 0 0 8px rgba(240, 179, 42, 0.4);
}
#panel .p-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--text), var(--hi));
}
.p-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--hi);
  text-shadow: 0 0 8px rgba(71, 255, 169, 0.2);
  margin-bottom: 14px;
}
.p-text {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text);
  opacity: 0.92;
  margin-bottom: 12px;
}
.p-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-family: var(--tt);
  font-size: 13px;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px dashed var(--line-soft);
  border-bottom: 1px dashed var(--line-soft);
}
.p-facts .k {
  color: var(--text-dim);
  letter-spacing: 0.14em;
}
.p-facts .v {
  color: var(--text);
}
.p-facts .v a {
  color: var(--hi);
  text-decoration: none;
}
.p-facts .v a:hover {
  text-shadow: 0 0 8px rgba(71, 255, 169, 0.6);
}
.p-sub {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin: 18px 0 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  font-family: var(--tt);
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid rgba(57, 214, 200, 0.4);
  padding: 3px 9px;
  transition: 0.15s;
}
.chip:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(57, 214, 200, 0.35);
  color: #dffbf7;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card {
  border: 1px solid var(--line-soft);
  background: rgba(12, 9, 4, 0.5);
  padding: 13px 15px;
  position: relative;
  transition:
    border-color 0.15s,
    box-shadow 0.18s,
    background 0.15s;
}
.card.click {
  cursor: pointer;
}
.card:hover {
  border-color: var(--text);
  background: rgba(240, 179, 42, 0.06);
  box-shadow: 0 0 16px rgba(240, 179, 42, 0.18);
}
.card .c-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.card .c-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  color: var(--hi);
}
.card .c-meta {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  white-space: nowrap;
}
.card .c-status {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.card .amb {
  color: var(--orange);
}
.card .c-desc {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text);
  opacity: 0.9;
  margin: 8px 0 10px;
}
.card .c-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.card .c-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.card .c-links a {
  font-family: var(--tt);
  font-size: 11px;
  color: var(--cyan);
  text-decoration: none;
  transition: 0.15s;
}
.card .c-links a:hover {
  color: #dffbf7;
  text-shadow: 0 0 8px rgba(57, 214, 200, 0.6);
}
.card .c-open {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.card:hover .c-open {
  color: var(--orange);
  text-shadow: 0 0 8px var(--orange);
}

.research-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
}
.research-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.research-item {
  border: 1px solid var(--line-soft);
  background: rgba(12, 9, 4, 0.5);
  padding: 12px 14px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.18s,
    background 0.15s;
}
.research-item:hover,
.research-item:focus-visible,
.research-item.on {
  outline: none;
  border-color: var(--text);
  background: rgba(240, 179, 42, 0.06);
  box-shadow: 0 0 16px rgba(240, 179, 42, 0.18);
}
.research-item.on {
  border-color: var(--hi);
  box-shadow: 0 0 16px rgba(71, 255, 169, 0.22);
}
.research-item .ri-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: var(--hi);
}
.research-item .ri-org {
  font-family: var(--tt);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 3px;
}
.research-item .ri-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.9;
  margin-top: 6px;
}
.research-item .ri-open {
  font-family: var(--tt);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-top: 8px;
  display: block;
}
.research-item:hover .ri-open {
  color: #fff2cf;
  text-shadow: 0 0 8px var(--orange);
}
.research-detail {
  position: sticky;
  top: 0;
  border: 1px solid var(--line-soft);
  background: rgba(9, 7, 18, 0.55);
  padding: 16px 16px;
  min-height: 220px;
  transition:
    filter 0.3s,
    opacity 0.3s;
}
.research-detail.blurred {
  filter: blur(4px);
  opacity: 0.55;
}
.research-detail .rd-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tt);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orange);
}
.research-detail .rd-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  color: var(--hi);
}
.research-detail .rd-org {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-top: 3px;
}
.research-detail ul {
  list-style: none;
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.research-detail li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.92;
  padding-left: 16px;
  position: relative;
}
.research-detail li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
}
.research-detail .rd-links {
  margin-top: 14px;
  display: flex;
  gap: 14px;
}
.research-detail .rd-links a {
  font-family: var(--tt);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-decoration: none;
}
.research-detail .rd-links a:hover {
  color: #dffbf7;
  text-shadow: 0 0 8px rgba(57, 214, 200, 0.6);
}
@media (max-width: 640px) {
  .research-split {
    grid-template-columns: 1fr;
  }
  .research-detail.blurred {
    filter: none;
    opacity: 0.9;
  }
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  font-family: var(--tt);
  font-size: 14px;
  line-height: 2;
  transition: opacity 0.7s;
}
#boot.done {
  opacity: 0;
  pointer-events: none;
}
#boot .l {
  color: var(--text-dim);
}
#boot .l .ok {
  color: var(--hi);
}
#boot .l .w {
  color: var(--red);
}
#boot .cur {
  display: inline-block;
  width: 9px;
  height: 15px;
  background: var(--hi);
  vertical-align: middle;
  animation: blink 0.9s steps(2) infinite;
  margin-left: 2px;
}

.p-text,
.p-lead,
.card .c-desc,
#dossier .desc,
.research-item .ri-desc,
.research-detail li,
.p-facts .v {
  overflow-wrap: anywhere;
}

@media (max-width: 1150px) {
  #sidecol {
    width: 264px;
  }
  .view-label {
    left: 300px;
  }
}
@media (max-width: 900px) {
  .navcard {
    padding: 15px 10px;
  }
  .navcard .nc-label {
    font-size: 14px;
  }
  .navcard .nav-ic {
    width: 40px;
    height: 30px;
  }
}
@media (max-width: 760px) {
  #id {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    max-width: none;
    text-align: left;
  }
  #title {
    font-size: clamp(24px, 7vw, 40px);
  }
  #id .hd-ctl {
    justify-content: flex-start;
  }
  #sidecol,
  .view-label {
    display: none;
  }
  #map-ui {
    left: 14px;
    top: auto;
    bottom: 150px;
    gap: 8px;
  }
  #map-ui .map-approach {
    min-width: 200px;
    padding: 9px 11px;
  }
  #nav {
    left: 14px;
    right: 14px;
    bottom: 58px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .navcard {
    flex: 1 1 42%;
    gap: 10px;
    padding: 12px 10px;
  }
  .navcard .nav-ic {
    width: 32px;
    height: 24px;
  }
  .navcard .nc-label {
    font-size: 13px;
  }
  #mtime {
    gap: 10px;
    padding: 0 14px;
  }
  #mtime .mt-label {
    display: none;
  }
  .corner {
    width: 16px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #scan,
  #grain {
    animation: none;
  }
  #panel,
  #panel-scrim {
    transition: opacity 0.15s;
  }
  #recruiter::before {
    animation: none;
  }
  .fcard {
    animation: none;
    opacity: 1;
    transform: none;
  }
  #retro-fx::before,
  body.retro #retro-fx,
  body.retro #warp {
    animation: none;
  }
}
