@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/space-mono-400.woff2) format("woff2"); }
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #03070e;
  color: #eff1ed;
  font-family: Arial, Helvetica, sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #d8b977;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
}
#pixel {
  image-rendering: pixelated;
}
#space {
  animation: reveal 1.5s ease;
}
@keyframes reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
  background: linear-gradient(#020611bb, transparent);
  z-index: 5;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e6c68a;
  font-size: 28px;
}
.wordmark span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #e4e7e9;
}
.wordmark b {
  display: block;
  color: #8799a8;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 5px;
  margin-top: 5px;
}
.phase {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  font: 10px "Space Mono", monospace;
  letter-spacing: 2px;
  color: #c2cbd2;
}
.live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8cdec8;
  box-shadow: 0 0 12px #8cdec8;
}
#menuButton {
  width: 44px;
  height: 44px;
  border: 1px solid #b5c9d330;
  border-radius: 50%;
  background: #0b1423aa;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
#menuButton span {
  width: 16px;
  height: 1px;
  background: #e7e9e5;
}
.flight-hud {
  position: absolute;
  top: 110px;
  left: 32px;
  display: flex;
  gap: 24px;
  pointer-events: none;
  background: #030a14d9;
  box-shadow: 0 0 18px 12px #030a14d9;
  border-radius: 4px;
}
.flight-hud > div {
  width: 100px;
}
.flight-hud label {
  display: flex;
  justify-content: space-between;
  font: 9px "Space Mono", monospace;
  letter-spacing: 1px;
  color: #b3c5d2;
}
.track {
  height: 3px;
  background: #a3bddb25;
  margin-top: 9px;
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  background: #c5d7df;
  transition: width 0.2s;
}
#fuel {
  background: #dbb777;
}
.flight-hud .score {
  width: auto;
}
.score strong {
  display: block;
  font: 18px "Space Mono", monospace;
  margin-top: 3px;
  color: #e4c68c;
}
.intro {
  position: absolute;
  left: 8%;
  top: 25%;
  max-width: 610px;
  text-shadow: 0 2px 30px #0007;
}
.eyebrow {
  font: 10px "Space Mono", monospace;
  letter-spacing: 3px;
  color: #edc88c;
}
h1 {
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -3px;
  font-weight: 400;
  margin: 22px 0;
}
p {
  font-size: 14px;
  line-height: 1.8;
  color: #b8c8d0;
}
.intro p {
  color: #e1e6e4;
}
.primary {
  background: #e5c487;
  color: #101c24;
  border: none;
  padding: 17px 24px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
}
.primary span {
  margin-left: 30px;
}
.intro small {
  display: block;
  margin-top: 17px;
  font: 10px "Space Mono", monospace;
  color: #b9d0d7;
}
.intro .primary {
  margin-top: 15px;
}
.intro:before {
  content: "";
  position: absolute;
  inset: -45px;
  z-index: -1;
  background: #07121b33;
  filter: blur(25px);
}
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 32px;
  background: linear-gradient(transparent, #020610da);
  pointer-events: none;
}
.route {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  font: 9px "Space Mono", monospace;
  letter-spacing: 2px;
  color: #d2dbe1;
}
.route-track {
  height: 1px;
  background: #ffffff25;
  flex: 1;
}
.route-track i {
  display: block;
  height: 2px;
  background: #d9b475;
  transition: width 0.3s;
}
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font: 9px "Space Mono", monospace;
  color: #99adbb;
  letter-spacing: 1px;
}
.local {
  color: #86bdaa;
}
#heading {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px "Space Mono", monospace;
  color: #e8c78a;
  letter-spacing: 2px;
}
#mission {
  position: absolute;
  bottom: 96px;
  left: 15%;
  right: 15%;
  text-align: center;
  font: 12px "Space Mono", monospace;
  color: #e5d0a5;
  pointer-events: none;
}
#menu {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100%);
  padding: 100px 30px 30px;
  background: #080f1bf2;
  border-left: 1px solid #263342;
  backdrop-filter: blur(18px);
  overflow-y: auto;
}
#menu h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 14px 0 26px;
}
#menu > label,
.skins label {
  font: 9px "Space Mono", monospace;
  letter-spacing: 2px;
  color: #98acbc;
}
input,
select {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  background: #152131;
  color: #dbe3e8;
  border: 1px solid #324355;
  border-radius: 3px;
  font-size: 13px;
}
.personal {
  display: flex;
  justify-content: space-between;
  font: 10px "Space Mono", monospace;
  color: #94a8bb;
  margin-bottom: 24px;
}
.personal strong {
  color: #e4c389;
}
.skins {
  display: flex;
  gap: 12px;
}
.skins label {
  width: 50%;
}
#menu > button {
  display: block;
  width: 100%;
  padding: 13px 18px;
  margin: 9px 0;
  border: 1px solid #314253;
  border-radius: 3px;
  background: #152131;
  color: #c4d0d9;
  font-size: 12px;
  text-align: left;
}
#menu > button.primary {
  background: #e5c487;
  color: #101c24;
  border-color: #e5c487;
}
#menu p {
  font-size: 11px;
}
#menu .fine {
  color: #768b9b;
  font-size: 10px;
}
details {
  font-size: 11px;
  color: #aabcc8;
  margin-top: 20px;
}
button:hover {
  filter: brightness(1.15);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
#paused,
#error {
  position: absolute;
  inset: 0;
  text-align: center;
  align-content: center;
  background: #030912b8;
  backdrop-filter: blur(5px);
  z-index: 3;
}
#error {
  padding: 20%;
}
#paused h2 {
  font-size: 40px;
  font-weight: 300;
}
#dockUI {
  position: absolute;
  right: 8%;
  top: 24%;
  width: 290px;
  padding: 22px;
  background: #061322c7;
  border: 1px solid #90b2c233;
  backdrop-filter: blur(12px);
  text-align: center;
  border-radius: 5px;
}
.dock-label {
  font: 10px "Space Mono", monospace;
  letter-spacing: 2px;
  color: #adc2cf;
}
.dock-grid {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 18px auto;
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, #85abc312 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, #85abc312 22px);
  border-radius: 50%;
  border: 1px solid #88aabe45;
  overflow: hidden;
}
.cross {
  position: absolute;
  background: #9db9cc33;
}
.horizontal {
  top: 50%;
  width: 100%;
  height: 1px;
}
.vertical {
  left: 50%;
  height: 100%;
  width: 1px;
}
#port {
  position: absolute;
  left: calc(50% - 16px);
  top: calc(50% - 16px);
  width: 32px;
  height: 32px;
  border: 1px solid #73d4b5;
  border-radius: 50%;
  box-shadow: 0 0 20px #62d8b622;
}
#probe {
  position: absolute;
  left: calc(50% - 9px);
  top: calc(50% - 15px);
  width: 18px;
  height: 30px;
  font: 28px "Space Mono", monospace;
  color: #e8c787;
}
#dockStatus {
  font: 9px "Space Mono", monospace;
  color: #e8c787;
}
.aligned #dockStatus {
  color: #7ee2ba;
}
#dockUI p {
  font-size: 11px;
}
#dockButton {
  font-size: 10px;
  width: 100%;
  padding: 13px;
}
#touch {
  display: none;
  position: absolute;
  bottom: 125px;
  left: 16px;
  right: 16px;
  justify-content: space-between;
  pointer-events: none;
}
#touch > div {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 5px;
}
#touch > div:last-child {
  grid-template-columns: 60px;
  align-self: end;
}
#touch button {
  height: 38px;
  border: 1px solid #b2cad333;
  background: #0a192a99;
  color: #d1dce4;
  border-radius: 5px;
  font: 10px "Space Mono", monospace;
  touch-action: none;
  pointer-events: auto;
}
@media (pointer: coarse) {
  #touch {
    display: flex;
  }
  .bottom #controls {
    display: none;
  }
}
@media (max-width: 700px) {
  .top {
    padding: 18px;
  }
  .wordmark span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .phase {
    top: 78px;
    font-size: 8px;
    white-space: nowrap;
  }
  .flight-hud {
    top: 110px;
    left: 18px;
    gap: 15px;
  }
  .flight-hud > div {
    width: 70px;
  }
  .intro {
    left: 8%;
    right: 8%;
    top: 28%;
  }
  h1 {
    letter-spacing: -1.5px;
  }
  .intro p {
    font-size: 12px;
  }
  footer {
    padding: 18px;
  }
  .bottom {
    font-size: 8px;
  }
  .local {
    display: none;
  }
  .route {
    font-size: 8px;
    letter-spacing: 1px;
  }
  #heading {
    top: 158px;
    font-size: 8px;
    white-space: nowrap;
  }
  #mission {
    bottom: 85px;
    font-size: 10px;
    left: 8%;
    right: 8%;
  }
  #dockUI {
    width: 250px;
    right: calc(50% - 125px);
    top: 24%;
    padding: 15px;
  }
  .dock-grid {
    width: 190px;
    height: 190px;
    margin: 10px auto;
  }
  #controls {
    max-width: 75%;
    font-size: 8px;
    line-height: 1.5;
  }
  .route {
    margin-bottom: 14px;
  }
}
@media (max-height: 620px) {
  #dockUI {
    top: 19%;
    padding: 10px;
  }
  .dock-grid {
    width: 140px;
    height: 140px;
  }
  .intro {
    top: 22%;
  }
  .intro h1 {
    font-size: 40px;
  }
  .intro p {
    margin: 8px 0;
  }
  #dockUI p {
    display: none;
  }
}

