:root{--ink:#30274E;--purple:#6B4DC4;--turquoise:#23B7AC;--yellow:#FFBC54;--coral:#EF6C85;--pink:#FCE5EB;--cream:#FFFCF7;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:var(--ink);background:var(--cream);line-height:1.55}a{color:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:4px solid #FFBC54;outline-offset:4px}.skip{position:absolute;top:-90px;left:12px;background:white;padding:12px;z-index:10}.skip:focus{top:8px}.wrap{width:min(1100px,calc(100% - 40px));margin:auto}.site-header{background:#fff;box-shadow:0 2px 15px #6B4DC41A}.topbar{min-height:82px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{text-decoration:none;font-weight:950;font-size:1.6rem;letter-spacing:-1px;color:var(--purple)}.brand-small{font-size:.78rem;letter-spacing:0;display:block;line-height:1;color:#574778}.brand-star{display:inline-grid;place-items:center;width:41px;height:41px;border-radius:14px;background:#FFBC54;color:#6B4DC4;margin-right:9px;vertical-align:middle}.brand>span:last-child{display:inline-block;vertical-align:middle}.topbar nav{display:flex;gap:24px}.topbar nav a{text-decoration:none;font-weight:800}.topbar nav a:hover{text-decoration:underline}.hero{background:linear-gradient(120deg,#6B4DC4,#53349F);color:white;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;min-height:430px;align-items:center;gap:48px;padding-top:40px;padding-bottom:45px}.eyebrow{font-size:.8rem;font-weight:900;letter-spacing:.13em}.eyebrow.purple{color:#6B4DC4}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.5rem,5.4vw,4.6rem);line-height:1.1;letter-spacing:-.035em;margin:16px 0 22px}h1 em{font-style:normal;color:#FFDB92}h2{font-size:clamp(1.9rem,3.5vw,2.7rem);letter-spacing:-.025em;line-height:1.2;margin:9px 0 12px}.hero p{font-size:1.2rem;max-width:440px}.btn{font:inherit;font-weight:900;cursor:pointer;border:0;border-radius:100px;display:inline-flex;gap:12px;align-items:center;justify-content:center;text-decoration:none;padding:14px 27px;min-height:50px}.primary{background:#FFBC54;color:#30274E;box-shadow:0 6px 0 #30274E33}.primary:hover{background:#FFD27A}.secondary{background:#fff;color:#53349F;border:2px solid #DCD3F3}.hero-art{height:330px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:2px dashed #FFFFFF55;border-radius:50%;width:280px;height:280px}.orbit-two{width:360px;height:360px}.planet{position:absolute;top:15px;right:10px;font-size:4rem;color:#FFBC54}.face{position:relative;border-radius:46% 46% 43% 43%;background:#b6f2c9;width:220px;height:195px;box-shadow:inset -17px -13px #83d7b1,0 22px 0 #4a3d9a;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(-7deg)}.eyes{font-size:32px;letter-spacing:30px;padding-left:30px}.smile{font-size:85px;line-height:.48}.float-item{position:absolute;font-size:2rem;font-weight:900;display:grid;place-items:center;width:65px;height:65px;border-radius:21px;box-shadow:0 7px 0 #382d772d}.one{background:#FFBC54;left:8px;top:34px;color:#30274E;transform:rotate(-12deg)}.two{background:#EF6C85;right:0;top:90px;color:#5B2341;transform:rotate(15deg)}.three{background:#9AE8E3;left:12px;bottom:20px;color:#135A56}.four{background:#EF6C85;right:26px;bottom:5px;color:#5B2341}.section{padding:75px 0}.section-intro{color:#5B526D;font-size:1.08rem;max-width:600px}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}.subject{border-radius:var(--radius);padding:25px;min-height:242px;display:flex;align-items:flex-start;flex-direction:column;box-shadow:0 6px 0 #30274E17;text-decoration:none}.subject.maths{background:#FFE6B5}.subject.literacy{background:#FBE1E8}.subject.phonics{background:#E6DCF8}.subject.shapes{background:#CFF2EF}.subject.world{background:#DDF5F3}.subject-icon{font-weight:950;font-size:2.15rem;min-height:64px}.subject strong{font-size:1.42rem}.subject small{font-size:.95rem;margin:4px 0 15px}.pill{background:#FFF2D8;padding:5px 12px;border-radius:100px;font-size:.74rem;font-weight:950;letter-spacing:.03em;margin-top:auto}.pill.muted{background:#ffffff88}.subject.maths:hover{transform:translateY(-3px)}.game-section{background:#F3EFFB}.game{margin-top:28px;background:white;border-radius:28px;box-shadow:0 13px 40px #6B4DC426;overflow:hidden;padding:30px}.game-top{display:flex;justify-content:space-between;align-items:start;gap:15px}.game-kicker{font-weight:900;color:#6B4DC4;letter-spacing:.08em;font-size:.75rem}.game h3{font-size:1.6rem;margin:5px 0 14px}.score{border-radius:100px;background:#FFE9C2;padding:7px 13px;font-weight:900;white-space:nowrap}.game-board{background:#53349F;border-radius:22px;min-height:225px;padding:26px;display:flex;align-items:center;justify-content:center}.stars{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;max-width:600px;gap:9px 16px;font-size:clamp(2.5rem,6vw,4.2rem);line-height:1.4}.star-piece{color:#FFBC54;text-shadow:0 5px 0 #30274E}.choices{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:25px 0 18px}.choice{font:inherit;font-weight:950;font-size:1.5rem;color:#53349F;background:#EFE9FA;border:3px solid transparent;border-radius:17px;min-width:78px;min-height:70px;cursor:pointer}.choice:hover:not(:disabled){border-color:#6B4DC4}.choice.correct{background:#CFF2EF;border-color:#168277}.choice.incorrect{background:#FBE1E8;border-color:#BC4058}.choice:disabled{cursor:default}.feedback{text-align:center;font-size:1.1rem;font-weight:800;min-height:32px}.game-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.game-note{text-align:center;color:#5B526D;font-size:.85rem;margin:25px 0 0}.grownup-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center}.grownup-card{border-radius:25px;background:#FFE9C2;padding:28px}.grownup-card ul{padding-left:22px;line-height:2}.smallprint{font-size:.86rem;color:#5B526D;margin-bottom:0}footer{background:#30274E;color:#F3EFFB;padding:25px 0}.footer-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.88rem}footer a{color:#fff}@media(max-width:750px){.hero-grid,.grownup-grid{grid-template-columns:1fr;gap:25px}.hero-grid{padding-top:52px}.hero-art{height:255px}.orbit{width:220px;height:220px}.orbit-two{width:270px;height:270px}.face{width:175px;height:155px}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section{padding:50px 0}.game{padding:18px}.game-top{flex-direction:column}.score{align-self:flex-start}.game-board{min-height:200px}}@media(max-width:460px){.wrap{width:min(100% - 26px,1100px)}.topbar{min-height:75px}.topbar nav{gap:12px;font-size:.87rem}.brand{font-size:1.25rem}.brand-star{width:34px;height:34px;margin-right:4px}.brand-small{font-size:.65rem}.subject-grid{grid-template-columns:1fr}.subject{min-height:195px}.subject-icon{min-height:53px}.game-board{padding:16px}.stars{gap:3px 11px}.choice{min-width:66px;min-height:65px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

/* BabyJJ concept B — icon-first identity */
.topbar{justify-content:flex-start;gap:16px}
.brand{display:flex;align-items:center;justify-content:center;flex:none;width:68px;height:68px;border-radius:19px;transition:transform .2s ease}
.brand:hover{transform:rotate(-7deg)}
.brand-mark{display:block;width:62px;height:62px}
.header-name{font-size:1.24rem;line-height:1.2;font-weight:900;color:var(--purple);letter-spacing:-.02em}
.topbar nav{margin-left:auto}
.hero-symbol{display:grid;place-items:center;position:relative;z-index:1;width:240px;height:240px;border-radius:66px;background:#fff;box-shadow:0 24px 0 #30274E50,0 22px 70px #30274E40;transform:rotate(-10deg)}
.hero-symbol img{display:block;width:200px;height:200px}
@media(max-width:750px){.hero-symbol{width:183px;height:183px;border-radius:48px}.hero-symbol img{width:156px;height:156px}}
@media(max-width:460px){.brand{width:50px;height:50px}.brand-mark{width:48px;height:48px}.header-name{font-size:.92rem;max-width:130px}.topbar nav{gap:13px;font-size:.85rem}}

/* Logo-led brand accents */
.subject.maths{border-top:6px solid var(--yellow)}
.subject.literacy{border-top:6px solid var(--coral)}
.subject.phonics{border-top:6px solid var(--purple)}
.subject.shapes{border-top:6px solid var(--turquoise)}
.subject.world{border-top:6px solid var(--turquoise)}
.subject:focus-visible{outline-color:var(--purple)}
.game-board{background:linear-gradient(140deg,#53349F,#6B4DC4)}
.choice:hover:not(:disabled){background:#E6DCF8}
.primary:focus-visible,.choice:focus-visible{outline-color:var(--turquoise)}
.header-name{color:var(--purple)}
.brand:hover{background:#F3EFFB}
@media (prefers-contrast:more){.subject{box-shadow:inset 0 0 0 2px var(--ink)}.btn,.choice{border:2px solid var(--ink)}}
/* Counting game milestone overlay and automatic advancement */
[hidden]{display:none!important}
.milestone{text-align:center;max-width:470px;margin:22px auto;padding:26px 20px;border:3px solid var(--yellow);border-radius:24px;background:#fff8e9;box-shadow:0 8px 0 #6B4DC41A}
.milestone-icon{font-size:3.6rem;line-height:1.3}
.milestone h4{font-size:clamp(1.65rem,4vw,2.2rem);color:var(--purple);margin:6px 0}
.milestone p{font-size:1.12rem;font-weight:800;margin:0 0 20px}

/* Stable game area: answers and celebration take turns occupying one panel. */
.game-board{min-height:294px;display:grid;place-items:center;padding:24px;position:relative}
.play-area{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
.play-area .stars{max-width:610px;min-height:74px;display:flex;justify-content:center;align-items:center;margin:0}
.play-area .choices{display:flex;justify-content:center;align-items:center;gap:12px;margin:0}
.game-board .milestone{width:min(100%,510px);max-width:510px;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 22px;text-align:center;background:#FFFCF7;border:3px solid var(--yellow);border-radius:24px}
.game-board .milestone-icon{font-size:2.7rem;line-height:1.15}
.game-board .milestone h4{font-size:clamp(1.45rem,3vw,2rem);line-height:1.2;margin:0;color:var(--purple)}
.game-board .milestone p{font-size:1rem;line-height:1.4;margin:0 0 8px;color:var(--ink)}
.game-board .milestone .btn{min-height:48px}
.game .feedback{height:4rem;display:flex;align-items:center;justify-content:center;margin:6px 0 12px;text-align:center;overflow-wrap:anywhere}
.game-actions{display:grid;grid-template-columns:minmax(0,230px) minmax(0,160px);justify-content:center;gap:12px}
.game-actions .btn{width:100%;padding-inline:12px}
.game-actions #next[hidden]{display:inline-flex!important;visibility:hidden;pointer-events:none}
/* Keep hidden panels hidden, regardless of the panel's flex display rule. */
.game-board [hidden]{display:none!important}
@media(max-width:600px){.game-board{min-height:285px;padding:16px}.play-area{gap:16px}.game-board .milestone{padding:20px 12px}.game .feedback{height:5rem}.game-actions{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}.game-actions .btn{font-size:.9rem;padding:10px 6px}}

/* Early-access label and simple informational pages */
.early-access-badge{display:inline-flex;align-items:center;gap:.5rem;margin:18px 0 0;padding:7px 15px;border:2px solid #FFBC54;border-radius:100px;background:#FFBC54;color:#30274E;font-size:.8rem;font-weight:950;letter-spacing:.07em;line-height:1.4}
.privacy-main{padding:64px 0 90px;min-height:60vh}.privacy-content{max-width:800px;background:white;border-radius:26px;padding:clamp(24px,5vw,52px);box-shadow:0 8px 26px #6B4DC415}.privacy-content h1{font-size:clamp(2rem,4vw,3rem);color:var(--purple)}.privacy-content h2{font-size:1.35rem;margin:28px 0 9px}.privacy-content p,.privacy-content li{line-height:1.75}.privacy-content a{color:#53349F;font-weight:800}.privacy-update{color:#5B526D;font-size:.9rem}.privacy-note{border-left:5px solid var(--turquoise);background:#CFF2EF;padding:16px 18px;border-radius:0 12px 12px 0}.game-note a{color:#53349F}.smallprint a{font-weight:800;color:#53349F}
@media(max-width:460px){.topbar{flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.topbar nav{width:100%;justify-content:flex-end;gap:16px}.privacy-main{padding:30px 0 60px}}
