@charset "UTF-8";
:root {
  --bg: #020408;
  --bg-deep: #060b14;
  --bg-soft: #0b111c;
  --text: #edf2f7;
  --text-muted: rgba(222, 229, 238, 0.76);
  --text-soft: rgba(185, 197, 214, 0.58);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 42px 96px rgba(0, 0, 0, 0.46);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 42px;
  --max-width: 1160px;
  --wide-width: 1380px;
  --copy-width: 64ch;
  --copy-tight: 46ch;
  --helper-text: rgba(185, 197, 214, 0.52);
  --surface-primary-fill: rgba(4, 8, 14, 0.78);
  --surface-primary-border: rgba(255, 255, 255, 0.14);
  --surface-primary-shadow: 0 30px 78px rgba(0, 0, 0, 0.38);
  --surface-secondary-fill: rgba(255, 255, 255, 0.02);
  --surface-secondary-fill-strong: rgba(255, 255, 255, 0.04);
  --surface-secondary-border: rgba(255, 255, 255, 0.07);
  --surface-secondary-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  --surface-quiet-fill: rgba(255, 255, 255, 0.015);
  --surface-quiet-fill-strong: rgba(255, 255, 255, 0.028);
  --surface-quiet-border: rgba(255, 255, 255, 0.05);
  --surface-quiet-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  --section-accent: #8fbef8;
  --section-accent-soft: rgba(143, 190, 248, 0.16);
  --section-line: rgba(143, 190, 248, 0.34);
  --section-surface: rgba(8, 14, 24, 0.84);
  --section-surface-strong: rgba(5, 10, 18, 0.94);
  --section-text: #edf2f7;
}

.panel {
  --section-accent: #8fbef8;
  --section-accent-soft: rgba(143, 190, 248, 0.16);
  --section-line: rgba(143, 190, 248, 0.34);
  --section-surface: rgba(8, 14, 24, 0.84);
  --section-surface-strong: rgba(5, 10, 18, 0.94);
  --section-text: #edf2f7;
  --helper-text: rgba(185, 197, 214, 0.52);
  --surface-primary-fill: rgba(4, 8, 14, 0.78);
  --surface-primary-border: rgba(255, 255, 255, 0.14);
  --surface-primary-shadow: 0 30px 78px rgba(0, 0, 0, 0.38);
  --surface-secondary-fill: rgba(255, 255, 255, 0.02);
  --surface-secondary-fill-strong: rgba(255, 255, 255, 0.04);
  --surface-secondary-border: rgba(255, 255, 255, 0.07);
  --surface-secondary-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  --surface-quiet-fill: rgba(255, 255, 255, 0.015);
  --surface-quiet-fill-strong: rgba(255, 255, 255, 0.028);
  --surface-quiet-border: rgba(255, 255, 255, 0.05);
  --surface-quiet-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

#hero,
#universe {
  --section-accent: #8ebeff;
  --section-accent-soft: rgba(142, 190, 255, 0.18);
  --section-line: rgba(142, 190, 255, 0.32);
  --section-surface: rgba(8, 14, 26, 0.76);
  --section-surface-strong: rgba(4, 8, 16, 0.94);
}

#galaxies,
#milkyway {
  --section-accent: #c7d6ef;
  --section-accent-soft: rgba(199, 214, 239, 0.14);
  --section-line: rgba(199, 214, 239, 0.26);
  --section-surface: rgba(12, 15, 22, 0.84);
  --section-surface-strong: rgba(6, 9, 14, 0.96);
}

#solar-system {
  --section-accent: #f2c26f;
  --section-accent-soft: rgba(242, 194, 111, 0.18);
  --section-line: rgba(242, 194, 111, 0.28);
  --section-surface: rgba(18, 13, 8, 0.82);
  --section-surface-strong: rgba(8, 6, 4, 0.95);
}

#earth-kepler {
  --section-accent: #96d6c4;
  --section-accent-soft: rgba(150, 214, 196, 0.18);
  --section-line: rgba(150, 214, 196, 0.28);
  --section-surface: rgba(6, 16, 17, 0.84);
  --section-surface-strong: rgba(3, 9, 10, 0.95);
}

#voyager,
#outro {
  --section-accent: #d3b791;
  --section-accent-soft: rgba(211, 183, 145, 0.16);
  --section-line: rgba(211, 183, 145, 0.28);
  --section-surface: rgba(14, 12, 10, 0.84);
  --section-surface-strong: rgba(8, 7, 6, 0.96);
}

#gaseste-terra,
#quiz {
  --section-accent: #88b4e2;
  --section-accent-soft: rgba(136, 180, 226, 0.16);
  --section-line: rgba(136, 180, 226, 0.28);
  --section-surface: rgba(8, 13, 21, 0.84);
  --section-surface-strong: rgba(4, 8, 14, 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: radial-gradient(1200px 640px at 78% -10%, rgba(64, 110, 176, 0.2), transparent 68%), radial-gradient(820px 540px at -8% 112%, rgba(76, 121, 190, 0.14), transparent 72%), linear-gradient(180deg, #02050d 0%, #020408 44%, #010205 100%);
  overflow-x: hidden;
}

body.story-scroll-snap {
  scroll-snap-type: y proximity;
}

body.solar-expanded-open,
body.earth-kepler-expanded-open,
body.voyager-expanded-open,
body.gaseste-terra-expanded-open {
  overflow: hidden;
}

body::selection {
  background: rgba(142, 190, 255, 0.24);
  color: var(--text);
}

a {
  color: rgba(226, 235, 247, 0.92);
  text-decoration-color: rgba(226, 235, 247, 0.28);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.56);
}

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

button {
  appearance: none;
}

canvas {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.84);
  outline-offset: 3px;
}

#starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -2;
}

