*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Platform fonts (DARX standard) ── */
  --font-body:   Alegreya, Georgia, 'Times New Roman', serif;
  --font-sans:   Bahnschrift, 'Segoe UI', Arial, sans-serif;
  --font-mono:   'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
  --font-display: 'Cinzel Decorative', serif;

  /* ── Quiz-specific colors & shape ── */
  --brand-dark:  #1C1410;
  --brand-mid:   #2C1E0E;
  --gold:        #B8832A;
  --gold-mid:    #D4A95C;
  --gold-lt:     #FAF1DD;
  --gold-dim:    #9A6D22;
  --ivory:       #F6F1E7;
  --ivory-mid:   #EDE8DA;
  --ivory-dark:  #D8D0BE;
  --ivory-warm:  #FDFAF7;
  --card-bg:     #F6F2EA;
  --ink:         #1C1C1E;
  --ink-muted:   #4A4A4C;
  --ink-faint:   #8A8A8E;
  --correct:     #2E7D32;
  --correct-bg:  #E8F5E9;
  --correct-bd:  #66BB6A;
  --wrong:       #C0392B;
  --wrong-bg:    #FDECEA;
  --wrong-bd:    #E57373;
  --r:           10px;
  --r-lg:        18px;
  --r-xl:        24px;
  --shadow-sm:   0 2px 8px rgba(28,20,16,.08);
  --shadow-md:   0 4px 18px rgba(28,20,16,.14);
  --shadow-lg:   0 8px 32px rgba(28,20,16,.20);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE VISIBILITY ───────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── ANIMATIONS ────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,131,42,0); }
  50%       { box-shadow: 0 0 0 6px rgba(184,131,42,.22); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  35%       { transform: translateX(7px); }
  55%       { transform: translateX(-5px); }
  75%       { transform: translateX(4px); }
}
@keyframes bounce-in {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  70%  { transform: scale(.98); }
  100% { transform: scale(1); }
}
@keyframes bar-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes star-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.3) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes streak-flash {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; transform: scale(1.08); }
}

/* ══════════════════════════════════════════════════════════════════════
   SITE NAV
══════════════════════════════════════════════════════════════════════ */
.site-nav {
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(184,131,42,.2);
  padding: 11px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-nav-brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav-link {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: .5px solid rgba(184,131,42,.4);
  padding-bottom: 1px;
  transition: border-color .15s;
}
.site-nav-link:hover { border-color: var(--gold); }

/* ── RESUME BANNER ──────────────────────────────────────────────────── */
.resume-banner {
  background: var(--brand-dark);
  border-bottom: 2px solid var(--gold);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp .35s ease both;
}
.resume-banner[hidden] { display: none; }
.resume-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ivory);
  font-style: italic;
}
.resume-text strong {
  font-style: normal;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 2px;
}
.resume-actions { display: flex; gap: 8px; }
.resume-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.resume-btn.primary { background: var(--gold); color: var(--brand-dark); }
.resume-btn.primary:hover { background: var(--gold-mid); }
.resume-btn.ghost { background: transparent; color: var(--gold); }
.resume-btn.ghost:hover { background: rgba(184,131,42,.12); }

/* ══════════════════════════════════════════════════════════════════════
   COVER HERO
══════════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--brand-dark);
  padding: 72px 24px 60px;
  text-align: center;
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(184,131,42,.05) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(184,131,42,.05) 40px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }

.brand-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 5.5vw, 52px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 8px;
  line-height: 1.1;
  display: block;
  margin-bottom: 14px;
}
.brand-rule { width: 60px; height: 1.5px; background: var(--gold); margin: 0 auto 22px; }
.brand-descriptor {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(16px, 2.8vw, 22px);
  color: var(--gold);
  letter-spacing: .5px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.brand-origin {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--ink-faint);
  margin-bottom: 40px;
  display: block;
}

.hero-stats {
  display: flex;
  justify-content: center;
  margin: 0 auto 44px;
  border: .5px solid rgba(184,131,42,.3);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 380px;
}
.stat { flex: 1; padding: 16px 12px; text-align: center; border-right: .5px solid rgba(184,131,42,.3); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
}

.cta-btn {
  display: inline-block;
  padding: 16px 52px;
  background: var(--gold);
  color: var(--brand-dark);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-decoration: none;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(184,131,42,.35);
}
.cta-btn:hover { background: var(--gold-mid); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(184,131,42,.45); }
.cta-btn:active { transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════════════
   SET CARDS SECTION
══════════════════════════════════════════════════════════════════════ */
.sets-section { max-width: 860px; margin: 0 auto; padding: 60px 20px 80px; }
.section-eyebrow {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 44px;
  line-height: 1.6;
}

