/* ==================================================================
   page-quiz.css — Peptide Persona Quiz v2 (#1893), /quiz/ and /quiz/result/.
   Redesigned 2026-10-29 (Elizabeth): the quiz opens as a pop-up sheet
   (full height on a phone, a centred card from 720px), the result page
   leads with the persona reveal and pictures. Mobile first. Aurora tokens
   throughout, so light, dark and the three accents all follow the site.
   Nothing on either page scrolls sideways (check-overflow).
   ================================================================== */

.quiz-app { --q-grad: linear-gradient(120deg, var(--accent-deep), #9A6FE8); }
.quiz-app .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quiz-ic { flex: none; display: block; }

/* ---- Shared type ---- */
.quiz-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 7.4vw, 46px); line-height: 1.06; letter-spacing: -0.015em; margin: 6px 0 10px; text-wrap: balance; }
.quiz-h1:focus, .quiz-q:focus { outline: none; }
.quiz-sub { font-size: 16.5px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.quiz-fine { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.quiz-noscript { padding: 16px 20px; }

/* ==================================================================
   THE POP-UP SHEET (/quiz/)
   ================================================================== */
html.quiz-modal-open, html.quiz-modal-open body { overflow: hidden; }
.quiz-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; }
.quiz-scrim { position: absolute; inset: 0; background: rgba(33,29,51,0.30); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: qFade 0.3s ease both; }
:root[data-theme="dark"] .quiz-scrim { background: rgba(5,4,12,0.62); }
.quiz-sheet {
  position: relative; width: 100%; max-width: 560px;
  height: calc(100vh - 18px); height: calc(100dvh - 18px);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(183,164,242,0.34), transparent 55%),
    radial-gradient(90% 50% at 100% 4%, rgba(255,211,181,0.30), transparent 55%),
    radial-gradient(110% 60% at 100% 100%, rgba(168,227,204,0.28), transparent 55%),
    var(--bg);
  box-shadow: var(--tab-shadow);
  animation: qSheetUp 0.42s cubic-bezier(.2,.7,.2,1) both;
}
.quiz-sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--hairline); margin: 8px auto 0; }
.quiz-sheet .quiz-app { display: flex; flex-direction: column; min-height: calc(100% - 13px); padding: 0 20px 22px; box-sizing: border-box; }
@keyframes qSheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qFade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 720px) {
  .quiz-modal { align-items: center; padding: 24px; }
  .quiz-sheet { height: auto; max-height: min(880px, calc(100vh - 48px)); max-height: min(880px, calc(100dvh - 48px)); min-height: 660px; border-radius: 26px; }
  .quiz-sheet::before { display: none; }
  .quiz-sheet .quiz-app { min-height: 660px; padding: 4px 32px 28px; }
}

.quiz-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  margin: 0 -20px; padding: 10px 16px 8px;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
/* Clear over the sheet's aurora (Elizabeth, 2026-10-29: no white band), and
   frosted only once the content has scrolled up under it. */
.quiz-sheet.is-scrolled .quiz-top {
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur);
  box-shadow: 0 1px 0 var(--hairline);
}
@media (min-width: 720px) { .quiz-top { margin: 0 -32px; padding: 14px 24px 10px; } }
.quiz-top-mid { flex: 1 1 auto; min-width: 0; }
.quiz-icbtn, .quiz-icbtn-gap { flex: none; width: 44px; height: 44px; border-radius: 99px; }
.quiz-icbtn { display: flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; color: var(--ink); background: var(--chip-bg); border: 1px solid var(--chip-border); transition: transform 0.15s ease; }
.quiz-icbtn:hover { transform: translateY(-1px); }
.quiz-icbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.quiz-progress { height: 6px; border-radius: 99px; background: var(--hairline); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; border-radius: 99px; background: var(--q-grad); transition: width 0.4s cubic-bezier(.2,.7,.2,1); }

