.flight-section {
  --flight-space: #02040b;
  --flight-space-2: #090d24;
  --flight-hud: rgba(5, 7, 19, .78);
  --flight-panel: rgba(10, 16, 34, .84);
  --flight-line: rgba(103, 232, 249, .23);
  --flight-cyan: var(--cyan);
  --flight-violet: var(--violet);
  --flight-warning: var(--amber);
  --flight-arrival: #ffd66b;
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 12%, rgba(67, 217, 255, .09), transparent 28rem),
    radial-gradient(circle at 88% 32%, rgba(131, 103, 255, .12), transparent 34rem),
    linear-gradient(180deg, #050713, #060a18 46%, #050713);
}

.flight-section::before,
.flight-section::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(103, 232, 249, .11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.flight-section::before {
  top: 4%;
  left: -10rem;
  width: 32rem;
  height: 32rem;
}

.flight-section::after {
  right: -16rem;
  bottom: 7%;
  width: 46rem;
  height: 46rem;
  border-color: rgba(131, 103, 255, .1);
}

.flight-heading {
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 70px);
}

.flight-heading h2 span {
  color: transparent;
  background: linear-gradient(90deg, #dffaff, var(--flight-cyan) 42%, #aa91ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.flight-heading .heading-copy p:first-child {
  color: #c8d1e4;
}

.flight-scale-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px !important;
  color: #8f9bb4 !important;
  font-size: .78rem !important;
  line-height: 1.65 !important;
}

.flight-scale-note span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(255, 178, 44, .34);
  border-radius: 999px;
  color: #ffd386;
  font-family: var(--font-geist-mono), monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.flight-game {
  position: relative;
  min-width: 0;
}

.flight-game .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.flight-stage {
  position: relative;
  isolation: isolate;
  contain: layout paint;
  width: 100%;
  height: clamp(640px, calc(100svh - 104px), 820px);
  min-height: 0;
  overflow: clip;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 26px;
  background: var(--flight-space);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, .42),
    inset 0 0 70px rgba(67, 217, 255, .035);
}

.flight-stage::before {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(67, 217, 255, .1), transparent 12%, transparent 88%, rgba(131, 103, 255, .08)),
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 22%, transparent 74%, rgba(0, 0, 0, .32));
  content: "";
  pointer-events: none;
}

.flight-stage::after {
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, .48) 115%);
  content: "";
  pointer-events: none;
}

.flight-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  cursor: crosshair;
}

.flight-canvas:focus-visible {
  outline-offset: -5px;
}

.flight-scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: .09;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(118, 225, 255, .18) 4px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.flight-corner {
  position: absolute;
  z-index: 8;
  width: 34px;
  height: 34px;
  border-color: rgba(103, 232, 249, .62);
  pointer-events: none;
}

.flight-corner-one { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.flight-corner-two { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.flight-corner-three { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.flight-corner-four { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }

.flight-hud {
  position: absolute;
  top: 22px;
  right: 22px;
  left: 22px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.45fr) minmax(190px, .8fr);
  gap: 10px;
  pointer-events: none;
}

.flight-hud-card,
.flight-progress-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--flight-line);
  border-radius: 15px;
  background: var(--flight-hud);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.flight-hud-card > span,
.flight-progress-top > span,
.flight-hud-card small {
  display: block;
  color: #8290aa;
  font-family: var(--font-geist-mono), monospace;
  font-size: .61rem;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.flight-hud-card strong {
  display: block;
  margin-top: 5px;
  color: #f3f8ff;
  font-size: clamp(.78rem, 1.15vw, .94rem);
  font-weight: 590;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.flight-hud-card small {
  margin-top: 5px;
  color: var(--flight-cyan);
  letter-spacing: .05em;
  text-transform: none;
}

.flight-target-card {
  text-align: right;
}

.flight-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flight-progress-top > * {
  min-width: 0;
}

.flight-progress-top > span {
  overflow-wrap: anywhere;
}

.flight-progress-top strong {
  flex: 0 0 auto;
  color: #e8fbff;
  font-family: var(--font-geist-mono), monospace;
  font-size: .78rem;
}

.flight-progress-card progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  accent-color: var(--flight-cyan);
}

.flight-progress-card progress::-webkit-progress-bar {
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

.flight-progress-card progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--flight-cyan), var(--flight-violet), var(--flight-warning));
  box-shadow: 0 0 14px rgba(67, 217, 255, .48);
}

