:root {
  --ink: #17261f;
  --muted: #526b5d;
  --leaf: #2f6c45;
  --line: #243f32;
  --paper: #fff9d8;
  --panel: #d9e9c6;
  --gold: #ffe26a;
  --lime: #b8ff35;
  --blue: #66b8ff;
  --shadow: #11271d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #101d18;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.mobile-dex {
  display: none;
}

.desktop-universe {
  color: #f7ffe8;
  background:
    radial-gradient(circle at 18% 16%, rgba(184, 255, 53, 0.2), transparent 24%),
    linear-gradient(180deg, #10261f, #07110e 42%, #172d21);
}

.universe-topbar {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding: 8px 12px;
  border: 3px solid rgba(255, 249, 216, 0.7);
  border-radius: 6px;
  background: rgba(14, 30, 24, 0.72);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.brand-lockup,
.universe-topbar nav,
.hero-actions,
.launch-panel,
.captain-card,
.section-title,
.lab-grid,
.log-board {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--paper);
  border-radius: 4px;
  background: var(--paper);
}

.universe-topbar nav {
  justify-content: center;
  gap: clamp(16px, 3vw, 46px);
  font-weight: 900;
}

.universe-topbar a {
  text-decoration: none;
}

.universe-topbar nav a:hover,
.world-menu a:hover {
  color: var(--lime);
}

.topbar-cta,
.primary-action,
.secondary-action,
.showcase-card a {
  border: 3px solid var(--line);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.38);
  text-decoration: none;
  font-weight: 900;
}

.topbar-cta {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold);
}

.desktop-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 132px 92px 132px 150px;
  isolation: isolate;
}

.hero-world,
.hero-tint {
  position: absolute;
  inset: 0;
}

.hero-world {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-tint {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 18, 13, 0.86), rgba(5, 18, 13, 0.4) 45%, rgba(5, 18, 13, 0.78)),
    linear-gradient(0deg, rgba(5, 18, 13, 0.78), transparent 42%, rgba(5, 18, 13, 0.48));
}

.world-menu {
  position: absolute;
  left: 24px;
  top: 50%;
  z-index: 4;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.world-menu a {
  display: grid;
  place-items: center;
  width: 86px;
  min-height: 48px;
  border: 3px solid rgba(255, 249, 216, 0.7);
  border-radius: 4px;
  background: rgba(18, 42, 32, 0.74);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
  text-decoration: none;
  font-weight: 900;
}

.world-menu a.is-current {
  color: var(--ink);
  background: var(--gold);
}

.hero-main {
  position: relative;
  z-index: 3;
  width: min(760px, 58vw);
  padding-top: 10vh;
}

.kicker {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-main h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(74px, 8vw, 138px);
  line-height: 0.86;
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.hero-main p:not(.kicker) {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(247, 255, 232, 0.88);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
}

.primary-action {
  color: var(--ink);
  background: var(--gold);
}

.secondary-action {
  color: #f7ffe8;
  border-color: rgba(255, 249, 216, 0.75);
  background: rgba(18, 42, 32, 0.7);
}

.captain-card,
.hero-widget {
  position: absolute;
  z-index: 5;
  border: 3px solid rgba(255, 249, 216, 0.78);
  border-radius: 6px;
  background: rgba(15, 36, 28, 0.78);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.captain-card {
  right: 6vw;
  top: 22vh;
  gap: 16px;
  width: min(360px, 28vw);
  padding: 14px;
}

.captain-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 3px solid var(--paper);
  border-radius: 4px;
  background: var(--paper);
}

.captain-card h2,
.captain-card p,
.hero-widget p,
.hero-widget strong {
  margin: 0;
}

.captain-card p:last-child,
.hero-widget p {
  color: rgba(247, 255, 232, 0.74);
  line-height: 1.55;
}

.hero-widget {
  right: 8vw;
  top: calc(22vh + 170px);
  width: min(320px, 26vw);
  padding: 16px;
}

.hero-widget span {
  color: var(--gold);
  font-weight: 900;
}

.hero-widget strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.launch-panel {
  position: absolute;
  left: 150px;
  right: 92px;
  bottom: 34px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.launch-panel a {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 249, 216, 0.88);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34);
  text-decoration: none;
  transition:
    transform 140ms ease,
    background 140ms ease;
}

.launch-panel a:hover {
  background: var(--gold);
  transform: translateY(-6px);
}

.launch-panel img {
  width: 58px;
  height: 58px;
  border: 2px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  background: var(--paper);
}

.launch-panel span,
.launch-panel strong {
  display: block;
  font-weight: 900;
}

.launch-panel strong {
  color: var(--leaf);
  font-size: 13px;
}

.universe-section {
  min-height: 100svh;
  padding: 120px clamp(36px, 7vw, 120px);
  background:
    linear-gradient(180deg, rgba(13, 32, 24, 0.96), rgba(22, 48, 34, 0.98)),
    #142d22;
}

.universe-section:nth-of-type(even) {
  background:
    linear-gradient(180deg, rgba(23, 52, 38, 0.98), rgba(10, 24, 18, 0.98)),
    #173426;
}

.map-sector {
  background:
    linear-gradient(180deg, rgba(8, 19, 15, 0.88), rgba(18, 42, 31, 0.96)),
    url("./assets/scene-project-galaxy.png") center / cover;
}

.games-sector {
  background:
    linear-gradient(180deg, rgba(10, 22, 18, 0.9), rgba(23, 52, 38, 0.96)),
    url("./assets/scene-game-orbit.png") center / cover;
}

.lab-sector {
  background:
    linear-gradient(180deg, rgba(10, 22, 18, 0.92), rgba(12, 30, 24, 0.97)),
    url("./assets/scene-ai-station.png") center / cover;
}

.log-sector {
  background:
    linear-gradient(180deg, rgba(12, 28, 21, 0.94), rgba(12, 24, 18, 0.98)),
    url("./assets/scene-update-archive.png") center / cover;
}

.section-title {
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 90px);
  line-height: 0.95;
}

