:root{--ink:#2d3945;--teal:#0097b2;--soft:#e8eef0;--muted:#5d6b78;--line:#d5dee2;--r:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;height:100%}
body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:var(--ink);font:16px/1.35 Helvetica,Arial,Inter,system-ui,sans-serif}
button,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
h1:focus,.statement:focus{outline:none}
a{color:var(--teal)}
p{margin:0}
.top{flex:none;display:flex;justify-content:space-between;align-items:center;width:100%;max-width:520px;margin:0 auto;padding:4px 16px;height:44px}
.brand{border:0;background:none;padding:6px 0;font-size:15px}
.brand b{color:var(--teal)}
.beta{font-size:11px;background:var(--soft);border-radius:99px;padding:2px 7px;margin-left:3px}
.ghost{border:0;background:none;padding:6px 0;font-size:14px;color:var(--muted);text-decoration:underline}
main{flex:1;min-height:0;display:flex;width:100%;max-width:520px;margin:0 auto;padding:0 16px 12px}
.screen{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;gap:10px;animation:in .25s ease both}
@keyframes in{from{opacity:0;transform:translateY(8px)}}
.screen.out{animation:out .14s ease both}
@keyframes out{to{opacity:0;transform:translateX(-20px)}}
.grow{flex:1;min-height:0}
.scroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
h1{font-size:clamp(24px,7vw,30px);line-height:1.1;margin:6px 0 0;letter-spacing:-.01em;text-wrap:balance}
h2{font-size:17px;margin:16px 0 4px}
.muted{color:var(--muted);font-size:14px}
.eyebrow{font-size:13px;font-weight:700;color:var(--teal)}
.center{text-align:center}

