/* ── Question card ── */
.question-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 200px;
}

.question-prompt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.letter-display {
  font-family: 'Amiri', serif;
  font-size: clamp(80px, 18vw, 140px);
  line-height: 1;
  color: var(--ink);
  text-align: center;
}

/* ── Answers ── */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.answer-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 36px;
  min-height: 52px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  position: relative;
  animation: fadeUp 0.25s var(--ease) both;
}
/* Small keyboard-shortcut number in the corner */
.answer-btn::before {
  content: attr(data-key);
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 18px;
  height: 18px;
  line-height: 16px;
}
.answer-btn:nth-child(2) { animation-delay: 0.04s; }
.answer-btn:nth-child(3) { animation-delay: 0.08s; }
.answer-btn:nth-child(4) { animation-delay: 0.12s; }
.answer-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--ink);
}
.answer-btn:disabled { cursor: default; }
.answer-btn:disabled:not(.correct):not(.wrong) { opacity: 0.55; }

.answer-btn.correct {
  background: var(--correct-light);
  border-color: var(--correct);
  color: var(--correct);
  font-weight: 500;
}
.answer-btn.wrong {
  background: var(--wrong-light);
  border-color: var(--wrong);
  color: var(--wrong);
}

/* ── Feedback row ── */
.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}
.feedback {
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.feedback.is-correct { color: var(--correct); }
.feedback.is-wrong   { color: var(--wrong); }

.kbd-hint {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: right;
}
.kbd-hint kbd {
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0 5px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-card);
}

.empty-msg {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 16px 0;
}

/* ── Score sidebar ── */
.score-stack { display: flex; flex-direction: column; gap: 8px; }
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.score-lbl {
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.score-val {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ── Progress ── */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  border-radius: 100px;
  transition: width 0.35s var(--ease);
}
.progress-label {
  font-size: 0.7rem;
  color: var(--ink-faint);
  min-width: 28px;
  text-align: right;
}

/* ── Complete banner ── */
.complete-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  animation: fadeUp 0.4s var(--ease) both;
}
.complete-icon {
  font-size: 1.2rem;
  color: var(--accent);
}
.complete-banner > span:nth-child(2) {
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ── Mobile ── */
@media (max-width: 680px) {
  .question-card { padding: 28px 20px; min-height: 170px; }
  .kbd-hint { display: none; } /* touch devices rarely have number keys */
}
@media (max-width: 380px) {
  .answer-btn { padding: 14px 30px; font-size: 0.85rem; }
  .complete-banner { flex-wrap: wrap; }
}