@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800&family=Space+Mono:wght@400;700&family=Karla:wght@400;500;600;700&display=swap');

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mist);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--mist-dim); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---------- Top nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: rgba(18, 19, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.wordmark span { color: var(--magenta); }
.topnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.topnav a {
  color: var(--mist-dim);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.topnav a:hover { color: var(--mist); background: var(--panel-raised); text-decoration: none; }
.topnav a.active { color: var(--ink); background: var(--gold); }

.auth-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist-dim);
}
.auth-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-name { font-weight: 600; color: var(--mist); }

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11.5px;
  color: var(--magenta);
  margin-bottom: 8px;
  display: block;
}
.page-head h1 { font-size: 28px; margin-bottom: 4px; }
.page-head .lede { margin: 0; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s ease, filter 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: #241a02; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-secondary { background: var(--panel-raised); color: var(--mist); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { background: #2b2e46; }
.btn-ghost { background: transparent; color: var(--mist-dim); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { color: var(--mist); border-color: var(--mist-dim); }
.btn-danger { background: transparent; color: var(--coral); border-color: var(--coral-dim); }
.btn-danger:hover:not(:disabled) { background: var(--coral-dim); color: var(--mist); }
.btn-magenta { background: var(--magenta); color: #2a0714; }
.btn-magenta:hover:not(:disabled) { filter: brightness(1.1); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }
.icon-btn {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--mist);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 15px;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------- Panels / cards ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--magenta));
}
.panel + .panel { margin-top: 20px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.panel-head h2 { font-size: 17px; margin: 0; }
.panel-head .hint-text { margin: 0; font-size: 13px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.stat-card .num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.stat-card .label {
  font-size: 12.5px;
  color: var(--mist-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.nav-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}
.nav-card:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.nav-card .glyph { font-family: var(--font-mono); font-size: 12px; color: var(--magenta); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-card h3 { font-size: 19px; margin: 10px 0 6px; color: var(--mist); }
.nav-card p { font-size: 13px; margin: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--mist);
}
.field .field-help { font-size: 12px; color: var(--mist-faint); margin-top: 5px; margin-bottom: 0; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > .field { flex: 1; min-width: 160px; }

input[type="text"], input[type="number"], input[type="search"], textarea, select {
  width: 100%;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="search"]:focus,
textarea:focus, select:focus { border-color: var(--gold); outline: none; }
textarea { resize: vertical; min-height: 70px; font-family: var(--font-body); }
select { cursor: pointer; }

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
}
.check-row input[type="checkbox"], .check-row input[type="radio"] {
  width: 17px; height: 17px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.check-row label { font-size: 13.5px; color: var(--mist); cursor: pointer; margin: 0; font-weight: 500; }

.radio-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--mist-dim);
  background: var(--panel-raised);
  transition: all 0.15s ease;
}
.radio-pill input { display: none; }
.radio-pill.selected { background: var(--gold); color: #241a02; border-color: var(--gold); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
}
.chip button {
  background: none; border: none; color: var(--mist-faint); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0;
}
.chip button:hover { color: var(--coral); }
.chip.chip-active { border-color: var(--gold); color: var(--gold); }

/* ---------- Badges / tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mist-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-category { border-color: var(--magenta-dim); color: var(--magenta); background: rgba(232, 68, 124, 0.08); }
.tag-mc { border-color: var(--line); color: var(--mist-dim); }
.tag-free { border-color: var(--line); color: var(--gold); }
.tag-whoami { border-color: var(--line); color: var(--magenta); }
.tag-used { border-color: var(--green-dim); color: var(--green); background: rgba(63, 184, 138, 0.08); }
.tag-unused { border-color: var(--line); color: var(--mist-faint); }
.tag-difficulty-easy { color: var(--green); }
.tag-difficulty-medium { color: var(--gold); }
.tag-difficulty-hard { color: var(--coral); }
.tag-ai { border-color: var(--magenta-dim); color: var(--magenta); }
.tag-private { border-color: var(--coral); color: var(--coral); }

/* ---------- Question bank list ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.filter-bar select, .filter-bar input[type="search"] { width: auto; min-width: 150px; }
.filter-bar .check-row { padding: 0; }
.filter-spacer { flex: 1; }

.question-list { display: flex; flex-direction: column; gap: 10px; }
.question-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.question-row .q-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); flex-shrink: 0; }
.question-row .q-main { flex: 1; min-width: 240px; }
.question-row .q-text { font-weight: 600; color: var(--mist); margin-bottom: 8px; font-size: 14.5px; }
.question-row .q-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.question-row .q-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ---- Image field (question dialog / inline forms) ---- */
.image-upload-preview { max-width: 200px; max-height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; margin-bottom: 10px; }
.picker-row .p-thumb, .selected-row .s-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); flex-shrink: 0; }
.draft-row .d-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); flex-shrink: 0; }
.q-usage-detail { margin-top: 8px; font-size: 12px; color: var(--mist-faint); }
.q-usage-detail ul { margin: 4px 0 0; padding-left: 18px; }
.q-stats-detail { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.q-wrong-answers { margin-top: 6px; font-size: 12px; color: var(--mist-faint); }
.q-wrong-answers ul { margin: 4px 0 0; padding-left: 18px; }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--mist-faint);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}
.empty-state h3 { color: var(--mist-dim); font-size: 16px; margin-bottom: 6px; }

