:root {
  --ink: #f7faf8;
  --muted: #b7c5bd;
  --dim: #7f8f87;
  --void: #050706;
  --panel: rgba(9, 15, 13, 0.82);
  --panel-solid: #0b1110;
  --line: rgba(205, 236, 224, 0.18);
  --cyan: #22d3ee;
  --mint: #4ade80;
  --gold: #f4c95d;
  --coral: #ff6b5f;
  --white-soft: rgba(255, 255, 255, 0.9);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0;
  touch-action: manipulation;
  user-select: none;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
}

#app {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  background: var(--void);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen::before {
  z-index: -3;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: saturate(0.98) contrast(1.05);
  transform: scale(1.01);
  animation: slowZoom 26s ease-in-out infinite alternate;
}

.screen::after {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.2), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(244, 201, 93, 0.14), transparent 26%),
    linear-gradient(115deg, rgba(4, 9, 8, 0.86), rgba(4, 10, 9, 0.34) 48%, rgba(4, 9, 8, 0.92));
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 38% 38%, rgba(244, 201, 93, 0.65), transparent),
    radial-gradient(1px 1px at 86% 44%, rgba(74, 222, 128, 0.8), transparent),
    radial-gradient(2px 2px at 16% 72%, rgba(34, 211, 238, 0.75), transparent),
    radial-gradient(1px 1px at 58% 86%, rgba(255, 255, 255, 0.85), transparent);
  background-size: 360px 360px;
  opacity: 0.55;
  animation: starDrift 34s linear infinite;
}

.stars::before {
  content: "";
  position: absolute;
  inset: -18%;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-left-color: rgba(244, 201, 93, 0.28);
  border-bottom-color: rgba(74, 222, 128, 0.22);
  border-radius: 50%;
  transform: rotate(-14deg);
  animation: orbitLine 32s linear infinite;
}

.stars::after {
  content: "";
  position: absolute;
  left: -16%;
  right: -16%;
  top: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.34), rgba(244, 201, 93, 0.22), transparent);
  transform: rotate(-9deg);
}

@keyframes slowZoom {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-80px, 120px, 0);
  }
}

@keyframes orbitLine {
  from {
    transform: rotate(-14deg);
  }
  to {
    transform: rotate(346deg);
  }
}

.page {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 34px;
  gap: 22px;
}

.transition-stage {
  animation: screenIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal-up {
  animation: revealUp 520ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar,
.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(74, 222, 128, 0.58);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 26px rgba(74, 222, 128, 0.24), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand h1,
.section-title h2 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.section-title {
  max-width: 720px;
}

.section-title p,
.lead,
.body-copy {
  color: var(--muted);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.section-title p {
  margin: 8px 0 0;
  font-size: 1.08rem;
}

.status-pill,
.source-pill {
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--white-soft);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.content {
  min-height: 0;
  display: grid;
  align-items: stretch;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-layout {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(300px, 0.9fr) auto auto;
  gap: 24px;
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: 24px;
  max-width: 930px;
  padding-bottom: 12px;
}

.home-media-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 16px;
}

.hero-video-panel {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(205, 236, 224, 0.22);
  border-radius: 8px;
  background: #020403;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 42px rgba(34, 211, 238, 0.14);
}

.hero-video-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-video-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 46%);
  pointer-events: none;
}

.home-photo-stack {
  min-height: 0;
  display: grid;
  gap: 12px;
}

.home-photo-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030605;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.home-photo-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--ink);
  font-weight: 900;
}

.mission-kicker {
  width: max-content;
  max-width: 100%;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(244, 201, 93, 0.42);
  border-radius: 8px;
  background: rgba(3, 6, 5, 0.7);
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
}

.main-title {
  margin: 0;
  max-width: 940px;
  font-size: 5.1rem;
  line-height: 0.97;
  font-weight: 920;
  overflow-wrap: anywhere;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.7);
}

.main-title span {
  color: var(--mint);
}

.lead {
  margin: 0;
  max-width: 830px;
  font-size: 2rem;
  color: #d7e4dc;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 2.2rem;
  line-height: 1;
}

