:root {
  --bg: #050816;
  --bg-2: #0c1832;
  --panel: rgba(13, 23, 46, 0.7);
  --panel-strong: rgba(18, 29, 55, 0.9);
  --text: #edf5ff;
  --muted: #afc8ea;
  --primary: #7dd3fc;
  --primary-strong: #38bdf8;
  --secondary: #a78bfa;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(13, 29, 56, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

img, a {
  -webkit-user-drag: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(2px 2px at 30% 60%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 50% 40%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 70% 30%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 40% 90%, rgba(255, 255, 255, 0.9), transparent 100%);
  background-repeat: repeat;
  background-size: 240px 240px;
  pointer-events: none;
  opacity: 0.7;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 20, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}

.nav-wrap > .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--primary);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-mark-orbit,
.brand-mark-path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.35;
}

.brand-mark-orbit {
  fill: none;
}

.brand-mark-path {
  fill: none;
}

.brand-mark-satellite {
  fill: currentColor;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

@media (min-width: 901px) and (max-width: 1200px) {
  .nav-wrap {
    gap: 0.75rem;
  }

  .main-nav {
    flex: 1;
    justify-content: center;
    gap: clamp(0.55rem, 1.1vw, 0.85rem);
  }

  .main-nav a {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .nav-wrap > .btn {
    padding: 0.75rem 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a1121;
  box-shadow: 0 18px 30px rgba(125, 211, 252, 0.25);
}

.pwa-install-button {
  position: fixed;
  z-index: 20;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: none;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a1121;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.pwa-install-button.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--text);
}

.hero {
  padding: 5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  max-width: 620px;
}

.lead {
  max-width: 580px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
  margin: 2.2rem 0 0;
}

.hero-stats li {
  min-width: 120px;
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.visitor-stats {
  width: min(100%, 31rem);
  margin-top: 1.5rem;
  padding: 1rem 1.1rem 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 29, 54, 0.84), rgba(8, 18, 37, 0.76));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.visitor-stats h2 {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.visitor-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.visitor-stat {
  display: grid;
  gap: 0.18rem;
}

.visitor-stat span {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.visitor-stat strong {
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.visitor-live-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #65e6ac;
  box-shadow: 0 0 0.7rem rgba(101, 230, 172, 0.75);
}

.visitor-stats[data-state="error"] .visitor-live-dot {
  background: #f59e0b;
  box-shadow: 0 0 0.7rem rgba(245, 158, 11, 0.55);
}

.visitor-stats p {
  min-height: 1rem;
  margin: 0.5rem 0 0;
  color: #839ab5;
  font-size: 0.65rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.earth-explorer {
  width: min(38rem, 100%);
  text-align: center;
}

.earth-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  min-width: 250px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  -webkit-mask-image: radial-gradient(ellipse, #000 58%, transparent 76%);
  mask-image: radial-gradient(ellipse, #000 58%, transparent 76%);
}

.earth-stage.is-ringed,
.earth-stage.has-planet-peeks {
  -webkit-mask-image: none;
  mask-image: none;
}

.planet-peek {
  position: absolute;
  z-index: 0;
  top: 50%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  box-shadow:
    inset -1.35rem -0.85rem 2.1rem rgba(0, 0, 0, 0.84),
    inset 0.42rem 0.18rem 1rem rgba(255, 255, 255, 0.2),
    0 0 1.2rem rgba(125, 211, 252, 0.16);
  filter: brightness(0.76) saturate(0.9) contrast(1.12);
  transform: translateY(-50%) scale(0.96);
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.planet-peek::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 28% 22%, rgba(255, 255, 255, 0.34), transparent 27%),
    radial-gradient(ellipse at 40% 38%, rgba(255, 226, 173, 0.1), transparent 48%),
    radial-gradient(ellipse at 72% 77%, rgba(0, 0, 0, 0.74), transparent 51%),
    radial-gradient(circle, transparent 44%, rgba(1, 8, 20, 0.58) 100%);
  content: "";
}

.planet-peek::after {
  position: absolute;
  inset: -0.2rem;
  border: 1px solid rgba(161, 213, 255, 0.18);
  border-radius: inherit;
  box-shadow: 0 0 0.9rem rgba(94, 174, 255, 0.12);
  content: "";
}

.planet-peek-previous {
  left: -31%;
}

.planet-peek-next {
  right: -31%;
}

.earth-stage.has-planet-peeks .planet-peek {
  opacity: 0.78;
  transform: translateY(-50%) scale(1);
}

.earth-stage.has-planet-peeks .planet-peek-next {
  animation: planet-peek-drift 8s ease-in-out infinite alternate;
}

.earth-stage.has-planet-peeks .planet-peek-previous {
  animation: planet-peek-drift 9s ease-in-out infinite alternate-reverse;
}

@keyframes planet-peek-drift {
  from { margin-top: -0.4rem; }
  to { margin-top: 0.4rem; }
}

.earth-stage:active {
  cursor: grabbing;
}

.earth-stage canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.earth-stage canvas:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2rem;
  border-radius: 50%;
}

.earth-markers {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.planet-side-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: clamp(2.1rem, 6vw, 2.8rem);
  height: clamp(2.1rem, 6vw, 2.8rem);
  place-items: center;
  padding: 0 0 0.2rem;
  transform: translateY(-50%);
  border: 1px solid rgba(186, 215, 242, 0.42);
  border-radius: 50%;
  background: rgba(5, 14, 31, 0.72);
  color: #eff8ff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.planet-side-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  border-color: var(--primary);
  background: rgba(14, 116, 164, 0.9);
}

.planet-side-arrow:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.planet-side-arrow-previous {
  left: 0.8rem;
}

.planet-side-arrow-next {
  right: 0.8rem;
}

.earth-markers button {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 9rem;
  padding: 0.35rem 0.62rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(147, 197, 253, 0.55);
  border-radius: 999px;
  background: rgba(5, 14, 31, 0.82);
  color: #eff8ff;
  font: inherit;
  font-size: clamp(0.63rem, 1.5vw, 0.76rem);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.earth-markers button:hover,
.earth-markers button:focus-visible,
.earth-markers button.is-selected {
  border-color: var(--primary);
  background: rgba(14, 116, 164, 0.9);
}

.earth-markers button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.earth-info {
  position: relative;
  z-index: 3;
  width: min(100%, 27rem);
  margin: -1rem auto 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 18px;
  background: rgba(8, 17, 35, 0.96);
  text-align: left;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.earth-imagery-source {
  margin: -0.4rem auto 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.earth-imagery-source a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.earth-imagery-source a:hover,
.earth-imagery-source a:focus-visible {
  color: var(--text);
}

.earth-info[hidden] {
  display: none;
}

.earth-info h3 {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 1.08rem;
}

.earth-info dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 0.8rem;
}

.earth-info dl div {
  min-width: 0;
}

.earth-info dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.earth-info dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.earth-info-link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.earth-info-link:hover,
.earth-info-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.earth-info-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.world-explorer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #07101f;
  color: var(--text);
}

.world-explorer[open] {
  display: flex;
  flex-direction: column;
}

.world-explorer::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.world-explorer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 16, 31, 0.98);
}

.world-explorer-header .eyebrow {
  margin-bottom: 0.15rem;
}

.world-explorer-header h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.world-explorer-header p:last-child {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.world-explorer-close {
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.world-explorer-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.world-explorer-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 16, 31, 0.92);
}

.map-layer-button {
  padding: 0.58rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.map-layer-button.is-active {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(56, 189, 248, 0.18);
  color: var(--text);
}

#world-map-search {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.2rem;
}

#world-map-search input {
  width: clamp(9rem, 20vw, 16rem);
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
}

#world-map-search input::placeholder {
  color: #a8b7ca;
}

#world-map-search button {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

#world-explorer-coordinates {
  padding: 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.world-map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #101c2c;
}