/* ---------- Modal / dialog ---------- */
dialog {
  background: var(--panel);
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: min(520px, 92vw);
  box-shadow: var(--shadow-panel);
}
dialog::backdrop { background: rgba(8, 8, 14, 0.7); backdrop-filter: blur(2px); }
dialog h3 { margin-bottom: 4px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.team-input-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.team-input-row input { flex: 1; }

/* ---------- Toasts ---------- */
#toast-stack {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.toast {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--mist);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-panel);
  animation: toast-in 0.2s ease;
  max-width: 320px;
}
.toast.toast-error { border-left-color: var(--coral); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Create quiz page ---------- */
.gimmick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.gimmick-row:last-child { border-bottom: none; }
.gimmick-row .gimmick-label { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 9px; }
.gimmick-row .gimmick-uses { width: 130px; display: flex; align-items: center; gap: 6px; }
.gimmick-row .gimmick-uses input { width: 64px; }
.gimmick-row .gimmick-uses span { font-size: 11.5px; color: var(--mist-faint); }
.gimmick-row.custom .gimmick-label input[type="text"] { width: auto; flex: 1; }
.gimmick-options { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gimmick-opt-field { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--mist-faint); }
.gimmick-opt-field select, .gimmick-opt-field input { width: 92px; }
.gimmick-penalty { width: 64px !important; }

.picker-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; margin-bottom: 16px; }
.picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
}
.picker-row:hover { border-color: var(--gold); }
.picker-row.selected { border-color: var(--gold); background: rgba(242, 179, 61, 0.07); }
.picker-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--gold); flex-shrink: 0; }
.picker-row .p-text { flex: 1; font-size: 13.5px; color: var(--mist); }
.picker-row .p-meta { display: flex; gap: 6px; flex-shrink: 0; }

.draft-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.draft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.draft-row .p-text { flex: 1; font-size: 13.5px; color: var(--mist); }
.draft-row .p-meta { display: flex; gap: 6px; flex-shrink: 0; }
.draft-row .p-actions { display: flex; gap: 6px; flex-shrink: 0; }

.selected-list { display: flex; flex-direction: column; gap: 6px; }
.selected-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.selected-row .s-num { font-family: var(--font-mono); color: var(--gold); font-size: 12.5px; width: 22px; flex-shrink: 0; }
.selected-row .s-text { flex: 1; font-size: 13.5px; }
.selected-row .s-order { display: flex; gap: 3px; }

