@charset "UTF-8";
/* v4: inventory and free-flight classroom UI */
.menu-copy {
  max-height: calc(100dvh - 165px);
  overflow: auto;
  padding-right: 16px;
}
.menu-copy > label {
  display: inline-block;
  width: 46%;
  font-size: 12px;
  margin-right: 3%;
}
.menu .menu-copy h1 {
  font-size: clamp(40px, 4.5vw, 66px);
  margin: 20px 0;
}
.menu .intro {
  font-size: 15px;
  margin-bottom: 12px;
}
.inventory {
  position: fixed;
  left: 20px;
  top: 95px;
  width: 285px;
  max-height: calc(100dvh - 125px);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.inventory .mission-head {
  margin: 0;
}
.inventory #products {
  overflow: auto;
  min-height: 100px;
  max-height: 55vh;
}
.product {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px !important;
  margin-bottom: 5px;
  font-size: 12px !important;
}
.product small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.product.selected {
  outline: 2px solid var(--lime);
  background: #d5e7aa20;
}
.product:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
#selectedInfo {
  font-size: 11px;
  color: var(--lime);
}
#airportDistance {
  font-size: 10px;
  margin-top: 9px;
  color: var(--muted);
}
.field-tag {
  position: fixed;
  transform: translate(-50%, -100%);
  max-width: 175px;
  padding: 8px 10px;
  background: #11271ee8;
  border: 1px solid #d5e7aa88;
  border-radius: 5px;
  font-size: 11px;
  pointer-events: none;
  box-shadow: 0 4px 18px #0003;
}
.field-tag strong,
.field-tag em,
.field-tag small {
  display: block;
}
.field-tag em {
  font-size: 9px;
  color: #d4dec6;
  margin-top: 3px;
}
.field-tag small {
  font-size: 8px;
  color: var(--lime);
  margin-top: 4px;
}
.airport-tag {
  border-color: #71c5f4;
  color: #a4dfff;
}
.peer-tag {
  border-color: #85c3eb;
  color: #d6edff;
}
.live-board {
  position: fixed;
  right: 20px;
  top: 95px;
  width: 225px;
  padding: 14px;
  font-size: 11px;
  max-height: 32vh;
  overflow: auto;
}
.live-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ffffff18;
}
.throttle {
  min-width: 95px !important;
}
.throttle strong {
  display: block;
  font-size: 24px !important;
}
.throttle meter {
  width: 70px;
  height: 8px;
  display: block;
}
.check {
  display: flex !important;
  gap: 10px;
  align-items: center;
}
.check input {
  width: auto !important;
  margin: 0 !important;
}
.session-products {
  max-height: 230px;
  overflow: auto;
  padding: 8px;
  background: #0002;
}
.session-products label {
  font-size: 12px !important;
  margin: 8px 0 !important;
  display: flex !important;
  gap: 9px;
}
.session-products input {
  width: auto !important;
  margin: 0 !important;
}
textarea {
  width: 100%;
  min-height: 80px;
  background: #22382d;
  color: var(--ink);
  border: 1px solid var(--line);
}
.custom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
}
.feedback p {
  font-size: 12px;
  line-height: 1.5;
}
.inventory #refillBtn {
  font-size: 11px;
}
.inventory .muted {
  font-size: 10px;
}
.inventory #stockCount {
  font-size: 11px;
}
.flight-hud {
  z-index: 5;
}
#teacher .result-card {
  width: min(1050px, 95vw);
}
@media (max-width: 850px) {
  .inventory {
    width: 210px;
    left: 10px;
    padding: 10px;
    max-height: calc(100dvh - 260px);
  }
  .inventory #products {
    max-height: 32vh;
  }
  .live-board {
    width: 165px;
    right: 10px;
    top: 180px;
  }
  .throttle {
    min-width: 70px !important;
    padding: 0 6px !important;
  }
  .throttle meter {
    width: 50px;
  }
  .flight-hud .metric {
    min-width: 85px;
  }
  .field-tag {
    max-width: 140px;
    font-size: 10px;
  }
}
:root {
  color-scheme: dark;
  --ink: #f2f1e7;
  --muted: #c2c7bc;
  --lime: #d5e7aa;
  --green: #152a22;
  --line: #ffffff24;
  --amber: #edc580;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #22392c;
  color: var(--ink);
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff0d;
  color: var(--ink);
  padding: 12px 17px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #ffffff23;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.primary {
  background: var(--lime);
  color: #1a3023;
  border-color: var(--lime);
  font-weight: 650;
  min-height: 50px;
}
.primary:hover {
  background: #e5f2c3;
}
.text-btn {
  border: 0;
  background: none;
  padding: 10px 0;
  text-align: left;
}
.text-btn:hover {
  background: none;
  color: var(--lime);
}
[hidden] {
  display: none !important;
}
#flightCanvas {
  display: block;
  width: 100vw;
  height: 100dvh;
  outline: none;
  touch-action: none;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0e211d54, transparent 25%, transparent 68%, #0e211d72);
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  border-bottom: 1px solid #fff2;
  background: linear-gradient(#10271d66, #10271d00);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
.brand svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 3px;
}
.game-name {
  font-size: 13px;
  letter-spacing: 3.5px;
  font-weight: 600;
}
.game-name span {
  color: var(--lime);
  font-size: 9px;
  vertical-align: super;
  letter-spacing: 0;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.quiet {
  font-size: 10px;
  color: #eee9;
  margin-right: 12px;
}
.icon-btn {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 20px;
  padding: 0;
  background: #12291f55;
}
.overlay {
  position: fixed;
  inset: 76px 0 0;
  z-index: 10;
}
.menu {
  background: linear-gradient(90deg, #11251ed9 0, #11251e9c 27%, #11251e0a 66%);
  padding: 9vh 6vw 0;
}
.menu-copy {
  max-width: 590px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  line-height: 1.5;
  color: var(--lime);
}
.menu h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: -2.2px;
  margin: 25px 0 24px;
}
.menu h1 em {
  color: var(--lime);
}
.intro {
  font-size: 17px;
  line-height: 1.65;
  color: #e2e5d9c9;
  margin-bottom: 28px;
}
.menu-buttons {
  display: flex;
  align-items: center;
  gap: 28px;
}
.menu-buttons .primary {
  min-width: 210px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-buttons .primary span {
  font-size: 23px;
}
.menu-buttons .text-btn {
  font-size: 13px;
}
.menu-facts {
  display: flex;
  gap: 34px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 23px;
  max-width: 470px;
}
.menu-facts strong {
  font-size: 22px;
  font-weight: 450;
  display: block;
}
.menu-facts small {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1px;
  display: block;
  margin-top: 7px;
}
.ranking-link {
  margin-top: 20px;
  font-size: 12px;
}
.region-caption {
  position: absolute;
  right: 40px;
  bottom: 110px;
  text-align: right;
}
.region-caption span {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--lime);
}
.region-caption strong {
  display: block;
  font-size: 18px;
  font-weight: 450;
  margin: 10px 0 6px;
}
.region-caption small {
  color: var(--muted);
  font-size: 12px;
}
.education-note {
  position: absolute;
  bottom: 18px;
  left: 6vw;
  max-width: 590px;
  font-size: 10px;
  line-height: 1.6;
  color: #d5ddce99;
}
.glass {
  background: #11271edc;
  border: 1px solid #e4edd029;
  box-shadow: 0 6px 40px #0002;
  backdrop-filter: blur(16px);
  border-radius: 6px;
}
.scoreboard {
  position: fixed;
  top: 91px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 13px 9px;
  min-width: 310px;
}
.scoreboard > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.scoreboard > div:last-child {
  border: 0;
}
.scoreboard small {
  font-size: 8px;
  color: #d2d9ca;
  letter-spacing: 1.4px;
  display: block;
  margin-bottom: 5px;
}
.scoreboard strong {
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}
.mission {
  position: fixed;
  top: 95px;
  left: 24px;
  width: 290px;
  padding: 21px;
}
.mission-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.mission-head .eyebrow {
  font-size: 9px;
}
.level {
  font-size: 9px;
  padding: 4px 7px;
  background: #ffffff0d;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.overline {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.7px;
}
.mission h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin: 9px 0;
}
.scientific {
  margin: 0 0 13px;
  color: #dce3d2;
  font-size: 12px;
  font-style: italic;
}
.target-meta {
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.5px;
}
.target-description {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 18px;
}
.alternative {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid #d5e7aa66;
  color: var(--lime);
  border-radius: 4px;
  font-size: 13px;
}
.alternative small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #a9b79e;
  margin-bottom: 5px;
}
.alternative strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
  display: block;
}
.distance {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.alternate .letter {
  color: var(--amber);
  border-color: #edc58066;
}
.alternative.active {
  color: var(--lime);
  background: #c9e08a0a;
}
.mission-clock {
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: var(--muted);
}
.mission-clock b {
  color: var(--ink);
}
.world-marker {
  position: fixed;
  z-index: 4;
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  transform: translate(-50%, -100%);
  max-width: 215px;
}
.world-marker > span {
  font-size: 19px;
  border: 1px solid var(--lime);
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #11271ede;
  color: var(--lime);
  border-radius: 4px;
}
.world-marker > div {
  border-left: 2px solid var(--lime);
  background: #13271ce0;
  padding: 7px 10px;
  backdrop-filter: blur(8px);
  border-radius: 3px;
  min-width: 95px;
}
.world-marker small {
  font-size: 7px;
  letter-spacing: 1.3px;
  display: block;
  color: var(--lime);
}
.world-marker strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.world-marker em {
  font-size: 9px;
  font-style: normal;
  color: #ddd;
}
.marker-b > span {
  border-color: var(--amber);
  color: var(--amber);
}
.marker-b > div {
  border-color: var(--amber);
}
.marker-b small {
  color: var(--amber);
}
.feedback {
  position: fixed;
  right: 24px;
  top: 100px;
  width: 285px;
  padding: 18px;
  z-index: 6;
}
.feedback > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.feedback span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--lime);
}
.feedback strong {
  font-size: 24px;
  font-weight: 500;
  color: var(--lime);
}
.feedback.bad span,
.feedback.bad strong {
  color: #f5b7a5;
}
.feedback p {
  font-size: 13px;
  margin: 12px 0 3px;
}
.feedback .text-btn {
  font-size: 10px;
  color: var(--muted);
}
.flight-message {
  position: fixed;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffefbc;
  text-shadow: 0 2px 5px #000;
  max-width: 260px;
  text-align: center;
}
.pass-guide {
  position: fixed;
  bottom: 155px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  text-align: center;
  text-shadow: 0 1px 6px #000b;
}
.pass-guide > span {
  font-size: 13px;
  display: block;
  margin-bottom: 13px;
}
.coverage-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coverage-line small {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.coverage-line strong {
  font-size: 10px;
  color: var(--lime);
}
.coverage-track {
  height: 3px;
  background: #fff3;
  margin-top: 6px;
}
.coverage-track > div {
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px #deefac;
}
.flight-hud {
  position: fixed;
  bottom: 51px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  min-height: 83px;
  padding: 13px 10px;
}
.metric {
  min-width: 127px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.metric > small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.1px;
  color: var(--muted);
  white-space: nowrap;
}
.metric > small span {
  opacity: 0.5;
  font-size: 6px;
}
.metric > strong {
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.metric strong small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 5px;
  color: #ddd;
}
.metric-note {
  display: block;
  font-size: 7px;
  color: #b6c4aa;
  margin-top: 2px;
}
.spray-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 0;
  background: none;
  text-align: left;
  min-width: 240px;
  height: 60px;
}
.spray-toggle small {
  display: block;
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.spray-toggle strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.7px;
}
.spray-icon {
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
}
.spray-toggle.active .spray-icon,
.spray-toggle.active strong {
  color: var(--lime);
}
kbd {
  font: 8px system-ui;
  border: 1px solid #fff3;
  color: var(--muted);
  border-radius: 3px;
  padding: 5px;
  margin-left: auto;
}
.spray-toggle.active {
  background: #cee99412;
}
.minimap {
  position: fixed;
  bottom: 47px;
  right: 24px;
  width: 178px;
  padding: 12px;
}
.minimap > div {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: var(--muted);
}
.minimap > div small {
  font-size: 7px;
  letter-spacing: 0.8px;
}
.minimap canvas {
  display: block;
  width: 100%;
  height: 132px;
  margin: 8px 0;
}
.minimap > small {
  display: flex;
  justify-content: space-between;
  font-size: 6px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.keyboard-hint {
  position: fixed;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #ecf0dfb3;
  white-space: nowrap;
}
.keyboard-hint span {
  color: #d3dfc37d;
  margin: 0 4px;
}
.touch-controls {
  display: none;
}
.loading {
  position: fixed;
  inset: 0;
  background: #142a22;
  z-index: 50;
  display: grid;
  place-items: center;
}
.loading > div {
  width: min(430px, 85vw);
}
.loading h1 {
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 400;
  margin: 25px 0 35px;
}
.loading sup {
  font: 12px system-ui;
  color: var(--lime);
}
.loading p {
  font-size: 12px;
  color: var(--muted);
}
.loading .eyebrow {
  font-size: 9px;
  color: var(--lime);
}
progress {
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  background: #fff2;
  margin: 15px 0;
}
progress::-webkit-progress-bar {
  background: #fff2;
}
progress::-webkit-progress-value {
  background: var(--lime);
}
.center-overlay {
  display: grid;
  place-items: center;
  background: #0b211a8a;
  padding: 25px;
  backdrop-filter: blur(5px);
}
.result-card {
  width: min(820px, 95vw);
  max-height: calc(100dvh - 125px);
  overflow: auto;
  padding: 30px 38px;
}
.result-card h2,
dialog h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 10px 0 15px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 24px 0;
}
.result-stats > div {
  background: #132920;
  padding: 15px;
}
.result-stats strong {
  font-size: 29px;
  font-weight: 500;
  display: block;
  margin-top: 7px;
}
.result-stats small {
  font-size: 9px;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 14px 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--lime);
}
.history {
  max-height: 200px;
  overflow: auto;
  margin-top: 15px;
}
.history article {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history p {
  color: var(--muted);
  margin: 5px 0;
}
.name-label {
  display: block;
  font-size: 11px;
  margin: 20px 0 12px;
  color: var(--muted);
}
input:not([type='range']),
select {
  width: 100%;
  background: #ffffff09;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px;
  border-radius: 4px;
  margin: 9px 0 15px;
}
select option {
  background: #162b22;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--lime);
  margin: 18px 0;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.actions .text-btn {
  margin-left: auto;
}
.table-scroll {
  overflow: auto;
  max-height: 45vh;
  margin: 24px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 9px;
  color: var(--lime);
  font-weight: 400;
}
#saveStatus {
  font-size: 12px;
  color: var(--lime);
}
dialog {
  border: 1px solid #e5eddb35;
  color: var(--ink);
  background: #14291ff5;
  border-radius: 9px;
  max-width: 530px;
  width: 92vw;
  max-height: 85dvh;
  padding: 25px 30px;
  backdrop-filter: blur(20px);
}
dialog::backdrop {
  background: #08171099;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-head button {
  padding: 3px 9px;
  font-size: 24px;
  border: 0;
}
.dialog-head .eyebrow {
  font-size: 8px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.75;
  color: #d0d8c8;
}
dialog li {
  padding-left: 6px;
  margin-bottom: 12px;
}
dialog ol {
  padding-left: 18px;
}
dialog label {
  font-size: 12px;
  display: block;
  margin-top: 20px;
}
#pausePanel > button {
  display: block;
  width: 100%;
  margin-top: 12px;
}
#pausePanel > .text-btn {
  text-align: center;
  color: var(--muted);
}
.key-bindings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 15px;
}
.key-bindings button {
  font-size: 10px;
  padding: 9px;
}
#keyStatus {
  font-size: 11px;
}
body.cinema .topbar,
body.cinema #hud,
body.cinema .vignette {
  display: none !important;
}
.dev-panel {
  position: fixed;
  right: 12px;
  top: 84px;
  z-index: 25;
  width: 260px;
  background: #101d19ee;
  border: 1px solid #d9eb9d66;
  border-radius: 5px;
  padding: 12px;
  font-size: 10px;
  max-height: 70vh;
  overflow: auto;
}
.dev-panel button {
  padding: 6px;
  margin: 3px;
  font-size: 10px;
}
.dev-panel pre {
  font-size: 9px;
  white-space: pre-wrap;
}
.dev-panel label {
  display: block;
  font-size: 10px;
}
.dev-panel input,
.dev-panel select {
  font-size: 10px;
  padding: 6px;
  margin: 4px 0;
}
.dev-panel details {
  margin: 0;
  border: 0;
  padding: 0;
}
@media (max-height: 760px) {
  .menu {
    padding-top: 5vh;
  }
  .menu h1 {
    font-size: 54px;
    margin: 16px 0;
  }
  .intro {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .menu-facts {
    margin-top: 24px;
    padding-top: 18px;
  }
  .mission {
    padding: 16px;
    top: 91px;
    width: 260px;
  }
  .mission-head {
    margin-bottom: 15px;
  }
  .mission h2 {
    font-size: 24px;
  }
  .target-description {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .alternative {
    padding: 10px 0;
  }
  .region-caption {
    bottom: 87px;
  }
  .pass-guide {
    bottom: 145px;
  }
  .result-card {
    padding: 24px;
  }
}
@media (max-width: 1050px) {
  .quiet {
    display: none;
  }
  .mission {
    width: 238px;
    left: 15px;
  }
  .mission h2 {
    font-size: 23px;
  }
  .target-description {
    display: none;
  }
  .scoreboard {
    left: auto;
    right: 15px;
    transform: none;
    min-width: 240px;
  }
  .scoreboard > div {
    padding: 0 17px;
  }
  .feedback {
    top: 177px;
    width: 240px;
    right: 15px;
  }
  .minimap {
    width: 140px;
    right: 15px;
  }
  .minimap canvas {
    height: 100px;
  }
  .flight-hud {
    left: 44%;
  }
  .pass-guide {
    left: 48%;
    width: 290px;
  }
  .metric {
    min-width: 100px;
    padding: 0 12px;
  }
  .spray-toggle {
    min-width: 215px;
    gap: 10px;
  }
  .region-caption {
    display: none;
  }
}
@media (pointer: coarse) {
  .touch-controls {
    position: fixed;
    bottom: 170px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    pointer-events: none;
  }
  .touch-controls > div {
    pointer-events: auto;
    text-align: center;
  }
  .touch-controls button {
    width: 45px;
    height: 43px;
    padding: 0;
    font-size: 20px;
    background: #152d22b8;
    touch-action: none;
  }
  .keyboard-hint,
  .minimap {
    display: none;
  }
}
@media (max-width: 680px) {
  .topbar {
    height: 59px;
    padding: 0 14px;
  }
  .brand {
    font-size: 15px;
  }
  .brand svg {
    width: 24px;
  }
  .brand small {
    font-size: 6px;
  }
  .game-name {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .icon-btn {
    width: 29px;
    height: 29px;
    font-size: 17px;
  }
  .top-actions {
    gap: 4px;
  }
  .overlay {
    inset: 59px 0 0;
  }
  .menu {
    padding: 9vh 7vw 0;
    background: linear-gradient(90deg, #13271ee6, #13271e88, transparent);
  }
  .menu h1 {
    font-size: 49px;
  }
  .menu-facts {
    gap: 24px;
  }
  .menu-facts small {
    font-size: 7px;
  }
  .education-note {
    font-size: 8px;
    max-width: 85vw;
    left: 7vw;
    bottom: 15px;
  }
  .menu-buttons {
    gap: 20px;
  }
  .menu-buttons .primary {
    min-width: 170px;
  }
  .mission {
    top: 70px;
    left: 10px;
    width: 200px;
    padding: 12px;
  }
  .mission-head {
    margin-bottom: 10px;
  }
  .mission-head .eyebrow {
    font-size: 7px;
  }
  .level {
    font-size: 7px;
  }
  .mission h2 {
    font-size: 20px;
  }
  .scientific {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .target-meta {
    font-size: 8px;
  }
  .alternative {
    padding: 9px 0;
    gap: 7px;
  }
  .alternative strong {
    font-size: 10px;
  }
  .letter {
    height: 25px;
    width: 22px;
    font-size: 10px;
  }
  .distance {
    font-size: 8px;
  }
  .mission-clock {
    font-size: 8px;
  }
  .scoreboard {
    top: 70px;
    right: 10px;
    padding: 9px 3px;
    min-width: 0;
    display: block;
  }
  .scoreboard > div {
    padding: 7px 10px;
    border: 0;
  }
  .scoreboard small {
    font-size: 6px;
  }
  .scoreboard strong {
    font-size: 20px;
  }
  .feedback {
    top: 248px;
    right: 10px;
    width: 150px;
    padding: 10px;
  }
  .feedback > div {
    display: block;
  }
  .feedback strong {
    display: block;
    margin-top: 5px;
    font-size: 21px;
  }
  .feedback span {
    font-size: 8px;
  }
  .feedback p {
    font-size: 10px;
  }
  .flight-hud {
    bottom: 29px;
    left: 50%;
    width: calc(100% - 20px);
    min-height: 75px;
    padding: 10px 0;
    justify-content: center;
  }
  .metric {
    padding: 0 10px;
    min-width: 85px;
  }
  .metric > strong {
    font-size: 23px;
  }
  .metric-note {
    font-size: 6px;
  }
  .spray-toggle {
    padding: 0 10px;
    min-width: 0;
    gap: 8px;
  }
  .spray-toggle strong {
    font-size: 10px;
  }
  .spray-toggle small {
    font-size: 6px;
  }
  .spray-icon {
    font-size: 17px;
  }
  kbd {
    display: none;
  }
  .pass-guide {
    bottom: 123px;
    left: 50%;
    width: 240px;
  }
  .pass-guide > span {
    font-size: 11px;
  }
  .coverage-line small {
    font-size: 7px;
  }
  .minimap {
    display: none;
  }
  .keyboard-hint {
    font-size: 6px;
    bottom: 10px;
    width: 100%;
    text-align: center;
  }
  .flight-message {
    top: 370px;
    font-size: 10px;
  }
  .world-marker {
    max-width: 150px;
  }
  .world-marker > span {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .world-marker > div {
    padding: 5px;
  }
  .world-marker strong {
    font-size: 9px;
  }
  .center-overlay {
    padding: 12px;
  }
  .result-card {
    padding: 20px;
    max-height: calc(100dvh - 85px);
  }
  .result-stats > div {
    padding: 11px;
  }
  .result-stats strong {
    font-size: 22px;
  }
  .actions button {
    padding: 10px;
    font-size: 12px;
  }
  .result-card h2,
  dialog h2 {
    font-size: 29px;
  }
  .dev-panel {
    width: 205px;
  }
  .touch-controls {
    bottom: 185px;
  }
}
