:root{--ink:#172b50;--blue:#315eea;--mint:#b8f1db;--bg:#f4f7fc;--muted:#60718c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,sans-serif}header,main,footer{max-width:1020px;margin:auto;padding:20px 24px}header{display:flex;justify-content:space-between;align-items:center}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:23px;font-weight:850;letter-spacing:-1px;color:var(--ink);line-height:1}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:7px}.accent{color:var(--blue)}.mark{display:grid;place-items:center;background:var(--blue);color:white;width:44px;height:44px;border-radius:15px}.hero{background:linear-gradient(115deg,#182d59,#315eea);color:white;padding:28px;border-radius:28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.hero h1{font-size:clamp(25px,5vw,41px);margin:7px 0;letter-spacing:-1.3px;line-height:1.15}.hero p{margin:10px 0;color:#e6edff}.eyebrow{font-size:11px;letter-spacing:2px;color:#b8f1db;font-weight:800}.score{min-width:105px;background:#ffffff20;border:1px solid #ffffff44;padding:15px;border-radius:18px;text-align:center}.score strong{display:block;font-size:32px}.score small{color:white}.stats,.games,.levels{display:grid;gap:12px}.stats{grid-template-columns:repeat(3,1fr);margin:16px 0 24px}.stats>div,.games button,.panel,.bankrow{background:white;border:1px solid #e0e7f2;border-radius:18px;padding:17px}.stats strong,.stats small{display:block}.stats strong{font-size:26px}.stats small,.muted,.sectionhead>span,footer{color:var(--muted);font-size:13px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:24px;margin-bottom:12px}.sectionhead h2{margin:0;font-size:20px}.levels{grid-template-columns:repeat(6,1fr)}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.65}.levels button,.ghost{background:white;border:1px solid #dce5f4;border-radius:12px;padding:10px;font-weight:700}.levels button.active{background:var(--ink);color:white;border-color:var(--ink)}.levels small{display:block;font-size:10px;font-weight:500}.progress{height:9px;background:#dfe7f3;border-radius:20px;overflow:hidden;margin-top:15px}.progress div{height:100%;width:0;background:var(--blue);border-radius:20px;transition:width .2s}.games{grid-template-columns:repeat(4,1fr)}.games button{text-align:left;min-height:145px}.games button:hover,.choice:hover{border-color:var(--blue);transform:translateY(-1px)}.games span{display:block;font-size:31px;margin-bottom:10px}.games strong,.games small{display:block}.games small{color:var(--muted);margin-top:5px}.primary{display:inline-block;background:var(--blue);color:white;border:0;border-radius:13px;padding:12px 20px;font-weight:750;text-decoration:none}.login{display:block}.login .primary{background:white;color:var(--blue);margin-top:12px}.panel{margin:20px auto;max-width:720px;padding:24px}.panel .sectionhead{margin-top:0}.prompt{font-size:clamp(24px,5vw,34px);line-height:1.25;margin:18px 0;font-weight:800}.choice{width:100%;display:block;text-align:left;background:#f8faff;border:1px solid #dce5f4;border-radius:13px;padding:13px;margin:9px 0;min-height:48px}.choice.correct{background:#e2f8eb;border-color:#42aa70}.choice.wrong{background:#ffe5e5;border-color:#da7777}.answerbox{display:block;width:100%;border:1px solid #ccd8eb;border-radius:12px;padding:13px;margin:12px 0}.visual{width:min(100%,260px);aspect-ratio:4/3;display:grid;place-items:center;background:#edf3ff;border-radius:15px;font-size:75px;overflow:hidden;margin:12px 0}.visual img{width:100%;height:100%;object-fit:cover}.visualnote{font-size:12px;color:var(--muted)}.result{background:#edf4ff;padding:15px;border-radius:15px;margin:14px 0}.bankrow{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:10px}.bankrow small{display:block;color:var(--muted)}.stars{color:#c28a12;font-size:18px;white-space:nowrap}footer{text-align:center}.letter{display:inline-block;background:#e6edff;border-radius:8px;padding:8px 12px;margin:3px;font-weight:800}.warn{color:#a3481c} [hidden]{display:none!important}:focus-visible{outline:3px solid #e29a26;outline-offset:3px}@media(max-width:650px){header,main,footer{padding:14px}.hero{padding:20px;border-radius:20px}.score{min-width:80px;padding:10px}.stats{gap:7px}.stats>div{padding:10px}.stats small{font-size:11px}.levels{grid-template-columns:repeat(3,1fr)}.games{grid-template-columns:repeat(2,1fr)}.games button{min-height:125px;padding:14px}.panel{padding:16px}.sectionhead h2{font-size:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
