.planetfall {
  --pf-ink: #102949;
  --pf-blue: #69d9ff;
  --pf-gold: #ffca63;
  position: fixed;
  inset: 0;
  z-index: 1700;
  overflow: hidden;
  color: #f7fbff;
  background: #020610;
  font-family: "Nunito", "Avenir Next", system-ui, sans-serif;
}

.planetfall-scene,
.planetfall-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.planetfall-scene canvas {
  display: block;
}

.planetfall-phase-entry::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 47%, transparent 38%, rgba(1, 5, 11, 0.08) 66%, rgba(1, 4, 9, 0.42) 112%),
    linear-gradient(180deg, rgba(1, 5, 11, 0.14), transparent 15%, transparent 84%, rgba(1, 5, 11, 0.22));
}

.planetfall-entry-effects,
.planetfall-entry-effects > div {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.planetfall-heat-vignette {
  opacity: calc(var(--pf-heat) * 0.78);
  background:
    radial-gradient(circle at 50% 53%, transparent 24%, rgba(255, 111, 31, 0.08) 49%, rgba(255, 70, 15, 0.52) 100%),
    linear-gradient(90deg, rgba(255, 91, 21, 0.28), transparent 18%, transparent 82%, rgba(255, 91, 21, 0.28));
  mix-blend-mode: screen;
  animation: planetfall-heat-breathe 180ms ease-in-out infinite alternate;
}

.planetfall-stage-surface.planetfall-route-jupiter .planetfall-heat-vignette,
.planetfall-stage-surface.planetfall-route-saturn .planetfall-heat-vignette {
  opacity: 0.72;
  background:
    radial-gradient(circle at 50% 51%, transparent 18%, rgba(4, 8, 13, 0.12) 38%, rgba(3, 6, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 12, 17, 0.38), transparent 23%, transparent 77%, rgba(8, 12, 17, 0.38));
  mix-blend-mode: multiply;
  animation: planetfall-pressure-breathe 220ms ease-in-out infinite alternate;
}

@keyframes planetfall-pressure-breathe {
  to { opacity: 0.86; filter: contrast(1.16) brightness(0.86); }
}

.planetfall-speed-lines {
  opacity: calc(0.05 + var(--pf-heat) * 0.18);
  background:
    conic-gradient(from 8deg at 50% 55%, transparent 0 13%, rgba(159, 226, 255, 0.12) 17%, transparent 23% 48%, rgba(255, 190, 112, 0.1) 53%, transparent 61%),
    radial-gradient(ellipse at 50% 55%, transparent 0 37%, color-mix(in srgb, var(--pf-atmosphere), transparent 84%) 54%, transparent 76%);
  filter: blur(1.5px);
  -webkit-mask-image: radial-gradient(circle, transparent 0 27%, #000 47%, transparent 84%);
  mask-image: radial-gradient(circle, transparent 0 27%, #000 47%, transparent 84%);
  animation: planetfall-speed-pulse 640ms linear infinite;
}

.planetfall-flight-reticle {
  inset: auto !important;
  top: 47% !important;
  left: 50% !important;
  width: 184px;
  height: 184px;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--pf-atmosphere), transparent 58%);
  border-radius: 50%;
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--pf-atmosphere), transparent 88%);
}

.planetfall-flight-reticle::before,
.planetfall-flight-reticle::after {
  position: absolute;
  content: "";
  background: color-mix(in srgb, var(--pf-atmosphere), white 35%);
  opacity: 0.6;
}

.planetfall-flight-reticle::before {
  top: 50%;
  left: 18%;
  width: 64%;
  height: 1px;
}

.planetfall-flight-reticle::after {
  top: 18%;
  left: 50%;
  width: 1px;
  height: 64%;
}

.planetfall-flight-reticle i {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #dcf7ff;
  border-style: solid;
  opacity: 0.78;
}

.planetfall-flight-reticle i:nth-child(1) { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 15px 0 0; }
.planetfall-flight-reticle i:nth-child(2) { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-radius: 0 15px 0 0; }
.planetfall-flight-reticle i:nth-child(3) { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 15px; }
.planetfall-flight-reticle i:nth-child(4) { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 15px; }

