:root{--ink:#2b1f1d;--ink2:#6f625f;--bg:#faf8f6;--card:#fff;--line:#e4dedb;--accent:#4a2f2c;--ok:#1f7a3d;--okbg:#e3f4e8;--no:#b3261e;--nobg:#fbe5e3}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55}
main{max-width:820px;margin:0 auto;padding:28px 18px 48px;display:flex;flex-direction:column;gap:18px}
.hero{display:flex;flex-direction:column;gap:8px;padding:8px 0}
h1{margin:0;font-size:36px;line-height:1.1;font-weight:600}
.tag{margin:0;font-size:17px}
.by{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.by img{border-radius:50%;object-fit:cover;width:132px;height:132px;display:block}
.byname{font-size:18px;font-weight:600}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:14px}
.label{font-size:13px;color:var(--ink2);margin-top:4px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
button{font:inherit;cursor:pointer}
.chip,.opt,.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:11px 15px;min-height:44px}
.chip.on,.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary{align-self:flex-start;padding:12px 22px}
.muted{color:var(--ink2);margin:0;font-size:14px}
.meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--ink2)}
.bar{height:6px;border-radius:3px;background:var(--line);overflow:hidden}.bar i{display:block;height:100%;background:var(--accent)}
.q{font-size:18px;margin:0;font-weight:500}
.opts{display:flex;flex-direction:column;gap:10px}
.opt{text-align:left;display:flex;gap:10px;width:100%}
.opt b{flex:0 0 1.4em}
.opt:disabled{cursor:default;color:var(--ink)}
.opt.right{background:var(--okbg);border-color:var(--ok)}
.opt.wrong{background:var(--nobg);border-color:var(--no)}
.review{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.why{border-radius:12px;padding:10px 13px;background:#f4f1ee;font-size:15px}
.why.ok{background:var(--okbg)}.why.sel{background:var(--nobg)}
.why strong{display:block;margin-bottom:2px}
.verdict{font-weight:600;font-size:17px}
.score{font-size:44px;font-weight:600}
footer{color:var(--ink2);font-size:13px;text-align:center;margin-top:6px}
.row{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:600px){h1{font-size:29px}.by img{width:112px;height:112px}.card{padding:16px}.q{font-size:17px}}
[hidden]{display:none!important}
.timer{font-weight:700;font-variant-numeric:tabular-nums}
.timer.low{color:#b3261e}
.nav{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.nav button{width:34px;height:34px;border:1px solid #cfd6e0;background:#fff;border-radius:8px;font-size:13px;cursor:pointer}
.nav button.done{background:#e8f0fe;border-color:#7aa2f7}
.nav button.cur{outline:2px solid #1a3d8f}
.opt.sel{border-color:#1a3d8f;background:#eef3ff}
.row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.sec{display:flex;justify-content:space-between;border-bottom:1px solid #e3e7ee;padding:6px 0}
.rv{border-top:1px solid #e3e7ee;margin-top:16px;padding-top:12px}
.rv .res{font-weight:700}
.rv .res.good{color:#1b7f3b}.rv .res.bad{color:#b3261e}
