:root{color-scheme:light;--ink:#202748;--muted:#5b6280;--blue:#29359d;--paper:#f6f6f0;--line:#dedfe9;--green:#146342;--red:#a4263e;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}a{color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ed8300;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,4.7vw,4rem);line-height:1.04;letter-spacing:-.045em}h2{font-size:1.55rem;letter-spacing:-.025em}p{line-height:1.6}button{border:0}button,a{font-weight:700}.skip{position:fixed;top:-100px;left:12px;z-index:50;background:#fff;padding:14px}.skip:focus{top:10px}.site-header{max-width:1256px;margin:auto;min-height:96px;display:flex;align-items:center;justify-content:space-between;padding:20px 32px;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:14px;letter-spacing:.03em}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:500;letter-spacing:.02em;margin-top:5px}.brand-mark{position:relative;width:48px;height:48px;display:grid;place-items:center;background:var(--blue);color:white;border-radius:14px;font-size:20px;letter-spacing:-2px}.brand-mark span{position:absolute;background:#e8bd5b;width:10px;height:10px;right:-3px;top:-3px;border:2px solid var(--paper);border-radius:3px}.site-header nav a{text-decoration:none;font-size:13px;display:inline-flex;gap:16px;align-items:center;min-height:44px}.site-header nav a span{font-size:24px}main{max-width:1256px;margin:auto;padding:0 32px 40px;min-height:calc(100vh - 180px)}.hero{position:relative;background:var(--blue);border-radius:30px;color:white;padding:38px 42px;display:grid;grid-template-columns:1fr 210px;align-items:center;gap:24px;overflow:hidden}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.15em;font-weight:800;margin-bottom:14px}.hero .eyebrow{color:#c5cdfd}.hero h1{margin-bottom:16px}.hero p:last-child{margin-bottom:0;color:#e1e4ff;max-width:620px}.hero h1 span{color:#f6d47d}.hero-art{position:relative;height:192px;display:grid;place-items:center}.word-tile{position:absolute;border-radius:15px;box-shadow:0 8px 0 #0002;padding:14px 23px;font-size:24px;transform:rotate(-10deg);background:#e4edc5;color:#364222;top:13px;left:15px}.word-tile:nth-child(2){background:#f6d47d;color:#583e12;transform:rotate(8deg);top:76px;right:8px;left:auto}.word-tile:nth-child(3){background:#e4d7ff;color:#493770;transform:rotate(-5deg);top:139px;left:10px}.intro-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:28px 0 18px}.intro-bar h2{margin:0}.intro-bar p{font-size:13px;color:var(--muted);margin:6px 0 0}.filters{display:flex;gap:6px;flex-wrap:wrap}.filters button{border:1px solid var(--line);background:white;border-radius:99px;padding:10px 13px;font-size:12px;min-height:42px}.filters button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}.topics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.topic-card{display:flex;flex-direction:column;text-decoration:none;background:white;border:1px solid var(--line);border-radius:20px;padding:21px;min-height:218px;transition:transform .15s,box-shadow .15s}.topic-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #2027480d;border-color:#a2a8cd}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.topic-number{font-size:24px;font-weight:800;color:#29359d99}.tag{border-radius:6px;padding:5px 7px;font-size:10px;line-height:1.3;background:#edf0d9;color:#425229}.l2 .tag{background:#fff0d2;color:#795319}.l3 .tag{background:#e9e1ff;color:#60468c}.topic-card h3{font-size:19px;line-height:1.2;letter-spacing:-.03em;margin-bottom:7px}.topic-card p{font-size:13px;color:var(--muted);font-weight:400;margin-bottom:16px}.card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:14px;border-top:1px solid #ececf2;font-size:11px;color:var(--muted)}.card-bottom b{font-size:20px;color:var(--blue)}.note{font-size:12px;color:var(--muted);margin:22px 0 0}.site-footer{max-width:1256px;margin:auto;padding:22px 32px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted)}.crumb{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:12px;margin:8px 0 26px;color:var(--muted)}.crumb a{text-decoration:none;min-height:35px;display:inline-flex;align-items:center;color:var(--blue)}.topic-hero{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start;margin-bottom:28px}.topic-hero h1{font-size:clamp(2.2rem,4vw,3.6rem);margin-bottom:12px}.topic-hero .subtitle{color:var(--muted);font-size:17px}.rule{border:1px solid #d9debf;background:#edf0de;border-radius:20px;padding:24px}.rule h2{font-size:14px;margin-bottom:10px}.rule p{font-size:14px;margin:0}.example{font-weight:700;display:block;margin-top:14px;color:#344b20}.modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mode-card{border:1px solid var(--line);text-align:left;border-radius:23px;background:white;padding:26px;color:var(--ink);display:flex;flex-direction:column;min-height:260px;text-decoration:none}.mode-card:hover{border-color:var(--blue);box-shadow:0 8px 20px #2027480d}.mode-symbol{width:56px;height:56px;display:grid;place-items:center;border-radius:17px;background:#e6e8ff;color:var(--blue);font-size:23px;margin-bottom:23px;letter-spacing:-.05em}.mode-card:nth-child(2) .mode-symbol{background:#fff0d2;color:#795319}.mode-card:nth-child(3) .mode-symbol{background:#e4edc5;color:#425229}.mode-card h2{font-size:22px;margin-bottom:8px}.mode-card p{font-size:14px;font-weight:400;color:var(--muted);margin-bottom:20px}.mode-card .card-bottom{width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:12px;border:1px solid var(--line);padding:12px 20px;background:white;color:var(--ink);text-decoration:none;font-size:14px}.btn.primary{background:var(--blue);border-color:var(--blue);color:white}.btn:disabled{opacity:.45}.session{max-width:890px;margin:auto}.game-top{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.game-top h1{font-size:clamp(1.45rem,3vw,2rem);margin:0;letter-spacing:-.03em}.game-top .eyebrow{color:var(--muted);margin-bottom:8px}.score{font-size:14px;color:var(--blue);white-space:nowrap}.progress-row{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:12px;margin-bottom:24px}.progress{height:8px;flex:1;border-radius:10px;background:#e0e2ee;overflow:hidden}.progress span{display:block;height:100%;background:var(--blue);transition:width .2s}.play-card{border-radius:26px;border:1px solid var(--line);background:white;padding:30px}.instruction{color:var(--muted);font-size:13px;margin-bottom:18px}.hint{background:#f3f3ed;border-left:3px solid #dbbc6d;padding:12px 15px;font-size:15px;border-radius:0 8px 8px 0;margin-bottom:22px}.hint small{display:block;font-size:10px;letter-spacing:.12em;color:var(--muted);margin-bottom:4px;font-weight:700}.question{font-size:clamp(1.6rem,3.3vw,2.4rem);line-height:1.35;letter-spacing:-.025em;font-weight:700;margin:18px 0 26px;text-align:center;overflow-wrap:anywhere}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.choices.tf{grid-template-columns:repeat(2,minmax(0,1fr))}.choice{background:#f0f1fb;border:2px solid transparent;color:var(--ink);border-radius:15px;min-height:74px;font-size:clamp(1rem,2.2vw,1.3rem);padding:14px;overflow-wrap:anywhere}.choice:not(:disabled):hover{background:#e3e6ff;border-color:#8e97d0}.choice.correct{background:#e2f3e6;border-color:#287047;color:#124b2d}.choice.wrong{background:#ffeaee;border-color:#bb3650;color:#8f2338}.choice.dim{opacity:.6}.feedback{margin-top:22px;background:#edf5ed;border-radius:14px;padding:18px;border:1px solid #bed7c2}.feedback.wrong{background:#fff2e8;border-color:#ecccae}.feedback h2{font-size:17px;margin-bottom:8px}.feedback p{font-size:14px;margin-bottom:8px}.feedback p:last-of-type{margin-bottom:14px;color:#505970;font-size:13px}.feedback .correct-sentence{font-size:19px;color:var(--ink);font-weight:700}.sentence-tray{min-height:105px;display:flex;flex-wrap:wrap;gap:8px;align-content:center;align-items:center;padding:16px;border:2px dashed #aeb6d3;background:#f8f8ff;border-radius:16px;margin:16px 0}.sentence-tray p{margin:0;color:var(--muted);font-size:14px}.word-bank{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:20px 0}.word{border:1px solid #bac2df;background:#edf0ff;color:var(--ink);border-radius:9px;padding:11px 15px;font-size:20px;min-height:48px}.word:disabled{opacity:.28}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:20px}.result{max-width:800px;margin:auto}.result-banner{background:var(--blue);color:white;padding:32px;border-radius:26px;display:flex;align-items:center;gap:28px;margin-bottom:24px}.result-score{width:116px;height:116px;flex-shrink:0;display:grid;place-items:center;border:2px solid #ffffff66;border-radius:50%;font-size:38px;letter-spacing:-.06em;font-weight:800}.result-banner h1{font-size:30px;margin-bottom:10px}.result-banner p{color:#e1e4ff;margin-bottom:0;font-size:14px}.review{display:grid;gap:10px;margin:20px 0}.review-item{padding:18px 20px;border:1px solid var(--line);background:white;border-radius:15px}.review-item p{margin:5px 0 0;font-size:13px;color:var(--muted)}.review-item b{font-size:16px}.empty{text-align:center;padding:50px}.storage-note{font-size:12px;color:var(--muted);line-height:1.6;margin:20px 0 0}@media(min-width:1500px){main{max-width:1380px}.topic-card{min-height:230px}}@media(max-width:1000px){.topics{grid-template-columns:repeat(3,minmax(0,1fr))}.intro-bar{align-items:flex-start;flex-direction:column}.topic-hero{grid-template-columns:1fr 1fr}.mode-card{padding:22px}.hero{padding:32px}.hero h1{font-size:48px}}@media(max-width:700px){.site-header{padding:16px 20px;min-height:82px}.site-header nav a{font-size:11px;gap:6px}.brand{font-size:11px}.brand small{font-size:9px}.brand-mark{height:40px;width:40px;font-size:17px}main{padding:0 20px 30px}.hero{grid-template-columns:1fr;padding:28px;border-radius:23px}.hero-art{display:none}.hero h1{font-size:42px}.hero p{font-size:14px}.topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.topic-card{padding:17px;min-height:210px}.topic-card h3{font-size:17px}.card-top{margin-bottom:18px}.topic-number{font-size:20px}.tag{font-size:9px}.topic-hero{grid-template-columns:1fr;gap:5px}.rule{padding:20px}.modes{grid-template-columns:1fr}.mode-card{min-height:0;padding:22px}.mode-symbol{margin-bottom:14px}.site-footer{padding:20px;flex-direction:column;gap:8px}.play-card{padding:22px 18px}.choices{grid-template-columns:1fr}.choice{min-height:58px}.choices.tf{grid-template-columns:1fr 1fr}.question{font-size:27px}.word{font-size:18px;padding:10px 13px}.result-banner{padding:24px;gap:18px;flex-direction:column;text-align:center}.game-top{align-items:flex-start}.score{font-size:12px}.crumb{margin-bottom:16px}.filters button{font-size:11px}.result-banner h1{font-size:27px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
h1:focus{outline:none}

.lab-link{margin:18px 0 8px;padding:20px 24px;background:#fff0c9;border:1px solid #ddc482;border-radius:20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}.lab-link h2{margin-bottom:4px}.lab-link p{margin:0}.lab-link+.actions,.actions+h2{margin-top:24px}