.metric span {
  color: #d4dfd8;
  font-size: 1.06rem;
  line-height: 1.25;
}

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

.primary-action,
.nav-action,
.choice-button,
.icon-action,
.answer-button {
  min-height: 108px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 13, 12, 0.78);
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 44px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-action {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(135deg, rgba(74, 222, 128, 0.96), rgba(34, 211, 238, 0.92));
  color: #02110c;
  border-color: rgba(255, 255, 255, 0.34);
}

.primary-action::before,
.nav-action::before,
.choice-button::before,
.icon-action::before,
.answer-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.16), transparent 48%);
  transform: translateX(-110%);
  transition: transform 620ms ease;
}

.primary-action:hover::before,
.nav-action:hover::before,
.choice-button:hover::before,
.icon-action:hover::before,
.answer-button:hover::before {
  transform: translateX(110%);
}

.primary-action > *,
.nav-action > *,
.choice-button > *,
.icon-action > *,
.answer-button > * {
  position: relative;
  z-index: 1;
}

.nav-action:not(.active):hover,
.choice-button:hover,
.icon-action:hover,
.answer-button:hover {
  border-color: rgba(34, 211, 238, 0.54);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46), 0 0 30px rgba(34, 211, 238, 0.14);
}

.primary-action:active,
.nav-action:active,
.choice-button:active,
.icon-action:active,
.answer-button:active {
  transform: scale(0.985);
}

.action-title {
  display: block;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.1;
}

.action-subtitle {
  display: block;
  margin-top: 6px;
  color: inherit;
  opacity: 0.74;
  font-size: 0.98rem;
  line-height: 1.2;
}

.action-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.7rem;
}

.screen-grid,
.mission-grid,
.gallery-grid,
.sources-grid {
  min-height: 0;
  display: grid;
  gap: 22px;
}

.screen-grid {
  grid-template-rows: auto 1fr;
}

.mission-grid {
  grid-template-columns: 0.88fr 1.12fr;
}

.image-panel {
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: #060908;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  animation: revealUp 540ms 110ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-panel.contain img {
  object-fit: contain;
  padding: 26px;
  background: rgba(0, 0, 0, 0.55);
}

.caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8e5df;
  font-size: 0.95rem;
  line-height: 1.28;
}

.info-stack {
  min-height: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-band {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.26);
}

.panel-band h3 {
  margin: 0 0 10px;
  font-size: 2.1rem;
  line-height: 1.07;
}

.panel-band p {
  margin: 0;
  color: #d7e4dc;
  font-size: 1.18rem;
  line-height: 1.34;
}

.fact-list {
  display: grid;
  gap: 12px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.timeline-grid div {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(244, 201, 93, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 201, 93, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.38);
}

.timeline-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.65rem;
  line-height: 1;
}

.timeline-grid span {
  color: #d7e4dc;
  font-size: 0.96rem;
  line-height: 1.24;
}

.mission-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 116px;
}

.mission-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0.88;
}

.fact-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.fact-row:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 201, 93, 0.38);
  background: rgba(244, 201, 93, 0.08);
}

.fact-row strong {
  min-width: 88px;
  color: var(--gold);
  font-size: 1.08rem;
}

.fact-row span {
  color: #d6e2dc;
  font-size: 1.05rem;
  line-height: 1.28;
}

.curiosity-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.choice-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.choice-button {
  min-height: 100px;
  font-size: 1.28rem;
  font-weight: 850;
}

.choice-button.active {
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.26), rgba(34, 211, 238, 0.12)),
    rgba(0, 0, 0, 0.46);
  border-color: rgba(74, 222, 128, 0.74);
  box-shadow: 0 0 26px rgba(74, 222, 128, 0.16);
}

.detail-view {
  min-height: 0;
  display: grid;
  grid-template-rows: 48% 1fr;
  gap: 16px;
}

.detail-text {
  overflow: hidden;
}

.detail-text h3 {
  margin: 0 0 12px;
  font-size: 2.5rem;
  line-height: 1.03;
}