.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.set-card {
  background: var(--card-bg);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .18s, box-shadow .2s;
}
.set-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.set-card-accent { height: 5px; }
.set-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.set-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }

.set-num-badge {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: var(--gold-lt);
}
.set-card-emoji {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 38px;
}

.set-card-titles { flex: 1; }
.set-card-num {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
}
.set-card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.set-card-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.set-card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: #5A5550;
  line-height: 1.65;
  margin-bottom: 16px;
}
.set-card-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.topic-pill {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--ivory-mid);
  color: var(--ink-muted);
  letter-spacing: .3px;
}

/* ── Bottom CTA ── */
.bottom-cta {
  background: var(--brand-dark);
  border-radius: var(--r-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.bottom-cta-rule { width: 40px; height: 1px; background: var(--gold); margin: 0 auto 22px; }
.bottom-cta-title {
  font-family: var(--font-body);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 12px;
}
.bottom-cta-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 30px;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  border-top: .5px solid var(--ivory-dark);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ══════════════════════════════════════════════════════════════════════
   QUIZ PAGE CHROME
══════════════════════════════════════════════════════════════════════ */
.quiz-header {
  background: var(--brand-dark);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 80;
}
.quiz-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 5px;
  text-transform: uppercase;
}
.back-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  background: transparent;
  border: .5px solid rgba(184,131,42,.4);
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background .15s;
}
.back-btn:hover { background: rgba(184,131,42,.12); }

.quiz-app { max-width: 800px; margin: 0 auto; padding: 28px 16px 60px; }

/* ── Set navigation ── */
.set-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}
.set-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  padding: 7px 15px;
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.set-btn:hover { background: var(--gold-lt); transform: translateY(-1px); }
.set-btn.active { background: var(--gold); color: var(--brand-dark); border-color: var(--gold); }
.set-btn.done {
  background: var(--brand-dark);
  color: var(--ivory);
  border-color: var(--brand-dark);
}
.set-btn.done .btn-check { display: inline; }
.btn-check { display: none; }

/* ── Set header bar ── */
.set-header {
  padding: 18px 22px;
  border-radius: var(--r);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.set-header-emoji { font-size: 24px; flex-shrink: 0; }
.set-header-text {}
.set-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .5px;
}
.set-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: rgba(246,241,231,.75);
  margin-top: 3px;
}

/* ── Progress ── */
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: .5px;
}
.progress-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-score-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-dim);
  background: var(--gold-lt);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(184,131,42,.3);
}
.streak-chip {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #e87020;
  background: #fff5e8;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(232,112,32,.25);
  display: none;
  animation: streak-flash 1.4s ease-in-out infinite;
}
.streak-chip.show { display: inline-flex; align-items: center; gap: 4px; }

.progress-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}
.p-star {
  font-size: 14px;
  color: var(--ivory-dark);
  transition: color .3s, transform .3s;
}
.p-star.lit {
  color: var(--gold);
  animation: star-pop .4s ease both;
}

.progress-track {
  height: 4px;
  background: var(--ivory-mid);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: visible;
  position: relative;
}
.progress-fill {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-mid), var(--gold));
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width .45s cubic-bezier(.4,0,.2,1);
  animation: bar-shimmer 2.5s linear infinite;
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: -1px; top: -2px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(184,131,42,.6);
}

/* ── Question card ── */
.q-card {
  background: var(--ivory-warm);
  border: 1px solid #e8e3da;
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp .25s ease both;
}
.q-number {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold-dim);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.q-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.8vw, 20px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ── Option buttons ── */
.options { display: flex; flex-direction: column; gap: 10px; }
.opt-btn {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 18px;
  border: 1.5px solid #e8e3da;
  border-radius: var(--r);
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  width: 100%;
  transition: border-color .14s, background .14s, transform .1s, box-shadow .14s;
}
.opt-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold-lt);
  transform: translateX(3px);
  box-shadow: -3px 0 0 0 var(--gold);
}
.opt-btn:disabled { cursor: default; }
.opt-btn.correct {
  background: var(--correct-bg);
  border-color: var(--correct-bd);
  color: var(--correct);
  animation: bounce-in .35s ease;
}
.opt-btn.wrong {
  background: var(--wrong-bg);
  border-color: var(--wrong-bd);
  color: var(--wrong);
  animation: shake .4s ease;
}
.opt-btn.dimmed { opacity: .38; }

