:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#25223f;background:#f8f7ff;--purple:#6247ba;--green:#18754c;--ink:#25223f;--muted:#68657b;--line:#e5e1f0;--shadow:0 8px 22px #3422670d}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #2268d8;outline-offset:3px}button:disabled{opacity:.5;cursor:default}button{border:0;background:none;color:inherit}header{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(16px,calc((100vw - 1120px)/2));position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;text-align:left;gap:10px;font-weight:800;font-size:18px;line-height:1.15;padding:0}.brand b{color:var(--purple)}.brand small{display:block;font-weight:500;font-size:11px;color:var(--muted);margin-top:3px}.logo{display:grid;place-items:center;background:#ffedcc;border-radius:16px;width:46px;height:46px;font-size:31px}.top-actions{display:flex;gap:6px;align-items:center}.pill,.secondary,.primary{border-radius:14px;padding:12px 16px;font-weight:700;min-height:44px}.pill,.secondary{background:#f0edf9;color:#4a367e}.primary{background:var(--purple);color:#fff;box-shadow:0 4px 0 #47328b}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #47328b}.plain{padding:8px;color:var(--purple);text-decoration:underline}main{width:min(1120px,100%);margin:0 auto;padding:24px 16px 40px;flex:1}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,4vw,42px);line-height:1.1}h2{font-size:24px}h3{font-size:18px}p{line-height:1.5}.muted{color:var(--muted)}.hero{background:linear-gradient(120deg,#6247ba,#8163cf);color:white;border-radius:28px;padding:clamp(20px,4vw,38px);display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:var(--shadow);margin-bottom:24px}.hero h1{margin-bottom:12px}.hero p{color:#f4efff;max-width:530px;margin-bottom:18px}.hero .primary{background:#fff;color:#4b3597;box-shadow:0 4px 0 #d6ccf5}.hero-art{font-size:clamp(65px,14vw,140px);filter:drop-shadow(0 8px 0 #492b8b44);line-height:1}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.section-head h2{margin:0}.worlds{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px}.world{background:var(--bg);border:1px solid #ffffffaa;border-radius:22px;min-height:145px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;box-shadow:var(--shadow);transition:transform .15s}.world:hover,.game-card:hover{transform:translateY(-3px)}.world .emoji{font-size:43px;line-height:1}.world strong{font-size:18px}.world small{font-size:12px;color:#534d69}.games{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:12px}.game-card,.panel{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:18px}.game-card{display:flex;flex-direction:column;gap:8px;text-align:left;min-height:140px;transition:transform .15s}.game-card .emoji{font-size:34px}.game-card strong{font-size:18px}.game-card small{color:var(--muted)}.chip{display:inline-flex;align-items:center;gap:5px;border-radius:99px;background:#eee9fc;color:#4d3794;font-size:13px;padding:6px 10px;font-weight:700;width:fit-content}.back{margin-bottom:16px}.game-shell{max-width:760px;margin:auto}.game-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}.game-head h1{font-size:26px;margin:0}.game-area{text-align:center;min-height:260px}.progress{height:9px;background:#eeeaf9;border-radius:99px;overflow:hidden;margin:12px 0}.progress>span{display:block;height:100%;background:#65ab7b;transition:width .25s}.prompt{font-size:clamp(22px,5vw,38px);font-weight:800;margin:22px 0;white-space:pre-line;overflow-wrap:anywhere}.visual{font-size:clamp(32px,7vw,65px);white-space:pre-wrap;line-height:1.35;margin:16px auto;overflow-wrap:anywhere}.answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.answer{background:#f3efff;border:2px solid #e3dafa;border-radius:18px;padding:18px 8px;font-size:clamp(19px,4vw,30px);font-weight:750;min-height:66px;overflow-wrap:anywhere;white-space:pre-line}.answer.good,.good{background:#dff5e6;color:#145d3c;border-color:#8ccba4}.answer.bad,.bad{background:#fff1de;color:#865300;border-color:#e9bb71}.feedback{min-height:28px;font-weight:700;color:#4c3a85;margin:12px 0}.feedback.success{color:var(--green)}.feedback.warn{color:#8b5209}.toolbar{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:14px 0}.input{width:100%;padding:12px;border:1px solid #bdb6d1;border-radius:12px;background:white;color:var(--ink)}label{display:block;font-weight:700;font-size:14px;margin:10px 0 5px}select{padding:9px;border:1px solid #d4cce7;border-radius:10px;color:var(--ink);background:white}.board{display:grid;margin:16px auto;gap:5px;width:min(100%,410px);aspect-ratio:1}.cell{display:grid;place-items:center;background:#eee8fd;border-radius:10px;aspect-ratio:1;font-size:clamp(24px,9vw,50px);font-weight:800;min-width:0;padding:0}.cell.selected{outline:3px solid #f4a921;outline-offset:-3px}.cell.valid{box-shadow:inset 0 0 0 4px #66bd84}.checkers{gap:0;border:5px solid #684842;border-radius:8px;overflow:hidden}.checkers .cell{border-radius:0;font-size:clamp(16px,5vw,36px)}.light-square{background:#f7e3bc}.dark-square{background:#a77d63}.piece{width:76%;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 3px #ffffff44,0 2px 2px #0005;font-size:60%}.piece.red{background:#d44859;color:white}.piece.black{background:#28344e;color:#ffdf7c}.memory{display:grid;gap:8px;margin:14px auto;max-width:580px}.memory .cell{font-size:clamp(20px,7vw,42px)}.piano{display:flex;gap:4px;margin:18px 0;justify-content:center}.key{flex:1;min-width:0;height:150px;border:1px solid #cec9dc;border-bottom:7px solid #bcb4ce;border-radius:0 0 12px 12px;background:#fff;font-weight:700;display:flex;align-items:end;justify-content:center;padding:12px 0}.key:active{background:#d4c4ff;transform:translateY(3px)}.canvas{width:100%;height:auto;border:2px solid var(--line);border-radius:16px;background:white;touch-action:none}.color{width:38px;height:38px;border-radius:50%;border:2px solid #ffffff;box-shadow:0 0 0 1px #aaa}.color.active{box-shadow:0 0 0 3px #322747}.flash{min-height:210px;background:#f2ecff;border:2px solid #dfd1ff;border-radius:22px;display:grid;place-items:center;padding:20px}.flash .visual{margin:0}.flash h2{margin:0}.mic{border-radius:50%;width:78px;height:78px;background:#e9e2ff;font-size:35px;display:grid;place-items:center;margin:auto}.mic.listening{background:#fbe1e3;box-shadow:0 0 0 8px #fbe1e366}.profile-list{display:grid;gap:10px}.profile-item{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f5f2fc;border-radius:14px;padding:12px;text-align:left;width:100%}.profile-item strong{display:block}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.stat{background:#f5f1ff;border-radius:14px;padding:16px}.stat strong{font-size:25px;display:block}.stat small{color:var(--muted)}.report-line{margin:12px 0}.report-line .progress{margin:4px 0}.notice{background:#fff4dd;color:#694913;border-radius:12px;padding:12px;text-align:left;font-size:14px}.error{color:#a42037}.small{font-size:13px}dialog{width:min(540px,calc(100% - 24px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:22px;padding:24px;color:var(--ink);background:white}dialog::backdrop{background:#251c485e}#close-modal{margin-top:16px}footer{border-top:1px solid var(--line);display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:var(--muted);padding:16px}.skip,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{width:auto;height:auto;clip-path:none;z-index:10;background:white;padding:12px}.empty{padding:20px;text-align:center;color:var(--muted)}.maze{gap:2px;max-width:430px}.maze .cell{border-radius:3px;font-size:clamp(13px,5vw,28px)}.maze .wall{background:#7763b5}.maze .path{background:#eee9fc}.island{background:#d9f2dc;border:2px solid #b5dfbd;min-height:160px;border-radius:18px;padding:18px;font-size:42px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}.trace-wrap{position:relative}.trace-wrap canvas{position:relative;z-index:1;background:transparent}.trace-target{position:absolute;inset:0;display:grid;place-items:center;color:#ddd5ef;font-weight:900;font-size:clamp(90px,30vw,240px);pointer-events:none}.timer-note{font-size:13px;color:#756b89}.large-mode .answer{font-size:32px;min-height:90px}.large-mode .visual{font-size:78px}@media(max-width:560px){header{padding:9px 12px}.brand{font-size:14px}.logo{width:36px;height:36px;font-size:24px}.pill{padding:9px 10px;font-size:12px}.top-actions{gap:4px}#parents span{display:none}main{padding:16px 12px 28px}.hero{border-radius:20px}.hero-art{font-size:65px}.worlds{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.world{min-height:120px;padding:13px}.world strong{font-size:16px}.games{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card{padding:12px;min-height:125px}.game-card strong{font-size:15px}.panel{padding:14px}.game-head h1{font-size:22px}.answers{gap:8px}.answer{padding:14px 5px}.key{height:115px}.hero p{font-size:14px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}[hidden]{display:none!important}
