@font-face {
  font-family: Oxanium;
  src: url("assets/Oxanium.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --space: #020710;
  --ink: #02131d;
  --surface: #031721;
  --card: #031c28;
  --cyan: #00d5eb;
  --line: #076073;
  --muted: #7fa3b5;
  --white: #def0f7;
  --cut: 12px;
  font: 16px/1.5 Oxanium, sans-serif;
  color: var(--white);
  background: var(--space);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button, kbd { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, figure, p, h1, h2 { margin: 0; }
button { color: inherit; }
button, a, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--white); }
::selection { color: var(--ink); background: var(--cyan); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 10; background: var(--cyan); color: var(--ink); padding: 12px 20px; }
.skip-link:focus { top: 12px; }

#starfield, .space-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.space-backdrop { overflow: hidden; }
.backdrop-planet { position: absolute; right: -80px; top: -160px; width: 650px; height: auto; opacity: .21; image-rendering: pixelated; transform: rotate(-24deg); }
.backdrop-ship { position: absolute; left: 3%; top: 62%; width: 48px; opacity: .55; image-rendering: pixelated; transform: rotate(29deg); }
.site-shell { width: min(1440px, calc(100% - 80px)); margin: auto; }
.masthead { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: min(490px, 48%); }
.brand img { display: block; width: 100%; height: auto; }
.masthead-status { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .07em; }
.masthead-status b { display: block; font-weight: 600; }
.masthead-status div > span { color: var(--muted); display: block; margin-top: 2px; font-size: 11px; }
.status-pip { width: 7px; height: 7px; flex: 0 0 7px; background: var(--cyan); box-shadow: 0 0 12px #00d5eb44; }

/* The same cut corners, flat fill and one-pixel strokes as the game menus. */
.panel, .button { position: relative; isolation: isolate; background: transparent; border: 0; }
.panel::before, .panel::after, .button::before, .button::after, .controls kbd::before, .controls kbd::after {
  content: "";
  position: absolute;
  pointer-events: none;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.panel::before, .button::before, .controls kbd::before { inset: 0; z-index: -2; background: var(--line); }
.panel::after, .button::after, .controls kbd::after { inset: 1px; z-index: -1; background: var(--surface); }
.button { min-height: 56px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 650; line-height: 1.15; text-align: center; }
.button::before { transition: background-color 140ms; }
.button::after { transition: background-color 140ms; }
.button:hover::before { background: var(--cyan); }
.button:hover::after { background: #032631; }
.button[aria-selected="true"]::before, .primary-action::before { background: var(--cyan); }
.button[aria-selected="true"]::after, .primary-action::after { background: var(--cyan); }
.button[aria-selected="true"], .primary-action { color: var(--ink); }
.button[aria-selected="true"]:hover::after, .primary-action:hover::after { background: #5be8f5; }
.button:active { transform: translateY(1px); }
.button svg { flex-shrink: 0; width: 22px; height: 22px; }
.pilot-console { --cut: 19px; padding: 30px; }
.pilot-console::before { background: var(--cyan); }
.pilot-console::after { background: var(--ink); }
.console-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 0 28px; }
.console-overline { color: var(--cyan); font-size: 12px; line-height: 1; margin: 3px 0 12px; }
h1 { font-size: clamp(29px, 3vw, 42px); font-weight: 700; letter-spacing: .015em; line-height: 1.05; }
#screen-subtitle { color: var(--muted); margin-top: 9px; font-size: 16px; }
.header-button { --cut: 10px; font-size: 13px; font-weight: 550; padding-inline: 20px; min-height: 51px; }
.header-button svg { color: var(--cyan); width: 26px; height: 26px; }
.screen-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.screen-tab { --cut: 11px; min-height: 61px; font-size: 18px; gap: 16px; white-space: nowrap; }
.tab-number { font-size: 11px; font-weight: 500; color: var(--muted); }
[aria-selected="true"] > .tab-number { color: #025064; }
.screen { min-height: 415px; }
.screen:focus-visible { outline-offset: 8px; }
.label { color: var(--cyan); font-size: 12px; font-weight: 500; letter-spacing: .03em; }

.briefing-screen { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.briefing-steps { padding-right: 2px; }
.flight-step { display: grid; grid-template-columns: 43px 1fr; gap: 12px; padding: 16px 0 19px; border-bottom: 1px solid var(--line); }
.flight-step:first-child { padding-top: 0; }
.flight-step:nth-child(3) { border-bottom: 0; padding-bottom: 15px; }
.step-number { font-size: 31px; line-height: 1.15; font-weight: 650; color: var(--cyan); }
.flight-step h2 { font-size: 21px; line-height: 1.3; font-weight: 650; padding-top: 1px; }
.flight-step p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 460px; }
.controls { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.controls kbd { --cut: 5px; position: relative; isolation: isolate; padding: 8px 11px; font-size: 13px; line-height: 1.2; }
.controls span { font-size: 12px; color: var(--cyan); margin-right: 10px; }
.flight-note { color: var(--muted); font-size: 13px; padding: 4px 0 4px 55px; }
.diagram { --cut: 12px; position: relative; overflow: hidden; }
.diagram::after { background: repeating-linear-gradient(90deg, #00d5eb06 0 1px, transparent 1px 32px), repeating-linear-gradient(0deg, #00d5eb06 0 1px, transparent 1px 32px), var(--card); }
.viewer-heading { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 11px; line-height: 1.3; padding: 18px 20px; }
.viewer-heading b { color: var(--cyan); font-weight: 500; }
.flight-viewer { min-height: 415px; }
.diagram-rock { position: absolute; width: 58px; height: auto; image-rendering: pixelated; opacity: .6; }
.rock-1 { left: 10%; top: 19%; width: 65px; }
.rock-2 { right: 10%; top: 12%; width: 78px; }
.rock-3 { right: 15%; top: 47%; width: 48px; }
.rock-4 { left: 32%; top: 71%; width: 68px; }
.rock-5 { right: 10%; top: 72%; width: 76px; }
.flight-paths { position: absolute; inset: 2% 0 8%; width: 100%; height: 90%; stroke: var(--cyan); fill: none; stroke-width: 1.25; }
.flight-circle { stroke: #08546a; fill: #00222d77; }
.coast-path { stroke-dasharray: 10 7; opacity: .65; }
.diagram-leaders { stroke-width: .7; opacity: .65; }
.flight-paths text { font-size: 12px; fill: var(--cyan); stroke: none; font-family: Oxanium, sans-serif; }
.flight-paths .muted-label { fill: var(--muted); }
.diagram-ship { position: absolute; width: 120px; height: 120px; left: 54%; top: 43%; transform: translate(-50%, -50%) rotate(17deg); }
.diagram-ship img { width: 100%; height: auto; position: relative; image-rendering: pixelated; }
.engine-trail { position: absolute; top: 70%; left: 39%; width: 22%; height: 65%; background: linear-gradient(#00c6f677, transparent); clip-path: polygon(8% 0, 92% 0, 58% 100%, 44% 100%); transform-origin: top; animation: engine 1.2s ease-in-out infinite alternate; }
.viewer-energy { position: absolute; left: 20px; right: 20px; bottom: 23px; font-size: 11px; color: var(--cyan); }
.energy-track { margin-top: 9px; height: 8px; background: #063241; }
.energy-track > span { display: block; width: 76%; height: 100%; background: var(--cyan); }

.ship-choices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px; }
.ship-choice { --cut: 9px; padding: 9px 13px; gap: 8px; min-height: 60px; font-size: 13px; }
.ship-choice img { width: 36px; height: 36px; image-rendering: pixelated; }
.ship-inspector { display: grid; grid-template-columns: .95fr 1.05fr; gap: 32px; min-height: 350px; }
.ship-schematic { min-height: 350px; }
.schematic-reticle { position: absolute; inset: 0; display: grid; place-items: center; }
.schematic-reticle::before, .schematic-reticle::after { content: ""; position: absolute; width: 260px; height: 1px; background: #0c4a5a; }
.schematic-reticle::after { transform: rotate(90deg); }
.schematic-reticle i { position: absolute; width: 230px; height: 230px; border: 1px solid #0b5062; border-radius: 50%; }
.schematic-reticle i + i { width: 192px; height: 192px; border-style: dashed; opacity: .55; }
#ship-art { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; transform: translate(-50%, -50%); image-rendering: pixelated; }
#ship-art.deploy { animation: deploy 240ms ease-out; }
.schematic-scale { position: absolute; bottom: 19px; left: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.ship-specification { align-self: center; padding: 6px 0; }
#ship-name { font-size: 38px; font-weight: 700; margin-top: 3px; text-transform: uppercase; line-height: 1.2; }
.ship-summary { color: var(--white); margin: 7px 0 8px; font-size: 18px; }
#ship-description { max-width: 580px; font-size: 14px; color: var(--muted); }
.ability-slots { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ability-slot { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #021c28; min-height: 64px; padding: 8px; font-size: 11px; line-height: 1.3; }
.ability-slot img, .ability-slot svg { width: 40px; height: 40px; flex-shrink: 0; image-rendering: pixelated; color: var(--cyan); }
.spec-meter { margin-top: 21px; display: grid; grid-template-columns: 1fr auto; color: var(--muted); font-size: 11px; gap: 7px; }
.spec-meter strong { color: var(--white); font-weight: 500; }
.energy-cells { display: flex; gap: 3px; height: 10px; grid-column: 1 / -1; }
.energy-cells i { flex: 1; background: var(--cyan); opacity: .12; }
.energy-cells i.filled { opacity: .9; }
.spec-note { color: var(--muted); margin-top: 8px; font-size: 11px; }

.modes-screen { display: grid; grid-template-columns: 270px 1fr; gap: 26px; }
.mode-selector > .label { margin: 0 0 13px; }
.mode-choices { display: grid; gap: 9px; }
.mode-choice { --cut: 9px; min-height: 58px; padding: 13px 17px; justify-content: space-between; font-size: 15px; text-align: left; }
.mode-choice > span { font-weight: 450; font-size: 9px; text-align: right; max-width: 75px; color: var(--muted); }
.mode-choice[aria-selected="true"] > span { color: #035467; }
.mode-description { padding-top: 21px; }
.mode-description h2 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.mode-description p { color: var(--muted); font-size: 14px; }
#mode-facts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10px; color: var(--cyan); margin-top: 17px; }
#mode-facts span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.mode-viewer { --cut: 12px; min-width: 0; align-self: start; padding: 0 16px 14px; }
.mode-viewer .viewer-heading { padding-inline: 2px; }
.capture-button { display: block; position: relative; width: 100%; padding: 0; border: 1px solid #104351; background: var(--space); }
.capture-button > img { display: block; width: 100%; height: auto; }
.expand-icon { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; background: var(--ink); border: 1px solid var(--line); color: var(--cyan); }
.capture-button:hover .expand-icon { background: var(--cyan); color: var(--ink); }
.mode-viewer figcaption { color: var(--muted); font-size: 12px; padding-top: 12px; }

.alpha-screen { padding: 8px 12px 4px; }
.setup-row { display: grid; grid-template-columns: 155px 1fr; gap: 22px; margin-bottom: 30px; }
.setup-row h2 { font-size: 18px; font-weight: 650; align-self: start; padding-top: 19px; }
.setup-field { min-width: 0; }
.setup-field > p { color: var(--muted); font-size: 14px; margin-top: 9px; }
.platform-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.platform-choice { min-height: 67px; font-size: 17px; gap: 14px; }
.platform-choice > svg { width: 27px; height: 27px; }
.channel-display { --cut: 10px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; min-height: 60px; font-size: 16px; font-weight: 550; max-width: 640px; }
.channel-display span + span { font-weight: 400; font-size: 12px; color: var(--muted); }
.release-state { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.release-state strong { font-size: 19px; font-weight: 650; }
.release-state-rule { height: 1px; background: var(--line); flex: 1; max-width: 130px; }
#release-channel-hint { color: var(--muted); font-size: 11px; }
.release-row { margin-bottom: 20px; }
.release-row h2 { padding-top: 12px; }
.alpha-extras { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 21px 0 0; border-top: 1px solid var(--line); }
.alpha-extras p { color: var(--muted); font-size: 12px; max-width: 650px; }
.alpha-extras p > span { display: block; color: var(--white); font-size: 11px; margin-bottom: 2px; }
.alpha-extras > button { font-size: 11px; white-space: nowrap; }
.button[aria-disabled="true"] { color: #6b94a3; cursor: default; }
.button[aria-disabled="true"]::before { background: #0a6575; }
.button[aria-disabled="true"]::after { background: #052e3b; }
.button[aria-disabled="true"]:active { transform: none; }

.console-footer { margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-copy { min-width: 0; }
.footer-copy > p { color: var(--muted); font-size: 13px; }
.footer-copy > span { display: block; color: #587e90; font-size: 10px; margin-top: 6px; word-spacing: 2px; }
.footer-copy kbd { font: inherit; color: var(--muted); }
.footer-copy b { font-weight: 400; padding: 0 6px; }
.footer-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.primary-action { min-width: 238px; font-size: 19px; font-weight: 650; }
.secondary-action { min-width: 170px; font-size: 13px; font-weight: 550; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 2px 27px; font-size: 10px; color: var(--muted); }
.page-footer b { color: var(--line); margin: 0 9px; font-weight: 400; }
.page-footer > div { display: flex; align-items: center; gap: 30px; }
.text-button, .page-footer a { display: inline-flex; align-items: center; gap: 9px; background: none; border: none; padding: 3px 0; font-size: inherit; font-weight: inherit; color: var(--muted); }
.text-button:hover, .page-footer a:hover { color: var(--cyan); }
.text-button > svg, .page-footer a > svg { width: 14px; height: 14px; }

dialog.panel { color: var(--white); background-color: var(--surface); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
dialog::backdrop { background: #01050de8; backdrop-filter: blur(5px); }
.dialog-close { --cut: 9px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; position: absolute; top: 18px; right: 18px; z-index: 2; }
.dialog-close > svg { width: 23px; height: 23px; }
.info-dialog { --cut: 16px; padding: 38px; width: min(640px, calc(100% - 36px)); max-height: calc(100dvh - 50px); overflow: auto; }
.info-dialog::before { background: var(--cyan); }
.info-dialog > .label { margin-right: 48px; }
.info-dialog h2 { font-size: 30px; margin: 9px 50px 20px 0; line-height: 1.15; }
.info-dialog > p:not(.label) { font-size: 15px; color: var(--muted); margin-bottom: 27px; }
.info-dialog details { border-top: 1px solid var(--line); padding: 17px 0; }
.info-dialog summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.info-dialog summary::marker { color: var(--cyan); }
.info-dialog details p { padding-top: 12px; color: var(--muted); font-size: 14px; }
.info-done { width: 100%; margin-top: 18px; }
.credits-dialog dl { margin: 22px 0 0; font-size: 14px; }
.credits-dialog dt { color: var(--cyan); font-size: 11px; margin-top: 23px; }
.credits-dialog dd { color: var(--muted); margin: 5px 0 0; }
.credits-dialog dd a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.capture-dialog { --cut: 16px; width: min(1400px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 60px 18px 18px; }
.capture-dialog::before { background: var(--cyan); }
.capture-dialog > img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 166px); object-fit: contain; }
.capture-dialog > p { color: var(--muted); font-size: 12px; padding: 13px 0 0; }

@keyframes deploy { from { opacity: .15; transform: translate(-50%, -44%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes engine { to { opacity: .45; transform: scaleY(.8); } }

@media (min-width: 1650px) {
  .masthead { min-height: 140px; }
  .brand { width: 540px; }
  .pilot-console { padding: 34px; }
  .screen { min-height: 454px; }
  .flight-viewer { min-height: 454px; }
  .flight-step { padding-block: 20px; }
  .flight-step:first-child { padding-top: 4px; }
  .flight-step h2 { font-size: 24px; }
  .flight-step p { font-size: 17px; }
  .controls kbd { font-size: 14px; }
  .controls span { font-size: 13px; }
  .diagram-ship { width: 140px; height: 140px; }
}

@media (max-width: 1180px) {
  .site-shell { width: calc(100% - 48px); }
  .pilot-console { padding: 25px; }
  .screen-tab { font-size: 15px; padding-inline: 10px; gap: 9px; }
  .briefing-screen { gap: 22px; }
  .flight-step { grid-template-columns: 36px 1fr; gap: 8px; }
  .flight-step h2 { font-size: 19px; }
  .step-number { font-size: 28px; }
  .flight-step p { font-size: 14px; }
  .controls { gap: 8px; }
  .controls kbd { font-size: 11px; padding: 7px; }
  .controls span { font-size: 10px; margin-right: 4px; }
  .flight-note { padding-left: 44px; font-size: 12px; }
  .viewer-heading { font-size: 10px; padding-inline: 15px; }
  .ship-choice { font-size: 11px; padding-inline: 8px; gap: 6px; }
  .ship-choice img { width: 30px; height: 30px; }
  .ship-inspector { gap: 25px; }
  .ability-slot { flex-direction: column; text-align: center; font-size: 10px; padding: 8px 4px; gap: 6px; }
  .modes-screen { grid-template-columns: 235px 1fr; gap: 20px; }
  .mode-choice { font-size: 13px; padding-inline: 13px; }
  .mode-description p { font-size: 13px; }
  .setup-row { grid-template-columns: 120px 1fr; gap: 18px; }
  .platform-choice { font-size: 14px; padding-inline: 12px; gap: 10px; }
  .footer-copy > p { max-width: 310px; }
  .primary-action { min-width: 205px; font-size: 17px; }
  .secondary-action { min-width: 150px; padding-inline: 15px; font-size: 11px; }
}

@media (max-width: 920px) {
  .masthead { min-height: 102px; }
  .brand { width: 50%; }
  .console-header { padding-bottom: 24px; }
  .console-overline { font-size: 10px; }
  #screen-subtitle { font-size: 14px; }
  .header-button { padding-inline: 14px; font-size: 11px; gap: 7px; }
  .header-button svg { width: 21px; height: 21px; }
  .screen-tabs { gap: 8px; }
  .screen-tab { font-size: 12px; min-height: 56px; }
  .tab-number { display: none; }
  .briefing-screen { grid-template-columns: 1fr 1fr; gap: 20px; }
  .flight-step p { font-size: 13px; }
  .flight-step h2 { font-size: 17px; }
  .controls { gap: 6px; }
  .controls kbd { font-size: 10px; }
  .controls span { font-size: 9px; }
  .viewer-heading span + span { display: none; }
  .diagram-ship { width: 104px; height: 104px; }
  .diagram-rock { max-width: 57px; }
  .rock-5 { max-width: 65px; }
  .flight-note { padding-left: 0; }
  .ship-choices { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .ship-choice { font-size: 13px; }
  .ship-inspector { grid-template-columns: .9fr 1.1fr; gap: 22px; }
  .ship-schematic { min-height: 380px; }
  #ship-name { font-size: 30px; }
  .ship-summary { font-size: 16px; }
  #ship-description { font-size: 13px; }
  .ability-slots { margin-top: 15px; }
  .modes-screen { grid-template-columns: 1fr; }
  .mode-selector { display: grid; grid-template-columns: 210px 1fr; gap: 0 25px; }
  .mode-selector > .label { grid-column: 1 / -1; }
  .mode-description { padding-top: 3px; }
  .mode-viewer { width: 100%; }
  .mode-viewer .viewer-heading span + span { display: inline; }
  .setup-row { grid-template-columns: 96px 1fr; gap: 15px; }
  .setup-row h2 { font-size: 16px; }
  .platform-choice { font-size: 12px; flex-direction: column; gap: 8px; min-height: 80px; }
  .platform-choice svg { width: 25px; height: 25px; }
  .alpha-extras { gap: 20px; }
  .alpha-extras > button { max-width: 155px; white-space: normal; text-align: left; }
  .release-state { gap: 10px; }
  .release-state strong { font-size: 17px; }
  #release-channel-hint { font-size: 9px; }
  .console-footer { flex-wrap: wrap; gap: 16px; }
  .footer-copy { flex: 1 1 100%; }
  .footer-copy > p { max-width: none; }
  .footer-actions { flex: 1; }
  .footer-actions .button { flex: 1; }
}

@media (max-width: 640px) {
  .site-shell { width: calc(100% - 28px); }
  .masthead { min-height: 102px; flex-wrap: wrap; align-content: center; gap: 13px; padding-block: 21px; }
  .brand { width: min(350px, 100%); }
  .masthead-status { font-size: 9px; gap: 8px; width: 100%; letter-spacing: .03em; }
  .masthead-status > div { display: flex; gap: 13px; align-items: center; }
  .masthead-status div > span { margin: 0; font-size: 9px; color: #668da0; }
  .masthead-status .status-pip { width: 5px; height: 5px; flex-basis: 5px; }
  .backdrop-planet { width: 520px; right: -280px; top: -70px; }
  .pilot-console { --cut: 14px; padding: 22px 18px; }
  .console-header { gap: 10px; align-items: flex-start; padding-bottom: 22px; }
  .console-overline { font-size: 9px; margin-top: 0; margin-bottom: 12px; }
  h1 { font-size: 27px; max-width: 290px; line-height: 1.15; }
  #screen-subtitle { font-size: 12px; margin-top: 7px; max-width: 260px; }
  .header-button { min-width: 40px; min-height: 40px; width: 40px; height: 40px; padding: 0; }
  .header-button > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .header-button svg { width: 24px; height: 24px; }
  .screen-tabs { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 24px; }
  .screen-tab { min-height: 52px; font-size: 12px; gap: 9px; }
  .tab-number { display: inline; font-size: 9px; }
  .screen { min-height: 0; }
  .briefing-screen { grid-template-columns: 1fr; gap: 22px; }
  .flight-step { grid-template-columns: 33px 1fr; gap: 10px; padding-block: 18px; }
  .step-number { font-size: 26px; }
  .flight-step h2 { font-size: 18px; }
  .flight-step p { font-size: 14px; margin-top: 7px; }
  .controls { gap: 7px; row-gap: 10px; margin-top: 13px; }
  .controls kbd { font-size: 11px; padding: 7px; }
  .controls span { font-size: 10px; margin-right: 3px; }
  .flight-note { font-size: 12px; padding-left: 43px; }
  .flight-viewer { min-height: 335px; }
  .viewer-heading { font-size: 9px; padding: 16px; }
  .viewer-energy { left: 16px; right: 16px; bottom: 19px; }
  .diagram-ship { width: 105px; height: 105px; }
  .diagram-rock { max-width: 55px; }
  .rock-2 { max-width: 68px; }
  .rock-5 { max-width: 61px; }
  .ship-choices { gap: 8px; margin-bottom: 20px; }
  .ship-choice { flex-direction: column; font-size: 10px; gap: 5px; padding: 10px 4px; min-height: 77px; }
  .ship-choice img { width: 32px; height: 32px; }
  .ship-inspector { grid-template-columns: 1fr; gap: 22px; }
  .ship-schematic { min-height: 290px; }
  .ship-schematic .viewer-heading span + span { display: inline; }
  #ship-art { width: 144px; height: 144px; }
  .schematic-reticle i { width: 205px; height: 205px; }
  .schematic-reticle i + i { width: 175px; height: 175px; }
  .schematic-reticle::before, .schematic-reticle::after { width: 234px; }
  .ship-specification { padding: 0; }
  #ship-description { font-size: 14px; }
  .ability-slots { gap: 8px; }
  .ability-slot { min-height: 90px; font-size: 10px; padding: 10px 5px; }
  .ability-slot img, .ability-slot svg { width: 36px; height: 36px; }
  .spec-note { font-size: 11px; }
  .mode-selector { display: block; }
  .mode-choices { grid-template-columns: 1fr; }
  .mode-choice { min-height: 52px; padding-inline: 15px; font-size: 14px; }
  .mode-choice > span { max-width: none; font-size: 9px; }
  .mode-description { padding-top: 21px; }
  .mode-description p { font-size: 14px; }
  .mode-viewer { padding-inline: 9px; }
  .mode-viewer .viewer-heading { font-size: 8px; padding-block: 13px; gap: 5px; }
  .mode-viewer figcaption { font-size: 11px; }
  .alpha-screen { padding: 0; }
  .setup-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
  .setup-row h2, .release-row h2 { padding: 0; font-size: 15px; }
  .platform-choices { grid-template-columns: 1fr 1fr; gap: 8px; }
  .platform-choice { flex-direction: row; min-height: 62px; font-size: 13px; gap: 9px; }
  .platform-choice svg { width: 24px; height: 24px; }
  .setup-field > p { font-size: 13px; }
  .channel-display { min-height: 61px; padding: 14px; gap: 12px; font-size: 14px; }
  .channel-display span + span { font-size: 10px; text-align: right; }
  .release-state { min-height: 35px; flex-wrap: wrap; gap: 9px; }
  .release-state strong { font-size: 18px; }
  .release-state-rule { display: none; }
  #release-channel-hint { flex: 1 1 100%; margin-left: 16px; }
  .alpha-extras { display: block; padding-top: 19px; }
  .alpha-extras p { font-size: 12px; }
  .alpha-extras > button { max-width: none; margin-top: 14px; font-size: 10px; }
  .console-footer { margin-top: 23px; padding-top: 17px; gap: 18px; }
  .footer-copy > p { font-size: 12px; }
  .footer-copy > span { font-size: 9px; margin-top: 7px; }
  .footer-actions { gap: 8px; width: 100%; }
  .footer-actions .button { min-width: 0; min-height: 57px; padding: 12px 10px; font-size: 12px; gap: 8px; }
  .footer-actions .primary-action { flex: 1.1; }
  .footer-actions .button > svg { width: 16px; height: 16px; }
  .page-footer { display: block; font-size: 9px; padding-block: 19px 24px; }
  .page-footer > div { gap: 27px; margin-top: 12px; }
  .page-footer b { margin-inline: 6px; }
  .info-dialog { padding: 28px 23px; max-height: calc(100dvh - 32px); }
  .info-dialog h2 { font-size: 25px; margin-top: 11px; }
  .info-dialog > p:not(.label) { font-size: 14px; }
  .info-dialog details p { font-size: 13px; }
  .dialog-close { right: 15px; top: 15px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .info-dialog .primary-action { min-width: 0; font-size: 16px; }
  .capture-dialog { width: calc(100% - 24px); padding: 60px 10px 15px; }
  .capture-dialog > p { font-size: 10px; }
}

@media (max-width: 360px) {
  .pilot-console { padding-inline: 14px; }
  h1 { font-size: 24px; }
  .screen-tab { font-size: 10px; gap: 6px; }
  .flight-step { grid-template-columns: 29px 1fr; gap: 8px; }
  .flight-step h2 { font-size: 16px; }
  .flight-step p { font-size: 13px; }
  .controls { gap: 6px; }
  .controls kbd { font-size: 9px; padding: 7px 6px; }
  .controls span { font-size: 8px; margin: 0; }
  .flight-note { padding-left: 37px; }
  .footer-actions .button { font-size: 10px; }
  .masthead-status > div { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
