:root { color-scheme:light; --ink:#28302c; --muted:#747b75; --line:#dce2d4; --paper:#f1f5e9; --white:#fffefa; --green:#9ec45a; --green-dark:#5b7334; --red:#a94e43; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--paper); color:var(--ink); font:15px/1.55 "Segoe UI",Arial,sans-serif; }
.reading-shell { width:min(920px,calc(100% - 32px)); margin:auto; }
.topbar { height:75px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.back,.brand { color:var(--ink); text-decoration:none; font-size:12px; font-weight:700; }
.back { color:var(--muted); }
.brand { display:flex; align-items:center; gap:8px; font-size:10px; letter-spacing:.1em; }
.brand b { display:grid; width:25px; height:25px; place-items:center; border-radius:8px 8px 8px 2px; background:var(--ink); color:#e6f2cf; font:italic 16px Georgia,serif; }
.lesson-badge { padding:6px 10px; border:1px solid var(--line); border-radius:99px; color:var(--green-dark); font:10px Consolas,monospace; }
.heading { padding:35px 0 19px; }
.eyebrow { margin:0 0 7px; color:#8c9583; font:10px Consolas,monospace; letter-spacing:.15em; }
.heading h1 { margin:0; font-size:clamp(37px,6vw,57px); line-height:1; letter-spacing:-.07em; }
.heading h1 span { color:#7b9847; }
.heading>p:last-child { margin:10px 0 0; color:var(--muted); font-size:13px; }
.panel { width:min(630px,100%); margin:35px auto; padding:33px; border:1px solid var(--line); border-radius:18px; background:var(--white); text-align:center; box-shadow:0 12px 25px #26300b0a; }
.loading { color:var(--muted); }
.stats { display:flex; gap:10px; align-items:stretch; margin:20px 0 14px; padding:11px; border:1px solid var(--line); border-radius:13px; background:var(--white); }
.stats>div { display:flex; min-width:90px; flex-direction:column; justify-content:center; padding:0 8px; }
.stats small { color:#858c80; font:9px Consolas,monospace; letter-spacing:.08em; }
.stats b { font-size:18px; }
.stats .progress { flex:1; }
.progress small { display:flex; justify-content:space-between; }
.progress i { height:7px; overflow:hidden; margin-top:7px; border-radius:99px; background:#e9ecdf; }
.progress i span { display:block; width:0; height:100%; border-radius:inherit; background:var(--green); transition:width .2s; }
.passage-card { margin:14px 0; padding:24px clamp(18px,4vw,38px); border:1px solid var(--line); border-radius:17px; background:var(--white); box-shadow:0 8px 20px #26300b08; }
.passage-card>.eyebrow { margin-bottom:13px; }
.passage-text { color:#323a35; font-size:17px; line-height:1.85; }
.passage-text p { display:inline; margin:0; }
.passage-text p:not(:last-child)::after { content:' '; }
.passage-compact { padding:17px 22px; }
.passage-compact>.eyebrow { margin-bottom:8px; }
.passage-compact .passage-text { font-size:14px; line-height:1.75; }
.start-row { display:flex; justify-content:center; margin:20px 0 35px; }
.button { display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:16px; padding:0 18px; border:0; border-radius:10px; background:var(--ink); color:white; font:700 12px "Segoe UI",Arial,sans-serif; text-decoration:none; cursor:pointer; }
.button:hover { transform:translateY(-2px); }
.button:focus-visible,.answer-option:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.button.secondary { border:1px solid var(--line); background:transparent; color:var(--ink); }
.question-card { margin:14px 0 40px; padding:clamp(20px,5vw,35px); border:1px solid var(--line); border-radius:17px; background:var(--white); box-shadow:0 8px 20px #26300b08; text-align:center; }
.question-card h2 { margin:8px 0 20px; font-size:clamp(20px,4vw,27px); letter-spacing:-.04em; }
.answer-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.answer-option { min-height:56px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fbfcf8; color:var(--ink); font:700 13px "Segoe UI",Arial,sans-serif; cursor:pointer; }
.answer-option:hover:not(:disabled) { background:#f0f5e5; transform:translateY(-2px); }
.answer-option.correct { border-color:#b8d487; background:#eef5df; color:#4f6a2c; }
.answer-option.incorrect { border-color:#dba8a0; background:#fff0ed; color:#9a443b; }
.answer-option:disabled { cursor:default; }
.feedback { min-height:24px; margin:13px 0 9px; color:var(--muted); font-size:12px; }
.feedback.good { color:#55742c; }
.feedback.bad { color:var(--red); }
.result { margin-top:45px; }
.result-mark { display:grid; width:56px; height:56px; place-items:center; margin:0 auto 15px; border-radius:18px; background:#eaf2da; color:var(--green-dark); font-size:27px; }
.result h2 { margin:0 0 8px; font-size:26px; }
.result>p:not(.eyebrow) { max-width:450px; margin:0 auto 17px; color:var(--muted); font-size:12px; }
.actions { display:flex; justify-content:center; gap:9px; flex-wrap:wrap; margin-top:17px; }
.error { border-color:#e3aaa3; background:#fff1ef; color:#883d37; }
[hidden] { display:none!important; }
footer { margin:38px 0 20px; padding-top:14px; border-top:1px solid var(--line); color:#8b9087; font:9px Consolas,monospace; text-align:center; }
@media(max-width:600px) {
  .reading-shell { width:calc(100% - 22px); }
  .topbar { height:65px; }
  .heading { padding-top:27px; }
  .stats { gap:3px; padding:8px 4px; }
  .stats>div { min-width:62px; padding:0 5px; }
  .stats small,.progress small { font-size:8px; }
  .stats b { font-size:16px; }
  .passage-card { padding:19px 15px; }
  .passage-text { font-size:15px; line-height:1.8; }
  .passage-compact .passage-text { font-size:13px; }
  .answer-options { grid-template-columns:1fr; gap:8px; }
  .answer-option { min-height:46px; }
}
