@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-0.ttf) format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-1.ttf) format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-2.ttf) format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/font-3.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-4.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-5.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-6.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-7.ttf) format("truetype");
}

/* Paper Orbit: quiet instruments, flat color and a little depth. */
:root {
  color-scheme: dark;
  --bg: #3e506b;
  --paper: #34465f;
  --ink: #f7f2e6;
  --mint: #acd4e7;
  --amber: #f7b53c;
  --dim: #d2dbe4;
  --line: #f7f2e62d;
  --coral: #ffaf98;
  --panel: #3e506bf5;
  --hover: #516580;
  --accent: #acd4e7;
  --warning: #ffd27a;
  --primary-hover: #d2e5ee;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d99423;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#vignette {
  display: none;
}
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  z-index: 3;
}
.wordmark {
  display: block;
  flex: 0 0 auto;
  width: 256px;
  color: var(--ink);
  text-decoration: none;
  line-height: 0;
  border-radius: 5px;
}
.brand-lockup {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.brand-type,
.brand-hull {
  fill: currentColor;
}
.brand-haul,
.brand-pods {
  fill: var(--accent);
}
.brand-canopy {
  fill: var(--paper);
}
.brand-ore {
  fill: var(--amber);
}
.brand-orbit-back,
.brand-orbit-front,
.brand-tools,
.brand-star,
.brand-rule {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-orbit-back {
  stroke-width: 1.5;
  opacity: 0.35;
}
.brand-orbit-front {
  stroke-width: 2;
}
.brand-tools {
  stroke-width: 2.5;
}
.brand-star {
  stroke-width: 1.4;
  opacity: 0.65;
}
.brand-rule {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.5;
}
.brand-studio {
  fill: var(--dim);
  font-family: "DM Sans", sans-serif;
  font-size: 8.8px;
  font-weight: 600;
  letter-spacing: 1.8px;
}
.brand-emblem {
  transform-origin: 32px 32px;
  transition: transform 200ms ease;
}
.wordmark:hover .brand-emblem,
.wordmark:focus-visible .brand-emblem {
  transform: rotate(-6deg);
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.icon-btn {
  border: 0;
  padding: 6px 0;
  background: none;
  font-size: 23px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}
.mission-top {
  text-align: center;
  line-height: 1.6;
}
.mission-top strong {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  line-height: 1.6;
}
.start-screen {
  position: fixed;
  inset: 86px 0 0;
  pointer-events: none;
}
.start-copy {
  position: absolute;
  top: 50%;
  left: 7%;
  transform: translateY(-53%);
  pointer-events: auto;
}
.start-copy > .eyebrow {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 1.2px;
}
.live-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
}
h1 {
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -4px;
  margin: 22px 0 20px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.start-copy > p {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 25px;
}
.button {
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--hover);
}
.button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.button.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.button.primary span {
  margin-left: 35px;
  color: var(--amber);
}
.button.small {
  padding: 9px 12px;
  font-size: 11px;
}
.text-button {
  display: block;
  background: none;
  border: 0;
  padding: 10px 0;
  margin-top: 3px;
  font-size: 12px;
  text-align: left;
}
.text-button:hover {
  color: var(--accent);
}
.text-button span {
  color: var(--dim);
  font-size: 11px;
}
#landing-run {
  margin-top: -2px;
}
.career {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--dim);
  margin-top: 16px;
}
.launch-detail {
  margin-top: 24px;
  padding-top: 15px;
  display: flex;
  gap: 34px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}
.scene-caption {
  position: absolute;
  left: 64%;
  bottom: 12%;
  display: flex;
  gap: 15px;
  align-items: center;
}
.caption-line {
  width: 45px;
  height: 1px;
  background: var(--ink);
}
.scene-caption p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 11px;
}
.start-footer {
  position: absolute;
  bottom: 22px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 1.6px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
}
.clock-panel {
  position: fixed;
  top: 111px;
  right: 28px;
  width: 168px;
  border: 0;
  text-align: right;
}
.deadline {
  font-size: 43px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.clock-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 7px;
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 1px;
}
.clock-row b {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.time-ratio {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
}
.time-ratio b {
  font-size: 11px;
  color: var(--ink);
  margin-left: 12px;
}
.cargo-panel {
  position: fixed;
  left: 28px;
  top: 111px;
  width: 219px;
  border: 0;
}
.cargo-panel .eyebrow {
  display: flex;
  justify-content: space-between;
  letter-spacing: 1px;
}
#cargo-cells {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 12px 0;
}
.cargo-cell {
  display: block;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.cargo-cell.filled {
  background: var(--amber);
  border-color: #d99423;
  box-shadow: 1px 2px 0 #d9942330;
}
.cargo-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.cargo-total > span {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.cargo-total small {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.5px;
}
.resource-list {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.7;
}
.resource-list div {
  display: flex;
  justify-content: space-between;
}
.resource-list b {
  font-weight: 500;
}
#target-card {
  position: fixed;
  bottom: 125px;
  left: 28px;
  width: 224px;
  padding: 14px 16px;
}
#target-card h2 {
  margin: 6px 0;
  font-size: 17px;
  letter-spacing: -0.5px;
}
#target-card p {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--dim);
}
#target-type {
  font-size: 8px;
  letter-spacing: 0.7px;
}
#target-action {
  width: 100%;
}
#toast {
  position: fixed;
  top: 107px;
  left: 50%;
  transform: translate(-50%, -8px);
  max-width: min(460px, calc(100% - 510px));
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
  z-index: 4;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#flight-hint {
  position: fixed;
  bottom: 117px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--dim);
  max-width: 48%;
  text-align: center;
  padding: 5px 12px;
  border-radius: 15px;
  background: var(--panel);
}
.hint-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
}
#boost-meter {
  position: fixed;
  right: 32px;
  bottom: 132px;
  width: 122px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: right;
}
#boost-meter i {
  height: 3px;
  display: block;
  margin-top: 7px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
