/* Listening Challenge V5 — matches Kim Stoner's final Figma ("CANTO-2 – Listening challenge – MULTIPLE CHOICE → BRANDED", 17691:3579).
   Desktop frames are 1440 wide (content column 1040 / 816); mobile frames are 390 wide (24px gutters, 342 column). */
:root{--ink:#1a1a1a;--lumen:#ffffeb;--lilac:#f0d7ff;--purple:#7232a6;--dark-lumen:#e4e4d0;--chip:#f0f0dd;--muted:rgba(26,26,26,.7);--mono:'JetBrains Mono',ui-monospace,Menlo,monospace;--serif:'EB Garamond','Garamond Fallback',Georgia,serif;--body:'Figtree',Arial,sans-serif;color:var(--ink);background:var(--lumen);font-family:var(--body);font-weight:500;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-width:320px;min-height:100svh;display:flex;flex-direction:column}
html body{background:transparent;font:500 16px/normal var(--body);color:var(--ink)}
html body img{max-width:none}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
button:focus-visible,a:focus-visible{outline:3px solid #873bc4;outline-offset:5px}
a{color:inherit;text-decoration:none}
p,h1,h2,h3{margin:0}
h1{font-family:var(--serif);font-weight:400}
h2,h3{font-weight:600}
img{display:block}
em{font-family:var(--serif);font-weight:400;font-style:italic}
.mono{font-family:var(--mono);font-weight:500}
.screen-reader-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* Buttons (Component Copy/Button: Figtree SemiBold 16/1) */
.primary,.secondary{min-height:48px;height:48px;padding:8px 24px;border-radius:8px;font:600 16px/1 var(--body);display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;transition:background .15s,opacity .15s}
.primary{background:var(--ink);color:var(--lumen);border:0}
.secondary{background:var(--lilac);color:var(--ink);border:2px solid var(--ink)}
.text-button{border:0;background:none;padding:0;height:48px;display:inline-flex;align-items:center;font:600 16px/22px var(--body);text-decoration:underline;text-underline-position:from-font}

/* Campaign backdrop: lilac → lumen with refracted micro-dots */
#backdrop{position:absolute;z-index:-1;inset:0 0 auto;height:405px;overflow:hidden;pointer-events:none;background:var(--lilac)}
#backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 42%,var(--lumen) 100%)}
.dot-plane{position:absolute;top:0;left:50%;width:1440px;height:1084px;transform:translateX(-50%) scale(var(--desktop-scale,1));transform-origin:top center}
.dot-plane img{position:absolute;top:-1.05px;left:-1.05px}
.dot-plane .lilac{mix-blend-mode:multiply}
.dot-plane img:nth-child(1){left:15.05px}
.mobile-dots{display:none}
body[data-screen=home] #backdrop{height:100%;min-height:1068px;background:linear-gradient(to bottom,var(--lilac) 29.706%,var(--lumen))}
body[data-screen=home] #backdrop:after{display:none}
body[data-screen=results] #backdrop{height:632px;background:linear-gradient(to bottom,var(--lilac) 73%,var(--lumen))}
body[data-screen=results] .dot-plane{opacity:.8}

/* Header — CANTO-2 / Header / Desktop / Download (17680:1647) */
#header{height:96px;display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1648px;margin:0 auto;padding:0 104px;flex-shrink:0}
.brand-slot,.download-slot{width:240px;height:48px;display:flex;align-items:center}
.download-slot{justify-content:flex-end}
.brand{display:flex;gap:9.63px;align-items:center;width:81.318px;height:22.297px}
.progress-wrap{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:8px}
.progress-label{font:700 13px/20px var(--mono);letter-spacing:1px;text-align:center}
.progress{display:flex;gap:8px}
.progress i{height:3px;flex:1;border-radius:2px;background:rgba(26,26,26,.3)}
.progress i.done{background:var(--purple)}
.progress i.current{background:#873bc4}
.progress i.ahead{background:rgba(26,26,26,.55)}
.m-progress{display:none}
#app{flex:1}

/* Footer — Challenge / Footer (17311:1337) */
#footer{width:100%;max-width:1648px;margin:auto auto 0;padding:32px 104px;display:flex;justify-content:space-between;align-items:center;gap:24px;font-size:14px;line-height:1.3}
.legal,.socials{display:flex;align-items:center;gap:16px}
.socials a{display:block;width:24px;height:25px}
.socials .crunchbase{mask:url('assets/figma/desktop-imgGroup.svg') center/24px 24px no-repeat}

/* 01 · Home */
.home-hero{position:relative;text-align:center;padding:40px 24px 80px}
.hero-content{max-width:1040px;margin:auto;display:flex;flex-direction:column;align-items:center;gap:24px}
.badge{border:1px solid var(--ink);border-radius:99px;background:var(--lumen);padding:8px 16px;font:700 12px/18px var(--mono);letter-spacing:1.5px;text-transform:uppercase;white-space:nowrap}
.home-hero h1{font-size:96px;line-height:92px}
.intro{font-size:20px;line-height:28px;width:645.063px;max-width:100%}
.intro .mono,.step .mono{font-weight:700}
.home-hero .primary{width:236px;padding:12px 24px;line-height:24px}
.hero-sticker{position:absolute;left:calc(50% + 282px);top:38px;transform:rotate(6.83deg);pointer-events:none}
.steps-wrap{padding:0 104px 48px;max-width:1648px;margin:auto}
.steps-panel{position:relative;padding:48px;border-radius:32px;background:var(--lumen);display:flex;flex-direction:column;gap:32px}
.steps-panel h2{text-align:center;font-size:30px;line-height:44px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:48px}
.step{display:flex;flex-direction:column;gap:12px}
.step-label{color:var(--purple);font:700 13px/18px var(--mono);letter-spacing:1px}
.step h3{font-size:20px;line-height:28px}
.step p{font-size:16px;line-height:24px;color:var(--muted);min-height:49px}
.pencil-sticker{position:absolute;left:222px;top:-38px;width:208.008px;height:106.573px;transform:rotate(27deg);pointer-events:none}
.steps-sticker{display:none}

/* 02 / 03 · Clip screens */
.game{width:100%;max-width:1088px;margin:0 auto;padding:48px 24px 88px;display:flex;flex-direction:column;align-items:center;gap:48px}
.clip-intro{width:816px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:24px}
.round-title{font-size:64px;line-height:64px;text-align:center;width:100%}
.player{width:520px;max-width:100%;padding:16px;border-radius:24px;background:var(--lumen);display:flex;flex-direction:column;gap:16px}
.player-row{display:flex;align-items:center;gap:16px}
.clip-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.3}
.clip-details strong{font-size:16px;font-weight:600}
.clip-details small{font-size:13px;opacity:.7}
.player-controls{display:flex;align-items:center;gap:12px}
.play{border:0;background:var(--ink);width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;padding:0}
.play img{width:14px;height:14px}
.wave{display:flex;gap:2.869px;align-items:center;justify-content:center;background:var(--ink);border:1.434px solid #4d4a42;border-radius:32.276px;height:40.166px;padding:0 22.952px}
.wave i{background:var(--lumen);width:3.227px;height:3.227px;border-radius:40px;flex-shrink:0}
.wave.playing i{height:var(--h)}
.time{font-size:13px;line-height:1.3;opacity:.7;white-space:nowrap;font-variant-numeric:tabular-nums}
.seek{width:100%;display:block;height:3px;margin:0;appearance:none;-webkit-appearance:none;border:0;background:linear-gradient(to right,var(--ink) var(--played,0%),rgba(26,26,26,.18) var(--played,0%));border-radius:2px;cursor:pointer}
.seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:8px;height:8px;background:var(--ink);border-radius:50%;opacity:0}
.seek::-moz-range-thumb{width:8px;height:8px;background:var(--ink);border:0;border-radius:50%;opacity:0}
.seek:disabled{opacity:1}
.seek.locked{cursor:default;pointer-events:none}
.player-error{font-size:13px;color:#8a2626}
.response{width:816px;max-width:100%;display:flex;flex-direction:column;gap:24px}
.response-head{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.response-head h2{font-size:30px;line-height:44px}
.response-head h2:focus{outline:none}
.response-head p{font-size:13px;line-height:20px;color:var(--muted)}

/* Answer options — Challenge / Capsule answer (17700:4221) */
.options{display:flex;flex-direction:column;gap:12px}
.option{display:flex;align-items:center;gap:16px;width:100%;min-height:66px;text-align:left;border:1px solid var(--ink);border-radius:8px;white-space:nowrap;background:var(--lumen);padding:16px 32px;font:500 16px/24px var(--body);color:var(--ink)}
.option-key{flex-shrink:0;width:32px;height:32px;border-radius:999px;background:var(--chip);display:grid;place-items:center;font:500 16px/22px var(--mono)}
.option-text{flex:1;min-width:0}
.option.is-selected{background:var(--lilac)}
.option.is-selected .option-key{background:var(--ink);color:var(--lumen)}
@media (hover:hover) and (pointer:fine){.option:not(.is-selected):hover{background:#f7efff}.primary:hover{background:#38312f}.secondary:hover{background:#e6c6fa}.legal a:hover{text-decoration:underline}}
.answer-actions{display:flex;align-items:center;justify-content:flex-end;gap:24px}
.skip-wrap{display:flex;align-items:center;gap:8px}
.skip-wrap .text-button{height:32px}
.skip-wrap small{font-size:13px;line-height:18px;color:var(--muted);white-space:nowrap}

/* Revealed options — Challenge / Multiple-choice result (17694:4067) */
.result{display:flex;align-items:center;gap:16px;min-height:68px;padding:16px 32px;border:1px solid var(--ink);border-radius:8px;white-space:nowrap;background:var(--lumen);color:var(--ink)}
.result .status{flex-shrink:0;width:32px;height:32px;border-radius:999px;background:var(--chip);display:grid;place-items:center;font:500 16px/22px var(--mono)}
.result .status img{width:18px;height:18px}
.result .answer{flex:1;min-width:0;display:flex;align-items:center;gap:16px}
.words{display:flex;flex-wrap:wrap;align-items:center;gap:0 5px;flex-shrink:0;max-width:100%}
.words span{padding:2px 0;border-radius:4px;font-size:16px;line-height:24px;white-space:nowrap}
.words .miss{padding:2px 6px;background:rgba(240,215,255,.7);border:1px solid #e6bdff;text-decoration:line-through;text-decoration-skip-ink:none}
.attribution{flex:1;min-width:0;font-size:13px;line-height:20px;opacity:.7}
.points{flex-shrink:0;align-self:center;background:var(--chip);padding:6px 10px;border-radius:8px;font:500 13px/22px var(--mono);text-transform:uppercase;white-space:nowrap}
.result.is-picked{background:var(--dark-lumen)}
.result.is-picked .status{background:var(--ink)}
.result.is-correct{background:var(--ink);border-color:var(--ink);color:var(--lumen)}
.result.is-correct .status{background:var(--lumen)}
.result.is-correct .words .hit{padding:2px 6px;background:rgba(255,255,235,.15)}
.result.is-correct .points{background:rgba(255,255,235,.15)}
.fun-fact{font:500 13px/20px var(--mono);color:var(--muted)}
.nav-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nav-actions .primary{margin-left:auto}

/* 04 · Final results */
.results-top{width:100%;max-width:1088px;margin:0 auto;padding:48px 24px 64px;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center}
.results-top h1{font-size:64px;line-height:72px;width:1040px;max-width:100%}
.results-summary{font-size:20px;line-height:28px;width:816px;max-width:100%}
.scoreboard{position:relative;width:816px;max-width:100%;display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-top:8px;text-align:left}
.scorebox{border:1px solid var(--ink);border-radius:24px;padding:24px;background:var(--lumen);display:flex;flex-direction:column;gap:16px;min-width:0}
.scorebox.canto{background:var(--ink);border-color:var(--ink);color:var(--lumen)}
.scorebox-label{font:500 16px/22px var(--mono);text-transform:uppercase}
.score-big{font-size:64px;line-height:72px;font-weight:600;white-space:nowrap}
.score-big small{font-size:36px;line-height:72px;font-weight:500}
.canto .score-big{color:var(--lilac)}
.scorebox p{font-size:16px;line-height:22px;color:var(--muted)}
.scorebox.canto p{color:var(--lumen)}
.trophy{position:absolute;left:701.72px;top:-70.68px;width:138.566px;height:169.853px;pointer-events:none}
.trophy.you{left:277.72px}
.trophy img{position:absolute}
.trophy .edge{left:4.86%;top:1.25%;width:93.67%;height:94.35%}
.trophy .cup{left:7.32%;top:5.91%;width:85.98%;height:88.53%}
.result-actions{display:flex;justify-content:center;align-items:center;gap:24px}
.result-actions .text-button{line-height:1}

/* Leaderboard — Challenge / Model leaderboard row (17739:3466 / 17739:3474) */
.board-wrap{width:100%;max-width:864px;margin:0 auto;padding:0 24px 64px;display:flex;flex-direction:column;gap:24px}
.board-intro{display:flex;flex-direction:column;gap:8px;text-align:center}
.board-intro h2{font-size:30px;line-height:44px}
.board-intro p{font-size:16px;line-height:24px}
.board{display:flex;flex-direction:column;gap:8px}
.board-head,.board-row{position:relative;display:flex;align-items:center;gap:16px;padding:0 24px}
.board-head{padding-bottom:12px;font:500 13px/20px var(--mono);color:var(--muted)}
.board-head:after,.board-row.divided:after{content:'';position:absolute;left:24px;right:0;bottom:0;height:1px;background:var(--dark-lumen)}
.board-head .rank{text-align:center}
.board-rows{display:flex;flex-direction:column}
.board-row{min-height:72px;padding:16px 24px}
.board-row .rank{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;font:500 13px/20px var(--mono);color:var(--muted)}
.board-head .rank{width:32px;flex-shrink:0}
.board-row .name{flex:1;min-width:0;font-size:16px;line-height:24px}
.board-head .name{flex:1;min-width:0}
.board-row .name .mono{font-size:16px;line-height:24px}
.board-row .name small{font-size:13px;line-height:24px;color:var(--muted);margin-left:8px}
.board-nums{width:176px;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;gap:32px}
.board-nums .pts{width:80px;text-align:right;font:500 16px/24px var(--mono)}
.board-nums .acc{width:64px;display:flex;justify-content:center;background:var(--chip);padding:6px 10px;border-radius:8px;font:500 13px/22px var(--mono);text-transform:uppercase}
.board-head .board-nums{justify-content:flex-start}
.board-head .pts{font:inherit;text-align:right}
.board-head .acc{background:none;padding:0;font:inherit;text-align:center}
.board-row.is-you{background:var(--dark-lumen);border-radius:16px}
.board-row.is-you .rank{color:var(--ink)}
.board-row.is-you .name{font-weight:600}
.board-note{font:500 13px/20px var(--mono);color:var(--muted)}

/* Product banner — Put CANTO-2 to work / Banner */
.product-wrap{width:100%;max-width:1088px;margin:0 auto;padding:0 24px 64px}
.product{background:var(--dark-lumen);padding:48px;border-radius:32px;display:flex;align-items:center;gap:48px}
.product-copy{flex:1;display:flex;flex-direction:column;gap:12px}
.product h2{font-size:30px;line-height:40px}
.product h2 .mono{font-size:28px;line-height:40px}
.product p{font-size:18px;line-height:26px}
.product .m-only{display:none}

/* Notetaker benchmarks · Editorial section (placeholder copy from Figma) */
.editorial-wrap{width:100%;max-width:1088px;margin:0 auto;padding:0 24px 88px}
.editorial{display:flex;align-items:center;gap:48px}
.editorial-copy{width:440px;flex-shrink:0;display:flex;flex-direction:column;gap:16px}
.editorial-label{font:700 13px/20px var(--mono);letter-spacing:1px;text-transform:uppercase}
.editorial h2{font:400 48px/52px var(--serif)}
.editorial-copy p{font-size:18px;line-height:28px}
.editorial-copy a{font:600 16px/24px var(--body);text-decoration:underline;text-underline-position:from-font}
.chart-placeholder{flex:1;height:360px;border:1px dashed rgba(26,26,26,.3);border-radius:24px;background:var(--lumen);display:grid;place-items:center;padding:24px;font-size:16px;line-height:24px;opacity:1}
.chart-placeholder span{opacity:.6}

body[data-screen=round] #app,body[data-screen=review] #app{flex:0}

/* Share your score — Figma "Share / Desktop modal" (17549:3666) and "Share / Mobile sheet" (17549:3773) */
dialog.share-dialog{border:0;border-radius:24px;background:var(--lumen);padding:24px 28px;width:560px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:hidden auto;display:none;flex-direction:column;gap:16px;color:var(--ink)}
dialog.share-dialog[open]{display:flex}
dialog.share-dialog::backdrop{background:rgba(26,26,26,.45)}
.share-dialog .share-top{flex:none;display:flex;flex-direction:column;gap:4px}
.share-dialog .share-head{display:flex;align-items:center;justify-content:space-between;height:44px}
.share-dialog h2{margin:0;font:600 28px/36px var(--body)}
.share-dialog .share-close{flex:none;width:44px;height:44px;margin:0;padding:0;border:0;background:none;display:grid;place-items:center}
.share-dialog .share-sub{margin:0;font:400 16px/24px var(--body)}
.share-dialog .share-include{flex:none;display:flex;align-items:center;gap:16px;width:100%;height:44px;margin:0;padding:0;border:0;background:none;color:var(--ink);font:600 16px/24px var(--body);text-align:left}
.share-dialog .share-include span{flex:1 1 0;min-width:0}
.share-dialog .share-toggle{display:block;flex:none;width:40px;height:24px}
.share-dialog .share-include[aria-checked="true"] .share-toggle.off,.share-dialog .share-include[aria-checked="false"] .share-toggle.on{display:none}
.share-dialog .share-include:focus-visible{outline-offset:2px}
.share-dialog .share-card{display:block;flex:none;align-self:center;width:100%;width:min(100%,max(240px,calc(100dvh - 328px)));height:auto;aspect-ratio:1;border-radius:1.4815%;background:linear-gradient(to bottom,var(--lilac) 29.706%,var(--lumen))}
.share-dialog .share-actions{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0}
.share-dialog .share-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.share-dialog .share-btn{min-width:0;height:48px;margin:0;border:0;border-radius:8px;padding:9px 16px 7px;font:600 16px/1 var(--body);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.share-dialog .share-copy,.share-dialog .share-native{background:var(--ink);color:var(--lumen)}
.share-dialog .share-download{background:var(--lilac);color:var(--ink);border:2px solid var(--ink)}
.share-dialog .share-native{display:none;flex:none;width:100%}
.share-dialog .share-note{flex:none;margin:0;font:400 13px/20px var(--body);text-align:center;position:relative;top:1px}
.share-dialog #shareFallback{flex:none;width:100%;min-height:96px;margin:0}
.share-dialog.native .share-native{display:inline-flex}
.share-dialog.native .share-row{height:44px;align-items:center}
.share-dialog.native .share-copy,.share-dialog.native .share-download{background:none;border:0;color:var(--ink);height:44px;padding:9px 0 7px;text-decoration:underline;text-underline-position:from-font}
@media (hover:hover) and (pointer:fine){.share-dialog:not(.native) .share-copy:hover,.share-dialog .share-native:hover{background:#38312f}.share-dialog:not(.native) .share-download:hover{background:#e6c6fa}}

/* ───────────── Mobile (390 frames) ───────────── */
@media(max-width:700px){
  #header{height:80px;padding:16px 24px}
  .brand-slot{width:auto}
  .download-slot{width:auto}
  #header .progress-wrap{display:none}
  .m-progress{display:flex;justify-content:center;padding-bottom:24px;width:100%}
  .m-progress .progress-wrap{width:180px}
  #footer{padding:32px 24px;flex-direction:column;gap:16px}
  .legal a{display:none}
  .desktop-dots{display:none}
  .mobile-dots{display:block;width:390px;height:1262px;transform:translateX(-50%) scale(var(--mobile-scale,1))}
  .mobile-dots img,.mobile-dots img:nth-child(1){left:-.85px;top:-.85px}
  .mobile-dots img:nth-child(1){top:16.65px}
  .mobile-dots img:nth-child(2){top:2.65px}
  #backdrop{height:468px}
  body[data-screen=home] #backdrop{min-height:1196px}
  body[data-screen=results] #backdrop{height:662px}

  .home-hero{padding:24px 24px 48px}
  .hero-content{gap:20px}
  .home-hero h1{font-size:56px;line-height:56px}
  .intro{font-size:18px;line-height:26px;width:342px}
  .home-hero .primary{width:100%;padding:8px 24px;line-height:1}
  .hero-sticker,.pencil-sticker{display:none}
  .steps-wrap{padding:0 24px 40px}
  .steps-panel{padding:32px 24px;border-radius:24px;gap:28px}
  .steps-panel h2{text-align:left;font-size:26px;line-height:34px}
  .steps{grid-template-columns:1fr;gap:32px}
  .steps-sticker{display:block;position:absolute;left:228.9px;top:-15.75px;width:125.22px;height:106.507px;transform:rotate(6.83deg);pointer-events:none}

  .game{padding:32px 24px 56px;gap:32px}
  .game .m-progress{padding-bottom:0;margin-bottom:-8px}
  .round-title{font-size:48px;line-height:52px;overflow-wrap:break-word}
  .player{width:100%}
  .player-row{flex-direction:column;align-items:stretch;gap:16px}
  .player-controls{justify-content:space-between;height:44px}
  .play{width:44px;height:44px}
  .response-head h2{font-size:26px;line-height:34px}
  .option{padding:16px 24px}
  .answer-actions{flex-direction:column;gap:8px}
  .answer-actions .primary{width:100%}
  .skip-wrap{height:44px}
  .result{flex-direction:column;align-items:stretch;gap:12px;padding:16px 24px;border-radius:32px}
  .result .head{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .result .answer{flex-direction:column;align-items:stretch;gap:4px}
  .words{flex-shrink:1}
  .fun-fact{text-align:center}
  .nav-actions{flex-direction:column;gap:12px}
  .nav-actions .primary{width:100%;margin-left:0}
  .nav-actions .text-button{height:32px;order:2}

  .results-top{padding:32px 24px 40px}
  .results-top .m-progress{padding-bottom:0}
  .results-top h1{font-size:48px;line-height:52px}
  .results-summary{font-size:18px;line-height:26px}
  .scoreboard{gap:12px;width:342px}
  .scorebox{border-radius:20px;padding:20px 16px;gap:12px}
  .scorebox-label{font-size:13px;line-height:20px}
  .score-big{font-size:40px;line-height:46px}
  .score-big small{font-size:22px;line-height:46px}
  .scorebox p{font-size:13px;line-height:18px}
  .trophy{left:274px;top:-36.93px;width:88.035px;height:108.572px}
  .trophy.you{left:97px}
  .trophy .tilt{position:absolute;left:7.32px;top:5.2px;width:73.391px;height:98.173px;transform:rotate(-9.13deg)}
  .result-actions{flex-direction:column-reverse;gap:8px;width:100%}
  .result-actions .primary{width:100%}
  .result-actions .text-button{height:44px}

  .board-wrap{padding:0 24px 40px}
  .board-intro h2{font-size:26px;line-height:34px}
  .board-head{padding:0 16px 12px;gap:8px}
  .board-head:after,.board-row.divided:after{left:16px}
  .board-row{min-height:76px;padding:16px;gap:8px;align-items:flex-start}
  .board-row .rank,.board-head .rank{width:24px;height:24px}
  .board-head .rank{height:auto}
  .board-row .name small{display:block;margin-left:0}
  .board-nums,.board-head .board-nums{width:120px;gap:8px;height:24px;justify-content:flex-end}
  .board-nums .pts{width:56px;font-size:13px;line-height:20px}
  .board-nums .acc{width:56px;background:none;padding:0;justify-content:flex-end;line-height:22px}
  .board-head .acc{text-align:right}
  .board-note{text-align:center}

  .product-wrap{padding:0 24px 40px}
  .product{padding:28px 24px;border-radius:24px;flex-direction:column;align-items:stretch;gap:24px}
  .product h2{font-size:26px;line-height:34px}
  .product h2 .mono{font-size:24px;line-height:34px}
  .product p{font-size:16px;line-height:24px}
  .product .secondary{width:100%}
  .product .d-only{display:none}
  .product .m-only{display:inline}

  .editorial-wrap{padding:0 24px 40px}
  .editorial{flex-direction:column;align-items:stretch;gap:24px}
  .editorial-copy{width:auto}
  .editorial h2{font-size:36px;line-height:40px}
  .editorial-copy p{font-size:16px;line-height:24px}
  .chart-placeholder{flex:none;height:240px;border-radius:20px}

  dialog.share-dialog{margin:auto 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 24px);border-radius:24px 24px 0 0;padding:24px 24px 28px}
  .share-dialog h2{font-size:26px}
  .share-dialog .share-card{width:min(100%,max(240px,calc(100dvh - 376px)))}
  .share-dialog:not(.native) .share-btn{padding:9px 12px 7px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
/* Badge placement: inline at the row end on desktop, top-right of the card on mobile */
.result .head{display:contents}
.result .m-badge{display:none}
@media(max-width:700px){.result .head{display:flex}.result .m-badge{display:block}.result .d-badge{display:none}.d-br{display:none}}
/* Inline mono runs must not grow the line box (JetBrains Mono has taller metrics than Figtree). */
p .mono,h2 .mono,.attribution .mono{line-height:1}
@media(max-width:700px){
  /* Figma's mobile homepage wrapper is a fixed 1073px, so the footer starts 12px above the panel's bottom edge. */
  body[data-screen=home] .steps-wrap{padding-bottom:0;margin-bottom:-12px}
}
@media(max-width:700px){.answer-actions{flex-direction:column-reverse;align-items:center}.skip-wrap{height:44px}}
.clip-details strong{line-height:21px}.clip-details small{line-height:17px}
.fun-fact>span{display:block}
.result .d-badge,.result .m-badge{display:block}
.result .m-badge{display:none}
.points{display:block}
@media(max-width:700px){.result .m-badge{display:block}.result .d-badge{display:none}}
.result.is-correct{border:0;padding:17px 33px}@media(max-width:700px){.result.is-correct{padding:16px 24px}}

/* Fine alignment against Figma text boxes */
.score-big small{line-height:1}
.secondary{padding:8px 22px}
.results-summary .mono{line-height:29px}
.product h2 .mono{line-height:40px}
.product p .mono{line-height:27px}
@media(max-width:700px){.product h2 .mono{line-height:34px}.product p .mono{line-height:1}}
.score-big{height:72px}
.product h2 .mono{line-height:1}
@media(max-width:700px){.score-big{height:46px}.product h2 .mono{line-height:1}}
/* Score cards: Figma strokes sit inside the 196px card */ .scorebox{border:0;box-shadow:inset 0 0 0 1px var(--ink)}
.board-row .name .mono,.board-row .name small{line-height:1}@media(max-width:700px){.board-row .name .mono{line-height:24px}.board-row .name small{line-height:18px}}
@media(max-width:700px){.results-summary .mono{line-height:27px}.board-head .board-nums{height:auto}.board-row .name small{line-height:26px}.product p .mono{line-height:25px}}
@media(max-width:700px){.board-head .acc{line-height:20px}.result-actions .text-button{width:100px;justify-content:center}}
.editorial-copy p.editorial-label{font-size:13px;line-height:20px}
@media(max-width:700px){.results-top h1 em{display:block}}
.pencil-sticker{left:175px;top:-37px}
/* "Fade into Lumen content" stops per screen (Figma 17691:3313 / 3354 / 4019 / 4075) */
body[data-screen=round] #backdrop:after,body[data-screen=review] #backdrop:after{background:linear-gradient(to bottom,rgba(255,255,235,0) 66%,var(--lumen) 100%)}
@media(max-width:700px){body[data-screen=results] #backdrop:after{background:linear-gradient(to bottom,rgba(255,255,235,0) 50%,var(--lumen) 100%)}}
@media(min-width:701px){.trophy .tilt{position:absolute;inset:0;transform:scale(.86);transform-origin:65.8px 82.1px}}
/* Audit fixes */
.m-br{display:none}
.row-in{display:contents}
@media(max-width:700px){
  .m-br{display:inline}
  .board-row{align-items:center}
  .row-in{display:flex;flex:1;min-width:0;gap:8px;align-items:flex-start}
  .board-head{font-size:11px}
  .board-row .board-nums .acc{font-size:12px;line-height:18px;color:var(--muted)}
}
@media(max-width:700px){body[data-screen=results] #backdrop{background:var(--lilac)}body[data-screen=results] #backdrop:after{background:linear-gradient(to bottom,rgba(255,255,235,0) 38%,var(--lumen) 97%)}}
/* Long answers (real clips run up to ~20 words; the Figma mock only shows 5).
   Words wrap inside their own box; the model attribution keeps one line and drops below the words when there's no room.
   Corner radius = half the single-line height, so one-line rows are still perfect pills and taller rows become rounded cards. */
.result{border-radius:34px}
.option{border-radius:33px}
.result .answer{flex-wrap:wrap;row-gap:4px}
.words{flex:0 1 auto;min-width:0}
.words span{white-space:normal}
.attribution{flex:1 0 auto;white-space:nowrap}
@media(max-width:700px){.result{border-radius:32px}.option{border-radius:33px}.attribution{white-space:normal;flex:none}}
/* Small phones (<390): anchor stickers to the right edge so they track the card instead of overflowing.
   At 390 these resolve to exactly the Figma positions (left 228.9 / 274). */
@media(max-width:700px){
  .steps-sticker{left:auto;right:-12.1px}
  .trophy,.trophy.you{left:auto;right:-20px}
  .trophy.you{right:auto;left:97px}
}
html,body{overflow-x:clip}
/* Replay badge — lilac chip with an ink outline (same language as the Download button), lumen ring to lift it off the play button. */
.play-wrap{position:relative;display:inline-flex;flex-shrink:0}
.replay-badge{position:absolute;top:-7px;right:-10px;min-width:24px;height:18px;padding:0 5px;border-radius:9px;background:var(--lilac);border:1.5px solid var(--ink);box-shadow:0 0 0 2px var(--lumen);color:var(--ink);font:700 11px/15px var(--mono);letter-spacing:-.2px;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none;transform-origin:30% 70%}
.replay-badge[hidden]{display:none}
.replay-num{display:block}
/* First replay: badge springs in. Further replays: the number rolls up and the chip gives a tiny nudge. */
.replay-badge.pop{animation:badge-pop .42s cubic-bezier(.34,1.56,.64,1)}
.replay-badge.tick{animation:badge-nudge .3s cubic-bezier(.34,1.56,.64,1)}
.replay-badge.tick .replay-num{animation:num-roll .28s cubic-bezier(.2,.8,.3,1)}
@keyframes badge-pop{0%{transform:scale(.2) rotate(-12deg);opacity:0}55%{opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes badge-nudge{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes num-roll{0%{transform:translateY(9px);opacity:0}100%{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.replay-badge.pop,.replay-badge.tick,.replay-badge.tick .replay-num{animation:none}}
/* "−1 replay" chip: same geometry and type as the points badge, lilac fill so it reads as the cost of a replay. */
.result .d-badge,.result .m-badge{display:flex;align-items:center;gap:8px}
.result .m-badge{display:none}
.replay-chip{flex-shrink:0;background:var(--lilac);color:var(--ink);padding:6px 10px;border-radius:8px;font:500 13px/22px var(--mono);text-transform:uppercase;white-space:nowrap}
.result.is-correct .replay-chip{background:var(--lilac);color:var(--ink)}
@media(max-width:700px){.result .m-badge{display:flex}.result .d-badge{display:none}}
@media(max-width:700px){.result .m-badge{flex-wrap:wrap;justify-content:flex-end;row-gap:6px}.result .head{align-items:flex-start}}

/* ───────────── Kim's QC edits (Nov 18) ───────────── */
/* 1 · Background: the lilac dot layers multiply over the lilac backdrop. A transform (or group opacity) on .dot-plane isolates them,
   so they painted lilac-on-lilac and vanished. Scale with zoom instead, and fade per layer on the results screen. */
.dot-plane,.mobile-dots{left:0;transform:none;zoom:var(--desktop-scale,1)}
body[data-screen=results] .dot-plane{opacity:1}
body[data-screen=results] .dot-plane img{opacity:.8}
@media(max-width:700px){.mobile-dots{transform:none;zoom:var(--mobile-scale,1)}}
/* 2 · Answer hover colour */
@media (hover:hover) and (pointer:fine){.option:not(.is-selected):hover{background:#e4e4d0}}
/* 3 · Flow bar: lines move up and down while the clip plays */
.wave.playing i{animation:wave-bounce .52s ease-in-out infinite alternate}
.wave.playing i:nth-child(1){animation-duration:.46s;animation-delay:-.10s}
.wave.playing i:nth-child(2){animation-duration:.58s;animation-delay:-.32s}
.wave.playing i:nth-child(3){animation-duration:.44s;animation-delay:-.21s}
.wave.playing i:nth-child(4){animation-duration:.62s;animation-delay:-.05s}
.wave.playing i:nth-child(5){animation-duration:.50s;animation-delay:-.40s}
.wave.playing i:nth-child(6){animation-duration:.56s;animation-delay:-.17s}
.wave.playing i:nth-child(7){animation-duration:.42s;animation-delay:-.29s}
.wave.playing i:nth-child(8){animation-duration:.60s;animation-delay:-.12s}
.wave.playing i:nth-child(9){animation-duration:.48s;animation-delay:-.36s}
.wave.playing i:nth-child(10){animation-duration:.54s;animation-delay:-.08s}
@keyframes wave-bounce{from{height:max(3.227px,calc(var(--h)*.3))}to{height:max(7px,var(--h))}}
/* 4 · How it works: keep Figma's 1440 frame proportions on wide screens (panel stays 1232), step titles in Figtree Medium */
#header,#footer,.steps-wrap{max-width:1440px}
.step h3{font-weight:500}

/* ── Human v human results ─────────────────────────────────────────────────────────── */
.badge.tier{margin-bottom:-8px}
.scorebox p{min-height:22px}
.curve-wrap{width:100%;max-width:864px;margin:0 auto;padding:0 24px 64px;display:flex;flex-direction:column;gap:24px}
.curve-wrap .board-note{text-align:center}
.curve{background:var(--lumen);box-shadow:inset 0 0 0 1px var(--dark-lumen);border-radius:24px;padding:56px 24px 20px}
.curve-plot{position:relative}
.curve-bars{height:168px;display:flex;align-items:flex-end;gap:3px;border-bottom:1px solid var(--ink)}
.curve-bars i{flex:1;min-width:0;height:var(--h);background:var(--dark-lumen);border-radius:3px 3px 0 0}
.curve-bars i.below{background:var(--ink)}
.curve-bars i.you{background:var(--purple)}
.curve-bars i.canto:not(.you){height:100%;border-radius:0;background:repeating-linear-gradient(to bottom,var(--ink) 0 4px,transparent 4px 8px) center/2px 100% no-repeat}
.curve-flag{position:absolute;top:-40px;transform:translateX(-50%);background:var(--purple);color:var(--lumen);padding:5px 10px;border-radius:8px;font:700 13px/18px var(--mono);letter-spacing:.5px;white-space:nowrap}
.curve-flag:after{content:'';position:absolute;left:50%;top:100%;width:2px;height:12px;margin-left:-1px;background:var(--purple)}
.curve-flag.right{transform:translateX(calc(-100% + 16px))}.curve-flag.right:after{left:auto;right:15px}
.curve-flag.left{transform:translateX(-16px)}.curve-flag.left:after{left:16px}
.curve-axis{position:relative;height:28px;margin-top:8px;font:500 12px/18px var(--mono);color:var(--muted)}
.curve-axis .tick{position:absolute;top:8px;transform:translateX(-50%);white-space:nowrap}
.curve-axis .tick:before{content:'';position:absolute;left:50%;top:-16px;width:1px;height:12px;background:var(--ink)}
.curve-axis .tick.end{left:auto;right:0;transform:none;color:var(--ink);font-weight:700}
.curve-axis .tick.end:before{display:none}
.board-row.is-human .name{font-style:normal}
.board-row.is-human .name small{font-family:var(--mono)}
/* Design-preview scrubber: prototype only, not part of the shipped page. */
.preview-bar{position:fixed;z-index:20;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:10px 16px;border-radius:999px;background:var(--ink);color:var(--lumen);font:500 12px/18px var(--mono);letter-spacing:.5px;white-space:nowrap;box-shadow:0 8px 24px rgba(26,26,26,.25)}
.preview-bar input{width:200px;min-width:0;accent-color:var(--lilac)}
.preview-bar output{min-width:56px;text-align:right;color:var(--lilac)}
@media(max-width:700px){
  .curve-wrap{padding:0 24px 40px}
  .curve{padding:52px 14px 16px;border-radius:20px}
  .curve-bars{height:132px;gap:2px}
  .curve-axis{font-size:11px}
  .preview-bar label{display:none}
  .preview-bar input{width:150px}
}
@media(min-width:701px){.trophy.you{top:-30px;left:300px}}
.results-top h1{text-wrap:balance}
@media(max-width:700px){.curve-axis .d-only{display:none}}
@media(max-width:700px){.curve-axis .tick:not(.end){transform:translateX(calc(-100% + 6px))}.curve-axis .tick:not(.end):before{left:auto;right:5px}}

/* ── Percentile hero: the number is the sticker ───────────────────────────────────────── */
.results-top h1.pct-h{display:flex;flex-direction:column;align-items:center;gap:0;font-size:48px;line-height:56px}
.pct-h .pre{display:block}
.pct-h em{display:block;font-size:72px;line-height:76px}
.pct-sticker{position:relative;display:inline-block;margin:34px 0 30px;transform:rotate(-3deg)}
.pct-num{display:block;min-width:260px;padding:14px 52px 20px;border-radius:44px;background:var(--ink);color:var(--lilac);box-shadow:0 0 0 12px var(--lumen);font:600 184px/1 var(--body);letter-spacing:-6px;text-align:center;font-variant-numeric:tabular-nums}
.pct-num small{font-size:.56em;font-weight:600;letter-spacing:0;margin-left:6px}
.pct-cup{position:absolute;right:-86px;top:-78px;width:130px;height:159px;transform:rotate(10deg)}
.pct-cup img{position:absolute}
.pct-cup .edge{left:4.86%;top:1.25%;width:93.67%;height:94.35%}
.pct-cup .cup{left:7.32%;top:5.91%;width:85.98%;height:88.53%}
.pct-voice{position:absolute;left:-112px;bottom:-46px;width:136px;height:auto;transform:rotate(4deg)}
.score-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding-top:8px}
.score-chip{display:inline-flex;align-items:baseline;gap:10px;padding:10px 16px;border-radius:12px;background:var(--lumen);box-shadow:inset 0 0 0 1px var(--ink);white-space:nowrap}
.score-chip i{font:500 12px/18px var(--mono);font-style:normal;letter-spacing:.5px;color:var(--muted)}
.score-chip b{font:600 16px/22px var(--body)}
.score-chip.canto{background:var(--ink);color:var(--lumen)}
.score-chip.canto i{color:var(--lumen)}.score-chip.canto b{color:var(--lilac)}
body[data-screen=results] #backdrop{height:860px}
@media(max-width:700px){
  .results-top h1.pct-h{font-size:34px;line-height:40px}
  .pct-h em{font-size:48px;line-height:52px}
  .pct-sticker{margin:30px 0 26px}
  .pct-num{min-width:170px;padding:10px 30px 14px;border-radius:30px;box-shadow:0 0 0 8px var(--lumen);font-size:116px;letter-spacing:-4px}
  .pct-cup{right:-46px;top:-56px;width:88px;height:108px}
  .pct-voice{left:-52px;bottom:-34px;width:88px}
  .score-strip{gap:8px}
  .score-chip{padding:8px 12px;gap:8px}
  body[data-screen=results] #backdrop{height:820px}
}
.pct-sticker{margin-top:58px}.pct-cup{top:-56px}
@media(max-width:700px){.pct-sticker{margin-top:46px}.pct-cup{top:-40px}}
.pct-h .also{display:block;margin-top:10px;font-size:32px;line-height:40px}
.pct-h .also b{display:inline-block;margin:0 4px;padding:2px 10px 3px;border-radius:10px;background:var(--ink);color:var(--lilac);font:600 22px/28px var(--body);vertical-align:4px;transform:rotate(-2deg)}
@media(max-width:700px){.pct-h .also{font-size:26px;line-height:34px;margin-top:8px}.pct-h .also b{font-size:18px;line-height:24px;padding:2px 8px;vertical-align:3px}}
.pct-num.long{font-size:156px;letter-spacing:-5px;padding:20px 44px 26px}
@media(max-width:700px){.pct-num.long{font-size:84px;letter-spacing:-3px;padding:14px 22px 18px}}

/* Scoreless send: challenge a friend without sharing a result. */
.send-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 24px;border:1px solid var(--ink);border-radius:8px;white-space:nowrap;background:var(--lumen);color:var(--ink);font:600 16px/22px var(--body);cursor:pointer}
.send-button:hover{background:var(--lilac)}
.send-button svg{flex:none}
.send-note{margin:12px 0 0;text-align:center;font:400 14px/20px var(--body);color:rgba(26,26,26,.7)}
@media(max-width:700px){.send-button{width:100%}}

/* Share modal: choose what goes out, the scorecard or just the challenge. */


/* Results: Kim's "human rank first" frame (Figma 17863:7995). Headline, two blocks, actions. */
body[data-screen=results] #backdrop{height:632px}
.rank-col{position:relative;width:816px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:24px}
.results-top h1.rank-h{width:100%;margin:0;padding-bottom:16px;font-family:var(--serif);font-weight:400;font-size:64px;line-height:72px;text-align:center}
.rank-cards{display:flex;gap:24px;align-items:flex-start;width:100%}
.rank-card{position:relative;flex:1 0 0;min-width:0;display:flex;flex-direction:column;gap:24px;padding:24px;border:1px solid var(--ink);border-radius:24px;background:var(--lumen);color:var(--ink);text-align:left}
.rank-card.ai{background:var(--ink);color:var(--lumen)}
.rank-main{display:flex;flex-direction:column;gap:8px}
.rank-label{margin:0;font:500 13px/20px var(--mono);color:var(--muted)}
.rank-card.ai .rank-label{color:var(--lumen)}
.rank-stat{margin:0;display:flex;flex-direction:column}
.rank-stat b{font:600 80px/88px var(--body)}
.rank-stat span{font:500 24px/32px var(--body)}
.rank-detail{display:flex;flex-direction:column;gap:16px}
.rank-rule{display:block;height:1px;background:var(--ink);opacity:.16}
.rank-card.ai .rank-rule{background:var(--lumen);opacity:.22}
.rank-detail p{margin:0;font:500 14px/22px var(--body);color:var(--muted)}
.rank-detail strong{font-weight:600;color:var(--ink)}
.rank-detail .mono{font:500 13px/22px var(--mono)}
.rank-card.ai .rank-detail p{color:rgba(255,255,235,.75)}
.rank-card.ai .rank-detail strong{color:var(--lumen)}
.rank-cup{position:absolute;top:-46px;right:-32px;width:138.566px;height:169.853px;pointer-events:none}
.rank-cup-in{position:absolute;inset:0}
.rank-cup .layer{position:absolute;inset:5.91% 7.91% 5.91% 7.9%}
.rank-cup img{position:absolute;display:block;max-width:none}
.rank-cup .edge{left:-5.38%;top:-4.46%;width:111.63%;height:108.3%}
.rank-cup .cup{left:-.69%;top:0;width:102.25%;height:100.49%}
.rank-actions{gap:24px}
@media(max-width:900px){.rank-cup{right:-12px}}
@media(max-width:700px){
  body[data-screen=results] #backdrop{height:662px}
  .results-top h1.rank-h{padding-bottom:0;font-size:48px;line-height:52px}
  .rank-cards{flex-direction:column;gap:16px}
  .rank-card{flex:none;width:100%;gap:16px}
  .rank-stat{flex-direction:row;align-items:center;gap:8px;white-space:nowrap}
  .rank-stat b{font-size:56px;line-height:64px}
  .rank-stat span{font-size:18px;line-height:28px}
  .rank-cup{top:-43px;right:-20px;width:88.035px;height:108.572px;display:grid;place-items:center}
  .rank-cup-in{position:relative;inset:auto;width:73.391px;height:98.173px;transform:rotate(-9.13deg)}
  .rank-actions{flex-direction:column;gap:8px}
  .rank-actions .text-button{width:100px;height:44px;justify-content:center}
}

/* ───────────── V6 results — Figma "04 · Final results · Human rank first" (17863:7996 desktop / 17863:8065 mobile) ───────────── */
/* Outlistened cards (17904:5960 / 5969 / 5977 / 5986) */
.rank-detail p{display:flex;align-items:center;gap:4px;white-space:nowrap}
.rank-detail .who{width:63px;flex-shrink:0}
.rank-card.ai .rank-detail .who{width:103px}
.rank-detail .mono{line-height:0}
/* Trophy sticker (17503:2266): 138.566 × 169.853 at left 710 / top 66.36 of the 816 column = 45.64 above and 32.57 outside the AI card. */
/* Figma strokes sit inside the frame, so the 1px border must not add to the 396 × 259 card. */
.rank-card{padding:23px}
.rank-card>.rank-cup{top:-46.64px;right:-33.57px;left:auto;width:138.566px;height:169.853px;display:grid;place-items:center}
.rank-cup .m-cup{display:none}
/* The instance is the artwork frame (113.99 × 152.49) turned −9.92°; 138.566 × 169.853 is its bounding box. */
.rank-cup .d-cup{position:relative;inset:auto;width:113.99px;height:152.49px;transform:rotate(-9.92deg)}
/* AI comparison (17897:5770 summary / 17897:5889 all models) */
.board-block{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.board-block .board{width:100%}
.board-toggle{height:44px;padding:8px 0;line-height:1;cursor:pointer}
.board-wrap .board-note{padding-left:24px;text-align:left}
/* The model behind the challenge (17923:6056 desktop / 17923:6108 mobile) */
.model-wrap{width:100%;max-width:1088px;margin:0 auto;padding:0 24px 88px}
.model{display:flex;align-items:center;gap:48px}
.model-copy{flex:0 1 440px;min-width:0;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.model-eyebrow{font:700 13px/20px var(--mono);letter-spacing:1px;text-transform:uppercase;color:var(--ink)}
.model-h{font:400 48px/52px var(--serif);color:var(--ink)}
.model-copy>p:not(.model-eyebrow){font:500 18px/28px var(--body);color:var(--ink)}
/* Figma's mixed Figtree + JetBrains Mono lines run 1px taller (113 and 85, not 112 and 84); match it. */
.model-copy>p .mono{line-height:29px}
.model-link{font:600 16px/24px var(--body);color:var(--ink);text-decoration:underline;text-underline-position:from-font}
/* Benchmark (17923:5966 / 17923:6011): bars on a 0–10% scale */
.bench{flex:0 1 552px;min-width:0;display:flex;flex-direction:column;gap:24px;padding:24px;border-radius:24px;background:rgba(228,228,208,.3)}
.bench-head{display:flex;align-items:flex-start;gap:16px}
.bench-title{flex:1 0 0;min-width:0;font:600 18px/24px var(--body);color:var(--ink)}
.bench-tag{flex-shrink:0;padding:4px 8px;border-radius:6px;background:var(--lumen);font:500 11px/16px var(--mono);color:var(--ink);white-space:nowrap}
.bench-rows{display:flex;flex-direction:column;gap:16px}
.bench-row{display:flex;flex-direction:column;gap:6px}
.bench-label{display:flex;align-items:center;gap:8px;font:500 14px/20px var(--body);color:var(--ink)}
.bench-label span:first-child{flex:1 0 0;min-width:0}
.bench-label .mono{font:500 13px/20px var(--mono);white-space:nowrap}
.bench-track{position:relative;height:8px;overflow:hidden}
.bench-track i{position:absolute;left:0;top:0;height:8px;border-radius:4px;background:var(--ink);opacity:.5}
.bench-track i.is-canto{opacity:1}
@media(max-width:700px){
  .results-top h1.rank-h{min-height:114px}
  .rank-card>.rank-cup{top:-30.64px;right:-26.04px;width:88.035px;height:108.572px;display:grid;place-items:center}
  .rank-cup .d-cup{display:none}
  .rank-cup .m-cup{display:block;position:relative;inset:auto;width:73.391px;height:98.173px;transform:rotate(-9.13deg)}
  .rank-cup .m-cup .edge{left:-4.58%;top:-3.89%;width:110.04%;height:107.16%}
  .rank-cup .m-cup .cup{left:-.49%;top:0;width:101.86%;height:100.35%}
  .board-wrap .board-note{padding-left:0;text-align:left}
  .model-wrap{padding:0 24px 40px}
  .model{flex-direction:column;align-items:stretch;gap:24px}
  .model-copy{flex:none}
  .model-h{font-size:36px;line-height:40px}
  .model-copy>p:not(.model-eyebrow){font-size:16px;line-height:24px}
  .model-copy>p .mono{line-height:25px}
  .bench{flex:none}
  .bench-head{flex-direction:column-reverse;align-items:stretch;gap:12px}
  .bench-tag{align-self:flex-end}
}
/* V6 baseline snap: Chrome paints these lines 1px above Figma's render (measured by ink centroid against the Figma export,
   boxes already identical). Move the text, never the box, onto Figma's pixel. */
.rank-label,.rank-detail p,.board-row .rank,.board-row .name,.board-row .pts,.board-intro p,.board-note,.model-eyebrow,.model-link,.bench-label,.progress-label,#footer .legal{position:relative;top:1px}
.rank-actions .primary,.download-slot .secondary{padding-top:9px;padding-bottom:7px}
.rank-actions .text-button{padding-top:2px}
.board-toggle{padding:10px 0 8px}
.rank-card.ai .rank-detail p,.rank-card.ai .rank-detail p span{color:var(--lumen)}
@media(min-width:701px){.board-intro h2,.board-head>*{position:relative;top:1px}.board-row .acc{padding-top:7px;padding-bottom:5px}.product p,.model-copy>p:not(.model-eyebrow){position:relative;top:-1px}}
@media(max-width:700px){.product .secondary{padding-top:9px;padding-bottom:7px}}
@media(max-width:700px){.model-h{position:relative;top:1px}}

/* ── V6 screens 01–03 — Figma 17863:7489 / 7738 / 7828 / 7912 ──────────────────────────────
   Figma strokes sit inside the box, so bordered rows/chips take 1px less padding than their borderless twins. */
/* 01 · Home */
.pencil-sticker{left:173.8px;transform:rotate(26.92deg)}
/* 02 · Capsule answer (17700:4221): 24px radius, 64px min, 24px inset, marker pinned to the first line */
.option{align-items:flex-start;min-height:64px;padding:15px 23px;border-radius:24px}
.option-text{min-height:32px;display:flex;align-items:center}
/* 03 · Multiple-choice result (17694:4067): attribution under the words, score column reserved on every row */
.result{align-items:flex-start;padding:15px 23px;border-radius:24px}
.result.is-correct{padding:16px 24px}
.result .answer{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:4px}
.words{flex:none;gap:2px 5px;min-height:30px;align-content:center}
/* Struck chip: stroke widens it (text + 14) and paints 30px tall, but lines stay 28px so every long row keeps Figma's height. */
.words .miss{padding:2px 6px;margin:-1px 0}
.attribution{flex:none;white-space:normal}
.result .d-badge{width:232px;height:34px;flex-shrink:0;justify-content:flex-end;align-items:flex-start}
.replay-chip{border:1px solid var(--ink);padding:5px 9px}
.replay-badge{top:-8px;right:-12px;width:32px;min-width:0;height:24px;padding:2px 6px;border-radius:999px;box-shadow:none;font:500 12px/18px var(--mono);letter-spacing:0}
/* Figma's fixed-width labels (hug widths rounded up), so the right-aligned action rows land on its x positions. */
.skip-wrap .text-button{width:131px;justify-content:center}
.skip-wrap small{width:55px}
@media(min-width:701px){.answer-actions .primary{width:181px}.nav-actions .primary{min-width:114px}.nav-actions .text-button{min-width:36px;justify-content:center}}
@media(max-width:700px){
  .option{padding:15px 23px}
  .result{align-items:stretch;padding:15px 23px;border-radius:24px}
  .result.is-correct{padding:16px 24px}
  .result .head{height:34px;align-items:center}
  .fun-fact{text-align:left}
}
/* Baseline snap for screens 01–03: Chrome paints these lines 1px above Figma's render (ink centroid vs the Figma export).
   Text moves, boxes don't: relative offset for bare text, asymmetric padding where the element has a fill. */
.step-label,.step p,.response-head p,.option-text,.attribution,.fun-fact,.skip-wrap small{position:relative;top:1px}
.words span{padding:3px 0 1px}
.words .miss,.result.is-correct .words .hit{padding:3px 6px 1px}
/* Figma's long-answer variant draws the chip stroke inside (text + 12 wide, 28 tall); app.js adds .wrapped when the words wrap. */
.words.wrapped .miss{padding:2px 5px 0;margin:0}
/* Player: Figma's flow bar is 104px with its ring inside, and the time label hugs to 68px, which sets play/bar x positions. */
.wave{width:104px;padding:0}
.time{width:68px}
.option-key,.result .status:not(:has(img)){padding-top:2px}
.points{padding:7px 10px 5px}
.replay-chip{padding:6px 9px 4px}
.answer-actions .primary,.nav-actions .primary{padding-top:9px;padding-bottom:7px}
.answer-actions .text-button,.nav-actions .text-button{padding-top:2px}
.home-hero .primary{padding-top:13px;padding-bottom:11px}
@media(min-width:701px){.steps-panel h2,.response-head h2{position:relative;top:1px}}
@media(max-width:700px){.home-hero .primary{padding-top:9px;padding-bottom:7px}.home-hero h1{position:relative;top:1px}}

/* ───────────── V6 design QC (mobile reviewer) ───────────── */
html body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body:has(dialog[open]){overflow:hidden}
@media(max-width:700px){
  /* Leaderboard headings are all 11px mono (17897:6004); the 13px points rule was leaking into the heading. */
  .board-head .board-nums .pts{font-size:11px;line-height:20px}
  /* Results backdrop (17863:8066): lilac to 36% then lumen, dots at full strength, fade from 50%. */
  body[data-screen=results] #backdrop{height:662px;background:linear-gradient(to bottom,var(--lilac) 0,var(--lilac) 36%,var(--lumen) 100%)}
  body[data-screen=results] #backdrop:after{background:linear-gradient(to bottom,rgba(255,255,235,0) 50%,var(--lumen) 100%)}
  body[data-screen=results] .dot-plane img{opacity:1}
  .rank-stat b{position:relative;top:1.5px}
  .step h3{font-weight:600}
}
/* ───────────── V6 design QC (desktop reviewer) ───────────── */
/* Step titles are Figtree SemiBold in both frames. */
.step h3{font-weight:600}
/* Copied confirmation reads SemiBold in Figma's copied state; sub line and switch label sat 1px high. */
.share-dialog .share-note.is-confirmed{font-weight:600}
.share-dialog #shareSub,.share-dialog #includeResults span{position:relative;top:1px}
/* Centred, tracked mono caps: Figma does not count the trailing letter-spacing. */
.progress-label{padding-left:1px}
.badge{padding-right:14.5px}
.socials .crunchbase{mask-size:24px 25px}
@media (hover:hover) and (pointer:fine){.primary:disabled:hover{background:var(--ink)}}
@media(min-width:701px){
  /* 64px EB Garamond headlines painted 1px above Figma. */
  h1.round-title,.results-top h1.rank-h{position:relative;top:1px}
  /* Figma rounds each legal label up to a whole pixel before the 16px gap. */
  #footer .legal>*{flex:none;white-space:nowrap}
  #footer .legal>:nth-child(1){width:121px}#footer .legal>:nth-child(2){width:39px}#footer .legal>:nth-child(3){width:46px}#footer .legal>:nth-child(4){width:87px}
}
/* In-between widths (no Figma frame): below 1136px the 104px side margins leave no room for logo, progress and button,
   so ease the header and footer margins down to the 24px page gutter. 1136px and up, and the ≤700px mobile layout, are unchanged. */
@media(min-width:701px) and (max-width:1135px){#header,#footer{padding-left:max(24px,calc((100vw - 928px)/2));padding-right:max(24px,calc((100vw - 928px)/2))}}
