.quiz-hero { padding: 52px 0 58px; background: #fff0d7; }
.quiz-hero .breadcrumbs { display: flex; gap: 10px; margin-bottom: 28px; font-size: 14px; }
.quiz-hero .eyebrow { color: #a45b1b; }
.quiz-hero h1 { max-width: 780px; margin: 0 0 12px; font-family: var(--display); font-size: clamp(38px, 6vw, 68px); line-height: 1.08; }
.quiz-hero p:last-child { max-width: 700px; margin: 0; font-size: 18px; line-height: 1.65; }
.quiz-section { padding-top: 48px; }
.quiz-shell { max-width: 850px; }
.quiz-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.quiz-controls label { font-weight: 800; }
.quiz-controls select, .quiz-restart { min-height: 44px; border: 1px solid #bdd4cb; border-radius: 12px; padding: 8px 14px; background: #fff; color: #173b36; font: inherit; font-weight: 700; }
.quiz-restart { cursor: pointer; margin-left: auto; }
.quiz-panel, .quiz-result { padding: clamp(22px, 5vw, 44px); border: 1px solid #e2e5dc; border-radius: 28px; background: #fff; box-shadow: 0 16px 40px rgba(23, 59, 54, .07); }
.quiz-progress { display: flex; justify-content: space-between; gap: 20px; font-weight: 800; color: #37695e; }
.quiz-meter { height: 9px; margin: 14px 0 30px; border-radius: 999px; background: #e8f1eb; overflow: hidden; }
.quiz-meter span { display: block; height: 100%; border-radius: inherit; background: #f6b84b; transition: width .2s ease; }
.quiz-topic { color: #a45b1b; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.quiz-panel h2 { margin: 0 0 26px; font-family: var(--display); font-size: clamp(25px, 4vw, 36px); line-height: 1.25; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-option { min-height: 64px; padding: 12px 18px; border: 2px solid #d9e7df; border-radius: 16px; background: #f8fcf8; color: #173b36; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.quiz-option:hover:not(:disabled), .quiz-option:focus-visible { border-color: #298b7c; }
.quiz-option.is-correct { border-color: #328662; background: #e0f5e7; }
.quiz-option.is-wrong { border-color: #c7655b; background: #fff0ed; }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { min-height: 28px; margin: 22px 0 18px; font-weight: 700; }
.quiz-permalink { display: inline-block; margin-top: 16px; color: #207b70; font-weight: 800; }
.quiz-result { text-align: center; }
.quiz-result > span { display: block; font-size: 60px; }
.quiz-result h2 { font-family: var(--display); font-size: 40px; }
.quiz-result .quiz-restart { margin: 12px auto 0; }
.quiz-note { margin-top: 20px; color: #526963; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .quiz-controls { flex-wrap: wrap; } .quiz-controls .quiz-restart { width: 100%; margin: 0; } .quiz-options { grid-template-columns: 1fr; } }

/* Danh sách liên kết có thể thu thập bởi máy tìm kiếm. */
.quiz-index { padding-top: 20px; }
.quiz-index-group { margin: 32px 0; }
.quiz-index-group h3 { margin: 0 0 16px; font-family: var(--display); font-size: 28px; }
.quiz-index-group ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding-left: 24px; }
.quiz-index-group li { padding-left: 4px; }
.quiz-index-group a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff8eb; font-weight: 700; line-height: 1.45; }
.quiz-index-group a:hover, .quiz-index-group a:focus-visible { background: #ffe7bd; color: #173b36; }

/* Trang của từng câu đố. */
.quiz-detail-hero { padding: 48px 0 54px; background: #fff0d7; }
.quiz-detail-hero .breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-size: 14px; }
.quiz-detail-hero .eyebrow { color: #a45b1b; }
.quiz-detail-hero h1 { max-width: 920px; margin: 0 0 16px; font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: 1.12; }
.quiz-detail-hero p:last-child { margin: 0; font-size: 18px; }
.quiz-detail-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); align-items: start; gap: 26px; }
.quiz-detail-card, .quiz-related { padding: clamp(22px, 4vw, 36px); border: 1px solid #e2e5dc; border-radius: 24px; background: #fff; box-shadow: 0 12px 35px rgba(23, 59, 54, .06); }
.quiz-detail-card h2, .quiz-related h2 { margin: 0 0 20px; font-family: var(--display); font-size: 27px; }
.quiz-detail-choices { display: grid; gap: 10px; margin: 0 0 24px; padding-left: 24px; }
.quiz-detail-choices li { padding: 12px 16px; border-radius: 12px; background: #f8fcf8; font-weight: 700; }
.quiz-answer { margin-bottom: 20px; border: 1px solid #bedccf; border-radius: 14px; background: #eef9ef; }
.quiz-answer summary { padding: 15px 18px; cursor: pointer; font-weight: 800; }
.quiz-answer > div { padding: 0 18px 16px; }
.quiz-answer p { margin: 8px 0 0; }
.quiz-detail-tip { color: #526963; }
.quiz-related ul { display: grid; gap: 14px; padding-left: 20px; }
.quiz-related > a { display: inline-block; margin-top: 12px; font-weight: 800; color: #207b70; }
@media (max-width: 760px) { .quiz-index-group ol, .quiz-detail-wrap { grid-template-columns: 1fr; } }