.flight-progress-card progress::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--flight-cyan), var(--flight-violet), var(--flight-warning));
}

.flight-top-actions {
  display: flex;
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  gap: 8px;
  pointer-events: auto;
}

.flight-icon-button,
.flight-cruise-button,
.flight-launch-button,
.flight-secondary-button {
  border: 1px solid var(--flight-line);
  color: #dff9ff;
  background: rgba(5, 7, 19, .8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.flight-icon-button:hover,
.flight-cruise-button:hover,
.flight-secondary-button:hover {
  border-color: rgba(103, 232, 249, .58);
  background: rgba(14, 27, 48, .92);
}

.flight-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-geist-mono), monospace;
  font-size: .72rem;
}

.flight-cruise-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  font-family: var(--font-geist-mono), monospace;
  font-size: .61rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.flight-cruise-button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7e8aa3;
  box-shadow: 0 0 0 transparent;
}

.flight-cruise-button[aria-pressed="true"] i {
  background: var(--observed);
  box-shadow: 0 0 11px var(--observed);
}

.flight-radar {
  position: relative;
  z-index: 12;
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  width: 134px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, .18);
  border-radius: 50%;
  opacity: .84;
  background:
    linear-gradient(rgba(103, 232, 249, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .08) 1px, transparent 1px),
    radial-gradient(circle, rgba(67, 217, 255, .1), rgba(5, 7, 19, .78) 65%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  box-shadow: inset 0 0 30px rgba(67, 217, 255, .08);
}

.flight-radar::before,
.flight-radar::after {
  position: absolute;
  inset: 50% auto auto 50%;
  content: "";
  transform-origin: 0 0;
}

.flight-radar::before {
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, var(--flight-cyan), transparent);
  animation: flight-radar-sweep 4s linear infinite;
}

.flight-radar::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flight-warning);
  box-shadow: 32px -24px 0 -1px var(--flight-cyan), -34px 19px 0 -2px #fff, 0 0 12px var(--flight-warning);
  transform: translate(-50%, -50%);
}

.flight-radar span {
  position: absolute;
  bottom: 16px;
  left: 50%;
  color: rgba(220, 248, 255, .64);
  font-family: var(--font-geist-mono), monospace;
  font-size: .48rem;
  letter-spacing: .08em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.flight-landmark {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas:
    "index fact distance"
    "title fact distance";
  grid-template-columns: minmax(190px, .9fr) minmax(280px, 1.7fr) minmax(150px, .72fr);
  align-items: center;
  gap: 5px 28px;
  width: 100%;
  min-height: 142px;
  margin-top: 12px;
  padding: 19px 20px 20px;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(67, 217, 255, .07), transparent 46%),
    var(--flight-panel);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color .3s ease, transform .3s ease, opacity .3s ease;
}

.flight-landmark.is-new {
  border-color: rgba(103, 232, 249, .62);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .32), inset 3px 0 rgba(103, 232, 249, .42);
}