#combatHUD {
  position: absolute;
  top: 160px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font: 9px "Space Mono", monospace;
  letter-spacing: 1px;
  color: #94aab9;
  pointer-events: none;
  background: #030a14c9;
  box-shadow: 0 0 14px 8px #030a14c9;
}
#weaponStatus {
  color: #d4bd8c;
  font-weight: 400;
}
#weaponStatus.unlocked {
  color: #85e5c0;
}
#radarPanel {
  position: absolute;
  right: 28px;
  top: 110px;
  width: 150px;
  text-align: center;
  pointer-events: none;
  font: 9px "Space Mono", monospace;
  letter-spacing: 1px;
  color: #9db4c5;
  background: #030a14d9;
  box-shadow: 0 0 16px 10px #030a14d9;
  border-radius: 12px;
}
canvas#radar {
  position: relative;
  inset: auto;
  width: 150px;
  height: 150px;
  display: block;
  background: radial-gradient(#06132177, transparent 70%);
}
#radarPanel small {
  display: block;
  font-size: 7px;
  line-height: 1.5;
  margin-top: 8px;
  color: #6e879a;
}
#radarPanel.danger #threat {
  color: #ffb18a;
}
#dockMetrics {
  font: 8px "Space Mono", monospace;
  color: #b3c3ce;
  line-height: 1.6;
  margin: 9px 0;
}
.dock-lock {
  height: 3px;
  background: #7392a322;
  margin: 8px 15px;
}
.dock-lock i {
  display: block;
  height: 3px;
  background: #8edcbb;
}
#port {
  border-color: #d5aa65;
}
#port.open {
  border-color: #7be4b9;
}
#port:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  height: 10px;
  width: 2px;
  background: #e4c382;
}
#probe:after {
  content: "";
  position: absolute;
  left: 8px;
  top: -9px;
  height: 10px;
  width: 2px;
  background: #e4c382;
}
#dockUI {
  width: 320px;
}
.dock-grid {
  width: 240px;
  height: 240px;
}
#space {
  touch-action: none;
}
@media (max-width: 700px) {
  #combatHUD {
    top: 177px;
    left: 18px;
    font-size: 8px;
  }
  #radarPanel {
    right: 12px;
    top: auto;
    bottom: 160px;
    width: 100px;
  }
  canvas#radar {
    width: 100px;
    height: 100px;
  }
  #radarPanel small {
    font-size: 6px;
  }
  #dockUI {
    width: 280px;
    right: calc(50% - 140px);
    top: 27%;
  }
  .dock-grid {
    width: 185px;
    height: 185px;
  }
  #dockMetrics {
    font-size: 7px;
  }
  .flight-hud {
    z-index: 1;
  }
}
@media (max-height: 650px) {
  #dockUI {
    top: 24%;
    padding: 12px;
  }
  .dock-grid {
    width: 145px;
    height: 145px;
  }
  #dockUI p {
    display: none;
  }
  #dockStatus {
    font-size: 8px;
  }
  #dockMetrics {
    margin: 5px 0;
  }
  #radarPanel {
    bottom: 130px;
  }
  #combatHUD {
    top: 170px;
  }
}