.nebula-a {
  width: 44rem;
  height: 30rem;
  right: -12rem;
  top: 6vh;
  background: radial-gradient(circle at 36% 44%, rgba(124, 176, 255, 0.38), transparent 54%), radial-gradient(circle at 72% 58%, rgba(52, 84, 132, 0.34), transparent 66%);
}

.nebula-b {
  width: 36rem;
  height: 28rem;
  left: -10rem;
  bottom: 4vh;
  background: radial-gradient(circle at 54% 42%, rgba(214, 186, 142, 0.2), transparent 54%), radial-gradient(circle at 42% 68%, rgba(99, 137, 195, 0.18), transparent 62%);
}

#cosmos-app {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.panel {
  position: relative;
  width: min(var(--max-width), 92vw);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.95rem, 1.9vw, 1.4rem);
  color: var(--section-text);
}

body.story-scroll-snap .panel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.js-reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.4rem, 4vh, 2.5rem);
  width: min(220px, 34vw);
  height: 1px;
  background: linear-gradient(90deg, var(--section-line), transparent);
  opacity: 0.88;
  pointer-events: none;
}

.section-head {
  display: grid;
  gap: 0.38rem;
  align-content: start;
  max-width: min(40rem, 100%);
}

.section-head::before,
.section-label {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--section-accent);
}

.section-head::before {
  content: attr(data-kicker);
}

.section-head h2,
.content-pane h3,
.timeline-list h3,
.galaxy-type-card h3,
.galaxy-preview-type,
.planet-panel h3,
.planet-table-wrap h3,
.earth-kepler-facts-title,
.planet-compare-overlay h3,
.voyager-viewer-overlay h3,
.voyager-part-panel h4,
.milkyway-inline-facts strong,
.gt-objective-card h3,
.gt-direction-title,
.gt-viewer-overlay h3,
.gt-finale-title,
.modal-card h3,
.solar-layer-panel h4,
.earth-kepler-layer-panel h4 {
  font-family: "DM Sans", system-ui, sans-serif;
}

.section-head h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--section-text);
}

.section-copy {
  margin: 0;
  max-width: min(48ch, 100%);
  color: var(--text-muted);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.12rem);
  line-height: 1.68;
}

.split-layout,
.solar-layout,
.earth-kepler-layout,
.voyager-layout,
.gaseste-terra-layout {
  display: grid;
  gap: clamp(1rem, 2.1vw, 1.8rem);
}

.content-pane {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.info-stack {
  gap: 0.9rem;
}

.content-pane > p {
  margin: 0;
  max-width: var(--copy-width);
  color: var(--text-muted);
  line-height: 1.72;
}

.content-pane > p:first-of-type {
  max-width: 24ch;
  font-size: clamp(1.12rem, 0.78vw + 1rem, 1.38rem);
  line-height: 1.38;
  color: var(--section-text);
}

.fact-list {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.15rem;
}

.fact-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--section-accent);
}

.metrics-grid {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.metric-card {
  padding: 0.9rem 0.9rem 0.95rem;
  min-height: 98px;
  display: grid;
  align-content: end;
  gap: 0.28rem;
  background: linear-gradient(180deg, var(--surface-quiet-fill-strong), var(--surface-quiet-fill));
}

.metric-value {
  margin: 0;
  font-size: clamp(1.28rem, 0.8vw + 1rem, 1.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--section-text);
}

.metric-label {
  margin: 0;
  color: var(--helper-text);
  font-size: 0.84rem;
  line-height: 1.45;
}

.timeline-list {
  margin-top: clamp(0.3rem, 1.8vh, 0.85rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.timeline-list article {
  padding-top: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-list h3 {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--section-accent);
}

.timeline-list p {
  margin: 0.48rem 0 0;
  color: var(--helper-text);
  font-size: 0.88rem;
  line-height: 1.58;
}

.timeline-list.mini {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card {
  padding-top: 0.72rem;
  border-top: 1px solid var(--surface-quiet-border);
}

.note-card h3 {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.note-card p {
  margin: 0.38rem 0 0;
  color: var(--helper-text);
  line-height: 1.58;
}

.scroll-cue,
.ghost-button,
#quiz-submit,
.milkyway-details-toggle,
.galaxy-info-toggle,
.solar-expand,
.earth-kepler-expand,
.voyager-expand,
.gt-expand,
.modal-close {
  border: 1px solid var(--surface-quiet-border);
  border-radius: 999px;
  background: var(--surface-quiet-fill);
  color: rgba(237, 242, 247, 0.76);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.64rem 0.92rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.scroll-cue:hover,
.ghost-button:hover,
#quiz-submit:hover,
.milkyway-details-toggle:hover,
.galaxy-info-toggle:hover,
.solar-expand:hover,
.earth-kepler-expand:hover,
.voyager-expand:hover,
.gt-expand:hover,
.modal-close:hover,
.scroll-cue:focus-visible,
.ghost-button:focus-visible,
#quiz-submit:focus-visible,
.milkyway-details-toggle:focus-visible,
.galaxy-info-toggle:focus-visible,
.solar-expand:focus-visible,
.earth-kepler-expand:focus-visible,
.voyager-expand:focus-visible,
.gt-expand:focus-visible,
.modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--surface-quiet-fill-strong);
  box-shadow: var(--surface-quiet-shadow);
  color: var(--section-text);
}

#scroll-next::after {
  content: " ↓";
}

.visual-caption,
.map-legend,
.planet-compare-overlay,
.voyager-viewer-overlay,
.gt-viewer-overlay,
.solar-layer-panel,
.earth-kepler-layer-panel,
.voyager-part-panel,
.gt-direction,
.gt-hint,
.gt-error.gt-error--badge {
  border: 1px solid var(--surface-quiet-border);
  border-radius: var(--radius-md);
  background: rgba(5, 9, 16, 0.58);
  box-shadow: var(--surface-quiet-shadow);
  backdrop-filter: blur(14px);
}

#universe.panel {
  width: min(var(--wide-width), 97vw);
}

.universe-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  align-items: end;
}

#universe .content-pane {
  max-width: 34rem;
  padding-bottom: clamp(0rem, 2vh, 1rem);
}

