:root {
  --bg: #050a13;
  --bg-soft: #081221;
  --panel: rgba(10, 24, 42, 0.78);
  --panel-solid: #0a1728;
  --panel-2: rgba(16, 35, 58, 0.72);
  --line: rgba(123, 203, 255, 0.18);
  --line-strong: rgba(123, 218, 255, 0.42);
  --text: #eef8ff;
  --muted: #91a8ba;
  --dim: #60768a;
  --cyan: #63e1ff;
  --cyan-2: #1fb8ff;
  --violet: #8b7bff;
  --green: #56e6ad;
  --yellow: #ffd166;
  --orange: #ff9f68;
  --red: #ff6b7b;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1720px;
  --header-h: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 5%, rgba(37, 104, 187, 0.17), transparent 27rem),
    linear-gradient(135deg, #050a13 0%, #07111f 45%, #050911 100%);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(99, 225, 255, 0.72);
  outline-offset: 3px;
}

.is-hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #00111a;
  background: var(--cyan);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.space-scene {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: -20%;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(99,225,255,.7) 0 1px, transparent 1.5px);
  background-position: 0 0, 34px 62px;
  background-size: 96px 96px, 137px 137px;
  animation: drift 80s linear infinite;
}

.stars-b {
  opacity: 0.2;
  background-size: 178px 178px, 225px 225px;
  animation-direction: reverse;
  animation-duration: 120s;
}

.planet-glow {
  position: absolute;
  width: 960px;
  height: 960px;
  right: -530px;
  top: 2vh;
  border: 1px solid rgba(88, 199, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 30px 0 90px rgba(35, 146, 255, 0.13),
    -24px 0 100px rgba(35, 146, 255, 0.09);
}

.orbit-line {
  position: absolute;
  width: 1300px;
  height: 560px;
  right: -330px;
  top: 120px;
  border: 1px solid rgba(99, 225, 255, 0.07);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.orbit-two {
  width: 980px;
  height: 880px;
  right: -240px;
  top: 5vh;
  transform: rotate(34deg);
}

@keyframes drift {
  to { transform: translate3d(6%, 4%, 0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(-4px) rotate(4deg); }
  50% { transform: translateY(7px) rotate(-4deg); }
}

@keyframes scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(360%); }
}

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 clamp(18px, 3vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 19, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.brand-core {
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(99, 225, 255, 0.72), inset 0 0 14px rgba(99, 225, 255, 0.3);
}

.brand-orbit {
  position: absolute;
  width: 42px;
  height: 17px;
  border: 1.5px solid rgba(255,255,255,.88);
  border-radius: 50%;
  transform: rotate(-27deg);
}

.brand-orbit::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: 1px;
  top: 1px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.18em;
}

.brand-copy strong span {
  color: var(--cyan);
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(86, 230, 173, .8);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.icon-button,
.button {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.icon-button:hover,
.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(99,225,255,.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 19px;
  color: var(--text);
  border-radius: 10px;
  font-weight: 720;
  letter-spacing: .01em;
}

.button-primary {
  color: #01121c;
  background: linear-gradient(135deg, #8bf0ff, #43c9ff 55%, #7e8cff);
  box-shadow: 0 10px 34px rgba(47, 190, 255, 0.2);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 14px 40px rgba(47, 190, 255, 0.32);
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.button-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(99,225,255,.07);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 13px;
}

.button-large {
  min-height: 54px;
  padding-inline: 24px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .38;
  filter: grayscale(.3);
}

.screen {
  width: min(var(--max-width), 100%);
  min-height: calc(100vh - var(--header-h) - 56px);
  margin: 0 auto;
}

.welcome-screen {
  padding: clamp(42px, 7vw, 110px) clamp(20px, 4.5vw, 72px) 70px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
  min-height: 570px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.welcome-copy h1,
.report-copy h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
}

.welcome-copy h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), #84a7ff 62%, #b18dff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #aec1d1;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 800;
}

.mission-console {
  position: relative;
  min-height: 500px;
  padding: 22px;
  border: 1px solid rgba(99,225,255,.25);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(15, 37, 60, .78), rgba(5, 13, 24, .92)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(99,225,255,.025) 26px);
  box-shadow: var(--shadow), inset 0 0 70px rgba(53, 159, 255, 0.07);
  overflow: hidden;
}

.mission-console::before,
.mission-console::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border: solid var(--cyan);
  opacity: .38;
}

