/* Crypto Learn Quiz — styles. Gold on warm paper, like cryptobanking.pro.
   No dependencies. Works with quiz.html + quiz.js only. */
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0; padding: 24px 16px 64px;
  background: #f7f3e3; color: #1a1a1a; line-height: 1.6;
}
main { max-width: 760px; margin: 0 auto; }
h1 { text-align: center; margin-bottom: 4px; }
h1 span { color: #a67c00; }
.lede { text-align: center; max-width: 620px; margin: 0 auto 20px; }
.toolbar {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.toolbar label { font-weight: 600; }
.toolbar select {
  padding: 8px 10px; font-size: 15px; border: 2px solid #d4af37;
  border-radius: 8px; background: #fff; max-width: 260px;
}
.voice-row {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-bottom: 8px; font-size: 15px;
}
.voice-row label { font-weight: 600; cursor: pointer; }
.voice-row input { width: 18px; height: 18px; accent-color: #a67c00; cursor: pointer; }
.voice-note {
  text-align: center; font-size: 13px; color: #5a5340;
  max-width: 620px; margin: 0 auto 20px;
}
.card {
  background: #fffdf5; border: 2px solid #d4af37; border-radius: 12px;
  padding: 20px; margin-top: 16px;
}
.card h2 { margin-top: 0; }
.progress { font-weight: 700; color: #a67c00; margin-bottom: 6px; }
.question { font-size: 19px; font-weight: 700; margin: 8px 0 16px; }
.fallback-badge {
  display: inline-block; background: #f4ecd0; border: 1px solid #d4af37;
  border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 600;
  margin-left: 6px; vertical-align: middle;
}
.options { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.options button {
  display: block; width: 100%; text-align: left; padding: 12px 14px;
  font-size: 16px; line-height: 1.5; cursor: pointer;
  background: #fff; border: 2px solid #d4af37; border-radius: 10px; color: #1a1a1a;
}
.options button:hover:not(:disabled) { background: #f4ecd0; }
.options button:disabled { cursor: default; opacity: 0.85; }
.options button.correct { background: #dff0d8; border-color: #2e7d32; }
.options button.wrong { background: #fbe9e7; border-color: #b71c1c; }
.feedback { margin-top: 16px; padding: 14px; border-radius: 10px; }
.feedback.good { background: #dff0d8; }
.feedback.bad { background: #fbe9e7; }
.feedback strong { font-size: 17px; }
.feedback p { margin: 8px 0 0; }
.listen-btn, .next-btn, .start-btn, .restart-btn, .buy-btn {
  display: inline-block; padding: 12px 20px; font-size: 16px; font-weight: 700;
  border-radius: 10px; cursor: pointer; text-decoration: none; text-align: center;
}
.listen-btn {
  background: #fff; border: 2px solid #d4af37; color: #1a1a1a; margin-bottom: 12px;
}
.next-btn, .start-btn, .restart-btn {
  background: #d4af37; border: 2px solid #a67c00; color: #1a1a1a; margin-top: 16px;
}
.buy-btn { background: #a67c00; border: 2px solid #7a5c00; color: #fff; margin-top: 12px; }
.score { font-size: 26px; font-weight: 800; text-align: center; }
.score-sub { text-align: center; }
.muted { color: #5a5340; font-size: 14px; }
.center { text-align: center; }
.token-box code, .card code {
  background: #f4ecd0; padding: 2px 6px; border-radius: 6px;
  font-size: 13px; word-break: break-all;
}
[dir="rtl"] .options button { text-align: right; }
@media (max-width: 560px) {
  .question { font-size: 17px; }
  .options button { font-size: 15px; }
}
