/* ウィスキー暇つぶしクイズ。色はアンバー。 */
.quiz-lead { margin: 0 0 18px; color: #6b6256; font-size: 0.95rem; }
#quiz-root { width: min(840px, 100%); margin: 0 auto 8px; }
.quiz-card {
  background: #fffdf8; border: 1px solid #e0d4c4; border-radius: 28px;
  box-shadow: 0 10px 28px rgb(139 90 43 / 8%); padding: 22px 22px 18px;
}
.quiz-stats { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: end; color: #3a2a22; font-size: .92rem; font-weight: 700; }
.quiz-stat-mid { text-align: center; }
.quiz-stat-right { text-align: right; }
.quiz-num { display: inline-block; min-width: 1.2em; margin: 0 .15em; color: #8B5A2B; font-size: 1.35rem; font-weight: 800; line-height: 1; text-align: center; }
.quiz-rate { display: block; margin-top: 2px; color: #7a6a5a; font-size: .82rem; font-weight: 700; }
.quiz-best { margin: 8px 0 0; color: #7a6a5a; font-size: .78rem; text-align: right; }
.quiz-rule { height: 2px; margin: 12px 0 16px; border: 0; background: #8B5A2B; }
.quiz-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.quiz-label { margin: 0; color: #7a6a5a; font-size: .82rem; font-weight: 700; letter-spacing: .08em; }
.quiz-level { display: inline-flex; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.quiz-level.is-intro { background: #f4eadc; color: #8B5A2B; }
.quiz-level.is-basic { background: #f3efe4; color: #6d5a10; }
.quiz-level.is-trivia { background: #f8f1de; color: #8a5a12; }
.quiz-level.is-fan { background: #efe4ea; color: #6b2d3c; }
.quiz-question { margin: 0; padding: 2px 0 4px 12px; border-left: 5px solid #c4a46a; color: #3a2a22; font-size: 1.18rem; font-weight: 750; line-height: 1.65; min-height: 4.6em; }
.quiz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 18px 0 4px; }
.quiz-choice { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f7f4ee; color: #3a2a22; font-size: 1rem; border: 1px solid #e0d4c4; text-align: left; cursor: pointer; }
.quiz-choice:hover:not(:disabled) { border-color: #8B5A2B; }
.quiz-choice.is-correct { background: #e8f5e9; border-color: #4caf50; }
.quiz-choice.is-wrong { background: #ffebee; border-color: #e57373; }
.quiz-result { margin: .8rem 0; font-weight: 700; }
.quiz-result.is-ok { color: #2e7d32; }
.quiz-result.is-ng { color: #c62828; }
.quiz-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.quiz-actions .btn { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; border: 1px solid #d4c4b0; background: #fff; }
.quiz-actions .primary { background: #8B5A2B; color: #fff; border-color: #8B5A2B; }
@media (max-width: 720px) {
  .quiz-choices { grid-template-columns: 1fr; }
  .quiz-stats { grid-template-columns: 1fr; gap: 4px; }
  .quiz-stat-mid, .quiz-stat-right { text-align: left; }
}

.quiz-result { text-align: center; margin-top: 12px; }
.quiz-correct-line { margin: 0; color: #3a2a22; font-weight: 800; }
.quiz-correct-line .quiz-num { font-size: 1.7rem; color: #8B5A2B; }
.quiz-marks { display: flex; justify-content: center; margin: 6px 0 12px; }
.quiz-mark {
  width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%;
  font-size: 0; font-weight: 700; line-height: 1; position: relative; color: transparent;
}
.quiz-mark.is-ok { border: 6px solid #2a62b5; background: transparent; }
.quiz-mark.is-ng { border: 0; background: transparent; }
.quiz-mark.is-ng::before, .quiz-mark.is-ng::after {
  content: ""; position: absolute; left: 8%; top: 50%; width: 84%; height: 7px;
  background: #d23b3b; border-radius: 4px;
}
.quiz-mark.is-ng::before { transform: translateY(-50%) rotate(45deg); }
.quiz-mark.is-ng::after { transform: translateY(-50%) rotate(-45deg); }
.quiz-result-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.quiz-next, .quiz-link { font: inherit; cursor: pointer; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; text-decoration: none; }
.quiz-next { background: #8B5A2B; color: #fff; }
.quiz-link { background: #c4a46a; color: #3a2a22; font-weight: 700; }
.quiz-link.is-google { background: #3a2a22; color: #fff; }
@media (max-width: 720px) {
  .quiz-mark { width: 72px; height: 72px; }
  .quiz-mark.is-ok { border-width: 5px; }
}

.quiz-correct-line { white-space: nowrap; }
@media (max-width: 640px) {
  .quiz-correct-line .quiz-num { font-size: 1.5rem; }
  .quiz-stats { grid-template-columns: 1fr 1fr; }
  .quiz-stat-mid { text-align: left; }
}
.quiz-text-btn { background: none; border: 0; color: #8B5A2B; cursor: pointer; text-decoration: underline; font: inherit; }
.quiz-note { color: #7a6a5a; font-size: .78rem; margin-top: 8px; }
.quiz-tools { display: flex; justify-content: space-between; margin-top: 14px; }