#energy {
  background: #73d9cf;
}
.operations {
  border-top: 1px solid #314253;
  margin: 20px 0;
  padding-top: 12px;
}
.operations h3 {
  font: 10px "Space Mono", monospace;
  letter-spacing: 2px;
  color: #b7c6d2;
}
.operations > button {
  width: 100%;
  margin: 5px 0;
  padding: 12px;
  background: #152131;
  border: 1px solid #314253;
  border-radius: 3px;
  color: #c4d0d9;
  text-align: left;
  font-size: 11px;
}
.operations small {
  display: block;
  font-size: 10px;
  color: #8da3b4;
  line-height: 1.6;
  margin: 10px 0;
}
.operations strong {
  float: right;
  color: #e3bf7d;
}
#frontierHUD { position:absolute; right:28px; bottom:115px; width:250px; padding:16px; background:#030a14e8; border:1px solid #b99a5b44; font:11px "Space Mono", monospace; pointer-events:none; }
#frontierHUD strong { color:#e4c68c; display:block; } #frontierHUD p { line-height:1.5; color:#b9cbd5; margin:8px 0; } #frontierHUD small { display:block; font-size:9px; line-height:1.8; color:#8fb6c4; } #raidAlert { margin-top:8px; color:#ff8e88!important; }
.operations summary { cursor:pointer; color:#e4c68c; padding:10px 0; font:12px "Space Mono", monospace; }
#quickColony { display:block; margin-top:16px; padding:12px 18px; border:1px solid #9db4c555; background:#07131bd9; color:#c9d8e1; }
@media(max-width:700px) { #frontierHUD { right:12px; bottom:110px; width:190px; padding:10px; font-size:9px; } #frontierHUD small { font-size:8px; } }
#colonyHUD {
  position: absolute;
  left: 32px;
  bottom: 145px;
  width: 220px;
  padding: 14px;
  background: #081321aa;
  border: 1px solid #9db4bb30;
  backdrop-filter: blur(8px);
  font: 9px "Space Mono", monospace;
  color: #a6bac6;
  letter-spacing: 1px;
}
#colonyHUD > div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}
#colonyHUD strong {
  color: #c7e1c6;
}
#warm {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  background: #d8ba7e;
  color: #142029;
  border: 0;
  border-radius: 3px;
  font: 9px "Space Mono", monospace;
}
#sensitivity {
  padding: 0;
  accent-color: #d8ba7e;
}
@media (max-width: 700px) {
  .flight-hud {
    gap: 9px;
  }
  .flight-hud > div {
    width: 62px;
  }
  .flight-hud .score {
    width: auto;
  }
  #colonyHUD {
    left: 16px;
    bottom: 140px;
    width: 150px;
    padding: 9px;
    font-size: 8px;
  }
  #warm {
    font-size: 8px;
  }
  #combatHUD {
    font-size: 7px;
  }
}

