:root {
  --void-navy: #070b1d;
  --cabin-blue: #111a3a;
  --orbit-cyan: #77e6ff;
  --nebula-violet: #9c8cff;
  --dodo-gold: #ffd782;
  --starlight: #f4f7ff;
  --muted: #b8c5e4;
  --hairline: rgba(180, 215, 255, .22);
  --glass-solid: #172345;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--starlight);
  background-color: var(--void-navy);
  background-image:
    radial-gradient(circle at 11% 15%, rgba(119, 230, 255, .1), transparent 22rem),
    radial-gradient(circle at 86% 44%, rgba(156, 140, 255, .09), transparent 30rem),
    radial-gradient(1px 1px at 8% 11%, #b9d7ff 98%, transparent),
    radial-gradient(2px 2px at 68% 18%, #dbe7ff 98%, transparent),
    radial-gradient(1px 1px at 93% 9%, #95b9f1 98%, transparent),
    radial-gradient(1px 1px at 19% 46%, #b9d7ff 98%, transparent),
    radial-gradient(2px 2px at 84% 65%, #dbe7ff 98%, transparent),
    radial-gradient(1px 1px at 47% 84%, #b9d7ff 98%, transparent);
  font-family: "Trebuchet MS", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--dodo-gold);
  outline-offset: 5px;
  box-shadow: 0 0 0 7px var(--void-navy);
}
::selection { color: var(--void-navy); background: var(--orbit-cyan); }

.site-header, main, .site-footer { width: min(100% - 5rem, 1340px); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: 98px;
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.wordmark span { color: var(--orbit-cyan); }
.site-header nav { display: flex; gap: clamp(1rem, 2.7vw, 2.3rem); margin-left: auto; }
.site-header nav a { color: var(--muted); font-size: .9rem; transition: color .2s ease; }
.site-header nav a:hover { color: var(--starlight); }
.system-status {
  padding: .43rem .8rem;
  color: var(--orbit-cyan);
  background: rgba(119, 230, 255, .08);
  border: 1px solid rgba(119, 230, 255, .24);
  border-radius: 99px;
  font-size: .73rem;
  white-space: nowrap;
}
.system-status span { margin-right: .38rem; font-size: .6rem; }

.hero-cockpit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  gap: clamp(1rem, 4vw, 4.5rem);
  align-items: center;
  min-height: min(690px, calc(100svh - 98px));
  padding: 5.8rem 0 6.5rem;
}
.hero-cockpit::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  bottom: 4rem;
  width: 7rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orbit-cyan));
}
.cockpit-copy { position: relative; z-index: 2; padding-left: clamp(0rem, 2vw, 1.5rem); }
.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--orbit-cyan);
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: .72rem;
  letter-spacing: .19em;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 1.45rem;
  font-size: clamp(3.3rem, 6.2vw, 7rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.065em;
}
h1 span {
  color: var(--dodo-gold);
  text-shadow: 0 0 36px rgba(255, 215, 130, .15);
}
.hero-intro {
  max-width: 27em;
  margin-bottom: 2.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.13rem);
  line-height: 1.8;
}
.launch-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 12rem;
  padding: .87rem 1.12rem;
  color: var(--void-navy);
  background: var(--orbit-cyan);
  border: 1px solid var(--orbit-cyan);
  border-radius: .4rem 1.15rem .4rem 1.15rem;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease;
}
.launch-link:hover { transform: translateY(-3px); background: #b2f1ff; }
.launch-link span { font-size: 1.25rem; line-height: 1; }

.cockpit-display {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: clamp(390px, 41vw, 535px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 56%, rgba(119, 230, 255, .18), transparent 41%),
    linear-gradient(135deg, #1b2b54 0%, var(--glass-solid) 52%, #101631 100%);
  border: 1px solid rgba(195, 231, 255, .35);
  border-radius: 2.4rem 2.4rem 9rem 2.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -35px 75px rgba(3,7,22,.56), 0 35px 80px rgba(0,0,0,.3);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cockpit-display {
    background:
      radial-gradient(circle at 50% 56%, rgba(119, 230, 255, .15), transparent 41%),
      linear-gradient(135deg, rgba(36, 57, 104, .82), rgba(17, 26, 58, .9));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}
.cockpit-display::before {
  content: "";
  position: absolute;
  inset: 17px;
  pointer-events: none;
  border: 1px solid rgba(168, 211, 255, .2);
  border-radius: 1.7rem 1.7rem 8.2rem 1.7rem;
}
.cockpit-display::after {
  content: "";
  position: absolute;
  inset: auto 9% 12% 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119,230,255,.55), transparent);
}
.orbit {
  position: absolute;
  left: 50%; top: 49%;
  aspect-ratio: 1;
  border: 1px solid rgba(119, 230, 255, .22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}
.orbit-outer { width: min(82%, 430px); box-shadow: 0 0 42px rgba(119,230,255,.08); }
.orbit-inner { width: min(61%, 320px); border-style: dashed; border-color: rgba(255,215,130,.24); }
.orbit-outer::before, .orbit-inner::before {
  content: "";
  position: absolute;
  top: 14%; left: 15%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orbit-cyan);
  box-shadow: 0 0 17px var(--orbit-cyan);
}
.orbit-inner::before { top: auto; left: auto; right: 14%; bottom: 16%; width: 5px; height: 5px; background: var(--dodo-gold); box-shadow: 0 0 12px var(--dodo-gold); }
.display-label { position: absolute; z-index: 5; color: #cbd8f4; font-family: Consolas, "Microsoft YaHei", monospace; font-size: .68rem; letter-spacing: .12em; }
.label-north { top: 2.65rem; left: 2.7rem; }
.label-south { bottom: 2.7rem; right: 2.7rem; }
.star { position: absolute; color: var(--orbit-cyan); text-shadow: 0 0 15px currentColor; animation: star-twinkle 3.6s ease-in-out infinite alternate; }
.star-one { top: 22%; right: 18%; font-size: 1.2rem; }
.star-two { bottom: 22%; left: 20%; color: var(--dodo-gold); font-size: 1rem; animation-delay: -1.8s; }
@keyframes star-twinkle { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1.12); } }