.visual-pane {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-primary-border);
  box-shadow: var(--surface-primary-shadow);
  background-color: var(--surface-primary-fill);
}

.universe-visual {
  min-height: clamp(30rem, 72vh, 46rem);
  background: linear-gradient(180deg, rgba(2, 6, 14, 0.08), rgba(2, 6, 14, 0.72)), url("../assets/images/universe-hudf-nasa.jpg");
  background-position: center;
  background-size: cover;
}

.universe-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 44% 38%, rgba(255, 255, 255, 0.14), transparent 42%), radial-gradient(circle at 72% 64%, rgba(142, 190, 255, 0.18), transparent 46%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.visual-caption {
  position: absolute;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  max-width: min(360px, 100% - 2rem);
  padding: 0.78rem 0.9rem;
}

.visual-caption p {
  margin: 0;
  max-width: 34ch;
}

.visual-caption p + p {
  margin-top: 0.25rem;
  color: var(--helper-text);
  font-size: 0.88rem;
}

.galaxy-showcase {
  display: grid;
  grid-template-columns: minmax(250px, 0.44fr) minmax(520px, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: stretch;
}

.galaxy-type-list {
  display: grid;
  align-content: start;
}

.galaxy-type-card {
  padding: 1rem 0 1rem 1rem;
  border: 0;
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.galaxy-type-card:hover,
.galaxy-type-card:focus-visible,
.galaxy-type-card.is-active {
  transform: translateX(4px);
  border-left-color: var(--section-accent);
  background: rgba(255, 255, 255, 0.02);
}

.galaxy-type-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1vw + 0.8rem, 1.45rem);
  letter-spacing: -0.03em;
  color: var(--section-text);
}

.galaxy-type-card p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.galaxy-preview {
  position: relative;
  min-height: clamp(28rem, 62vw, 40rem);
  border: 1px solid var(--surface-primary-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #04070d;
  box-shadow: var(--surface-primary-shadow);
}

.galaxy-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 8, 0.06) 0%, rgba(3, 5, 8, 0.84) 88%), radial-gradient(circle at 54% 38%, rgba(255, 255, 255, 0.08), transparent 46%);
  z-index: 2;
  pointer-events: none;
}

.galaxy-preview-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.35s ease, transform 0.7s ease, filter 0.35s ease;
  z-index: 1;
}

.galaxy-preview-image.is-changing {
  opacity: 0.2;
  transform: scale(1.03);
  filter: saturate(0.88);
}

.galaxy-preview-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0) 0%, rgba(4, 7, 12, 0.86) 42%, rgba(4, 7, 12, 0.96) 100%);
}

.galaxy-preview-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.galaxy-preview-hint {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--helper-text);
}

.galaxy-info-toggle {
  padding: 0.4rem 0.66rem;
  font-size: 0.62rem;
  color: var(--helper-text);
}

.galaxy-preview-details {
  display: grid;
  gap: 0.3rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: max-height 0.5s ease, opacity 0.3s ease, transform 0.3s ease, padding-top 0.3s ease;
}

.galaxy-preview.is-info-open .galaxy-preview-details {
  max-height: 30rem;
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.6rem;
}

.galaxy-preview-type {
  margin: 0;
  font-size: clamp(1.4rem, 1vw + 1rem, 1.95rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.galaxy-preview-caption,
.galaxy-preview-source {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.55;
}

.galaxy-preview-caption {
  color: rgba(234, 240, 248, 0.74);
}

.galaxy-preview-source {
  color: var(--helper-text);
}

.galaxy-preview-description {
  margin: 0.4rem 0 0;
  max-width: 42ch;
  line-height: 1.58;
  color: rgba(222, 229, 238, 0.7);
}

.galaxy-preview-facts {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.28rem;
  color: var(--helper-text);
}

.galaxy-footnote {
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--surface-quiet-border);
  max-width: 62ch;
}

.galaxy-footnote p {
  margin: 0;
  line-height: 1.7;
  color: var(--helper-text);
}

.milkyway-layout {
  grid-template-columns: minmax(260px, 0.68fr) minmax(480px, 1.32fr);
  align-items: center;
}

.milkyway-map {
  position: relative;
  min-height: clamp(28rem, 64vw, 42rem);
  border: 1px solid var(--surface-primary-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(198, 214, 239, 0.08), transparent 42%), linear-gradient(180deg, rgba(7, 9, 12, 0.94), rgba(5, 7, 10, 0.98));
  box-shadow: var(--surface-primary-shadow);
}

.milkyway-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.82) 0 1px, transparent 2px), radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px), radial-gradient(circle at 34% 66%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px), radial-gradient(circle at 62% 76%, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px);
  pointer-events: none;
}

.milkyway-details-toggle {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 8;
  padding: 0.42rem 0.68rem;
  opacity: 0.82;
}

.milkyway-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 640px);
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%) rotate(-8deg);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(4, 6, 10, 0.05), rgba(4, 6, 10, 0.38) 72%, rgba(4, 6, 10, 0.84) 100%), url("../assets/images/milky-way-esa-topdown.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 110px rgba(2, 5, 8, 0.72), 0 26px 80px rgba(0, 0, 0, 0.42);
  z-index: 2;
}

.milkyway-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.milkyway-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.55;
  z-index: 3;
  pointer-events: none;
}

.solar-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 52%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  z-index: 4;
  pointer-events: none;
}

