/* Which CX elf are you? Styles.
   Tokens: Adoreboard Design Style Guide (Doc 00 v3.x), exact values only. Festive by shape, not colour:
   red and green are data colours (risk and opportunity) and stay out of decoration. */

/* Fonts, self-hosted (the same files and licences as the CX Revenue Maturity Index, assets/fonts/). */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/literata-600-opsz72-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/literata-600-opsz72-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(../fonts/bricolage-grotesque-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(../fonts/bricolage-grotesque-var-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --c-purple: #7455AD; --c-plum: #4C3773; --c-ink: #2F2545; --c-lilac: #B199D5;
  --c-mist: #F5F7FD; --c-line: #E0E9F1; --c-slate: #656476; --c-white: #FFFFFF;
  --c-soft: #F5F2FA; --c-soft-strong: #EAE6F3;
  --shadow-md: 0 4px 12px rgba(47,37,69,0.10), 0 1px 3px rgba(47,37,69,0.08);
  --shadow-lg: 0 16px 32px rgba(47,37,69,0.16), 0 4px 10px rgba(47,37,69,0.10);
  --font-title: "Literata", Georgia, serif;
  --font-body: "Bricolage Grotesque", Arial, sans-serif;
  --font-ui: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); color: var(--c-ink); background: var(--c-white); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { min-height: 100svh; }
.surface-result main { min-height: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 14px; }
a { color: var(--c-purple); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-plum); }
:focus-visible { outline: 2px solid var(--c-plum); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--c-lilac); }
[data-focus]:focus { outline: none; }   /* headings get focus for screen readers on each new screen, never a visible box */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.band { padding: 48px 16px; }
.inner { max-width: 880px; margin: 0 auto; }
.inner.narrow { max-width: 640px; }
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-plum); margin: 0 0 8px; }
.night .eyebrow { color: var(--c-lilac); }

