@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@600;700;800;900&display=swap');
:root{--ink:#233e38;--muted:#62736b;--green:#21664a;--mint:#e9f4da;--paper:#fafbf7;--line:#e1e6dc}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:16px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;transition:transform .15s,background .15s}button:hover{transform:translateY(-2px)}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible{outline:3px solid #bf6a1b;outline-offset:4px}::selection{background:#cbe5ac}header{max-width:1200px;margin:auto;height:100px;display:flex;justify-content:space-between;align-items:center;padding:0 32px}.brand{display:flex;align-items:center;gap:11px;font:900 28px 'Nunito',sans-serif;color:var(--ink);text-decoration:none;letter-spacing:-1px}.brand-icon{display:grid;place-items:center;background:#dbeaac;border:2px solid var(--ink);border-radius:10px;width:38px;height:40px;font-size:29px;box-shadow:0 3px 0 #233e38}.brand-dot{color:#d7784c;margin-left:-10px}.quiet{border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:500;min-height:44px;padding:8px 12px}.quiet span{font-size:22px;margin-left:8px}main{max-width:880px;margin:26px auto 0;padding:0 28px}.intro{text-align:center}h1{font:900 clamp(27px,4vw,40px)/1.2 'Nunito',sans-serif;letter-spacing:-1.2px;margin:0 0 12px}.intro p{color:var(--muted);margin:0;font-size:16px}.modes{display:flex;width:max-content;margin:27px auto 25px;background:#edf0e8;padding:5px;border-radius:12px;gap:5px}.modes button{border:0;border-radius:8px;padding:10px 20px;color:#62736b;background:transparent;font-weight:700;min-height:44px}.modes button span{font:800 13px 'Nunito';margin-left:12px;opacity:.65}.modes .selected{background:white;color:var(--green);box-shadow:0 2px 5px #233e3810}.playground{background:white;border:1px solid var(--line);border-radius:22px;overflow:hidden}.game-top{display:flex;align-items:center;justify-content:space-between;padding:20px 28px 15px}.lesson{font-size:11px;letter-spacing:1.8px;font-weight:700;color:var(--muted)}.score{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}.score svg{height:21px;width:21px;fill:#e9b448;stroke:#b18225;stroke-width:1.2}.progress{height:5px;background:#edf1e8;margin:0 28px;border-radius:10px;overflow:hidden}#progress{background:#87ae5c;height:100%;width:0;transition:width .3s}.challenge{position:relative;text-align:center;min-height:294px;padding:25px 20px 14px;overflow:hidden}#instruction{font-size:15px;color:var(--muted);margin:0 0 16px}#target{display:flex;justify-content:center;gap:10px;position:relative;z-index:1}.letter{display:grid;place-items:center;width:105px;height:120px;background:var(--mint);border:2px solid #bad295;border-radius:18px;font:900 82px/1 'Nunito',sans-serif;color:var(--green);box-shadow:0 6px 0 #d4e4bd;transition:background .15s}.letter.done{background:#f1f4ee;border-color:#e1e7db;color:#8d9e82;box-shadow:0 6px 0 #e6ecdf}.letter.waiting{background:#f8f9f5;border-color:#e6e9e1;color:#83917c;box-shadow:0 6px 0 #edf0e8}#feedback{font-size:15px;color:var(--green);min-height:24px;margin:23px 0 0;font-weight:600}.orbit{position:absolute;display:grid;place-items:center;border-radius:20px;font:800 44px 'Nunito';width:64px;height:70px;user-select:none}.orbit-one{left:12%;top:88px;background:#fff0d4;color:#bd8b40;transform:rotate(-14deg)}.orbit-two{right:12%;top:108px;background:#fce7de;color:#c68973;transform:rotate(14deg)}.spark{position:absolute;color:#9cb68a;font-size:24px}.spark-one{left:25%;top:40px}.spark-two{right:25%;top:204px;font-size:18px;color:#dba651}.game-bottom{display:flex;justify-content:space-between;align-items:center;background:#fcfdf9;border-top:1px solid #eff1e9;padding:7px 20px 7px 28px;font-size:12px;color:var(--muted)}.tiny-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#91aa73;margin-right:7px}.keyboard-area{max-width:660px;margin:26px auto 0}#keyboard-hint{text-align:center;font-size:14px;color:var(--muted);margin:0 0 18px}#keyboard-hint strong{color:var(--green);font-weight:600}.key-row{display:flex;justify-content:center;gap:7px;margin:0 0 8px}.key{width:51px;height:49px;border:1px solid #dce2d6;border-bottom:3px solid #d5ddcf;border-radius:8px;background:white;color:#52604d;font:700 19px 'Nunito';padding:0}.key.next{background:#d9ebbe;border-color:#9dbd78;color:#28553a}.key.wrong{background:#ffe8d8;border-color:#dcae88}.keyboard-foot{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:10px 10px 0}footer{display:flex;justify-content:space-between;max-width:1200px;margin:42px auto 0;padding:23px 32px 25px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.primary{border:0;background:var(--green);color:white;padding:12px 25px;border-radius:10px;font-weight:700;margin-top:12px}.skip{position:fixed;left:20px;top:-60px;background:white;padding:12px;z-index:10}.skip:focus{top:10px}.celebrate .letter{animation:pop .45s ease-out}@keyframes pop{50%{transform:translateY(-10px) scale(1.06)}}@media(max-width:600px){header{height:80px;padding:0 20px}.brand{font-size:24px}main{margin:20px auto 0;padding:0 16px}.intro p{font-size:14px}.modes{margin:22px auto}.modes button{padding:9px 15px}.game-top{padding:18px 18px 15px}.lesson{font-size:10px;letter-spacing:1px}.score{font-size:12px}.progress{margin:0 18px}.orbit{display:none}.spark-one{left:12%;top:70px}.spark-two{right:12%;top:194px}.letter{width:80px;height:108px;font-size:66px}.game-bottom{padding:6px 8px 6px 14px;font-size:11px}.game-bottom .quiet{font-size:12px}.key-row{gap:4px}.key{width:calc((100vw - 72px)/10);height:44px;border-radius:6px;font-size:16px}.keyboard-foot{flex-direction:column;align-items:center;gap:7px}.keyboard-area{margin-top:24px}footer{margin-top:30px;padding:20px;justify-content:center}footer span{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
body{min-height:100svh}header{height:72px}main{margin-top:8px}.intro h1{font-size:32px;margin-bottom:6px}.modes{margin:16px auto}.challenge{min-height:240px;padding-top:18px}.letter{height:100px;width:92px;font-size:70px}#feedback{margin-top:18px}.keyboard-area{margin-top:18px}footer{margin-top:20px;padding-top:15px;padding-bottom:15px}@media(max-height:760px){header{height:58px}.intro h1{font-size:27px}.intro p{font-size:14px}.modes{margin:10px auto}.game-top{padding-top:12px;padding-bottom:10px}.challenge{min-height:195px;padding-top:12px}#instruction{margin-bottom:10px}.letter{height:78px;width:76px;font-size:56px}#feedback{margin-top:14px}.keyboard-area{margin-top:12px}#keyboard-hint{margin-bottom:10px}.key{height:44px}.key-row{margin-bottom:5px}.keyboard-foot{padding-top:4px}footer{display:none}}@media(max-height:620px){.intro p,.keyboard-foot{display:none}header{height:48px}.intro h1{font-size:23px}.challenge{min-height:164px}.letter{height:62px;width:65px;font-size:45px}.game-bottom{padding-top:0;padding-bottom:0}#feedback{margin-top:10px}.modes{margin:7px auto}.game-top{padding-top:8px;padding-bottom:7px}.keyboard-area{margin-top:8px}#keyboard-hint{margin-bottom:6px}}
