/* Design system from the Stitch "Orange MCQ Learning App" project:
   Plus Jakarta Sans, road-orange primary on a cool light surface, white cards,
   traffic green / warning amber / regulatory red for status. Light theme only. */
:root {
  --bg: #f4f7fc; --surface: #ffffff; --soft: #eff4ff; --soft-2: #e5eeff;
  --line: #e2e8f0; --line-2: #d3e4fe;
  --ink: #0b1c30; --ink-2: #213145; --muted: #5c647a; --faint: #8a93a8;
  --orange: #f97316; --orange-d: #ea580c; --orange-dd: #9d4300; --orange-bg: #fff4ec; --orange-line: #ffd2b3;
  --green: #10b981; --green-d: #047857; --green-bg: #ecfdf5; --green-line: #a7f3d0;
  --red: #ef4444; --red-d: #b91c1c; --red-bg: #fef2f2; --red-line: #fecaca;
  --amber: #f59e0b; --amber-d: #b45309; --amber-bg: #fffbeb; --amber-line: #fde68a;
  --navy: #0f1d33;
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 28, 48, .04), 0 4px 16px rgba(11, 28, 48, .04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--orange-d); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.ms { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  display: inline-block; vertical-align: middle; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; }
.ms.sm { font-size: 18px; } .ms.lg { font-size: 28px; }
.ms.fill { font-variation-settings: "FILL" 1; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; display: grid; place-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 15px; font-weight: 800; }
.logo-text small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.on { color: #fff; background: var(--orange); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.profile { position: relative; }
.profile-btn { position: relative; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.profile-btn:hover, .profile-btn[aria-expanded="true"] { border-color: var(--orange); }
.profile-btn:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; font-weight: 800; font-size: 14px; background: var(--orange); color: #fff; }
.avatar.guest { background: var(--soft-2); color: var(--muted); }
.avatar.lg { width: 44px; height: 44px; font-size: 18px; flex: none; }
.profile-btn .badge { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); }
.profile-btn .badge.spin { background: var(--amber); }
.profile-btn .badge.bad { background: var(--red); }
.profile-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: calc(100vw - 32px); padding: 16px; z-index: 30;
  box-shadow: 0 12px 40px rgba(11, 28, 48, .16); display: grid; gap: 10px; }
.profile-menu[hidden] { display: none; }
.pm-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pm-head > div { min-width: 0; }
.pm-head b { display: block; font-size: 15px; }
.pm-head small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-d); background: var(--green-bg); border-radius: 8px; padding: 6px 10px; }
.pm-status.bad { color: var(--red-d); background: var(--red-bg); }
.pm-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.pm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left; }
.pm-item:hover { background: var(--soft); }
.pm-item.danger { color: var(--red-d); }
.pm-item.danger:hover { background: var(--red-bg); }
.pm-signin { width: 100%; }