.mission-console::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
  border-radius: 16px 0 0 0;
}

.mission-console::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 16px 0;
}

.console-header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}

.console-lights {
  display: flex;
  gap: 7px;
}

.console-lights i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}

.console-lights i:nth-child(2) { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.console-lights i:nth-child(3) { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.console-orbit {
  position: relative;
  display: grid;
  place-items: center;
  height: 350px;
}

.console-planet {
  width: 135px;
  height: 135px;
  border: 1px solid rgba(125, 218, 255, .75);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,.95) 0 2%, transparent 3%),
    radial-gradient(circle at 40% 43%, rgba(71, 177, 255, .55), transparent 34%),
    radial-gradient(circle at 70% 75%, #0d2f55, #07101d 62%);
  box-shadow: inset -28px -22px 48px rgba(0,0,0,.52), 0 0 70px rgba(57, 166, 255, .34);
}

.console-ring {
  position: absolute;
  border: 1px solid rgba(99, 225, 255, .34);
  border-radius: 50%;
}

.ring-a { width: 290px; height: 145px; transform: rotate(-17deg); }
.ring-b { width: 350px; height: 230px; transform: rotate(36deg); border-style: dashed; animation: spin 32s linear infinite; }

.console-craft {
  position: absolute;
  right: 14%;
  top: 29%;
  color: #fff;
  text-shadow: 0 0 16px var(--cyan);
  animation: float 4s ease-in-out infinite;
}

.console-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.console-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}

.console-stats span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .15em;
}

.console-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--cyan);
  font-size: 22px;
  letter-spacing: .05em;
}

.console-scan {
  position: absolute;
  inset: auto 22px 8px;
  height: 2px;
  overflow: hidden;
  background: rgba(99,225,255,.08);
}

.console-scan span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 3.5s linear infinite;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip article {
  position: relative;
  min-height: 190px;
  padding: 32px clamp(20px, 2.5vw, 42px);
}

.feature-strip article + article {
  border-left: 1px solid var(--line);
}

.feature-number {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.feature-strip h2 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.game-screen {
  width: 100%;
  max-width: none;
}

.game-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 330px;
  min-height: calc(100vh - var(--header-h));
}

.game-sidebar,
.resource-panel {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(6, 14, 25, .64);
  backdrop-filter: blur(16px);
}

.game-sidebar {
  padding: 34px 26px;
}

.resource-panel {
  padding: 28px 24px;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.sidebar-title {
  display: grid;
  gap: 7px;
  margin-bottom: 28px;
}

.sidebar-title span,
.stage-kicker,
.resource-header span,
.resource-footer span,
.card-heading > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sidebar-title strong {
  font-size: 16px;
  line-height: 1.35;
}

.stage-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stages;
}

.stage-list button {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 9px 10px;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.stage-list button:hover {
  color: var(--text);
  background: rgba(255,255,255,.025);
}

.stage-list button.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(99,225,255,.11), rgba(99,225,255,.025));
}

.stage-list button.is-complete .stage-index {
  color: #062019;
  border-color: var(--green);
  background: var(--green);
}

.stage-index {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.stage-name {
  font-size: 13px;
  font-weight: 720;
}

.stage-check {
  color: var(--green);
  font-size: 13px;
}

.sidebar-tip {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(99,225,255,.035);
}

.sidebar-tip span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.sidebar-tip p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.game-workspace {
  min-width: 0;
  padding: 38px clamp(24px, 4vw, 68px) 46px;
}

.workspace-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto 30px;
}

.workspace-topline h2 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em;
}

.workspace-topline p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.difficulty-control {
  display: inline-flex;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.difficulty-control button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.difficulty-control button.is-selected {
  color: #05131b;
  background: var(--cyan);
}

.stage-content {
  max-width: 1080px;
  min-height: 580px;
  margin: 0 auto;
}

.workspace-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.workspace-navigation #nextButton {
  justify-self: end;
}

.workspace-navigation #backButton {
  justify-self: start;
}

.autosave-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 11px;
}