.flight-landmark-index {
  grid-area: index;
  margin: 0;
  color: var(--flight-cyan);
  font-family: var(--font-geist-mono), monospace;
  font-size: .59rem;
  font-weight: 670;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.flight-landmark h3 {
  grid-area: title;
  margin: 8px 0 8px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 590;
  letter-spacing: -.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.flight-landmark > p:not(.flight-landmark-index) {
  grid-area: fact;
  margin: 0;
  color: #b8c2d6;
  font-size: .76rem;
  line-height: 1.62;
}

.flight-landmark > span {
  grid-area: distance;
  display: block;
  margin: 0;
  color: #8795ae;
  font-family: var(--font-geist-mono), monospace;
  font-size: .59rem;
  line-height: 1.45;
  text-align: right;
}

.flight-touch-hint {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(103, 232, 249, .18);
  border-radius: 13px;
  background: rgba(10, 16, 34, .58);
  color: #aab8cf;
  font-family: var(--font-geist-mono), monospace;
  font-size: .62rem;
  line-height: 1.55;
}

.flight-touch-hint strong {
  flex: 0 0 auto;
  color: var(--flight-cyan);
  font-size: .57rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.flight-touch-hint span {
  min-width: 0;
}

.flight-steer-controls {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.flight-steer-button {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 13px;
  background: rgba(10, 16, 34, .7);
  color: #dff9ff;
  font-family: var(--font-geist-mono), monospace;
  font-size: .68rem;
  font-weight: 680;
  letter-spacing: .035em;
  cursor: pointer;
  touch-action: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}

.flight-steer-button:not(:disabled):is(:hover, .is-active) {
  border-color: rgba(103, 232, 249, .68);
  background: rgba(25, 52, 79, .94);
  transform: translateY(-1px);
}

.flight-steer-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.flight-start-panel,
.flight-arrival {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(510px, calc(100% - 36px));
  max-height: calc(100% - 38px);
  padding: clamp(24px, 4vw, 38px);
  overflow: auto;
  border: 1px solid rgba(103, 232, 249, .34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(67, 217, 255, .13), transparent 48%),
    rgba(5, 7, 19, .9);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
  text-align: center;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.flight-start-panel > span,
.flight-arrival > p:first-of-type {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(103, 232, 249, .28);
  border-radius: 999px;
  color: #dffaff;
  font-family: var(--font-geist-mono), monospace;
  font-size: .61rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.flight-start-panel > span::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--observed);
  box-shadow: 0 0 10px var(--observed);
  content: "";
}

.flight-start-panel h3,
.flight-arrival h3 {
  margin: 18px auto 12px;
  color: #f7fbff;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 590;
  letter-spacing: -.05em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.flight-start-panel p,
.flight-arrival p {
  margin: 0 auto;
  color: #aebad0;
  font-size: .88rem;
  line-height: 1.66;
}

.flight-start-panel .flight-panel-actions + p {
  margin-top: 18px;
}

.flight-panel-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.flight-launch-button,
.flight-secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 680;
}

.flight-launch-button {
  border-color: transparent;
  background: #eefdff;
  color: #07111b;
  box-shadow: 0 14px 42px rgba(67, 217, 255, .2);
}

.flight-launch-button:hover {
  background: #fff;
  transform: translateY(-2px);
}

.flight-secondary-button {
  color: #e6f9ff;
}

.flight-panel-hint {
  display: block;
  margin-top: 17px;
  color: #77859e;
  font-family: var(--font-geist-mono), monospace;
  font-size: .58rem;
  line-height: 1.55;
}

.flight-game:is([data-flight-state="flying"], [data-flight-state="paused"], [data-flight-state="arrived"]) .flight-start-panel {
  display: none;
}

.flight-game[data-flight-state="idle"] .flight-top-actions,
.flight-game[data-flight-state="idle"] .flight-key-help,
.flight-game[data-flight-state="arrived"] .flight-top-actions,
.flight-game[data-flight-state="arrived"] .flight-key-help,
.flight-game[data-flight-state="unsupported"] .flight-top-actions,
.flight-game[data-flight-state="unsupported"] .flight-key-help {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.flight-game:is([data-flight-state="arrived"], [data-flight-state="unsupported"]) :is(.flight-touch-hint, .flight-steer-controls) {
  display: none;
}

.flight-game[data-flight-state="flying"] .flight-canvas {
  touch-action: pan-y pinch-zoom;
}

.flight-game[data-flight-state="paused"] .flight-canvas {
  filter: saturate(.7) brightness(.62);
}

.flight-pause-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 34;
  display: none;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(5, 7, 19, .86);
  color: #fff;
  font-family: var(--font-geist-mono), monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.flight-game[data-flight-state="paused"] .flight-pause-banner {
  display: block;
}

.flight-arrival[hidden] {
  display: none;
}

.flight-arrival {
  border-color: rgba(255, 214, 107, .55);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 214, 107, .19), transparent 42%),
    rgba(8, 8, 17, .94);
}

.flight-arrival > p:first-of-type {
  margin: 0;
  border-color: rgba(255, 214, 107, .35);
  color: #ffe8a6;
}

.flight-arrival h3 {
  color: #fff4c7;
  text-shadow: 0 0 28px rgba(255, 214, 107, .28);
}

.flight-golden-star {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  background: linear-gradient(145deg, #fff9cc, #ffd34d 52%, #e79614);
  clip-path: polygon(50% 0%, 61% 35%, 98% 36%, 68% 57%, 79% 94%, 50% 72%, 20% 94%, 31% 57%, 2% 36%, 39% 35%);
  filter: drop-shadow(0 0 20px rgba(255, 207, 63, .82));
  animation: flight-star-arrival 1.3s cubic-bezier(.17, .89, .25, 1.3) both, flight-star-glow 2.8s 1.3s ease-in-out infinite;
}

.flight-golden-star::before,
.flight-golden-star::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 126, .82), transparent);
  content: "";
  transform: translate(-50%, -50%);
}

.flight-golden-star::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.flight-key-help {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 22;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 420px;
  margin: 0;
  color: #8290a7;
  font-family: var(--font-geist-mono), monospace;
  font-size: .57rem;
  line-height: 1.55;
  text-align: right;
  transition: opacity .2s ease;
}

.flight-key-help kbd {
  display: inline-grid;
  min-width: 27px;
  min-height: 27px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(5, 7, 19, .72);
  color: #dce7f8;
  font-family: inherit;
  box-shadow: inset 0 -2px rgba(255, 255, 255, .04);
}

.flight-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 16, 34, .58);
}

