:root {
  --bg: #06101c;
  --panel: rgba(14, 24, 38, 0.92);
  --border: rgba(255, 255, 255, 0.10);
  --text: #e8eef6;
  --muted: #8aa0b6;
  --accent: #5da9ff;
  --accent2: #8b5cf6;
  --warn: #ff8a5d;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text); }

#globe { position: absolute; inset: 0; cursor: grab; }
#globe:active { cursor: grabbing; }

#topbar {
  position: absolute; top: 16px; left: 18px; right: 18px; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
#brand {
  font-size: 15px; font-weight: 700; letter-spacing: .3px;
  background: var(--panel); padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--border); pointer-events: auto;
}
#context {
  font-size: 15px; font-weight: 700; color: var(--text);
  background: var(--panel); padding: 9px 18px; border-radius: 10px;
  border: 1px solid var(--border); pointer-events: auto;
  max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#context.sel { color: var(--accent); border-color: rgba(93,169,255,0.45); }
#era {
  font-size: 13px; color: var(--muted);
  background: var(--panel); padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--border); max-width: 30vw; text-align: right;
}

/* Menu button + slide-out drawer */
#menuBtn {
  position: absolute; top: 64px; left: 18px; z-index: 11;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(8px);
}
#menuBtn:hover { background: rgba(255,255,255,0.12); }

/* Always-visible left sidebar for the modes/layers picker.
   Drawer (z=20) overlays this when opened (z=9) — intentional. */
#modesPanel {
  position: absolute; top: 110px; left: 18px; z-index: 9;
  width: 244px; max-height: calc(100vh - 250px);
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; overflow-y: auto;
  backdrop-filter: blur(8px);
}
#modesPanel .modes-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; padding-left: 2px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; user-select: none;
}
#modesPanel .modes-chev { transition: transform .2s ease; }
#modesPanel.collapsed .modes-chev { transform: rotate(-90deg); }
#modesPanel.collapsed #layersPanel { display: none; }
#modesPanel.collapsed { padding-bottom: 10px; }
#modesPanel .lp-count { margin-left: auto; color: var(--muted); font-size: 11px; }
@media (max-width: 720px) {
  #modesPanel { width: calc(100vw - 36px); top: 110px; max-height: 50vh; }
}

#drawer {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: 20;
  width: 330px; max-width: 86vw;
  background: rgba(10, 18, 30, 0.97); border-right: 1px solid var(--border);
  padding: 16px; overflow-y: auto; backdrop-filter: blur(10px);
  transition: transform .28s ease; box-shadow: 6px 0 30px rgba(0,0,0,.45);
}
#drawer.closed { transform: translateX(-105%); }
.drawer-top { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; }
.drawer-title { font-size: 16px; font-weight: 700; }
#drawerClose { background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  width: 30px; height: 30px; font-size: 16px; cursor: pointer; }

/* Accordion sections */
.acc { border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; }
.acc-h { width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 0; padding: 12px 14px; font-size: 13px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; }
.acc-h:hover { background: rgba(255,255,255,0.08); }
.acc .chev { transition: transform .2s ease; color: var(--muted); }
.acc.open .chev { transform: rotate(180deg); }
.acc-b { display: none; padding: 12px 14px; }
.acc.open .acc-b { display: block; }

/* Layers panel (Modes & Layers accordion). Phase 1 shell — see Architecture.md. */
#layersPanel .lp-section { margin-bottom: 14px; }
#layersPanel .lp-section:last-of-type { margin-bottom: 6px; }
#layersPanel .lp-heading {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 6px; padding-left: 2px;
}
#layersPanel .lp-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; font-size: 13px; cursor: pointer;
  border-radius: 6px; line-height: 1.3;
}
#layersPanel .lp-row:hover { background: rgba(255,255,255,0.05); }
#layersPanel .lp-row.is-disabled { opacity: 0.42; cursor: not-allowed; }
#layersPanel .lp-row.is-disabled:hover { background: transparent; }
#layersPanel input[type="radio"],
#layersPanel input[type="checkbox"] { accent-color: var(--accent); margin: 0; }
#layersPanel .lp-note {
  font-size: 11px; color: var(--muted); margin: 4px 2px 0;
  font-style: italic; line-height: 1.4;
}

