:root {
  --bg: #060711;
  --panel: rgba(8, 10, 24, 0.82);
  --panel-strong: rgba(8, 10, 22, 0.96);
  --ink: #f1f4ff;
  --muted: #8990ad;
  --faint: rgba(215, 222, 255, 0.12);
  --line: rgba(176, 194, 255, 0.22);
  --accent: #62efff;
  --accent-soft: rgba(98, 239, 255, 0.18);
  --signal: #ffcf68;
  --danger: #ff5a79;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 760px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
}

button,
input {
  font: inherit;
}

button,
a,
input,
label {
  -webkit-tap-highlight-color: transparent;
}

.game-shell,
#scene,
.screen-texture,
.damage-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-shell {
  min-width: 760px;
  min-height: 560px;
  isolation: isolate;
  background: var(--bg);
}

#scene {
  display: block;
}

.screen-texture {
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.009) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.screen-texture::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.62) 115%);
  content: "";
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.panel-label,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.panel-label > span,
.eyebrow > span {
  display: inline-block;
  width: 14px;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.flight-header {
  position: fixed;
  z-index: 8;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--faint);
  background: linear-gradient(180deg, rgba(4, 5, 14, 0.92), rgba(4, 5, 14, 0.28));
}

.back-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.back-link span {
  color: var(--accent);
  font-size: 15px;
}

.back-link:hover {
  color: var(--ink);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wordmark strong {
  color: var(--accent);
}

.wordmark-cube {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, white);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.16), 0 0 20px color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: 9px;
  letter-spacing: 0.02em;
  transform: rotate(3deg);
}

.utility-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.utility-button {
  display: grid;
  min-width: 88px;
  height: 38px;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0 8px;
  padding: 0 9px;
  border: 1px solid var(--faint);
  border-radius: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-family: var(--mono);
  text-align: left;
}