.flight-route-heading {
  min-width: 0;
}

.flight-route-heading span {
  display: block;
  color: var(--flight-cyan);
  font-family: var(--font-geist-mono), monospace;
  font-size: .59rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.flight-route-heading p {
  margin: 5px 0 0;
  color: #8e9ab1;
  font-size: .72rem;
}

.flight-route ol {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flight-route li {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #8290a6;
  font-family: var(--font-geist-mono), monospace;
  font-size: .54rem;
  line-height: 1.3;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.flight-route li.is-visited {
  border-color: rgba(46, 211, 183, .28);
  color: #9fe8d8;
  background: rgba(46, 211, 183, .07);
}

.flight-route li[aria-current="step"] {
  border-color: rgba(103, 232, 249, .52);
  color: #e8fcff;
  background: rgba(67, 217, 255, .12);
  box-shadow: 0 0 14px rgba(67, 217, 255, .1);
}

@keyframes flight-radar-sweep {
  to { transform: rotate(360deg); }
}

@keyframes flight-star-arrival {
  from { opacity: 0; transform: scale(.15) rotate(-65deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes flight-star-glow {
  50% { filter: drop-shadow(0 0 34px rgba(255, 207, 63, .98)); transform: scale(1.06); }
}

@media (max-width: 1120px) {
  .flight-stage { height: clamp(620px, calc(100svh - 88px), 780px); }
  .flight-hud { grid-template-columns: minmax(0, 1fr) minmax(250px, 1.35fr); }
  .flight-target-card { display: none; }
  .flight-top-actions { grid-column: 2; }
  .flight-radar { display: none; }
}

@media (max-width: 900px) {
  .flight-heading { margin-bottom: 42px; }
  .flight-stage { height: clamp(580px, calc(100svh - var(--header-height)), 740px); border-radius: 21px; }
  .flight-hud { top: 16px; right: 16px; left: 16px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
  .flight-hud-card,
  .flight-progress-card { padding: 11px 12px; }
  .flight-landmark {
    grid-template-areas:
      "index distance"
      "title distance"
      "fact fact";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 22px;
  }
  .flight-key-help { right: 18px; bottom: 18px; max-width: 320px; }
  .flight-route { grid-template-columns: minmax(0, 1fr); }
  .flight-route ol { justify-content: flex-start; max-width: none; }
}

@media (hover: none), (pointer: coarse) {
  .flight-touch-hint { display: flex; }
  .flight-steer-controls { display: grid; }
  .flight-key-help { display: none; }
  .flight-canvas { cursor: default; }
}

@media (max-width: 640px) {
  .flight-scale-note { flex-direction: column; }
  .flight-stage { height: clamp(480px, 72svh, 600px); border-radius: 18px; }
  .flight-hud { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .flight-region-card { display: none; }
  .flight-progress-card { padding: 10px 11px; }
  .flight-progress-card progress { margin-top: 8px; }
  .flight-top-actions { grid-column: 1; grid-row: auto; }
  .flight-touch-hint { display: flex; }
  .flight-steer-controls { display: grid; }
  .flight-landmark {
    grid-template-areas:
      "index"
      "title"
      "fact"
      "distance";
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    padding: 14px 15px;
  }
  .flight-landmark h3 { margin: 5px 0; }
  .flight-landmark > span { margin-top: 5px; text-align: left; }
  .flight-key-help { display: none; }
  .flight-start-panel h3,
  .flight-arrival h3 { font-size: clamp(1.15rem, 6.5vw, 1.9rem); }
  .flight-route { padding: 16px; }
}

@media (max-width: 380px) {
  .flight-stage { height: clamp(480px, 74svh, 560px); }
  .flight-hud { top: 10px; right: 10px; left: 10px; }
  .flight-hud-card,
  .flight-progress-card { border-radius: 12px; }
  .flight-cruise-button { min-width: 44px; justify-content: center; padding: 0 10px; }
  .flight-cruise-button span { display: none; }
  .flight-cruise-button i { display: none; }
  .flight-cruise-button::after { color: #9ca9bf; font-size: .43rem; letter-spacing: .04em; content: "AUTO"; }
  .flight-cruise-button[aria-pressed="true"]::after { color: #9fe8d8; text-shadow: 0 0 9px rgba(46, 211, 183, .55); }
  .flight-touch-hint { flex-direction: column; gap: 5px; }
  .flight-start-panel,
  .flight-arrival { width: calc(100% - 22px); max-height: calc(100% - 22px); padding: 22px 16px; border-radius: 18px; }
  .flight-start-panel h3,
  .flight-arrival h3 { font-size: clamp(1.15rem, 7vw, 1.9rem); }
  .flight-panel-actions { display: grid; }
  .flight-launch-button,
  .flight-secondary-button { width: 100%; }
  .flight-route ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-route li { text-align: center; overflow-wrap: anywhere; }
}

@media (max-width: 280px) {
  .flight-stage { height: 500px; }
  .flight-route ol { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 641px) and (max-width: 720px) {
  .flight-key-help { max-width: 250px; }
}

@media (max-width: 1280px) and (max-height: 560px) and (orientation: landscape) {
  .flight-section { padding-top: 70px; padding-bottom: 70px; }
  .flight-stage { height: max(272px, calc(100dvh - var(--header-height))); min-height: 272px; }
  .flight-hud { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); left: max(8px, env(safe-area-inset-left)); grid-template-columns: minmax(0, 1fr); }
  .flight-progress-card { padding: 8px 10px; }
  .flight-progress-top > span { display: none; }
  .flight-top-actions { justify-self: start; }
  .flight-region-card,
  .flight-target-card,
  .flight-radar,
  .flight-key-help { display: none; }
  .flight-start-panel,
  .flight-arrival { width: min(560px, calc(100% - 20px)); max-height: calc(100% - 14px); padding: 15px 18px; }
  .flight-start-panel h3,
  .flight-arrival h3 { margin: 8px auto 6px; font-size: 1.25rem; }
  .flight-start-panel p,
  .flight-arrival p { font-size: .7rem; line-height: 1.4; }
  .flight-panel-actions { margin-top: 10px; }
  .flight-launch-button,
  .flight-secondary-button { min-height: 44px; }
  .flight-panel-hint { display: none; }
  .flight-golden-star { width: 48px; height: 48px; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .flight-scanlines { display: none; }
  .flight-radar::before,
  .flight-golden-star { animation: none !important; }
  .flight-landmark,
  .flight-icon-button,
  .flight-cruise-button { transition: none; }
}
