:root {
  --bg: #0d1117;
  --panel: #141b25;
  --panel-soft: #1a2430;
  --ink: #f5f8fc;
  --muted: #96a4b7;
  --line: rgba(255, 255, 255, 0.08);
  --lime: #c8ff33;
  --cyan: #55d8ff;
  --orange: #ff8e34;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
  --radius-lg: 16px;
  --radius-md: 10px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(85, 216, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #0b0f14 0%, #0f141b 50%, #0c1016 100%);
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 28px), var(--shell)); margin: 0 auto; }
.shell-wide { width: min(calc(100% - 28px), var(--shell)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 15, 20, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-grid {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}
.brand {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}
.header-rail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.header-rail span, .header-nav a, .play-stamp, .featured-lane__poster span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}
.header-rail span {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.header-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav a {
  padding: 10px 14px;
  font-weight: 700;
}

.hero-shell { padding: 26px 0 10px; }
.hero-card {
  display: grid;
  gap: 0;
  min-height: 72vh;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 18px;
}
.hero-scene {
  position: absolute;
  inset: 0;
}
.hero-card { position: relative; }
.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 17, 0.88) 0%, rgba(8, 12, 17, 0.52) 44%, rgba(8, 12, 17, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 12, 17, 0.14), rgba(8, 12, 17, 0.38));
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 52px;
  align-self: end;
  max-width: 820px;
}
.eyebrow, .section-kicker, .footer-kicker {
  margin: 0 0 10px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 800;
}
.hero-copy h1, .section-heading h2, .featured-lane__copy h2, .support-panel h2, .page-hero h1, .game-page-hero h1, .page-section h2, .site-footer h2 {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero-copy h1 { font-size: clamp(2.7rem, 6vw, 5rem); max-width: 760px; }
.hero-lead { margin: 18px 0 0; max-width: 720px; color: #d4ddea; font-size: 1.08rem; }
.hero-actions, .page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cta-primary, .cta-secondary, .cta-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border-radius: 8px; font-weight: 800;
}
.cta-primary { background: var(--lime); color: #081017; }
.cta-secondary { background: rgba(255,255,255,0.08); color: var(--ink); border: 1px solid var(--line); }
.cta-link { color: var(--cyan); padding-left: 0; padding-right: 0; }

.metric-band, .featured-lane, .race-list, .support-grid { padding: 18px 0; }
.metric-grid, .support-grid__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.metric-grid article, .support-panel, .featured-lane__copy, .race-row, .page-hero, .page-section, .page-callout, .game-frame, .game-page-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.metric-grid article, .support-panel, .featured-lane__copy, .page-hero, .page-section, .page-callout, .game-page-hero { padding: 22px; border-radius: 14px; }
.metric-grid strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(85,216,255,0.12); color: var(--cyan);
  font-family: "Poppins", "Segoe UI", sans-serif; font-weight: 800;
}
.metric-grid h2 { margin: 14px 0 8px; font-size: 1.3rem; }
.metric-grid p, .section-heading p:last-child, .featured-lane__copy p, .race-row__body p, .support-panel p, .page-hero p, .page-section p, .page-callout p, .site-footer p, .site-footer li { color: var(--muted); }

.featured-lane__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}
.featured-lane__poster {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.featured-lane__poster img { width: 100%; height: 100%; object-fit: cover; }
.featured-lane__poster span, .play-stamp {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 14px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading { margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.race-row {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.race-row__poster {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 10px;
}
.race-row__poster img { width: 100%; height: 100%; object-fit: cover; }
.race-row__body h3 { margin: 0; font-size: 1.7rem; font-family: "Poppins", "Segoe UI", sans-serif; }
.race-row__body ul {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0; margin: 14px 0 10px; list-style: none;
}
.race-row__body li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200,255,51,0.1);
  color: #d8ff73;
  font-weight: 700;
}

.site-footer {
  margin-top: auto;
  padding: 24px 0 34px;
  background: #0a0e14;
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 18px;
}
.site-footer ul, .page-callout ul { list-style: none; padding: 0; margin: 12px 0 0; }
.site-footer li + li, .page-callout li + li { margin-top: 8px; }
.footer-kicker { color: var(--orange); }

.page-shell { width: min(calc(100% - 28px), 1120px); margin: 0 auto; padding: 26px 0 52px; }
.page-grid, .game-page-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 18px;
}
.page-stack { display: grid; gap: 18px; }
.page-callout { position: sticky; top: 130px; align-self: start; border-radius: 12px; }
.game-page-hero {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 18px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.game-page-hero__media { overflow: hidden; border-radius: 10px; min-height: 240px; }
.game-page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.game-frame { padding: 12px; border-radius: 12px; }
.game-frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; background: #000; }
.micro-notes { display: grid; gap: 10px; margin-top: 12px; }
.micro-notes article { padding: 14px; border-radius: 10px; background: var(--panel-soft); border: 1px solid var(--line); }
.micro-notes h3 { margin: 0 0 6px; font-size: 1rem; }

@media (max-width: 1100px) {
  .header-grid, .featured-lane__grid, .metric-grid, .support-grid__inner, .footer-grid, .page-grid, .game-page-grid, .game-page-hero, .race-row {
    grid-template-columns: 1fr;
  }
  .page-callout { position: static; }
}
@media (max-width: 760px) {
  .hero-copy { padding: 28px 22px; }
  .hero-card { min-height: 60vh; }
  .site-header { position: static; }
}
