:root {
  color-scheme: light;
  --ink: #172832;
  --dim: #51646c;
  --line: #cbd6da;
  --accent: #17645e;
  --paper: #f5f7f6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #17363d;
  color: white;
}
header a {
  color: white;
  font-weight: 720;
  font-size: 1.2rem;
  text-decoration: none;
}
header .section-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.head-inner,
main {
  max-width: 1180px;
  margin: auto;
  padding: 17px 26px;
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.head-inner span,
.note,
.caption {
  font-size: 0.875rem;
}
.intro {
  margin: 18px 0 25px;
}
.intro h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0 0 0.45rem;
}
.intro p,
.note,
.caption {
  color: var(--dim);
}
.scope-note {
  margin: -10px 0 22px;
  padding: 12px 15px;
  border-left: 4px solid #b56b27;
  background: #fff5e8;
  color: #4b3b2b;
  line-height: 1.5;
}
.scope-note strong {
  margin-right: 0.35rem;
}
.scope-note a {
  color: #7a4619;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(240px, 1fr);
  gap: 16px;
}
.visual,
section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.visual {
  align-self: start;
  overflow: hidden;
}
.toolbar,
.actions,
.row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar,
.caption {
  padding: 10px 16px;
}
.toolbar {
  border-bottom: 1px solid var(--line);
}
.toolbar label,
.row label {
  min-width: 0;
  flex: 1;
}
.toolbar button {
  margin-left: auto;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #edf2f2;
  touch-action: none;
}
.caption {
  min-height: 2.4em;
  border-top: 1px solid var(--line);
}
.field-legend {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #f8faf9;
}
.legend-heading,
.legend-scale,
.vector-key {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.legend-heading,
.legend-scale {
  font-size: 0.875rem;
}
.stress-gradient {
  height: 12px;
  margin-top: 8px;
  border: 1px solid #aeb9bc;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(50 166 165), rgb(226 80 46));
}
.legend-scale {
  margin-top: 3px;
  color: var(--dim);
}
.field-legend p {
  margin: 8px 0;
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.45;
}
.vector-key {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.875rem;
}
.vector-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vector-key i {
  width: 18px;
  height: 3px;
  display: inline-block;
}
.load-key {
  background: #a04c20;
}
.support-key {
  background: #224c96;
}
aside section,
.model,
#output {
  padding: 18px;
}
aside section + section,
.model,
#output {
  margin-top: 16px;
}
.example-picker {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf2f2;
}
.example-picker button {
  flex: 1;
}
.example-info {
  min-height: 4.7em;
  margin: 9px 0 11px;
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.45;
}
.example-info strong {
  color: var(--ink);
}
.example-info a {
  color: var(--accent);
}
.example-actions {
  display: flex;
  gap: 8px;
}
.button-link {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #8da3a8;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
}
.button-link:hover,
.button-link:focus-visible {
  border-color: var(--accent);
  outline: 2px solid #31877a44;
}
.choice-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.choice-separator::before,
.choice-separator::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.grid > div {
  min-width: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 8px;
}
input,
select,
button,
textarea {
  font: inherit;
  color: var(--ink);
}
input,
select,
textarea {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}
input[type="file"] {
  font-size: 0.8rem;
}
button {
  background: white;
  border: 1px solid #8da3a8;
  border-radius: 4px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.88rem;
}
button:hover,
button:focus-visible {
  border-color: var(--accent);
  outline: 2px solid #31877a44;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.readout,
.note {
  margin-top: 9px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.actions,
details {
  margin-top: 13px;
}
summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}
textarea,
pre {
  font:
    12px/1.5 ui-monospace,
    Menlo,
    monospace;
}
textarea {
  margin-top: 6px;
  resize: vertical;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 24em;
  overflow: auto;
}
#import-report:not(:empty) {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff4e7;
  border-left: 3px solid #b7511c;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.45;
}
#import-report p {
  margin: 6px 0;
}
#import-report ul {
  padding-left: 18px;
}
aside details > label:first-of-type,
aside details + button {
  margin-top: 8px;
}
#status {
  color: var(--accent);
  font-weight: 620;
}
.compute-progress {
  margin: 10px 0 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
}
.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5e5;
}
.progress-track span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: compute-sweep 1.2s ease-in-out infinite alternate;
}
.compute-progress.complete .progress-track span {
  width: 100%;
  animation: none;
}
.compute-progress.failed .progress-track span {
  width: 100%;
  animation: none;
  background: #a04c20;
}
#compute-stage {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.875rem;
}
@keyframes compute-sweep {
  from {
    transform: translateX(-8%);
  }
  to {
    transform: translateX(202%);
  }
}
.result-guide {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
}
.result-guide h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.result-guide p {
  margin: 7px 0;
  color: var(--dim);
  line-height: 1.5;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th,
td {
  text-align: left;
  padding: 6px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .workspace,
  .grid {
    grid-template-columns: 1fr;
  }
  .head-inner,
  main {
    padding: 14px;
  }
  .toolbar {
    gap: 7px;
  }
  .intro {
    margin-top: 12px;
  }
  .example-actions {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .progress-track span {
    animation-duration: 3s;
  }
}

:root {
  --ink: #172e3b;
  --dim: #4d6571;
  --line: #cbd8db;
  --accent: #116d62;
  --paper: #f0f4f3;
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
}
body {
  min-width: 0;
}
main,
.head-inner {
  max-width: 1280px;
  padding-inline: clamp(16px, 4vw, 60px);
}
main {
  padding-block: 26px 56px;
}
.site-head {
  background: #102736;
  border-bottom: 1px solid #36515d;
}
.head-inner {
  min-height: 64px;
  gap: 24px;
  padding-block: 10px;
  justify-content: initial;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.05em;
  font-size: 1.55rem;
  font-weight: 720;
}
.brand-mark {
  height: 30px;
  width: 32px;
  display: grid;
  place-items: center;
  transform: skew(-12deg);
  border: 1.7px solid #8cebc9;
  border-radius: 4px;
  color: #a6f2d4;
  font-weight: 850;
  font-style: italic;
}
.head-inner .brand-mark {
  font-size: 1.1rem;
}
.site-head nav {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #1a3545;
  border-radius: 6px;
}
.site-head nav button {
  border: 0;
  background: transparent;
  color: #d4e4e6;
  padding: 7px 17px;
  font-weight: 650;
  font-size: 0.95rem;
}
.site-head nav button[aria-pressed="true"] {
  color: #102f3a;
  background: #c3eedc;
}
.about {
  margin: 0 0 0 auto;
  position: relative;
}
.about > summary {
  color: #d9e8e8;
  white-space: nowrap;
  list-style: none;
  padding: 7px;
}
.about > summary::after {
  content: " +";
  color: #8fddc2;
}
.about[open] > summary::after {
  content: " −";
}
.about > div {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 15px);
  width: min(410px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: 0 12px 36px #132a3930;
}
.about p {
  font-size: 0.94rem;
  line-height: 1.5;
}
.about a {
  color: var(--accent);
  font-size: 0.94rem;
  text-decoration: underline;
}
#game,
#engineer {
  border: 0;
  background: none;
  border-radius: 0;
}
.mission-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 20px;
}
.kicker,
.scene-kicker {
  font-size: 0.77rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 5px;
  color: #426b69;
}
.mission-head h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 680;
  margin: 0;
}
.mission-head > div > p:last-child:not(.kicker) {
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 1.03rem;
  line-height: 1.5;
}
.trip-stats {
  display: flex;
  align-items: end;
  gap: clamp(14px, 3vw, 42px);
  margin-bottom: 5px;
}
.trip-stats div {
  display: grid;
  gap: 5px;
}
.trip-stats span {
  color: var(--dim);
  font-size: 0.85rem;
}
.trip-stats strong {
  white-space: nowrap;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: -0.05em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.route {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin: 0 0 14px;
  border-block: 1px solid var(--line);
  color: #34565c;
  font-size: 0.86rem;
}
.route span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 650;
  white-space: nowrap;
}
.route i {
  width: 7px;
  height: 7px;
  border: 1.5px solid #298b78;
  border-radius: 50%;
}
.route span:first-child i {
  background: #278c77;
}
.route b {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  font-size: 0.8rem;
  font-weight: 480;
  color: #546a72;
}
.route b::before,
.route b::after {
  content: "";
  height: 1px;
  background: #adbbb9;
  flex: 1;
}
.flight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(288px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}
.scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: #142b3a;
  color: white;
  border: 1px solid #142b3a;
  border-radius: 10px;
  overflow: hidden;
}
.scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px 4px;
  position: relative;
}
.scene h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.scene-kicker {
  font-size: 0.75rem;
  color: #accec9;
  letter-spacing: 0.075em;
}
.scene-camera {
  margin: 0;
  flex-direction: row;
  align-items: center;
  color: #c3d6da;
  gap: 6px;
  font-weight: 500;
  max-width: 140px;
}
select {
  appearance: none;
  padding: 8px 26px 8px 9px;
  border-radius: 5px;
  background-color: white;
  background-image:
    linear-gradient(45deg, transparent 50%, #526d75 50%),
    linear-gradient(135deg, #526d75 50%, transparent 50%);
  background-position:
    calc(100% - 13px) 50%,
    calc(100% - 9px) 50%;
  background-size:
    4px 4px,
    4px 4px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
.scene-camera select {
  background-color: #213d4a;
  color: #e3eeed;
  border-color: #44616c;
  background-image:
    linear-gradient(45deg, transparent 50%, #c2d7d4 50%),
    linear-gradient(135deg, #c2d7d4 50%, transparent 50%);
  font-size: 0.85rem;
}
#flight-canvas {
  background: #142b3a;
  align-self: center;
  cursor: grab;
  max-height: 430px;
  object-fit: contain;
}
.scene-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 16px;
  color: #c0d0d5;
  font-size: 0.82rem;
}
.scene-key {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.scene-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pad-glyph {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #75eed4;
  transform: rotate(45deg);
}
.load-glyph {
  display: inline-block;
  width: 16px;
  height: 3px;
  background: #ffad65;
  position: relative;
}
.load-glyph::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border-block: 4.5px solid transparent;
  border-left: 6px solid #ffad65;
}
.flight-controls {
  padding: 18px 19px 15px;
  background: #fff;
  border-radius: 10px;
  min-width: 0;
}
.flight-controls h2,
.case-card h2,
.flight-result h2 {
  font-size: 1.28rem;
  letter-spacing: -0.04em;
  margin: 0 0 11px;
}
.fleet {
  display: grid;
  gap: 5px;
}
.craft-tile {
  background: white;
  border: 1px solid #d5dfe0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 4px 7px;
  min-height: 48px;
}
.craft-tile[aria-pressed="true"] {
  border: 2px solid #1d7f70;
  background: #edf8f3;
  padding: 3px 6px;
}
.craft-tile canvas {
  width: 68px;
  height: 38px;
  flex: 0 0 68px;
  border-radius: 4px;
  background: #193747;
  pointer-events: none;
}
.craft-tile > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.craft-tile strong {
  font-size: 0.98rem;
}
.craft-tile small {
  font-size: 0.79rem;
  color: var(--dim);
}
.upload-panel {
  margin: 6px 0 10px;
}
.upload-panel > summary {
  padding: 4px 0;
  color: var(--accent);
  font-size: 0.9rem;
}
.upload-panel > div {
  margin: 8px 0;
  padding: 10px;
  background: #eff4f3;
  border-radius: 5px;
}
.upload-panel p {
  font-size: 0.86rem;
  color: var(--dim);
  margin: 7px 0;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.mission-choices {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.mission-choices label {
  font-size: 0.82rem;
  gap: 3px;
  margin: 0 0 7px;
}
.mission-choices select {
  font-size: 0.9rem;
  font-weight: 500;
}
.go {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 16px;
  font-weight: 710;
  font-size: 1.03rem;
  border-radius: 6px;
}
#flight-status:empty {
  display: none;
}
#flight-status,
#flight-progress {
  font-size: 0.85rem;
  color: var(--dim);
  margin: 7px 0 0;
}
#flight-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #c1d9d4;
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.case-card,
.flight-result,
.engineer-summary {
  margin: 16px 0 0;
  padding: clamp(15px, 2vw, 24px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.case-card {
  display: grid;
  grid-template-columns: minmax(155px, 0.77fr) minmax(0, 2fr);
  gap: 12px;
}
.case-card h2 {
  margin: 0;
}
.phase-switch {
  display: inline-flex;
  background: #e8efee;
  border: 1px solid #d5e0df;
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}
.phase-switch button {
  padding: 5px 13px;
  border: 0;
  background: transparent;
  color: #405d65;
  font-weight: 600;
}
.phase-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.case-body p,
.flight-result p,
.engineer-summary p:not(.kicker) {
  margin: 8px 0;
  color: #3e5864;
  line-height: 1.5;
}
.case-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.case-links a,
.case-links button {
  color: var(--accent);
  font: 600 0.85rem/1.5 inherit;
  text-underline-offset: 0.2em;
  text-decoration: underline;
}
.case-links button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.flight-legend {
  background: #1b3746;
  padding: 12px 22px;
  color: #e4efee;
}
.flight-legend > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.87rem;
}
.flight-legend p {
  margin: 6px 0 0;
  font-size: 0.81rem;
  line-height: 1.45;
  color: #d4e2e4;
}
.heat-ramp,
.stress-gradient {
  height: 8px;
  margin-top: 8px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    #3171b3,
    #3cacb8,
    #bfd070,
    #f7af4a,
    #de5338
  );
}
.flight-result {
  border-top: 3px solid #527587;
}
.flight-result[data-outcome="pass"] {
  border-top-color: #228677;
}
.flight-result[data-outcome="fail"] {
  border-top-color: #b14d3d;
}
.flight-result h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
}
.phase-row {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1.2fr 1fr;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: 0.9rem;
  align-items: center;
}
.phase-row small {
  color: var(--dim);
}
.record-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.engineer-summary {
  margin-bottom: 14px;
}
.engineer-summary p:not(.kicker) {
  margin: 0;
}
#engineer .toolbar + canvas {
  background: #142b3a;
}
.load-key {
  background: #b36321;
}
.support-key {
  background: #178370;
}
#engineer h3 {
  margin: 0 0 9px;
}
.note,
.caption {
  font-size: 0.9rem;
}
:focus-visible {
  outline: 2px solid #168a75;
  outline-offset: 3px;
}
input,
select,
button {
  min-width: 0;
}
@media (min-width: 950px) {
  .flight-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .scene-head {
    margin-top: auto;
  }
  .scene-base {
    margin-bottom: auto;
  }
}
@media (max-width: 850px) {
  .flight-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(245px, 0.8fr);
    gap: 11px;
  }
  .flight-controls {
    padding: 13px;
  }
  .mission-head {
    align-items: start;
  }
  .scene-head,
  .scene-base,
  .flight-legend {
    padding-inline: 13px;
  }
  .scene-base {
    align-items: start;
  }
  .scene-key {
    gap: 7px;
  }
  .scene-camera > span {
    display: none;
  }
  .scene-camera {
    max-width: 111px;
  }
}
@media (max-width: 660px) {
  main {
    padding-block: 18px;
  }
  .head-inner {
    min-height: 57px;
    gap: 10px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .brand-mark {
    height: 23px;
    width: 25px;
  }
  .site-head nav button {
    padding: 6px 9px;
    font-size: 0.84rem;
  }
  .about > summary {
    font-size: 0.79rem;
  }
  .mission-head {
    display: block;
    margin: 0 0 12px;
  }
  .trip-stats {
    margin: 12px 0 0;
    gap: 23px;
  }
  .trip-stats div {
    gap: 1px;
  }
  .trip-stats span {
    font-size: 0.76rem;
  }
  .route {
    gap: 5px;
    padding-block: 9px;
    margin-bottom: 10px;
  }
  .route span {
    font-size: 0.73rem;
    gap: 3px;
  }
  .route b {
    font-size: 0.69rem;
    gap: 2px;
  }
  .route i {
    width: 5px;
    height: 5px;
  }
  .flight-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .scene {
    order: 0;
  }
  .flight-controls {
    order: 1;
  }
  .scene-head {
    padding-top: 10px;
  }
  .scene-base {
    padding-block: 5px 9px;
  }
  .scene-kicker {
    font-size: 0.7rem;
  }
  .fleet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .craft-tile,
  .craft-tile[aria-pressed="true"] {
    display: grid;
    justify-items: stretch;
    padding: 4px;
    gap: 3px;
    text-align: center;
  }
  .craft-tile[aria-pressed="true"] {
    padding: 3px;
  }
  .craft-tile canvas {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    background: #193747;
  }
  .craft-tile small {
    display: none;
  }
  .flight-controls h2 {
    margin-bottom: 7px;
  }
  .case-card {
    grid-template-columns: 1fr;
  }
  .phase-row {
    grid-template-columns: 1fr 1fr;
  }
  .case-links {
    gap: 10px;
  }
  .about > div {
    right: 0;
  }
}
@media (max-width: 380px) {
  .head-inner {
    gap: 5px;
  }
  .brand {
    gap: 4px;
  }
  .brand-mark {
    display: none;
  }
  .route span,
  .route b {
    font-size: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
  html {
    scroll-behavior: auto;
  }
}
#scene-setup {
  margin: 5px 22px 0;
  color: #d4e6e5;
  font-size: 0.92rem;
}
.scene-camera {
  max-width: none;
}
.scene-camera select {
  width: 128px;
}
.mission-choices .two {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr);
}
@media (max-width: 850px) {
  #scene-setup {
    margin-inline: 13px;
  }
  .scene-camera select {
    width: 113px;
  }
}
.scale-choice {
  margin: 0 0 3px;
}
.scale-choice > summary {
  font-size: 0.82rem;
  color: #40635e;
}
.scale-choice label {
  margin: 6px 0;
}
.about-short {
  display: none;
}
@media (max-width: 540px) {
  .about-full,
  .head-inner .brand-mark {
    display: none;
  }
  .about-short {
    display: inline;
  }
  .head-inner {
    gap: 7px;
    padding-inline: 12px;
  }
  .site-head nav button {
    padding-inline: 7px;
  }
  .about > summary {
    padding-inline: 2px;
  }
  .head-inner .about-short {
    font-size: 0.82rem;
  }
}
@media (max-width: 540px) {
  .route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 36px;
  }
  .route b {
    display: none;
  }
  .route span {
    font-size: 0.76rem;
    gap: 4px;
  }
  .route span:nth-of-type(2)::before,
  .route span:nth-of-type(2)::after {
    content: "";
    height: 1px;
    background: #aebfbc;
    flex: 1;
    min-width: 3px;
  }
}
@media (max-width: 350px) {
  .head-inner {
    gap: 4px;
    padding-inline: 8px;
  }
  .site-head .brand {
    font-size: 1.04rem;
  }
  .site-head nav button {
    padding-inline: 5px;
  }
}