.detail-text p {
  margin: 0 0 14px;
  color: #d7e4dc;
  font-size: 1.24rem;
  line-height: 1.36;
}

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

.detail-points li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.07);
  color: #dcebe4;
  font-size: 1.02rem;
  line-height: 1.24;
}

.detail-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(244, 201, 93, 0.15);
  border: 1px solid rgba(244, 201, 93, 0.35);
  color: #ffe7a4;
  font-weight: 850;
}

.gallery-grid {
  grid-template-rows: 1fr auto;
}

.gallery-stage {
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  animation: revealUp 540ms 110ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88) 22%);
}

.gallery-overlay h3 {
  margin: 0 0 10px;
  font-size: 2.45rem;
  line-height: 1.04;
}

.gallery-overlay p {
  margin: 0;
  max-width: 790px;
  color: #d8e5df;
  font-size: 1.18rem;
  line-height: 1.3;
}

.gallery-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
}

.icon-action {
  min-height: 96px;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  font-size: 1.2rem;
}

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

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.dot.active {
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.7);
}

.quiz-layout {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.quiz-support {
  min-height: 220px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.quiz-support-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050706;
}

.quiz-support-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-support-copy {
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
}

.quiz-support-kicker {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-support-copy p {
  margin: 0;
  color: #deebe5;
  font-size: 1.08rem;
  line-height: 1.32;
}

.progress {
  height: 14px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value);
  background: linear-gradient(90deg, var(--mint), var(--gold));
}

.question-card {
  min-height: 0;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.question-card h3 {
  margin: 0;
  max-width: 950px;
  font-size: 2.7rem;
  line-height: 1.06;
}

.answers {
  display: grid;
  gap: 14px;
  align-content: center;
}

.answer-button {
  min-height: 118px;
  font-size: 1.42rem;
  font-weight: 850;
}

.answer-button.correct {
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.34), rgba(34, 211, 238, 0.14)),
    rgba(0, 0, 0, 0.38);
  border-color: rgba(74, 222, 128, 0.9);
}

.answer-button.wrong {
  background:
    linear-gradient(135deg, rgba(255, 107, 95, 0.34), rgba(244, 201, 93, 0.08)),
    rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 107, 95, 0.85);
}

.feedback {
  min-height: 118px;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.feedback strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 1.18rem;
}

.feedback p {
  margin: 0;
  color: #d7e4dc;
  font-size: 1.08rem;
  line-height: 1.28;
}

.feedback-copy {
  display: grid;
  gap: 8px;
}

.feedback-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.feedback-facts span {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(244, 201, 93, 0.28);
  background: rgba(244, 201, 93, 0.09);
  color: #ffe7a4;
  font-size: 0.92rem;
  font-weight: 800;
}

.result-layout {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 26px;
  max-width: 900px;
}

.score-number {
  font-size: 8rem;
  line-height: 0.9;
  color: var(--mint);
  font-weight: 950;
}

.result-layout h2 {
  margin: 0;
  font-size: 4.4rem;
  line-height: 0.98;
}

.result-layout p {
  margin: 0;
  max-width: 790px;
  color: #d7e4dc;
  font-size: 1.8rem;
  line-height: 1.28;
}

.reward-banner {
  max-width: 860px;
  padding: 18px 20px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 201, 93, 0.14), rgba(74, 222, 128, 0.08)),
    rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 30px rgba(244, 201, 93, 0.12);
}

.reward-banner strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.24rem;
  text-transform: uppercase;
}

.reward-banner p {
  font-size: 1.22rem;
}

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

.source-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
}

.source-item h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.source-item p {
  margin: 0 0 10px;
  color: #d7e4dc;
  font-size: 1.04rem;
  line-height: 1.3;
}

.source-item small {
  display: block;
  color: var(--cyan);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.home-button {
  min-width: 170px;
  min-height: 70px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.48);
  color: var(--ink);
  font-weight: 900;
  font-size: 1.06rem;
}

.bottombar {
  justify-content: stretch;
}