.section-title p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(247, 255, 232, 0.76);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.7;
}

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

.module-grid article {
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.36);
}

.module-grid article > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 3px solid var(--line);
}

.module-grid article > div {
  position: relative;
  min-height: 190px;
  padding: 24px;
}

.module-grid article > div > img {
  position: absolute;
  top: -42px;
  right: 18px;
  width: 76px;
  height: 76px;
  border: 3px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper);
}

.module-grid h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
}

.module-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.project-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: minmax(230px, auto);
  gap: 18px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  gap: 22px;
  align-items: center;
  min-height: 260px;
  padding: 24px;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.36);
}

.showcase-card.active {
  grid-row: span 2;
  min-height: 540px;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 3px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--gold);
  font-weight: 900;
}

.badge img {
  width: 24px;
  height: 24px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
}

.showcase-card h3,
.lab-grid h3,
.log-board h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
}

.showcase-card p,
.lab-grid p,
.log-board p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.showcase-card a {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--leaf);
}

.orbit-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.orbit-node {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 240px;
  padding: 26px 16px;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  font-weight: 900;
}

.orbit-node img {
  width: 112px;
  height: 112px;
  border: 3px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper);
}

.orbit-node:hover,
.orbit-node.is-current {
  background: var(--gold);
  transform: translateY(-8px);
}

.map-message {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 3px solid rgba(255, 249, 216, 0.68);
  border-radius: 6px;
  background: rgba(15, 36, 28, 0.78);
  color: rgba(247, 255, 232, 0.86);
  font-weight: 900;
}

.lab-grid,
.log-board {
  align-items: stretch;
  gap: 18px;
}

.lab-grid article,
.log-board article {
  flex: 1;
  padding: 24px;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.34);
}

.lab-grid img {
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border: 3px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.log-board time {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--gold);
  font-weight: 900;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  body {
    background: #101d18;
  }

  .desktop-universe {
    display: block;
  }

  .mobile-dex {
    display: none;
  }

  .universe-topbar {
    top: 8px;
    left: 8px;
    right: 8px;
    grid-template-columns: 1fr auto;
    min-height: 58px;
    gap: 8px;
  }

  .brand-lockup span {
    font-size: 14px;
  }

  .brand-lockup img {
    width: 38px;
    height: 38px;
  }

  .universe-topbar nav {
    display: none;
  }

  .topbar-cta {
    padding: 8px 10px;
    font-size: 13px;
  }

  .desktop-hero {
    min-height: 100svh;
    padding: 96px 18px 360px;
  }

  .world-menu {
    display: none;
  }

  .hero-main {
    width: 100%;
    padding-top: 6vh;
  }

  .hero-main h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-main p:not(.kicker) {
    max-width: none;
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .primary-action,
  .secondary-action {
    flex: 1 1 160px;
    min-height: 48px;
    padding: 0 12px;
  }

  .captain-card {
    display: none;
  }

  .hero-widget {
    display: none;
  }

  .launch-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .launch-panel a {
    grid-template-columns: 42px 1fr;
    min-height: 78px;
    padding: 9px;
  }

  .launch-panel img {
    width: 42px;
    height: 42px;
  }

  .universe-section {
    min-height: 100svh;
    padding: 88px 18px;
  }

  .section-title {
    display: block;
  }

  .section-title h2 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .section-title p:last-child {
    margin-top: 14px;
    font-size: 16px;
  }

  .module-grid,
  .project-stage,
  .orbit-map,
  .lab-grid,
  .log-board {
    display: grid;
    grid-template-columns: 1fr;
  }

  .module-grid article > img {
    height: 190px;
  }

  .showcase-card,
  .showcase-card.active {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .showcase-card img {
    min-height: 180px;
    max-height: 230px;
  }

  .orbit-node {
    min-height: 190px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .desktop-hero {
    padding-left: 124px;
    padding-right: 42px;
  }

  .captain-card,
  .hero-widget {
    display: none;
  }

  .hero-main {
    width: min(760px, 74vw);
  }

  .launch-panel {
    left: 124px;
    right: 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-stage,
  .orbit-map,
  .lab-grid,
  .log-board {
    grid-template-columns: 1fr;
    display: grid;
  }

  .showcase-card.active {
    min-height: auto;
  }
}
