/* readrrr tools: shared styles. Mirrors the landing page design language. */
:root {
  --bg-screen: #070707; --bg-elevated: #111111; --bg-card: #171717; --bg-card-muted: #262626;
  --text-primary: #FFFFFF; --text-secondary: #B2B2B2; --text-tertiary: #7D7D7D;
  --btn-primary-bg: #F3F3F3; --btn-primary-fg: #000000; --btn-secondary-bg: #262626; --btn-secondary-fg: #FFFFFF;
  --accent: #FFFFFF; --highlight: #FF0000;
  --divider: rgba(255,255,255,0.10); --border: rgba(255,255,255,0.15); --focal-line: #292929;
  --card-highlight: rgba(255,255,255,0.03); --card-shadow: rgba(0,0,0,0.31);
  --shadow-small: inset 6px 6px 6px var(--card-highlight), inset -6px -6px 6px var(--card-shadow);
  --shadow-regular: inset 10px 10px 10px var(--card-highlight), inset -10px -10px 10px var(--card-shadow);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Times New Roman", Times, serif;
  --radius-lg: 30px; --radius-md: 20px; --radius-sm: 14px;
  --display-size: clamp(46px, 9vw, 78px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg-screen); color: var(--text-primary); font-family: var(--font-ui); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 22px; }
.container.wide { max-width: 980px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* nav + footer */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,7,7,0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--divider); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; max-width: 980px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--text-secondary); font-size: 14px; white-space: nowrap; transition: color 200ms ease; }
.nav-link:hover, .nav-link[aria-current] { color: var(--text-primary); }
footer { border-top: 1px solid var(--divider); padding: 30px 0 40px; color: var(--text-tertiary); font-size: 13px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 980px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 22px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; box-shadow: var(--shadow-small); transition: transform 180ms ease, opacity 200ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .ctl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; padding: 22px 30px; font-size: 18px; }
.btn-nav { padding: 10px 16px; font-size: 14px; }
.btn .apple { width: 19px; height: 19px; flex: 0 0 19px; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--text-secondary); font-size: 14px; border-bottom: 1px solid var(--divider); }
.link-btn:hover { color: var(--text-primary); }
.ctl { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: var(--shadow-small); transition: transform 160ms ease; }
.ctl:hover { transform: scale(1.05); }
.ctl svg { width: 21px; height: 21px; }
.ctl.small { width: 44px; height: 44px; }
.ctl.small svg { width: 18px; height: 18px; }

/* type */
.eyebrow { display: block; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--display-size); line-height: 1.03; letter-spacing: -0.02em; margin: 0 auto 18px; max-width: 13ch; text-wrap: balance; }
.hero p { margin: 0 auto; max-width: 46ch; color: var(--text-secondary); }
.hero .crumb { display: inline-block; margin-bottom: 18px; color: var(--text-tertiary); font-size: 13px; border-bottom: 1px solid var(--divider); }
h2.title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 5.4vw, 34px); letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }
.lead { margin: 0 0 20px; color: var(--text-secondary); font-size: 16px; }
.note { color: var(--text-tertiary); font-size: 14px; margin: 14px 0 0; }

/* cards */
.card { background: var(--bg-card); border: 1px solid var(--divider); border-radius: var(--radius-md); box-shadow: var(--shadow-regular); padding: 24px 24px 26px; }
.stage-wrap { padding: 8px 0 56px; }
.steps { margin: 6px 0 24px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 48px; color: var(--text-primary); font-size: 19px; line-height: 1.45; }
.steps li:last-child { padding-bottom: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--btn-primary-bg); color: var(--btn-primary-fg); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 22px; }
.actions .spacer { flex: 1; }