#boost-meter b {
  display: block;
  height: 100%;
  background: #4685b0;
  width: 100%;
}
#flight-deck {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 99px;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.telemetry {
  display: flex;
  gap: 25px;
}
.telemetry > div {
  min-width: 63px;
}
.telemetry span {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--dim);
}
.telemetry strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.telemetry strong small {
  font-size: 10px;
  font-weight: 400;
  margin-left: 4px;
}
.telemetry i {
  display: block;
  height: 2px;
  background: var(--line);
  margin-top: 6px;
}
.telemetry i b {
  display: block;
  height: 100%;
  background: var(--ink);
}
.deck-actions {
  display: flex;
  gap: 26px;
}
.deck-button {
  border: 0;
  background: none;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.deck-button:hover,
.deck-button.active {
  color: var(--accent);
}
.deck-button.active kbd {
  background: #6aaed233;
  border-color: var(--accent);
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 22px;
  padding: 3px 5px;
  font:
    600 10px "DM Sans",
    sans-serif;
}
.deck-button kbd {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border-color: var(--ink);
  font-size: 12px;
}
.deck-button > span {
  font-size: 11px;
  font-weight: 600;
}
.deck-button small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  margin-top: 5px;
  color: var(--dim);
}
.danger {
  color: var(--coral) !important;
}
.warning {
  color: var(--warning) !important;
}
dialog {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 14px;
  padding: 0;
  width: min(850px, calc(100% - 40px));
  max-height: calc(100% - 44px);
  box-shadow: 12px 14px 0 #18385119;
}
dialog::backdrop {
  background: #18385155;
}
#modal-content {
  padding: 32px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.modal-head h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 10px 0 0;
}
.close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}
.close:hover {
  background: var(--hover);
}
.modal-copy {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guide-grid > div {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.8;
}
.guide-grid strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 8px;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.chart-wrap {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 235px;
}
.chart-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: 15px;
}
.chart-list button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 5px;
  font-size: 11px;
}
.chart-list button:hover,
.chart-list button.selected {
  border-color: var(--ink);
  background: #6aaed222;
}
.chart-list small {
  display: block;
  margin-top: 4px;
  font-size: 6px;
  letter-spacing: 0.3px;
  color: var(--dim);
}
.chart-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}
.chart-details p {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}
.chart-details button {
  flex-shrink: 0;
}
.report-number {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -2px;
}
.rank {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--warning);
  margin-bottom: 8px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.report-grid span {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
}
.report-grid b {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
}
.signal-list {
  display: grid;
  gap: 10px;
}
.signal-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}
.signal-item strong {
  display: block;
  font-size: 14px;
}
.signal-item span {
  display: block;
  font-size: 11px;
  color: var(--dim);
}
.signal-item small {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 10px;
}
#touch-controls {
  display: none;
}
.entry-title {
  position: fixed;
  left: 28px;
  top: 100px;
  padding: 12px;
  border-radius: 7px;
  background: var(--panel);
}
.entry-title h2 {
  font-size: 25px;
  margin: 7px 0 10px;
  letter-spacing: -1px;
}
#entry-score {
  font-size: 10px;
  color: var(--dim);
}
#entry-gates {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
#entry-gates i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}
#entry-gates i.passed {
  background: var(--ink);
}
#entry-gates i.missed {
  border-color: var(--coral);
  background: #ef806866;
}
.entry-instruments {
  position: fixed;
  top: 115px;
  right: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 25px;
  border: 0;
}
.entry-instruments span {
  display: block;
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 1px;
}
.entry-instruments b {
  display: block;
  font-size: 18px;
  margin-top: 5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.entry-guide {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--dim);
  padding: 8px 15px;
  border-radius: 15px;
  background: var(--panel);
  text-align: center;
  white-space: nowrap;
}
#abort-entry {
  position: fixed;
  left: 38px;
  bottom: 44px;
}
#retro-toggle {
  position: fixed;
  bottom: 57px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 170px;
  background: var(--paper);
}
#retro-toggle[aria-pressed="true"] {
  border-color: var(--coral);
  background: #f6d6c6;
  color: #893a2b;
}
@media (max-width: 1080px) {
  .deck-actions {
    gap: 16px;
  }
  .telemetry {
    gap: 15px;
  }
  .deck-button {
    gap: 7px;
  }
  .deck-button > span {
    font-size: 10px;
  }
  #flight-deck {
    padding: 20px 25px;
  }
  .mission-top {
    display: none;
  }
  h1 {
    font-size: 64px;
  }
}
@media (max-height: 760px) and (min-width: 701px) {
  .start-copy {
    transform: translateY(-51%);
  }
  h1 {
    font-size: 60px;
    margin: 14px 0;
    line-height: 1.02;
  }
  .start-copy > p {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .launch-detail {
    margin-top: 15px;
    padding-top: 10px;
  }
  .career {
    margin-top: 10px;
  }
}
@media (max-width: 700px) {
  #topbar {
    height: 68px;
    padding: 14px 18px;
    gap: 12px;
  }
  .wordmark {
    width: clamp(144px, 49.6vw, 186px);
  }
  .top-actions {
    gap: 17px;
  }
  .icon-btn {
    font-size: 22px;
    min-width: 24px;
  }
  .icon-btn span {
    display: none;
  }
  .start-screen {
    inset: 68px 0 0;
  }
  .start-copy {
    top: 11%;
    left: 24px;
    transform: none;
  }
  .start-copy > .eyebrow {
    font-size: 7px;
    letter-spacing: 0.7px;
    max-width: 250px;
  }
  h1 {
    font-size: clamp(47px, 13vw, 64px);
    letter-spacing: -2.5px;
    margin: 25px 0 22px;
  }
  .start-copy > p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .start-copy .button {
    font-size: 12px;
    padding: 14px 18px;
  }
  .text-button {
    padding: 12px 0;
  }
  .text-button span {
    font-size: 10px;
  }
  .career {
    font-size: 7px;
    margin-top: 24px;
  }
  .launch-detail {
    gap: 22px;
    font-size: 7px;
    max-width: 290px;
  }
  .scene-caption {
    display: none;
  }
  .start-footer {
    left: 24px;
    right: 24px;
    bottom: 20px;
    font-size: 6px;
    letter-spacing: 1px;
  }
  .panel {
    padding: 11px;
  }
  .cargo-panel {
    left: 7px;
    top: 82px;
    width: 187px;
  }
  .clock-panel {
    right: 7px;
    top: 82px;
    width: 132px;
  }
  .cargo-panel .eyebrow {
    font-size: 8px;
  }
  #cargo-cells {
    gap: 3px;
    margin: 10px 0;
  }
  .cargo-cell {
    height: 10px;
  }
  .cargo-total {
    gap: 10px;
  }
  .cargo-total > span {
    font-size: 18px;
  }
  .cargo-total small {
    font-size: 6px;
  }
  .resource-list {
    font-size: 9px;
  }
  .deadline {
    font-size: 34px;
  }
  .clock-row {
    margin-top: 5px;
    font-size: 7px;
    gap: 8px;
  }
  .clock-row b {
    font-size: 10px;
  }
  .time-ratio {
    font-size: 7px;
    padding-top: 7px;
    margin-top: 7px;
  }
  .time-ratio b {
    font-size: 10px;
    margin-left: 8px;
  }
  #target-card {
    bottom: 238px;
    left: 16px;
    width: 174px;
    padding: 10px 12px;
  }
  #target-type {
    font-size: 7px;
  }
  #target-card h2 {
    font-size: 14px;
    margin: 4px 0;
  }
  #target-card p {
    font-size: 9px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  #target-action {
    font-size: 9px;
    padding: 7px 8px;
  }
  #toast {
    top: 306px;
    max-width: calc(100% - 38px);
    width: max-content;
    padding: 8px 13px;
    font-size: 10px;
  }
  #flight-hint {
    display: none;
  }
  #boost-meter {
    right: 18px;
    bottom: 223px;
    width: 105px;
    font-size: 7px;
  }
  #flight-deck {
    height: 129px;
    padding: 12px 18px 13px;
    flex-direction: column;
    gap: 12px;
  }
  .telemetry {
    width: 100%;
    justify-content: space-between;
    gap: 22px;
  }
  .telemetry > div {
    min-width: 62px;
  }
  .telemetry span {
    font-size: 7px;
  }
  .telemetry strong {
    font-size: 18px;
  }
  .telemetry strong small {
    font-size: 9px;
  }
  .telemetry i {
    display: none;
  }
  .deck-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .deck-button {
    min-height: 39px;
    gap: 6px;
  }
  .deck-button kbd {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .deck-button > span {
    font-size: 8px;
    max-width: 45px;
  }
  .deck-button small {
    display: none;
  }
  #touch-controls {
    display: flex;
    position: fixed;
    bottom: 149px;
    left: 16px;
    right: 16px;
    justify-content: space-between;
    gap: 8px;
  }
  .touch-steer {
    display: flex;
    gap: 7px;
  }
  #touch-controls button {
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--panel);
    min-width: 46px;
    height: 46px;
    font-size: 18px;
    touch-action: none;
    user-select: none;
  }
  #touch-controls > button {
    font-size: 9px;
    font-weight: 700;
    min-width: 52px;
    border-radius: 9px;
  }
  #touch-controls button:active {
    background: #bcd9e6;
  }
  dialog {
    width: calc(100% - 28px);
    max-height: calc(100% - 28px);
    border-radius: 10px;
    box-shadow: 6px 8px 0 #18385119;
  }
  #modal-content {
    padding: 22px;
  }
  .modal-head {
    margin-bottom: 18px;
    gap: 12px;
  }
  .modal-head h2 {
    font-size: 24px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  .chart-wrap canvas {
    height: 175px;
  }
  .chart-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .chart-list button {
    font-size: 10px;
    padding: 9px 5px;
  }
  .chart-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .report-number {
    font-size: 38px;
  }
  .report-grid {
    gap: 16px 10px;
  }
  .report-grid span {
    font-size: 7px;
  }
  .report-grid b {
    font-size: 11px;
  }
  .signal-item {
    padding: 12px;
    gap: 12px;
  }
  .signal-item strong {
    font-size: 12px;
  }
  .signal-item span {
    font-size: 10px;
  }
  .entry-title {
    left: 8px;
    top: 77px;
    width: calc(100% - 16px);
    padding: 10px;
  }
  .entry-title .eyebrow {
    font-size: 7px;
  }
  .entry-title h2 {
    font-size: 19px;
    margin: 5px 0 8px;
  }
  #entry-score {
    font-size: 8px;
  }
  #entry-gates {
    gap: 6px;
    margin-top: 9px;
  }
  #entry-gates i {
    width: 10px;
    height: 10px;
  }
  .entry-instruments {
    top: 178px;
    left: 18px;
    right: 18px;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .entry-instruments span {
    font-size: 7px;
  }
  .entry-instruments b {
    font-size: 13px;
  }
  #abort-entry {
    top: 87px;
    right: 18px;
    left: auto;
    bottom: auto;
    font-size: 8px;
    padding: 8px;
  }
  #retro-toggle {
    bottom: 111px;
    min-width: 164px;
  }
  .entry-guide {
    bottom: 13px;
    width: calc(100% - 30px);
    white-space: normal;
    font-size: 9px;
    line-height: 1.5;
  }
  body.entry #hud[hidden] {
    display: block !important;
  }
  body.entry #hud > *:not(#touch-controls):not(#toast) {
    display: none;
  }
  body.entry #touch-controls {
    bottom: 53px;
  }
  body.entry .touch-boost {
    display: none;
  }
  body.entry #toast {
    top: 237px;
  }
}
@media (max-height: 740px) and (max-width: 700px) {
  .start-copy {
    top: 5%;
  }
  h1 {
    font-size: 45px;
    margin: 17px 0 14px;
  }
  .start-copy > p {
    margin-bottom: 16px;
  }
  .career {
    margin-top: 10px;
  }
  .launch-detail {
    margin-top: 14px;
    padding-top: 10px;
  }
  #target-card {
    bottom: 222px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .start-footer {
    background: var(--panel);
    padding: 6px 0;
  }
}
@media (max-height: 740px) and (max-width: 700px) {
  .career,
  .launch-detail {
    display: none;
  }
}

