:root {
  color-scheme: dark;
  --bg: #0c0f21;
  --text: #f5f6ff;
  --muted: #a7add0;
  --soft: #7078a7;
  --accent: #a392ff;
  --mint: #60e2d0;
  --panel: rgba(22, 27, 55, 0.86);
  --line: rgba(164, 177, 255, 0.16);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(111, 91, 219, 0.34), transparent 33rem),
    radial-gradient(circle at 90% 12%, rgba(52, 189, 187, 0.18), transparent 30rem),
    linear-gradient(155deg, #10152f 0%, var(--bg) 54%, #11142a 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }

.hub-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
}

.hub-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px 38px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-stat {
  display: grid;
  min-width: 116px;
  padding: 18px;
  border: 1px solid rgba(157, 140, 255, 0.28);
  border-radius: 20px;
  background: rgba(31, 34, 72, 0.72);
  text-align: right;
}

.hero-stat strong { font-size: 38px; line-height: 1; }
.hero-stat span { margin-top: 7px; color: var(--muted); font-size: 12px; }

.section-label { margin-bottom: 16px; color: var(--soft); }

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

.game-card {
  position: relative;
  display: grid;
  min-height: 265px;
  align-content: space-between;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.game-card::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(157, 140, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.game-card:hover { transform: translateY(-4px); border-color: rgba(157, 140, 255, 0.55); filter: brightness(1.08); }

.game-card.featured { background: linear-gradient(145deg, rgba(56, 52, 115, 0.84), rgba(22, 27, 55, 0.9)); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-number { color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: 0.15em; }
.status { padding: 5px 9px; border-radius: 999px; color: var(--mint); background: rgba(96, 226, 208, 0.1); font-size: 11px; }
.status.soon { color: #c9c1ff; background: rgba(157, 140, 255, 0.13); }

.game-card h2 { position: relative; z-index: 1; margin: 32px 0 10px; font-size: 29px; letter-spacing: -0.05em; }
.game-card p { position: relative; z-index: 1; max-width: 320px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.game-link { position: relative; z-index: 1; margin-top: 28px; color: var(--mint); font-size: 13px; font-weight: 800; }

.roadmap {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(22, 27, 55, 0.62);
}

.roadmap h2 { margin-bottom: 18px; font-size: 18px; }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.roadmap-item { padding: 15px; border-radius: 16px; background: rgba(8, 10, 21, 0.36); }
.roadmap-item strong { display: block; margin-bottom: 6px; font-size: 14px; }
.roadmap-item span { color: var(--soft); font-size: 12px; line-height: 1.5; }

.back-link { display: inline-block; margin-bottom: 24px; color: var(--mint); font-size: 13px; font-weight: 700; }
.prototype-box { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.prototype-box h2 { margin-bottom: 10px; font-size: 22px; }
.prototype-box p { color: var(--muted); line-height: 1.7; }
.prototype-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.prototype-list div { padding: 16px; border-radius: 16px; background: rgba(8, 10, 21, 0.36); }
.prototype-list strong { display: block; margin-bottom: 6px; }
.prototype-list span { color: var(--soft); font-size: 12px; }

@media (max-width: 680px) {
  .hub-shell { padding-right: 14px; padding-left: 14px; }
  .hub-hero { align-items: flex-start; }
  .game-grid, .roadmap-grid, .prototype-list { grid-template-columns: 1fr; }
  .hero-stat { min-width: 92px; padding: 13px; }
  .hero-stat strong { font-size: 30px; }
  .game-card { min-height: 220px; }
}