.galactic-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 233, 198, 0.92);
  box-shadow: 0 0 16px rgba(255, 233, 198, 0.48);
  z-index: 5;
  pointer-events: none;
}

.galaxy-core,
.spiral-arm {
  display: none;
}

#solar-system-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: var(--section-accent);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04);
  cursor: pointer;
  z-index: 6;
}

.marker-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(8deg);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(245, 248, 252, 0.88);
  z-index: 6;
  white-space: nowrap;
}

.marker-label-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.map-legend {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 7;
  width: min(320px, 100% - 2rem);
  padding: 0.72rem 0.82rem;
}

.map-legend p {
  margin: 0;
  color: var(--helper-text);
  font-size: 0.76rem;
  line-height: 1.52;
}

.map-legend p + p {
  margin-top: 0.35rem;
}

.milkyway-map.is-details-ready .marker-label,
.milkyway-map.is-details-ready .map-legend {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.milkyway-map.is-details-open .marker-label,
.milkyway-map.is-details-open .map-legend {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.milkyway-inline-facts {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--surface-quiet-border);
}

.milkyway-inline-facts p {
  margin: 0;
  max-width: 46ch;
  line-height: 1.62;
  color: var(--helper-text);
}

#solar-system.is-targeted {
  animation: sectionHighlight 1.2s ease;
}

@media (max-width: 1100px) {
  .universe-layout,
  .galaxy-showcase,
  .milkyway-layout {
    grid-template-columns: 1fr;
  }
  .timeline-list,
  .timeline-list.mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .panel {
    width: min(var(--max-width), 94vw);
    padding: clamp(3.75rem, 8vh, 5.5rem) 0;
  }
  .reveal-section::before {
    width: 34vw;
  }
  .section-head h2 {
    max-width: 10ch;
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }
  .timeline-list,
  .timeline-list.mini {
    grid-template-columns: 1fr;
  }
  .galaxy-preview {
    min-height: 24rem;
  }
  .milkyway-map {
    min-height: 24rem;
  }
  .map-legend {
    width: calc(100% - 2rem);
  }
}
.solar-layout {
  grid-template-columns: minmax(0, 1.24fr) minmax(290px, 0.76fr);
  align-items: start;
}

#solar-canvas-wrap,
.planet-compare-stage,
.voyager-viewer,
.gt-viewer {
  position: relative;
  border: 1px solid var(--surface-primary-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--surface-primary-shadow);
}

#solar-canvas-wrap {
  min-height: clamp(30rem, 60vw, 44rem);
  background: radial-gradient(circle at 50% 14%, rgba(242, 194, 111, 0.18), transparent 28%), radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.06), transparent 38%), linear-gradient(180deg, rgba(9, 7, 4, 0.98), rgba(5, 4, 3, 0.99));
}

#solar-canvas-wrap::after,
.planet-compare-stage::after,
.voyager-viewer::after,
.gt-viewer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%), linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 22%);
}

#solar-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#solar-canvas.is-grabbing,
#planet-focus-canvas.is-grabbing,
#voyager-canvas.is-grabbing,
#gt-canvas.is-grabbing {
  cursor: grabbing;
}

#planet-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.planet-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(247, 240, 227, 0.92);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.84);
  white-space: nowrap;
}

.planet-label-satellite {
  font-size: 0.64rem;
  color: rgba(233, 222, 202, 0.82);
}

.solar-expand,
.voyager-expand,
.earth-kepler-expand,
.gt-expand {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 8;
  padding: 0.44rem 0.68rem;
}

.solar-mode-chip,
.voyager-mode-chip,
.earth-kepler-mode-chip,
.gt-mode-chip {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 8;
  margin: 0;
  border: 1px solid var(--surface-quiet-border);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.56);
  color: var(--helper-text);
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.solar-expand-backdrop,
.earth-kepler-expand-backdrop,
.voyager-expand-backdrop,
.gt-expand-backdrop {
  position: fixed;
  inset: 0;
  z-index: 74;
  background: rgba(2, 4, 8, 0.84);
}

.solar-expand-backdrop[hidden],
.earth-kepler-expand-backdrop[hidden],
.voyager-expand-backdrop[hidden],
.gt-expand-backdrop[hidden] {
  display: none;
}

#solar-canvas-wrap.is-expanded,
#planet-focus-stage.is-expanded,
.voyager-viewer.is-expanded,
.gt-viewer.is-expanded {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(95vw, 1500px);
  height: 90vh;
  min-height: 0;
  transform: translate(-50%, -50%);
  z-index: 75;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 48px 100px rgba(0, 0, 0, 0.64);
}