.about { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.about p { margin: 0 0 9px; }
.about a { color: var(--accent); text-decoration: none; }
.about a:hover { text-decoration: underline; }
.credits { list-style: none; margin: 0 0 9px; padding: 0; }
.credits li { padding: 5px 0; border-top: 1px solid var(--border);
  color: var(--text); }
.credits .lic { display: inline-block; margin-left: 4px; font-size: 10px;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 99px; padding: 0 6px; white-space: nowrap; }
.muted-note { font-size: 11px; color: var(--muted); }
.about code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
  word-break: break-all; }
.about pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; line-height: 1.5; color: var(--text);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 11px; margin: 0 0 9px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

.era-group { font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--muted); margin: 12px 0 6px; }
.era-group:first-child { margin-top: 0; }
.war-item {
  padding: 9px 11px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; margin-bottom: 6px;
}
.war-item:hover { background: rgba(255,255,255,0.06); }
.war-item.active { background: rgba(93,169,255,0.14); border-color: rgba(93,169,255,0.4); }
.war-item .wn { font-size: 14px; font-weight: 600; }
.war-item .wy { font-size: 12px; color: var(--muted); }

#warDetail, #formationDetail { margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border); }
#warDetail h3, #formationDetail h3 { margin: 0 0 6px; font-size: 15px; }
#warDetail .meta, #formationDetail .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
#warDetail p, #formationDetail p { font-size: 13px; line-height: 1.5; margin: 8px 0; }
.war-jump { display: flex; gap: 8px; margin-top: 10px; }
.war-jump button { flex: 1; }
.sides { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 99px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); }

/* Formation stage stepper */
.stage-nav { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.stage-nav button { background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 30px;
  cursor: pointer; }
.stage-nav button:hover { background: rgba(255,255,255,0.16); }
.stage-count { font-size: 12px; color: var(--muted); flex: 1; text-align: center; }
.stages-list { display: flex; flex-direction: column; gap: 6px; }
.stage { display: flex; gap: 8px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; border: 1px solid transparent; font-size: 12px; }
.stage:hover { background: rgba(255,255,255,0.05); }
.stage.on { background: rgba(93,169,255,0.16); border-color: rgba(93,169,255,0.45); }
.stage .sy { font-weight: 700; min-width: 56px; color: var(--accent); }
.stage .sl { color: var(--text); }

/* Info card (country + event) */
#infoCard {
  position: absolute; top: 72px; right: 18px; z-index: 10;
  width: 320px; max-height: calc(100vh - 200px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; backdrop-filter: blur(8px);
}
#infoCard .cc-close { position: absolute; top: 10px; right: 12px;
  cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }
#infoCard h2 { margin: 0 6px 2px 0; font-size: 20px; padding-right: 18px; }
#infoCard .cc-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
#infoCard img.cc-thumb { width: 100%; border-radius: 9px; margin: 4px 0 10px;
  border: 1px solid var(--border); }
#infoCard .cc-extract { font-size: 13px; line-height: 1.55; }
#infoCard .cc-link { display: inline-block; margin-top: 10px; font-size: 12px;
  color: var(--accent); text-decoration: none; }
#infoCard .cc-loading { font-size: 12px; color: var(--muted); }
.cc-row { display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; padding: 7px 0; border-top: 1px solid var(--border); }
.cc-row .k { color: var(--muted); }
.cc-row .v { text-align: right; font-weight: 600; }
.cc-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.cc-imgwrap:empty { display: none; }
.cc-facts { margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(93,169,255,0.10); border: 1px solid rgba(93,169,255,0.25); }
.cc-facts-h { font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--accent); margin-bottom: 6px; }
.cc-facts ul { margin: 0; padding-left: 16px; }
.cc-facts li { font-size: 12px; line-height: 1.5; margin: 4px 0; color: var(--text); }

/* Timeline */
#timeline {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(900px, 94vw); z-index: 10;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px 16px; backdrop-filter: blur(8px);
}
#timeRow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
#yearLabel { font-size: 24px; font-weight: 700; min-width: 130px; }
#status { font-size: 12px; color: var(--muted); margin-left: auto; }

#stepGroup { display: flex; gap: 4px; margin-left: 6px; }
#stepGroup button { width: 38px; font-size: 12px; opacity: .65; }
#stepGroup button.on { opacity: 1; background: rgba(93,169,255,0.22);
  border-color: rgba(93,169,255,0.5); }