/* results */
.big { font-family: var(--font-display); font-weight: 700; font-size: clamp(54px, 12vw, 96px); letter-spacing: -0.03em; line-height: 0.95; margin: 4px 0 6px; }
.big small { font-size: 0.32em; letter-spacing: 0; color: var(--text-secondary); margin-left: 6px; }
.verdict { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
.verdict b { color: var(--highlight); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 20px; }
.compare > div { border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 16px 16px 14px; background: var(--bg-elevated); }
.compare .eyebrow { margin-bottom: 4px; }
.compare .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 7vw, 52px); letter-spacing: -0.02em; line-height: 1; }
.compare .n small { font-size: 0.4em; color: var(--text-secondary); margin-left: 4px; letter-spacing: 0; }
.compare .c { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.sub { color: var(--text-secondary); margin: 0; }

/* quiz / choices */
.q { padding: 18px 0; border-top: 1px solid var(--divider); }
.q:first-child { border-top: 0; padding-top: 0; }
.q-text { font-weight: 600; margin: 0 0 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button, .choice { border: 1px solid var(--border); background: var(--btn-secondary-bg); color: var(--text-primary); border-radius: var(--radius-lg); padding: 11px 16px; font-size: 15px; box-shadow: var(--shadow-small); text-align: left; transition: background 160ms ease, color 160ms ease; }
.opts button[aria-pressed="true"] { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.choice { display: block; width: 100%; border-radius: var(--radius-sm); padding: 16px 18px; font-size: 16px; line-height: 1.4; }
.choice:hover { background: #303030; }
.choice:focus-visible, .opts button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* normal-text passage */
.passage { font-size: 18px; line-height: 1.7; color: var(--text-primary); }
.passage p { margin: 0 0 1em; }
.passage.blurred { filter: blur(7px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.timing { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); }
.timing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }

/* full-screen session */
.session { position: fixed; inset: 0; z-index: 100; background: var(--bg-screen); display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); animation: fadeIn 260ms ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.session-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0 22px; min-height: 60px; }
.session-top .meta { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); }
.session-top .meta b { color: var(--text-primary); font-weight: 600; }
.session-body { flex: 1; position: relative; min-height: 0; display: flex; flex-direction: column; }
.rsvp-stage { position: relative; flex: 1; overflow: hidden; user-select: none; -webkit-user-select: none; --display-size: clamp(52px, 10vw, 116px); }
.rsvp-stage .guide { position: absolute; left: 0; right: 0; height: 3px; background: var(--focal-line); border-radius: 2px; }
.rsvp-stage .tick { position: absolute; width: 3px; background: var(--focal-line); border-radius: 2px; }
.rsvp-stage .word { position: absolute; top: 50%; left: 35%; transform: translate(-50%, -50%); transform-origin: center; width: max-content; font-family: var(--font-display); font-weight: 700; font-size: var(--display-size); white-space: nowrap; line-height: 1; display: inline-flex; align-items: baseline; letter-spacing: -0.02em; }
.rsvp-stage .word .focal { color: var(--highlight); }
.rsvp-stage .countdown { position: absolute; top: 50%; left: 35%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 700; font-size: var(--display-size); line-height: 1; color: var(--highlight); pointer-events: none; }
.rsvp-stage.counting .word { visibility: hidden; }
.rsvp-stage .status { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.rsvp-stage .status.show { opacity: 1; }
.session-bar { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 22px 26px; }
.session-bar .row { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 8px; }
.track { height: 3px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.track span { display: block; height: 100%; width: 0%; background: var(--text-primary); border-radius: 999px; transition: width 120ms linear; }
.session-action { margin-top: 18px; }
.panel { flex: 1; overflow-y: auto; display: flex; align-items: center; padding: 10px 0 30px; animation: fadeIn 200ms ease; }
.panel-inner { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 22px; }
.panel h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 5.4vw, 36px); letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 8px; text-wrap: balance; }
.panel p.lead { margin-bottom: 22px; }
.panel .choices { display: grid; gap: 10px; }
.feel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feel .choice { text-align: center; padding: 18px 8px; }

/* flow progress */
.flow { position: sticky; top: 58px; z-index: 40; margin: 0 -22px 14px; padding: 10px 22px 10px; background: rgba(7,7,7,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.flow-segs { display: flex; gap: 4px; }
.flow-segs span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; }
.flow-segs span i { display: block; height: 100%; width: 0; background: var(--text-primary); border-radius: 999px; transition: width 300ms ease; }
.flow-text { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-tertiary); }
.flow-text b { color: var(--text-primary); font-weight: 600; }
.session-flow { height: 3px; background: rgba(255,255,255,0.08); }
.session-flow span { display: block; height: 100%; width: 0; background: var(--text-primary); transition: width 300ms ease; }

/* length picker */
.pick { margin: 0 0 20px; }
.pick-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 8px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg.col { flex-direction: column; }
.seg button { flex: 1 1 0; min-width: 88px; border: 1px solid var(--border); background: var(--btn-secondary-bg); color: var(--text-secondary); border-radius: var(--radius-lg); padding: 12px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-small); text-align: center; transition: background 160ms ease, color 160ms ease; }
.seg button small { display: block; font-weight: 400; font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.seg button[aria-pressed="true"] { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.seg button[aria-pressed="true"] small, .seg button[aria-pressed="true"] span { color: rgba(0,0,0,0.6); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.seg.col button { display: flex; justify-content: space-between; gap: 12px; text-align: left; border-radius: var(--radius-sm); }
.seg.col button span { font-weight: 400; color: var(--text-tertiary); white-space: nowrap; }

/* example result preview */
.preview { position: relative; margin: 6px 0 24px; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 18px 16px 14px; background: #0f0f0f; }
.preview::before { content: "Example result"; position: absolute; top: -9px; left: 14px; padding: 0 8px; background: var(--bg-card); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); }
.preview .verdict { font-size: clamp(19px, 4vw, 23px); margin-bottom: 12px; }
.preview .compare { margin: 0 0 4px; gap: 10px; }
.preview .compare > div { padding: 12px 12px 10px; }
.preview .compare .n { font-size: clamp(24px, 5vw, 32px); }
.preview .chart-block { margin: 6px 0 2px; }
.preview .sub, .preview .c { font-size: 13px; }
.preview > .eyebrow { margin-bottom: 8px; }

/* camera */
.camcheck { display: flex; gap: 18px; align-items: center; margin: 4px 0 6px; }
.camview { position: relative; flex: none; width: 150px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: #000; border: 1px solid var(--divider); }
.camview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camdot { position: fixed; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 8px rgba(255,0,0,0.18); z-index: 200; }
.camline { margin: 0 0 6px; font-weight: 600; }
.cam-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); }
.cam-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); }
@media (max-width: 560px) { .camcheck { flex-direction: column; align-items: stretch; } .camview { width: 100%; max-width: 240px; margin: 0 auto; } }

/* long read overlay (Stay Test, Screen Strain) */
.longread { position: fixed; inset: 0; z-index: 100; background: var(--bg-screen); display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top); animation: fadeIn 260ms ease; }
.lr-progress { height: 3px; background: rgba(255,255,255,0.08); }
.lr-progress span { display: block; height: 100%; width: 0; background: var(--text-primary); transition: width 400ms linear; }
.lr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--divider); }
.lr-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lr-top .btn { padding: 10px 16px; font-size: 14px; }
.lr-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.lr-scroll article { max-width: 640px; margin: 0 auto; padding: 34px 22px 10px; font-size: 19px; line-height: 1.75; }
.lr-scroll article h2 { font-family: var(--font-display); font-size: clamp(30px, 6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 6px; }
.lr-scroll article .by { color: var(--text-tertiary); font-size: 14px; margin: 0 0 30px; }
.lr-end { max-width: 640px; margin: 0 auto; padding: 20px 22px calc(60px + env(safe-area-inset-bottom)); }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 18px; }
.col { flex: 1; max-width: 34px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.col span { display: block; width: 100%; max-width: 24px; background: #8a8a8a; border-radius: 4px 4px 0 0; }
.col b { font-size: 11px; font-weight: 600; color: var(--text-primary); min-height: 14px; }
.col small { font-size: 10px; color: var(--text-tertiary); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 4px 0 8px; }
.stat { border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 14px 16px 12px; background: var(--bg-elevated); }
.stat .eyebrow { margin-bottom: 4px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 6vw, 40px); letter-spacing: -0.02em; line-height: 1; }
.stat .n small { font-size: 0.42em; color: var(--text-secondary); margin-left: 4px; letter-spacing: 0; }
.stat .c { color: var(--text-secondary); font-size: 13px; margin-top: 8px; }

/* line reader */
.lines { font-size: 19px; line-height: 1.75; margin: 10px 0 8px; min-height: 220px; }
.lines p { margin: 0 0 1.1em; }
.lines .ln { display: block; filter: blur(5px); opacity: 0.35; transition: filter 140ms ease, opacity 140ms ease; white-space: nowrap; }
.lines .ln.cur { filter: none; opacity: 1; }
.lines .ln.flagged.cur { box-shadow: inset 0 -2px 0 var(--highlight); }
.line-ctl { position: sticky; bottom: 14px; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; z-index: 5; }
.line-ctl .btn { width: 100%; }
.line-ctl .btn-back { background: #1d1d1d; }
.line-ctl .btn-flag { grid-column: 1 / -1; background: #141414; color: var(--text-secondary); font-weight: 500; font-size: 14px; padding: 12px; }
.bionic b { font-weight: 700; color: var(--text-primary); }
.bionic .bi-rest { color: var(--text-secondary); }

/* charts */
.chart-block { margin: 18px 0 22px; }
.chart-block > .eyebrow { margin-bottom: 12px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(96px, 28%) 1fr auto; align-items: center; gap: 12px; }
.hbar-label { font-size: 14px; color: var(--text-secondary); }
.hbar-label em { font-style: normal; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-primary); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; margin-left: 8px; white-space: nowrap; }
.hbar-track { height: 16px; background: rgba(255,255,255,0.06); border-radius: 0 4px 4px 0; }
.hbar-track span { display: block; height: 100%; background: #8a8a8a; border-radius: 0 4px 4px 0; transition: width 600ms ease; }
.hbar.best .hbar-track span { background: var(--text-primary); }
.hbar.best .hbar-label { color: var(--text-primary); }
.hbar-value { text-align: right; min-width: 74px; }
.hbar-value b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; }
.hbar-value small { display: block; font-size: 12px; color: var(--text-tertiary); }
.stack { display: flex; gap: 2px; height: 22px; }
.stack span { display: block; min-width: 3px; border-radius: 3px; }
.stack .main, .legend i.main { background: var(--text-primary); }
.stack .alert, .legend i.alert { background: var(--highlight); }
.stack .muted, .legend i.muted { background: #5a5a5a; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.legend b { color: var(--text-primary); font-weight: 600; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg text { font-family: var(--font-ui); fill: var(--text-tertiary); font-size: 11px; }
.chart-svg .val { fill: var(--text-primary); font-size: 12px; font-weight: 600; }

/* rewards: instant quiz feedback, result reveal, earned chips, sound switch */
.quiz-pips { display: flex; gap: 6px; margin: 2px 0 18px; }
.quiz-pips i { flex: 1; max-width: 46px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.10); transition: background 200ms ease; }
.quiz-pips i.cur { background: rgba(255,255,255,0.38); }
.quiz-pips i.ok { background: var(--text-primary); }
.quiz-pips i.no { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); }
.quiz-q { animation: rvUp 320ms both cubic-bezier(.2,.8,.2,1); border-top: 0; padding-top: 0; }
.quiz-q .q-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 4.4vw, 26px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 16px; }
.opts.rows { display: grid; gap: 10px; }
.opts.rows button { width: 100%; border-radius: var(--radius-sm); padding: 15px 18px; font-size: 16px; line-height: 1.35; transition: background 120ms ease, color 120ms ease, opacity 200ms ease, transform 120ms ease; }
.opts.rows button:active { transform: scale(0.985); }
.opts.rows button:disabled { cursor: default; opacity: 0.35; }
.opts.rows button.is-right { opacity: 1; background: var(--btn-primary-bg); color: #000; animation: fxHit 380ms cubic-bezier(.2,1.6,.4,1); }
.opts.rows button.is-wrong { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.4); animation: fxShake 320ms ease; }
.opts.rows button.is-answer { opacity: 1; outline: 2px solid var(--text-primary); outline-offset: 2px; }
.quiz-score { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 5.4vw, 34px); margin: 0 0 6px; animation: fxPunch 420ms cubic-bezier(.2,1.5,.4,1); }
@keyframes fxHit { 0% { transform: scale(0.97); } 55% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes fxShake { 0%, 100% { transform: none; } 25% { transform: translateX(-7px); } 60% { transform: translateX(6px); } 85% { transform: translateX(-3px); } }
@keyframes fxPunch { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
.rv-on > .rv { animation: rvUp 480ms both cubic-bezier(.2,.8,.2,1); animation-delay: calc(var(--rv, 0) * 90ms); }
.rv-on > .rv.verdict, .rv-on > .rv.big { animation-name: fxPunch; animation-timing-function: cubic-bezier(.2,1.5,.4,1); }
@keyframes rvUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv-on .hbar-track span { transform-origin: left; animation: rvGrowX 900ms both cubic-bezier(.2,.8,.2,1); animation-delay: calc(var(--rv, 0) * 90ms + 150ms); }
.rv-on .hbar:nth-child(2) .hbar-track span { animation-delay: calc(var(--rv, 0) * 90ms + 300ms); }
.rv-on .hbar:nth-child(3) .hbar-track span { animation-delay: calc(var(--rv, 0) * 90ms + 450ms); }
.rv-on .hbar:nth-child(4) .hbar-track span { animation-delay: calc(var(--rv, 0) * 90ms + 600ms); }
@keyframes rvGrowX { from { transform: scaleX(0); } to { transform: none; } }
.rv-on .stack, .rv-on .trace svg, .rv-on .dmap { animation: rvWipe 1200ms both cubic-bezier(.3,.7,.2,1); animation-delay: calc(var(--rv, 0) * 90ms + 150ms); }
@keyframes rvWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.rv-on .cols .col span { transform-origin: bottom; animation: rvGrowY 800ms both cubic-bezier(.2,.8,.2,1); animation-delay: calc(var(--rv, 0) * 90ms + 150ms); }
@keyframes rvGrowY { from { transform: scaleY(0); } to { transform: none; } }
.pb-chip { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 6px 12px 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-primary); animation: fxPunch 520ms 500ms both cubic-bezier(.2,1.5,.4,1); }
.pb-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-primary); }
.nav-sound { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.nav-sound svg { width: 16px; height: 16px; }
.nav-sound[aria-pressed="false"] { color: var(--text-tertiary); }
.nav-sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* faq */
.faq { padding: 8px 0 40px; }
.faq details { border-bottom: 1px solid var(--divider); }
.faq details:first-of-type { border-top: 1px solid var(--divider); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 2px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 4.6vw, 28px); letter-spacing: -0.015em; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-tertiary); font-family: var(--font-ui); font-weight: 300; font-size: 26px; line-height: 1; flex: none; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; margin: 0; padding: 0 2px 22px; max-width: 56ch; }
.faq details p a { color: var(--text-primary); border-bottom: 1px solid var(--border); }

@media (max-width: 560px) {
  .steps li { font-size: 18px; padding-left: 44px; }
  .hbar { grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; }
  .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .hbar-value small { font-size: 11px; }
  .hero { padding: 40px 0 20px; }
  .card { padding: 20px 18px 22px; }
  .compare { gap: 10px; }
  .wm-sub, .nav-link.hide-sm { display: none; }
  .nav-right { gap: 12px; }
  .btn-nav { padding: 9px 13px; }
  .actions .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
