/* Thinkle Tots website: www.thinkletots.com. Same colours and fonts as the app (src/styles.css). */
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url(fonts/baloo-2-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url(fonts/baloo-2-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 500; font-display: swap; src: url(fonts/nunito-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(fonts/nunito-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #E6F3F0; --card: #FFFFFF; --ink: #1E3240; --muted: #587080;
  --accent: #F2704E; --sun: #FFC23D; --sky: #3E95D8; --ok: #2FA36B; --line: #CFE3DE;
  --soft: #FFF6E0;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12212A; --card: #1B2F3B; --ink: #EAF3F5; --muted: #9DB3BE;
    --accent: #FF8A6A; --sun: #FFCF5C; --sky: #62AEEB; --ok: #4CC488; --line: #2A4352;
    --soft: #23384A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12212A; --card: #1B2F3B; --ink: #EAF3F5; --muted: #9DB3BE;
  --accent: #FF8A6A; --sun: #FFCF5C; --sky: #62AEEB; --ok: #4CC488; --line: #2A4352;
  --soft: #23384A; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-weight: 500; font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); font-weight: 700; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 36em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 10px; z-index: 10; }

/* Header */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.word { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1; }
.word span { color: var(--accent); }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.by { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; line-height: 1; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.top nav a:hover { color: var(--accent); }
@media (max-width: 700px) { .top nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-decoration: none;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.16);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,.16); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.16); }
.btn.small { font-size: 1rem; padding: 8px 18px; box-shadow: 0 4px 0 rgba(0,0,0,.16); }
.btn.ghost { background: var(--card); color: var(--ink); border: 3px solid var(--line); box-shadow: none; }
.play-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 12px;
  border-radius: 14px; background: #1E3240; color: #fff; border: 2px solid #fff3;
  line-height: 1.15; text-decoration: none;
}
.play-badge small { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.play-badge b { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.play-badge svg { width: 26px; height: 26px; flex: none; }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.2rem); }
.hero h1 .kw { display: block; font-size: .5em; color: var(--sky); margin-bottom: 6px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.tagline { font-family: var(--display); font-weight: 800; color: var(--ok); font-size: 1.25rem; margin-top: 10px; }
.hero .lead { margin: 10px 0 26px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .fine { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.mascot { position: relative; justify-self: center; width: min(380px, 100%); }
.mascot .tinku { width: 100%; border-radius: 26%; box-shadow: 0 18px 40px rgba(30,50,64,.18); animation: bob 3.2s ease-in-out infinite; }
.bubble {
  position: absolute; background: var(--card); color: var(--ink); border-radius: 18px; padding: 8px 14px;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(30,50,64,.14);
  border: 2px solid var(--line); white-space: nowrap;
}
.bubble.b1 { top: 6%; left: -10%; animation: bob 3.6s ease-in-out infinite .4s; }
.bubble.b2 { bottom: 12%; right: -8%; animation: bob 4s ease-in-out infinite .9s; }
.bubble.b3 { bottom: -4%; left: 4%; animation: bob 3.4s ease-in-out infinite 1.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .mascot .tinku, .bubble { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .mascot { width: min(280px, 80%); order: -1; }
  .bubble.b1 { left: -14%; } .bubble.b2 { right: -14%; }
}

/* Sections */
section { padding: 56px 0; }
.band { background: var(--card); border-block: 3px solid var(--line); }
.head { margin-bottom: 28px; }
.head h2 { margin: 6px 0 10px; }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .worlds { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.world {
  border-radius: 22px; padding: 16px; color: #fff; min-height: 140px;
  background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 6px 0 rgba(0,0,0,.14);
  display: flex; flex-direction: column; gap: 4px; transition: transform .15s;
}
.world:hover { transform: translateY(-4px) rotate(-1deg); }
.world .art { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: 2px; line-height: 1.2; white-space: nowrap; }
.world b { font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
.world small { font-size: .92rem; opacity: .95; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 3px solid var(--line); border-radius: 22px; padding: 20px; }
.band .card { background: var(--bg); }
.card .ico { font-size: 2rem; margin-bottom: 8px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 20px 20px 20px 72px; background: var(--card); border-radius: 22px; border: 3px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: #1E3240; font-family: var(--display); font-weight: 800; font-size: 1.3rem;
}
.step p { color: var(--muted); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.price { background: var(--bg); border: 3px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price.pick { border-color: var(--sun); background: var(--soft); }
.price .amt { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.price .amt small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.price .tag { align-self: flex-start; background: var(--sun); color: #1E3240; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: .85rem; }
.note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Hub */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.door {
  border-radius: 24px; padding: 22px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 3px solid var(--line); display: flex; flex-direction: column; gap: 8px;
}
a.door:hover { border-color: var(--accent); }
.door .ico { font-size: 2.2rem; }
.door p { color: var(--muted); font-weight: 500; }
.door .go { margin-top: auto; color: var(--accent); font-family: var(--display); font-weight: 800; }
.door .soon { margin-top: auto; color: var(--muted); font-weight: 700; font-size: .9rem; }

/* Name meaning */
.name-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.meaning { padding-top: 8px; }

/* Instagram */
.insta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.insta-card {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 3px solid var(--line);
}
.insta-card:hover { border-color: var(--accent); }
.insta-card .ig { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #FFC23D, #F2704E 50%, #C13584); }
.insta-card .ig svg { width: 34px; height: 34px; }
.insta-card b { font-family: var(--display); font-size: 1.3rem; display: block; }
.insta-card small { color: var(--muted); }
.insta-card .btn { margin-left: auto; }
.insta-card .ig.yt { background: #FF0000; }
.insta-card .ig.fb { background: #1877F2; }
.socials { display: grid; gap: 12px; }
.band .insta-card { background: var(--bg); }
@media (max-width: 760px) { .insta { grid-template-columns: 1fr; } }


/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.person { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 3px solid var(--line); border-radius: 22px; padding: 20px; }
.person .face {
  flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.4rem; background: var(--c); box-shadow: 0 4px 0 rgba(0,0,0,.14); overflow: hidden;
}
.person .face img { width: 100%; height: 100%; }
.person .role { color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.person p:not(.role) { color: var(--muted); }
.ig-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .92rem; color: #C13584; text-decoration: none; }
.ig-link:hover { text-decoration: underline; }
.ig-link svg { width: 16px; height: 16px; flex: none; }
#team .story { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
#team .family { width: 100%; max-width: 320px; height: auto; justify-self: center; filter: drop-shadow(0 10px 18px rgba(30,50,64,.18)); }
#team .story-text { max-width: none; font-size: 1.15rem; }
@media (max-width: 760px) { #team .story { grid-template-columns: 1fr; } #team .family { max-width: 240px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 780px; }
.faq details { background: var(--card); border: 3px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.faq summary { font-family: var(--display); font-weight: 800; font-size: 1.15rem; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Footer */
footer { padding: 40px 0 56px; border-top: 3px solid var(--line); margin-top: 24px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
footer ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .social a { display: inline-flex; align-items: center; gap: 8px; }
footer .social svg { flex: none; }
footer .small { color: var(--muted); font-size: .9rem; margin-top: 10px; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }

/* Policy pages */
.doc { background: var(--card); border: 3px solid var(--line); border-radius: 24px; padding: clamp(20px, 5vw, 44px); max-width: 820px; margin: 12px auto 0; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.6rem; margin: 32px 0 10px; }
.doc h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; }
.doc li { margin-bottom: 4px; }
.doc .meta { color: var(--muted); }
.doc .tablebox { overflow-x: auto; margin: 0 0 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.doc th { font-family: var(--display); font-weight: 800; }
.doc .short { background: var(--soft); border-radius: 18px; padding: 14px 18px 4px; }

/* ---------- 2026-10-31 refresh: chips, counters, live games, skills, final CTA ---------- */
.hero { background: radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--sun) 28%, transparent), transparent 70%); }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .92rem; }
.head.center { text-align: center; } .head.center .lead { margin-inline: auto; }

/* Reveal on scroll (only when JS runs, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .stats .reveal:nth-child(2) { transition-delay: .08s } .js .stats .reveal:nth-child(3) { transition-delay: .16s }
.js .stats .reveal:nth-child(4) { transition-delay: .24s } .js .stats .reveal:nth-child(5) { transition-delay: .32s }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Counters */
.stats { padding: 0 0 48px; }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: linear-gradient(135deg, #2366B8, #5B3DB8); border-radius: 28px; padding: 26px 22px; box-shadow: 0 10px 0 rgba(0,0,0,.12); color: #fff; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1; color: #FFD66B; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-weight: 700; font-size: .95rem; opacity: .95; }
@media (max-width: 820px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } .stat:last-child { grid-column: 1 / -1; } }

/* Live games */
.play { background: linear-gradient(180deg, var(--card), var(--soft)); }
.arcade { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.tabs { display: grid; gap: 10px; }
.tab { display: flex; align-items: center; gap: 10px; text-align: left; font: 800 1.08rem var(--display); color: var(--ink);
  background: var(--bg); border: 3px solid var(--line); border-radius: 18px; padding: 10px 14px; cursor: pointer; transition: transform .12s, border-color .12s; }
.tab span { font-size: 1.5rem; }
.tab:hover { transform: translateX(3px); border-color: var(--sky); }
.tab[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.board { background: var(--bg); border: 3px solid var(--line); border-radius: 28px; padding: 18px; min-height: 460px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.board-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.game-hint { color: var(--muted); font-size: .95rem; }
.board-tools { display: flex; gap: 8px; align-items: center; flex: none; }
.star-total { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font: 800 1.05rem var(--display); }
.mute { background: var(--card); border: 2px solid var(--line); border-radius: 50%; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 8px; border-radius: 99px; background: var(--line); transition: background .3s; }
.dots i.on { background: var(--ok); }
.stage { flex: 1; display: grid; place-items: center; position: relative; min-height: 300px; }
.coach { display: flex; align-items: center; gap: 10px; }
.coach img { width: 56px; height: 56px; border-radius: 30%; flex: none; }
.tinku-say { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 14px; font: 800 1.05rem var(--display); position: relative; }
.tinku-say.happy { border-color: var(--ok); } .tinku-say.think { border-color: var(--sun); }
.tinku-say.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.play-more { text-align: center; margin-top: 20px; font-size: 1.08rem; }
@media (max-width: 820px) {
  .arcade { grid-template-columns: 1fr; }
  .tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tab { padding: 8px 12px; font-size: 1rem; } .tab span { font-size: 1.2rem; }
  .board { padding: 14px; min-height: 420px; }
}

/* Memory Match */
.mm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(100%, 460px); }
.mm-card { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; position: relative; border-radius: 16px; background: none; perspective: 600px; }
.mm-card span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; backface-visibility: hidden; transition: transform .35s; font-size: clamp(1.8rem, 7vw, 2.6rem); }
.mm-card .back { background: linear-gradient(140deg, #7B5CD6, #3E95D8); color: #fff; font: 800 1.8rem var(--display); box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.mm-card .front { background: var(--card); border: 3px solid var(--line); transform: rotateY(180deg); }
.mm-card.up .back { transform: rotateY(180deg); } .mm-card.up .front { transform: rotateY(0); }
.mm-card.done .front { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--card)); }

/* Question games */
.q { display: grid; gap: 22px; justify-items: center; width: 100%; }
.q-prompt { text-align: center; }
.seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: clamp(1.7rem, 6vw, 2.4rem); }
.seq span { background: var(--card); border: 2px solid var(--line); border-radius: 14px; width: 1.7em; height: 1.7em; display: grid; place-items: center; }
.seq .ask, .sum .ask { color: var(--accent); font: 800 1em var(--display); border-style: dashed; border-color: var(--accent); }
.q-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.opt { min-width: 76px; height: 76px; padding: 0 12px; border-radius: 20px; border: 3px solid var(--line); background: var(--card); color: var(--ink);
  font: 800 2rem var(--display); cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.12); transition: transform .12s; }
.opt:hover { transform: translateY(-3px); }
.q-opts.big .opt { font-size: 2.4rem; min-width: 84px; height: 84px; }
.opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, var(--card)); }
.opt.wrong { border-color: var(--accent); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sum { display: flex; align-items: flex-end; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 2.4rem; }
.sum > div { display: grid; justify-items: center; gap: 4px; }
.sum .fr { font-size: 1.3rem; max-width: 7.5em; letter-spacing: 1px; line-height: 1.3; text-align: center; }
.sum b { font-family: var(--display); }
.sum .op { color: var(--muted); }
.sum .ask { border: 3px dashed var(--accent); border-radius: 14px; padding: 0 14px; }
.balloons .opt { background: none; border: 0; box-shadow: none; height: auto; min-width: 0; padding: 0; }
.balloon { display: grid; place-items: center; width: 72px; height: 86px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 30% 28%, #fff8, transparent 30%), var(--c);
  color: #fff; font: 800 1.9rem var(--display); position: relative; animation: float 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); text-shadow: 0 2px 0 #0003; }
.balloon::after { content: ""; position: absolute; bottom: -22px; left: 50%; width: 2px; height: 22px; background: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.balloons .opt.right .balloon { animation: popb .35s forwards; }
@keyframes popb { to { transform: scale(1.5); opacity: 0; } }
.balloons .opt.wrong { animation: shake .4s; }
.step-say { font: 800 1.2rem var(--display); color: var(--muted); }
.ladder { display: flex; align-items: flex-end; gap: 6px; min-height: 100px; }
.rung { width: 56px; height: calc(30px + var(--h)); border-radius: 12px 12px 6px 6px; background: var(--line); display: grid; place-items: start center; padding-top: 6px; font: 800 1.3rem var(--display); color: #fff; transition: background .3s; }
.rung.on { background: linear-gradient(180deg, #F28C28, #D9661A); }
.tile:disabled { opacity: .45; cursor: default; transform: none; }
.spark { position: absolute; pointer-events: none; font-size: 1.3rem; animation: spark .7s ease-out forwards; z-index: 3; }
@keyframes spark { from { transform: translate(-50%, -50%) scale(.6); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; } }

/* Win panel */
.win { text-align: center; display: grid; gap: 12px; justify-items: center; max-width: 440px; }
.win-stars { display: flex; gap: 8px; font-size: 3.4rem; line-height: 1; }
.win-stars span { color: var(--line); }
.win-stars span.got { color: var(--sun); animation: starIn .5s both; animation-delay: var(--d); text-shadow: 0 4px 0 rgba(0,0,0,.12); }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.win p { color: var(--muted); }
.win-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.btn.ghost.small { border-width: 2px; }
@media (prefers-reduced-motion: reduce) { .balloon, .win-stars span.got, .tinku-say.pop { animation: none; } }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill { background: var(--card); border: 3px solid var(--line); border-top: 8px solid var(--c); border-radius: 22px; padding: 20px; }
.skill .ico { font-size: 2rem; margin-bottom: 6px; }
.skill h3 { margin-bottom: 6px; }
.skill p { color: var(--muted); }
@media (max-width: 860px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } }

/* Worlds: 12 now, with game counts */
.worlds { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1060px) { .worlds { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .worlds { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
.world .n { align-self: flex-start; font-style: normal; font-weight: 700; font-size: .78rem; background: #fff3; border-radius: 99px; padding: 1px 9px; margin-top: auto; }

/* Price buttons */
.price .btn { margin-top: auto; }
.price .per { color: var(--ok); font-weight: 700; }

/* Final call to action */
.final-cta .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; color: #fff;
  background: linear-gradient(135deg, #F2704E, #D93E6B); border-radius: 30px; padding: 26px 30px; box-shadow: 0 10px 0 rgba(0,0,0,.12); }
.final-cta img { width: 120px; height: 120px; border-radius: 28%; background: #fff; }
.final-cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 6px; }
.final-cta .btn { background: #fff; color: #D93E6B; }
@media (max-width: 860px) { .final-cta .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; } .final-cta .ctas { justify-content: center; } }

/* Sticky phone bar */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; display: none; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 10px 30px rgba(30,50,64,.22);
  transform: translateY(150%); transition: transform .3s; font-size: .92rem; }
.sticky-cta.show { transform: none; }
@media (max-width: 700px) { .sticky-cta { display: flex; } footer { padding-bottom: 96px; } }

/* ---------- Hero fits one screen, store badges (v12) ---------- */
.hero { padding: 4px 0 24px; }
@media (min-width: 821px) {
  .hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; max-height: 760px; }
  .hero .wrap { gap: 32px; }
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); }
.hero h1 .kw { font-size: .48em; margin-bottom: 2px; }
.tagline { margin-top: 6px; font-size: 1.15rem; }
.hero .lead { margin: 8px 0 14px; font-size: 1.05rem; }
.chips { margin-bottom: 16px; }
.chips li { font-size: .88rem; padding: 3px 11px; }
.mascot { width: min(340px, 100%); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stores .play-badge { padding: 6px 14px 6px 10px; }
.stores .play-badge b { font-size: 1.05rem; }
.stores .play-badge svg { width: 22px; height: 22px; }
.ctas.stack { flex-direction: column; align-items: stretch; }
.ctas.stack .stores { margin-top: 0; justify-content: center; }
.win .win-or { font-size: .92rem; }
@media (max-width: 820px) {
  .hero .wrap { gap: 18px; }
  .mascot { width: min(190px, 52%); }
  .bubble { font-size: .9rem; padding: 5px 10px; }
  .hero .lead { font-size: 1rem; }
  .stores { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .mascot { width: min(150px, 42%); }
  .bubble.b3 { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .hero .lead { font-size: .97rem; line-height: 1.45; margin-bottom: 12px; }
  .chips { gap: 6px; margin-bottom: 14px; } .chips li { font-size: .8rem; padding: 2px 9px; }
  .hero .ctas { flex-wrap: nowrap; gap: 10px; }
  .hero .ctas .btn { font-size: 1.02rem; padding: 10px 16px; flex: 1 1 auto; }
  .stores { margin-top: 12px; gap: 8px; }
  .stores .play-badge { padding: 5px 10px 5px 8px; }
  .stores .play-badge b { font-size: .95rem; }
}
.sticky-cta .btn { white-space: nowrap; flex: none; }
.sticky-cta span { line-height: 1.25; }

/* ---------- Demo games v3: Where's the Ball?, Car Race, Colour Mix ---------- */
.cups { position: relative; width: min(100%, 420px); height: 200px; --w: 33.333%; }
.cup { position: absolute; bottom: 10px; left: calc(var(--x) * var(--w)); width: var(--w); height: 170px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: left var(--speed, 450ms) ease-in-out, transform var(--speed, 450ms) ease-in-out; }
.cup.hop { transform: translateY(-14px); } .cup.dip { transform: translateY(8px); }
.cup-body { position: absolute; left: 12%; right: 12%; bottom: 0; height: 120px; z-index: 2; transition: transform .35s ease;
  background: linear-gradient(90deg, #D9661A, #F28C28 40%, #FFB259 60%, #D9661A); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  border-radius: 10px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)); }
.cup-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 10px; background: #fff6; }
.cup.up .cup-body { transform: translateY(-80px); }
.ball { position: absolute; left: 50%; bottom: 4px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #F0627A 13% 60%, #C2185B); box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.cups::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border-radius: 99px; background: var(--line); }

.race { display: grid; gap: 14px; justify-items: center; width: 100%; }
.clue { font: 800 1.25rem var(--display); text-align: center; }
.clue b { color: var(--accent); }
.road { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 420px); height: 270px; border-radius: 22px; overflow: hidden;
  background: #3B4A55; box-shadow: inset 0 0 0 6px #2E3A43; }
.lane { position: relative; border: 0; background: none; cursor: pointer; padding: 12px 0 0; display: flex; justify-content: center; align-items: flex-start; }
.lane + .lane { background-image: linear-gradient(#fff 50%, transparent 0); background-size: 4px 32px; background-repeat: repeat-y; background-position: left top; animation: road 0.6s linear infinite; }
@keyframes road { to { background-position: left 32px; } }
.sign { display: grid; place-items: center; min-width: 74px; height: 58px; padding: 0 10px; border-radius: 14px; background: var(--card); color: var(--ink);
  font: 800 1.8rem var(--display); box-shadow: 0 5px 0 rgba(0,0,0,.25); border: 3px solid var(--sun); }
.lane:hover .sign { transform: translateY(-2px); }
.lane.right .sign { background: var(--ok); color: #fff; border-color: #fff; }
.lane.wrong .sign { animation: shake .4s; border-color: var(--accent); }
.car { position: absolute; bottom: 14px; left: calc(var(--lane) * 33.333%); width: 33.333%; display: grid; place-items: center; transition: left .35s ease, bottom .7s ease-in; pointer-events: none; }
.car span { display: block; font-size: 3.4rem; transform: rotate(90deg); filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); }
.car.zoom { bottom: 120%; }
.car.bump span { animation: shake .4s; }

.mix { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.paint { display: grid; justify-items: center; gap: 4px; }
.paint i { display: block; width: 70px; height: 70px; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; background: var(--c); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15), 0 0 0 3px var(--line); }
.paint i.ask { background: var(--card); border: 3px dashed var(--accent); box-shadow: none; display: grid; place-items: center; font: 800 2rem var(--display); color: var(--accent); font-style: normal; }
.paint small { font-weight: 700; color: var(--muted); }
.mix .op { font: 800 2rem var(--display); color: var(--muted); }
.paints .opt { height: auto; padding: 10px 12px 8px; }
.paints .opt .paint i { width: 60px; height: 60px; }
@media (prefers-reduced-motion: reduce) { .lane + .lane { animation: none; } .cup, .car { transition-duration: .01s; } }
@media (max-width: 520px) { .mix { gap: 6px; } .paint i { width: 54px; height: 54px; } .mix .op { font-size: 1.5rem; } .road { height: 240px; } .sign { min-width: 60px; font-size: 1.5rem; } }
.car span { font-size: 0; transform: none; }
.paints .opt small { font-size: .95rem; color: var(--ink); }
/* Right answer drops into the "?" slot before the next round */
.filled { animation: fillPop .45s ease; }
.sum .filled { color: var(--ok); border: 3px solid var(--ok); border-radius: 14px; padding: 0 14px; }
.seq .filled { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, var(--card)); }
@keyframes fillPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .filled { animation: none; } }
footer .wrap.credit { display: block; margin-top: 22px; padding-top: 14px; border-top: 2px dashed var(--line); text-align: center; }
footer .wrap.credit .small { margin: 0; }
footer .wrap.credit a { color: var(--accent); font-weight: 800; }

/* ---------- Scroll up / down buttons (v16) ---------- */
.scroll-btns { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 25; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.scroll-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(30,50,64,.18); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.scroll-btn.on { opacity: 1; transform: none; pointer-events: auto; }
.scroll-btn:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 700px) { .scroll-btns { bottom: calc(84px + env(safe-area-inset-bottom)); right: 12px; } }

/* ---------- Sticky see-through menu bar, white Play game text (v18) ---------- */
html { scroll-padding-top: 84px; }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top nav a.btn, .top nav a.btn:hover, .top nav a.btn:focus-visible { color: #fff; }

/* ---------- Playful extras (v19): progress bar, menu highlight, wand cursor, sparkle trail, floaties ---------- */
.top .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--sun), var(--ok), var(--sky)); border-radius: 0 4px 4px 0; pointer-events: none; }
.top nav a:not(.btn) { position: relative; }
.top nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--accent);
  transform: scaleX(0); transition: transform .25s; }
.top nav a.here:not(.btn) { color: var(--accent); }
.top nav a.here:not(.btn)::after, .top nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Magic wand cursor: desktop mouse only (fun.js adds .wand) */
.wand, .wand body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 3v22l6-5.6 4.3 9.3 4.4-2-4.2-9.1H23Z' fill='%23F2704E' stroke='%231E3240' stroke-width='3.2' stroke-linejoin='round'/%3E%3Cpath d='M4 3v22l6-5.6 4.3 9.3 4.4-2-4.2-9.1H23Z' fill='%23F2704E' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M25 2.5l1.3 2.7 2.9.4-2.1 2 .5 2.9-2.6-1.4-2.6 1.4.5-2.9-2.1-2 2.9-.4Z' fill='%23FFC23D' stroke='%231E3240' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto; }
.wand a, .wand button, .wand summary, .wand label, .wand [role="button"], .wand .tab, .wand .lane, .wand .cup, .wand .tile, .wand .mm-card { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M12 12l17 17' stroke='%231E3240' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M12 12l17 17' stroke='%233E95D8' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M19 19l3 3M24.5 24.5l2 2' stroke='%23fff' stroke-width='3.2' stroke-linecap='butt'/%3E%3Cpath d='M9 1.5l2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L1.8 6.8l5-.7Z' fill='%23FFC23D' stroke='%231E3240' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 9 8, pointer; }
.wand input, .wand textarea { cursor: text; }
.sparks { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.spark { position: absolute; font: 800 18px/1 var(--display); text-shadow: 0 2px 0 rgba(30,50,64,.18); will-change: transform, opacity;
  animation: spark-pop .9s cubic-bezier(.2,.7,.3,1) forwards; }
.spark.big { font-size: 22px; animation-duration: .75s; }
@keyframes spark-pop {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)) scale(1.1); opacity: 0; }
}
.mascot { transition: transform .25s ease-out; transform-style: preserve-3d; }

/* Button shine on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: -2px auto -2px -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .55s ease; }
.btn.ghost::after { background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--sun) 45%, transparent), transparent); }
.btn:hover::after { left: 120%; }
.btn.pulse { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 6px 0 rgba(0,0,0,.16), 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 6px 0 rgba(0,0,0,.16), 0 0 0 16px transparent; } }

/* Floating letters and numbers behind the hero */
.hero { position: relative; isolation: isolate; }
.floaties { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.floaties span { position: absolute; left: var(--x); top: var(--y); font: 800 var(--s, 2.4rem)/1 var(--display); color: var(--c); opacity: .18;
  animation: drift var(--t, 9s) ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes drift { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-26px) rotate(10deg); } }
@media (max-width: 820px) { .floaties span:nth-child(n+7) { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .floaties span, .btn.pulse { animation: none; }
  .btn::after { display: none; }
  .mascot { transition: none; }
}

/* Welcome video */
.video-card { margin: 0 auto; max-width: 860px; border-radius: 22px; overflow: hidden; border: 3px solid var(--line); box-shadow: 0 10px 30px #0002; background: #000; }
.video-card .yt-lite, .video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.yt-lite { position: relative; padding: 0; cursor: pointer; background: #000; }
.yt-lite img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .2s; }
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play { transform: scale(1.12); }
.video-card figcaption { background: var(--card); text-align: center; padding: 8px; font-weight: 700; }