/* ── the night sky: intro, reveal and the result's top ── */
.night { background: var(--c-ink); color: var(--c-white); position: relative; overflow: hidden; }
.night .lead { color: rgba(255,255,255,0.88); font-size: 20px; max-width: 620px; }
.night .sub { color: var(--c-lilac); font-size: 17px; }
.night .fineprint { color: rgba(255,255,255,0.72); font-size: 14px; margin-top: 18px; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky .flake { position: absolute; top: -40px; color: var(--c-lilac); opacity: 0.32; }
@media (prefers-reduced-motion: no-preference) {
  .sky .flake { animation: fall linear infinite; }
  @keyframes fall { from { transform: translateY(-40px) rotate(0deg); } to { transform: translateY(110vh) rotate(180deg); } }
}

.intro { min-height: 100svh; display: flex; align-items: center; }
.intro .inner { position: relative; z-index: 1; width: 100%; }
.intro-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .intro .inner { max-width: 1160px; } .intro-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.ring { position: relative; width: 420px; height: 420px; margin: 0 auto; display: none; }
@media (min-width: 1000px) { .ring { display: block; } }
.ring .core { position: absolute; left: 130px; top: 142px; width: 160px; height: 160px; color: var(--c-lilac); }
.ring .ring-slot { position: absolute; width: 80px; height: 80px; }   /* the worn hat reaches 57% of a medal above it */
@media (prefers-reduced-motion: no-preference) { .ring .core { animation: spin 60s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
.logo { display: block; height: 26px; width: auto; margin-bottom: 36px; }
.title { font-size: clamp(42px, 8vw, 72px); margin: 4px 0 18px; color: var(--c-white); }
.elf-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.elf-row li { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(177,153,213,0.45); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 15px; color: rgba(255,255,255,0.9); }
.elf-row svg { width: 22px; height: 22px; color: var(--c-lilac); flex: none; }

.btn { font-family: var(--font-body); font-weight: 600; font-size: 17px; border-radius: 8px; padding: 14px 22px; min-height: 52px; cursor: pointer; border: 1.5px solid var(--c-line); background: var(--c-white); color: var(--c-ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn.primary { background: var(--c-purple); border-color: var(--c-purple); color: var(--c-white); }
.btn.primary:hover { background: var(--c-plum); border-color: var(--c-plum); color: var(--c-white); }
.btn.invert { background: var(--c-white); border-color: var(--c-white); color: var(--c-plum); font-size: 19px; padding: 16px 34px; min-height: 60px; }
.btn.invert:hover { background: var(--c-soft-strong); }
.btn.secondary { border-color: var(--c-purple); color: var(--c-plum); }
.btn.secondary:hover { background: var(--c-soft); }
.btn.ghost { border: none; background: none; color: var(--c-slate); padding: 8px 4px; min-height: 44px; text-decoration: underline; font-weight: 500; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn.primary, .btn.invert { transition: transform 120ms, background 120ms; }
  .btn.primary:hover, .btn.invert:hover { transform: scale(1.02); }
  .btn.primary:active, .btn.invert:active { transform: scale(0.98); }
}

/* ── question screens: the Christmas Eve clock ── */
.quiz { background: var(--c-mist); min-height: 100svh; }
.quiz .band { padding-top: 28px; }
.q-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.clock { width: 52px; height: 52px; flex: none; }
.clock .face { fill: var(--c-white); stroke: var(--c-ink); stroke-width: 2.5; }
.clock .tick { stroke: var(--c-lilac); stroke-width: 2; stroke-linecap: round; }
.clock .hand { stroke: var(--c-ink); stroke-width: 3; stroke-linecap: round; transform-origin: 26px 26px; }
.clock .hand.hour { stroke: var(--c-purple); }
@media (prefers-reduced-motion: no-preference) { .clock .hand.hour { transition: transform 500ms cubic-bezier(.2,.8,.2,1); } }
.q-time { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--c-plum); margin: 0; }
.q-count { font-size: 14px; color: var(--c-slate); margin: 0; }
.progress { display: flex; gap: 6px; margin: 0 0 24px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--c-line); }
.progress span.done { background: var(--c-purple); }
.progress span.now { background: var(--c-lilac); }
.stem { font-size: clamp(26px, 4.6vw, 34px); line-height: 1.25; margin: 0 0 22px; }
.options { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.option { width: 100%; text-align: left; font-family: var(--font-body); font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--c-ink); background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: 12px; padding: 18px 20px; min-height: 64px; cursor: pointer; box-shadow: 0 1px 2px rgba(47,37,69,0.06); }
.option:hover { border-color: var(--c-purple); }
.option.chosen { border-color: var(--c-purple); background: var(--c-soft); box-shadow: inset 0 0 0 1.5px var(--c-purple); }
@media (prefers-reduced-motion: no-preference) { .option { transition: border-color 120ms, background 120ms, transform 120ms; } .option:active { transform: scale(0.99); } }
.q-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }

/* ── the reveal: a present to open ── */
.reveal { min-height: 100svh; display: flex; align-items: center; text-align: center; }
.reveal .inner { position: relative; z-index: 1; width: 100%; }
.reveal h1 { font-size: clamp(34px, 6vw, 52px); color: var(--c-white); margin-bottom: 8px; }
.present { display: block; margin: 26px auto 22px; width: 190px; height: 190px; background: none; border: none; padding: 0; cursor: pointer; }
.present svg { width: 100%; height: 100%; overflow: visible; }
.present .lid { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .present:not(.open) { animation: wobble 2.4s ease-in-out infinite; }
  @keyframes wobble { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(4deg); } 95% { transform: rotate(-2deg); } }
  .present.open .lid { transition: transform 600ms cubic-bezier(.2,.8,.2,1); transform: translateY(-46px) rotate(-14deg); }
  .present.open .box { transition: opacity 500ms 300ms; opacity: 0; }
}

/* ── the result ── */
/* v3 (28 Nov): the elf first, the CX snowflake beside it, then sharing, all on the first screen */
.result-hero { padding: 30px 16px 40px; }
.result-hero .inner { position: relative; z-index: 1; max-width: 1080px; }
.result-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .result-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 44px; } }
.elf-name { font-size: clamp(44px, 8vw, 68px); color: var(--c-white); margin: 2px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 14px; font-size: 15px; font-weight: 600; margin: 0 0 18px; }
.night .chip { border: 1.5px solid var(--c-lilac); color: var(--c-lilac); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.night .chip .dot { background: var(--c-lilac); }
.brag { font-size: clamp(20px, 3vw, 24px); line-height: 1.45; color: var(--c-white); max-width: 620px; margin: 0; }
.hero-medal { width: 118px; height: 118px; margin: 70px 0 20px 8px; }   /* the hat needs 57% of the medal above it */
@media (max-width: 759px) { .hero-medal { width: 88px; height: 88px; margin: 52px 0 14px 6px; } }
.flake-card { margin: 0; background: var(--c-white); color: var(--c-ink); border-radius: 18px; padding: 16px 18px 14px; box-shadow: var(--shadow-lg); }
.flake-title { font-family: var(--font-title); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--c-ink); }
.flake-card .snowflake { max-width: 100%; margin: 2px auto 4px; }
.legend.inline { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.legend.inline li { margin: 0; font-size: 15px; }
.flake-card .caption { font-size: 14px; line-height: 1.45; }
.share-block { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(177,153,213,0.35); }
.share-title { font-size: clamp(24px, 3.4vw, 30px); color: var(--c-white); margin: 0 0 14px; }
.guess-result { display: inline-block; margin: 18px 0 0; padding: 8px 14px; border-radius: 10px; background: rgba(177,153,213,0.18); border: 1px solid rgba(177,153,213,0.55); color: var(--c-white); font-weight: 600; font-size: 16px; text-wrap: pretty; }

.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-md); }
.card h2 { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-plum); margin: 0 0 8px; }
.card .big { font-family: var(--font-title); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 0 0 6px; color: var(--c-ink); }
.card p { color: var(--c-slate); margin: 0; }
.card.wide { grid-column: 1 / -1; }
.show-up { margin: 0; padding: 0; list-style: none; }
.show-up li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--c-ink); font-size: 18px; }
.show-up li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 12px; background: var(--c-purple); transform: rotate(45deg); border-radius: 2px; }
.tag-note { color: var(--c-plum); font-weight: 600; font-size: 15px; margin-top: 8px !important; }

