
/* Little Learning 2.0 — accessible preschool design system */
:root{--ink:#20324f;--muted:#64758d;--surface:#fff;--line:#e5eaf3;--mint:#24bf92;--indigo:#6859e9;--shadow:0 13px 34px rgba(39,62,104,.10)}
html,body{min-height:100%;background:radial-gradient(circle at 12% 8%,#fff2c5,transparent 36%),radial-gradient(circle at 93% 5%,#d4f6eb,transparent 33%),linear-gradient(140deg,#f7fbff,#f4f0ff);color:var(--ink);font-family:ui-rounded,"Trebuchet MS",Arial,sans-serif}
body{overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:4px solid #5f6aef;outline-offset:3px}
.app{max-width:1160px;padding:18px clamp(12px,3vw,32px) 54px}
.siteHeader{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:10px 12px;background:rgba(255,255,255,.87);border:1px solid #edf0f6;border-radius:26px;box-shadow:var(--shadow);position:relative;z-index:25}
.brandSymbol{width:62px;height:62px;border-radius:21px;display:grid;place-items:center;font-size:35px;background:linear-gradient(135deg,#ffdf8a,#ffb9d4)}
.brandCopy{flex:1;min-width:0}.brandCopy strong{display:block;font-size:clamp(20px,3.7vw,30px);line-height:1.06}.brandCopy small{color:var(--muted);font-size:clamp(10px,2.3vw,14px);font-weight:750}
.profileBox{position:relative}.profileTrigger{border:3px solid #fff;border-radius:50%;width:60px;height:60px;background:#e3f8fa;box-shadow:0 2px 0 #d7e9ea;display:grid;place-items:center;font-size:31px}.profileTrigger:hover{background:#d7f2f9}.profileMenu{position:absolute;right:0;top:calc(100% + 9px);background:white;border:1px solid var(--line);border-radius:23px;box-shadow:0 25px 45px #20324f32;min-width:240px;padding:10px;z-index:90}
.profileMenu[hidden],.welcomeOverlay[hidden]{display:none!important}.menuHello{padding:9px 12px 12px;font-size:16px;font-weight:900;border-bottom:1px solid var(--line);margin-bottom:7px;overflow-wrap:anywhere}.profileMenu button{border:0;background:transparent;width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;color:var(--ink);font-size:17px;font-weight:800}.profileMenu button:hover{background:#f0f5ff}
.hero{background:linear-gradient(105deg,#e6efff,#fff5db 55%,#e3fbec);border:1px solid #fff;border-radius:32px;text-align:left;padding:clamp(22px,5vw,40px);display:flex;align-items:center;gap:22px;box-shadow:var(--shadow);margin:12px 0 18px}
.heroGreeting{flex:1}.helloKicker{display:block;color:#5359a1;font-size:15px;font-weight:900;margin-bottom:9px}.hero h1{font-size:clamp(27px,6vw,48px);line-height:1.13;margin:0 0 8px;letter-spacing:-.035em}.hero p{margin:0 0 8px;color:var(--muted);font-size:clamp(14px,2.4vw,18px);font-weight:700}.hero .freeLine{margin-top:8px;color:#118b66;font-size:clamp(14px,2.4vw,17px)}
.heroArtwork{font-size:clamp(56px,13vw,112px);filter:drop-shadow(0 12px 8px #927c6a20);line-height:1}
.homeSectionHeading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px 4px 11px}.homeSectionHeading h2{font-size:clamp(22px,4vw,29px);margin:0}.homeSectionHeading span{color:var(--muted);font-size:14px;font-weight:750}
.settings,.contactTopBtn,.heroContactBtn{display:none!important}
.resumePanel{padding:20px;background:linear-gradient(110deg,#ffffff,#f4f8ff);border:2px solid #d9e7ff;border-radius:26px;box-shadow:var(--shadow);margin-bottom:16px;display:grid;grid-template-columns:1fr;gap:5px}.resumePanel[hidden]{display:none}.resumeEyebrow{font-weight:900;color:#656fb1;font-size:13px;letter-spacing:.07em;text-transform:uppercase}
.resumePanel .continueGame{width:100%;background:#19b68a;border:0;border-radius:18px;color:white;font-size:21px;font-weight:900;min-height:62px;text-align:center;box-shadow:0 7px 0 #159570}.resumeDescription{font-weight:750;font-size:14px;color:var(--muted);text-align:center;margin-top:7px}
.gameGrid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0;gap:14px;padding-bottom:35px}
.game{--accent:#6c77ff;position:relative;display:flex;flex-direction:column-reverse;justify-content:flex-end;align-items:flex-start;min-height:192px;padding:19px;text-align:left;border:2px solid #f2f4fa;border-radius:25px;background:white!important;color:var(--ink)!important;box-shadow:0 8px 25px #24395b15;transition:transform .16s,box-shadow .16s}
.game:hover{transform:translateY(-3px);box-shadow:0 16px 28px #24395b21}.game span{font-size:clamp(19px,2.9vw,24px);line-height:1.15;font-weight:900}.game small{font-size:13px;color:var(--muted);font-weight:700;margin-top:6px;line-height:1.35}.game b{font-size:42px;background:color-mix(in srgb,var(--accent) 15%,white);border-radius:19px;width:70px;height:70px;margin-bottom:15px}.gameMeta{width:100%;color:var(--accent);font-size:12px;font-weight:900;margin-top:auto;padding-top:12px;line-height:1.4}
.game.math{--accent:#e5801d}.game.picture{--accent:#217fd7}.game.english{--accent:#a04bd7}.game.missingalpha,.game.missingalpha2{--accent:#7954e8}.game.missingnum,.game.missingnum2{--accent:#ec5578}.game.find{--accent:#e27943}.game.findnum{--accent:#3478db}.game.matchnum{--accent:#d28b18}.game.matchalpha{--accent:#20966c}.game.findodd{--accent:#c54b68}
.topbar{padding:9px 0 12px}.title,.roundBtn{border:1px solid #ecf1f7;box-shadow:0 6px 18px #24395b11}.title{font-size:clamp(18px,3.1vw,27px);border-radius:20px}
.levelJourney{background:#fff;border:1px solid #eef0f8;border-radius:23px;box-shadow:0 7px 22px #24395b0c;padding:16px;margin-bottom:13px}
.levelJourneyTop{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:13px;font-weight:900;color:var(--muted)}
.levelChip{background:#ebe9ff;color:#5e4cd3;padding:7px 13px;border-radius:99px}
.levelDots{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin-bottom:12px}.levelDot{height:9px;border-radius:99px;background:#e3e7f1}.levelDot.done{background:#3bc69b}.levelDot.current{background:#f8b942}
.questionMeter{width:100%;background:#eaf0f7;border-radius:99px;height:9px;overflow:hidden}.questionMeterFill{width:0;height:100%;background:linear-gradient(90deg,#25c599,#24a6eb);border-radius:99px;transition:width .25s}
.stats{gap:9px}.stats div{box-shadow:0 5px 17px #24395b0c;border:1px solid #edf0f6}.stats strong{font-size:clamp(17px,4vw,23px)}
.card{border:1px solid #edf0f7;border-radius:26px;box-shadow:0 11px 30px #24395b12;min-height:400px;padding:clamp(14px,3vw,26px)}
.prompt{background:linear-gradient(110deg,#e6f4ff,#f7efff);border:0;border-radius:23px;padding:18px}.qTitle{color:#263961}.qSmall{font-size:clamp(14px,2.9vw,18px)}
.bigAnswer,.alphaChoice,.numberChoice,.circle,.wayControlBtn{box-shadow:0 6px 13px #25375b1a;transition:transform .12s}.bigAnswer,.alphaChoice,.numberChoice{min-height:82px;border:3px solid #fff}
.rowCard{border:1px solid #e6eff9;box-shadow:none}.worksheet{gap:11px}
.matchBoard,.alphaBoard,.findBoard{border-width:4px;border-radius:23px}.matchBoard,.alphaBoard{background:#fbfdff}
.contactCard{box-shadow:var(--shadow);border-radius:28px}.contactPage .topbar{margin-top:15px}
.miniPage{max-width:790px;margin:auto}.miniPageCard{border:1px solid var(--line);border-radius:28px;padding:clamp(18px,5vw,32px);background:#fff;box-shadow:var(--shadow)}.miniPageTitle{margin:8px 0 16px;font-size:clamp(25px,5vw,37px)}.backLink{border:0;background:#eef2ff;padding:14px 18px;border-radius:17px;color:#4048a2;min-height:54px;font-weight:900}
.profileAvatar{font-size:65px;text-align:center;margin:8px}.fieldLabel{font-weight:900;color:#566680;margin:12px 0 8px;display:block;font-size:15px}.profileInput,.profileSelect{min-height:58px;border:2px solid #e4e9f7;background:#f8faff;color:var(--ink);border-radius:17px;padding:12px;width:100%;font-size:19px}.avatarChoices{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.avatarPick{width:60px;height:60px;border:3px solid #edf1f9;background:#fff;border-radius:18px;font-size:32px}.avatarPick.selected{border-color:#745ce5;background:#f1edff}.primaryAction{background:#20b58b;color:white;border:0;border-radius:18px;min-height:58px;width:100%;font-size:18px;font-weight:900;margin-top:16px}
.profileHint{font-size:13px;color:var(--muted);line-height:1.5}
.historyStats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}.historyStat{background:#f5f7ff;padding:15px 8px;border-radius:18px;text-align:center}.historyStat strong{display:block;font-size:25px}.historyStat small{color:var(--muted);font-size:12px;font-weight:700}
.historyList{display:grid;gap:10px}.historyItem{padding:15px;border:1px solid var(--line);border-radius:19px;display:flex;align-items:center;gap:12px}.historyIcon{width:54px;height:54px;background:#f0f5ff;border-radius:15px;display:grid;place-items:center;font-size:26px}.historyInfo{flex:1;min-width:0}.historyInfo strong{display:block;font-size:16px}.historyInfo small{display:block;color:var(--muted);font-size:13px;margin-top:4px}.historyStars{font-size:13px;font-weight:900}
.emptyHistory{background:#f7fbff;border-radius:18px;padding:24px;text-align:center;color:var(--muted);font-weight:800}
.welcomeOverlay{position:fixed;inset:0;background:#25344c99;z-index:200;display:grid;place-items:center;padding:18px;backdrop-filter:blur(5px)}.welcomeCard{background:white;border-radius:32px;padding:clamp(22px,5vw,42px);max-width:460px;width:100%;text-align:center;box-shadow:0 25px 70px #121e383c}.welcomeCard .welcomeIcon{font-size:72px}.welcomeCard h2{font-size:clamp(27px,6vw,39px);margin:12px 0}.welcomeCard p{color:var(--muted);font-size:16px}.welcomeCard input{width:100%;min-height:62px;border-radius:18px;border:3px solid #e3eafd;background:#f8fbff;font-size:20px;padding:12px;text-align:center}.welcomeSkip{margin:12px auto 0;border:0;background:transparent;color:#65748d;font-weight:800;padding:10px}
@media(min-width:760px){.gameGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.game{min-height:210px}.siteHeader{padding:12px 22px}.hero{padding:42px}.card{padding:26px}}
@media(max-width:520px){.app{padding:10px}.siteHeader{border-radius:19px}.brandSymbol{height:50px;width:50px;font-size:29px;border-radius:15px}.profileTrigger{width:51px;height:51px;font-size:26px}.hero{border-radius:23px;padding:22px 17px;gap:5px}.heroArtwork{font-size:54px}.gameGrid{gap:9px}.game{min-height:178px;border-radius:19px;padding:14px}.game b{width:58px;height:58px;font-size:35px;margin-bottom:10px;border-radius:16px}.game span{font-size:18px}.game small{font-size:12px}.gameMeta{font-size:11px}.stats div{min-height:57px;border-radius:15px}.stats small{font-size:10px}.matchBoard,.alphaBoard{padding:8px}.historyItem{padding:11px}}
@media(max-width:370px){.heroArtwork{display:none}.brandCopy strong{font-size:19px}.game span{font-size:16px}.game b{width:49px;height:49px;font-size:30px}.game{min-height:172px}.hero{padding:20px}.rowCard{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
