:root{--ink:#1b2550;--ink-soft:#3b4670;--sky:#dff1ff;--cream:#fff8ea;--blue:#1f6fc5;--orange:#b4530a;--purple:#6b3fb0;--coral:#b03a2e;--green:#22804a;--yellow:#ffd23f;--radius:22px;--shadow:0 6px 0 rgba(27,37,80,.12),0 10px 24px rgba(27,37,80,.10);
--font:ui-rounded,"SF Pro Rounded","Nunito","Varela Round","Arial Rounded MT Bold",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--ink);background:linear-gradient(180deg,#bfe6ff 0,#e6f5ff 260px,var(--cream) 700px) no-repeat,var(--cream);min-height:100vh;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
button{font-family:inherit;color:inherit}
:focus-visible{outline:4px solid #ff8a00;outline-offset:3px}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(16px,env(safe-area-inset-left));max-width:900px;margin:0 auto}
.logo{width:150px;height:auto;display:block}
.title-pill{background:#fff;border-radius:999px;padding:10px 16px;font-weight:900;box-shadow:var(--shadow);font-size:1rem;white-space:nowrap}
main{max-width:760px;margin:0 auto;padding:4px 12px 24px}
.card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 16px 22px;text-align:center;position:relative;overflow:hidden}
h1,h2#done-h{font-size:clamp(1.6rem,6vw,2.4rem);margin:.3em 0 .2em;line-height:1.1}
.lead{font-size:1.15rem;color:var(--ink-soft);margin:.2em 0 1em}
.credit{font-weight:800;color:var(--purple);margin:1.1em 0 0}
.fine{font-size:.9rem;color:var(--ink-soft)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:10px 24px;border:0;border-radius:999px;background:var(--yellow);color:var(--ink);font-weight:900;font-size:1.15rem;box-shadow:0 5px 0 #c99a00;cursor:pointer;touch-action:manipulation;transition:transform .08s}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #c99a00}
.btn-blue{background:var(--blue);color:#fff;box-shadow:0 5px 0 #124a87}
.btn-blue:active{box-shadow:0 2px 0 #124a87}
.modes{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.mode{flex-direction:column;min-width:180px;padding:14px 26px;gap:2px}
.mode .big{font-size:1.5rem}.mode .small{font-size:.95rem;font-weight:700;opacity:.9}
.pals{display:flex;justify-content:center;gap:14px;margin-top:4px}
.pal{width:clamp(96px,26vw,150px);aspect-ratio:1;object-fit:cover;border-radius:50%;border:5px solid #fff;box-shadow:0 0 0 4px var(--sky),var(--shadow);background:#fff}
.pal.bot{object-position:50% 20%}
/* start */
.hero-row{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 16px}
.hero-row .ob{width:52px;height:52px}
.c1{color:#ff8fa3}.c2{color:#7fd1ff}.c3{color:#9be38f}
.eq{font-size:2.2rem;font-weight:900;margin:0 6px;color:var(--ink-soft)}
/* play */
.topbar{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.icon-btn{width:48px;height:48px;border-radius:50%;border:0;background:var(--sky);font-size:1.6rem;font-weight:900;cursor:pointer;flex:none;touch-action:manipulation}
.dots{list-style:none;display:flex;gap:6px;justify-content:center;flex:1;margin:0;padding:0;flex-wrap:wrap}
.dots li{width:16px;height:16px;border-radius:50%;background:#e4e9f5;border:2px solid #c9d2ea}
.dots li.on{background:var(--yellow);border-color:#c99a00;transform:scale(1.2)}
.dots li.done{background:var(--green);border-color:#17633a}
.count{font-weight:900;color:var(--ink-soft);min-width:48px;flex:none}
.prompt{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:2px 0 8px}
.prompt-text{font-size:clamp(1.3rem,5.4vw,1.8rem);font-weight:900;margin:0;line-height:1.15}
.hear{min-height:46px;padding:6px 18px;font-size:1rem}
.stage{display:flex;justify-content:center;margin:4px auto 2px;min-height:90px}
.group{display:flex;flex-direction:column;align-items:center;gap:6px}
.grow{display:flex;gap:6px;justify-content:center}
.ob{display:block;width:100%;height:100%;overflow:visible}
.group.main{background:#f3f8ff;border:4px dashed #b9c8e8;border-radius:var(--radius);padding:10px 10px}
.group.main .item{--o:clamp(50px,14.4vw,76px);width:var(--o);height:var(--o);border:0;background:none;padding:3px;border-radius:16px;position:relative;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.group.main .item:active{transform:scale(.94)}
.item.counted{background:#fff4c2}
.item .badge{position:absolute;right:-4px;top:-6px;min-width:26px;height:26px;padding:0 4px;border-radius:13px;background:var(--purple);color:#fff;font-weight:900;font-size:1rem;line-height:26px;box-shadow:0 2px 0 rgba(27,37,80,.25)}
.item.pop{animation:pop .35s ease}
.tally{min-height:1.4em;margin:4px 0 0;font-weight:900;color:var(--purple);font-size:1.1rem}
.ask{margin:2px 0 8px;color:var(--ink-soft);font-weight:700;font-size:1.05rem}
.choices{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.choice{border:0;cursor:pointer;touch-action:manipulation;font-family:inherit;color:var(--ink);transition:opacity .25s,transform .08s;-webkit-user-select:none;user-select:none}
.choice:active{transform:translateY(3px)}
.ncard{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:18px;background:#fff;border:4px solid #c9d2ea;box-shadow:0 5px 0 rgba(27,37,80,.18)}
.ncard .num{font-size:2.6rem;font-weight:900;line-height:1}
.ncard.mini{width:64px;height:64px;box-shadow:none}.ncard.mini .num{font-size:2.2rem}
.choices.nums .ncard{width:clamp(70px,20vw,110px);min-height:clamp(84px,22vw,120px);padding:8px 4px}
.choices.nums .ncard:nth-child(4n+1){background:#ffe3ea}.choices.nums .ncard:nth-child(4n+2){background:#dcf3ff}.choices.nums .ncard:nth-child(4n+3){background:#fff5c4}.choices.nums .ncard:nth-child(4n+4){background:#e3f8de}
.ndots{display:block;line-height:0;max-width:80px}
.ndots i{display:inline-block;width:11px;height:11px;margin:2px;border-radius:50%;background:var(--purple)}
.ncard.target{min-width:120px;min-height:120px;padding:10px 18px;background:#fff5c4;border-color:#e0b400}
.ncard.target .num{font-size:4rem}
.ncard.target .ndots i{width:13px;height:13px}
.ncard.target.pulse{animation:pulse .9s ease 2}
@keyframes pulse{50%{transform:scale(1.1);box-shadow:0 0 0 8px #ffd23f88}}
.choices.groups{flex-direction:row}
.gcard{flex:1 1 0;min-width:0;max-width:230px;min-height:110px;padding:12px 8px;border-radius:18px;background:#fff;border:4px solid #c9d2ea;box-shadow:0 5px 0 rgba(27,37,80,.18);display:flex;align-items:center;justify-content:center}
.gcard:nth-child(3n+1){background:#fff0f4}.gcard:nth-child(3n+2){background:#eef9ff}.gcard:nth-child(3n+3){background:#f1fbef}
.group.small .grow{gap:3px}.group.small{gap:3px}
.group.small .item{display:block;width:clamp(22px,6.4vw,38px);height:clamp(22px,6.4vw,38px)}
.choice.nope{opacity:.35;animation:wiggle .5s ease;cursor:default}
.choice.right{border-color:var(--green);box-shadow:0 0 0 5px #9be38f,0 5px 0 rgba(27,37,80,.18);transform:scale(1.04)}
.q-done .group.main{border-style:solid;border-color:var(--green);background:#e9f8ee}
.oops{min-height:1.4em;margin:8px 0 0;font-weight:800;color:var(--orange);font-size:1.1rem}
@keyframes wiggle{0%,100%{translate:0}20%{translate:-8px}40%{translate:8px}60%{translate:-5px}80%{translate:5px}}
@keyframes pop{50%{transform:scale(1.18)}}
.after{margin-top:4px}
.praise{font-size:1.5rem;font-weight:900;color:var(--green);margin:.1em 0 .45em}
.next{animation:bob 1.2s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-4px)}}
/* celebrate */
.party .pal{animation:hop 1s ease-in-out infinite}
.party .bot{animation-delay:.5s}
@keyframes hop{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(-4deg)}}
.rewards{display:flex;gap:22px;justify-content:center;align-items:center;flex-wrap:wrap;margin:10px 0}
.reward{margin:0;font-weight:900}
.reward figcaption{margin-top:6px}
.sticker{width:140px;height:140px;filter:drop-shadow(0 6px 8px rgba(27,37,80,.2));animation:spinin .8s ease-out}
@keyframes spinin{from{transform:scale(.2) rotate(-200deg);opacity:0}}
.bucks{width:170px;height:92px;border-radius:12px;background:#d8f3dc;border:4px solid var(--green);box-shadow:inset 0 0 0 4px #fff,var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--green);animation:spinin .8s .2s ease-out both}
.bb-num{font-size:2.2rem;font-weight:900;line-height:1}.bb-word{font-size:.95rem;font-weight:900;letter-spacing:.08em}
.starline{display:flex;justify-content:center;gap:4px;margin:4px 0}
.starline .ob{width:34px;height:34px;animation:spinin .6s ease-out both}
.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;top:-20px;width:10px;height:16px;border-radius:3px;animation:fall linear forwards}
@keyframes fall{to{transform:translateY(900px) rotate(540deg)}}
.site-footer{text-align:center;color:var(--ink-soft);font-weight:700;padding:8px 16px 28px;font-size:.95rem}
@media (max-width:520px){
  .choices.groups{flex-direction:column;align-items:stretch;gap:10px}
  .gcard{flex:none;max-width:none;min-height:56px;padding:8px}
  .group.small .item{width:30px;height:30px}
}
@media (max-width:420px){.hear{min-height:42px;padding:4px 16px}.logo{width:120px}.title-pill{font-size:.9rem;padding:8px 12px}.card{padding:14px 10px 18px}.choices{gap:8px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.confetti{display:none}}
/* ready for botvilleusa.com: logo goes home, footer links back to the kids' pages */
.logo-link{display:inline-block;border-radius:14px}
.logo-link:focus-visible,.foot-links a:focus-visible{outline:4px solid #ff8a00;outline-offset:3px}
.foot-links{margin:.4em 0 0;font-weight:700}
.foot-links a{color:#1f6fc5;text-underline-offset:3px}
.sprite{position:absolute}