#surprise { width: auto !important; padding: 0 12px; font-size: 12px;
  background: rgba(139,92,246,0.20) !important; border-color: rgba(139,92,246,0.5) !important; }

#legend { font-size: 12px; color: var(--muted); }
#legend .lg { display: flex; align-items: center; gap: 7px; margin: 5px 0; }
#legend .dot { width: 9px; height: 9px; border-radius: 50%; }
#timeline button {
  background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  width: 34px; height: 32px; font-size: 13px; cursor: pointer;
}
#timeline button:hover { background: rgba(255,255,255,0.16); }
button { font-family: inherit; }

input[type=range] {
  width: 100%; appearance: none; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
#trackMarks { position: relative; height: 18px; margin-bottom: 2px; }
.tspan { position: absolute; top: 7px; height: 7px; border-radius: 4px;
  background: rgba(93,169,255,0.55); border: 1px solid rgba(93,169,255,0.9);
  cursor: pointer; }
.tspan-label { position: absolute; top: -3px; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: var(--accent);
  white-space: nowrap; pointer-events: none; }
.tmark { position: absolute; top: 4px; width: 2px; height: 13px;
  background: var(--warn); border-radius: 1px; cursor: pointer; }
.tmark:hover { background: #fff; }

#ticks { position: relative; height: 14px;
  margin-top: 7px; font-size: 11px; color: var(--muted); }
#ticks span { position: absolute; transform: translateX(-50%);
  white-space: nowrap; }
#ticks span:first-child { transform: none; }
#ticks span:last-child { transform: translateX(-100%); }

/* Country search */
#search { position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 12; width: min(360px, 80vw); }
#searchInput { width: 100%; box-sizing: border-box; padding: 10px 14px;
  font-size: 13px; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; outline: none;
  backdrop-filter: blur(8px); }
#searchInput:focus { border-color: rgba(93,169,255,0.6); }
#searchResults { margin-top: 6px; background: rgba(10,18,30,0.97);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  backdrop-filter: blur(10px); }
#searchResults:empty { display: none; }
#searchResults .sr { padding: 9px 14px; font-size: 13px; cursor: pointer; }
#searchResults .sr:hover, #searchResults .sr.on { background: rgba(93,169,255,0.18); }
#searchResults .sr small { color: var(--muted); margin-left: 6px; }
#searchResults .sr-thread { font-weight: 700; }
#searchResults .sr-member { padding-left: 30px; font-size: 12px;
  color: var(--muted); }
#searchResults .sr-member:hover, #searchResults .sr-member.on {
  color: var(--text); }
#searchResults .sr-exp { display: inline-block; width: 16px; cursor: pointer;
  color: var(--accent); margin-right: 2px; }
#searchResults .sr-exp:hover { color: #fff; }

/* Guided story bar */
#storyBar { position: absolute; left: 50%; bottom: 180px; transform: translateX(-50%);
  z-index: 13; width: min(680px, 94vw);
  display: flex; align-items: center; gap: 12px;
  background: rgba(14,24,38,0.95); border: 1px solid rgba(93,169,255,0.35);
  border-radius: 14px; padding: 10px 14px; backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,.45); }
#storyBar button { background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  width: 34px; height: 34px; font-size: 14px; cursor: pointer; flex: none; }
#storyBar button:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
#storyBar button:disabled { opacity: .35; cursor: default; }
#storyBar .sb-main { flex: 1; min-width: 0; }
#storyBar .sb-title { font-size: 14px; font-weight: 700; }
#storyBar .sb-title .sb-count { color: var(--muted); font-weight: 600; margin-left: 8px;
  font-size: 12px; }
#storyBar .sb-label { font-size: 12px; color: var(--accent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
#storyBar .sb-kind { display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 99px; padding: 1px 7px; margin-right: 7px; }
#storyBar .sb-exit { width: 30px; }

/* Flag in country card */
#infoCard .cc-flag { height: 16px; width: auto; border-radius: 2px;
  vertical-align: middle; margin-left: 8px; border: 1px solid var(--border); }

/* Map Quiz mode */
body.quiz-active #timeline,
body.quiz-active #storyBar,
body.quiz-active #search { display: none; }

#quizPanel {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 15; width: 460px; max-width: calc(100vw - 36px);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.qz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qz-round { font-weight: 700; font-size: 14px; }
.qz-score { color: var(--muted); font-size: 13px; }
.qz-exit { margin-left: auto; background: rgba(255,255,255,0.08);
  color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  width: 28px; height: 28px; font-size: 14px; cursor: pointer; }
