/* 日本酒暇つぶしクイズ。色だけ日本酒側。 */
.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 #d5d0c6; border-radius: 28px;
  box-shadow: 0 10px 28px rgb(31 58 95 / 7%); padding: 22px 22px 18px;
}
.quiz-stats { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: end; color: #243040; 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: #1f3a5f; font-size: 1.35rem; font-weight: 800; line-height: 1; text-align: center; }
.quiz-rate { display: block; margin-top: 2px; color: #6b6256; font-size: .82rem; font-weight: 700; }
.quiz-best { margin: 8px 0 0; color: #6b6256; font-size: .78rem; text-align: right; }
.quiz-rule { height: 2px; margin: 12px 0 16px; border: 0; background: #1f3a5f; }
.quiz-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.quiz-label { margin: 0; color: #6b6256; 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: #e7eef5; color: #1f3a5f; }
.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: #243040; 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: #243040; font-size: 1rem; line-height: 1.55; border: 1.5px solid transparent; text-align: left; width: 100%; cursor: pointer; }
.quiz-choice:hover { border-color: #1f3a5f; background: #fffdf8; }
.quiz-choice b { margin-right: .35em; color: #1f3a5f; }
.quiz-choice.is-correct { background: #e7f3ea; outline: 2px solid #2f6f5e; }
.quiz-choice.is-wrong { background: #f7f1e8; outline: 1px solid #b3acac; }
.quiz-choice.is-dim { opacity: .55; }
.quiz-result-actions, .quiz-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.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: #1f3a5f; color: #fff; }
.quiz-link { background: #c4a46a; color: #243040; font-weight: 700; }
.quiz-link.is-google { background: #1f3a5f; color: #fff; }
.quiz-result { text-align: center; }
.quiz-correct-line { margin: 0; color: #243040; font-weight: 800; }
.quiz-correct-line .quiz-num { font-size: 1.7rem; }
.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); }
@media (max-width: 640px) {
  .quiz-choices { grid-template-columns: 1fr; }
  .quiz-mark { width: 72px; height: 72px; }
  .quiz-mark.is-ok { border-width: 5px; }
  .quiz-mark.is-ng::before, .quiz-mark.is-ng::after { height: 6px; }
}
.quiz-text-btn { background: none; border: 0; color: #1f3a5f; cursor: pointer; text-decoration: underline; }
.quiz-note { color: #6b6256; font-size: .78rem; }
.quiz-tools { display: flex; justify-content: space-between; margin-top: 14px; }
