@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@600;700;800;900;1000&display=swap');
:root{--ink:#243c36;--muted:#65736b;--green:#22745a;--deep:#1d5143;--yellow:#f5cf66;--cream:#f6f7ef;--line:#dee4d7;--pink:#f2c4b5;--radius:22px;--shadow:0 6px 0 #d9dfd0;--font:'DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--font);font-size:16px}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #1a7797;outline-offset:4px}h1,h2,h3,.rounded,.brand{font-family:'Nunito',system-ui,sans-serif}h1,h2,h3,p{margin:0}svg{vertical-align:middle}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.topbar{height:88px;max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:18px;border-bottom:1px solid var(--line)}.brand{border:0;background:none;display:flex;align-items:center;gap:11px;font-size:25px;font-weight:1000;white-space:nowrap;padding:0}.brandmark{background:var(--green);color:var(--yellow);border-radius:12px;width:40px;height:42px;display:grid;place-items:center;transform:rotate(-5deg)}.nav{display:flex;gap:8px}.nav button{display:flex;gap:8px;align-items:center;border:0;background:none;border-radius:13px;padding:11px 15px;color:var(--muted);font-weight:600;font-size:14px}.nav button.active{background:#e6eddd;color:var(--deep)}.xp{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700}.xp .icon{color:#bf9123}.shell{max-width:1240px;padding:32px 36px 55px;margin:auto}.eyebrow{letter-spacing:2px;font-size:11px;font-weight:800;color:var(--green);text-transform:uppercase}.hero{background:#e8efdf;border:1px solid #d9e2cd;border-radius:28px;min-height:291px;padding:34px 38px;position:relative;overflow:hidden;display:flex;align-items:center;gap:16px}.hero-copy{position:relative;z-index:1;max-width:58%}.hero h1{font-size:44px;line-height:1.08;font-weight:1000;letter-spacing:-1.5px;margin:12px 0 13px}.hero h1 span{color:var(--green)}.hero p{max-width:435px;font-size:15px;line-height:1.65;color:#5b6e60}.hero-art{position:absolute;right:-4px;bottom:-3px;width:45%;height:100%}.hero-tags{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}.tag{font-size:11px;border:1px solid #cbd8bc;padding:6px 10px;border-radius:25px;font-weight:700;background:#f2f5eab3}.layout{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:26px;margin-top:30px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-title h2{font-size:23px;font-weight:900;letter-spacing:-.5px}.section-title small{color:var(--muted);font-size:12px}.levels{display:grid;grid-template-columns:1fr 1fr;gap:14px}.level{position:relative;text-align:left;padding:19px 19px 17px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 4px 0 #e1e5d9;min-height:156px;transition:transform .15s,border-color .15s;display:flex;flex-direction:column;align-items:flex-start}.level:not(:disabled):hover{transform:translateY(-3px);border-color:#77a284}.level.current{border:2px solid var(--green);padding:18px;box-shadow:0 4px 0 #a2bfa0}.level:disabled{background:#f0f2eb;box-shadow:none;color:#899184}.level:disabled .level-icon{filter:grayscale(1);opacity:.5}.level-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:15px}.level-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#e7eecf;color:var(--green)}.level:nth-child(4n+2) .level-icon{background:#f9eac5;color:#957226}.level:nth-child(4n+3) .level-icon{background:#dceaf1;color:#467b91}.level:nth-child(4n) .level-icon{background:#f3e0d4;color:#9b6643}.level-num{font-size:10px;letter-spacing:1.4px;font-weight:700;color:var(--muted)}.level h3{font-size:17px;font-weight:900;line-height:1.2}.level p{font-size:12px;color:var(--muted);margin-top:5px}.level-foot{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:14px;font-size:10px;color:var(--muted)}.badge{background:var(--green);color:white;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700}.stars{letter-spacing:2px;color:#c39521;font-size:15px}.card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:23px;margin-bottom:18px}.card h3{font-size:19px;font-weight:900}.card p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:8px}.start-card{background:var(--deep);color:#fff;border-color:var(--deep)}.start-card .eyebrow{color:#b9d5a1}.start-card h3{font-size:26px;margin-top:9px;line-height:1.2}.start-card p{color:#d3e2d4}.btn{border:0;background:var(--yellow);color:#374331;padding:14px 22px;border-radius:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;box-shadow:0 3px 0 #d8b04c;transition:transform .15s}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(2px);box-shadow:none}.btn.green{background:var(--green);color:white;box-shadow:0 3px 0 #16533f}.btn.secondary{background:white;color:var(--ink);border:1px solid var(--line);box-shadow:0 3px 0 #e5e8de}.btn.small{font-size:13px;padding:10px 14px;min-height:42px}.full{width:100%}.start-card .btn{margin-top:20px}.meta{font-size:11px!important;display:flex;align-items:center;gap:6px}.progress-line{display:flex;justify-content:space-between;align-items:baseline;margin:18px 0 8px}.progress-line strong{font-family:'Nunito',sans-serif;font-size:30px;font-weight:1000}.progress-line span{color:var(--muted);font-size:12px}.bar{height:9px;background:#edf0e7;border-radius:20px;overflow:hidden}.bar>i{display:block;height:100%;background:var(--green);border-radius:20px;transition:width .4s}.mini-stat{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:12px}.dot{width:7px;height:7px;display:inline-block;background:#78ad80;border-radius:50%;margin-right:6px}.dot.amber{background:#e1b853}.text-btn{background:transparent;border:0;color:var(--green);padding:9px 0;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:4px}.footnote{font-size:11px;color:#72806f;display:flex;gap:7px;line-height:1.6;margin-top:25px}.practice-note{margin-top:18px;padding:16px 18px;border:1px dashed #cbd6bf;border-radius:15px;color:var(--muted);font-size:12px;line-height:1.6}.page-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:10px 0 28px}.page-heading h1{font-size:32px;font-weight:1000;letter-spacing:-1px}.page-heading p{color:var(--muted);font-size:14px;margin-top:8px}.game-shell{max-width:850px;margin:0 auto;padding-top:4px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.game-top .text-btn{font-size:13px;text-decoration:none}.game-progress{flex:1;max-width:430px}.game-progress .bar{height:11px}.game-count{font-size:13px;color:var(--muted);margin-bottom:8px;display:flex;justify-content:space-between}.question-card{background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:27px;margin-top:27px;padding:30px 42px 35px;text-align:center;min-height:440px}.question-card .eyebrow{color:#6c8169}.question-card h2{font-size:17px;font-family:var(--font);font-weight:500;margin-top:20px;line-height:1.45}.question-main{font-family:'Nunito',sans-serif;font-size:90px;font-weight:1000;letter-spacing:-2px;margin:20px 0;line-height:1.2}.question-main.words{font-size:43px;letter-spacing:-1px}.question-main.sentence{font-size:36px;letter-spacing:-.6px;margin-bottom:10px}.translation{font-size:13px;color:var(--muted);min-height:20px;margin-bottom:25px}.blank{color:var(--green);border-bottom:3px dashed #9fb78e;display:inline-block;min-width:65px}.options{display:grid;grid-template-columns:1fr 1fr;gap:13px;max-width:590px;margin:25px auto 0}.options.three{grid-template-columns:repeat(3,1fr)}.option{position:relative;border:2px solid #e1e7dc;background:#fff;border-radius:14px;padding:18px 12px;font-size:19px;font-weight:700;min-height:65px;box-shadow:0 3px 0 #e6ebdf;overflow-wrap:anywhere}.option:hover:not(:disabled){border-color:#78a27c;background:#f6f9f0}.option.right{background:#e4f2df;border-color:#6b9b60;color:#2d622b}.option.wrong{background:#fff0e9;border-color:#d99b80;color:#965a3c}.input-row{max-width:480px;display:flex;gap:12px;margin:27px auto 0}.answer-input{min-width:0;width:100%;border:2px solid #cdddc4;border-radius:14px;font-size:22px;padding:15px;text-align:center;color:var(--ink);background:#fcfdf9}.answer-input::placeholder{color:#a3ac9e;font-size:15px}.assist{display:flex;gap:16px;justify-content:center;align-items:center;margin-top:19px;min-height:35px}.assist button{border:0;background:none;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;padding:7px}.assist .icon{width:16px;height:16px}.hint-box{background:#fff8dd;border:1px solid #f0df9c;border-radius:14px;padding:14px;font-size:14px;line-height:1.6;margin:14px auto;max-width:590px;text-align:left}.feedback{margin-top:22px;min-height:107px;background:#e8f1e1;border:1px solid #cbdcc0;border-radius:18px;padding:20px 24px;display:flex;align-items:center;gap:20px;justify-content:space-between;text-align:left}.feedback.wrong{background:#fff1e7;border-color:#ecd4bf}.feedback.neutral{background:#edf1f4;border-color:#d9e0e4}.feedback h3{font-size:19px}.feedback p{font-size:13px;line-height:1.6;margin-top:5px}.feedback .btn{flex-shrink:0}.round-tip{color:var(--muted);font-size:12px;text-align:center;margin-top:24px;line-height:1.7}.result-panel{max-width:680px;text-align:center;background:white;border:1px solid var(--line);border-radius:28px;padding:34px;margin:20px auto;box-shadow:var(--shadow)}.result-icon{display:grid;place-items:center;background:#f7e7b8;color:#a97718;width:80px;height:80px;border-radius:25px;margin:0 auto 18px;transform:rotate(-5deg)}.result-icon .icon{width:43px;height:43px}.result-panel h1{font-size:34px;font-weight:1000;letter-spacing:-1px}.score{font-family:'Nunito',sans-serif;font-size:64px;font-weight:1000;color:var(--green);margin:20px}.score small{font-size:25px;color:var(--muted)}.result-panel p{font-size:14px;line-height:1.7;color:var(--muted)}.actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px}.mistake-list{margin-top:24px;text-align:left}.mistake{border-bottom:1px solid var(--line);padding:12px 0;font-size:14px;display:flex;justify-content:space-between;gap:12px}.mistake span{color:var(--muted);font-size:12px;display:block;margin-top:3px}.book-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px;align-items:start}.book-grid .card{margin:0}.table{width:100%;border-collapse:collapse;margin-top:16px;font-size:14px}.table th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:1px;padding:12px 8px}.table td{border-top:1px solid var(--line);padding:11px 8px}.table td strong{color:var(--green)}.callout{padding:16px;background:#f7f0d9;border-radius:14px;font-size:13px;line-height:1.8;margin-top:18px}.number-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:20px}.num-cell{border:1px solid var(--line);border-radius:10px;background:white;padding:12px 4px;font-size:15px;font-weight:700}.num-cell.solid{background:#dcecd4;border-color:#b0c8a2}.num-cell.learning{background:#fff2cc;border-color:#ebd9a2}.num-cell.waiting,.num-cell.due{background:#e1edf7;border-color:#b7d3e9}.num-cell.error{box-shadow:inset 0 -3px #dc987a}.status-pill{display:inline-flex;align-items:center;background:#eaf0e2;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:700;margin:5px}.status-pill.waiting{background:#e3eef6}.status-pill.error{background:#faeadf}.all-numbers{grid-column:1/-1}.all-numbers .number-grid{grid-template-columns:repeat(10,1fr)}.legend{font-size:12px;color:var(--muted);line-height:1.8;margin-top:15px}.chip-tabs{display:flex;gap:8px;margin-bottom:19px}.chip-tabs button{border:1px solid var(--line);background:#fff;border-radius:25px;padding:9px 16px;font-size:12px}.chip-tabs button.active{background:var(--green);border-color:var(--green);color:#fff}.sound-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.sound-btn{border:1px solid var(--line);background:white;border-radius:9px;padding:7px;color:var(--green)}.sound-btn .icon{width:18px;height:18px}dialog{border:1px solid var(--line);border-radius:25px;padding:28px;max-width:480px;width:calc(100% - 36px);color:var(--ink);box-shadow:0 25px 100px #162e3333}dialog::backdrop{background:#142a3066;backdrop-filter:blur(3px)}dialog h2{font-size:26px;font-weight:1000;margin-bottom:13px}dialog p{font-size:14px;line-height:1.8;color:var(--muted)}dialog .actions{justify-content:flex-end}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--deep);color:white;padding:13px 20px;border-radius:13px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90%;font-size:13px;text-align:center}#toast.show{opacity:1}.screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.bonus{margin-top:20px}.bonus summary{cursor:pointer;font-size:14px;font-weight:700}.bonus p{font-size:13px;line-height:1.8}.book-title{display:flex;align-items:center;gap:10px}.book-title .icon{color:var(--green)}.resume-label{font-size:11px;color:#d4e5cf}.history-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;font-size:13px}.history-row small{color:var(--muted);display:block;margin-top:4px}.storage-alert{background:#fff1d1;padding:12px 20px;font-size:13px;text-align:center}.empty{padding:20px 0;font-size:14px;color:var(--muted)}
@media(min-width:1100px){.level{min-height:172px}.levels{gap:16px}}
@media(max-width:900px){.topbar{padding:0 23px}.shell{padding:25px 23px}.layout{grid-template-columns:minmax(0,1fr) 250px;gap:19px}.hero{padding:30px}.hero h1{font-size:37px}.hero-copy{max-width:60%}.nav button{padding:10px;font-size:12px}.nav .icon{width:18px}.brand{font-size:21px}.card{padding:19px}.level{padding:16px}.level.current{padding:15px}.level h3{font-size:16px}.level p{font-size:11px}.level-num{font-size:9px}.all-numbers .number-grid{grid-template-columns:repeat(10,1fr)}}
@media(max-width:720px){.topbar{height:auto;min-height:78px;padding:19px 19px 10px;flex-wrap:wrap;gap:10px}.brand{font-size:23px}.xp{margin-left:auto}.nav{width:100%;order:3;justify-content:center;margin-top:6px}.nav button{flex:1;justify-content:center;max-width:170px;font-size:12px;padding:10px 5px}.shell{padding:20px 17px 35px}.hero{min-height:290px;padding:25px 22px;align-items:flex-start}.hero h1{font-size:34px;max-width:320px;margin-top:10px}.hero-copy{max-width:77%}.hero p{font-size:13px;max-width:255px}.hero-art{width:53%;height:200px;right:-20px;bottom:-8px;opacity:.9}.hero-tags{max-width:230px;margin-top:18px;gap:6px}.tag{font-size:10px;padding:5px 8px}.layout{display:flex;flex-direction:column;gap:24px;margin-top:22px}.sidebar{display:contents}.start-card{order:-1;margin:0;padding:20px;display:grid;grid-template-columns:1fr auto;gap:0 15px}.start-card .eyebrow,.start-card h3,.start-card p{grid-column:1}.start-card h3{font-size:22px}.start-card .btn{grid-column:2;grid-row:1/4;align-self:center;margin:0;padding:12px 18px}.start-card .btn .icon{display:none}.start-card .meta{margin-top:8px;font-size:10px!important}.start-card p:not(.meta){display:none}.sidebar .card:not(.start-card){margin-bottom:0}.path{order:0}.section-title h2{font-size:21px}.levels{gap:12px}.level{min-height:165px;padding:15px}.level.current{padding:14px}.level h3{font-size:16px}.level p{line-height:1.5;min-height:28px}.level-top{margin-bottom:12px}.level-foot{margin-top:auto;padding-top:12px}.practice-note{font-size:11px}.game-shell{padding-top:0}.game-top{gap:10px}.game-count{font-size:11px}.game-top .text-btn{font-size:12px}.question-card{padding:27px 19px 25px;min-height:380px;margin-top:20px}.question-card h2{font-size:15px}.question-main{font-size:80px;margin:22px 0}.question-main.words{font-size:36px}.question-main.sentence{font-size:28px}.options{gap:10px}.option{font-size:17px;padding:16px 8px;min-height:61px}.options.three .option{font-size:23px}.input-row{flex-direction:column;margin-top:22px}.answer-input{font-size:22px}.input-row .btn{min-height:48px}.feedback{padding:18px;display:block}.feedback .btn{width:100%;margin-top:16px}.feedback h3{font-size:18px}.feedback p{font-size:13px}.page-heading{align-items:flex-start}.page-heading h1{font-size:28px}.page-heading p{font-size:13px}.book-grid{grid-template-columns:1fr}.all-numbers .number-grid{grid-template-columns:repeat(5,1fr)}.all-numbers{grid-column:auto}.result-panel{padding:28px 20px}.result-panel h1{font-size:29px}.result-panel .actions{flex-direction:column}.score{font-size:56px}.actions .btn{width:100%}.page-heading .btn{padding:10px 13px;font-size:12px}.question-main.sentence .blank{min-width:52px}.footnote{margin-top:20px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.key-hint{position:absolute;left:9px;top:7px;font:10px var(--font);color:var(--muted);background:#edf0e7;border-radius:4px;padding:2px 5px}.desktop-tip{display:block;margin-top:5px;font-size:11px;color:var(--muted)}
@media(pointer:coarse){.key-hint,.desktop-tip{display:none}}
@media(min-width:721px) and (max-height:900px){.game-shell .question-card{min-height:340px;padding:23px 35px}.game-shell .question-main{font-size:72px;margin:16px 0}.game-shell .question-main.words{font-size:38px}.game-shell .question-main.sentence{font-size:32px}.game-shell .question-card h2{margin-top:14px}.game-shell .options{margin-top:18px}.game-shell .feedback{min-height:90px;padding:15px 21px}.game-shell .assist{margin-top:13px}.game-shell .round-tip{margin-top:16px}}

.level.bonus-level{grid-column:1/-1;background:#fff6df;border-color:#dab55b;min-height:155px}.level.bonus-level .level-icon{background:#f7d47b;color:#785215}.level.bonus-level h3{font-size:21px}.level.bonus-level .level-foot{font-weight:700;color:#84672c}.question-main.words{overflow-wrap:anywhere}