.progress-track {
  height: 6px;
  background: var(--panel-raised);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 16px;
}
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--magenta)); transition: width 0.2s ease; }

.inline-add-form { background: var(--panel-raised); border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px; display: none; }
.inline-add-form.open { display: block; }
.option-input-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.option-input-row input[type="text"] { flex: 1; }
.option-input-row input[type="radio"] { width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }

/* ---------- Quizzes list ---------- */
.quiz-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.quiz-card-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.quiz-card h3 { font-size: 18px; margin-bottom: 4px; }
.quiz-card .quiz-desc { font-size: 13px; margin-bottom: 10px; }
.quiz-card .q-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.quiz-card .quiz-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.quiz-card .quiz-date { font-family: var(--font-mono); font-size: 11px; color: var(--mist-faint); margin-top: 8px; }

.session-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap;
}
.session-row:last-child { border-bottom: none; }
.session-row .s-name { font-weight: 700; font-size: 13.5px; }
.session-row .s-when { font-size: 11.5px; color: var(--mist-faint); font-family: var(--font-mono); }
.session-row .s-scores { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); }

/* ---------- Solo play ---------- */
.play-option.selected { border-color: var(--gold); color: var(--gold); }
.play-option:disabled { opacity: 0.65; }

/* ---------- Host control screen ---------- */
.host-shell { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .host-shell { grid-template-columns: 1fr; } }

.host-progress { font-family: var(--font-mono); color: var(--mist-dim); font-size: 13px; margin-bottom: 6px; }
.host-question-text { font-size: 22px; line-height: 1.35; margin-bottom: 18px; font-family: var(--font-display); font-weight: 600; }
.host-question-image { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--panel-raised); display: block; margin-bottom: 18px; }
.host-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.host-option {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-raised);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.host-option.correct { border-color: var(--green); background: rgba(63, 184, 138, 0.1); color: var(--green); font-weight: 700; }
.host-option.removed { opacity: 0.4; text-decoration: line-through; }
.host-option.picked:not(.correct) { border-color: var(--gold); }
.host-option-badges { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.host-clue-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.host-clue-list li {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-raised);
  font-size: 14px;
  display: flex;
  gap: 10px;
}
.host-clue-list li.hidden { opacity: 0.4; font-style: italic; }
.host-clue-list .clue-num { font-family: var(--font-mono); color: var(--gold); font-weight: 700; }
.host-answer-block {
  background: var(--panel-raised);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 18px;
}
.host-hint-block {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--mist-dim);
  margin-bottom: 18px;
}
.host-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.gimmick-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.gimmick-btn {
  background: var(--panel-raised);
  border: 1px solid var(--magenta-dim);
  color: var(--magenta);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
}
.gimmick-btn:hover:not(:disabled) { background: var(--magenta-dim); }
.gimmick-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gimmick-btn .uses { font-family: var(--font-mono); font-size: 11px; opacity: 0.8; }

.scoreboard { display: flex; flex-direction: column; gap: 10px; }
.team-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel-raised); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.team-row .team-name { font-weight: 700; font-size: 13.5px; flex: 1; }
.team-row .team-score { font-family: var(--font-mono); font-size: 18px; color: var(--gold); width: 46px; text-align: right; }
.team-row .score-btns { display: flex; gap: 5px; }

.timer-block { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.timer-display { font-family: var(--font-mono); font-size: 22px; color: var(--gold); min-width: 52px; }

.open-display-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 22px; flex-wrap: wrap;
}
.open-display-bar p { margin: 0; font-size: 13px; }

.end-quiz-banner {
  text-align: center; padding: 60px 20px;
}
.end-quiz-banner h2 { font-size: 26px; margin-bottom: 10px; }
.end-quiz-banner .final-scores { display: flex; flex-direction: column; gap: 8px; max-width: 340px; margin: 24px auto 0; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
