:root { --quiz-ink: #2f2418; --quiz-gold: #d9a91e; --quiz-saffron: #ec6a25; --quiz-green: #0b6b4c; }

body.quiz-page { background: #fffaf0; color: var(--quiz-ink); }
.quiz-page .site-header { position: relative; }
.quiz-hero { position: relative; overflow: hidden; padding: 72px 20px 84px; text-align: center; color: #fff;
  background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.19) 0 58px, transparent 60px),
    radial-gradient(circle at 86% 76%, rgba(255,213,100,.22) 0 96px, transparent 98px),
    linear-gradient(135deg, #073e2c, #0b6b4c 55%, #ca8f0a); }
.quiz-hero::after { content: ''; position: absolute; left: 50%; bottom: -165px; width: 310px; height: 310px;
  border: 2px solid rgba(255,231,157,.35); border-radius: 42%; transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 32px rgba(255,231,157,.09), 0 0 0 34px rgba(255,231,157,.25); animation: quiz-turn 30s linear infinite; }
.quiz-hero > * { position: relative; z-index: 1; }
.quiz-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px; background: rgba(255,255,255,.1); color: #ffe79d; font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; }
.quiz-hero h1 { max-width: 850px; margin: 17px auto 12px; color: #fff; font-family: var(--serif); font-size: clamp(2.35rem, 7vw, 4.25rem);
  line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.quiz-hero p { max-width: 650px; margin: 0 auto; color: rgba(255,255,255,.84); font-size: clamp(1rem, 2.5vw, 1.18rem); line-height: 1.7; }
.quiz-sparkles span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffe79d; opacity: .7;
  animation: quiz-float 4s ease-in-out infinite; }
.quiz-sparkles span:nth-child(1) { left: 12%; top: 34%; }.quiz-sparkles span:nth-child(2) { right: 15%; top: 22%; animation-delay: -1.2s; }
.quiz-sparkles span:nth-child(3) { right: 9%; bottom: 19%; animation-delay: -2.4s; }.quiz-sparkles span:nth-child(4) { left: 20%; bottom: 16%; animation-delay: -.6s; }

.quiz-main { width: min(1100px, calc(100% - 32px)); margin: -34px auto 72px; position: relative; z-index: 2; }
.quiz-intro { max-width: 720px; margin: 0 auto 34px; padding: 22px 26px; border: 1px solid #efdfba; border-radius: 20px;
  background: rgba(255,255,255,.96); box-shadow: 0 14px 42px rgba(73,49,10,.11); text-align: center; line-height: 1.65; }
.quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quiz-card { position: relative; min-height: 360px; overflow: hidden; display: flex; flex-direction: column; padding: 28px;
  border: 1px solid #ead9b6; border-radius: 26px; color: var(--quiz-ink); text-decoration: none; background: #fff;
  box-shadow: 0 12px 34px rgba(73,49,10,.09); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.quiz-card:hover { transform: translateY(-6px); border-color: var(--quiz-gold); box-shadow: 0 20px 45px rgba(73,49,10,.15); }
.quiz-card::after { content: ''; position: absolute; right: -68px; top: -70px; width: 190px; height: 190px; border-radius: 50%;
  background: var(--card-soft, #fff0bd); opacity: .85; }
.quiz-card-icon { position: relative; z-index: 1; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px;
  background: var(--card-soft, #fff0bd); font-size: 2.35rem; transform: rotate(-4deg); }
.quiz-card small { margin-top: 28px; color: var(--card-accent, var(--quiz-green)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quiz-card h2 { margin: 9px 0 10px; font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.quiz-card p { margin: 0 0 22px; color: #6d5d4b; line-height: 1.65; }
.quiz-card-go { margin-top: auto; color: var(--card-accent, var(--quiz-green)); font-weight: 700; }

.quiz-shell { max-width: 760px; margin: -40px auto 0; position: relative; z-index: 2; padding: 0 20px 70px; }
.quiz-game { border: 1px solid #ead9b6; border-radius: 28px; background: #fff; box-shadow: 0 18px 55px rgba(73,49,10,.14); overflow: hidden; }
.quiz-game-top { padding: 22px 26px 18px; background: #fffaf0; border-bottom: 1px solid #f0e4ca; }
.quiz-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #71614e; font-size: .86rem; font-weight: 600; }
.quiz-progress { height: 8px; overflow: hidden; margin-top: 12px; border-radius: 99px; background: #eee4d1; }
.quiz-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--quiz-saffron), var(--quiz-gold)); transition: width .35s ease; }
.quiz-form { padding: 28px; }
.quiz-question { margin: 0; padding: 0; border: 0; }
.quiz-question + .quiz-question { margin-top: 38px; padding-top: 32px; border-top: 1px solid #eee2c9; }
.quiz-question legend { width: 100%; margin-bottom: 20px; font-family: var(--serif); font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.2; font-weight: 700; }
.quiz-number { display: block; margin-bottom: 8px; color: var(--quiz-saffron); font-family: var(--sans); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; }
.quiz-option { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0; padding: 15px 16px; border: 2px solid #eadfc8;
  border-radius: 16px; cursor: pointer; background: #fffdf8; transition: border-color .18s, background .18s, transform .18s; }
.quiz-option:hover { border-color: #e1b84b; transform: translateX(3px); }
.quiz-option input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--quiz-green); }
.quiz-option span { line-height: 1.45; }
.quiz-option.is-correct { border-color: #49a57c; background: #e8f7ef; }.quiz-option.is-wrong { border-color: #d9685e; background: #fff0ed; }
.quiz-feedback { min-height: 0; margin: 18px 0 0; padding: 0; border-radius: 14px; line-height: 1.55; }
.quiz-feedback:not(:empty) { padding: 14px 16px; background: #f5efe1; }
.quiz-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.quiz-button { border: 0; border-radius: 999px; padding: 13px 22px; background: var(--quiz-green); color: #fff; font: 700 1rem var(--sans); cursor: pointer;
  box-shadow: 0 7px 18px rgba(11,107,76,.22); }
.quiz-button:hover { background: #07573e; }.quiz-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.quiz-link { color: var(--quiz-green); font-weight: 700; }
.quiz-ready .quiz-question[hidden] { display: none; }
.quiz-result { padding: 40px 28px; text-align: center; }
.quiz-result[hidden] { display: none; }.quiz-result-icon { font-size: 3.4rem; }.quiz-result h2 { margin: 10px 0 8px; font-family: var(--serif); font-size: 2.35rem; }
.quiz-result p { max-width: 520px; margin: 0 auto 22px; color: #675947; line-height: 1.65; }
.quiz-result-score { color: var(--quiz-green); font-weight: 800; }
.quiz-answer-guide { margin: 26px 0; border: 1px solid #ead9b6; border-radius: 18px; background: #fffaf0; }
.quiz-answer-guide summary { cursor: pointer; padding: 17px 20px; font-weight: 700; }.quiz-answer-guide ol { margin: 0; padding: 0 28px 20px 46px; }
.quiz-answer-guide li { margin: 12px 0; line-height: 1.55; }.quiz-answer-guide strong { color: var(--quiz-green); }
.quiz-learn { margin: 26px 0; }.quiz-learn h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 1.55rem; }
.quiz-learn div { display: flex; flex-wrap: wrap; gap: 9px; }.quiz-learn a { padding: 10px 14px; border: 1px solid #dfcfab; border-radius: 999px;
  background: #fff; color: var(--quiz-green); text-decoration: none; font-size: .9rem; font-weight: 700; }
.quiz-learn a:hover { border-color: var(--quiz-gold); background: #fff7de; }
.quiz-cta { margin-top: 28px; padding: 30px; border-radius: 24px; text-align: center; color: #fff; background: linear-gradient(135deg, #073e2c, #0b6b4c); }
.quiz-cta h2 { margin: 0 0 8px; color: #fff; font-family: var(--serif); font-size: 2rem; }.quiz-cta p { max-width: 570px; margin: 0 auto 18px; color: rgba(255,255,255,.82); line-height: 1.65; }
.quiz-cta a { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #f3c33a; color: #083f2d; text-decoration: none; font-weight: 800; }

@keyframes quiz-turn { to { transform: translateX(-50%) rotate(405deg); } }
@keyframes quiz-float { 50% { transform: translateY(-12px) scale(1.25); opacity: 1; } }
@media (max-width: 820px) { .quiz-grid { grid-template-columns: 1fr; }.quiz-card { min-height: 285px; }.quiz-hero { padding: 58px 18px 72px; } }
@media (max-width: 560px) { .quiz-main { width: min(100% - 24px, 1100px); }.quiz-shell { padding-inline: 12px; }.quiz-form { padding: 22px 18px; }
  .quiz-game-top { padding-inline: 18px; }.quiz-actions { align-items: stretch; flex-direction: column; }.quiz-button { width: 100%; }.quiz-hero h1 { font-size: 2.55rem; } }
@media (prefers-reduced-motion: reduce) { .quiz-hero::after, .quiz-sparkles span { animation: none; }.quiz-card, .quiz-option, .quiz-progress span { transition: none; }
  .quiz-card:hover, .quiz-option:hover { transform: none; } }