#world-map {
  width: 100%;
  height: 100%;
  background: #101c2c;
}

.world-map-status {
  position: absolute;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  max-width: min(34rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 12px;
  background: rgba(35, 24, 6, 0.95);
  color: #fde68a;
  font-size: 0.82rem;
}

.world-map-status[hidden] {
  display: none;
}

.world-explorer-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(7, 16, 31, 0.98);
  color: var(--muted);
  font-size: 0.7rem;
}

.world-explorer-footer span {
  min-width: 0;
}

.world-explorer-footer span:last-child {
  text-align: right;
}

.leaflet-container {
  font-family: "Inter", sans-serif;
}

.leaflet-control-attribution {
  font-size: 10px !important;
}

.earth-info-source {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.earth-location {
  min-height: 1.5rem;
  margin: -0.35rem 0 0.65rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.earth-jump {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.earth-jump select {
  max-width: 12rem;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 20, 39, 0.9);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.earth-jump select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.earth-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.earth-loader[hidden] {
  display: none;
}

.earth-loader.error {
  padding: 2rem;
  color: #fecaca;
}

.earth-hint {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.earth-hint span {
  padding: 0 0.35rem;
  color: var(--primary);
}

.earth-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.earth-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 20, 39, 0.8);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.earth-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(30, 58, 91, 0.9);
}

.earth-controls button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.planet-explorer {
  margin: 1.3rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 29, 54, 0.92), rgba(7, 16, 31, 0.94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.planet-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.planet-dots button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.planet-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 2.5vw, 1rem);
}

.planet-dots button {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border: 1px solid rgba(186, 215, 242, 0.72);
  border-radius: 50%;
  background: rgba(186, 215, 242, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.planet-dots button[aria-pressed="true"] {
  transform: scale(1.35);
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.7);
}

.planet-card {
  padding: 0.9rem 0.3rem 0.15rem;
  text-align: left;
}

.planet-card .eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.67rem;
}

.planet-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
}

