:root {
  --bg: #FFF8F0;
  --fg: #1a1a2e;
  --coral: #FF6B35;
  --coral-dark: #e5531e;
  --teal: #00C9A7;
  --teal-dark: #00a88a;
  --amber: #FFC857;
  --violet: #7B61FF;
  --sage: #8BC34A;
  --surface: #ffffff;
  --muted: #6b6b80;
  --border: rgba(26,26,46,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--coral);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── HERO ── */
.hero {
  padding: 80px 32px 60px;
  max-width: 1160px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,201,167,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.65;
}

/* Court Grid (CSS illustration) */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.court-grid {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 32px rgba(255,107,53,0.12), 0 1px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.court-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 4px;
}
.court-cell {
  background: var(--coral);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.game-card .game-icon svg { display: block; }

.relay-track {
  margin-top: 4px;
}
.relay-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.relay-lane {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lane-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,201,167,0.25);
  border: 2px solid var(--teal);
}
.lane-marker:first-child {
  background: var(--teal);
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── SHARED SECTION STYLES ── */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,201,167,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-top: 16px;
  line-height: 1.65;
}

/* ── THE GAMES ── */
.the-games {
  padding: 80px 0;
  background: var(--surface);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.game-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}
.game-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.game-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--coral);
}
.game-relay .game-icon { color: var(--teal); }
.game-scavenger .game-icon { color: var(--violet); }
.game-obstacle .game-icon { color: var(--amber); }

/* ── THEMES ── */
.themes {
  padding: 80px 0;
}
.themes .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tag {
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: all 0.15s ease;
}
.tag:hover {
  background: var(--coral);
  color: white;
  border-color: var(--coral);
}
.theme-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.theme-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px 16px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-card span { font-family: 'Fredoka', sans-serif; font-size: 13px; font-weight: 600; }
.tc-pirate { background: #FFF0E6; color: var(--coral-dark); }
.tc-pirate .theme-card-icon { background: rgba(255,107,53,0.15); color: var(--coral); }
.tc-space { background: #F0F3FF; color: #3B49DF; }
.tc-space .theme-card-icon { background: rgba(59,73,223,0.1); color: #3B49DF; }
.tc-jungle { background: #F0FFE6; color: #5C8A20; }
.tc-jungle .theme-card-icon { background: rgba(92,138,32,0.12); color: #5C8A20; }
.tc-unicorn { background: #FFF0F8; color: #C850C0; }
.tc-unicorn .theme-card-icon { background: rgba(200,80,192,0.1); color: #C850C0; }
.tc-knight { background: #F5F5F5; color: #555; }
.tc-knight .theme-card-icon { background: rgba(85,85,85,0.08); color: #555; }
.tc-ocean { background: #E6FAFB; color: var(--teal-dark); }
.tc-ocean .theme-card-icon { background: rgba(0,168,138,0.12); color: var(--teal-dark); }

/* ── EXPERIENCE PACK ── */
.xp-pack {
  padding: 80px 0;
  background: var(--surface);
}
.xp-steps {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.xp-step {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.xp-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--coral);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,107,53,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xp-content h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.xp-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.xp-arrow {
  color: var(--border);
  flex-shrink: 0;
}
.xp-upgrades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.upgrade-card {
  background: var(--bg);
  border-radius: 14px;
  padding: 24px 20px;
  border: 1.5px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease;
}
.upgrade-card:hover { transform: translateY(-2px); }
.upgrade-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,107,53,0.1);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.upgrade-card h5 {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.upgrade-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── CLOSING ── */
.closing {
  padding: 100px 32px;
  text-align: center;
  background: linear-gradient(160deg, #FFF0E6 0%, var(--bg) 100%);
}
.closing-headline {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.closing-sub {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  color: var(--coral);
  font-weight: 500;
  margin-bottom: 12px;
}
.closing-detail {
  font-size: 15px;
  color: var(--muted);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.6);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--coral);
  display: block;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 14px;
}
.footer-meta {
  font-size: 13px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .themes .section-inner { grid-template-columns: 1fr; }
  .xp-upgrades { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .court-grid { padding: 20px; }
  .games-grid { grid-template-columns: 1fr; }
  .xp-steps { flex-direction: column; align-items: flex-start; }
  .xp-arrow { transform: rotate(90deg); }
  .xp-upgrades { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .section-inner { padding: 0 20px; }
}