#solar-canvas-wrap:fullscreen,
#planet-focus-stage:fullscreen,
.voyager-viewer:fullscreen,
.gt-viewer:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.solar-focus-title {
  position: absolute;
  left: 50%;
  top: 1.4rem;
  z-index: 7;
  margin: 0;
  transform: translate(-50%, -10px);
  opacity: 0;
  pointer-events: none;
  font-size: clamp(1rem, 1.1vw + 0.9rem, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 240, 209, 0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.solar-focus-title.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.planet-panel,
.earth-kepler-info-panel {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  padding: clamp(1rem, 2.2vw, 1.3rem);
  border: 1px solid var(--surface-secondary-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-secondary-fill-strong), transparent 18%), var(--section-surface);
  box-shadow: var(--surface-secondary-shadow);
}

.earth-kepler-feature,
.voyager-stage,
.gt-stage {
  display: grid;
  align-content: start;
  gap: 0.78rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.planet-panel-main,
.planet-panel-support,
.planet-panel-helper,
.earth-kepler-info-head,
.earth-kepler-info-body,
.earth-kepler-feature-support,
.voyager-support,
.gt-support {
  display: grid;
  gap: 0.75rem;
}

.planet-panel-helper,
.earth-kepler-info-body,
.earth-kepler-feature-support,
.voyager-support,
.gt-support {
  padding-top: 0.72rem;
  border-top: 1px solid var(--surface-quiet-border);
}

.planet-panel h3 {
  margin: 0;
  font-size: clamp(1.8rem, 1vw + 1.35rem, 2.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--section-text);
}

#planet-summary {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--section-accent);
  opacity: 0.78;
}

.planet-panel p,
.planet-description,
.planet-extra,
.solar-source-note,
.earth-kepler-disassembly-hint,
#voyager-explode-hint,
.voyager-fallback,
.gt-loading-status,
.gt-error-sub,
.gt-direction-text,
.gt-hint-text,
.gt-overlay-copy {
  margin: 0;
  color: var(--text-muted);
}

.planet-description {
  line-height: 1.64;
}

.planet-facts {
  margin: 0.05rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.planet-facts div,
.planet-compare-facts div {
  display: grid;
  gap: 0.24rem;
  padding: 0.64rem 0.72rem;
  border: 1px solid var(--surface-quiet-border);
  border-radius: var(--radius-md);
  background: var(--surface-quiet-fill);
}

.planet-facts dt,
.planet-compare-facts dt {
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helper-text);
}

.planet-facts dd,
.planet-compare-facts dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--section-text);
}

.planet-structure-box {
  display: grid;
  gap: 0.36rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--surface-quiet-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-quiet-fill-strong), var(--surface-quiet-fill));
}

.planet-structure-title {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.planet-structure-summary {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.solar-layer-panel,
.earth-kepler-layer-panel,
.voyager-part-panel {
  position: absolute;
  top: 3rem;
  left: 0.9rem;
  z-index: 8;
  width: min(340px, 100% - 1.8rem);
  padding: 0.76rem 0.82rem;
}

.solar-layer-panel h4,
.earth-kepler-layer-panel h4,
.voyager-part-panel h4 {
  margin: 0;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
  color: var(--section-text);
}

.solar-layer-panel p,
.earth-kepler-layer-panel p,
.voyager-part-panel p {
  margin: 0.32rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.solar-layer-panel[hidden],
.earth-kepler-layer-panel[hidden],
.voyager-part-panel[hidden] {
  display: none;
}

.solar-layer-hint,
.earth-kepler-disassembly-hint,
#voyager-explode-hint {
  font-family: "Space Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--helper-text);
}

.planet-extra {
  font-size: 0.94rem;
  line-height: 1.56;
}

.planet-panel-helper .ghost-button {
  justify-self: start;
}

.planet-table-wrap {
  padding: 1rem 1.05rem;
  border: 1px solid var(--surface-secondary-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-secondary-fill-strong), transparent 18%), var(--surface-secondary-fill);
  box-shadow: var(--surface-secondary-shadow);
  overflow-x: auto;
}

.planet-table-wrap h3 {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--section-accent);
}

.planet-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.planet-table th,
.planet-table td {
  padding: 0.68rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.planet-table th {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.planet-table td {
  color: var(--section-text);
}

.planet-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.earth-kepler-layout {
  grid-template-columns: minmax(280px, 0.84fr) minmax(420px, 1.16fr);
  align-items: start;
}

.earth-kepler-info-kicker {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--section-accent);
}

.earth-kepler-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.earth-kepler-select-btn {
  display: grid;
  gap: 0.52rem;
  text-align: left;
  color: var(--section-text);
  border: 1px solid var(--surface-secondary-border);
  border-radius: var(--radius-md);
  background: var(--surface-quiet-fill);
  padding: 0.62rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.earth-kepler-select-btn:hover,
.earth-kepler-select-btn:focus-visible,
.earth-kepler-select-btn.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--surface-secondary-fill-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.earth-kepler-select-visual {
  position: relative;
  min-height: 112px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-quiet-border);
  background: radial-gradient(circle at 18% 18%, rgba(150, 214, 196, 0.22), transparent 48%), url("../assets/images/starfield-eso-allsky.jpg"), linear-gradient(180deg, rgba(4, 10, 20, 0.96), rgba(2, 5, 10, 0.98));
  background-size: auto, cover, auto;
}

#earth-select-canvas,
#kepler-select-canvas,
#planet-focus-canvas,
#voyager-canvas {
  width: 100%;
  height: 100%;
}

.earth-kepler-select-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.earth-kepler-facts-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.3rem, 0.8vw + 1.05rem, 1.8rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.earth-kepler-facts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.earth-kepler-facts-list li {
  padding: 0.66rem 0 0.18rem 0.82rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(90deg, var(--surface-quiet-fill-strong), transparent 68%);
  color: rgba(222, 229, 238, 0.72);
  line-height: 1.54;
}

.earth-kepler-feature.is-switching {
  transform: scale(0.992);
  opacity: 0.92;
}

.planet-compare-stage {
  min-height: clamp(28rem, 60vw, 42rem);
  background: radial-gradient(circle at 16% 18%, rgba(150, 214, 196, 0.22), transparent 38%), radial-gradient(circle at 82% 86%, rgba(230, 255, 247, 0.06), transparent 46%), url("../assets/images/starfield-eso-allsky.jpg"), linear-gradient(180deg, rgba(4, 10, 16, 0.96), rgba(2, 5, 10, 0.98));
  background-size: auto, auto, cover, auto;
}

.planet-compare-stage-featured {
  min-height: clamp(31rem, 64vw, 46rem);
}

.planet-compare-overlay,
.voyager-viewer-overlay,
.gt-viewer-overlay {
  position: absolute;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  z-index: 7;
  max-width: min(340px, calc(100% - 2rem));
  padding: 0.74rem 0.84rem;
}

