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

:root {
  --ground: #F4EFE6;
  --ground-deep: #EDE5D8;
  --surface: #FFFFFF;
  --surface-soft: #FBF7F0;
  --stroke: #E4D9C9;
  --stroke-soft: #EFE7DA;
  --ink: #3B2F26;
  --ink-soft: #5C4B3D;
  --muted: #8B7C6C;
  --dim: #B6A794;

  --accent: #F2A03C;
  --accent-deep: #D9871F;
  --accent-wash: #FDF1E0;

  --teal: #23B0A5;
  --pink: #E8709B;
  --purple: #9B5FD0;
  --blue: #3F6FD8;
  --green: #3E9B57;
  --coral: #E2593F;

  --rail: #E2D6C5;
  --rail-core: #FBF6EE;

  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 14px;
  --shell: 1120px;
  --lift: 0 18px 40px rgba(59, 47, 38, 0.10);
  --lift-sm: 0 8px 20px rgba(59, 47, 38, 0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

a { color: var(--accent-deep); text-underline-offset: 3px; }

.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

/* ── Nav ─────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.nav .inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav .brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--lift-sm); }
.nav .brand span {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.22rem; letter-spacing: 0.06em;
}
.nav .links { display: flex; gap: 26px; align-items: center; }
.nav .links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.16s ease;
}
.nav .links a:hover { color: var(--ink); }

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 0 var(--accent-deep); }
.btn-primary:hover { box-shadow: 0 10px 0 var(--accent-deep); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--accent-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--stroke); box-shadow: var(--lift-sm); }

.btn-play {
  background: var(--ink); color: #FFF6EA; padding: 11px 26px 11px 22px;
  box-shadow: 0 10px 24px rgba(59, 47, 38, 0.26);
}
.btn-play svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.btn-play .label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.btn-play .label small {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.72;
}
.btn-play .label strong { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.12rem; }
.btn-play:hover { box-shadow: 0 14px 28px rgba(59, 47, 38, 0.3); }

/* ── Hero ────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  padding: 78px 0 72px;
  background:
    radial-gradient(1100px 520px at 76% 10%, #FCEFDC 0%, rgba(252, 239, 220, 0) 62%),
    var(--ground);
}
.hero .inner {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 60px; align-items: center;
}
.hero .icon {
  width: 96px; height: 96px; border-radius: 24px; display: block; margin-bottom: 26px;
  box-shadow: 0 16px 36px rgba(59, 47, 38, 0.22);
}
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 4.2rem); font-weight: 800;
  letter-spacing: 0.02em; margin-bottom: 10px;
}
.hero .tagline {
  font-family: 'Baloo 2', sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600; color: var(--accent-deep); margin-bottom: 18px;
}
.hero .lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 48ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.stage {
  background: var(--surface-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--lift);
  max-width: 400px; margin-left: auto; width: 100%;
}
.stage .frame {
  background: var(--ground); border-radius: 22px; padding: 8px;
  border: 1px solid var(--stroke-soft);
}
.stage svg { width: 100%; height: auto; display: block; }
.stage .caption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 8px 4px; font-size: 0.82rem; color: var(--muted);
}
.stage .caption strong { font-family: 'Baloo 2', sans-serif; color: var(--ink); font-size: 0.95rem; }

/* ── Sections ────────────────────────────────────── */

section { padding: 76px 0; }
section.tint {
  background: var(--surface-soft);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
section.ink { background: var(--ink); color: #EFE4D6; border: 0; }
section.ink h2, section.ink h3 { color: #FFF8EE; }
section.ink .section-head p { color: #C9B9A6; }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ── Rules ───────────────────────────────────────── */

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rule {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--lift-sm);
}
.rule .step {
  width: 46px; height: 46px; border-radius: 15px; background: var(--accent-wash);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--accent-deep);
}
.rule h3 { font-size: 1.22rem; margin-bottom: 8px; }
.rule p { color: var(--muted); font-size: 0.96rem; }

/* ── Board gallery ───────────────────────────────── */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.board-card {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--lift-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.board-card .art {
  background: var(--surface-soft); border: 1px solid var(--stroke-soft);
  border-radius: 16px; padding: 10px; margin-bottom: 14px;
}
.board-card svg { width: 100%; height: auto; display: block; }
.board-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.board-card h3 { font-size: 1.05rem; text-transform: capitalize; }
.board-card .lvl {
  font-family: 'Baloo 2', sans-serif; font-size: 0.76rem; font-weight: 700;
  color: var(--accent-deep); background: var(--accent-wash);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.board-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; margin-top: 6px; }

/* ── Modes ───────────────────────────────────────── */

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: var(--radius); padding: 24px 22px;
}
.mode .tag {
  display: inline-block; font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(242, 160, 60, 0.18); color: #F7BE76;
}
.mode .tag.open { background: rgba(62, 155, 87, 0.2); color: #8FD3A3; }
.mode h3 { font-size: 1.18rem; margin-bottom: 6px; }
.mode p { color: #C9B9A6; font-size: 0.93rem; }

/* ── Feature split ───────────────────────────────── */

.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.panel {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--lift-sm);
}
.panel .glyph {
  width: 48px; height: 48px; border-radius: 15px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.panel .glyph svg { width: 24px; height: 24px; }
.panel h3 { font-size: 1.18rem; margin-bottom: 8px; }
.panel p { color: var(--muted); font-size: 0.96rem; }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.note {
  background: var(--surface-soft); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 20px 20px;
}
.note h4 { font-size: 1rem; margin-bottom: 4px; }
.note p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ── Fair play strip ─────────────────────────────── */

.promise {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  padding: 38px 40px; box-shadow: var(--lift); max-width: 880px; margin: 0 auto;
}
.promise h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.promise > p { color: var(--muted); margin-bottom: 26px; }
.promise ul { list-style: none; display: grid; gap: 14px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: 0.98rem; }
.promise li svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }

/* ── FAQ ─────────────────────────────────────────── */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 20px 26px; margin-bottom: 12px; box-shadow: var(--lift-sm);
}
.faq summary {
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 1.06rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
.faq p + p { margin-top: 8px; }

/* ── CTA ─────────────────────────────────────────── */

.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 28px; }
.cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────── */

.foot { background: var(--ink); color: #E9DDCE; padding: 52px 0 44px; }
.foot .inner { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.foot .top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-bottom: 26px;
  border-bottom: 1px solid rgba(233, 221, 206, 0.16);
}
.foot .mark { display: flex; align-items: center; gap: 12px; }
.foot .mark img { width: 34px; height: 34px; border-radius: 10px; }
.foot .mark span { font-family: 'Baloo 2', sans-serif; font-weight: 800; letter-spacing: 0.06em; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot .links a { color: #E9DDCE; text-decoration: none; font-size: 0.9rem; opacity: 0.8; }
.foot .links a:hover { opacity: 1; }
.foot .copy { font-size: 0.82rem; opacity: 0.55; padding-top: 22px; }

/* ── Legal pages ─────────────────────────────────── */

.legal { padding: 60px 0 86px; max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal .updated { color: var(--dim); font-size: 0.88rem; margin-bottom: 30px; }
.legal h2 {
  font-size: 1.2rem; margin-top: 38px; margin-bottom: 10px; color: var(--ink);
  padding-top: 14px; border-top: 1px solid var(--stroke);
}
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; font-size: 0.97rem; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 7px; }
.legal .lead {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 26px 28px; color: var(--ink); font-size: 1rem; box-shadow: var(--lift-sm);
}
.legal .lead p:last-child { margin-bottom: 0; }
.legal .callout {
  background: var(--accent-wash); border: 1px solid #F3DDBC; border-radius: var(--radius-sm);
  padding: 20px 24px; margin: 18px 0 20px;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 16px 0 20px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  overflow: hidden; font-size: 0.92rem;
}
.legal th, .legal td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--stroke-soft); }
.legal th { background: var(--surface-soft); font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--ink); }
.legal td { color: var(--ink-soft); vertical-align: top; }
.legal tr:last-child td { border-bottom: 0; }

.crumbs { padding-top: 34px; }
.crumbs a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.crumbs a:hover { color: var(--ink); }

/* ── Motion ──────────────────────────────────────── */

.ball-run { offset-rotate: 0deg; }

@media (max-width: 1000px) {
  .hero .inner { grid-template-columns: 1fr; gap: 44px; }
  .stage { margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav .links { gap: 16px; }
  .nav .links a { font-size: 0.84rem; }
  .nav .links a.hide-sm { display: none; }
  .rules, .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
  .promise { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .modes, .notes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ball-run { display: none; }
  .btn:hover, .board-card:hover { transform: none; }
}