.autosave-label span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option-grid.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  position: relative;
  min-height: 176px;
  padding: 20px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(17, 39, 64, .72), rgba(7, 17, 30, .88));
  cursor: pointer;
  overflow: hidden;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.option-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(99,225,255,.11), transparent 68%);
}

.option-card:hover:not(.is-disabled) {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.option-card.is-selected {
  border-color: var(--cyan);
  background: linear-gradient(145deg, rgba(32, 93, 128, .42), rgba(8, 23, 38, .9));
  box-shadow: inset 0 0 0 1px rgba(99,225,255,.25), 0 0 36px rgba(58, 186, 255, .12);
}

.option-card.is-selected::before {
  content: "✓";
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #052019;
  background: var(--green);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.option-card.is-disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: grayscale(.35);
}

.option-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.option-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(99,225,255,.06);
  font-size: 21px;
  text-shadow: 0 0 14px rgba(99,225,255,.6);
}

.option-badge {
  padding: 5px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.option-card h3 {
  margin: 17px 0 7px;
  font-size: 17px;
  letter-spacing: -.01em;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.option-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.option-metrics span {
  padding: 5px 7px;
  color: #b7cad9;
  border: 1px solid rgba(140, 198, 235, .13);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  font-size: 10px;
}

.mission-grid .option-card {
  min-height: 245px;
}

.mission-card-visual {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -30px;
  bottom: -44px;
  border: 1px solid rgba(99,225,255,.16);
  border-radius: 50%;
  box-shadow: inset 24px -20px 42px rgba(0,0,0,.4), 0 0 35px rgba(69, 166, 255, .08);
  opacity: .68;
}

.mission-card-visual::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 66px;
  left: -32px;
  top: 37px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: .35;
}

.form-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
}

.form-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.form-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 10, 19, .76);
}

.form-panel input:focus {
  border-color: var(--cyan);
}

.selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 13px 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(99,225,255,.025);
  font-size: 12px;
}

.selection-summary strong {
  color: var(--text);
}

.system-section {
  margin-bottom: 30px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.section-heading p {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid .option-card {
  min-height: 142px;
}

.review-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}

.review-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 21, 36, .72);
}

.review-card h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.review-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.review-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.022);
}

.review-row + .review-row {
  border-top: 1px solid var(--line);
}

.review-row span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.review-row strong {
  font-size: 13px;
  line-height: 1.5;
}

.readiness-list {
  display: grid;
  gap: 9px;
}

.readiness-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.readiness-item i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
}

.readiness-item.good i { color: #052019; background: var(--green); }
.readiness-item.bad i { color: #2d0710; background: var(--red); }
.readiness-item.warn i { color: #2d2105; background: var(--yellow); }

.launch-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 100%, rgba(57, 182, 255, .15), transparent 45%),
    linear-gradient(180deg, rgba(4, 11, 21, .6), rgba(9, 25, 43, .75));
  overflow: hidden;
}

.launch-panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(99,225,255,.18);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.launch-panel-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 28px;
  text-align: center;
}

.launch-panel h3 {
  margin: 0;
  font-size: 27px;
}

.launch-panel p {
  margin: 10px auto 20px;
  color: var(--muted);
  line-height: 1.6;
}

.launch-button {
  min-width: 220px;
  min-height: 58px;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.resource-header > div:first-child {
  display: grid;
  gap: 6px;
}

.resource-header strong {
  font-size: 15px;
}

.health-ring {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding-top: 18px;
  color: var(--cyan);
  border: 4px solid rgba(99,225,255,.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(99,225,255,.08);
  font-weight: 900;
}

.health-ring span { font-size: 19px; }
.health-ring small { font-size: 9px; }

.resource-bars {
  display: grid;
  gap: 19px;
  padding: 24px 0;
}

.resource-item {
  display: grid;
  gap: 8px;
}

.resource-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.resource-label strong {
  color: var(--text);
  font-size: 11px;
}

.meter {
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,.055);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan));
  box-shadow: 0 0 12px rgba(99,225,255,.4);
  transition: width 300ms ease;
}