.planet-compare-overlay h3,
.voyager-viewer-overlay h3,
.gt-viewer-overlay h3 {
  margin: 0;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.4rem);
  letter-spacing: -0.04em;
}

.planet-compare-overlay p,
.voyager-viewer-overlay p,
.gt-viewer-overlay p {
  margin: 0.25rem 0 0;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--helper-text);
}

.planet-compare-facts {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.planet-compare-facts-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.planet-compare-stage.is-3d-unavailable::after,
.earth-kepler-select-visual.is-3d-unavailable::after {
  content: "3D indisponibil";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.4rem 0.68rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 8, 14, 0.88);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.voyager-layout {
  grid-template-columns: minmax(260px, 0.7fr) minmax(440px, 1.3fr);
  align-items: start;
}

#voyager .content-pane {
  padding-top: clamp(1.4rem, 6vh, 4rem);
}

.voyager-viewer {
  min-height: clamp(30rem, 62vw, 44rem);
  background: radial-gradient(circle at 22% 20%, rgba(211, 183, 145, 0.2), transparent 34%), radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.06), transparent 40%), url("../assets/images/starfield-eso-allsky.jpg"), linear-gradient(180deg, rgba(12, 10, 8, 0.98), rgba(5, 4, 3, 0.98));
  background-size: auto, auto, cover, auto;
}

#voyager-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.voyager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.58rem;
}

.voyager-controls .ghost-button {
  padding: 0.56rem 0.82rem;
}

#interstellar-status {
  margin: 0 0 0 auto;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--helper-text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#interstellar-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.voyager-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--surface-quiet-border);
}

.voyager-badges div {
  padding-top: 0.55rem;
  border-top: 1px solid var(--surface-quiet-border);
}

.voyager-badges span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helper-text);
}

.voyager-badges strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--section-text);
}

.voyager-viewer-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--surface-quiet-border);
  border-radius: 999px;
  background: rgba(4, 6, 10, 0.68);
  color: var(--helper-text);
  font-family: "Space Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.voyager-viewer-loading[hidden],
.voyager-fallback[hidden] {
  display: none;
}

.voyager-fallback {
  padding: 0.72rem 0.78rem;
  border: 1px dashed var(--surface-quiet-border);
  border-radius: var(--radius-md);
  background: var(--surface-quiet-fill);
  color: var(--helper-text);
  font-size: 0.88rem;
  line-height: 1.58;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 4, 8, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  --section-accent: #d3b791;
  --section-line: rgba(211, 183, 145, 0.28);
  --section-text: #edf2f7;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(620px, 92vw);
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--section-line);
  border-radius: var(--radius-lg);
  background: rgba(10, 9, 8, 0.96);
  box-shadow: var(--shadow-soft);
}

.modal-card h3 {
  margin: 0 2.5rem 0.8rem 0;
  font-size: clamp(1.45rem, 1vw + 1.2rem, 2rem);
  letter-spacing: -0.04em;
}

.modal-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

#gaseste-terra.panel {
  min-height: auto;
  justify-content: flex-start;
  padding: clamp(3.35rem, 7vh, 4.8rem) 0 clamp(2.75rem, 5vh, 3.8rem);
  gap: clamp(0.8rem, 1.7vw, 1.25rem);
}

.gaseste-terra-layout {
  grid-template-columns: minmax(290px, 0.8fr) minmax(460px, 1.2fr);
  align-items: start;
}

.gt-copy-pane {
  gap: 0.9rem;
  padding-top: 0.18rem;
}

.gt-objective-card {
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--surface-secondary-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-secondary-fill-strong), transparent 18%), var(--surface-secondary-fill);
  box-shadow: var(--surface-secondary-shadow);
}

.gt-note-card {
  padding: 0.85rem 0.95rem;
  border-top: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-quiet-border);
  background: var(--surface-quiet-fill);
}

.gt-panel-kicker {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.gt-objective-card h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.gt-side-grid {
  display: grid;
  gap: 0.58rem;
}

.gt-stage {
  gap: 0.72rem;
}

.gt-viewer {
  min-height: clamp(26rem, 50vw, 35rem);
  background: radial-gradient(circle at 18% 18%, rgba(136, 180, 226, 0.22), transparent 36%), radial-gradient(circle at 82% 82%, rgba(255, 255, 255, 0.06), transparent 42%), url("../assets/images/starfield-eso-allsky.jpg"), linear-gradient(180deg, rgba(5, 10, 18, 0.98), rgba(2, 5, 9, 0.99));
  background-size: auto, auto, cover, auto;
}

#gt-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  z-index: 1;
}

.gt-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  gap: 0.65rem;
  padding: 1.6rem;
  text-align: center;
  background: rgba(4, 8, 14, 0.88);
}

.gt-loading[hidden] {
  display: none;
}

.gt-loading-label {
  margin: 0;
  font-size: clamp(0.95rem, 0.7vw + 0.9rem, 1.14rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--section-text);
}

.gt-progress-track {
  width: min(300px, 100% - 2rem);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.gt-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--section-accent), rgba(255, 255, 255, 0.88));
  transition: width 0.3s ease;
}

.gt-error {
  display: none;
}

.gt-error[hidden] {
  display: none;
}

.gt-error.gt-error--badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 8;
  padding: 0.55rem 0.85rem;
  pointer-events: none;
}

.gt-error p {
  margin: 0;
  font-size: 0.7rem;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff9b88;
}

.gt-hint,
.gt-direction {
  position: absolute;
  z-index: 7;
  width: min(280px, 100% - 2rem);
  padding: 0.68rem 0.78rem;
  pointer-events: none;
}

.gt-hint {
  top: 3rem;
  left: 1rem;
}

.gt-direction {
  right: 0.9rem;
  bottom: 6.1rem;
}