.opt-letter {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  transition: background .14s, color .14s;
}
.opt-btn.correct .opt-letter {
  background: var(--correct);
  color: #fff;
  border-color: var(--correct);
  font-size: 14px;
}
.opt-btn.wrong .opt-letter {
  background: var(--wrong);
  color: #fff;
  border-color: var(--wrong);
  font-size: 14px;
}

/* ── Explanation ── */
.explanation {
  margin-top: 18px;
  padding: 16px 18px;
  background: #FAFAF5;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: #3C3830;
  line-height: 1.7;
  display: none;
  animation: fadeUp .3s ease both;
}
.explanation.show { display: block; }

/* ── Next button ── */
.next-btn {
  width: 100%;
  padding: 15px;
  background: var(--brand-dark);
  color: var(--ivory);
  border: none;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  cursor: pointer;
  margin-top: 8px;
  display: none;
  transition: background .15s, transform .1s;
}
.next-btn:hover { background: var(--brand-mid); transform: translateY(-1px); }
.next-btn.show { display: block; animation: fadeUp .25s ease both; }

/* ══════════════════════════════════════════════════════════════════════
   SET RESULT
══════════════════════════════════════════════════════════════════════ */
.set-result {
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: var(--r-xl);
  padding: 36px 28px;
  text-align: center;
  display: none;
  box-shadow: var(--shadow-md);
  animation: fadeUp .3s ease both;
}
.set-result.show { display: block; }

.result-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}
.r-star {
  font-size: 28px;
  color: var(--ivory-dark);
  display: inline-block;
}
.r-star.lit {
  color: var(--gold);
  animation: star-pop .4s ease both;
}
.r-star:nth-child(2) { animation-delay: .08s; }
.r-star:nth-child(3) { animation-delay: .16s; }
.r-star:nth-child(4) { animation-delay: .24s; }
.r-star:nth-child(5) { animation-delay: .32s; }

.result-score-big {
  font-family: var(--font-mono);
  font-size: 58px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.result-out-of {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.result-msg {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.6;
}
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn-retry {
  padding: 11px 24px;
  border: 1.5px solid var(--brand-dark);
  background: transparent;
  color: var(--brand-dark);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .5px;
  transition: background .15s;
}
.btn-retry:hover { background: var(--ivory-mid); }
.btn-next-set {
  padding: 11px 24px;
  border: none;
  background: var(--gold);
  color: var(--brand-dark);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: background .15s, transform .1s;
}
.btn-next-set:hover { background: var(--gold-mid); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════════════
   FINAL RESULT
══════════════════════════════════════════════════════════════════════ */
.final-result {
  background: var(--brand-dark);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  text-align: center;
  display: none;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .35s ease both;
}
.final-result.show { display: block; }
.final-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 5px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.final-divider { height: 1px; background: var(--gold); margin: 0 auto 26px; width: 60px; }
.final-score {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  animation: bounce-in .5s ease both;
}
.final-total {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.final-msg {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--ivory);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.set-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.set-score-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  letter-spacing: .3px;
}
.final-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-restart {
  padding: 13px 30px;
  background: var(--gold);
  color: var(--brand-dark);
  border: none;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-restart:hover { background: var(--gold-mid); transform: translateY(-1px); }
.btn-back-cover {
  padding: 13px 30px;
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(184,131,42,.5);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s;
}
.btn-back-cover:hover { background: rgba(184,131,42,.1); }

/* ── Quiz footer ── */
.quiz-footer {
  text-align: center;
  margin-top: 44px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .5px;
}

/* ── Share ── */
.share-btn {
  padding: 13px 30px;
  background: transparent;
  color: var(--ink-faint);
  border: 1px solid rgba(138,138,142,.4);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.share-btn:hover { background: rgba(138,138,142,.15); color: var(--ivory); }
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--brand-dark);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--r);
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.share-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--gold); color: var(--brand-dark);
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  text-decoration: none; border-radius: 0 0 var(--r) 0;
  z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Confetti canvas ── */
#confetti-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9990;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .hero { padding: 52px 20px 48px; }
  .sets-grid { grid-template-columns: 1fr; }
  .bottom-cta { padding: 36px 20px; }
  .quiz-brand { font-size: 11px; letter-spacing: 3px; }
  .q-card { padding: 22px 18px 18px; }
  .set-header { padding: 14px 16px; }
  .resume-banner { padding: 12px 16px; gap: 10px; }
  .site-nav { padding: 10px 16px; }
  .final-score { font-size: 56px; }
}

@media print {
  #page-quiz { display: none !important; }
  #page-cover { display: block !important; }
  .hero::before { display: none; }
  .cta-btn, .bottom-cta { display: none; }
  .set-card { break-inside: avoid; }
  body { background: white; }
}