.soft { background: var(--c-soft); }
.section-title { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
.section-lead { color: var(--c-slate); margin: 0 0 22px; }
.snowflake-wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .snowflake-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.snowflake { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }
.snowflake .label { font-family: var(--font-ui); font-weight: 500; font-size: 19px; fill: var(--c-ink); }
.snowflake .label.mine { font-weight: 600; fill: var(--c-plum); }
@media (prefers-reduced-motion: no-preference) {
  .snowflake .arm { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: grow 900ms cubic-bezier(.2,.8,.2,1) forwards; }
  @keyframes grow { to { stroke-dashoffset: 0; } }
  .snowflake .branch, .snowflake .tip { opacity: 0; animation: appear 300ms 700ms forwards; }
  @keyframes appear { to { opacity: 1; } }
}
.legend { margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.legend .swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; transform: translateY(2px); }
.legend strong { font-weight: 600; }
.legend span.meaning { color: var(--c-slate); }
.caption { color: var(--c-slate); font-size: 15px; margin: 6px 0 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.copied { color: var(--c-plum); font-size: 15px; min-height: 1.4em; margin: 10px 0 0; }

.workshop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
@media (min-width: 760px) { .workshop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.workshop li { display: flex; align-items: center; gap: 10px; background: var(--c-white); border: 1.5px dashed var(--c-line); border-radius: 12px; padding: 12px; font-size: 15px; color: var(--c-slate); }
.workshop li svg { width: 28px; height: 28px; flex: none; color: var(--c-lilac); }
.workshop li.mine { border: 1.5px solid var(--c-purple); background: var(--c-soft); color: var(--c-ink); font-weight: 600; }
.workshop li.mine svg { color: var(--c-purple); }
.workshop small { display: block; font-weight: 400; color: var(--c-slate); font-size: 13px; }

.dayjob { background: var(--c-white); border: 1.5px solid var(--c-purple); border-radius: 14px; padding: 22px; }
.dayjob h2 { font-size: 28px; margin-bottom: 8px; }
.form-row { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr) auto; } }
label.field { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type="email"] { font-family: var(--font-body); font-size: 17px; padding: 12px 14px; min-height: 52px; border: 1.5px solid var(--c-line); border-radius: 8px; width: 100%; color: var(--c-ink); }
input[type="email"]:focus-visible { border-color: var(--c-plum); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--c-slate); margin-top: 12px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--c-purple); }
.form-msg { font-size: 15px; margin: 10px 0 0; min-height: 1.4em; color: var(--c-plum); }