#rearWarning {
  position: fixed;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: 1px solid #ffa378;
  border-radius: 4px;
  background: #1a0d0acc;
  color: #ffc4a3;
  font: 600 13px/1.2 "Space Mono", monospace;
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 6;
  max-width: calc(100vw - 32px);
  text-align: center;
}
#rearWarning.close {
  border-color: #ff5c69;
  color: #ffd9dc;
  box-shadow: 0 0 24px #ff5c6977, inset 0 -40px 40px -30px #ff5c6955;
  animation: rearPulse 0.45s ease-in-out infinite alternate;
}
@keyframes rearPulse {
  to { opacity: 0.55; }
}

#threatArrows { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
.threat-arrow {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #ff6b74; font: 700 11px/1 "Space Mono", monospace; letter-spacing: 0.06em;
  text-shadow: 0 0 8px #ff2d3b;
}
.threat-arrow i { font-style: normal; font-size: 26px; display: block; }
.threat-arrow span { background: #2a070bcc; border: 1px solid #ff5c6988; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.threat-arrow.urgent { color: #fff; animation: rearPulse 0.3s ease-in-out infinite alternate; }
.threat-arrow.urgent span { background: #b3121fdd; border-color: #ff8a92; }
@media (max-width: 600px) { .threat-arrow span { font-size: 9px; } }

#crosshair { position: fixed; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); pointer-events: none; z-index: 5; }
#crosshair::after { content: ""; position: absolute; left: 11px; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #000; }
#crosshair i { position: absolute; background: #ffffffdd; box-shadow: 0 0 3px #000a; }
#crosshair i:nth-child(1), #crosshair i:nth-child(2) { width: 2px; height: 7px; left: 12px; }
#crosshair i:nth-child(1) { top: 0; }
#crosshair i:nth-child(2) { bottom: 0; }
#crosshair i:nth-child(3), #crosshair i:nth-child(4) { width: 7px; height: 2px; top: 12px; }
#crosshair i:nth-child(3) { left: 0; }
#crosshair i:nth-child(4) { right: 0; }
#aimHint { position: fixed; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); padding: 6px 12px; border-radius: 4px; background: #050912cc; color: #e4c68c; font: 12px "Space Mono", monospace; letter-spacing: 0.06em; pointer-events: none; z-index: 5; }

#hitFlash { position: fixed; inset: 0; pointer-events: none; z-index: 7; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 45%, #ff1e2e88 100%); }
#hitFlash.on { animation: hitFlash 0.6s ease-out; }
@keyframes hitFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* In-flight docking readout (replaces the old full-screen alignment panel). */
#dockUI {
  position: fixed; top: 92px; left: 50%; right: auto; bottom: auto;
  transform: translateX(-50%); width: auto; max-width: calc(100vw - 32px);
  padding: 10px 14px; margin: 0; border-radius: 6px;
  background: #050c14b8; border: 1px solid #e4c68c55; backdrop-filter: blur(4px);
  font: 11px/1.4 "Space Mono", monospace; color: #cfe0ea; text-align: center; z-index: 6;
}
#dockUI.aligned { border-color: #63e6b8aa; }
#dockUI .dock-label { font-size: 10px; letter-spacing: 0.14em; color: #e4c68c; margin-bottom: 6px; }
#dockUI .dock-row { display: flex; align-items: center; gap: 14px; justify-content: center; }
#dockUI dl { display: grid; grid-template-columns: auto auto; gap: 2px 10px; margin: 0; text-align: left; }
#dockUI dt { color: #7f99ab; letter-spacing: 0.1em; }
#dockUI dd { margin: 0; color: #fff; }
#dockUI dd.good { color: #63e6b8; }
#dockUI dd.bad { color: #ff7a82; }
#dockUI strong { display: block; margin-top: 6px; letter-spacing: 0.12em; color: #e4c68c; }
#dockUI.aligned strong { color: #63e6b8; }
.dock-scope { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 1px solid #7993a566;
  background: radial-gradient(circle, #1a3342aa, #050c1488); }
.dock-scope::before, .dock-scope::after { content: ""; position: absolute; background: #7993a544; }
.dock-scope::before { left: 50%; top: 4px; bottom: 4px; width: 1px; }
.dock-scope::after { top: 50%; left: 4px; right: 4px; height: 1px; }
.dock-ring { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; border: 2px solid #63e6b8; }
#dockUI #probe { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%;
  background: #e4c68c; box-shadow: 0 0 6px #e4c68c; font-size: 0; }
@media (max-width: 600px) { #dockUI { top: 70px; } .dock-scope { width: 60px; height: 60px; } }
#dockUI { left: auto; right: 16px; transform: none; top: 120px; }
@media (max-width: 600px) { #dockUI { right: 8px; top: 96px; } }

#networkHUD { position: fixed; top: 116px; right: 16px; width: 290px; max-width: calc(100vw - 32px); z-index: 6;
  padding: 10px 12px; border-radius: 6px; background: #050c14c4; border: 1px solid #e4c68c44; backdrop-filter: blur(4px);
  font: 11px/1.35 "Space Mono", monospace; color: #cfe0ea; }
#networkHUD .net-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
#networkHUD .net-head strong { color: #e4c68c; letter-spacing: 0.08em; font-size: 11px; }
#networkHUD .net-head button { font: 10px "Space Mono", monospace; padding: 4px 8px; background: #e4c68c; color: #050912; border: 0; border-radius: 3px; cursor: pointer; }
.sat-row { display: flex; gap: 4px; margin-bottom: 4px; }
.sat-row button { font: 11px "Space Mono", monospace; color: #e8eef2; background: #13222ecc; border: 1px solid #7993a544; border-radius: 3px; cursor: pointer; }
.sat-row .sat-build { flex: 1; text-align: left; padding: 5px 7px; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
.sat-row .sat-build b { color: #e4c68c; }
.sat-row .sat-build span { color: #8fb0c2; margin-left: auto; }
.sat-row .sat-build em { flex-basis: 100%; font-style: normal; color: #63e6b8; font-size: 10px; }
.sat-row .sat-up { width: 30px; }
.sat-row button:disabled { opacity: 0.42; cursor: default; }
.sat-row button:not(:disabled):hover { border-color: #e4c68c; }
#netSummary { display: block; margin-top: 6px; color: #8fb0c2; font-size: 10px; letter-spacing: 0.04em; }
@media (max-width: 700px) { #networkHUD { top: auto; bottom: 120px; right: 8px; width: 240px; } }
/* Mars layout: chapter goals move to the left column so the network panel owns the right. */
#frontierHUD { right: auto; left: 32px; bottom: auto; top: 280px; width: 220px; padding: 12px; }
@media (max-height: 760px) { #frontierHUD { display: none; } }
@media (max-width: 700px) { #frontierHUD { display: none; } }
#aimHint { top: auto; bottom: 26%; }

/* ---- Declutter: one quiet column of instruments; detail on demand ---- */
#combatHUD #killCount, #combatHUD #distancePoints, #combatHUD #equipment { display: none; }
#frontierHUD small { display: none; }
#networkHUD { width: 250px; padding: 10px 12px; }
#networkHUD #satButtons, #networkHUD #netSummary { display: none; }
#networkHUD.open #satButtons, #networkHUD.open #netSummary { display: block; }
#networkHUD.open .net-hint { display: none; }
#networkHUD .net-head { margin-bottom: 0; }
#networkHUD.open .net-head { margin-bottom: 8px; }
.net-hint { margin-top: 6px; color: #6f8899; font: 10px "Space Mono", monospace; letter-spacing: 0.18em; }
.sat-row .sat-build em.dim { color: #6f8899; }
.strike { display: block; width: 100%; margin-top: 8px; padding: 6px 8px; font: 10px "Space Mono", monospace; letter-spacing: 0.12em;
  color: #9fb3c0; background: transparent; border: 1px solid #ffffff22; border-radius: 3px; text-align: left; }
.strike.armed { color: #fff; border-color: #ff9a5a; background: linear-gradient(90deg, #ff6a2a33, transparent); cursor: pointer;
  animation: armed 1.4s ease-in-out infinite; }
.strike b { color: #ffb37a; }
@keyframes armed { 50% { border-color: #ff9a5a55; } }
#mission { letter-spacing: 0.08em; }

/* ---- Title: black hole backdrop and cinematic type ---- */
#titleBG { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; background: #000; }
.intro { z-index: 3; }
.intro:before { display: none; }
.intro .eyebrow { letter-spacing: 0.42em; font-size: 10px; color: #d9c7a2; opacity: 0.85; }
.intro h1 { font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif; font-weight: 200; letter-spacing: 0.01em;
  text-transform: none; color: #f2efe8; }
.intro p { color: #c7cdd0; font-weight: 300; letter-spacing: 0.02em; }
.intro small { letter-spacing: 0.3em; color: #8b9aa3; }
.intro .primary { background: transparent; color: #f2efe8; border: 1px solid #f2efe8aa; padding: 14px 44px;
  letter-spacing: 0.4em; font-weight: 400; text-transform: uppercase; transition: background .3s, color .3s; }
.intro .primary:hover { background: #f2efe8; color: #05070a; }
.intro .secondary { background: transparent; border: 0; color: #9aa8b0; padding: 10px 0; letter-spacing: 0.25em;
  font: 10px "Space Mono", monospace; text-transform: uppercase; }
.intro .secondary:hover { color: #f2efe8; }

body[data-stage="ready"] .flight-hud, body[data-stage="ready"] .phase { display: none; }

/* ---- Build wheel ---- */
#buildWheel { position: fixed; left: 50%; top: 50%; width: 0; height: 0; z-index: 9; pointer-events: none; }
#buildWheel::before { content: ""; position: absolute; left: -210px; top: -210px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, #02060bdd 30%, #02060b99 62%, transparent 72%); }
.wheel-core { position: absolute; left: -80px; top: -34px; width: 160px; text-align: center; font: 11px "Space Mono", monospace; color: #9fb3c0; }
.wheel-core strong { display: block; color: #f2efe8; letter-spacing: 0.18em; font-size: 11px; margin-bottom: 4px; text-transform: uppercase; }
.wheel-item { position: absolute; left: -62px; top: -26px; width: 124px; padding: 7px 6px; text-align: center; border-radius: 4px;
  border: 1px solid #ffffff1c; background: #07111acc; font: 10px "Space Mono", monospace; color: #cfe0ea; transition: transform .12s, border-color .12s, background .12s; }
.wheel-item b { display: block; font-weight: 400; color: #f2efe8; letter-spacing: 0.04em; }
.wheel-item span { display: block; margin-top: 3px; color: #8fa6b4; font-size: 9px; }
.wheel-item em { position: absolute; top: -7px; right: -7px; min-width: 16px; padding: 1px 4px; border-radius: 9px; background: #e4c68c; color: #05070a; font: 9px "Space Mono", monospace; font-style: normal; }
.wheel-item.pick { border-color: #e4c68c; background: #1b1810ee; }
.wheel-item.pick b { color: #e4c68c; }
.wheel-item.off { opacity: 0.45; }

/* ---- Menu, wordmark, threat markers: clean typographic system ---- */
.mark { width: 18px; height: 18px; fill: #e4c68c; vertical-align: -3px; margin-right: 10px; }
#menu h2 { font-weight: 200; letter-spacing: 0.01em; }
#menu .operations summary { letter-spacing: 0.22em; text-transform: uppercase; font: 11px "Space Mono", monospace; color: #e4c68c; }
#menu .operations button { display: flex; justify-content: space-between; align-items: baseline; width: 100%; text-align: left; }
#menu .operations button span { color: #7f95a3; font: 10px "Space Mono", monospace; }
#menu .row { display: flex; justify-content: space-between; font: 11px "Space Mono", monospace; color: #9fb3c0; letter-spacing: 0.08em; }
.controls-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 0; font: 11px/1.45 "Space Mono", monospace; }
.controls-list dt { color: #e4c68c; }
.controls-list dd { margin: 0; color: #b9c7cf; }
.threat-arrow i { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 16px solid currentColor; display: block; font-size: 0; }
#rearWarning { letter-spacing: 0.14em; }
body[data-menu="open"] .phase { display: none; }

/* ---- Quiet HUD: thin lines at the edges, nothing boxed in the middle ---- */
#colonyHUD { left: 24px; bottom: 74px; width: auto; padding: 0; background: none; border: 0; display: flex; gap: 18px;
  font: 10px "Space Mono", monospace; letter-spacing: 0.14em; color: #8fa6b4; }
#colonyHUD[hidden] { display: none; }
#colonyHUD strong { color: #e8eef2; font-weight: 400; margin-left: 6px; }
#colonyHUD span { display: inline; }
#networkHUD { top: auto; bottom: 70px; right: 24px; width: auto; padding: 0; background: none; border: 0; backdrop-filter: none; }
#networkHUD .net-head { gap: 14px; }
#networkHUD .net-head strong { font-weight: 400; color: #e8eef2; letter-spacing: 0.16em; font-size: 10px; }
#networkHUD .net-head button { background: none; color: #e4c68c; border: 1px solid #e4c68c66; padding: 3px 8px; letter-spacing: 0.14em; }
#networkHUD .net-hint { display: none; }
#networkHUD .strike { margin-top: 6px; }
#radarPanel { transform: scale(0.78); transform-origin: bottom right; opacity: 0.85; }
#radarPanel #threat { font-size: 10px; }
body[data-hints="off"] #controls { opacity: 0; transition: opacity 1.2s; }
#controls { transition: opacity 0.4s; }
.flight-hud { background: none !important; box-shadow: none !important; }
#mission { font-size: 12px; opacity: 0.9; }
#aimHint { background: none; font-size: 10px; letter-spacing: 0.3em; color: #8fa6b4; }
.phase { opacity: 0.7; }
body[data-stage="defense"] footer .route { visibility: hidden; }

/* ---- Type system: DM Sans for words, Space Mono for instruments ---- */
body, button, input, select, h1, h2, h3, p { font-family: "DM Sans", system-ui, sans-serif; }
.intro h1 { font-family: "DM Sans", system-ui, sans-serif; font-weight: 400; letter-spacing: -0.02em; }
#menu h2, #paused h2, #ending h1 { font-family: "DM Sans", system-ui, sans-serif; font-weight: 400; letter-spacing: -0.01em; }

/* ---- Level card ---- */
#levelCard { position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  z-index: 8; opacity: 0; transition: opacity 0.9s ease; }
#levelCard.on { opacity: 1; }
#levelCard small { display: block; font: 11px "Space Mono", monospace; letter-spacing: 0.5em; color: #e4c68c; margin-bottom: 10px; }
#levelCard strong { display: block; font: 400 clamp(28px, 4vw, 46px) "DM Sans", sans-serif; letter-spacing: -0.01em; color: #f2efe8;
  text-shadow: 0 2px 24px #000c; }

/* Docking: readout tucked bottom-right, away from the station and the level card. */
#dockUI { top: auto; bottom: 64px; right: 24px; }
body[data-stage="docking"] footer .route { visibility: hidden; }

/* Before the game script runs, show only black and the title copy. */
html, body { background: #000; }
body:not([data-stage]) #pixel, body:not([data-stage]) .flight-hud, body:not([data-stage]) footer, body:not([data-stage]) .phase { display: none; }

.website-return { display:block; margin:12px 0; padding:12px; color:#e4c68c; text-align:center; font:12px monospace; }