.resource-item.warn .meter span { background: linear-gradient(90deg, #ffbb57, var(--orange)); }
.resource-item.bad .meter span { background: linear-gradient(90deg, #ff4f70, var(--red)); }

.constraint-list {
  display: grid;
  gap: 7px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.constraint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.constraint strong {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 10px;
}

.constraint.pass strong { color: #062019; background: var(--green); }
.constraint.fail strong { color: #310912; background: var(--red); }
.constraint.pending strong { color: var(--dim); border: 1px solid var(--line); }

.resource-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding-top: 18px;
}

.resource-footer span {
  max-width: 130px;
  color: var(--muted);
  line-height: 1.4;
}

.resource-footer strong {
  color: var(--cyan);
  font-size: 24px;
}

.report-screen {
  padding: 34px clamp(18px, 3vw, 52px) 70px;
}

.report-shell {
  max-width: 1440px;
  margin: 0 auto;
}

.report-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 24px;
  min-height: 350px;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 50%, rgba(69, 170, 255, .18), transparent 30%),
    linear-gradient(135deg, rgba(14, 42, 69, .85), rgba(5, 13, 24, .95));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-hero[data-status="failure"] { border-color: rgba(255,107,123,.48); }
.report-hero[data-status="partial"] { border-color: rgba(255,209,102,.48); }

.report-orbit {
  position: absolute;
  width: 500px;
  height: 500px;
  right: -120px;
  top: -120px;
  border: 1px solid rgba(99,225,255,.15);
  border-radius: 50%;
}

.report-orbit::before,
.report-orbit::after {
  content: "";
  position: absolute;
  inset: 65px;
  border: 1px dashed rgba(99,225,255,.14);
  border-radius: 50%;
  animation: spin 42s linear infinite;
}

.report-orbit::after {
  inset: 130px;
  border-style: solid;
  animation-direction: reverse;
}

.report-orbit span {
  position: absolute;
  width: 13px;
  height: 13px;
  left: 48px;
  top: 120px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--cyan);
}

.report-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.report-copy h1 {
  font-size: clamp(46px, 5vw, 76px);
}

.report-copy > p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #b2c6d6;
  font-size: 17px;
  line-height: 1.65;
}

.mission-grade {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(4, 13, 24, .72);
}

.mission-grade span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.mission-grade strong {
  color: var(--cyan);
  font-size: 92px;
  line-height: .9;
  text-shadow: 0 0 32px rgba(99,225,255,.35);
}

.mission-grade small {
  color: var(--muted);
  font-size: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.report-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 20, 35, .78);
  box-shadow: 0 14px 40px rgba(0,0,0,.15);
}

.card-heading {
  margin-bottom: 20px;
}

.card-heading h2 {
  margin: 7px 0 0;
  font-size: 20px;
}

.score-card { grid-column: span 5; }
.timeline-card { grid-column: span 7; }
.configuration-card { grid-column: span 7; }
.analysis-card { grid-column: span 5; }
.nasa-card { grid-column: span 12; }

#scoreCanvas {
  display: block;
  width: 100%;
  height: 280px;
}

.score-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.score-legend div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}

.score-legend strong { color: var(--text); }

.timeline {
  display: grid;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-entry:last-child { border-bottom: 0; }

.timeline-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
}

.timeline-entry.pass .timeline-icon { border-color: rgba(86,230,173,.45); }
.timeline-entry.fail .timeline-icon { border-color: rgba(255,107,123,.5); }

.timeline-copy h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.timeline-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.timeline-status {
  align-self: center;
  padding: 5px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timeline-entry.pass .timeline-status { color: var(--green); background: rgba(86,230,173,.08); }
.timeline-entry.fail .timeline-status { color: var(--red); background: rgba(255,107,123,.08); }

.configuration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.config-item {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}

.config-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.config-item strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.4;
}

.analysis-columns {
  display: grid;
  gap: 20px;
}

.analysis-columns h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.analysis-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-columns li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.analysis-columns li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--cyan);
}

.nasa-analogy {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.nasa-symbol {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,170,255,.18), transparent 70%);
  font-size: 30px;
}

.nasa-analogy h3 {
  margin: 0 0 6px;
}

.nasa-analogy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 10, .78);
  backdrop-filter: blur(12px);
}

.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(84vh, 880px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #081522;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.modal h2 {
  margin: 0 45px 12px 0;
  font-size: 28px;
}

.modal > div > p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-section {
  margin-top: 24px;
}

.modal-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.modal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-list li,
.source-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.source-item a {
  display: block;
  color: var(--cyan);
  font-weight: 750;
  text-decoration: none;
}