.planetfall-flight-reticle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid #e7fbff;
  box-shadow: 0 0 9px var(--pf-atmosphere);
}

.planetfall-horizon {
  top: 54% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(58vw, 650px);
  height: 34px;
  transform: translate(-50%, -50%);
  display: none;
}

.planetfall-horizon span {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 48px;
  height: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(220, 246, 255, 0.55);
  border-top: 0;
}

@keyframes planetfall-heat-breathe {
  to { filter: brightness(1.18); }
}

@keyframes planetfall-speed-pulse {
  to { transform: scale(1.035); }
}

body:has(.planetfall) #data-garden-button,
body:has(.planetfall) .data-garden-toast {
  display: none !important;
}

.planetfall button {
  font: inherit;
}

.planetfall-topbar {
  position: absolute;
  z-index: 8;
  top: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  pointer-events: none;
}

.planetfall-topbar button,
.planetfall-route-mark {
  pointer-events: auto;
}

.planetfall-back {
  justify-self: start;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid #a7d8f4;
  border-radius: 17px;
  color: var(--pf-ink);
  background: rgba(247, 252, 255, 0.96);
  box-shadow: 0 8px 28px rgba(0, 18, 44, 0.25);
  font-weight: 900;
  cursor: pointer;
}

.planetfall-title {
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 3px 12px #001027;
}

.planetfall-title small {
  color: #9be5ff;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.2em;
}

.planetfall-title strong {
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  line-height: 1.05;
}

.planetfall-route-mark {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 142px;
  min-height: 48px;
  padding: 5px 13px 5px 7px;
  border: 2px solid #b8ddf1;
  border-radius: 17px;
  color: var(--pf-ink);
  background: rgba(248, 252, 255, 0.96);
  box-shadow: 0 8px 28px rgba(0, 18, 44, 0.25);
}

.planetfall-route-mark > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #071326;
  background: var(--planetfall-color);
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.54);
}

.planetfall-route-mark div {
  display: grid;
}

