@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF;
}

:root {
  --bg: #fbfaff;
  --bg-alt: #f2efff;
  --surface: #ffffff;
  --ink: #1f1d3a;
  --muted: #5d5a7a;
  --line: #e4e0f5;
  --brand: #5b3df5;
  --brand-2: #b14cff;
  --brand-ink: #ffffff;
  --accent: #ffd43b;
  --free: #12b886;
  --soon: #f08c00;
  --shadow: 0 10px 30px rgba(49, 31, 140, .08);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14122a;
    --bg-alt: #1b1838;
    --surface: #221f45;
    --ink: #f1efff;
    --muted: #b3aed6;
    --line: #34305f;
    --brand: #8c74ff;
    --brand-2: #c77dff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6;
}
h1, h2, h3, .brand, .btn, .eyebrow, .badge { font-family: "Fredoka", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.4rem; font-weight: 500; }
.brand b { color: var(--brand); font-weight: 700; }
.brand.small { font-size: 1.1rem; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
@media (max-width: 720px) { .nav { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 1.05rem; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(91, 61, 245, .3); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 64px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; color: var(--brand); margin-bottom: .6em; }
.hl { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 500; }
.hero-art { position: relative; height: 340px; }
.bubble {
  position: absolute; display: grid; place-items: center; border-radius: 50%;
  font-family: "Fredoka", sans-serif; font-weight: 700; color: #fff; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.b1 { width: 140px; height: 140px; font-size: 64px; background: #1c7ed6; left: 6%; top: 18%; }
.b2 { width: 120px; height: 120px; font-size: 56px; background: #e03131; right: 8%; top: 4%; animation-delay: -2s; }
.b3 { width: 96px; height: 96px; font-size: 48px; background: var(--accent); color: #7a4e00; right: 18%; bottom: 6%; animation-delay: -4s; }
.b4 { width: 80px; height: 80px; font-size: 36px; background: var(--free); left: 34%; bottom: 0; animation-delay: -1s; }
.b5 { width: 70px; height: 70px; font-size: 30px; background: var(--brand-2); left: 46%; top: 0; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } .btn:hover { transform: none; } }
@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 180px; order: -1; }
  .b1 { width: 90px; height: 90px; font-size: 40px; }
  .b2 { width: 80px; height: 80px; font-size: 36px; }
  .b3 { width: 64px; height: 64px; font-size: 30px; }
  .b4 { width: 56px; height: 56px; font-size: 26px; }
  .b5 { width: 50px; height: 50px; font-size: 22px; }
}

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.story { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; gap: 8px; } .section { padding: 52px 0; } }
.story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.story-stats div { background: var(--bg-alt); border-radius: 16px; padding: 16px; }
.story-stats strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.8rem; color: var(--brand); }
.story-stats span { font-size: .9rem; color: var(--muted); }
@media (max-width: 520px) { .story-stats { grid-template-columns: 1fr; } }

/* game cards */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 360px) { .game-grid { grid-template-columns: 1fr; } }
.game-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.game-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.game-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; object-fit: cover; }
.game-title { min-width: 0; }
.game-title h3 { margin: 0; }
.game-subject { margin: 0; color: var(--muted); font-size: .92rem; }
.badge { margin-left: auto; align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--free) 16%, transparent); color: var(--free); }
.game-tagline { flex: 0; }
.tags { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.game-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; margin: 0 0 18px; flex: 1; align-content: start; }
.game-meta dt { color: var(--muted); }
.game-meta dd { margin: 0; }
.noscript-list { font-size: 1.1rem; }

/* bundles */
.soon { display: inline-block; vertical-align: middle; font-size: .9rem; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--soon) 18%, transparent); color: var(--soon); font-weight: 600; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.bundle-card { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; }
.bundle-icon { font-size: 2rem; margin-bottom: 8px; }
.bundle-card p { color: var(--muted); margin: 0; }

/* steps & faq */
.steps { max-width: 760px; padding-left: 1.3em; }
.steps li { margin-bottom: 10px; }
.faq details { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