/* All astronaut parts are DOM and CSS; there is no image dependency. */
.dodo-astronaut {
  position: absolute;
  z-index: 3;
  left: 50%; top: 52%;
  width: 225px; height: 316px;
  transform: translate(-50%, -50%);
  animation: dodo-float 5s ease-in-out infinite;
}
@keyframes dodo-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -11px; } }
.dodo-astronaut > span, .dodo-face > span { position: absolute; display: block; }
.helmet-glow {
  z-index: 0; inset: 2px 16px 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,230,255,.24), rgba(119,230,255,0) 70%);
  filter: blur(7px);
}
.helmet-shell {
  z-index: 2; top: 8px; left: 24px;
  width: 177px; height: 181px;
  border: 13px solid #e8f4ff;
  border-bottom-color: #a9c7e3;
  border-radius: 49% 49% 45% 45%;
  box-shadow: inset 0 0 0 5px #6687b6, inset 0 8px 18px rgba(14,28,57,.7), 0 3px 0 #6485ac, 0 18px 45px rgba(0,0,0,.28);
}
.helmet-shell::after {
  content: ""; position: absolute;
  top: 15px; left: 17px;
  width: 47px; height: 66px;
  border-radius: 50%;
  border-left: 11px solid rgba(255,255,255,.5);
  transform: rotate(26deg);
}
.dodo-face {
  z-index: 3; top: 31px; left: 47px;
  width: 131px; height: 136px;
  background: #eacaaa;
  border-radius: 48% 48% 43% 43%;
  box-shadow: inset -13px -11px 0 rgba(177,117,111,.18);
}
.dodo-face::before {
  content: ""; position: absolute;
  top: -9px; left: 17px;
  width: 96px; height: 55px;
  border-radius: 50% 50% 40% 40%;
  background: #77619d;
}
.dodo-feather {
  z-index: 1;
  top: 14px; width: 41px; height: 65px;
  background: var(--nebula-violet);
  border-radius: 65% 15% 65% 15%;
}
.feather-left { left: 79px; transform: rotate(-33deg); }
.feather-right { right: 75px; transform: rotate(30deg); background: #b0a3ff; }
.dodo-eye { z-index: 2; top: 57px; width: 10px; height: 15px; background: #211c3f; border-radius: 50%; }
.eye-left { left: 31px; }
.eye-right { right: 31px; }
.dodo-beak {
  z-index: 2; top: 75px; left: 49px;
  width: 40px; height: 33px;
  background: var(--dodo-gold);
  border-radius: 52% 50% 58% 47%;
  transform: rotate(-8deg);
  box-shadow: inset -7px -7px 0 #e9a958;
}
.dodo-blush { z-index: 2; top: 83px; width: 18px; height: 9px; background: #da8e9f; border-radius: 50%; opacity: .78; }
.blush-left { left: 15px; }
.blush-right { right: 14px; }
.suit-body {
  z-index: 1; top: 175px; left: 47px;
  width: 132px; height: 111px;
  background: linear-gradient(115deg, #f8fbff, #c3d5ee 78%);
  border: 5px solid #91a8c9;
  border-radius: 39% 39% 30% 30%;
  box-shadow: inset -15px -10px 0 rgba(86,119,160,.18);
}
.suit-collar {
  z-index: 4; top: 167px; left: 66px;
  width: 95px; height: 29px;
  background: #cadbf0;
  border: 5px solid #829ec5;
  border-radius: 50%;
}
.suit-badge {
  z-index: 4; top: 213px; left: 96px;
  display: grid !important; place-items: center;
  width: 34px; height: 34px;
  color: #15284a;
  background: var(--orbit-cyan);
  border: 3px solid #789bbd;
  border-radius: 50%;
  font-size: .85rem; font-weight: 900;
}
.suit-arm {
  z-index: 0; top: 189px;
  width: 45px; height: 87px;
  background: #d6e5f5;
  border: 5px solid #91a8c9;
  border-radius: 28px;
}
.arm-left { left: 25px; transform: rotate(28deg); }
.arm-right { right: 7px; top: 169px; transform: rotate(-46deg); }
.arm-right::after {
  content: ""; position: absolute; top: -14px; left: -3px;
  width: 45px; height: 36px;
  background: #edf7ff; border: 4px solid #91a8c9; border-radius: 45% 45% 40% 40%;
}
.suit-foot { z-index: 0; top: 266px; width: 43px; height: 41px; background: #9eb9d8; border: 5px solid #7592b8; border-radius: 35% 35% 45% 45%; }
.foot-left { left: 59px; transform: rotate(13deg); }
.foot-right { right: 58px; transform: rotate(-13deg); }

.destinations { padding: 2rem 0 7rem; scroll-margin-top: 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading .eyebrow { margin-bottom: .65rem; }
h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4vw, 3.8rem); line-height: 1.17; letter-spacing: -.055em; }
.section-heading > p { margin-bottom: .3rem; color: var(--muted); }
.destination-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.destination-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 218px;
  overflow: hidden;
  padding: 1.65rem;
  background: var(--cabin-blue);
  border: 1px solid var(--hairline);
  border-radius: 1.4rem;
}
.destination-card > * { position: relative; z-index: 1; }
.card-index { color: var(--muted); font-family: Consolas, "Microsoft YaHei", monospace; font-size: .67rem; letter-spacing: .15em; }
.destination-icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-top: 1.3rem; border-radius: .85rem; font-size: 1.45rem; line-height: 1; }
.destination-title { margin-top: auto; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.035em; }
.destination-description { margin-top: .35rem; color: var(--muted); font-size: .88rem; }
.card-action, .destination-card button { margin-top: 1.2rem; }
.destination-card button {
  cursor: pointer;
  padding: .45rem .68rem;
  color: var(--starlight);
  background: rgba(244,247,255,.08);
  border: 1px solid rgba(244,247,255,.22);
  border-radius: .45rem;
  font-size: .78rem;
  transition: background-color .2s ease;
}
.destination-card button:hover { background: rgba(244,247,255,.17); }
.weather-card {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 460px;
  padding: clamp(1.7rem, 3vw, 2.8rem);
  background:
    radial-gradient(circle at 76% 36%, rgba(119,230,255,.3), transparent 21%),
    linear-gradient(145deg, #173861, #102947 49%, #10203c);
  border-color: rgba(119,230,255,.45);
  border-radius: 1.5rem 5rem 1.5rem 1.5rem;
  transition: border-color .2s ease, transform .2s ease;
}
.weather-card:hover { transform: translateY(-4px); border-color: var(--orbit-cyan); }
.weather-card::before {
  content: ""; position: absolute;
  top: 18%; right: 7%; width: min(42%, 250px); aspect-ratio: 1;
  border: 1px solid rgba(119,230,255,.55);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(119,230,255,.06), 0 0 0 44px rgba(119,230,255,.035), inset 0 0 40px rgba(119,230,255,.09);
}
.weather-card::after {
  content: ""; position: absolute; top: 28%; right: 17%; width: 12%; aspect-ratio: 1;
  background: var(--dodo-gold); border-radius: 50%; box-shadow: 0 0 40px rgba(255,215,130,.68);
}
.weather-card .card-index { color: #bfeeff; }
.weather-card .destination-icon { color: var(--dodo-gold); border: 1px solid rgba(255,215,130,.45); background: rgba(255,215,130,.09); }
.weather-card .destination-title { font-size: clamp(2rem, 3.3vw, 3rem); }
.weather-card .destination-description { color: #d4e9f3; font-size: 1rem; }
.card-action { color: var(--orbit-cyan); font-weight: 800; font-size: .9rem; }
.card-action span { margin-left: .3rem; }
.archive-card {
  grid-column: span 5;
  min-height: 222px;
  background: linear-gradient(135deg, #242446, #171c3b 75%);
  border-radius: 1.5rem 1.5rem 1.5rem 4rem;
}
.archive-card::before { content: ""; position: absolute; top: -45px; right: -30px; width: 180px; height: 180px; border: 1px solid rgba(156,140,255,.3); border-radius: 50%; box-shadow: 0 0 0 20px rgba(156,140,255,.035), 0 0 0 42px rgba(156,140,255,.025); }
.archive-card .destination-icon { color: #c5bcff; background: rgba(156,140,255,.15); }
.game-card {
  grid-column: span 5;
  min-height: 222px;
  background: linear-gradient(118deg, #172841, #172b46 58%, #17223d);
  border-radius: 1.5rem 4rem 1.5rem 1.5rem;
}
.game-card::before { content: ""; position: absolute; top: 24px; right: 40px; width: 94px; height: 94px; border: 7px solid rgba(119,230,255,.25); border-radius: 1.3rem; transform: rotate(18deg); }
.game-card::after { content: "✦"; position: absolute; top: 41px; right: 67px; color: var(--dodo-gold); font-size: 2.5rem; text-shadow: 0 0 22px rgba(255,215,130,.45); }
.game-card .destination-icon { color: var(--dodo-gold); background: rgba(255,215,130,.12); }
.tools-card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) auto;
  align-items: center;
  column-gap: 2rem;
  min-height: 162px;
  background: linear-gradient(90deg, #222749, #192442 50%, #1c2544);
  border-radius: 1.5rem 1.5rem 4rem 1.5rem;
}
.tools-card::before { content: ""; position: absolute; inset: 20px auto 20px 30%; width: 1px; background: rgba(156,140,255,.28); }
.tools-card .card-index { grid-column: 1; }
.tools-card .destination-icon { grid-column: 1; margin: .5rem 0 0; color: var(--dodo-gold); background: rgba(255,215,130,.12); }
.tools-card .destination-title { grid-column: 2; grid-row: 1; margin: 0; }
.tools-card .destination-description { grid-column: 2; grid-row: 2; margin: 0; }
.tools-card button { grid-column: 3; grid-row: 1 / span 2; margin: 0; }

#status-toast {
  position: fixed;
  z-index: 20;
  right: 1.5rem; bottom: 1.5rem;
  max-width: min(28rem, calc(100vw - 3rem));
  padding: 0;
  color: var(--void-navy);
  background: var(--dodo-gold);
  border-radius: .7rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  font-weight: 700;
}
#status-toast:not(:empty) { padding: .8rem 1.1rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.8rem 0 2.4rem; color: var(--muted); border-top: 1px solid var(--hairline); font-size: .82rem; }
.site-footer span span { color: var(--dodo-gold); }

@media (max-width: 900px) {
  .site-header, main, .site-footer { width: min(100% - 2.5rem, 740px); }
  .hero-cockpit { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 5rem 0 4.5rem; }
  .cockpit-copy { padding-left: 0; }
  .cockpit-display { width: min(100%, 650px); height: 470px; margin-inline: auto; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-card { grid-column: span 2; grid-row: auto; min-height: 390px; }
  .archive-card, .game-card { grid-column: span 1; }
  .tools-card { grid-column: span 2; }
}

@media (max-width: 600px) {
  .site-header, main, .site-footer { width: min(100% - 2rem, 520px); }
  .site-header { min-height: 80px; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: 1rem 0; }
  .wordmark { font-size: 1.38rem; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; margin-left: 0; padding-top: .4rem; }
  .system-status { font-size: .68rem; }
  .hero-cockpit { padding: 4.3rem 0 4rem; gap: 3rem; }
  .hero-cockpit::before { display: none; }
  h1 { font-size: clamp(3.05rem, 13vw, 5rem); }
  .eyebrow { font-size: .62rem; letter-spacing: .13em; }
  .cockpit-display { height: 365px; border-radius: 1.8rem 1.8rem 6rem 1.8rem; }
  .cockpit-display::before { inset: 11px; border-radius: 1.3rem 1.3rem 5.5rem 1.3rem; }
  .dodo-astronaut { top: 41%; scale: .78; }
  .label-north { top: 1.8rem; left: 1.8rem; }
  .label-south { right: 1.8rem; bottom: 1.8rem; }
  .section-heading { display: block; }
  .section-heading > p { margin: .8rem 0 0; }
  .destination-grid { grid-template-columns: minmax(0, 1fr); }
  .destination-card, .weather-card, .archive-card, .game-card, .tools-card { grid-column: 1; grid-row: auto; }
  .weather-card { min-height: 390px; }
  .archive-card, .game-card { min-height: 235px; }
  .tools-card { display: flex; align-items: flex-start; min-height: 235px; }
  .tools-card::before { display: none; }
  .tools-card .destination-icon { margin-top: 1.3rem; }
  .tools-card .destination-title { margin-top: auto; }
  .tools-card .destination-description { margin-top: .35rem; }
  .tools-card button { margin-top: 1.2rem; }
  .site-footer { flex-direction: column; gap: .3rem; }
}

@media (max-width: 380px) {
  .cockpit-display { height: 330px; }
  .dodo-astronaut { scale: .69; }
  .display-label { font-size: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star, .dodo-astronaut { animation: none; }
  .launch-link, .weather-card, .site-header nav a, .destination-card button { transition: none; }
}