.cta-band { background: var(--c-ink); color: var(--c-white); text-align: left; }
.cta-band h2 { color: var(--c-white); font-size: clamp(26px, 4vw, 34px); margin-bottom: 18px; }
.end { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
details.how { margin-top: 18px; color: var(--c-slate); font-size: 15px; }
details.how summary { cursor: pointer; color: var(--c-plum); font-weight: 600; }
.honesty { color: var(--c-slate); font-size: 15px; margin-top: 14px; }

/* the page a shared link opens */
.shared { min-height: 100svh; display: flex; align-items: center; }
.shared .inner { position: relative; z-index: 1; width: 100%; }


/* ── v2 (28 Nov), from the three review panels ── */
/* the medal: a white circle, the elf's icon, and a hat on top */
.medal { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c-white); color: var(--c-ink); box-shadow: 0 0 0 7px rgba(177,153,213,0.35); }
.medal > svg:first-child { width: 56%; height: 56%; }
.q-time.tie { font-family: var(--font-title); font-size: 30px; line-height: 1.1; }
.hero-medal .medal { box-shadow: 0 0 0 10px rgba(177,153,213,0.35); }

/* share buttons on the result's night sky */
.btn.light { background: transparent; border-color: rgba(255,255,255,0.65); color: var(--c-white); }
.btn.light:hover { background: rgba(255,255,255,0.1); }
.copied.light { color: var(--c-lilac); }

/* the present: the elf pops out */
.present { position: relative; }
.present .pop { position: absolute; left: 50%; top: 46%; width: 112px; height: 112px; margin-left: -56px; opacity: 0; transform: translateY(30px) scale(0.5); pointer-events: none; }
.present.open .pop { opacity: 1; transform: translateY(-66px) scale(1); }
@media (prefers-reduced-motion: no-preference) { .present .pop { transition: transform 700ms 350ms cubic-bezier(.2,1.4,.4,1), opacity 300ms 350ms; } }
/* 29 Nov: the elf's own drawing pops out, in place of the medal, and ends standing where the box was */
.present .pop-elf { top: -4%; width: 140px; height: 200px; margin-left: -70px; }
.present.open .pop-elf { transform: none; }   /* it rises into the present's own space, clear of the line above */
.present .pop-elf img { display: block; height: 100%; width: auto; margin: 0 auto; }

/* the elf in a light circle (29 Nov, from the share card), on the result and on the page a shared link opens.
   The drawing stands taller than its circle, so the hat rises out of the top. It replaces the medal */
.hero-elf { position: relative; width: 200px; height: 200px; margin: 58px 0 24px; border-radius: 50%; background: var(--c-soft); box-shadow: 0 0 0 10px rgba(177,153,213,0.35); }
.hero-elf img { position: absolute; left: 50%; bottom: 2.5%; height: 117%; width: auto; transform: translateX(-50%); }
@media (max-width: 759px) { .hero-elf { width: 150px; height: 150px; margin: 46px 0 20px; } }
.shared-inner { max-width: 1080px; }
.shared-grid { display: grid; align-items: center; }
.hero-elf.big { order: -1; }
@media (min-width: 900px) { .shared-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } .hero-elf.big { order: 0; width: 340px; height: 340px; margin: 70px 0 0; } }

/* the questions: the sky darkens hour by hour, Mist at 4pm to Ink at 11pm (Doc 00 pairs: Ink text on the light
   four, White on Purple, Plum and Ink) */