.source-item small {
  display: block;
  margin-top: 4px;
  color: var(--dim);
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 24, 40, .96);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
  font-size: 12px;
  line-height: 1.45;
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1250px) {
  .game-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .resource-panel {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 210px 1fr 1fr 180px;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .resource-header { border-bottom: 0; padding: 0; }
  .resource-bars { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .constraint-list { grid-template-columns: repeat(3, 1fr); padding: 0; border: 0; }
  .resource-footer { padding: 0; }
}

@media (max-width: 980px) {
  .app-header { grid-template-columns: 1fr auto; }
  .header-status { display: none; }
  .welcome-grid { grid-template-columns: 1fr; }
  .mission-console { min-height: 430px; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip article + article { border-left: 0; border-top: 1px solid var(--line); }
  .feature-strip article { min-height: auto; }

  .game-layout { grid-template-columns: 1fr; }
  .game-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-title,
  .sidebar-tip { display: none; }
  .stage-list { display: flex; overflow-x: auto; }
  .stage-list li { flex: 0 0 auto; }
  .stage-list button { grid-template-columns: 30px auto 14px; width: auto; min-width: 150px; }
  .game-workspace { padding-top: 28px; }

  .resource-panel {
    grid-template-columns: 1fr 1fr;
  }
  .resource-bars { grid-column: 1 / -1; }
  .constraint-list { grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; }

  .report-hero { grid-template-columns: 1fr; }
  .mission-grade { width: 160px; }
  .score-card,
  .timeline-card,
  .configuration-card,
  .analysis-card,
  .nasa-card { grid-column: span 12; }
}

@media (max-width: 700px) {
  :root { --header-h: 66px; }
  .app-header { padding-inline: 14px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 12px; }
  .header-actions { gap: 6px; }
  .header-actions .button-small { display: none; }
  .welcome-screen { padding-top: 48px; }
  .welcome-copy h1 { font-size: 48px; }
  .hero-actions .button { width: 100%; }
  .mission-console { min-height: 370px; padding: 16px; }
  .console-orbit { height: 275px; }
  .ring-a { width: 240px; }
  .ring-b { width: 280px; height: 190px; }

  .game-workspace { padding: 24px 16px 36px; }
  .workspace-topline { display: grid; }
  .difficulty-control { width: 100%; overflow-x: auto; }
  .difficulty-control button { flex: 1; min-width: max-content; }
  .stage-content { min-height: 480px; }
  .option-grid,
  .option-grid.three-column,
  .compact-grid { grid-template-columns: 1fr; }
  .workspace-navigation { grid-template-columns: 1fr 1fr; }
  .autosave-label { display: none; }
  .review-layout { grid-template-columns: 1fr; }

  .resource-panel { grid-template-columns: 1fr; padding: 22px 16px; }
  .resource-bars { grid-template-columns: 1fr; }
  .constraint-list { grid-template-columns: repeat(2, 1fr); }
  .resource-footer { align-items: center; }

  .report-screen { padding-inline: 12px; }
  .report-hero { padding: 28px 22px; }
  .report-copy h1 { font-size: 45px; }
  .report-actions .button { width: 100%; }
  .report-card { padding: 20px; }
  .configuration-grid,
  .score-legend { grid-template-columns: 1fr; }
  .nasa-analogy { grid-template-columns: 1fr; }
  .app-footer { display: grid; text-align: center; }
}

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

@media print {
  body { color: #111; background: #fff; }
  .space-scene,
  .app-header,
  .app-footer,
  .report-actions,
  .toast-region { display: none !important; }
  .report-screen { padding: 0; }
  .report-hero,
  .report-card {
    color: #111;
    background: #fff;
    border-color: #bbb;
    box-shadow: none;
    break-inside: avoid;
  }
  .report-copy > p,
  .timeline-copy p,
  .analysis-columns li,
  .nasa-analogy p,
  .config-item span { color: #333; }
  .report-grid { display: block; }
  .report-card { margin-top: 14px; }
  #scoreCanvas { max-height: 220px; }
}

/* Added gameplay graphics and simulation visuals */
.visual-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(123, 203, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--mission-accent, var(--cyan)) 26%, transparent), transparent 9rem),
    linear-gradient(180deg, rgba(16, 35, 58, 0.85), rgba(10, 23, 40, 0.78));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.visual-kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visual-panel h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.2rem + 0.6vw, 1.8rem);
}

.visual-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.graphic-wrap {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.chip-row,
.visual-stats,
.sim-visual-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row span,
.visual-stats div,
.sim-visual-foot div {
  padding: 9px 12px;
  border: 1px solid rgba(123, 203, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.visual-stats div,
.sim-visual-foot div {
  display: grid;
  gap: 3px;
  min-width: 120px;
  border-radius: 14px;
}

.visual-stats span,
.sim-visual-foot span,
.sim-visual-head span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-stats strong,
.sim-visual-foot strong,
.sim-visual-head strong {
  font-size: 15px;
}

.planet-art {
  position: relative;
  width: min(280px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -26px -20px 60px rgba(0, 0, 0, 0.35), 0 0 50px rgba(99, 225, 255, 0.14);
  overflow: visible;
}

.planet-art::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}

.planet-art span,
.planet-art i,
.planet-art b {
  position: absolute;
  display: block;
}

.planet-art span {
  inset: 0;
  border-radius: 50%;
}

.planet-art i {
  inset: 46% -12% auto;
  height: 24px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.7;
}

.planet-art b {
  width: 20px;
  height: 20px;
  right: 10%;
  top: 6%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 30px rgba(255,255,255,.6);
}

.planet-earth span, .sim-earth { background: radial-gradient(circle at 36% 30%, #8ff4ff, #3e9fff 46%, #0f2559 77%, #08101a 100%); }
.planet-moon span, .sim-moon { background: radial-gradient(circle at 35% 30%, #f7f7ff, #bfc7d6 48%, #5f6775 78%, #212530 100%); }
.planet-mars span, .sim-mars { background: radial-gradient(circle at 36% 30%, #ffd4c5, #ff8f70 44%, #9b4127 77%, #2a140d 100%); }
.planet-europa span, .sim-europa { background: radial-gradient(circle at 36% 30%, #efe7ff, #9d8cff 46%, #4b3f91 78%, #171229 100%); }
.planet-generic span, .sim-generic { background: radial-gradient(circle at 36% 30%, #d9f4ff, #63e1ff 46%, #25466e 77%, #091423 100%); }

.spacecraft-svg {
  width: min(100%, 420px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(99, 225, 255, 0.14));
}

.spacecraft-svg.builder .craft-root {
  animation: float 5.2s ease-in-out infinite;
}

.spacecraft-svg.simulation {
  width: min(100%, 520px);
}

.spacecraft-svg.simulation .craft-root {
  animation: flycraft 6.5s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.spacecraft-svg .craft-panels,
.spacecraft-svg .craft-antenna,
.spacecraft-svg .craft-thrusters {
  opacity: 0.98;
}

.sim-visual-wrap {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(123, 203, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 18, 33, 0.78), rgba(10, 23, 40, 0.96));
}

.sim-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.sim-visual-scene {
  position: relative;
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(139, 123, 255, 0.18), transparent 8rem),
    radial-gradient(circle at 80% 65%, color-mix(in srgb, var(--mission-accent, var(--cyan)) 18%, transparent), transparent 9rem),
    linear-gradient(180deg, #07101f, #091526 62%, #050a13);
}

.sim-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 1.5px);
  background-size: 72px 72px;
  opacity: 0.5;
}

.sim-planet {
  position: absolute;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  left: -40px;
  bottom: -36px;
  box-shadow: inset -26px -16px 50px rgba(0,0,0,.35), 0 0 60px rgba(99,225,255,.14);
}

.sim-orbit-ring {
  position: absolute;
  left: 38px;
  bottom: 34px;
  width: 270px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.sim-craft-fly {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.timeline-entry {
  position: relative;
}

@keyframes flycraft {
  0%, 100% { transform: translate(0px, 0px) rotate(-2deg); }
  30% { transform: translate(10px, -8px) rotate(2deg); }
  65% { transform: translate(-8px, 8px) rotate(-1deg); }
}

@media (max-width: 980px) {
  .visual-panel {
    grid-template-columns: 1fr;
  }

  .graphic-wrap {
    min-height: 180px;
  }
}