@media (max-width: 700px) {
  #toast {
    top: 211px;
    left: auto;
    right: 18px;
    max-width: 166px;
    width: 166px;
    transform: translateY(-8px);
  }
  #toast.visible {
    transform: translateY(0);
  }
  body.entry #toast {
    top: 237px;
    left: 50%;
    right: auto;
    max-width: calc(100% - 38px);
    width: calc(100% - 38px);
    transform: translate(-50%, 0);
  }
}
@media (max-height: 740px) and (max-width: 700px) {
  #target-card p {
    display: none;
  }
  #target-card h2 {
    margin-bottom: 9px;
  }
}

/* A lighter surface map keeps the landing corridor easy to read. */
body.entry {
  --bg: #f7f2e6;
  --paper: #fff9ed;
  --ink: #183851;
  --mint: #2d6687;
  --dim: #647888;
  --line: #18385130;
  --coral: #b34b39;
  --panel: #f7f2e6f5;
  --hover: #e7dfce;
  --accent: #4685b0;
  --warning: #96630e;
  --primary-hover: #bcd9e6;
  color-scheme: light;
}
.station-overview {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.station-ship {
  width: 98px;
  height: 104px;
  flex-shrink: 0;
  background: #34465f;
  border-radius: 16px;
}
.station-ship svg {
  width: 100%;
  height: 100%;
}
.station-stats {
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0;
}
.station-stats span {
  margin: 0 4px;
  color: var(--dim);
}
.station-note {
  color: var(--dim);
  font-size: 11px;
  margin: 0;
}
.station-wallet {
  text-align: right;
  margin-left: auto;
  white-space: nowrap;
}
.station-wallet span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--dim);
}
.station-wallet strong {
  display: block;
  color: #ffd27a;
  font-size: 26px;
  letter-spacing: -1px;
  margin: 5px 0;
}
.station-wallet small {
  color: var(--dim);
  font-size: 10px;
}
.station-feedback {
  font-size: 12px;
  color: #bfe2ee;
  min-height: 1.6em;
  line-height: 1.6;
}
.upgrade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.upgrade-card {
  background: #34465f;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  min-width: 0;
}
.upgrade-heading {
  display: flex;
  gap: 10px;
  align-items: center;
}
.upgrade-heading h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.upgrade-heading span:not(.upgrade-icon) {
  font-size: 10px;
  color: var(--dim);
}
.upgrade-icon {
  font-size: 27px;
  width: 30px;
  color: #f7b53c;
}
.upgrade-levels {
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.upgrade-levels i {
  width: 5px;
  height: 16px;
  border-radius: 2px;
  background: #53667e;
}
.upgrade-levels i.installed {
  background: #f7b53c;
}
.upgrade-card p {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}
.upgrade-change {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  margin: 16px 0;
}
.upgrade-change span {
  color: var(--dim);
}
.upgrade-change strong {
  color: #bfe2ee;
  font-weight: 500;
}
.upgrade-buy {
  width: 100%;
  border-color: var(--line);
}
.upgrade-buy:disabled {
  opacity: 0.72;
}
.upgrade-buy:not(:disabled) {
  background: #f7b53c;
  border-color: #f7b53c;
  color: #183851;
}
.upgrade-buy:not(:disabled):hover {
  background: #ffd27a;
}
.route-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 28px 0 16px;
}
.route-heading h3 {
  font-size: 18px;
  margin: 4px 0;
  letter-spacing: -0.5px;
}
.route-heading label {
  font-size: 11px;
  color: var(--dim);
}
.route-heading select {
  background: #34465f;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 7px;
  margin-left: 5px;
  font: inherit;
}
.station-worlds {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.station-worlds button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  min-width: 0;
  text-align: left;
}
.station-worlds button.selected {
  border-color: #f7b53c;
  background: #f7b53c12;
}
.station-worlds button:hover {
  background: #6aaed222;
}
.station-worlds i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--world);
  box-shadow: inset -4px -2px 0 #18385130;
  margin-bottom: 9px;
}
.station-worlds strong {
  font-size: 12px;
}
.station-worlds small {
  font-size: 7px;
  line-height: 1.7;
  color: var(--dim);
  margin-top: 6px;
}
.contract-brief {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: #34465f;
  border-radius: 10px;
  padding: 18px;
  margin-top: 15px;
}
.contract-brief strong {
  display: block;
  font-size: 17px;
  margin-top: 6px;
}
.contract-brief p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--dim);
  margin: 8px 0 0;
}
.contract-brief .button {
  flex-shrink: 0;
}
.station-footnote {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.8;
  margin: 16px 0 0;
}
.unlock-banner {
  border: 1px solid #f7b53c88;
  background: #f7b53c12;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
}
.unlock-banner span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #ffd27a;
}
.unlock-banner strong {
  display: block;
  font-size: 24px;
  margin: 8px 0;
}
.unlock-banner p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  color: var(--dim);
}
@media (max-width: 700px) {
  .station-overview {
    flex-wrap: wrap;
    gap: 12px;
  }
  .station-ship {
    width: 66px;
    height: 76px;
  }
  .station-wallet {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    text-align: left;
  }
  .station-wallet strong {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 23px;
  }
  .station-wallet small {
    margin-left: auto;
  }
  .station-stats {
    font-size: 11px;
  }
  .station-note {
    font-size: 9px;
  }
  .upgrade-grid {
    grid-template-columns: 1fr;
  }
  .upgrade-card {
    padding: 15px;
  }
  .route-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .station-worlds {
    grid-template-columns: repeat(2, 1fr);
  }
  .station-worlds small {
    font-size: 8px;
  }
  .contract-brief {
    flex-direction: column;
    align-items: stretch;
  }
  .start-copy > p {
    margin-bottom: 14px;
  }
  .start-copy h1 {
    margin-top: 14px;
    margin-bottom: 14px;
  }
  .career {
    margin-top: 15px;
  }
}
.station-return,
.departure-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-bottom: 20px;
  border-radius: 12px;
}
.station-return {
  background: #f7b53c12;
  border: 1px solid #f7b53c88;
}
.station-return strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}
.station-return p,
.station-bottom p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.7;
}
.station-return .button {
  flex-shrink: 0;
}
.departure-control {
  background: #34465f;
  border: 1px solid var(--line);
}
.departure-control label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 7px 0;
}
.departure-control select {
  margin-left: 10px;
  font: inherit;
  padding: 8px 12px;
  border: 1px solid #acd4e7;
  border-radius: 6px;
  color: var(--ink);
  background: var(--bg);
}
.departure-control small {
  color: var(--dim);
  font-size: 10px;
}
.departure-control .button {
  flex-shrink: 0;
}
.station-bottom {
  margin-top: 18px;
}
@media (max-width: 700px) {
  .station-return,
  .departure-control {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 15px;
  }
  .station-bottom .button {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .station-wallet {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    white-space: normal;
  }
  .station-wallet > span {
    grid-column: 1 / -1;
  }
  .station-wallet strong {
    margin: 0;
  }
  .station-wallet small {
    align-self: center;
  }
}

.contract-progress {
  padding: 22px 26px;
  margin: 0 0 20px;
  border: 1px solid #afc2cd55;
  border-radius: 16px;
  background: #223951;
}
.contract-progress.complete {
  border-color: #9be5da88;
}
.contract-progress .eyebrow {
  color: #9be5da;
}
.contract-progress strong {
  display: block;
  font-size: clamp(23px, 4vw, 32px);
  margin: 8px 0 12px;
}
.contract-progress progress {
  display: block;
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #afc2cd33;
  accent-color: #9be5da;
}
.contract-progress progress::-webkit-progress-bar {
  background: #afc2cd33;
}
.contract-progress progress::-webkit-progress-value {
  background: #9be5da;
  border-radius: 9px;
}
.contract-progress progress::-moz-progress-bar {
  background: #9be5da;
}
.contract-progress p {
  font-size: 13px;
  line-height: 1.6;
  color: #d2dbe4;
  margin: 12px 0 0;
}

/* A solar economy: local stores, tangible bases, and a connected freight map. */
.cargo-mode,
.fleet-status {
  width: 100%;
  margin-top: 8px;
  font-size: 10px;
  padding: 9px 7px;
}
.cargo-mode.storing {
  border-color: #9be5da;
  color: #9be5da;
  background: #263f55;
}
.fleet-status {
  border-color: var(--line);
  color: var(--dim);
}
.needs-supplies {
  color: #ffd27a !important;
}
.network-invitation {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #293e57;
  border-radius: 14px;
  margin-bottom: 22px;
  border: 1px solid #9be5da55;
}
.network-invitation strong {
  display: block;
  font-size: 21px;
  margin-top: 5px;
}
.network-invitation p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--dim);
  margin: 7px 0 0;
}
.network-invitation button {
  flex-shrink: 0;
}
.network-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.network-toolbar p {
  color: #9be5da;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.network-toolbar button {
  flex-shrink: 0;
}
.network-overview h3 {
  font-size: 29px;
  letter-spacing: -0.9px;
  margin: 6px 0 9px;
}
.network-overview p {
  color: var(--dim);
  font-size: 12px;
  margin: 0 0 24px;
}
.network-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 14px;
  margin-bottom: 22px;
}
.network-numbers > div {
  border-left: 2px solid #9be5da77;
  padding-left: 14px;
}
.network-numbers strong {
  font-size: 27px;
  display: block;
  font-weight: 500;
}
.network-numbers strong small {
  color: var(--dim);
  font-size: 15px;
}
.network-numbers span {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 6px;
  color: var(--dim);
}
.network-map {
  width: 100%;
  display: block;
  margin-bottom: 18px;
}
.network-worlds {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 0 26px;
}
.network-worlds button {
  background: #34465f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
}
.network-worlds button.selected {
  border-color: #9be5da;
  background: #263f55;
}
.network-worlds strong {
  display: block;
  font-size: 12px;
}
.network-worlds small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.5px;
  color: var(--dim);
  margin-top: 6px;
}
.base-panel,
.trade-panel {
  border: 1px solid var(--line);
  background: #34465f;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.base-header {
  display: flex;
  align-items: center;
  gap: 24px;
}
.base-art {
  width: 142px;
  flex-shrink: 0;
}
.base-header h3 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 5px 0 9px;
}
.base-header p,
.trade-panel p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim);
  margin: 0 0 10px;
}
.base-tier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--dim);
}
.base-tier i {
  width: 6px;
  height: 6px;
  border: 1px solid #9be5da66;
  transform: rotate(45deg);
}
.base-tier i:last-child {
  margin-right: 5px;
}
.base-tier .built {
  background: #9be5da;
}
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 18px;
}
.warehouse-resource {
  padding: 12px 10px;
  border-radius: 9px;
  background: #293e57;
}
.warehouse-resource > span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}
.warehouse-resource i,
.stored-receipt i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.warehouse-resource strong {
  display: block;
  font-size: 23px;
  margin: 9px 0 7px;
}
.warehouse-resource strong small {
  font-size: 11px;
  font-weight: 400;
}
.warehouse-resource > small {
  color: var(--dim);
  font-size: 8px;
  line-height: 1.5;
  display: block;
}
.warehouse-resource .button {
  margin-top: 10px;
  padding: 8px 4px;
  font-size: 9px;
  width: 100%;
}
.base-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 19px;
}
.base-progress span {
  font-size: 9px;
  color: var(--dim);
  white-space: nowrap;
}
.base-progress progress,
.route-operation progress {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 8px;
  background: #9be5da22;
  overflow: hidden;
  accent-color: #9be5da;
}
.base-progress progress::-webkit-progress-bar,
.route-operation progress::-webkit-progress-bar {
  background: #9be5da22;
}
.base-progress progress::-webkit-progress-value,
.route-operation progress::-webkit-progress-value {
  background: #9be5da;
}
.base-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.network-note {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.7;
  margin: 15px 0 0;
}
.trade-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.trade-heading h3 {
  font-size: 21px;
  margin: 5px 0 0;
}
.trade-heading label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 11px;
}
.trade-heading select {
  max-width: 210px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #293e57;
  border-radius: 6px;
  font: inherit;
  padding: 10px;
}
.trade-terms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--dim);
  margin: 12px 0 18px;
}
.network-status {
  font-size: 10px;
  color: #9be5da;
  white-space: nowrap;
}
.route-operation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  background: #293e57;
  padding: 18px;
  margin: 10px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.route-operation strong {
  font-size: 14px;
}
.route-operation .route-status {
  display: block;
  font-size: 10px;
  color: #9be5da;
  margin: 8px 0;
}
.route-operation p {
  font-size: 10px;
  color: var(--dim);
  margin: 0;
  line-height: 1.7;
}
.route-operation button {
  align-self: start;
}
.route-operation progress,
.route-operation .route-shortage {
  grid-column: 1 / -1;
}
.route-operation .route-shortage {
  color: #ffd27a;
}
.stored-receipt {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stored-receipt > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 12px;
  background: #293e57;
  border-radius: 8px;
}
.stored-receipt p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.7;
  width: 100%;
  margin: 0;
}
@media (max-width: 700px) {
  .network-invitation,
  .network-toolbar,
  .trade-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .network-invitation {
    padding: 16px;
  }
  .network-invitation strong {
    font-size: 19px;
  }
  .network-overview h3 {
    font-size: 25px;
  }
  .network-overview p {
    font-size: 11px;
    line-height: 1.6;
  }
  .network-numbers {
    gap: 8px;
  }
  .network-numbers > div {
    padding-left: 8px;
  }
  .network-numbers strong {
    font-size: 20px;
  }
  .network-numbers strong small {
    font-size: 11px;
  }
  .network-numbers span {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .network-worlds {
    grid-template-columns: repeat(2, 1fr);
  }
  .network-worlds strong {
    font-size: 11px;
  }
  .network-worlds small {
    font-size: 8px;
  }
  .base-panel,
  .trade-panel {
    padding: 16px;
  }
  .base-header {
    gap: 12px;
  }
  .base-art {
    width: 80px;
  }
  .base-header h3 {
    font-size: 22px;
  }
  .base-header p {
    font-size: 10px;
  }
  .base-tier {
    font-size: 8px;
    flex-wrap: wrap;
  }
  .warehouse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .warehouse-resource strong {
    font-size: 21px;
  }
  .base-progress {
    flex-direction: column;
    gap: 7px;
    align-items: start;
  }
  .base-actions .button {
    width: 100%;
  }
  .trade-heading select {
    flex: 1;
    max-width: 100%;
    min-width: 0;
  }
  .route-operation {
    padding: 14px;
    gap: 9px;
  }
  .route-operation strong {
    font-size: 12px;
  }
  .route-operation button {
    font-size: 9px;
    padding: 8px;
  }
  .cargo-mode,
  .fleet-status {
    font-size: 9px;
    padding: 7px 3px;
    margin-top: 6px;
  }
  #resource-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 5px;
    font-size: 7px;
    margin-top: 8px;
  }
  .clock-panel .fleet-status {
    font-size: 8px;
  }
  .start-copy .text-button {
    padding: 10px 0;
  }
}