.quiz { position: relative; overflow: hidden; }
.quiz .band { position: relative; z-index: 1; }
.quiz.hour-0 { background: var(--c-mist); }
.quiz.hour-1 { background: var(--c-soft); }
.quiz.hour-2 { background: var(--c-soft-strong); }
.quiz.hour-3 { background: var(--c-lilac); }
.quiz.hour-4 { background: var(--c-purple); }
.quiz.hour-5 { background: var(--c-plum); }
.quiz.hour-6, .quiz.hour-7 { background: var(--c-ink); }
.quiz.hour-3 .q-time, .quiz.hour-3 .q-count, .quiz.hour-3 .btn.ghost { color: var(--c-ink); }
.quiz.hour-3 .progress span { background: rgba(47,37,69,0.18); }
.quiz.hour-3 .progress span.done, .quiz.hour-3 .progress span.now { background: var(--c-ink); }
.quiz.hour-4 .stem, .quiz.hour-5 .stem, .quiz.hour-6 .stem, .quiz.hour-7 .stem { color: var(--c-white); }
.quiz.hour-4 .q-time, .quiz.hour-5 .q-time, .quiz.hour-6 .q-time, .quiz.hour-7 .q-time { color: var(--c-white); }
.quiz.hour-4 .q-count, .quiz.hour-5 .q-count, .quiz.hour-6 .q-count, .quiz.hour-7 .q-count,
.quiz.hour-4 .btn.ghost, .quiz.hour-5 .btn.ghost, .quiz.hour-6 .btn.ghost, .quiz.hour-7 .btn.ghost { color: rgba(255,255,255,0.85); }
.quiz.hour-4 .progress span, .quiz.hour-5 .progress span, .quiz.hour-6 .progress span, .quiz.hour-7 .progress span { background: rgba(255,255,255,0.22); }
.quiz.hour-4 .progress span.done, .quiz.hour-5 .progress span.done, .quiz.hour-6 .progress span.done, .quiz.hour-7 .progress span.done { background: var(--c-white); }
.quiz.hour-4 .progress span.now, .quiz.hour-5 .progress span.now, .quiz.hour-6 .progress span.now, .quiz.hour-7 .progress span.now { background: var(--c-lilac); }
.quiz.hour-4 :focus-visible, .quiz.hour-5 :focus-visible, .quiz.hour-6 :focus-visible, .quiz.hour-7 :focus-visible { outline-color: var(--c-white); }
.clock { width: 96px; height: 96px; }
@media (max-width: 479px) { .clock { width: 72px; height: 72px; } }
.q-time { font-size: 19px; }

/* the gut timer (Carley, 28 Nov): the minute hand sweeps once and a Lilac wedge fills behind it, 5 seconds, then
   stops. No cut-off. Reduced motion: no sweep, the cue stays. */
.clock .sweep { fill: none; stroke: var(--c-lilac); stroke-width: 20; opacity: 0.55; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 26px 26px; }
@media (prefers-reduced-motion: no-preference) {
  .clock.timing .hand.minute { animation: sweep-hand 5s linear forwards; }
  .clock.timing .sweep { animation: sweep-fill 5s linear forwards; }
  @keyframes sweep-hand { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes sweep-fill { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) { .clock .sweep { display: none; } }
.q-gut { font-size: 15px; font-weight: 600; color: var(--c-purple); margin: 2px 0 0; }
.quiz.hour-3 .q-gut { color: var(--c-ink); }
.quiz.hour-4 .q-gut, .quiz.hour-5 .q-gut, .quiz.hour-6 .q-gut, .quiz.hour-7 .q-gut { color: var(--c-white); }

/* the team link: elves already found light up */
.team-found { color: var(--c-white); font-weight: 600; margin: 0 0 6px; }
.elf-row li.found { border-color: var(--c-lilac); background: rgba(177,153,213,0.18); }
.workshop-count { font-weight: 600; color: var(--c-plum); margin: 0 0 12px; }
.workshop li.found { border: 1.5px solid var(--c-lilac); background: var(--c-white); color: var(--c-ink); }
.workshop li.found svg { color: var(--c-purple); }
.workshop.full li { border-style: solid; }

/* guess your teammate's elf (Carley, 28 Nov): the guess rides on the team link */
fieldset.guess { border: 1.5px solid var(--c-line); border-radius: 14px; padding: 14px 18px 18px; margin: 0 0 18px; background: var(--c-white); min-width: 0; }
fieldset.guess legend { font-family: var(--font-title); font-weight: 600; font-size: 22px; padding: 0 6px; color: var(--c-ink); }
.guess-lead { color: var(--c-slate); font-size: 16px; margin: 2px 0 12px; }
.guess-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.guess-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--c-line); border-radius: 999px; padding: 8px 14px; min-height: 44px; font-size: 15px; cursor: pointer; background: var(--c-white); color: var(--c-ink); }
.guess-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.guess-opt svg { width: 20px; height: 20px; color: var(--c-purple); flex: none; }
.guess-opt:hover { border-color: var(--c-purple); }
.guess-opt:has(input:checked) { border-color: var(--c-purple); background: var(--c-soft); box-shadow: inset 0 0 0 1.5px var(--c-purple); font-weight: 600; }
.guess-opt:has(input:focus-visible) { outline: 2px solid var(--c-plum); outline-offset: 2px; }

