.qp-page { padding: 56px 0 100px; }
.qp-intro { text-align: center; max-width: 54ch; margin: 0 auto 30px; }
.qp-intro .hero__eyebrow { margin-bottom: 18px; }
.qp-intro h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.qp-intro p { color: var(--ink-soft); margin: 0; line-height: 1.6; }

.qp-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }

.qp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.qp-progress { flex: 1; min-width: 160px; }
.qp-progress span { font-size: 0.78rem; color: var(--ink-soft); font-family: var(--font-mono); }
.qp-progress-track { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.qp-progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width var(--dur-med) var(--ease); }
.qp-meta { display: flex; gap: 8px; }
.qp-meta-pill { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(var(--accent-rgb, 11, 122, 85), 0.1); color: var(--accent-ink); }
.qp-meta-pill--streak { background: rgba(255, 200, 87, 0.22); color: #8a6300; }

.qp-question { font-family: var(--font-display); font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 600; line-height: 1.5; margin: 0 0 22px; min-height: 2.2em; }

.qp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qp-option { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); background: var(--bg); border-radius: var(--radius-md); padding: 14px 16px; font-size: 0.95rem; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; transition: all var(--dur-fast) var(--ease); }
.qp-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.qp-option__key { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); flex-shrink: 0; transition: all var(--dur-fast) var(--ease); }
.qp-option.is-correct { border-color: #27ae60; background: rgba(46, 204, 113, 0.1); }
.qp-option.is-correct .qp-option__key { background: #27ae60; border-color: #27ae60; color: #fff; }
.qp-option.is-wrong { border-color: #e74c3c; background: rgba(231, 76, 60, 0.08); }
.qp-option.is-wrong .qp-option__key { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.qp-option.is-dim { opacity: 0.55; }

.qp-feedback { margin-top: 18px; min-height: 1.4em; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); text-align: center; }
.qp-feedback.is-correct { color: #27ae60; }
.qp-feedback.is-wrong { color: #e74c3c; }

.qp-next { width: 100%; margin-top: 6px; }

.qp-result { max-width: 640px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 28px; }
.qp-result-badge { font-size: 2.6rem; margin-bottom: 8px; }
.qp-result h2 { font-family: var(--font-display); margin: 0 0 24px; font-size: 1.5rem; }
.qp-result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.qp-stat-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 6px; }
.qp-stat-box b { display: block; font-family: var(--font-mono); font-size: 1.25rem; color: var(--accent-ink); }
.qp-stat-box span { font-size: 0.72rem; color: var(--ink-soft); }
.qp-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 520px) {
  .qp-options { grid-template-columns: 1fr; }
  .qp-result-stats { grid-template-columns: repeat(2, 1fr); }
  .qp-card, .qp-result { padding: 22px 18px; }
}