.utility-button span {
  grid-column: 1;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-button strong {
  grid-column: 1;
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
}

.utility-button kbd {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.utility-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

kbd {
  display: inline-grid;
  min-width: 21px;
  min-height: 20px;
  place-items: center;
  padding: 1px 5px;
  border: 1px solid rgba(214, 222, 255, 0.28);
  border-bottom-color: rgba(214, 222, 255, 0.42);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.32);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.telemetry,
.scoreboard,
.live-score,
.control-deck {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.game-shell:not([data-state="title"]) .telemetry,
.game-shell:not([data-state="title"]) .scoreboard,
.game-shell:not([data-state="title"]) .live-score,
.game-shell:not([data-state="title"]) .control-deck {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.telemetry {
  position: fixed;
  z-index: 5;
  top: 86px;
  left: 20px;
  width: 242px;
  padding: 15px;
  transform: translateX(-8px);
}

.game-shell:not([data-state="title"]) .telemetry {
  transform: translateX(0);
}

.sector-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 13px;
}

.sector-heading > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 42%, transparent);
}

.sector-heading div {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.sector-heading small,
.sector-heading strong {
  display: block;
}

.sector-heading small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sector-heading strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.progress-block > div:first-child,
.hull-row,
.scoreboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-block > div:first-child {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-block strong {
  color: var(--accent);
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border: 1px solid var(--faint);
  background: rgba(0, 0, 0, 0.28);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: width 160ms linear;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 14px 0;
  background: var(--faint);
}

.telemetry-grid div {
  padding: 9px;
  background: rgba(8, 10, 24, 0.93);
}

.telemetry-grid dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telemetry-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hull-row > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hull-cells {
  display: flex;
  gap: 5px;
}

.hull-cell {
  width: 16px;
  height: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transform: skewX(-12deg);
}

.hull-cell.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
}

.hull-cell.lost {
  border-color: color-mix(in srgb, var(--danger) 50%, transparent);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

.vector-guide-key {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vector-guide-key[hidden] {
  display: none;
}

.vector-guide-key > i {
  position: relative;
  width: 39px;
  height: 14px;
  flex: 0 0 39px;
}

.vector-guide-key > i::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 4px;
  height: 4px;
  background: var(--signal);
  box-shadow: 8px 0 0 color-mix(in srgb, var(--signal) 78%, transparent), 16px 0 0 color-mix(in srgb, var(--signal) 48%, transparent);
  content: "";
}

.vector-guide-key > i::after {
  position: absolute;
  top: 2px;
  right: 0;
  width: 10px;
  height: 10px;
  border: 1px solid var(--signal);
  box-shadow: 0 0 8px color-mix(in srgb, var(--signal) 44%, transparent);
  content: "";
  transform: rotate(45deg);
}

.live-score {
  position: fixed;
  z-index: 5;
  top: 87px;
  left: 50%;
  min-width: 300px;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
}

.live-score > span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.live-score > strong {
  display: block;
  margin: 2px 0 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(30px, 3.2vw, 47px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1;
}

.live-score > div {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-score b {
  margin-left: 4px;
  color: var(--accent);
  font-size: 10px;
}

.scoreboard {
  position: fixed;
  z-index: 5;
  top: 86px;
  right: 20px;
  width: 258px;
  padding: 15px;
  transform: translateX(8px);
}

.game-shell:not([data-state="title"]) .scoreboard {
  transform: translateX(0);
}

.scoreboard-heading {
  margin: 14px 0 9px;
}

.scoreboard-heading strong {
  font-size: 13px;
  text-transform: uppercase;
}

.scoreboard-heading small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.scoreboard table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.scoreboard th {
  padding: 6px 3px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.scoreboard td {
  padding: 8px 3px;
  border-bottom: 1px solid var(--faint);
  color: var(--ink);
}

.scoreboard td:first-child,
.scoreboard th:first-child {
  width: 24px;
  color: var(--accent);
}

.scoreboard td:nth-child(3),
.scoreboard th:nth-child(3),
.scoreboard td:nth-child(4),
.scoreboard th:nth-child(4) {
  text-align: right;
}

.scoreboard tr.current td {
  color: var(--signal);
  background: rgba(255, 207, 104, 0.06);
}

.empty-score {
  height: 72px;
  color: var(--muted) !important;
  line-height: 1.5;
  text-align: center !important;
}

.start-screen {
  position: fixed;
  z-index: 4;
  inset: 66px 0 0;
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(390px, 470px);
  align-items: center;
  gap: 8vw;
  padding: 4vh max(5vw, 54px) 7vh;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.game-shell:not([data-state="title"]) .start-screen {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.intro-copy {
  width: min(650px, 100%);
}

.intro-copy h1 {
  max-width: 650px;
  margin: 18px 0 20px;
  font-size: clamp(48px, 6.6vw, 96px);
  font-weight: 860;
  letter-spacing: -0.072em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.intro-copy h1 em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 38px color-mix(in srgb, var(--accent) 28%, transparent);
}

.dek {
  max-width: 570px;
  margin: 0;
  color: #b1b8cf;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
}

.mission-notes {
  display: flex;
  gap: 1px;
  width: min(490px, 100%);
  margin-top: 28px;
  background: var(--faint);
}

.mission-notes span {
  flex: 1;
  padding: 11px 14px;
  color: var(--muted);
  background: rgba(6, 7, 17, 0.78);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-notes b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.launch-console {
  position: relative;
  width: 100%;
  padding: 19px;
  background: var(--panel-strong);
}

.callsign-field {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 2px 12px;
  margin: 17px 0 18px;
}

.callsign-field > span,
.launch-console legend {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.callsign-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.callsign-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.callsign-field small {
  grid-column: 2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.launch-console fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.launch-console legend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.launch-console legend small {
  color: var(--accent);
  font-size: 7px;
}

.mode-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mode-options label {
  cursor: pointer;
}

.mode-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-options label > span {
  position: relative;
  display: grid;
  min-height: 94px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--faint);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 130ms ease, background 130ms ease, transform 130ms ease;
}

.mode-options label > span:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.mode-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.mode-options input:focus-visible + span {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.mode-options kbd {
  position: absolute;
  top: 7px;
  right: 7px;
}

.mode-options strong,
.mode-options small {
  display: block;
}

.mode-options strong {
  margin-top: 24px;
  font-size: 12px;
  text-transform: uppercase;
}

.mode-options small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.35;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px 0 17px;
  border: 0;
  border-radius: 0;
  color: #071014;
  background: var(--accent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 20%, transparent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: filter 130ms ease, transform 130ms ease;
}

.launch-console .primary-button {
  margin-top: 16px;
}

.primary-button kbd {
  border-color: rgba(0, 0, 0, 0.28);
  color: #071014;
  background: rgba(0, 0, 0, 0.08);
}

.primary-button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0);
}

.launch-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.control-deck {
  position: fixed;
  z-index: 5;
  bottom: 16px;
  left: 50%;
  display: flex;
  width: min(790px, calc(100vw - 560px));
  min-width: 500px;
  height: 58px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--faint);
  background: rgba(7, 8, 20, 0.72);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.control-group {
  display: grid;
  height: 34px;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 9px;
  padding: 0 14px;
  border-right: 1px solid var(--faint);
}

.control-group:first-child {
  padding-left: 0;
}

.control-group > kbd,
.movement-keys > div {
  grid-column: 1;
  grid-row: 1 / 3;
}

.control-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-group strong {
  font-size: 9px;
  text-transform: uppercase;
}

.movement-keys > div {
  display: grid;
  grid-template-columns: repeat(3, 17px);
  grid-template-rows: repeat(2, 15px);
  gap: 2px;
}

.movement-keys kbd {
  min-width: 17px;
  min-height: 15px;
  padding: 0;
  font-size: 7px;
}

.movement-keys kbd:first-child {
  grid-column: 2;
}

.movement-keys kbd:nth-child(2) {
  grid-row: 2;
}

.movement-keys kbd:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.movement-keys kbd:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.status-strip {
  display: flex;
  min-width: 150px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-strip i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: status-pulse 1.4s steps(2, end) infinite;
}

.state-panel {
  position: fixed;
  z-index: 12;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100vw - 40px));
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -47%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.game-shell[data-state="paused"]::after,
.game-shell[data-state="level-clear"]::after,
.game-shell[data-state="game-over"]::after,
.game-shell[data-state="victory"]::after {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: rgba(3, 4, 12, 0.54);
  backdrop-filter: blur(2px);
  content: "";
}

.state-panel.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.state-panel h2 {
  margin: 15px 0 7px;
  font-size: 33px;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.state-message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.state-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 0;
  background: var(--faint);
}

.state-stats div {
  padding: 11px;
  background: rgba(6, 7, 17, 0.9);
}

.state-stats span,
.state-stats strong {
  display: block;
}

.state-stats span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-stats strong {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

.text-button {
  display: block;
  margin: 13px auto 0;
  padding: 7px 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.text-button:hover {
  color: var(--ink);
}

.text-button kbd {
  margin-left: 6px;
}

.damage-frame {
  z-index: 11;
  border: 0 solid var(--danger);
  opacity: 0;
  pointer-events: none;
}

.damage-frame.hit {
  animation: damage-pulse 500ms ease-out;
}

.desktop-notice {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}

@keyframes status-pulse {
  50% { opacity: 0.35; }
}

@keyframes damage-pulse {
  0% { border-width: 24px; opacity: 0.86; }
  100% { border-width: 0; opacity: 0; }
}

@media (max-width: 1120px) {
  .start-screen {
    grid-template-columns: minmax(400px, 1fr) 390px;
    gap: 36px;
    padding-right: 35px;
    padding-left: 35px;
  }

  .scoreboard {
    width: 224px;
  }

  .telemetry {
    width: 218px;
  }

  .control-deck {
    width: calc(100vw - 480px);
    min-width: 440px;
  }

  .control-group:nth-child(3) {
    display: none;
  }
}

@media (max-width: 840px) {
  .game-shell > :not(.desktop-notice, #scene, .screen-texture) {
    display: none;
  }

  .desktop-notice {
    position: fixed;
    z-index: 30;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(420px, calc(100vw - 40px));
    gap: 9px;
    padding: 25px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--panel-strong);
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .desktop-notice strong {
    font-size: 20px;
    text-transform: uppercase;
  }

  .desktop-notice span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-height: 720px) and (min-width: 841px) {
  .start-screen {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .intro-copy h1 {
    margin: 13px 0 14px;
    font-size: clamp(48px, 6vw, 76px);
  }

  .mission-notes {
    margin-top: 17px;
  }

  .launch-console {
    padding: 15px;
  }

  .callsign-field {
    margin: 12px 0;
  }

  .mode-options label > span {
    min-height: 80px;
  }

  .mode-options strong {
    margin-top: 18px;
  }

  .telemetry,
  .scoreboard,
  .live-score {
    top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