/* the day job: masked until January, and the email box */
.dayjob h2.masked { font-size: clamp(24px, 4vw, 30px); letter-spacing: 0.04em; }
.use-note { font-size: 15px; color: var(--c-slate); margin: 10px 0 0; }

/* ── The standard tool footer (10 Nov 2026), copied unchanged from the CX Revenue Maturity Index and the
   CX Revenue Challenge: change all three together. ── */
.ab-footer {
  --abf-purple: #7455AD; --abf-plum: #4C3773; --abf-ink: #2F2545; --abf-slate: #656476;
  --abf-mist: #F5F7FD; --abf-line: #E0E9F1;
  --abf-max: 1200px; --abf-gutter: 24px;
  background: var(--abf-mist); border-top: 1px solid var(--abf-line); color: var(--abf-slate);
  padding: 40px var(--abf-gutter);
  font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 14px; line-height: 1.6;
}
.ab-footer-inner { max-width: var(--abf-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: start; }
.ab-footer p { margin: 0; }
.ab-footer ul { margin: 0; padding: 0; list-style: none; }
.ab-footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 14px; }
.ab-footer-copy { color: var(--abf-ink); font-weight: 500; }
.ab-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ab-footer-links a { color: var(--abf-purple); text-decoration: underline; text-underline-offset: 2px; }
.ab-footer-links a:hover { color: var(--abf-plum); }
.ab-footer a:focus-visible { outline: 2px solid var(--abf-plum); outline-offset: 2px; border-radius: 2px; }
.ab-footer .ab-footer-note { max-width: 580px; margin: 0 0 6px; font-size: 13px; line-height: 1.55; }
.ab-footer-brand { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ab-footer-logo, .ab-footer-logo img { display: block; }
.ab-footer-logo img { width: 180px; height: auto; }
.ab-footer-recognised { margin-top: 24px; }
.ab-footer .ab-footer-label { margin: 0 0 12px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--abf-slate); }
.ab-footer-logos { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 28px; }
.ab-footer-logos img { display: block; height: auto; }
.ab-footer .ab-logo-forrester { width: 108px; }
.ab-footer .ab-logo-gartner { width: 80px; }
.ab-footer .ab-logo-qualtrics { width: 84px; }
@media (max-width: 760px) {
  .ab-footer-inner { grid-template-columns: minmax(0, 1fr); }
  .ab-footer-brand { order: -1; align-items: flex-start; text-align: left; }
  .ab-footer-logos { justify-content: flex-start; }
}
@media (max-width: 479px) { .ab-footer { padding-top: 36px; padding-bottom: 36px; } }
@media (max-width: 400px) { .ab-footer-logos { gap: 12px 20px; } }
@media (max-width: 359px) {
  .ab-footer-logos { gap: 12px 16px; }
  .ab-footer .ab-logo-forrester { width: 92px; }
  .ab-footer .ab-logo-gartner { width: 68px; }
  .ab-footer .ab-logo-qualtrics { width: 72px; }
}
/* ── end of the standard tool footer ── */
.ab-footer { --abf-max: 880px; --abf-gutter: 16px; }

/* 29 Nov: the Santa hat on the question mark, the elves on the intro, and the snowflake's note */
.hq { position: relative; display: inline-block; }
.hq .khat { position: absolute; width: .8em; height: .8em; left: -.16em; top: -.12em; overflow: visible; transform: rotate(12deg); }
.team { display: none; }
@media (min-width: 1000px) { .team { display: block; background: var(--c-soft); border-radius: 28px; padding: 22px 18px 10px; box-shadow: 0 0 0 10px rgba(177,153,213,0.35); } .team img { display: block; width: 100%; height: auto; } }
.flake-note { display: block; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--c-plum); margin-top: 2px; }