.nav-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.nav-action {
  min-height: 74px;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-size: 1.02rem;
  font-weight: 900;
  box-shadow: none;
}

.nav-action.active {
  color: #02110c;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.46), transparent 22%),
    linear-gradient(135deg, rgba(74, 222, 128, 0.98), rgba(34, 211, 238, 0.84));
  border-color: rgba(74, 222, 128, 0.88);
}

.launchpad .nav-action {
  min-height: 108px;
  justify-content: space-between;
  text-align: left;
  padding: 20px 22px;
  box-shadow: 0 16px 44px var(--shadow);
}

.launchpad .nav-action.active {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 13, 12, 0.82);
  border-color: var(--line);
}

.gallery-stage.contain img {
  object-fit: contain;
  padding: 40px;
  background: rgba(0, 0, 0, 0.62);
}

@media (max-width: 1024px), (max-height: 920px) {
  .page {
    padding: 20px;
    gap: 16px;
  }

  .main-title {
    font-size: 3.3rem;
  }

  .lead {
    font-size: 1.38rem;
  }

  .mission-grid,
  .curiosity-layout,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric {
    min-height: 98px;
  }

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

  .home-layout {
    grid-template-rows: auto auto auto auto;
  }

  .home-media-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .timeline-grid,
  .mission-photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quiz-support {
    grid-template-columns: 1fr;
  }

  .hero-video-panel {
    min-height: 220px;
  }

  .home-photo-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 100px;
  }

  .primary-action,
  .choice-button,
  .icon-action,
  .answer-button {
    min-height: 80px;
  }

  .nav-action {
    min-height: 60px;
    font-size: 0.9rem;
    padding: 10px 8px;
  }

  .nav-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-controls {
    grid-template-columns: 1fr auto 1fr;
  }

  .question-card h3 {
    font-size: 2rem;
  }

  .answer-button {
    min-height: 80px;
    font-size: 1.18rem;
  }

  .detail-text h3 {
    font-size: 1.8rem;
  }

  .detail-text p {
    font-size: 1.08rem;
  }

  .panel-band h3 {
    font-size: 1.6rem;
  }

  .panel-band p {
    font-size: 1.04rem;
  }

  .action-title {
    font-size: 1.18rem;
  }

  .action-subtitle {
    font-size: 0.88rem;
  }
}

/* Portrait phone */
@media (max-width: 600px) {
  .main-title {
    font-size: 2.4rem;
  }

  .lead {
    font-size: 1.14rem;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .launchpad {
    grid-template-columns: 1fr;
  }

  .home-media-grid,
  .timeline-grid,
  .mission-photo-strip {
    grid-template-columns: 1fr;
  }

  .hero-video-panel {
    min-height: 180px;
  }

  .home-photo-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 80px;
  }

  .nav-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-action {
    min-height: 52px;
    font-size: 0.78rem;
    padding: 8px 4px;
  }

  .gallery-controls {
    grid-template-columns: 1fr 1fr;
  }

  .dots {
    grid-column: 1 / -1;
    order: -1;
  }

  .question-card h3 {
    font-size: 1.6rem;
  }

  .question-card {
    padding: 16px;
    gap: 14px;
  }
}

@media (min-width: 1000px) and (min-height: 1600px) {
  .page {
    padding: 46px;
    gap: 28px;
  }

  .brand h1,
  .section-title h2 {
    font-size: 2.08rem;
  }

  .main-title {
    font-size: 6.6rem;
  }

  .lead {
    font-size: 2.4rem;
  }

  .action-title {
    font-size: 1.7rem;
  }

  .action-subtitle {
    font-size: 1.12rem;
  }

  .metric strong {
    font-size: 2.8rem;
  }

  .metric span,
  .panel-band p,
  .detail-text p {
    font-size: 1.32rem;
  }

  .detail-points li {
    font-size: 1.1rem;
  }

  .question-card h3 {
    font-size: 3.25rem;
  }

  .answer-button {
    font-size: 1.65rem;
  }
}

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