:root {
  color-scheme: dark;
  --bg: #131211;
  --surface: #1c1a18;
  --line: #49423b;
  --text: #f6eee4;
  --muted: #c9bdb1;
  --accent: #f7ab7f;
  font: 17px/1.55 "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #ffc6a6; outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1; }
h2 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h3 { font-size: clamp(2rem, 4vw, 3.1rem); }
p { color: var(--muted); }

.topbar, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.3rem;
  padding: 1rem max(5vw, 1rem);
  background: var(--bg);
}
.brand { font-weight: 800; letter-spacing: .15em; }
.topbar a { text-decoration: none; color: var(--text); }
nav { display: flex; gap: 1.3rem; }

.hero {
  position: relative;
  min-height: min(680px, 82svh);
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 4rem max(5vw, 1rem) 5rem;
  background:
    linear-gradient(90deg, rgba(17, 12, 9, .98), rgba(27, 16, 11, .75) 45%, rgba(41, 19, 8, .1)),
    linear-gradient(0deg, #26170f, transparent 42%),
    url("assets/opportunity.jpg") center 55% / cover,
    #633b2a;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(3.75rem, 10vw, 9rem); letter-spacing: -.055em; line-height: .86; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero p { max-width: 32ch; margin: 1.6rem 0; color: var(--text); }
.hero-credit { position: absolute; bottom: 1rem; right: max(5vw, 1rem); color: var(--text); font-size: .79rem; }
.cta, .secondary, .worlds button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .66rem 1rem;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
}
.cta { color: #26170e; background: var(--accent); }
.cta:hover { background: #ffc6a6; }
.secondary, .worlds button { background: var(--surface); color: var(--text); border-color: var(--line); }
.secondary:hover, .worlds button:hover { border-color: var(--accent); }

.section { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.worlds { display: flex; gap: .5rem; margin: 1.3rem 0; }
.worlds [aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.world { display: grid; grid-template-columns: 1.35fr 1fr; }
.locator {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #16171c;
  background-image: radial-gradient(#cbc6c3 1px, transparent 1px), radial-gradient(#a29b94 1px, transparent 1px);
  background-size: 61px 59px, 97px 84px;
  background-position: 13px 7px, 41px 30px;
}
.globe {
  width: min(60%, 224px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 33% 32%, #3b3936 0%, transparent 16%),
    radial-gradient(ellipse at 48% 62%, #5a5753 4%, transparent 23%),
    radial-gradient(ellipse at 32% 27%, #cbc3b9, #77746e 55%, #2e2b2a 74%);
  box-shadow: 0 0 34px #c6b9a72a;
}
.mars .globe {
  background: radial-gradient(ellipse at 37% 54%, #733e2a 5%, transparent 25%),
    radial-gradient(ellipse at 58% 28%, #9e5138 5%, transparent 24%),
    radial-gradient(ellipse at 30% 30%, #f1ad79, #b56946 53%, #552c22 73%);
  box-shadow: 0 0 34px #e4815240;
}
.pin {
  position: absolute;
  top: 43%;
  left: 54%;
  padding: .35rem .6rem;
  color: var(--text);
  background: #201610;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-weight: 700;
}
.pin::before { content: "●"; margin-right: .45rem; color: var(--accent); }
.pin:hover { background: #56331f; }
.map-label { position: absolute; bottom: .8rem; left: 1rem; color: var(--muted); font-size: .8rem; }
.destination { padding: clamp(1.25rem, 4vw, 3rem); background: var(--surface); align-content: center; }
.destination > * + *, .mission > div > * + * { margin-top: .75rem; }
.destination > a, .mission > div > a { display: inline-block; }
.place { color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mission {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  padding-top: clamp(2rem, 6vw, 4rem);
  scroll-margin-top: 1.5rem;
}
.mission img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.mission figcaption, .sources { margin-top: .5rem; font-size: .84rem; }
.quiz { border-top: 1px solid var(--line); }
.quiz h2 + p { margin: 1rem 0 1.5rem; }
.quiz form { max-width: 46rem; }
fieldset { margin: 0 0 1rem; min-inline-size: 0; padding: 1rem; border: 1px solid var(--line); }
legend { max-width: 100%; padding: 0 .35rem; font-weight: 700; }
fieldset label { display: flex; align-items: baseline; gap: .55rem; padding: .35rem 0; cursor: pointer; }
fieldset input { flex: none; margin: 0; accent-color: var(--accent); }
.feedback { margin: .5rem 0 0; color: var(--accent); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.route-links { align-items: center; margin: 1.25rem 0; gap: 1rem; }
.mission-links, .mission-facts { grid-column: 1 / -1; }
.mission-facts { max-width: 66ch; }
.mission .mission-back { display: inline-flex; margin-top: 1.15rem; }
.eagle-gallery { display: grid; gap: 1rem; }
.eagle-gallery > figure { margin-top: 0; }
.eagle-photo img { height: auto; aspect-ratio: auto; border-radius: .65rem; }
.eagle-location { position: relative; display: block; }
.photo-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: .65rem;
  cursor: zoom-in;
}
.photo-trigger > span:last-child {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  padding: .3rem .55rem;
  border-radius: .3rem;
  background: #191525;
  color: #fff1e1;
  font-size: .8rem;
  font-weight: 700;
}
.photo-viewer {
  width: min(94vw, 70rem);
  max-width: none;
  max-height: 94dvh;
  padding: clamp(.7rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
  color: var(--text);
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .7rem; }
.photo-viewer::backdrop { background: #0c0912e6; }
html:has(.photo-viewer[open]) { overflow: hidden; }
.photo-viewer-bar, .photo-viewer-controls { display: flex; align-items: center; gap: .5rem; }
.photo-viewer-bar { flex-wrap: wrap; justify-content: space-between; }
.photo-viewer-bar h2 { font-size: clamp(1rem, 3vw, 1.4rem); }
.photo-viewer-bar button { padding: .45rem .65rem; }
.photo-viewer-controls output { min-width: 3.5rem; text-align: center; }
.photo-viewer-controls button:disabled { opacity: .45; }
.photo-viewer-scroll { overflow: auto; overscroll-behavior: contain; background: #110e18; }
.photo-viewer-scroll img { display: block; width: 100%; height: auto; }
#photo-viewer-caption { font-size: .9rem; }
.eagle-location img { display: block; width: 100%; }
.eagle-marker {
  position: absolute;
  left: 50.4%;
  top: 50.1%;
  width: 1.45rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: #ffe24d;
  border: 2px solid currentColor;
  border-radius: 50%;
  filter: drop-shadow(0 1px 2px #16130a);
  pointer-events: none;
}
.eagle-marker::before {
  content: "↓";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 900;
  line-height: .9;
}
.destination > a + a { margin-left: .8rem; }
.locator .pin-secondary { top: 63%; left: 18%; }
.locator .pin-third { top: 23%; left: 21%; }
.archive-photo img { height: auto; aspect-ratio: auto; border-radius: .65rem; }
.surveyor-drawing, .sojourner-drawing { position: absolute; bottom: 26%; }
.surveyor-drawing {
  left: 38%; width: 3.5rem; height: 2.3rem;
  background: linear-gradient(130deg, #f5d297, #966441);
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 85% 100%, 71% 64%, 29% 64%, 15% 100%, 0 100%);
}
.surveyor-drawing i { position: absolute; inset: .3rem 36% auto; height: .7rem; border-radius: .4rem; background: #41334b; }
.surveyor-trench {
  position: absolute; bottom: 21%; left: 63%; width: 1.3rem; height: .32rem;
  border-radius: 50%; background: #30223d; opacity: 0;
}
.surveyor-3-stage::after {
  content: ""; position: absolute; bottom: 36%; left: 48%;
  width: 17%; height: .4rem; border-radius: 1rem; background: #ffc168; transform-origin: left center;
}
.surveyor-3-stage[data-story-stage="2"]::after { transform: rotate(23deg); }
.surveyor-3-stage[data-story-stage="2"] .surveyor-trench,
.surveyor-3-stage[data-story-stage="3"] .surveyor-trench { opacity: 1; }
.sojourner-stage { background: linear-gradient(#452740, #cb7952 76%, #82503a 76%, #5c332a); }
.sojourner-drawing { left: 48%; width: 3rem; height: 1.2rem; border-radius: .25rem; background: #e4b15c; }
.sojourner-drawing i { display: block; height: .33rem; background: repeating-linear-gradient(90deg, #35405d 0 5px, #7789a9 5px 6px); }
.sojourner-drawing::after {
  content: ""; position: absolute; left: 0; bottom: -.27rem;
  width: .65rem; height: .65rem; border-radius: 50%; background: #282435; box-shadow: 1.17rem 0 #282435, 2.35rem 0 #282435;
}
.sojourner-rock { position: absolute; right: 18%; bottom: 23%; width: 1.5rem; height: .95rem; border-radius: 65% 45% 15% 20%; background: #674039; }
.sojourner-scan { position: absolute; right: 17%; bottom: 22%; width: 1.7rem; height: 1rem; border-radius: 50%; border: 2px solid #ffdd8b; opacity: 0; }
.sojourner-stage[data-story-stage="1"] .sojourner-drawing { transform: translateX(-140%); }
.sojourner-stage[data-story-stage="2"] .sojourner-scan { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .surveyor-3-stage[data-story-stage="2"]::after { animation: surveyor-scoop .9s ease-in-out both; }
  .sojourner-stage[data-story-stage="2"] .sojourner-drawing { animation: sojourner-drive 1s ease-out both; }
  .sojourner-stage[data-story-stage="2"] .sojourner-scan { animation: sojourner-measure .8s 1s ease-out both; }
  @keyframes surveyor-scoop { from { transform: rotate(-20deg); } to { transform: rotate(23deg); } }
  @keyframes sojourner-drive { from { transform: translateX(-140%); } to { transform: translateX(0); } }
  @keyframes sojourner-measure { from { opacity: 0; scale: .65; } to { opacity: 1; scale: 1; } }
}
.extra-story { border-top: 1px solid var(--line); margin-top: 2rem; }
.extra-scene { padding: 1rem; border-radius: .9rem; background: var(--surface); }
.extra-scene > * + * { margin-top: .75rem; }
.extra-stage .lunar-module { left: calc(50% - 1.4rem); right: auto; scale: 1.5; transform-origin: bottom center; }
.eagle-ninos {
  --eagle-ground: 24%;
  --eagle-ascent: calc(var(--lunar-stage-height) * -.51);
}
.eagle-ninos .lunar-module { bottom: var(--eagle-ground); }
.eagle-ninos[data-story-stage="3"] .module-cabin { transform: translateY(var(--eagle-ascent)); }
.insight-ninos { background: linear-gradient(#36233d, #b77056 75%, #754634 75%, #4a2934); }
.insight-body { position: absolute; bottom: 27%; left: 33%; width: 34%; height: 17%; background: #e4ad59; border-radius: .35rem; }
.insight-body::before, .insight-body::after { content: ""; position: absolute; width: 54%; height: 65%; top: 14%; border-radius: 50%; background: repeating-linear-gradient(90deg, #3a4272 0 5px, #7583b9 5px 6px); }
.insight-body::before { right: 90%; }
.insight-body::after { left: 90%; }
.insight-sensor { position: absolute; bottom: 24%; left: 76%; width: 1.1rem; height: .6rem; border-radius: 1rem 1rem .15rem .15rem; background: #ffe4a5; }
.insight-waves { position: absolute; bottom: 16%; left: 70%; width: 3rem; height: .5rem; border: 2px solid #ffd498; border-radius: 50%; opacity: 0; }
.insight-ninos[data-story-stage="2"] .insight-waves { opacity: .85; }
.insight-ninos[data-story-stage="3"] { filter: saturate(.7) brightness(.81); }
@media (prefers-reduced-motion: no-preference) {
  .eagle-ninos[data-story-stage="1"] .lunar-module { animation: eagle-land 1.3s ease-out both; }
  .eagle-ninos[data-story-stage="3"] .module-cabin { animation: eagle-ascent 1.3s ease-in both; }
  .insight-ninos[data-story-stage="1"] .insight-sensor { animation: sensor-placement 1s ease-out both; }
  .insight-ninos[data-story-stage="2"] .insight-waves { animation: marsquake .7s ease-out 3; }
  @keyframes eagle-land {
    from { bottom: 100%; }
    to { bottom: var(--eagle-ground); }
  }
  @keyframes eagle-ascent {
    from { transform: translateY(0); }
    to { transform: translateY(var(--eagle-ascent)); }
  }
  @keyframes sensor-placement { from { translate: -2rem -1.4rem; } to { translate: 0; } }
  @keyframes marsquake { from { scale: .35; opacity: .25; } to { scale: 1.2; opacity: .85; } }
}
.kids h2 + p, .kids h2 + form { margin-top: 1rem; }
.kids .mission { padding-top: .65rem; }
.kids .extra-story { padding-top: 1.5rem; }
.kids summary { cursor: pointer; font-size: 1.1rem; font-weight: 700; }
.kids-route {
  --bg: #191729;
  --surface: #242039;
  --line: #68506a;
  --accent: #ffbf98;
  background:
    radial-gradient(circle, #ffcfa2aa 1px, transparent 1.6px) 13px 23px / 83px 91px,
    radial-gradient(circle, #c7b5f599 1px, transparent 1.6px) 44px 56px / 109px 127px,
    radial-gradient(ellipse at 15% 5%, #4a305e, transparent 40%),
    radial-gradient(ellipse at 92% 74%, #472a35, transparent 45%),
    var(--bg);
}
.kids-route .worlds button { border-radius: 999px; padding-inline: 1.35rem; }
.kids-route .worlds button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.kids-art { overflow: hidden; border-radius: 1rem; border: 1px solid var(--line); background: var(--surface); }
.kids-art img { height: auto; aspect-ratio: auto; }
.lunar-start { display: block; width: 100%; padding: 0; color: var(--text); text-align: left; }
.lunar-start > span { display: block; padding: .7rem 1rem; color: var(--accent); font-weight: 700; }
.lunar-start:hover { border-color: var(--accent); }
.lunar-story :is([data-lunar-scene], [data-scene]) { padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.lunar-story :is([data-lunar-scene], [data-scene]) > * + *, :is(#lunar-sample, #mars-sample) > * + * { margin-top: .75rem; }
.mars-signal { display: flex; justify-content: center; align-items: center; gap: .75rem; min-height: 4.5rem; border-radius: .65rem; }
.mars-pebbles img { height: auto; aspect-ratio: auto; border-radius: .65rem; }
.mars-storm { position: relative; isolation: isolate; overflow: hidden; border-radius: .65rem; background: #5c382b; }
.mars-storm img { aspect-ratio: 16 / 9; filter: brightness(.6) contrast(.75); }
.mars-storm::before, .mars-storm::after { content: ""; position: absolute; pointer-events: none; }
.mars-storm::before {
  z-index: 1;
  inset: -18% -45%;
  background:
    radial-gradient(ellipse at 27% 78%, #ba8257 4%, transparent 41%),
    radial-gradient(ellipse at 66% 79%, #6d4230 8%, transparent 54%),
    radial-gradient(ellipse at 43% 31%, #bc8966 11%, transparent 49%),
    radial-gradient(ellipse at 81% 22%, #a87757 10%, transparent 54%),
    radial-gradient(ellipse at 49% 63%, #a36846 20%, transparent 73%);
  opacity: .91;
}
.mars-storm::after {
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 12%, #624030b0, transparent 55%),
    radial-gradient(ellipse at 73% 88%, #4b2b2399, transparent 58%),
    radial-gradient(circle at 30% 40%, #f6d0a66b .55px, transparent 1.2px) 0 0 / 31px 21px,
    radial-gradient(circle at 68% 72%, #e9b88566 .5px, transparent 1.1px) 8px 5px / 47px 33px;
  opacity: .68;
}
.mars-signal { background: #171629; }
.mars-signal i { width: .75rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .mars-pebbles img { animation: rover-reveal .45s ease-out both; }
  .mars-storm img { animation: mars-daylight 4.2s ease-in-out both; }
  .mars-storm::before { animation: mars-dust-front 4.2s linear both; }
  .mars-storm::after { animation: mars-dust-gusts 4.2s linear both; }
  .mars-signal i { animation: mars-signal-fade 1.15s ease-out both; }
  .mars-signal i:nth-child(2) { animation-delay: .2s; }
  .mars-signal i:last-child { animation-delay: .4s; }
  @keyframes mars-daylight {
    0%, 12% { filter: brightness(1) contrast(1); }
    58% { filter: brightness(.77) contrast(.88); }
    100% { filter: brightness(.6) contrast(.75); }
  }
  @keyframes mars-dust-front {
    0% { opacity: 0; transform: translate(-59%, 20%) scale(.97); }
    24% { opacity: .52; transform: translate(-32%, 12%) scale(1.06); }
    45% { opacity: .74; transform: translate(-15%, 6%) scale(1.02); }
    63% { opacity: .7; transform: translate(-6%, 1%) scale(1.13); }
    82% { opacity: .88; transform: translate(1%, -3%) scale(1.07); }
    100% { opacity: .91; transform: translate(6%, -4%) scale(1.1); }
  }
  @keyframes mars-dust-gusts {
    0% { opacity: 0; }
    28% { opacity: .27; }
    47% { opacity: .61; }
    57% { opacity: .37; }
    76% { opacity: .72; }
    100% { opacity: .68; background-position: 0 0, 0 0, 124px -21px, 196px -28px; }
  }
  @keyframes mars-signal-fade { from { opacity: 1; } to { opacity: .25; } }
}
.lunar-sample::before { content: ""; width: .85em; height: .85em; border-radius: 50%; background: #ff9659; }
.lunar-micrograph img { aspect-ratio: auto; border-radius: .65rem; }
.lunar-stage {
  --lunar-stage-height: clamp(9rem, 30vw, 12rem);
  position: relative;
  height: var(--lunar-stage-height);
  overflow: hidden;
  border-radius: .65rem;
  background:
    radial-gradient(circle at 16% 20%, #ffe4bc 1px, transparent 2px),
    radial-gradient(circle at 53% 30%, #ffe4bc 1px, transparent 2px),
    radial-gradient(circle at 88% 16%, #ffe4bc 1px, transparent 2px),
    linear-gradient(#151325 75%, #63536e 75%, #43394e);
}
.lunar-stage-caption { font-size: .82rem; }
.lunar-rover, .lunar-module { position: absolute; bottom: 24%; }
.lunar-rover {
  left: 30%;
  width: 3.25rem;
  height: 1rem;
  border-radius: .3rem;
  background: #e3d4c6;
  border-bottom: .2rem solid #aaa3b8;
}
.rover-wheel {
  position: absolute; bottom: -.42rem; left: .2rem;
  width: .85rem; height: .85rem; border: .17rem solid #2a263a;
  border-radius: 50%; background: #9b91ac;
}
.rover-wheel:last-child { left: auto; right: .2rem; }
.rover-camera {
  position: absolute; bottom: 1.4rem; right: -.1rem;
  width: .85rem; height: .5rem; border-radius: .13rem;
  background: #efb750; border-right: .2rem solid #272a40;
  transform-origin: .18rem center;
}
.lunar-rover::before {
  content: ""; position: absolute; bottom: 1rem; right: .55rem;
  width: .15rem; height: .5rem; background: #e3d4c6;
}
.lunar-module { right: 15%; width: 2.8rem; height: 2.8rem; }
.module-base {
  position: absolute; inset: auto 0 0; height: 1.05rem;
  background: #d3a651; clip-path: polygon(23% 0, 77% 0, 100% 100%, 81% 100%, 68% 52%, 32% 52%, 19% 100%, 0 100%);
}
.module-cabin {
  position: absolute; inset: 0 .4rem .85rem; border-radius: .65rem .65rem .2rem .2rem;
  background: linear-gradient(130deg, #efeee9, #a6a1b5);
}
.module-cabin::before {
  content: ""; position: absolute; top: .45rem; left: .37rem;
  width: .38rem; height: .3rem; background: #35344d; box-shadow: .76rem 0 #35344d;
}
@property --challenger-rise {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
#lunar-stage { container-type: inline-size; }
.lunar-liftoff #lunar-stage {
  --challenger-exit: calc(var(--lunar-stage-height) * .76);
  --challenger-rise: var(--challenger-exit);
}
.lunar-liftoff .module-cabin { transform: translateY(calc(-1 * var(--challenger-rise))); }
.lunar-liftoff .rover-camera {
  transform: rotate(calc(-1 * atan2(var(--challenger-rise), 55cqw - 4.08rem)));
}
.lunar-liftoff .rover-camera::after {
  content: "";
  position: absolute;
  left: .65rem;
  top: 50%;
  width: 100cqw;
  height: 36cqw;
  transform: translateY(-50%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: linear-gradient(90deg, #ffe29c50, #ffe29c22);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .lunar-parking .lunar-rover { animation: rover-parking 1.25s ease-out both; }
  .lunar-liftoff #lunar-stage { animation: challenger-lift 2.4s .35s ease-in both; }
  @keyframes rover-parking { from { transform: translateX(-150%); } to { transform: translateX(0); } }
  @keyframes challenger-lift {
    from { --challenger-rise: 0px; }
    to { --challenger-rise: var(--challenger-exit); }
  }
}
.kids-route .orbit-case, .kids-route fieldset { border-radius: .9rem; background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .kids-art img { animation: rover-reveal .65s ease-out both; }
  @keyframes rover-reveal {
    from { opacity: .65; transform: scale(1.055); }
    to { opacity: 1; transform: scale(1); }
  }
}
.topbar nav { flex-wrap: wrap; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
}
.language-switch span { min-width: 2rem; padding: .3rem .4rem; border-radius: 999px; }
.language-switch [data-language-label]::before { content: attr(data-language-label); }
.language-switch[aria-checked="false"] [lang="en"],
.language-switch[aria-checked="true"] [lang="es"] { background: var(--accent); color: var(--bg); }
#resultado { margin-top: .8rem; color: var(--text); font-weight: 700; }
.scrapper { border-top: 1px solid var(--line); }
.scrapper > p, .orbit-case > * + * { margin-top: .9rem; }
.orbit-case { margin-top: 1.5rem; padding: clamp(1rem, 4vw, 2rem); background: var(--surface); }
.orbit-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
}
.orbit-facts dt { font-weight: 700; }
.orbit-facts dd { margin: .25rem 0 0; color: var(--muted); }
.orbit-facts details { padding: 1rem; border: 1px solid var(--line); }
.orbit-facts summary { cursor: pointer; font-weight: 700; }
.orbit-facts details p, .orbit-facts details dd + dt { margin-top: .65rem; }
#conjunction-filter { display: grid; gap: .75rem; justify-items: start; }
#conjunction-filter label { display: grid; gap: .25rem; width: min(100%, 27rem); }
#conjunction-filter input { width: 100%; font: inherit; padding: .4rem; }
.conjunction-query { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.conjunction-query p { flex: 1 1 18rem; max-width: 52ch; font-size: .9rem; }
#conjunction-filter button:disabled { opacity: .6; cursor: default; }
.conjunction-result { width: 100%; margin-top: 2rem; border-collapse: collapse; }
.conjunction-result caption {
  padding: .75rem clamp(.65rem, 2vw, 1.15rem);
  border-left: .3rem solid var(--accent);
  background: #35231c;
  color: var(--text);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: left;
}
.conjunction-pair-separator { color: var(--accent); font-weight: 500; }
.conjunction-result th, .conjunction-result td {
  border: 1px solid var(--line);
  padding: .55rem clamp(.45rem, 2vw, 1rem);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.conjunction-result thead { background: var(--bg); }
.conjunction-result th[scope="row"] { width: 42%; }
.conjunction-result td { color: var(--muted); }
footer { border-top: 1px solid var(--line); }

@media (max-width: 650px) {
  .hero { min-height: 500px; background-position: center, center, 60% center; }
  .world, .mission { grid-template-columns: 1fr; }
  .locator { min-height: 240px; }
  .mission { gap: 1.2rem; }
}