.gt-hint-step,
.gt-direction-label,
.gt-minimap-label {
  margin: 0 0 0.28rem;
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--helper-text);
}

.gt-hint-text,
.gt-direction-text {
  font-size: 0.78rem;
  line-height: 1.5;
}

.gt-direction-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--section-text);
}

.gt-minimap {
  position: absolute;
  top: 3rem;
  right: 0.9rem;
  z-index: 7;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 1px solid var(--surface-quiet-border);
  background: rgba(5, 10, 18, 0.72);
  overflow: hidden;
  pointer-events: none;
}

.gt-minimap-label {
  position: absolute;
  top: calc(3rem + 124px + 0.28rem);
  right: 0.9rem;
  width: 124px;
  text-align: center;
  color: var(--helper-text);
}

.gt-finale {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(2, 4, 8, 0);
  transition: opacity 0.8s ease, background 0.8s ease;
}

.gt-finale[hidden] {
  display: none;
}

.gt-finale.is-visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(2, 4, 8, 0.74);
}

.gt-finale-title {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--section-text);
}

.gt-finale-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1vw + 0.9rem, 1.3rem);
}

.gt-finale-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.gt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--surface-quiet-border);
}

.gt-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

#gt-speed,
#gt-distance {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--surface-quiet-border);
  border-radius: 999px;
  background: var(--surface-quiet-fill);
  font-family: "Space Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--helper-text);
}

@media (max-width: 1120px) {
  .solar-layout,
  .earth-kepler-layout,
  .voyager-layout,
  .gaseste-terra-layout {
    grid-template-columns: 1fr;
  }
  .planet-compare-facts-featured,
  .voyager-badges {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .gt-viewer-overlay {
    max-width: min(320px, calc(100% - 2rem));
  }

  .gt-direction {
    width: min(260px, calc(100% - 2rem));
    bottom: 8.75rem;
  }
}

@media (max-width: 720px) {
  #solar-canvas-wrap,
  .planet-compare-stage,
  .voyager-viewer,
  .gt-viewer {
    min-height: 24rem;
    border-radius: var(--radius-lg);
  }
  .planet-facts {
    grid-template-columns: 1fr;
  }
  .solar-layer-panel,
  .earth-kepler-layer-panel,
  .voyager-part-panel,
  .gt-hint,
  .gt-direction {
    width: calc(100% - 2rem);
  }
  .gt-minimap {
    width: 96px;
    height: 96px;
  }
  .gt-minimap-label {
    top: calc(3rem + 96px + 0.28rem);
    width: 96px;
  }

  .gt-viewer-overlay {
    max-width: calc(100% - 2rem);
  }

  .gt-direction {
    left: 1rem;
    right: 1rem;
    bottom: 10.25rem;
  }

  .gt-finale-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(280px, 100%);
  }

  .gt-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .gt-toolbar-meta {
    justify-content: space-between;
  }
}
#quiz .section-copy {
  max-width: 54ch;
}

.quiz-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  display: grid;
  gap: 0.9rem;
  border: 1px solid var(--surface-secondary-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-secondary-fill-strong), transparent 18%), var(--section-surface);
  box-shadow: var(--surface-secondary-shadow);
}

#quiz-progress,
.quiz-type-badge,
.quiz-stats span,
.quiz-review h4 {
  font-family: "Space Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#quiz-progress {
  margin: 0;
  width: fit-content;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--surface-quiet-border);
  color: var(--helper-text);
  font-size: 0.68rem;
}

.quiz-type-badge {
  margin: 0;
  width: fit-content;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--surface-quiet-border);
  background: var(--surface-quiet-fill);
  color: var(--section-accent);
  font-size: 0.68rem;
}

.quiz-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--section-accent), rgba(255, 255, 255, 0.84));
  transition: width 0.35s ease;
}

.quiz-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.quiz-stats div {
  padding: 0.62rem 0.68rem;
  border: 1px solid var(--surface-quiet-border);
  border-radius: var(--radius-md);
  background: var(--surface-quiet-fill);
  display: grid;
  gap: 0.2rem;
}

.quiz-stats span {
  font-size: 0.62rem;
  color: var(--helper-text);
}

.quiz-stats strong {
  display: inline-block;
  color: var(--section-text);
  font-size: 0.92rem;
}

#quiz-question {
  margin: 0.1rem 0 0;
  max-width: 32ch;
  font-size: clamp(1.45rem, 1vw + 1.2rem, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
  color: var(--section-text);
}

#quiz-answer,
.quiz-option {
  width: 100%;
  border: 1px solid var(--surface-quiet-border);
  border-radius: var(--radius-md);
  background: var(--surface-quiet-fill);
  color: var(--section-text);
}

#quiz-answer {
  min-height: 3rem;
  padding: 0.82rem 0.92rem;
  font-family: "Space Mono", monospace;
}

#quiz-answer::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

#quiz-answer:focus-visible {
  outline: none;
  border-color: var(--section-line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.quiz-options {
  display: grid;
  gap: 0.55rem;
}

.quiz-option {
  padding: 0.78rem 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible,
.quiz-option.is-selected {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--surface-secondary-fill-strong);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#quiz-feedback,
#quiz-score {
  margin: 0;
  font-weight: 700;
}

.quiz-explanation {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--helper-text);
  line-height: 1.68;
}

.quiz-review {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-review h4 {
  margin: 0;
  font-size: 0.66rem;
  color: var(--section-accent);
}

.quiz-review > p {
  margin: 0;
  color: var(--text-muted);
}

.quiz-review-item {
  padding: 0.72rem 0.82rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface-quiet-fill);
}

.quiz-review-item p {
  margin: 0.18rem 0 0;
  color: var(--text-muted);
  line-height: 1.58;
}