/* A short first-flight briefing and an optional next-action card. */
#quick-help { color: var(--amber); font-weight: 600; }
.quick-goal { color: var(--dim); font-size: 14px; line-height: 1.65; margin: 0 0 22px; }
.quick-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-steps article { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.quick-illustration { display: block; width: 100%; height: auto; background: #30435c; }
.quick-step-copy { display: flex; gap: 12px; padding: 15px 17px 17px; }
.quick-number { color: var(--amber); font-size: 12px; padding-top: 3px; }
.quick-steps h3 { margin: 0 0 9px; font-size: 17px; }
.quick-steps p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.8; }
.quick-steps small { display: block; margin-top: 8px; font-size: 10px; line-height: 1.6; color: var(--dim); }
.quick-steps kbd { font: inherit; font-weight: 700; padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.quick-tips { display: flex; align-items: center; gap: 9px; margin-top: 20px; font-size: 12px; color: var(--dim); }
.quick-tips input { accent-color: #acd4e7; width: 17px; height: 17px; }
#target-card.coaching { width: 240px; border-color: #acd4e777; }
#target-card.coaching #target-type { color: var(--amber); }
.tip-toggle { display: block; margin: 9px auto 0; border: 0; background: transparent; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; font-size: 9px; padding: 3px; }
body.tips-on #flight-hint { display: none; }
.deck-button:focus-visible, .tip-toggle:focus-visible, #minimap button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* A local radar, deliberately separated from the flight controls and ship. */
#minimap { position: fixed; right: 28px; bottom: 170px; width: 174px; border: 1px solid var(--line); border-radius: 12px; background: #34465feb; overflow: hidden; }
.minimap-heading { display: flex; align-items: center; justify-content: space-between; padding: 3px 6px 0; }
.minimap-heading button { background: none; border: 0; color: var(--dim); font-size: 9px; padding: 6px; letter-spacing: .7px; }
#mini-toggle { min-width: 28px; font-size: 16px; padding: 0 6px; }
#mini-open { display: block; width: 100%; background: transparent; border: 0; color: var(--dim); padding: 0 7px 7px; }
#mini-canvas { width: 100%; height: 85px; display: block; }
#mini-caption { display: block; font-size: 8px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#minimap.collapsed #mini-open, #minimap.collapsed #resource-scanner { display: none; }
#minimap.collapsed { width: 110px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#resource-scanner { --scan-color: #a8bcc9; border-top: 1px solid var(--line); padding: 9px; }
#resource-scanner label { display: block; color: var(--dim); font-size: 8px; letter-spacing: 1px; margin-bottom: 6px; }
.scanner-controls { display: grid; grid-template-columns: minmax(0, 1fr) 43px; gap: 4px; }
#scan-resource { min-width: 0; width: 100%; height: 31px; padding: 0 4px; font: inherit; font-size: 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: #293d56; color-scheme: dark; }
#resource-scan { padding: 0; font: inherit; font-size: 10px; font-weight: 700; background: var(--scan-color); color: #20364c; border: 0; border-radius: 5px; }
#resource-scan:disabled { opacity: .55; cursor: default; }
#scan-status { display: block; min-height: 13px; margin: 6px 0 0; font-size: 9px; line-height: 1.4; color: var(--scan-color); }
#scan-resource:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.chart-signal { color: var(--amber); font-size: 12px; margin: 10px 0; }
.chart-signal:empty { display: none; }

/* Current speed and the actual next scoring window stay together. */
#approach-speed-panel { position: fixed; top: 111px; left: 50%; transform: translateX(-50%); width: 348px; padding: 14px 18px 12px; border: 1px solid #18385130; border-radius: 13px; background: #fff9edf5; color: #183851; box-shadow: 3px 4px 0 #1838510b; }
.approach-speed-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 10px; }
.approach-speed-heading span { color: #647888; font-size: 9px; }
.approach-speed-values { display: grid; grid-template-columns: .85fr 1.15fr; gap: 15px; margin-top: 11px; }
.approach-speed-values > div + div { border-left: 1px solid #18385125; padding-left: 15px; }
.approach-speed-values span { display: block; font-size: 8px; color: #647888; letter-spacing: .6px; }
.approach-speed-values b { display: inline-block; font-size: 35px; font-weight: 700; letter-spacing: -1.1px; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; }
.approach-speed-values small { display: block; font-size: 9px; color: #647888; }
#next-gate-range { font-size: 27px; padding-top: 6px; letter-spacing: -1px; }
#approach-speed-advice { margin: 11px 0 6px; padding: 8px 5px; border-radius: 6px; background: #dcece3; color: #246455; font-size: 10px; text-align: center; font-weight: 700; }
#approach-speed-controls { display: block; font-size: 9px; text-align: center; color: #647888; }
#approach-speed-panel[data-state="fast"] #approach-speed-now { color: #b34b39; }
#approach-speed-panel[data-state="fast"] #approach-speed-advice { color: #923928; background: #f5d6c8; }
#approach-speed-panel[data-state="slow"] #approach-speed-advice,
#approach-speed-panel[data-state="firm"] #approach-speed-advice { color: #76501a; background: #f5e4bd; }
@media (min-width: 701px) and (max-width: 1050px) {
  #approach-speed-panel { width: 306px; padding: 12px; }
  .entry-title { width: 183px; left: 18px; }
  .entry-title h2 { font-size: 19px; }
  .entry-instruments { right: 18px; gap: 12px; }
  #next-gate-range { font-size: 25px; }
}
@media (max-width: 700px) {
  .quick-steps { grid-template-columns: 1fr; gap: 10px; }
  .quick-step-copy { padding: 13px; }
  .quick-steps h3 { font-size: 16px; }
  .quick-goal { font-size: 12px; margin-bottom: 16px; }
  #target-card.coaching { width: 194px; }
  #target-card.coaching p { display: block; font-size: 10px; line-height: 1.5; }
  #target-card.coaching h2 { font-size: 15px; }
  #minimap { right: 16px; bottom: 245px; width: 136px; }
  #mini-canvas { height: 70px; }
  #resource-scanner { padding: 6px; }
  #resource-scanner label { display: none; }
  #scan-resource { font-size: 10px; }
  .scanner-controls { grid-template-columns: minmax(0, 1fr) 35px; }
  #scan-status { font-size: 8px; min-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #mini-caption { font-size: 7px; }
  .minimap-heading button { font-size: 8px; padding: 5px 2px; }
  #mini-toggle { font-size: 16px; min-width: 27px; }
  #minimap.collapsed { width: 100px; }
  body.tips-on #delivery-waypoint { display: none; }
  #approach-speed-panel { top: 230px; width: calc(100% - 36px); max-width: 390px; padding: 10px 13px; }
  .approach-speed-values { margin-top: 7px; grid-template-columns: 1fr 1.25fr; }
  .approach-speed-values b { font-size: 32px; }
  #next-gate-range { font-size: 28px; padding-top: 2px; }
  .approach-speed-values small { display: inline; margin-left: 5px; }
  #approach-speed-advice { margin-top: 8px; padding: 6px; font-size: 9px; }
  #approach-speed-controls { font-size: 8px; }
  body.entry #toast { top: auto; bottom: 161px; }
  .start-copy .text-button { padding: 8px 0; }
}
@media (max-width: 700px) and (max-height: 740px) {
  #target-card.coaching { bottom: 211px; }
  #target-card.coaching p { font-size: 9px; line-height: 1.4; }
  #target-card.coaching h2 { font-size: 13px; margin-bottom: 5px; }
  #target-card.coaching .tip-toggle { margin-top: 5px; }
  #minimap { bottom: 245px; }
  #cargo-cells { display: none; }
  .cargo-total { margin-top: 8px; }
  #approach-speed-panel { top: 218px; }
  .approach-speed-values b { font-size: 27px; }
  #next-gate-range { font-size: 25px; }
  #approach-speed-controls { display: none; }
}
/* Keep the center of the landing corridor clear. */
@media (min-width: 701px) {
  #approach-speed-panel { top: auto; left: auto; right: 28px; bottom: 126px; transform: none; width: 306px; }
}
@media (max-width: 700px) {
  .entry-title h2 { display: none; }
  #entry-score { margin-top: 6px; }
  #entry-gates { display: none; }
  #approach-speed-panel { top: 133px; }
  .entry-instruments { top: 293px; grid-template-columns: repeat(3, 1fr); gap: 8px; background: transparent; }
  .entry-instruments > div:nth-child(2) { display: none; }
}
@media (max-width: 700px) and (max-height: 740px) {
  #approach-speed-panel { top: 129px; }
  .entry-instruments { top: 265px; }
}
@media (max-width: 370px) {
  #target-card.coaching { left: 12px; width: 180px; }
  #minimap { right: 12px; width: 125px; }
}

@media (max-width: 700px) {
  #target-card.coaching { left: 12px; width: min(176px, calc(50vw - 40px)); bottom: 211px; }
}

/* The studio embeds the game below its own navigation bar. */
@media (min-width: 701px) and (max-height: 720px) {
  #mini-canvas { height: clamp(40px, calc(100dvh - 620px), 85px); }
  #resource-scanner label { display: none; }
}
@media (max-width: 700px) and (max-height: 660px) {
  #mini-canvas { height: clamp(40px, calc(100dvh - 572px), 70px); }
  .minimap-heading { height: 0; padding: 0; position: relative; z-index: 1; }
  .minimap-heading #mini-chart { display: none; }
  #mini-toggle { position: absolute; top: 0; right: 3px; }
  #minimap.collapsed .minimap-heading { height: 24px; padding-left: 8px; }
  #minimap.collapsed #mini-chart { display: block; }
}