/* start */
.bubbles{display:flex;flex-wrap:wrap;gap:8px;align-content:center}
.bubble{border:2px solid var(--soft);background:var(--soft);border-radius:99px;padding:9px 15px;min-height:44px;font-weight:600;transition:transform .15s,background .15s;animation:float 7s ease-in-out infinite}
.bubble:nth-child(3n){animation-delay:-2.3s}.bubble:nth-child(3n+1){animation-delay:-4.6s}
.bubble:active{transform:scale(.94)}
.bubble[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:#fff}
.bubbles.full .bubble[aria-pressed=false]{opacity:.45}
@keyframes float{50%{transform:translateY(-3px)}}
select,textarea{width:100%;min-height:48px;border:2px solid var(--soft);border-radius:var(--r);padding:8px 12px;background:#fff}
.cta{flex:1;border:0;border-radius:var(--r);background:var(--teal);color:#fff;font-weight:700;font-size:17px;min-height:52px;padding:0 14px;transition:transform .12s}
.cta:active{transform:scale(.98)}
.cta.alt{flex:none;background:#fff;color:var(--ink);border:2px solid var(--line)}
.btns{display:flex;gap:8px;flex:none}
.link{flex:none;align-self:flex-start;border:0;background:none;padding:4px 0;min-height:32px;color:var(--muted);text-decoration:underline;font-size:14px}

/* confidence meter */
.meter{flex:none}
.segs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:5px}
.seg{height:8px;border-radius:4px;background:var(--soft);overflow:hidden}
.seg i{display:block;height:100%;background:var(--teal);border-radius:4px;transition:width .45s cubic-bezier(.2,.8,.2,1)}
.w0{width:0}.w1{width:20%}.w2{width:40%}.w3{width:60%}.w4{width:80%}.w5{width:100%}
.seg.pop{animation:pop .5s ease}
@keyframes pop{40%{transform:scaleY(2)}}
.cap{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:3px}
.cap b{color:var(--ink)}

/* question */
.card{position:relative;background:var(--soft);border-radius:20px;padding:14px 18px;display:flex;flex-direction:column;justify-content:center;gap:8px;text-align:center;overflow:hidden}
.card img{flex:1;min-height:0;width:100%;object-fit:cover;border-radius:12px}
.statement{font-size:clamp(20px,5.6vw,26px);line-height:1.18;font-weight:700;text-wrap:balance}
.infobtn{align-self:center;border:0;background:none;color:var(--teal);font-weight:700;font-size:14px;padding:4px 8px;min-height:32px}
.info{font-size:15px}
.scale{flex:none;display:grid;gap:6px}
.opt{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;border:2px solid var(--line);background:#fff;border-radius:var(--r);font-size:16px;font-weight:600;text-align:left;transition:transform .12s,background .12s}
.opt .dot{width:12px;height:12px;border-radius:50%;flex:none}
.opt[data-ans=sa] .dot{background:var(--teal)}.opt[data-ans=a] .dot{background:#8fd0dc}
.opt[data-ans=d] .dot{background:#a9b4bd}.opt[data-ans=sd] .dot{background:var(--ink)}
.opt.skip{border-style:dashed;color:var(--muted);font-weight:400}.opt.skip .dot{border:2px solid var(--line)}
.opt .go{margin-left:auto;color:var(--muted)}
.opt:active{transform:scale(.98)}
.opt[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.opt[aria-pressed=true] .go{color:#fff}

/* result */
.hero{flex:none;display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;background:var(--ink);color:#fff;border-radius:20px;padding:12px 16px}
.ringwrap{position:relative;width:84px;height:84px;flex:none}
.ring{width:100%;height:100%}
.ring circle{fill:none;stroke-width:12;stroke-linecap:round}
.ring .track{stroke:rgba(255,255,255,.14)}
.ring .arc{stroke:var(--teal);animation:draw 1.1s cubic-bezier(.2,.8,.2,1) both}
@keyframes draw{from{stroke-dashoffset:100}}
.num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:700;font-variant-numeric:tabular-nums}
.num small{font-size:13px;align-self:center;margin:6px 0 0 1px}
.herotext{display:flex;flex-direction:column;gap:2px;min-width:0}
.hero .eyebrow{color:#7fd3e2}
.heroname{font-size:22px;font-weight:700;line-height:1.1}
.hero .muted{color:rgba(255,255,255,.7);font-size:13px}
.empty{flex:none;background:var(--soft);border-radius:var(--r);padding:12px 14px;font-size:15px}
.list{display:flex;flex-direction:column}
.party{flex:none;display:grid;grid-template-columns:30px minmax(64px,auto) 1fr 46px;align-items:center;gap:10px;width:100%;min-height:42px;border:0;border-top:1px solid var(--line);background:none;padding:4px 0;text-align:left}
.badge{width:30px;height:30px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-size:10px;font-weight:700;overflow:hidden;flex:none}
.badge img{width:100%;height:100%;object-fit:contain}
.party .name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.party .val{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.party .val.none{color:var(--muted);font-weight:400}
.bar{height:8px;border-radius:4px;background:var(--soft);overflow:hidden}
.bar i{display:block;height:100%;background:var(--teal);border-radius:4px}
.p0{width:0}.p5{width:5%}.p10{width:10%}.p15{width:15%}.p20{width:20%}.p25{width:25%}.p30{width:30%}.p35{width:35%}.p40{width:40%}.p45{width:45%}.p50{width:50%}.p55{width:55%}.p60{width:60%}.p65{width:65%}.p70{width:70%}.p75{width:75%}.p80{width:80%}.p85{width:85%}.p90{width:90%}.p95{width:95%}.p100{width:100%}

/* why + about */
.head{flex:none;display:flex;align-items:center;gap:10px}
.head .badge{width:40px;height:40px;font-size:12px}
.head h1{margin:0;font-size:24px}
.head .val{margin-left:auto;font-size:24px;font-weight:700}
.links{flex:none;display:flex;gap:14px;font-size:14px}
.item{border-top:1px solid var(--line);padding:10px 0;font-size:15px}
.item p{margin:0 0 4px}
.tag{display:inline-block;font-size:12px;border:1px solid var(--line);border-radius:99px;padding:1px 8px;margin:0 6px 2px 0}
.tag.same{background:var(--teal);border-color:var(--teal);color:#fff}
.about p{margin:0 0 8px;font-size:15px}
.stars{display:flex;gap:8px;margin:8px 0}
.stars button{flex:1;min-height:44px;border:2px solid var(--soft);background:#fff;border-radius:12px;font-weight:700}
.stars button[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:#fff}
.note{flex:none;font-size:12px;color:var(--muted);text-align:center}
@media (max-height:600px){.opt{min-height:42px}.ringwrap{width:64px;height:64px}.num{font-size:19px}.bubble{min-height:38px;padding:6px 12px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.stage{flex:1;min-height:0;display:flex;flex-direction:column;width:100%}
/* desktop: one centred card, two columns */
@media (min-width:900px) and (min-height:560px){
  body{background:var(--soft);align-items:center;justify-content:center}
  .stage{flex:none;width:min(920px,92vw);height:min(620px,calc(100vh - 56px));background:#fff;border-radius:28px;box-shadow:0 12px 40px rgba(45,57,69,.12);padding:10px 28px 20px}
  .top,main{max-width:none;padding-left:0;padding-right:0}
  main{padding-bottom:0}
  .s-question,.s-result{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;row-gap:12px}
  .s-question{grid-template-rows:auto 1fr auto}
  .s-question .meter{grid-column:1/-1}
  .s-question .card{grid-column:1;grid-row:2/4}
  .s-question .scale{grid-column:2;grid-row:2;align-content:center;gap:10px}
  .s-question .link{grid-column:2;grid-row:3}
  .statement{font-size:30px}
  .opt{min-height:54px}
  .s-result{grid-template-rows:auto 1fr auto auto}
  .s-result .meter{grid-column:1/-1}
  .s-result .hero,.s-result .empty{grid-column:1;grid-row:2;align-self:stretch;flex-direction:column;justify-content:center;text-align:center;gap:18px}
  .s-result .herotext{align-items:center}
  .s-result .ringwrap{width:170px;height:170px}
  .s-result .num{font-size:46px}.s-result .num small{font-size:20px}
  .s-result .heroname{font-size:30px}
  .s-result .list{grid-column:2;grid-row:2/5;align-self:stretch}
  .s-result .btns{grid-column:1;grid-row:3}
  .s-result .note{grid-column:1;grid-row:4}
  .party{min-height:50px;grid-template-columns:30px 140px 1fr 46px}
  .s-start,.s-why,.s-about{width:100%;max-width:600px;margin:0 auto}
  .s-start{justify-content:center}
  .s-start .bubbles{flex:none;margin:14px 0}
  h1{font-size:34px}
}

/* v0.8: real logos */
.badge{width:38px;height:38px;border-radius:8px;background:#fff;border:1px solid var(--line)}
.party{grid-template-columns:38px minmax(64px,auto) 1fr 46px;min-height:46px}
.head .badge{width:52px;height:52px}
@media (min-width:900px) and (min-height:560px){.party{grid-template-columns:44px 140px 1fr 46px}.badge{width:44px;height:44px}}
@media (max-height:600px){.party{min-height:40px}.badge{width:32px;height:32px}}

/* v0.11: feedback fixes */
.badge{width:52px;height:34px;border-radius:8px}
.party{grid-template-columns:52px minmax(64px,auto) 1fr 46px}
.party.blank{grid-template-columns:52px 1fr;min-height:38px;opacity:.55}
.party.blank .badge{height:28px}
.head .badge{width:64px;height:44px}
.divider{flex:none;font-size:12px;font-weight:700;color:var(--muted);border-top:1px solid var(--line);padding:8px 0 2px;margin:0}
.yr{font-size:11px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:0 6px;margin-left:4px;vertical-align:1px}
@media (min-width:900px) and (min-height:560px){.party{grid-template-columns:60px 150px 1fr 46px}.party.blank{grid-template-columns:60px 1fr}.badge{width:60px;height:38px}}
@media (max-height:600px){.badge{width:46px;height:28px}.party{grid-template-columns:46px minmax(64px,auto) 1fr 46px}}

/* v0.11b: square logos again (the files are square), slightly larger */
.badge{width:38px;height:38px}
.badge img{display:block;width:100%;height:100%;object-fit:contain}
.party{grid-template-columns:38px minmax(64px,auto) 1fr 46px}
.party.blank{grid-template-columns:38px 1fr}
.party.blank .badge{width:30px;height:30px}
.head .badge{width:52px;height:52px}
@media (min-width:900px) and (min-height:560px){.party{grid-template-columns:44px 150px 1fr 46px}.party.blank{grid-template-columns:44px 1fr}.badge{width:44px;height:44px}}
@media (max-height:600px){.badge{width:32px;height:32px}.party{grid-template-columns:32px minmax(64px,auto) 1fr 46px}}

/* v0.12: map */
.map{width:100%;min-height:120px;display:block}
.reg{fill:var(--soft);stroke:#fff;stroke-width:1.2;stroke-linejoin:round;cursor:pointer;transition:fill .15s}
.reg:hover{fill:#c9dde3}
.reg.sel{fill:var(--teal)}
.reg:focus-visible{outline:none;stroke:var(--ink);stroke-width:2}
.inset{fill:none;stroke:var(--line);stroke-dasharray:3 3}
#reg{flex:none;min-height:42px;font-size:15px}
.chips{flex:none;display:flex;flex-wrap:wrap;gap:6px}
.chip{border:2px solid var(--soft);background:var(--soft);border-radius:99px;padding:6px 12px;min-height:38px;font-weight:600;font-size:14px}
.chip[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:#fff}
.cta:disabled{background:var(--soft);color:var(--muted);cursor:default}
@media (min-width:900px) and (min-height:560px){.s-where{width:100%;max-width:600px;margin:0 auto}}
.inset{fill:transparent;pointer-events:all;cursor:pointer}

/* v0.16: star = counts double */
.cardtop{display:flex;align-items:center;justify-content:space-between;gap:8px}
.starbtn{flex:none;border:2px solid var(--line);background:#fff;color:var(--muted);border-radius:99px;padding:2px 12px;min-height:34px;font-size:13px;font-weight:700}
.starbtn[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:#fff}

/* v0.18: how-it-works slide with a live star, thin rows */
.steps{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;justify-content:center;gap:12px}
.steps li{display:flex;gap:14px;align-items:flex-start;background:var(--soft);border-radius:var(--r);padding:14px 16px;animation:rise .45s both}
.steps li:nth-child(2){animation-delay:.12s}.steps li:nth-child(3){animation-delay:.24s}
.steps li>b{flex:none;width:34px;height:34px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-size:16px}
.steps li>div{flex:1;min-width:0}
.steps p{margin:0;font-size:16px;line-height:1.3;font-weight:600}
.steps strong{color:var(--teal)}
.mini{display:flex;align-items:center;gap:8px;margin-top:10px;min-height:34px}
.pill{border:2px solid var(--line);background:#fff;border-radius:99px;padding:3px 12px;font-size:13px;font-weight:700;color:var(--muted)}
.pill.on{background:var(--ink);border-color:var(--ink);color:#fff}
.steps .starbtn{min-height:38px;padding:4px 14px;font-size:14px;transition:transform .15s,background .15s}
.steps .starbtn:active{transform:scale(.94)}
.steps .starbtn[aria-pressed=false]{animation:nudge 1.6s .9s 2}
.x2{font-weight:800;font-size:18px;color:var(--teal);opacity:0;transform:scale(.4);transition:opacity .2s,transform .25s cubic-bezier(.3,1.6,.5,1)}
.mini.on .x2{opacity:1;transform:scale(1)}
.bars{flex-direction:column;align-items:stretch;gap:5px}
.bars i{display:block;height:7px;border-radius:9px;background:var(--teal);transform-origin:left;animation:grow .7s .5s both}
.bars .b1{width:82%}.bars .b2{width:56%;opacity:.6;animation-delay:.62s}.bars .b3{width:30%;opacity:.35;animation-delay:.74s}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes nudge{0%,100%{transform:none}50%{transform:scale(1.07)}}
@media (prefers-reduced-motion:reduce){.steps li,.bars i,.steps .starbtn{animation:none}.x2{transition:none}}
.party.thin{opacity:.7}
@media (max-height:600px){.steps{gap:8px}.steps li{padding:9px 14px}.steps p{font-size:14px}.mini{margin-top:6px;min-height:30px}.steps .starbtn{min-height:32px}}
@media (min-width:900px) and (min-height:560px){.s-how{width:100%;max-width:600px;margin:0 auto}}

/* v0.21: one clear verdict per statement on the party page */
.verdict{display:inline-block;font-size:13px;font-weight:800;border-radius:99px;padding:2px 12px;margin:0 6px 2px 0}
.verdict.yes{background:var(--teal);color:#fff}
.verdict.mid{background:var(--soft);color:var(--ink)}
.verdict.no{background:var(--ink);color:#fff}
.verdict.none{border:1px dashed var(--line);color:var(--muted);font-weight:600}
.tag.star{border-color:var(--teal);color:var(--teal);font-weight:700}
.pair{font-size:14px;color:var(--muted);margin:2px 0 4px}.pair b{color:var(--ink)}

/* v0.22: simpler about page */
.more{margin:14px 0 6px;border-top:1px solid var(--line);padding-top:10px}
.more summary{cursor:pointer;font-weight:700;color:var(--teal);min-height:36px}

/* v1.0 */
.name small{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.2}