.quiz-screen { display: flex; flex-direction: column; flex: 1 1 auto; animation: qUp 0.42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes qUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quiz-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
.quiz-go { width: 100%; justify-content: center; height: 54px; font-size: 16.5px; }
.quiz-go[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- Intro ---- */
.quiz-intro { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1 1 auto; }
.quiz-hero-art { position: relative; width: 250px; height: 220px; margin: 6px auto 6px; animation: qFloat 5s ease-in-out infinite; }
.quiz-orb-glow, .quiz-orb { position: absolute; border-radius: 50%; background: var(--orb); }
.quiz-orb-glow { left: 55px; top: 30px; width: 140px; height: 140px; filter: blur(20px); opacity: 0.7; }
.quiz-orb { left: 67px; top: 42px; width: 116px; height: 116px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55); animation: qSpin 16s linear infinite; }
.quiz-float-av { position: absolute; border-radius: 50%; border: 3px solid var(--bg); box-shadow: var(--glass-shadow); animation: qPop 0.6s cubic-bezier(.2,.7,.2,1) both; }
.quiz-float-av--1 { left: 0; top: 16px; width: 70px; height: 70px; animation-delay: 0.1s; }
.quiz-float-av--2 { right: 2px; top: 0; width: 62px; height: 62px; animation-delay: 0.2s; }
.quiz-float-av--3 { right: 16px; bottom: 4px; width: 78px; height: 78px; animation-delay: 0.3s; }
.quiz-float-av--4 { left: 24px; bottom: 0; width: 56px; height: 56px; animation-delay: 0.4s; }
.quiz-twinkle { position: absolute; color: var(--accent); animation: qTwinkle 2.6s ease-in-out infinite; }
.quiz-twinkle--1 { left: 112px; top: 0; }
.quiz-twinkle--2 { left: 198px; top: 118px; color: #B7A4F2; animation-delay: 1.1s; }
.quiz-eyebrow { color: var(--accent-text); margin: 6px 0 2px; }
.quiz-gets { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 0 8px; }
.quiz-gets li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--chip-bg); border: 1px solid var(--chip-border); font-size: 13.5px; font-weight: 500; }
.quiz-gets .quiz-ic { color: var(--accent); }
@keyframes qSpin { to { transform: rotate(360deg); } }
@keyframes qFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes qTwinkle { 0%, 100% { opacity: 0.25; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1); } }
@keyframes qPop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

/* ---- Questions ---- */
.quiz-qnum { font-family: var(--mono); font-size: 12.5px; color: var(--accent-text); margin: 10px 0 4px; }
.quiz-q { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 6.6vw, 32px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 6px; text-wrap: balance; }
.quiz-guide, .quiz-count { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.quiz-count span { display: inline-block; min-width: 1ch; font-weight: 700; color: var(--ink); }
.quiz-options { display: grid; gap: 10px; margin: 14px 0 6px; }

.quiz-opt {
  position: relative; font: inherit; color: var(--ink); cursor: pointer; text-align: left;
  background: var(--glass); border: 1.5px solid var(--chip-border); border-radius: 18px;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  animation: qUp 0.42s cubic-bezier(.2,.7,.2,1) both;
}
.quiz-opt:nth-child(2) { animation-delay: 0.04s; } .quiz-opt:nth-child(3) { animation-delay: 0.08s; }
.quiz-opt:nth-child(4) { animation-delay: 0.12s; } .quiz-opt:nth-child(5) { animation-delay: 0.16s; }
.quiz-opt:nth-child(6) { animation-delay: 0.2s; } .quiz-opt:nth-child(n+7) { animation-delay: 0.24s; }
.quiz-opt:hover { transform: translateY(-1px); box-shadow: var(--glass-shadow); }
.quiz-opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--bg); box-shadow: 0 6px 22px color-mix(in oklch, var(--accent) 22%, transparent); }
.quiz-opt-label { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.quiz-opt-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); background: color-mix(in oklch, var(--accent) 12%, transparent); }
.quiz-check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--q-grad); opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.2s ease; }
.quiz-check .quiz-ic { stroke-width: 3; }
.quiz-opt[aria-pressed="true"] .quiz-check { opacity: 1; transform: none; }

/* doors: persona art tiles */
.quiz-options--art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-opt--art { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; min-height: 140px; text-align: center; border-radius: 20px; }
.quiz-opt-art { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.quiz-opt-art--icon { display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--orb); }
.quiz-opt--art .quiz-opt-label { font-size: 14.5px; }

