:root {
  --sky: #17c3e8;
  --sky-dark: #0e93b3;
  --pink: #ef5fc4;
  --pink-dark: #c93fa0;
  --yellow: #ffdd3c;
  --yellow-dark: #e0a900;
  --green: #4cbb3f;
  --green-dark: #2f8a27;
  --brown: #8a5a2e;
  --cream: #fff8f0;
  --ink: #1c2e33;
  --ink-soft: #52646a;
  --line: #e3eef1;
  --card: #ffffff;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--pink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

img { max-width: 100%; display: block; }
a { color: var(--pink-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 40px 0 14px; }
h3 { font-size: 1.15rem; margin: 24px 0 10px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--sky), var(--pink));
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.site-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: .92; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }
.site-nav .play-btn {
  background: var(--yellow); color: var(--ink); padding: 8px 16px; border-radius: 999px;
  font-weight: 800;
}
.nav-toggle-input, .nav-toggle-btn { display: none; }

@media (max-width: 720px) {
  .nav-toggle-btn {
    display: block; background: none; border: none; color: #fff; font-size: 1.6rem;
    cursor: pointer; line-height: 1;
  }
  .site-nav {
    display: none; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 12px; padding-top: 12px;
  }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
}

/* Hero / Play area */
.hero { padding: 44px 0 10px; }
.hero .eyebrow {
  display: inline-block; background: var(--sky); color: #fff; font-weight: 700;
  font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 65ch; }

/* Homepage-only hero: uses the game's own cover art as a background */
.hero--game {
  position: relative;
  padding: 64px 0 52px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8,58,70,.45) 0%, rgba(8,46,56,.8) 70%, var(--cream) 100%),
    url('/images/sprinkle-cover.png') center 28% / cover no-repeat;
}
.hero--game .eyebrow { background: var(--yellow); color: var(--ink); }
.hero--game h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero--game .hero-lede { color: #fff; opacity: .96; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero--game .hero-lede strong { color: var(--yellow); }

.play-panel {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 12px 32px rgba(14,147,179,.22); margin: 20px 0 10px;
}
.game-frame-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0b2129;
}
.game-frame-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.play-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--ink-soft); font-size: .92rem; }

/* Sections */
section { margin-bottom: 8px; }
.section-pad { padding: 28px 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-top: 0; }

.step-list { counter-reset: step; list-style: none; padding-left: 0; }
.step-list li {
  counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 18px;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--sky-dark);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 30px; }
@media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.cta-card .emoji { font-size: 1.8rem; }
.cta-card h3 { color: var(--pink-dark); }

table { border-collapse: collapse; width: 100%; margin: 14px 0 22px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: #e6f9fd; }

details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px;
}
details summary { font-weight: 700; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.char-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.char-card .swatch {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; color: #fff;
}
.char-card h3 { margin: 6px 0 4px; font-size: 1rem; }
.char-card .tag { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin: 16px 0 0; }
.breadcrumbs a { color: var(--ink-soft); }

.callout {
  background: #e6f9fd; border-left: 4px solid var(--sky-dark); border-radius: 8px;
  padding: 14px 18px; margin: 18px 0;
}

.site-footer { background: #0a2c34; color: #cfe7ec; margin-top: 60px; padding: 46px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h2 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #9fc7ce; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid .brand { color: #fff; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .82rem; color: #85aab1; }