.planet-card > p:not(.eyebrow) {
  min-height: 2.8em;
  margin: 0.4rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.planet-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.planet-card dl div {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.planet-card dt {
  color: var(--muted);
  font-size: 0.67rem;
}

.planet-card dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.planet-texture-credit {
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

.planet-texture-credit a {
  color: var(--primary);
  text-underline-offset: 2px;
}

.section {
  padding: 6rem 0;
}

.alt-section {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.info-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.info-panel div {
  display: grid;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-panel div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-panel span {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-panel strong {
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.mission-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 1.65rem;
  border: 1px solid rgba(180, 205, 238, 0.15);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(100, 158, 213, 0.07), transparent 55%),
    rgba(8, 14, 28, 0.76);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.mission-card::before {
  position: absolute;
  top: 0;
  left: 1.65rem;
  width: 2.7rem;
  height: 2px;
  background: var(--mission-accent, #8fdcff);
  content: "";
  opacity: 0.75;
}

.mission-card:hover {
  transform: translateY(-4px);
  border-color: rgba(174, 216, 255, 0.32);
}

.mission-card-head {
  display: flex;
  min-height: 4.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon {
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  color: var(--mission-accent, #8fdcff);
}

.icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.icon svg path,
.icon svg circle {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon svg circle {
  fill: rgba(8, 14, 28, 0.76);
}

.mission-icon-planet {
  --mission-accent: #83d8e8;
}

.mission-icon-rocket {
  --mission-accent: #e0ad83;
}

.mission-icon-observe {
  --mission-accent: #b7a7ef;
}

.mission-card-label {
  color: rgba(200, 216, 237, 0.55);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.mission-card h3 {
  margin: 0 0 0.65rem;
  color: #f0f5fc;
  font-size: clamp(1.22rem, 1.7vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.mission-card p {
  max-width: 34ch;
  margin: 0;
  color: #aabbd2;
  font-size: 0.92rem;
  line-height: 1.8;
}

.game-home-link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 15px;
  background: linear-gradient(100deg, rgba(27, 51, 77, 0.82), rgba(14, 22, 43, 0.88));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-home-link:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.52);
}

.game-home-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.11);
  color: #a5e3ff;
  font-size: 0.82rem;
}

.game-home-link > span:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.game-home-link strong {
  font-size: 0.95rem;
}

.game-home-link small {
  color: var(--muted);
  font-size: 0.82rem;
}

.game-home-arrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.history-home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.35rem 1.6rem;
  border: 1px solid rgba(125, 211, 252, 0.23);
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(56, 189, 248, 0.12), rgba(167, 139, 250, 0.1));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.history-home-link:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.58);
}

.history-home-link > span:first-child {
  display: grid;
  gap: 0.2rem;
}

.history-home-link strong {
  font-size: 1.05rem;
}

.history-home-link small {
  color: var(--muted);
  font-size: 0.86rem;
}

.history-home-link > span:last-child {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 260px;
}

.gallery-item.tall {
  min-height: 430px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.quote-section {
  padding-top: 2rem;
}

.quote-wrap {
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.08), rgba(167, 139, 250, 0.08));
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.quote-wrap p {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-brand {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .about-grid,
  .card-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr);
    gap: 1rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  .earth-explorer {
    width: min(34rem, 100%);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-visual {
    display: contents;
  }

  .hero-visual.reveal {
    opacity: 1;
    transform: none;
  }

  .hero-copy.reveal {
    opacity: 1;
    transform: none;
  }

  .earth-explorer {
    display: contents;
  }

  .earth-stage {
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

  .earth-explorer > :not(.earth-stage) {
    order: 3;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .earth-stage {
    min-width: 0;
  }

  .earth-explorer {
    width: min(100%, 26rem);
  }
}

@media (max-width: 540px) {
  .nav-wrap {
    min-height: 72px;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-nav {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    gap: 1.1rem;
    overflow-x: auto;
    padding: 0.2rem 0 0.45rem;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .brand {
    order: 1;
  }

  .nav-wrap > .btn {
    order: 2;
    width: auto;
    flex: 0 0 auto;
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
  }

  .btn {
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .hero-stats li {
    min-width: 0;
  }

  .visitor-stats {
    margin-top: 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .mission-card {
    min-height: 0;
    padding: 1.35rem;
  }

  .mission-card::before {
    left: 1.35rem;
  }

  .mission-card-head {
    margin-bottom: 1rem;
  }

  .earth-controls {
    gap: 0.35rem;
  }

  .earth-controls button {
    min-width: 2.5rem;
    padding: 0.5rem 0.65rem;
  }

  .earth-stage {
    width: min(100%, 23rem);
    margin-inline: auto;
  }

  .earth-markers button {
    padding: 0.28rem 0.45rem;
    font-size: 0.62rem;
  }

  .planet-peek {
    width: 42%;
  }

  .planet-peek-previous {
    left: -22%;
  }

  .planet-peek-next {
    right: -22%;
  }

  .planet-explorer {
    margin-top: 1rem;
    padding: 0.8rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .history-home-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.1rem;
  }

  .game-home-link {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .game-home-arrow {
    grid-column: 2;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 0.35rem;
    font-size: 0.83rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .nav-wrap > .btn {
    padding-inline: 0.7rem;
    font-size: 0.72rem;
  }

  .planet-dots {
    gap: 0.4rem;
  }

  .planet-side-arrow-previous {
    left: 0.45rem;
  }

  .planet-side-arrow-next {
    right: 0.45rem;
  }

  .planet-dots {
    gap: clamp(0.48rem, 2.7vw, 0.8rem);
  }

  .planet-dots button {
    width: 0.55rem;
    height: 0.55rem;
  }

  .planet-card dl {
    gap: 0.35rem;
  }

  .planet-card dl div {
    padding: 0.45rem;
  }

  .planet-card dt {
    font-size: 0.62rem;
  }

  .planet-card dd {
    font-size: 0.7rem;
  }

  .world-explorer-header {
    padding: 0.85rem 1rem 0.75rem;
  }

  .world-explorer-header p:last-child {
    max-width: 19rem;
    font-size: 0.74rem;
  }

  .world-explorer-toolbar {
    gap: 0.25rem;
    padding: 0.45rem 0.6rem;
  }

  .map-layer-button {
    padding: 0.5rem 0.62rem;
    font-size: 0.72rem;
  }

  #world-map-search {
    flex: 1 1 100%;
    margin: 0;
    gap: 0.25rem;
  }

  #world-map-search input {
    flex: 1;
    width: auto;
    padding: 0.5rem 0.55rem;
    font-size: 0.72rem;
  }

  #world-map-search button {
    padding: 0.45rem 0.55rem;
    font-size: 0.72rem;
  }

  #world-explorer-coordinates {
    display: none;
  }

  .world-explorer-footer {
    display: grid;
    gap: 0.2rem;
    font-size: 0.64rem;
  }

  .world-explorer-footer span:last-child {
    text-align: left;
  }
}