.planetfall-route-mark small,
.planetfall-hud small,
.planetfall-mission-card small,
.planetfall-results small {
  color: #59738e;
  font-size: 0.57rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.planetfall-route-mark strong {
  font-size: 0.86rem;
}

.planetfall-briefing {
  position: absolute;
  z-index: 7;
  top: 90px;
  left: 50%;
  width: min(960px, calc(100% - 34px));
  max-height: calc(100vh - 112px);
  padding: 22px 26px 20px;
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(159, 221, 251, 0.54);
  border-radius: 28px;
  color: var(--pf-ink);
  background: linear-gradient(145deg, rgba(250, 253, 255, 0.97), rgba(226, 243, 251, 0.94));
  box-shadow: 0 28px 70px rgba(0, 9, 28, 0.45);
  text-align: center;
  backdrop-filter: blur(16px);
}

.planetfall-kicker {
  color: #2f719c;
  font-size: 0.69rem;
  font-weight: 1000;
  letter-spacing: 0.18em;
}

.planetfall-briefing h1 {
  margin: 3px 0 2px;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  line-height: 1;
}

.planetfall-briefing > p {
  max-width: 680px;
  margin: 8px auto 16px;
  color: #365675;
  font-weight: 750;
}

.planetfall-worlds {
  display: grid;
  grid-template-columns: repeat(8, minmax(86px, 1fr));
  gap: 8px;
}

.planetfall-worlds button {
  min-height: 108px;
  padding: 9px 5px 8px;
  border: 2px solid #cadde9;
  border-radius: 17px;
  color: #244867;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.planetfall-worlds button:hover,
.planetfall-worlds button:focus-visible {
  transform: translateY(-2px);
  border-color: #63bfe8;
}

.planetfall-worlds button.active {
  border-color: #267fc0;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 104, 153, 0.2), inset 0 -4px 0 #82cfee;
}

.planetfall-worlds button > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 4px;
  border-radius: 50%;
  color: #071326;
  background: radial-gradient(circle at 35% 30%, #fff, var(--world-color) 34%, #24394d 100%);
  box-shadow: inset -6px -5px 10px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(7, 29, 53, 0.2);
  font-size: 1.24rem;
}

.planetfall-worlds strong,
.planetfall-worlds small {
  display: block;
}

.planetfall-worlds strong {
  font-size: 0.85rem;
}

.planetfall-worlds small {
  margin-top: 2px;
  color: #6d8194;
  font-size: 0.58rem;
  line-height: 1.1;
}

.planetfall-mission-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 14px auto;
  overflow: hidden;
  border: 1px solid #c4dae7;
  border-radius: 16px;
  background: #c4dae7;
  text-align: left;
}

.planetfall-mission-card > div {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 10px 14px;
  background: #f9fcfe;
}

.planetfall-mission-card strong {
  color: #173c5d;
}

.planetfall-mission-card span {
  color: #4d6a82;
  font-size: 0.76rem;
  font-weight: 700;
}

.planetfall-launch,
.planetfall-secondary {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 1000;
  cursor: pointer;
}

.planetfall-launch {
  border: 2px solid #f0b63c;
  color: #322006;
  background: linear-gradient(#ffe190, #ffbd45);
  box-shadow: 0 8px 20px rgba(177, 105, 8, 0.23), inset 0 2px 0 #fff3c5;
}

.planetfall-secondary {
  border: 2px solid #bdd4e2;
  color: #234666;
  background: #fff;
}

.planetfall-help {
  display: block;
  margin-top: 7px;
  color: #667f94;
  font-weight: 700;
}

.planetfall-hud {
  position: absolute;
  z-index: 7;
  top: 91px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  min-width: min(680px, calc(100vw - 40px));
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid rgba(183, 225, 243, 0.88);
  border-radius: 14px;
  color: var(--pf-ink);
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.88), rgba(229, 244, 249, 0.8));
  box-shadow: 0 10px 30px rgba(0, 14, 35, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(9px) saturate(1.14);
  transition: opacity 700ms ease, transform 700ms ease, background 700ms ease;
}

@media (min-width: 700px) {
  .planetfall-phase-entry .planetfall-hud {
    top: 84px;
    width: min(640px, calc(100% - 430px));
    min-height: 52px;
  }

  .planetfall-phase-entry .planetfall-hud > div {
    min-height: 52px;
    padding: 7px 13px 6px;
  }

  .planetfall-phase-entry .planetfall-hud strong {
    font-size: 0.92rem;
  }

  .planetfall-phase-entry .planetfall-stage-readout {
    top: 84px;
    width: 138px;
    min-height: 52px;
    padding: 8px 14px;
  }

  .planetfall-phase-entry .planetfall-title strong {
    font-size: clamp(1.3rem, 2.2vw, 1.82rem);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .planetfall-phase-entry .planetfall-stage-readout {
    top: 148px;
    width: 156px;
  }

  .planetfall-phase-entry .planetfall-hud {
    width: min(680px, calc(100% - 188px));
    transform: translateX(calc(-50% + 72px));
  }

  .planetfall-phase-entry .planetfall-status {
    max-width: min(500px, calc(100% - 300px));
  }
}

.planetfall-stage-readout {
  position: absolute;
  z-index: 7;
  top: 88px;
  left: 18px;
  display: grid;
  min-width: 160px;
  padding: 9px 14px;
  border: 1px solid rgba(190, 224, 239, 0.78);
  border-left: 4px solid var(--pf-atmosphere);
  border-radius: 5px 15px 15px 5px;
  color: #173a59;
  background: rgba(246, 252, 255, 0.84);
  box-shadow: 0 8px 22px rgba(0, 13, 36, 0.19);
  backdrop-filter: blur(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.planetfall-stage-readout small {
  color: #668198;
  font-size: 0.5rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.planetfall-stage-readout strong {
  color: #143f62;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.planetfall-stage-readout span {
  color: #53718a;
  font-size: 0.64rem;
  font-weight: 800;
}

.planetfall-hud > div {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 4px 9px 7px;
  border-right: 1px solid #d5e4ec;
}

.planetfall-hud > div:last-child {
  border-right: 0;
}

.planetfall-hud strong {
  font-size: 0.9rem;
  line-height: 1;
}

.planetfall-hud > div > i {
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 8px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #dce8ee;
}

.planetfall-hud > div > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #39b8e5;
}

.planetfall-hud .hot strong {
  color: #b83a25;
}

.planetfall-hud .hot > i b {
  background: #ef633f;
}

.planetfall-status {
  position: absolute;
  z-index: 7;
  bottom: 108px;
  left: 50%;
  max-width: min(580px, calc(100% - 260px));
  min-height: 42px;
  padding: 10px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(181, 222, 240, 0.9);
  border-radius: 14px;
  color: #264f73;
  background: rgba(249, 253, 255, 0.88);
  box-shadow: 0 8px 24px rgba(0, 13, 36, 0.2);
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(8px) saturate(1.12);
  transition: opacity 700ms ease, transform 700ms ease;
}

.planetfall-controls {
  position: absolute;
  z-index: 7;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  grid-template-columns: 178px minmax(180px, 1fr) 220px;
  align-items: end;
  gap: 18px;
  pointer-events: none;
}

.planetfall-controls button {
  pointer-events: auto;
}

.planetfall-dpad {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(2, 52px);
  gap: 6px;
}

.planetfall-dpad button {
  border: 2px solid #d1e1ec;
  border-radius: 16px;
  color: #214c75;
  background: rgba(251, 253, 255, 0.96);
  box-shadow: 0 6px 18px rgba(0, 13, 36, 0.25);
  font-size: 1.35rem;
  font-weight: 1000;
  cursor: pointer;
  touch-action: none;
}

.planetfall-dpad button:first-child {
  grid-column: 2;
}

.planetfall-dpad button:nth-child(2) {
  grid-column: 1;
}

.planetfall-progress {
  position: relative;
  align-self: end;
  height: 24px;
  margin-bottom: 5px;
  overflow: hidden;
  border: 2px solid rgba(179, 221, 240, 0.9);
  border-radius: 12px;
  background: rgba(5, 23, 43, 0.72);
}

.planetfall-progress > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #2e8fca, #75e6ff);
}

.planetfall-stage-node {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid #d9f5ff;
  background: #244b69;
  box-shadow: 0 0 0 2px rgba(0, 23, 45, 0.32);
}

.planetfall-stage-node.node-interface { left: 13%; }
.planetfall-stage-node.node-heating { left: 36%; }
.planetfall-stage-node.node-clouds { left: 62%; }
.planetfall-stage-node.node-terminal { left: 80%; }
.planetfall-stage-node.node-surface { left: 94%; }

.planetfall-stage-terminal .planetfall-flight-reticle,
.planetfall-stage-surface .planetfall-flight-reticle {
  opacity: 0.34;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 500ms ease, transform 700ms ease;
}

.planetfall-stage-surface .planetfall-horizon {
  opacity: 0;
}

.planetfall-stage-surface .planetfall-speed-lines {
  opacity: 0.05;
}

.planetfall-stage-surface .planetfall-flight-reticle {
  opacity: 0;
}

.planetfall-stage-terminal .planetfall-title,
.planetfall-stage-surface .planetfall-title {
  opacity: 0.58;
  transition: opacity 700ms ease;
}

.planetfall-stage-terminal .planetfall-hud {
  opacity: 0.86;
  transform: translateX(-50%) scale(0.97);
}

.planetfall-stage-surface .planetfall-hud {
  opacity: 0.76;
  transform: translateX(-50%) scale(0.95);
}

.planetfall-stage-terminal .planetfall-stage-readout,
.planetfall-stage-surface .planetfall-stage-readout {
  opacity: 0.82;
  transform: translateY(3px) scale(0.97);
}

.planetfall-stage-surface .planetfall-dpad {
  opacity: 0.34;
  transform: scale(0.92);
  transform-origin: left bottom;
  transition: opacity 700ms ease, transform 700ms ease;
}

.planetfall-progress small {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.61rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-shadow: 0 1px 3px #00172d;
}

.planetfall-system {
  min-height: 66px;
  padding: 8px 14px;
  border: 3px solid #788898;
  border-radius: 20px;
  color: #41566b;
  background: rgba(231, 238, 242, 0.94);
  box-shadow: 0 8px 24px rgba(0, 13, 36, 0.28);
  cursor: pointer;
}

.planetfall-system:disabled {
  -webkit-text-fill-color: #155746;
  color: #155746;
  opacity: 1;
}

.planetfall-system small,
.planetfall-system strong {
  display: block;
}

.planetfall-system small {
  font-size: 0.59rem;
  letter-spacing: 0.13em;
}

.planetfall-system strong {
  margin-top: 2px;
  font-size: 0.87rem;
  white-space: nowrap;
}

.planetfall-system.ready {
  border-color: #ffc24c;
  color: #342206;
  background: linear-gradient(#ffe59b, #ffbf4a);
  box-shadow: 0 0 0 5px rgba(255, 198, 75, 0.2), 0 8px 24px rgba(125, 70, 0, 0.34);
  animation: planetfall-system-pulse 900ms ease-in-out infinite alternate;
}

.planetfall-system.deployed {
  border-color: #7cdec6;
  color: #155746;
  background: linear-gradient(180deg, #ecfff9 0%, #baf4e4 100%);
  opacity: 1;
  animation: none;
  box-shadow: 0 0 0 5px rgba(77, 201, 169, 0.2), 0 8px 24px rgba(0, 78, 62, 0.3);
}

.planetfall-system.deployed small,
.planetfall-system.deployed strong {
  color: #155746;
  opacity: 1;
  -webkit-text-fill-color: #155746;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92);
}

.planetfall-system.complete {
  border-color: #4aa9d4;
  background: linear-gradient(180deg, #f4fdff 0%, #aee8f7 100%);
  box-shadow: 0 0 0 5px rgba(74, 169, 212, 0.22), 0 8px 24px rgba(0, 71, 105, 0.3);
}

.planetfall-system.complete small,
.planetfall-system.complete strong {
  color: #103f59;
  -webkit-text-fill-color: #103f59;
}

@keyframes planetfall-system-pulse {
  to { box-shadow: 0 0 0 9px rgba(255, 198, 75, 0.12), 0 8px 28px rgba(125, 70, 0, 0.42); }
}

.planetfall-complete {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100% - 34px));
  padding: 28px;
  transform: translate(-50%, -50%);
  border: 2px solid #9dd9f4;
  border-radius: 28px;
  color: var(--pf-ink);
  background: rgba(247, 252, 255, 0.97);
  box-shadow: 0 28px 80px rgba(0, 8, 25, 0.54);
  text-align: center;
}

@media (min-width: 900px) {
  .planetfall-complete {
    left: 80%;
    width: min(440px, calc(100% - 40px));
    padding: 24px;
  }
}

.planetfall-complete-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 50%;
  color: #071326;
  background: linear-gradient(145deg, #fff2b9, #78dfff);
  box-shadow: inset 0 0 0 4px #fff, 0 8px 25px rgba(21, 102, 151, 0.26);
  font-size: 2.4rem;
}

.planetfall-complete > small {
  color: #31779e;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.planetfall-complete h1 {
  margin: 6px 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.planetfall-complete p {
  color: #3c5d78;
  font-weight: 750;
}

.planetfall-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.planetfall-results span {
  display: grid;
  padding: 10px;
  border: 1px solid #c7dce8;
  border-radius: 14px;
  background: #edf7fb;
}

.planetfall-results strong {
  font-size: 1.4rem;
}

.planetfall-complete > div:last-child {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .planetfall-topbar {
    top: 10px;
    left: 9px;
    right: 9px;
    align-items: center;
  }

  .planetfall-back {
    width: 48px;
    min-height: 48px;
    padding: 0;
    font-size: 1.25rem;
  }

  .planetfall-back span,
  .planetfall-title small {
    display: none;
  }

  .planetfall-title strong {
    font-size: 1rem;
  }

  .planetfall-route-mark {
    min-width: 86px;
    min-height: 48px;
    gap: 5px;
    padding: 4px 8px 4px 4px;
  }

  .planetfall-route-mark > span {
    width: 36px;
    height: 36px;
  }

  .planetfall-route-mark div {
    display: grid;
  }

  .planetfall-route-mark small {
    display: none;
  }

  .planetfall-route-mark strong {
    max-width: 42px;
    overflow: hidden;
    font-size: 0.64rem;
    line-height: 1;
    text-overflow: ellipsis;
  }

  .planetfall-briefing {
    top: 69px;
    width: calc(100% - 18px);
    max-height: calc(100vh - 78px);
    padding: 16px 12px;
    border-radius: 22px;
  }

  .planetfall-briefing h1 {
    font-size: 1.62rem;
  }

  .planetfall-briefing > p {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .planetfall-worlds {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .planetfall-worlds button {
    min-height: 76px;
    padding: 6px 3px;
    border-radius: 13px;
  }

  .planetfall-worlds button > span {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .planetfall-worlds button > small {
    display: none;
  }

  .planetfall-mission-card {
    grid-template-columns: 1fr;
    margin: 10px 0;
  }

  .planetfall-mission-card > div {
    min-height: 58px;
    padding: 7px 10px;
  }

  .planetfall-mission-card span {
    font-size: 0.66rem;
  }

  .planetfall-help {
    font-size: 0.62rem;
  }

  .planetfall-hud {
    top: 69px;
    min-width: calc(100% - 16px);
    grid-template-columns: repeat(4, 1fr);
    border-radius: 14px;
  }

  .planetfall-hud > div:last-child {
    display: none;
  }

  .planetfall-hud > div {
    min-width: 0;
    min-height: 41px;
    padding: 3px 2px 6px;
  }

  .planetfall-hud small {
    font-size: 0.43rem;
    letter-spacing: 0.04em;
  }

  .planetfall-hud strong {
    font-size: 0.64rem;
  }

  .planetfall-stage-readout {
    top: 116px;
    left: 8px;
    min-width: 0;
    padding: 6px 9px;
    border-left-width: 3px;
    border-radius: 4px 11px 11px 4px;
  }

  .planetfall-stage-readout small,
  .planetfall-stage-readout span {
    display: none;
  }

  .planetfall-stage-readout strong {
    font-size: 0.58rem;
  }

  .planetfall-flight-reticle {
    top: 48% !important;
    width: 116px;
    height: 116px;
  }

  .planetfall-stage-terminal .planetfall-flight-reticle,
  .planetfall-stage-surface .planetfall-flight-reticle {
    left: 50% !important;
  }

  .planetfall-horizon {
    top: 55% !important;
    width: 72vw;
  }

  .planetfall-status {
    bottom: 124px;
    max-width: calc(100% - 38px);
    width: max-content;
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 14px;
    font-size: 0.73rem;
  }

  .planetfall-controls {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 118px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 10px;
  }

  .planetfall-dpad {
    grid-row: 1 / 3;
    grid-template-columns: repeat(3, 35px);
    grid-template-rows: repeat(2, 35px);
    gap: 4px;
  }

  .planetfall-dpad button {
    border-radius: 14px;
    font-size: 1.1rem;
  }

  .planetfall-progress {
    grid-column: 2;
    height: 20px;
    margin: 0;
  }

  .planetfall-stage-node {
    display: none;
  }

  .planetfall-progress small {
    padding-inline: 5px;
    font-size: 0.52rem;
    letter-spacing: 0.07em;
  }

  .planetfall-system {
    grid-column: 2;
    min-height: 50px;
    padding: 6px 7px;
    border-radius: 17px;
  }

  .planetfall-system small {
    font-size: 0.48rem;
  }

  .planetfall-system strong {
    font-size: 0.7rem;
  }
}

@media (max-height: 690px) and (min-width: 761px) {
  .planetfall-briefing {
    top: 76px;
    padding-top: 14px;
  }

  .planetfall-worlds button {
    min-height: 88px;
  }

  .planetfall-mission-card {
    margin: 9px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .planetfall-system.ready {
    animation: none;
  }

  .planetfall-worlds button {
    transition: none;
  }

  .planetfall-heat-vignette,
  .planetfall-speed-lines {
    animation: none;
  }
}