.qz-q { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.qz-form { display: flex; gap: 8px; }
.qz-input { flex: 1; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; outline: none; }
.qz-input:focus { border-color: var(--accent); }
.qz-submit, .qz-next, .qz-again, .qz-done {
  background: var(--accent); color: #06101c; border: 0; border-radius: 9px;
  padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.qz-again { background: var(--accent); }
.qz-done { background: rgba(255,255,255,0.10); color: var(--text); }
.qz-next { background: rgba(255,255,255,0.12); color: var(--text); margin-left: 10px; }
.qz-feedback { margin-top: 12px; font-size: 14px; min-height: 20px;
  display: flex; align-items: center; gap: 8px; }
.qz-feedback.ok { color: #5dff8a; }
.qz-feedback.bad { color: #ff8a5d; }
.qz-final { text-align: center; padding: 8px 0 16px; }
.qz-final-score { font-size: 40px; font-weight: 800; }
.qz-grade { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 520px) { #quizPanel { bottom: 20px; } }

/* Map Quiz — game menu, flags, population choices */
.qz-menu { display: flex; flex-direction: column; gap: 8px; }
.qz-game { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-weight: 600; cursor: pointer;
  text-align: left; }
.qz-game:hover { background: rgba(93,169,255,0.16); border-color: var(--accent); }
.qz-game small { color: var(--muted); font-weight: 400; font-size: 12px; }
.qz-flagwrap { display: flex; justify-content: center; margin-bottom: 12px; }
.qz-flag { height: 96px; width: auto; border-radius: 6px;
  border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.qz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-choice { background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; }
.qz-choice:hover:not(:disabled) { border-color: var(--accent); background: rgba(93,169,255,0.12); }
.qz-choice.right { background: rgba(93,255,138,0.22); border-color: #5dff8a; color: #baffcf; }
.qz-choice.wrong { background: rgba(255,93,93,0.22); border-color: #ff5d5d; color: #ffc2c2; }

/* Empire Story — thread picker */
#storyPicker {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 15; width: 480px; max-width: calc(100vw - 36px);
  max-height: 60vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.sp-head { display: flex; align-items: center; margin-bottom: 8px; }
.sp-title { font-weight: 700; font-size: 15px; }
.sp-exit { margin-left: auto; background: rgba(255,255,255,0.08);
  color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  width: 28px; height: 28px; font-size: 14px; cursor: pointer; }
.sp-hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.sp-region { font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.sp-list { display: flex; flex-direction: column; }
.sp-thread { display: block; width: 100%; text-align: left;
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 12px; margin-bottom: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; }
.sp-thread:hover { background: rgba(139,92,246,0.18); border-color: var(--accent2); }
.sp-empty { color: var(--muted); font-size: 13px; font-style: italic; padding: 8px 0; }

/* Map Quiz — regions, best scores, marathon */
.qz-regions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qz-region { background: rgba(255,255,255,0.06); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.qz-region:hover { color: var(--text); border-color: var(--accent); }
.qz-region.on { background: var(--accent); color: #06101c; border-color: var(--accent); }
.qz-game-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.qz-best { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.qz-timer { font-variant-numeric: tabular-nums; }
.qz-found { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
  max-height: 108px; overflow-y: auto; }
.qz-chip { background: rgba(93,255,138,0.15); border: 1px solid rgba(93,255,138,0.4);
  color: #baffcf; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.qz-missed { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted);
  max-height: 120px; overflow-y: auto; }
.qz-missed b { color: var(--warn); }

/* Map Quiz — chronology + capital notes */
.qz-chrono { display: flex; flex-direction: column; gap: 8px; }
.qz-event { display: flex; align-items: center; gap: 8px; text-align: left;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.qz-event:hover:not(:disabled) { border-color: var(--accent); background: rgba(93,169,255,0.12); }
.qz-event.right { background: rgba(93,255,138,0.20); border-color: #5dff8a; color: #baffcf; }
.qz-event.wrong { background: rgba(255,93,93,0.18); border-color: #ff5d5d; color: #ffc2c2; }
.qz-yr { margin-left: auto; font-size: 12px; font-weight: 700;
  opacity: 0.85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qz-note { color: var(--muted); font-size: 12px; font-style: italic; }
