:root {
  --bg: #0b0d12;
  --surface: #11151d;
  --surface-raised: #151b24;
  --line: #27313d;
  --line-bright: #3b4958;
  --ink: #f5f7fb;
  --ink-soft: #b4bbc6;
  --ink-faint: #8a96a8;
  --mint: #8be6cd;
  --mint-soft: rgba(139, 230, 205, 0.16);
  --rose: #f7b2cf;
  --amber: #f0c979;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  --page-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

#particleCanvas,
.backdrop-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particleCanvas {
  z-index: 1;
  opacity: 0.94;
}

.backdrop-grid {
  z-index: 0;
  background-image: linear-gradient(180deg, rgba(11, 13, 18, 0.08), rgba(11, 13, 18, 0.62));
}

.site-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 64px), var(--page-width));
  min-height: 100svh;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  border-bottom: 1px solid rgba(139, 154, 171, 0.18);
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark,
.private-signal {
  display: inline-flex;
  align-items: center;
}

.wordmark {
  gap: 10px;
  color: var(--ink-soft);
  text-decoration: none;
}

.wordmark-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 22px;
  height: 18px;
}

.wordmark-mark i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--mint);
  border-radius: 50%;
}

.wordmark-mark i:first-child {
  left: 0;
  top: 1px;
}

.wordmark-mark i:last-child {
  right: 0;
  bottom: 1px;
  border-color: var(--rose);
}

.private-signal {
  gap: 8px;
  white-space: nowrap;
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.signal-year {
  padding-left: 10px;
  border-left: 1px solid rgba(139, 154, 171, 0.25);
  color: var(--ink-soft);
}

main {
  flex: 1;
}

.hero {
  display: grid;
  min-height: 44svh;
  place-items: center;
  padding: 58px 0 52px;
  text-align: center;
}

.hero-lockup {
  position: relative;
  width: min(100%, 820px);
}

.hero-lockup::before,
.hero-lockup::after {
  position: absolute;
  top: 50%;
  width: 112px;
  height: 1px;
  content: "";
  background: var(--line);
}

.hero-lockup::before {
  left: -18px;
  transform: translateX(-100%);
}

.hero-lockup::after {
  right: -18px;
  transform: translateX(100%);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  position: relative;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 104px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  z-index: 0;
}

h1.is-particle-title > span {
  color: transparent;
}

.name-p {
  color: var(--mint);
}

.name-b {
  color: var(--rose);
}

.join {
  display: inline-block;
  padding: 0 13px;
  color: var(--ink-faint);
  font-size: 0.55em;
  vertical-align: 0.17em;
}

.hero-copy {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.hero-copy span {
  color: var(--ink-faint);
  font-size: 14px;
}

.identity-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 31px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.identity-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.mark-p {
  border-color: var(--mint);
  color: var(--mint);
}

.mark-b {
  border-color: var(--rose);
  color: var(--rose);
}

.identity-connector {
  width: 28px;
  height: 1px;
  background: var(--line-bright);
}

.identity-caption {
  padding-left: 8px;
}

.index-section {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 18px 0 70px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-label {
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-copy {
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 14px;
}

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

.hub-link {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 21, 29, 0.9);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.hub-link::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: var(--line-bright);
  transition: background-color 180ms ease;
}

.hub-link.is-live::before {
  background: var(--mint);
}

.hub-link.is-planned {
  border-style: dashed;
  background: rgba(17, 21, 29, 0.6);
  box-shadow: none;
}

.hub-link.is-planned::before {
  background: var(--amber);
  opacity: 0.6;
}

.hub-link.is-live:hover {
  border-color: var(--mint);
  background: var(--surface-raised);
  transform: translateY(-3px);
}

.hub-link.is-live:hover::before {
  background: var(--rose);
}

.card-top,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--mint);
}

.is-planned .card-icon {
  color: var(--amber);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-state {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.is-live .card-state {
  color: var(--mint);
}

.card-arrow {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1;
}

.card-title {
  margin-top: 18px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.card-latin {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-description {
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 13px;
}

.card-meta {
  color: var(--ink-soft);
  font-size: 11px;
}

.closing-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 76px;
  color: var(--ink-faint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.closing-line {
  width: 46px;
  height: 1px;
  background: var(--line);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(139, 154, 171, 0.18);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-mark {
  color: var(--mint);
}

.no-script {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 11px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

@media (min-width: 1400px) {
  .site-shell {
    width: min(calc(100% - 96px), 1360px);
  }

  .hero {
    min-height: 40svh;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 44px), var(--page-width));
  }

  .topbar {
    min-height: 64px;
    font-size: 10px;
  }

  .signal-year {
    display: none;
  }

  .hero {
    min-height: 40svh;
    padding: 48px 0 44px;
  }

  #particleCanvas {
    opacity: 0.98;
  }

  .hero-lockup::before,
  .hero-lockup::after {
    width: 44px;
  }

  .hero-lockup::before {
    left: -8px;
  }

  .hero-lockup::after {
    right: -8px;
  }

  h1 {
    font-size: 62px;
  }

  .join {
    padding: 0 8px;
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 15px;
  }

  .hero-copy span {
    font-size: 13px;
  }

  .identity-line {
    margin-top: 26px;
  }

  .identity-caption {
    display: none;
  }

  .index-section {
    padding: 12px 0 54px;
  }

  h2 {
    font-size: 28px;
  }

  .section-copy {
    font-size: 13px;
  }

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

  .hub-link {
    min-height: 148px;
    padding: 19px 19px 18px;
  }

  .card-title {
    font-size: 20px;
  }

  .closing-section {
    padding-bottom: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* === hero game button === */
.hero-game-btn {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  padding: .82rem 2rem;
  border: 1px solid rgba(139, 230, 205, .28);
  border-radius: 999px;
  background: rgba(139, 230, 205, .08);
  color: #8be6cd;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  text-align: center;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}

.hero-game-btn:hover {
  border-color: rgba(139, 230, 205, .6);
  background: rgba(139, 230, 205, .14);
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(139, 230, 205, .18);
}

.hero-game-btn:active {
  transform: translateY(0);
}

.hero-game-btn svg {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: .4rem;
  opacity: .82;
  vertical-align: -2px;
  transition: opacity .3s;
}

.hero-game-btn:hover svg {
  opacity: 1;
}