@media (max-width: 900px) {
  .quiz-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .quiz-stats {
    grid-template-columns: 1fr;
  }
  .quiz-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
#hero.panel,
#outro.panel {
  width: 100%;
  padding-inline: max(4vw, 1.25rem);
}

.hero {
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(76vw, 980px);
  height: min(54vw, 620px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(142, 190, 255, 0.18), transparent 48%), radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.08), transparent 38%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-kicker,
.outro-kicker {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 228, 244, 0.72);
}

.hero-title,
#outro h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.04em;
}

.hero-title {
  max-width: 10ch;
  font-size: clamp(4.6rem, 11vw, 9.2rem);
  line-height: 0.92;
  color: #f7fbff;
  text-shadow: 0 0 30px rgba(142, 190, 255, 0.16), 0 0 80px rgba(142, 190, 255, 0.12);
}

.hero-subtitle {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(240, 245, 251, 0.92);
}

.hero-context {
  margin: 0;
  max-width: 34ch;
  color: rgba(213, 225, 239, 0.76);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.12rem);
  line-height: 1.64;
}

.scroll-cue {
  margin-top: 0.55rem;
  padding-inline: 1.15rem;
  background: rgba(255, 255, 255, 0.015);
}

.outro {
  min-height: 90svh;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

#outro::before {
  content: "";
  position: absolute;
  inset: 18% 14% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--section-line), transparent);
  opacity: 0.8;
}

#outro h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.95;
  color: #f7f3ec;
  text-shadow: 0 0 24px rgba(211, 183, 145, 0.12);
}

.credits {
  margin: 0;
  max-width: 34ch;
  color: rgba(220, 214, 202, 0.72);
  line-height: 1.72;
}

@media (max-width: 720px) {
  .hero-title {
    font-size: clamp(3.9rem, 18vw, 6rem);
  }
  .hero-subtitle {
    max-width: 18ch;
  }
}
@keyframes driftA {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-1.5rem, 1rem, 0) scale(1.03);
  }
}
@keyframes driftB {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1rem, -1rem, 0) scale(1.02);
  }
}
@keyframes titlePulse {
  0%, 100% {
    text-shadow: 0 0 24px rgba(142, 190, 255, 0.16), 0 0 60px rgba(142, 190, 255, 0.08);
  }
  50% {
    text-shadow: 0 0 32px rgba(142, 190, 255, 0.24), 0 0 88px rgba(142, 190, 255, 0.14);
  }
}
@keyframes sectionHighlight {
  0% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.02);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}
@keyframes quizShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
@keyframes quizCorrectPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes statBump {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}
.nebula-a {
  animation: driftA 28s ease-in-out infinite;
}

.nebula-b {
  animation: driftB 32s ease-in-out infinite;
}

.hero-title {
  animation: titlePulse 7s ease-in-out infinite;
}

.section-head,
.section-copy,
.content-pane,
.galaxy-preview,
.milkyway-map,
#solar-canvas-wrap,
.planet-panel,
.earth-kepler-info-panel,
.earth-kepler-feature,
.voyager-stage,
.voyager-viewer,
.gt-stage,
.gt-viewer,
.quiz-card,
.credits {
  transition: opacity 0.48s ease, transform 0.48s ease, border-color 0.48s ease, box-shadow 0.48s ease, background 0.48s ease;
}

.panel:not(.is-active) .section-head,
.panel:not(.is-active) .section-copy,
.panel:not(.is-active) .content-pane,
.panel:not(.is-active) .galaxy-preview,
.panel:not(.is-active) .milkyway-map,
.panel:not(.is-active) #solar-canvas-wrap,
.panel:not(.is-active) .planet-panel,
.panel:not(.is-active) .earth-kepler-info-panel,
.panel:not(.is-active) .earth-kepler-feature,
.panel:not(.is-active) .voyager-stage,
.panel:not(.is-active) .voyager-viewer,
.panel:not(.is-active) .gt-stage,
.panel:not(.is-active) .gt-viewer,
.panel:not(.is-active) .quiz-card,
.panel:not(.is-active) .credits {
  opacity: 0.88;
}

.panel.is-active .section-head,
.panel.is-active .section-copy,
.panel.is-active .content-pane,
.panel.is-active .galaxy-preview,
.panel.is-active .milkyway-map,
.panel.is-active #solar-canvas-wrap,
.panel.is-active .planet-panel,
.panel.is-active .earth-kepler-info-panel,
.panel.is-active .earth-kepler-feature,
.panel.is-active .voyager-stage,
.panel.is-active .voyager-viewer,
.panel.is-active .gt-stage,
.panel.is-active .gt-viewer,
.panel.is-active .quiz-card,
.panel.is-active .credits {
  opacity: 1;
  transform: translateY(-1px);
}

.quiz-card.is-wrong-shake {
  animation: quizShake 0.4s ease;
}

.quiz-card.is-correct-pulse {
  animation: quizCorrectPulse 0.5s ease;
}

.quiz-stats strong.is-stat-bump {
  animation: statBump 0.32s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-reveal,
  .js-reveal.in-view,
  .panel.is-active .section-head,
  .panel.is-active .section-copy,
  .panel.is-active .content-pane,
  .panel.is-active .galaxy-preview,
  .panel.is-active .milkyway-map,
  .panel.is-active #solar-canvas-wrap,
  .panel.is-active .planet-panel,
  .panel.is-active .earth-kepler-info-panel,
  .panel.is-active .earth-kepler-feature,
  .panel.is-active .voyager-stage,
  .panel.is-active .voyager-viewer,
  .panel.is-active .gt-stage,
  .panel.is-active .gt-viewer,
  .panel.is-active .quiz-card,
  .panel.is-active .credits {
    transition: none;
    transform: none;
  }
  .hero-title,
  .nebula-a,
  .nebula-b {
    animation: none;
  }
}
