.quiz-page { --quiz-width: 1060px; }
.quiz-page [hidden] { display: none !important; }
.quiz-shell { width: min(var(--quiz-width), calc(100% - 48px)); margin-inline: auto; }
.quiz-header { border-bottom: 1px solid var(--line); background: rgba(5, 5, 5, .8); }
.quiz-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 20px; }
.quiz-nav, .quiz-footer nav { display: flex; align-items: center; gap: 24px; }
.quiz-nav a, .quiz-footer a { display: inline-flex; align-items: center; min-height: 48px; color: #bab6b3; font-size: 14px; }
.quiz-nav a:hover, .quiz-nav a[aria-current], .quiz-footer a:hover { color: var(--white); }
.quiz-nav a[aria-current] { border-bottom: 2px solid var(--orange); }
.quiz-hero { padding-block: 28px 24px; }
.quiz-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--orange-light); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.quiz-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 16px #ff5a1f66; flex-shrink: 0; }
.quiz-hero h1 { margin: 0; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -.045em; }
.quiz-hero h1 em { color: var(--orange-light); font-style: normal; }
.quiz-dek { max-width: 660px; margin: 10px 0 0; color: #bdb9b5; font-size: 15px; line-height: 1.5; }
.quiz-ad { width: 100%; min-height: 110px; margin-block: 24px 150px; overflow: hidden; }
.quiz-ad > span { display: block; margin-bottom: 12px; color: #a5a2a0; font-size: 10px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.quiz-ad--bottom { margin-block: 150px; }
.quiz-ad .adsbygoogle { width: 100%; }
.quiz-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.quiz-workspace { scroll-margin-top: 28px; }
.quiz-status-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.quiz-status-row p { margin: 0 0 14px; color: #aaa6a2; font-size: 12px; }
.quiz-status-row p:empty { display: none; }
#content { scroll-margin-top: 28px; min-width: 0; }
#content:focus { outline: none; }
#content:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 8px; border-radius: 18px; }
#content h2 { margin: 12px 0 18px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.22; letter-spacing: -.035em; }
#content h3 { margin: 8px 0 16px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
#content p { color: #bbb7b3; }
button.quiz-card:hover, a.quiz-card:hover { border-color: #ff7a2480; background: linear-gradient(135deg, #251b16, #141416); }
.quiz-panel { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, #19191c 0%, #101012 100%); }
.quiz-panel > p { max-width: 720px; }
.category-tag { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 5px 10px; border: 1px solid #ff7a2433; border-radius: 999px; color: #ff9a64; background: #ff5a1f0b; font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .015em; }
.question-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.question-top > p, .question-top > span { margin: 0; color: #b3aeaa; font-size: 13px; }
.progress { display: block; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 999px; background: #313033; accent-color: var(--orange); }
.progress > span, .progress > div { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.progress::-webkit-progress-bar { border-radius: 999px; background: #313033; }
.progress::-webkit-progress-value { border-radius: 999px; background: var(--orange); }
.progress::-moz-progress-bar { border-radius: 999px; background: var(--orange); }
.choices { display: grid; gap: 12px; margin-block: 28px; padding: 0; border: 0; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 16px 18px; border: 1px solid #ffffff26; border-radius: 13px; color: var(--white); background: #171719; font: inherit; font-size: 16px; line-height: 1.5; text-align: left; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.choice:not(:disabled):hover { border-color: #ff7a2480; background: #241b16; }
.choice:disabled { cursor: default; }
.choice > * { pointer-events: none; }
.choice[aria-pressed="true"], .choice.selected { border-color: var(--orange-light); background: #ff5a1f16; }
.choice > b { display: grid; place-items: center; width: 30px; min-width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; color: #b3aeaa; font-size: 12px; font-weight: 700; }
.choice.correct { border-color: #7ee2a880; background: #7ee2a810; }
.choice.wrong { border-color: #ff9d9080; background: #ff9d900d; }
.feedback { margin-block: 20px; padding: 18px 20px; border-left: 3px solid var(--orange-light); border-radius: 0 10px 10px 0; background: #ffffff04; }
.feedback:empty { display: none; }
.feedback.correct { border-left-color: var(--green); }
.feedback.wrong { border-left-color: #ff9d90; }
.feedback p { margin: 6px 0 0; }
.quiz-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.quiz-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; gap: 8px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; color: #050505; background: var(--orange-light); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.quiz-button:hover:not(:disabled) { background: #ff9456; }
.quiz-button.secondary, .secondary { border-color: var(--line-strong); color: var(--white); background: transparent; }
.quiz-button.secondary:hover:not(:disabled), .secondary:hover:not(:disabled) { border-color: #ffffff66; background: #ffffff09; }
.quiz-button:disabled { opacity: .45; cursor: not-allowed; }
.quiz-next { width: 100%; min-height: 60px; padding: 18px 24px; font-size: 16px; }
#retry-catalog { margin-bottom: 18px; }
.result-score { margin-block: 16px; color: var(--white); font-size: clamp(42px, 8vw, 76px); font-weight: 700; letter-spacing: -.055em; line-height: 1.1; }
.result-score small, .result-score span { color: #aaa5a1; font-size: .4em; letter-spacing: -.02em; }
.reward { margin-top: 28px; padding: 26px; border: 1px solid #ff7a2440; border-radius: 16px; background: #ff5a1f07; }
.reward h3 { color: var(--white); }
.error { margin-block: 18px; padding: 16px 18px; border: 1px solid #ff9d9040; border-radius: 12px; color: #ffb4a9 !important; background: #ff9d9008; }
.review { display: grid; gap: 20px; margin-block: 24px; }
.review > article, article.review, .question-explanation { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #111113; }
.review ol, .review ul { padding-left: 22px; }
.review li { padding-block: 18px; }
.review li + li { border-top: 1px solid var(--line); }
.review p, .question-explanation p { margin: 10px 0 0; line-height: 1.8; }
.review strong, .question-explanation strong { color: var(--white); }
.review .correct { color: var(--green); }
.review .wrong { color: #ffb4a9; }
.review .category-tag { color: #ff9a64; }
.quiz-loading p { max-width: 600px; margin-bottom: 26px; }
.loading-line { display: block; width: min(180px, 65%); height: 4px; margin-top: 28px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), #ff5a1f20); }
.quiz-guide { margin-top: 72px; padding-block: 40px 48px; border-top: 1px solid var(--line); }
.quiz-guide-heading { max-width: 650px; margin-bottom: 40px; }
.quiz-guide-heading h2 { margin: 0 0 22px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.045em; }
.quiz-guide-heading > p:last-child { max-width: 500px; color: #b3aeaa; font-size: 16px; }
.quiz-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.guide-number { color: #ff9960; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.quiz-guide h3 { margin: 16px 0 14px; font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.quiz-guide article p { margin: 0 0 14px; color: #a9a5a1; font-size: 14px; line-height: 1.8; }
.quiz-footer { border-top: 1px solid var(--line); }
.quiz-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.quiz-footer p { margin: 0; color: #a5a2a0; font-size: 13px; }
.quiz-footer p > span { display: block; margin-top: 3px; color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.quiz-page a, .quiz-page button { touch-action: manipulation; }
.quiz-page button:focus-visible, .quiz-page a:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 4px; }

@media (max-width: 700px) {
  .quiz-shell { width: calc(100% - 32px); }
  .quiz-header-inner { min-height: 60px; gap: 12px; }
  .quiz-header .brand { gap: 6px; font-size: 11px; letter-spacing: .14em; }
  .quiz-header .brand img { width: 28px; height: 25px; }
  .quiz-nav { gap: 14px; }
  .quiz-nav a { font-size: 12px; }
  .quiz-hero { padding-block: 16px 20px; }
  .quiz-eyebrow { margin-bottom: 16px; font-size: 9px; letter-spacing: .1em; }
  .quiz-hero h1 { font-size: 28px; }
  .quiz-dek { margin-top: 8px; font-size: 14px; }
  .quiz-panel { padding: 24px 20px; border-radius: 18px; }
  .question-top { gap: 10px; margin-bottom: 18px; }
  #content h2 { font-size: 25px; }
  .choices { gap: 10px; margin-block: 24px; }
  .choice { min-height: 62px; padding: 14px; font-size: 15px; }
  .feedback { padding: 16px; font-size: 14px; }
  .quiz-actions { align-items: stretch; gap: 10px; }
  .quiz-actions .quiz-button { flex: 1 1 180px; }
  .reward { padding: 20px 16px; }
  .review > article, article.review, .question-explanation { padding: 22px 18px; }
  .quiz-guide { margin-top: 52px; padding-block: 32px 24px; }
  .quiz-guide-heading { margin-bottom: 32px; }
  .quiz-guide-grid { grid-template-columns: 1fr; gap: 20px; }
  .quiz-guide-grid article + article { padding-top: 24px; border-top: 1px solid var(--line); }
  .quiz-guide article p { font-size: 15px; }
  .quiz-footer-inner { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .quiz-footer nav { gap: 22px; }
}

@media (max-width: 350px) {
  .quiz-header .brand span { font-size: 10px; }
  .quiz-nav { gap: 10px; }
  .quiz-panel { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-page { scroll-behavior: auto; }
  html:has(.quiz-page) { scroll-behavior: auto; }
  .quiz-page *, .quiz-page *::before, .quiz-page *::after { animation: none !important; transition: none !important; }
}

.quiz-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.quiz-languages .choice { justify-content: center; text-align: center; }
.quiz-instructions { text-align: start; }
.quiz-instructions ol { padding-inline-start: 24px; }
.quiz-instructions li { padding-inline-start: 8px; margin-block: 18px; color: #ddd8d3; line-height: 1.8; }
.quiz-instructions[dir="rtl"] { font-family: system-ui, sans-serif; }
.quiz-workspace:has(.quiz-languages), .quiz-workspace:has(.quiz-instructions) { margin-block: 32px; }