/* ---------- primitives ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 24px 20px 56px; min-height: 60vh; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; transition: background .15s, transform .06s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(249, 115, 22, .28); }
.btn.primary:hover { background: var(--orange-d); }
.btn.soft { background: var(--soft); color: var(--ink-2); }
.btn.soft:hover { background: var(--soft-2); }
.btn.ghost { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange-d); }
.btn.go { background: var(--green); color: #fff; }
.btn.go:hover { background: var(--green-d); }
.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn:focus-visible, .opt:focus-visible, .click:focus-visible, .pal button:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green-d); border: 1px solid var(--green-line); }
.pill.orange { background: var(--orange-bg); color: var(--orange-dd); border: 1px solid var(--orange-line); }
.pill.amber { background: var(--amber-bg); color: var(--amber-d); border: 1px solid var(--amber-line); }
.pill.red { background: var(--red-bg); color: var(--red-d); border: 1px solid var(--red-line); }
.pill.grey { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-d); }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.section-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.section-h h2 { font-size: 24px; font-weight: 800; }
.section-h p { margin: 4px 0 0; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--orange); transition: width .3s; }
.bar.green i { background: var(--green); }
.bar.red i { background: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 4px 8px; }
.ring { --p: 0; --c: var(--orange); width: 132px; height: 132px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--soft-2) 0); }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring b { display: block; font-size: 30px; font-weight: 800; line-height: 1; }
.ring small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ring.sm { width: 64px; height: 64px; } .ring.sm > div { width: 50px; height: 50px; } .ring.sm b { font-size: 15px; }
.center { text-align: center; color: var(--muted); padding: 60px 0; }
.click { cursor: pointer; transition: border-color .15s, transform .1s, box-shadow .15s; }
@media (hover: hover) { .click:hover { border-color: var(--orange-line); box-shadow: 0 6px 24px rgba(249, 115, 22, .1); } }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- overview ---------- */
.hero { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 36px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 0% 0%, rgba(249, 115, 22, .08), transparent 70%); pointer-events: none; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.1; margin: 14px 0 14px; }
.hero h1 span { color: var(--orange-d); }
.hero p.lede { font-size: 17px; color: var(--muted); max-width: 54ch; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.ready { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--surface); position: relative; }
.ready-top { display: flex; align-items: center; gap: 18px; margin: 14px 0 16px; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; }
.stat { padding: 18px 20px; }
.stat .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; justify-content: space-between; }
.stat .val { font-size: 30px; font-weight: 800; margin-top: 8px; line-height: 1.1; }
.stat .val small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.topic { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; }
.topic + .topic { border-top: 1px solid var(--line); }
.topic .num { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-bg); color: var(--orange-dd); display: grid; place-items: center; font-weight: 800; }
.topic h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.topic .share { text-align: right; min-width: 120px; }
.topic .share b { font-size: 18px; font-weight: 800; }
.topic .share small { display: block; font-size: 12px; color: var(--muted); }
.step { padding: 22px; }
.step .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--orange-d); margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--ink-2); font-size: 14px; margin-top: 16px; }
.note .ms { color: var(--amber-d); }
.download { margin-top: 40px; padding: 36px; border-radius: 20px; background: radial-gradient(500px 260px at 100% 100%, rgba(249, 115, 22, .32), transparent 70%), var(--navy); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; overflow: hidden; }
.download h2 { font-size: 28px; font-weight: 800; color: #fff; }
.download p { color: #c9d4e6; margin: 10px 0 18px; max-width: 52ch; }
.download ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.download li { display: flex; gap: 8px; align-items: center; color: #e6edf7; font-size: 14px; }
.download li .ms { color: var(--orange); }
.download .shot { width: 230px; border-radius: 22px; border: 6px solid #22324d; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); display: block; }
.play-btn { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); text-decoration: none; padding: 12px 22px; border-radius: 14px; font-weight: 800; font-size: 16px; }
.play-btn:hover { background: var(--orange-bg); }
.play-btn svg { width: 26px; height: 26px; }
.promo { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; }

/* ---------- chapters ---------- */
.page-h { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 32px; font-weight: 800; margin-top: 8px; }
.page-h p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.mini-stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.mini-stats div { padding: 12px 20px; border-left: 1px solid var(--line); }
.mini-stats div:first-child { border-left: 0; }
.mini-stats small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.mini-stats b { font-size: 20px; font-weight: 800; }
.quick { display: flex; gap: 16px; align-items: center; padding: 20px; }
.quick .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.quick h3 { font-size: 16px; font-weight: 700; }
.quick p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.ch-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ch-card .top { display: flex; justify-content: space-between; align-items: center; }
.ch-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.ch-card .foot-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.ch-card .foot-row small { font-size: 12px; color: var(--muted); font-weight: 600; }
.ch-card .foot-row b { display: block; font-size: 14px; }
.ch-hero { display: flex; gap: 20px; align-items: center; padding: 22px 24px; flex-wrap: wrap; }
.ch-hero h1 { font-size: 26px; font-weight: 800; margin: 4px 0; line-height: 1.25; }
.cats { padding: 6px 0; }
.cat { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-radius: 0; box-shadow: none !important; }
.cat + .cat::before { content: ""; position: absolute; left: 39px; top: -14px; height: 28px; width: 2px; background: var(--line-2); }
.cat.done + .cat::before { background: var(--green-line); }
.cat .node { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--surface); color: var(--muted); border: 2px solid var(--line-2); }
.cat.current .node { border-color: var(--orange); color: var(--orange-dd); background: var(--orange-bg); }
.cat.done .node { border-color: var(--green); background: var(--green); color: #fff; }
.cat .body { min-width: 0; display: grid; gap: 6px; }
.cat .t small { display: block; font-size: 12px; font-weight: 700; color: var(--faint); }
.cat .t b { font-size: 15px; font-weight: 700; }
.cat .fine { margin: 0; }
@media (hover: hover) { .cat:hover { background: #fffaf6; } }

/* ---------- quiz ---------- */
.q-head { padding: 16px 22px; margin-bottom: 20px; }
.q-head .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.q-head .title { flex: 1; min-width: 0; }
.q-head .title small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.q-head .title b { font-size: 16px; font-weight: 700; }
.q-head .prog { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 8px; }
.q-head .prog span:last-child { color: var(--orange-d); }
.timer { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--soft); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.timer .ms { color: var(--orange-d); }
.timer.low { background: var(--red-bg); color: var(--red-d); }
.timer.low .ms { color: var(--red); }
.q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.q-card { padding: 28px; }
.q-card .chips { margin-bottom: 14px; }
.q-text { font-size: 22px; font-weight: 700; line-height: 1.35; margin: 0 0 18px; }
.q-fig { margin: 0 0 20px; padding: 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); text-align: center; }
.q-fig img { max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 10px; background: #fff; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 15.5px; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 10px; transition: border-color .12s, background .12s, transform .06s; }
.opt .k { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--soft); color: var(--muted); }
.opt .t { flex: 1; }
.opt .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); }
@media (hover: hover) { .opt:not(:disabled):hover { border-color: var(--orange-line); background: #fffaf6; } }
.opt.sel { border-color: var(--orange); background: var(--orange-bg); }
.opt.sel .k { background: var(--orange); color: #fff; }
.opt.sel .dot { border: 6px solid var(--orange); }
.opt.right { border-color: var(--green); background: var(--green-bg); }
.opt.right .k { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-bg); }
.opt.wrong .k { background: var(--red); color: #fff; }
.opt:disabled { cursor: default; }
.explain { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; }
.explain.ok { background: var(--green-bg); border: 1px solid var(--green-line); color: #065f46; }
.explain.bad { background: var(--red-bg); border: 1px solid var(--red-line); color: #7f1d1d; }
.q-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.q-nav .r { display: flex; gap: 10px; margin-left: auto; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.side .card { padding: 20px; }
.side h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.counts div { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--soft); }
.counts b { display: block; font-size: 20px; font-weight: 800; }
.counts small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.counts .o { background: var(--orange-bg); } .counts .o b { color: var(--orange-dd); }
.counts .a { background: var(--amber-bg); } .counts .a b { color: var(--amber-d); }
.counts .g { background: var(--green-bg); } .counts .g b { color: var(--green-d); }
.counts .r { background: var(--red-bg); } .counts .r b { color: var(--red-d); }
.pal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pal button { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; position: relative; }
.pal button.done { background: var(--orange); color: #fff; border-color: var(--orange); }
.pal button.now { background: var(--ink); color: #fff; border-color: var(--ink); }
.pal button.flag::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 12px 0 16px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.kbd-list { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.kbd-list div { display: flex; justify-content: space-between; align-items: center; }
kbd { background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font: 600 12px/1.6 ui-monospace, monospace; color: var(--ink-2); }
.tip { background: var(--orange-bg) !important; border-color: var(--orange-line) !important; }
.tip p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tip h3 .ms { color: var(--orange-d); }

/* ---------- results ---------- */
.result-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 32px; align-items: center; }
.result-hero h1 { font-size: 34px; font-weight: 800; margin: 12px 0 6px; }
.result-hero h1 .ok { color: var(--green-d); } .result-hero h1 .no { color: var(--red-d); }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 10px; margin: 18px 0 22px; }
.mini div { padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.mini small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.mini b { font-size: 20px; font-weight: 800; }
.qmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.qmap a { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; text-decoration: none; color: #fff; }
.qmap .c { background: var(--green); } .qmap .w { background: var(--red); } .qmap .u { background: var(--faint); }
.brk { display: grid; gap: 14px; }
.brk .row { display: grid; grid-template-columns: 1fr 70px; gap: 6px 14px; align-items: center; font-size: 14px; }
.brk .row .bar { grid-column: 1 / -1; }
.brk .row b { text-align: right; }
.rev { padding: 22px; margin-top: 14px; scroll-margin-top: 90px; }
.rev .q-text { font-size: 17px; margin-bottom: 12px; }
.rev .q-fig img { max-height: 200px; }
.ans { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; margin-top: 8px; font-size: 14.5px; }
.ans small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ans.yours { background: var(--red-bg); color: #7f1d1d; } .ans.yours .ms { color: var(--red); }
.ans.correct { background: var(--green-bg); color: #065f46; } .ans.correct .ms { color: var(--green); }
.ans.why { background: var(--soft); color: var(--ink-2); } .ans.why .ms { color: var(--muted); }

/* ---------- signs ---------- */
.flash { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; cursor: pointer; }
.flash img { width: 200px; height: 200px; object-fit: contain; background: #fff; border-radius: 18px; border: 1px solid var(--line); padding: 10px; }
.flash h2 { font-size: 24px; font-weight: 800; margin: 20px 0 6px; }
.flash p { color: var(--muted); max-width: 46ch; margin: 0; }
.flash .hint { margin-top: 20px; font-weight: 700; color: var(--orange-d); display: flex; gap: 6px; align-items: center; }
.know { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.know .no { background: var(--red-bg); color: var(--red-d); border: 1px solid var(--red-line); }
.know .yes { background: var(--green-bg); color: var(--green-d); border: 1px solid var(--green-line); }

/* ---------- ads (dormant until AdSense ids are set) ---------- */
.rail { display: none; }
@media (min-width: 1600px) {
  .rail { display: block; position: fixed; top: 96px; width: 160px; min-height: 600px; z-index: 1; }
  #rail-l { left: calc(50% - 600px - 184px); }
  #rail-r { right: calc(50% - 600px - 184px); }
}
.ad-banner { margin-top: 24px; text-align: center; }
.ad-side { text-align: center; }
.ad-side small { display: block; font-size: 11px; color: var(--faint); margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.rail:empty, .ad-banner:empty { display: none; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 28px 20px 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; font-size: 13.5px; color: var(--muted); }
.foot-in b { color: var(--ink); }
.foot-in p { margin: 6px 0 0; max-width: 70ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; justify-content: flex-end; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--orange-d); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .q-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar-in { flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .top-actions { margin-left: auto; }
  .g3 { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; padding: 28px 22px; }
  .download .shot { display: none; }
  .download ul { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .page { padding: 16px 16px 40px; }
  .hero { padding: 24px 20px; }
  .g2, .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; } .stat .val { font-size: 24px; }
  .topic { grid-template-columns: 38px 1fr; padding: 14px 16px; }
  .topic .num { width: 38px; height: 38px; }
  .topic .share { grid-column: 2; text-align: left; }
  .q-card { padding: 20px 16px; }
  .q-text { font-size: 18px; }
  .q-fig img { max-height: 210px; }
  .timer { font-size: 18px; padding: 6px 12px; }
  .mini { grid-template-columns: repeat(3, 1fr); }
  .hide-sm { display: none; }
  .logo-text small { display: none; }
  .mini-stats { width: 100%; } .mini-stats div { flex: 1; padding: 10px 12px; }
  .pal { grid-template-columns: repeat(7, 1fr); }
  .ch-hero { padding: 18px 16px; } .ch-hero h1 { font-size: 21px; } .ch-hero > .btn { width: 100%; justify-content: center; }
  .cat { grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 16px; }
  .cat .node { width: 36px; height: 36px; font-size: 11px; } .cat + .cat::before { left: 33px; }
  .cat > .btn { display: none; }
}
