/* Сторінка проходження вікторини (учень) */
body.quiz-page { display: block; overflow: auto; min-height: 100%; background: var(--bg); }
.qp-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 16px;
}
.qp-head .grow { flex: 1; }
.qp-head .brand-logo { flex: none; }
.qp-timer { font-family: var(--mono); font-weight: 700; font-size: 18px; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.qp-timer.low { background: var(--bad); color: #fff; animation: blink 1s infinite; }
.qp-main { max-width: 760px; margin: 0 auto; padding: 16px; }
.qp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.qp-card h2 { margin: 0; font-size: 22px; }
.qp-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.qp-meta span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: 14px; }
.qp-warn { background: var(--warn-soft); color: #6b4e00; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; line-height: 1.45; }
.qp-err { color: var(--bad); font-weight: 600; min-height: 18px; }
.qp-card .field { height: 44px; font-size: 16px; }
.qp-card form .btn.primary, .qp-nav .btn { height: 44px; font-size: 16px; padding: 0 18px; }
.qp-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.qp-dot { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
.qp-dot.done { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.qp-dot.cur { outline: 2px solid var(--ink); }
.qp-qhead { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.qp-text { font-size: 20px; font-weight: 600; line-height: 1.4; white-space: pre-wrap; }
.qp-opt { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 17px; cursor: pointer; }
.qp-opt:hover { border-color: var(--accent); }
.qp-opt input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.qp-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.qp-short { width: 100%; }
.qp-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.qp-left { font-size: 16px; font-weight: 600; background: var(--panel-2); border-radius: 8px; padding: 10px 12px; }
.qp-order { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 16px; background: #fff; }
.qp-order b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; font-size: 13px; }
.qp-order .btn:first-of-type svg { transform: rotate(90deg); }
.qp-order .btn:last-of-type svg { transform: rotate(90deg); }
.qp-done { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 34px; margin: 0 auto; }
.qp-card:has(.qp-done) { text-align: center; align-items: center; }
.qp-grade { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0; }
.qp-grade b { font-size: 72px; line-height: 1; color: var(--accent); }
.qp-grade span { color: var(--muted); }
@media (max-width: 560px) {
  .qp-match { grid-template-columns: 1fr; }
  .qp-match .muted { display: none; }
  .qp-text { font-size: 18px; }
}
