:root{--ink:#28334a;--muted:#758096;--cream:#fff7e8;--orange:#ff9d4d;--yellow:#ffcf5a;--green:#49b98a;--line:#edf0f5;--blue:#6688ef}
*{box-sizing:border-box}body{margin:0;background:#fffaf2;color:var(--ink);font-family:ui-rounded,"Trebuchet MS",system-ui,-apple-system,sans-serif}
.topbar{height:70px;padding:0 max(22px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #f3eee5}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:900;font-size:19px}.brand-icon{font-size:27px}.top-note{font-size:13px;color:#8b91a0;font-weight:700}
.container{width:min(1120px,calc(100% - 36px));margin:0 auto}.intro{margin:30px 0 20px;padding:27px 34px;border-radius:24px;background:linear-gradient(115deg,#fff0d9,#ffdfc7);display:flex;justify-content:space-between;align-items:center;overflow:hidden;min-height:178px}.eyebrow{font-size:10px;letter-spacing:2px;color:#c0783c;font-weight:900;margin:0 0 8px}.intro h1{font-size:clamp(25px,4vw,38px);line-height:1.12;margin:0 0 10px;letter-spacing:-1px}.intro h1 span{color:#e7833f}.intro-copy{margin:0;color:#806e65;font-size:14px}.hero-art{font-size:75px;position:relative;margin-right:45px;transform:rotate(-8deg)}.hero-art span{position:absolute;font-size:34px;right:-35px;top:-12px}
.progress-card,.panel,.tip-card{background:#fff;border:1px solid #f0eee9;border-radius:20px;box-shadow:0 8px 24px #35405a08}.progress-card{padding:16px 20px;margin-bottom:20px}.progress-top{display:flex;justify-content:space-between;gap:10px;font-size:13px}.progress-top span{color:var(--muted);font-size:12px}.progress-track{height:9px;background:#f1f2f5;border-radius:20px;margin-top:11px;overflow:hidden}.progress-track div{height:100%;width:0;background:linear-gradient(90deg,#ffb45d,#55c99b);border-radius:20px;transition:width .3s}
.workspace{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{padding:22px;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-heading>div{display:flex;align-items:center;gap:10px}.section-heading h2{font-size:18px;margin:0}.step{width:28px;height:28px;border-radius:9px;background:#fff0df;color:#df853e;display:grid;place-items:center;font-weight:900}.step-green{background:#e5f8ef;color:#35a779}.tiny-label{font-size:9px;letter-spacing:1.3px;color:#a1a7b3;font-weight:900}
.selected-letter{display:flex;align-items:center;gap:20px;background:#f8f9ff;border:1px solid #eef0fb;border-radius:16px;padding:14px 18px;margin-bottom:16px}.big-letter{font-size:75px;line-height:1;font-weight:900;color:#6688ef;min-width:88px;text-align:center}.letter-pair{font-size:22px;font-weight:900}.example{font-size:13px;color:#788197;margin:3px 0 10px}.sound-button,.primary-button,.secondary-button,.case-tab{border:0;border-radius:11px;font:inherit;font-weight:800;cursor:pointer;transition:transform .15s,filter .15s}.sound-button:hover,.primary-button:hover,.secondary-button:hover,.case-tab:hover{filter:brightness(.97);transform:translateY(-1px)}.sound-button{background:#fff0d9;color:#b96e2f;padding:9px 12px;font-size:12px}.sound-button span{margin-right:5px}
.alphabet-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.letter-choice{aspect-ratio:1;border:1px solid #edf0f5;background:#fff;border-radius:10px;color:#68738b;font-size:16px;font-weight:900;cursor:pointer}.letter-choice.active{background:#6688ef;color:white;border-color:#6688ef;box-shadow:0 4px 10px #6688ef38}.letter-choice.learned:not(.active){background:#e9f8f0;color:#35a779;border-color:#d6f1e2}.nav-buttons,.board-actions{display:flex;justify-content:space-between;gap:10px;margin-top:17px}.primary-button{background:#6688ef;color:white;padding:11px 15px;font-size:12px}.secondary-button{background:#f1f3f8;color:#667087;padding:11px 14px;font-size:12px}
.helper{color:#8991a1;font-size:12px;margin:-8px 0 14px}.case-tabs{display:flex;background:#f2f4f8;border-radius:11px;padding:4px;margin-bottom:12px}.case-tab{flex:1;padding:8px;background:transparent;color:#8a91a1;font-size:12px}.case-tab.active{background:#fff;color:#526fe0;box-shadow:0 2px 7px #202b4512}
.writing-board{height:248px;position:relative;border:1px solid #e8edf3;border-radius:14px;overflow:hidden;background-color:#fff; background-image:linear-gradient(#f2f5f9 1px,transparent 1px);background-size:100% 62px}.writing-board canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.writing-board #guide-canvas{pointer-events:none}.board-hint{position:absolute;bottom:9px;left:0;right:0;text-align:center;color:#b0b7c3;font-size:10px;pointer-events:none}.feedback{font-size:12px;color:#55a883;text-align:center;min-height:17px;margin:10px 0 0}.tip-card{margin:20px 0 28px;padding:15px 18px;display:flex;gap:13px;align-items:center}.tip-icon{font-size:26px}.tip-card strong{font-size:13px}.tip-card p{margin:3px 0 0;color:#8790a0;font-size:12px}footer{text-align:center;color:#a4a9b3;font-size:11px;padding:0 12px 22px}
@media(max-width:760px){.workspace{grid-template-columns:1fr}.intro{padding:23px 20px;min-height:155px}.hero-art{font-size:55px;margin-right:20px}.top-note{font-size:11px}.panel{padding:18px}.alphabet-grid{grid-template-columns:repeat(7,1fr)}}
@media(max-width:390px){.container{width:calc(100% - 22px)}.selected-letter{gap:8px;padding:12px}.big-letter{font-size:62px;min-width:72px}.alphabet-grid{gap:5px}.letter-choice{font-size:14px}.intro-copy{font-size:12px}.hero-art{margin-right:3px}}