/* rows */
.quiz-opt--row { display: flex; align-items: center; gap: 14px; padding: 11px 16px 11px 11px; min-height: 64px; }
.quiz-opt--row .quiz-opt-label { flex: 1 1 auto; min-width: 0; }
.quiz-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--chip-border); display: flex; align-items: center; justify-content: center; color: transparent; transition: background 0.2s ease, border-color 0.2s ease; }
.quiz-radio .quiz-ic { stroke-width: 3.5; }
.quiz-opt[aria-pressed="true"] .quiz-radio { background: var(--q-grad); border-color: transparent; color: #fff; }

/* stage: a journey */
.quiz-options--journey { position: relative; }
.quiz-options--journey::before { content: ""; position: absolute; left: 34px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; background: linear-gradient(#B7A4F2, #FFD3B5, #A8E3CC); }
.quiz-opt--journey { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 13px; min-height: 68px; }
.quiz-opt--journey .quiz-opt-ic { background: var(--bg); border: 1px solid var(--chip-border); position: relative; z-index: 1; transition: background 0.2s ease, color 0.2s ease; }
.quiz-opt--journey[aria-pressed="true"] .quiz-opt-ic { background: var(--q-grad); color: #fff; border-color: transparent; }
.quiz-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quiz-opt-sub { font-size: 13px; color: var(--muted); }

/* short four-way choice: icon tiles */
.quiz-options--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-opt--tile { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; min-height: 132px; border-radius: 20px; }
.quiz-opt--tile .quiz-opt-ic { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, rgba(183,164,242,0.45), rgba(255,211,181,0.45)); color: var(--accent-deep); }
:root[data-theme="dark"] .quiz-opt--tile .quiz-opt-ic { color: var(--accent); }

/* acknowledgement between questions */
.quiz-ackwrap { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; padding: 40px 6px; }
.quiz-ack-ic { color: var(--accent); animation: qTwinkle 2.4s ease-in-out infinite; }
.quiz-ack { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin: 0; }

/* free text */
.quiz-field { display: block; margin: 0 0 14px; }
.quiz-field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.quiz-field input, .quiz-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 13px 16px; color: var(--ink);
  border-radius: 14px; border: 1px solid var(--field-border); background: var(--field);
}
.quiz-field input { border-radius: 99px; height: 50px; }
.quiz-field input:focus, .quiz-field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.quiz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- Email + reveal ---- */
.quiz-tease { text-align: center; margin: 4px 0 12px; }
.quiz-tease .quiz-sub { margin-bottom: 4px; }
.quiz-reveal { position: relative; width: 156px; height: 156px; margin: 4px auto 12px; }
.quiz-reveal-glow, .quiz-reveal-ring { position: absolute; border-radius: 50%; }
.quiz-reveal-glow { inset: 0; background: var(--orb); filter: blur(18px); opacity: 0.8; animation: qReveal 0.8s cubic-bezier(.2,.7,.2,1) both; }
.quiz-reveal-ring { inset: 8px; background: conic-gradient(from 0deg, var(--accent-deep), #B7A4F2, #FFD3B5, #A8E3CC, var(--accent-deep)); animation: qSpin 6s linear infinite; }
.quiz-avatar { border-radius: 50%; display: block; object-fit: cover; }
.quiz-reveal-av { position: absolute; inset: 13px; width: calc(100% - 26px); height: calc(100% - 26px); border: 4px solid var(--bg); box-sizing: border-box; animation: qReveal 0.8s cubic-bezier(.2,.7,.2,1) 0.12s both; }
.quiz-twinkle--3 { left: -4px; top: 18px; }
.quiz-twinkle--4 { right: 2px; top: 2px; color: #9A6FE8; animation-delay: 0.7s; }
.quiz-twinkle--5 { right: -6px; bottom: 34px; color: #E8A87E; animation-delay: 1.3s; }
@keyframes qReveal { from { opacity: 0; transform: scale(0.86); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.quiz-email .quiz-go { margin-top: 4px; }
.quiz-error { color: #b3261e; font-size: 14.5px; margin: 10px 0 0; }
:root[data-theme="dark"] .quiz-error { color: #F2A49B; }
.quiz-skip { text-align: center; margin: 6px 0 0; font-size: 14.5px; }
.quiz-skip a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 3px; }

/* ==================================================================
   RESULT PAGE (/quiz/result/)
   ================================================================== */
.quiz-wrap { max-width: 680px; padding-top: 28px; padding-bottom: 72px; }
.quiz-wrap--result { max-width: 640px; padding-top: 12px; }
.quiz-wrap--result .quiz-app { scroll-margin-top: 96px; min-height: 60vh; }
.quiz-result { gap: 40px; }
.quiz-result h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 6vw, 30px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 10px; }
.quiz-result a:not(.btn) { color: var(--accent-text); }
.qr-mark { font-family: var(--mono); font-size: 12.5px; color: var(--accent-text); margin: 0 0 4px; }
.qr-sec { scroll-margin-top: 96px; }

.qr-up { animation: qUp 0.55s cubic-bezier(.2,.7,.2,1) both; }
.qr-d1 { animation-delay: 0.15s; } .qr-d2 { animation-delay: 0.25s; } .qr-d3 { animation-delay: 0.35s; } .qr-d4 { animation-delay: 0.45s; }

/* hero */
.qr-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 10px; }
.quiz-reveal--lg { width: 216px; height: 216px; margin-bottom: 4px; }
.qr-hero .eyebrow { color: var(--accent-text); margin: 0; }
.qr-hero .quiz-h1 { margin: 0; }
.qr-path { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 7px 14px; border-radius: 99px; background: var(--bg); border: 1px solid var(--chip-border); box-shadow: var(--glass-shadow); font-size: 14.5px; font-weight: 700; }
.qr-path-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--q-grad); flex: none; }
.qr-identity { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; margin: 4px 0 0; max-width: 30ch; }
.qr-means { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 42ch; }
.qr-answers { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.qr-answers-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.qr-answers-top a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }
.qr-answers ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.qr-answers li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: var(--bg); border: 1px solid var(--chip-border); font-size: 13.5px; }
.qr-answers li .quiz-ic { color: var(--good); stroke-width: 3; }
.quiz-welcome { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin: 0; font-size: 15px; line-height: 1.5; }
.quiz-welcome .quiz-ic { color: var(--good); margin-top: 2px; stroke-width: 3; }

/* steps */
.qr-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.qr-done { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; margin: 0 0 12px; }
.qr-bar { display: flex; gap: 6px; margin: 0 0 14px; }
.qr-bar > span { flex: 1 1 0; height: 6px; border-radius: 99px; background: var(--hairline); overflow: hidden; }
.qr-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--q-grad); transition: width 0.4s cubic-bezier(.2,.7,.2,1); }
.qr-bar > span.is-done i { width: 100%; }
.qr-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.qr-step { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px; }
.qr-tick { flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font: inherit; border: 2px solid var(--chip-border); background: var(--bg); color: var(--accent-text); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.qr-tick-n { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.qr-tick .quiz-ic { display: none; stroke-width: 3; }
.qr-tick[aria-pressed="true"] { background: var(--q-grad); border-color: transparent; color: #fff; }
.qr-tick[aria-pressed="true"] .qr-tick-n { display: none; }
.qr-tick[aria-pressed="true"] .quiz-ic { display: block; animation: qPop 0.25s ease-out both; }
.qr-tick:focus-visible, .qr-step-link:focus-visible, .qr-toggle:focus-visible, .qr-tip-btn:focus-visible, .qr-dot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz-result .qr-step-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; color: var(--ink); text-decoration: none; border-radius: 14px; }
.qr-step-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qr-step-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.qr-step-link:hover .qr-step-title { color: var(--accent-text); }
.qr-step-sub { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.qr-step-img { flex: none; width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: #fff; }
.qr-step.is-done .qr-step-title { text-decoration: line-through; text-decoration-color: var(--accent); color: var(--muted); }

/* cards with a picture on top */
.qr-card { border-radius: 24px; overflow: hidden; scroll-margin-top: 96px; }
.qr-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.qr-card-body p { margin: 0; line-height: 1.55; }
.qr-card-body .eyebrow { color: var(--accent-text); }
.qr-card-body h2 { margin: 0; }
.qr-card-body h2 a { color: inherit !important; text-decoration: none; }
.qr-card-body--row { flex-direction: row; align-items: flex-start; gap: 14px; }
.qr-card-body--row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.qr-card-media { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: #fff; }
.qr-card-media--photo { aspect-ratio: 16 / 10; }
.qr-feat-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--hairline); }
.qr-feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-vs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qr-vs span { padding: 7px 13px; border-radius: 99px; background: var(--tab-bg); color: var(--ink); -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur); border: 1px solid var(--glass-border); font-size: 14px; font-weight: 700; }
.qr-vs b { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--q-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 15px; }
.quiz-also { font-size: 14.5px; margin: 0; }
.qr-featured .btn { margin-top: 4px; }
.qr-cta-line { font-family: var(--serif); font-size: 21px; line-height: 1.3 !important; }

/* tools */
.quiz-tools { display: grid; gap: 12px; }
.quiz-tool { padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.quiz-tool p { margin: 0; line-height: 1.5; }

/* prices */
.qr-sortchip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--accent-text); background: color-mix(in oklch, var(--accent) 10%, transparent); }
.quiz-sortline { color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.qr-pep { padding: 18px; margin: 0 0 14px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px; }
.qr-pep h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.qr-pep h3 a { color: inherit !important; text-decoration: none; }
.qr-pep > p { margin: -8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.qr-low { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 18px; background: var(--good-bg); }
.qr-low-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qr-low-k { font-size: 12px; font-weight: 600; color: var(--muted); }
.qr-low-v { display: flex; align-items: baseline; gap: 3px; }
.qr-low-v .price { font-size: clamp(32px, 9vw, 40px); line-height: 1; }
.qr-low-v small, .qr-sticky .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.qr-low-who { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; min-width: 0; }
.qr-best { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--good-text); border: 1px solid currentColor; font-size: 11.5px; font-weight: 700; }
.qr-low-n { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.qr-low-d { font-size: 12px; color: var(--muted); }
.qr-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.qr-bars li { display: flex; align-items: center; gap: 8px; }
.qr-bars-n { flex: 0 0 92px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-bars-t { flex: 1 1 auto; height: 8px; border-radius: 99px; background: var(--hairline); overflow: hidden; }
.qr-bars-t i { display: block; height: 100%; border-radius: 99px; background: #B7A4F2; transform-origin: left center; animation: qGrow 1.1s cubic-bezier(.2,.7,.2,1) both; }
.qr-bars-t i.is-low { background: var(--good); }
.qr-bars-v { flex: 0 0 42px; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
@keyframes qGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.qr-toggle { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--chip-bg); border: 1px solid var(--chip-border); }
.qr-toggle .quiz-ic { transition: transform 0.25s ease; }
.qr-toggle[aria-expanded="true"] .quiz-ic { transform: rotate(180deg); }
.qr-vendors { animation: qUp 0.3s ease both; }
.quiz-prices { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.quiz-prices th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--hairline); }
.quiz-prices th:nth-child(2) { width: 34%; } .quiz-prices th:nth-child(3) { width: 64px; }
.quiz-prices td { padding: 10px 4px; border-bottom: 1px solid var(--hairline); vertical-align: middle; overflow-wrap: anywhere; }
.quiz-prices td:last-child { text-align: right; white-space: nowrap; }
.quiz-prices tr.is-low td { font-weight: 700; }
.quiz-prices small { color: var(--muted); font-weight: 400; }
.quiz-vn { display: block; font-weight: 600; }
.quiz-conf { display: inline-block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.quiz-conf--high { color: var(--good-text); }
.qr-code { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 11px; font-weight: 400; padding: 1px 6px; border-radius: 7px; border: 1px dashed var(--accent); color: var(--accent-text); }
.quiz-result .quiz-shop { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--ink); text-decoration: none; }
.quiz-more { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 600; }
.quiz-nodata { color: var(--muted); font-size: 14.5px; margin: 0; }

/* how we sorted */
.qr-legend { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 13.5px; }
.qr-legend li { display: flex; align-items: center; gap: 8px; }
.qr-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.qr-legend .v-high { background: var(--v-high); } .qr-legend .v-new { background: var(--v-new); }
.qr-legend .v-mod { background: var(--v-mod); } .qr-legend .v-low { background: var(--v-low); }

/* tips: one card at a time, tap through (no sideways scrolling) */
.qr-tip { border-radius: 24px; overflow: hidden; }
.qr-tip.is-in { animation: qUp 0.35s cubic-bezier(.2,.7,.2,1) both; }
.qr-tip-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.qr-tip-art--num, .qr-tip-art--bars { background: linear-gradient(135deg, rgba(183,164,242,0.38), rgba(255,211,181,0.38), rgba(168,227,204,0.38)); }
.qr-tip-art--num { display: flex; align-items: center; justify-content: center; }
.qr-tip-art--num span { font-family: var(--serif); font-size: 84px; line-height: 1; color: var(--accent-deep); opacity: 0.8; }
:root[data-theme="dark"] .qr-tip-art--num span { color: var(--accent); }
.qr-tip-art--bars { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 22px; box-sizing: border-box; }
.qr-tip-cap { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.qr-tip-row { display: flex; align-items: center; gap: 10px; }
.qr-tip-row b { flex: 0 0 66px; font-size: 13px; }
.qr-tip-row i { height: 22px; border-radius: 99px; background: #B7A4F2; transform-origin: left center; animation: qGrow 1.1s cubic-bezier(.2,.7,.2,1) both; }
.qr-tip-row i.is-low { background: var(--good); }
.qr-tip-body { padding: 16px 18px 18px; }
.qr-tip-body p { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.qr-tip-body .qr-tip-k { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--accent-text); margin-bottom: 6px; }
.qr-tip-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.qr-tip-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--chip-bg); border: 1px solid var(--chip-border); }
.qr-tip-btn[data-tip="prev"] { padding: 0; }
.qr-dots { display: flex; gap: 2px; }
.qr-dot { width: 26px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qr-dot::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--hairline); outline: 1px solid var(--chip-border); transition: width 0.25s ease, background 0.25s ease; }
.qr-dot[aria-current="step"]::before { width: 20px; background: var(--accent); outline: none; }

/* share */
.qr-share { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.qr-share-card {
  width: 100%; max-width: 340px; box-sizing: border-box; padding: 26px 20px 20px; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--glass-shadow);
  background: linear-gradient(150deg, color-mix(in oklch, #B7A4F2 38%, var(--bg)), color-mix(in oklch, #FFD3B5 38%, var(--bg)) 55%, color-mix(in oklch, #A8E3CC 38%, var(--bg)));
}
.qr-share-av { width: 96px; height: 96px; border: 4px solid var(--bg); box-sizing: border-box; }
.qr-share-card h2 { margin: 4px 0 0; font-size: 26px; }
.qr-share-card p { margin: 0 0 4px; font-size: 14.5px; color: var(--muted); }
.qr-share-card .wordmark .wm { font-size: 15px; }
.qr-share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.quiz-copied { margin: 0; font-size: 14px; color: var(--muted); min-height: 1em; }
.quiz-again { text-align: center; font-size: 14.5px; }

/* sticky price bar */
.qr-sticky { position: sticky; bottom: 12px; z-index: 5; margin-top: -8px; }
.qr-sticky-in {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 99px;
  background: var(--tab-bg); border: 1px solid var(--glass-border); box-shadow: var(--tab-shadow);
  -webkit-backdrop-filter: var(--bar-blur); backdrop-filter: var(--bar-blur);
}
.qr-sticky-l { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.qr-sticky-k { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-sticky .price { font-size: 19px; }
.qr-sticky .btn { height: 44px; padding: 0 16px; flex: none; }

@media (min-width: 720px) {
  .quiz-tools { grid-template-columns: 1fr 1fr; }
  .quiz-reveal--lg { width: 240px; height: 240px; }
}
@media (max-width: 359px) {
  .qr-bars-n { flex-basis: 74px; }
  .qr-sticky .btn { padding: 0 12px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-sheet, .quiz-scrim, .quiz-screen, .quiz-opt, .quiz-hero-art, .quiz-orb, .quiz-float-av, .quiz-twinkle,
  .quiz-reveal-glow, .quiz-reveal-ring, .quiz-reveal-av, .quiz-ack-ic, .qr-up, .qr-bars-t i, .qr-tip.is-in, .qr-tip-row i,
  .qr-vendors, .qr-tick[aria-pressed="true"] .quiz-ic { animation: none; }
  .quiz-progress span, .quiz-opt, .quiz-check, .quiz-radio, .qr-bar i, .qr-toggle .quiz-ic, .qr-dot::before, .qr-tick { transition: none; }
}
