
:root{--bg:#f5f7ff;--ink:#172544;--muted:#53617b;--primary:#4657cf;--pale:#e9edff;--green:#16834c;--greenbg:#def8e8;--red:#bb3151;--redbg:#ffe8ec;--line:#dde3f4;--white:#fff;--shadow:0 8px 25px #21337b15}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 system-ui,-apple-system,'Segoe UI',Arial,sans-serif}button,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible{outline:3px solid #ecaa24;outline-offset:3px}.wrap{max-width:1160px;margin:auto;padding:19px}.header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.brand{font-size:25px;font-weight:850}.sub{color:var(--muted);font-size:14px}.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.smallbtn{padding:10px 13px;border-radius:13px;border:1px solid var(--line);background:white;color:var(--ink)}.pill{background:#fff2ca;padding:9px 14px;border-radius:30px;font-weight:750}.hero{margin-top:16px;padding:22px;background:linear-gradient(110deg,#4657cf,#7585e9);color:white;border-radius:24px;display:flex;justify-content:space-between;align-items:center;gap:18px}.hero h1{margin:0;font-size:clamp(25px,4vw,34px)}.hero p{margin:4px 0 0;color:#f2f4ff}.heroicon{font-size:65px}.tabs{display:flex;gap:8px;overflow-x:auto;margin:18px 0 15px;padding-bottom:7px}.tab{flex:0 0 auto;border:2px solid var(--line);border-radius:14px;background:white;padding:12px 16px;color:var(--ink);font-weight:760}.tab.active{background:var(--primary);border-color:var(--primary);color:white}.layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}.panel{padding:24px;background:white;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);min-width:0}.panel h2{margin:0 0 8px;font-size:24px}.instruction{color:var(--muted);margin:0 0 18px}.question{background:#f5f7ff;border-radius:20px;text-align:center;padding:17px;min-height:155px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}.bigletter{font-size:clamp(65px,11vw,110px);font-weight:780;line-height:1.15;letter-spacing:.02em}.bigword{font-size:clamp(36px,7vw,66px);font-weight:760;line-height:1.2}.emoji{font-size:76px;line-height:1.5}.speak{background:#e8ecff;color:#273aa7;border:0;border-radius:12px;padding:10px 14px;font-weight:750}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:18px}.choice,.tile{min-height:75px;background:#fff;border:2px solid #cbd4ee;border-radius:16px;color:var(--ink);font-size:clamp(24px,4vw,34px);font-weight:750;transition:background .15s,border .15s}.choice:hover:not(:disabled),.tile:hover{border-color:var(--primary);background:#f5f6ff}.choice.correct,.tile.correct{border-color:var(--green)!important;background:var(--greenbg)!important;color:#07592c}.choice.wrong,.tile.wrong{border-color:var(--red)!important;background:var(--redbg)!important;color:#8d1f3e}.choice:disabled{cursor:default}.feedback{margin-top:14px;padding:14px 16px;border-radius:14px;min-height:56px;font-weight:700;background:#f5f7ff}.feedback.good{background:var(--greenbg);color:#095f36}.feedback.bad{background:var(--redbg);color:#972947}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.next{background:var(--primary);color:white;border:0;border-radius:14px;padding:13px 22px;font-weight:800;min-height:49px}.next:disabled{opacity:.4;cursor:not-allowed}.outline{background:white;color:var(--primary);border:2px solid var(--primary);border-radius:14px;padding:11px 16px;font-weight:750}.bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;flex-wrap:wrap}.sidebar h3{margin:0 0 10px}.stat{border-radius:15px;background:#f4f6ff;padding:14px;margin-top:11px}.stat b{font-size:24px}.bar{height:12px;background:#e1e6f7;border-radius:99px;overflow:hidden;margin-top:10px}.fill{height:100%;background:#39a878;transition:width .25s}.muted{color:var(--muted)}.tiny{font-size:13px}.section-kicker{font-size:12px;font-weight:800;color:#4b5bb2;text-transform:uppercase;letter-spacing:.07em}.syllable{font-size:clamp(35px,7vw,64px);font-weight:800;letter-spacing:3px}.combine{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.chip{background:white;border:2px solid #bdc8ee;border-radius:16px;padding:10px 20px;font-size:clamp(32px,6vw,54px);font-weight:800}.plus{color:#7b86aa;font-weight:900;font-size:32px}.wordslots{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-height:76px;margin:16px 0}.slot{min-width:53px;height:67px;display:flex;align-items:center;justify-content:center;background:#f4f6ff;border:2px dashed #a8b5da;border-radius:13px;font-size:35px;font-weight:800}.tiles{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.tile{min-width:62px;padding:9px 13px}.sentence-options .choice{font-size:23px;text-align:left;padding:12px}.trace-target{font-size:50px;letter-spacing:3px;text-align:center;font-weight:800}.canvas-wrap{position:relative;max-width:650px;margin:auto}canvas{width:100%;height:260px;touch-action:none;border:2px solid #bdc9eb;border-radius:18px;background:repeating-linear-gradient(to bottom,#fff 0px,#fff 62px,#dce4fa 63px,#fff 65px);cursor:crosshair}.support{background:#fff6df;border-radius:16px;padding:14px;margin-top:14px}.settings{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 15px}.settings label{display:flex;gap:7px;align-items:center}.settings select{padding:8px;border:1px solid #b6c3e2;border-radius:10px;background:white}input[type=checkbox]{width:20px;height:20px}.letter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:8px;margin:13px 0}.letter-grid button{border:1px solid #cbd4ee;background:#fafbff;padding:9px;border-radius:10px;font-size:24px;font-weight:750}.letter-grid button:hover{background:var(--pale)}.hidden{display:none!important}.rtl{direction:rtl;text-align:right}.parents p{margin:9px 0}.parents ol{padding-inline-start:24px}.celebrate{font-size:29px}.footer{font-size:12px;text-align:center;margin:20px;color:var(--muted)}body.quiet .hero{background:#51649b}body.quiet .emoji,body.quiet .heroicon{filter:saturate(.55)}@media(max-width:790px){.layout{grid-template-columns:1fr}.panel{padding:17px}.sidebar{order:2}.heroicon{font-size:45px}.choices{gap:8px}.choice{min-height:68px}.wrap{padding:12px}}
