/* Improv Style Quiz. Big solid colors on purple; fun but modern. See docs/style.md. */
:root {
  --bg: #4A1FB8;        /* lead purple */
  --bg-deep: #34128A;
  --ink: #1A0B3D;
  --paper: #FFFFFF;
  --cream: #FFF7EA;
  --primary: #FFD23F;   /* the one CTA color */
  --primary-press: #F2BC00;
  --lilac: #E6DBFF;     /* chosen answer: neutral, not good/bad */
  --muted-on-bg: #D9CCFF;
  --pink: #FF8CC6; --blue: #7DBBFF; --sun: #FFD23F; --violet: #C2A8FF; --mint: #6EE3CF; --tang: #FFA866;
  --radius: 22px;
  --head: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: #fff; font-family: var(--body); font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
/* REVIEW-4 minor 2: a long unbroken name ("How does Bartholomewwwww play?") wraps instead of running off the screen. */
h1, h2, h3, h4 { overflow-wrap: anywhere; }
main p, main strong, .bigchip, .chip { overflow-wrap: break-word; }
p { margin: 0 0 .8em; }
#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); min-height: 68px; }
.brand { font-family: var(--head); font-weight: 800; text-decoration: none; font-size: 18px; }
.grow { flex: 1; }
.toplink { font-weight: 700; font-size: 15px; text-decoration: none; opacity: .85; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; display: grid; place-items: center; flex: none; }
.iconbtn:active { transform: scale(.94); }
/* QA-1 / spec 63a: one labeled Feedback button, same spot (top right) on every screen */
.fbbtn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px 0 12px; border: 0; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1; }
.fbbtn svg { width: 18px; height: 18px; flex: none; }
.fbbtn:active { transform: scale(.96); }
.fbbtn:focus-visible, .iconbtn:focus-visible, .toplink:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.progress { flex: 1; height: 12px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s ease; }

.screen { flex: 1; padding: 8px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.loading { margin: auto; font-family: var(--head); font-size: 22px; }
.muted { color: var(--muted-on-bg); }
.small { font-size: 14px; }
.center { text-align: center; }
.h1 { font-size: 34px; margin-top: 8px; }
.lead { font-size: 20px; }
.ph { display: inline-block; background: #FFF1A8; color: #5A3D00; border: 2px dashed #B98900; border-radius: 10px; padding: 2px 8px; font-size: 14px; font-weight: 700; font-family: var(--body); line-height: 1.35; }

/* buttons */
.btn { border: 0; border-radius: 18px; padding: 14px 20px; font-weight: 700; font-size: 17px; text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; transition: transform .08s ease, background .15s; }
.btn:active { transform: translateY(2px); }
.btn.big { min-height: 64px; font-size: 20px; width: 100%; font-family: var(--head); }
.btn.huge { min-height: 84px; font-size: 23px; width: 100%; font-family: var(--head); line-height: 1.15; padding: 16px 22px; border-radius: 24px; }
.btn.primary { background: var(--primary); color: var(--ink); box-shadow: 0 5px 0 var(--primary-press); }
.btn.primary:active { box-shadow: 0 2px 0 var(--primary-press); }
.btn.alt { background: var(--paper); color: var(--bg); box-shadow: 0 5px 0 #CDBEF5; }
.card .btn.alt { border: 2px solid #CDBEF5; box-shadow: none; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.linkbtn { background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; font-size: 16px; padding: 11px 10px; min-height: 44px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.row { display: flex; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; margin-top: auto; }
.row.center { justify-content: center; }
.row.wrap { flex-wrap: wrap; }

/* cards */
.card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 22px; }
.card .muted { color: #5B4D80; }
.card.soft { background: var(--bg-deep); color: #fff; }
.card.soft .muted { color: var(--muted-on-bg); }
.tilt { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1deg); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 13px; margin-bottom: 6px; opacity: .8; }
.linkbox { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 12px 12px; font-weight: 700; word-break: break-all; margin: 8px 0 12px; font-size: 14px; letter-spacing: -0.01em; text-align: center; }
.linkbox.small { font-size: 13px; font-weight: 500; }

/* start */
.hero { position: relative; padding-top: 128px; }
.hero .title { font-size: 54px; line-height: .98; margin-bottom: 18px; position: relative; }
.hero .lead, .hero .muted { position: relative; }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob.b1 { width: 104px; height: 104px; background: var(--pink); right: 0; top: 0; }
.blob.b2 { width: 56px; height: 56px; background: var(--primary); right: 112px; top: 44px; }
.blob.b3 { width: 34px; height: 34px; background: var(--mint); left: 4px; top: 30px; }
.hero > *:not(.blob) { position: relative; z-index: 1; }

/* quiz */
.quiz { gap: 14px; }
.counter { font-weight: 700; color: var(--muted-on-bg); margin: 0; font-size: 15px; }
.qcard { min-height: 150px; display: flex; align-items: center; }
.question { font-family: var(--body); font-weight: 600; font-size: 26px; line-height: 1.3; letter-spacing: 0; margin: 0; }
@media (min-width: 700px) { .question { font-size: 28px; } }
.answers { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.ans { background: var(--paper); color: var(--ink); border: 3px solid transparent; border-radius: 20px; min-height: 66px; padding: 14px 18px; font-size: 19px; font-weight: 600; line-height: 1.3; text-align: left; box-shadow: 0 5px 0 rgba(0,0,0,.22); transition: transform .08s, background .12s; }
.answers.either .ans { min-height: 84px; }
.ans:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.ans.chosen, .ans.picked { background: var(--lilac); border-color: var(--ink); }

/* extras */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--paper); color: var(--ink); border: 3px solid transparent; border-radius: 99px; padding: 12px 18px; font-weight: 600; font-size: 17px; min-height: 52px; }
.chip.on { background: var(--lilac); border-color: var(--ink); }
.chips.scale-row { flex-wrap: nowrap; justify-content: space-between; }
.chip.scale { width: 58px; height: 58px; padding: 0; border-radius: 50%; }
/* City "Other" picker (QA-1): input sits at the top so it stays above the phone keyboard */
.citypick { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 76px; }
.citypick .linkbtn { align-self: flex-start; padding-left: 0; text-decoration: none; font-weight: 600; }
.citypick .notelabel { font-weight: 700; font-size: 15px; }
.citypick .input { margin-top: 0; }
.citylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cityopt { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 12px 16px; min-height: 48px; display: flex; align-items: center; font-weight: 600; font-size: 17px; cursor: pointer; border: 3px solid transparent; }
.cityopt[aria-selected="true"], .cityopt:hover { border-color: var(--ink); background: var(--lilac); }
.citystatus { margin: 0; font-size: 15px; min-height: 1em; }
.scale-labels { display: flex; justify-content: space-between; font-size: 14px; opacity: .85; }
.input { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 14px; border: 3px solid #D8CCF8; background: #fff; color: var(--ink); margin-top: 6px; }
.input:focus { outline: none; border-color: var(--bg); }
form.invite label { display: block; font-weight: 700; }
form.invite .err { color: #8A1B4A; font-weight: 700; margin: 0; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(6px + env(safe-area-inset-bottom)); margin-bottom: -12px; z-index: 5; }
.extras.many-opts .chips { gap: 8px; }
.extras.many-opts .chip { padding: 8px 14px; min-height: 44px; font-size: 16px; }
.interstitial .big-line { font-family: var(--body); font-size: 22px; font-weight: 600; line-height: 1.35; }

/* invite pitch */
.pitch { font-size: 20px; }
/* QA-1: "results are ready" status on the invite screens before results */
.ready { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.readypill { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); color: var(--ink); border-radius: 99px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: 15px; }
.readytick { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--mint); display: inline-grid; place-items: center; }
.readytick svg { width: 15px; height: 15px; }
.readyteaser { margin: 0; font-size: 17px; font-weight: 600; }
.pitch-art { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; }
.pitch-art span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--pink); }
.pitch-art span:nth-child(3) { background: var(--mint); } .pitch-art span:nth-child(4) { background: var(--tang); } .pitch-art span:nth-child(5) { background: var(--blue); }
.pitch-art span.me { width: 64px; height: 64px; background: var(--primary); margin-right: 8px; }

/* story (results). Purple-led (owner direction 2026-11-18): every slide sits on the lead purple;
   one bright accent per slide shows up only in card shadows and shapes, never as the background. */
.story { --accent: var(--primary); min-height: 100dvh; display: flex; flex-direction: column; color: #fff; background: var(--bg); padding: 0 20px 22px; padding-top: env(safe-area-inset-top); }
.story.accent-sun { --accent: var(--sun); } .story.accent-pink { --accent: var(--pink); } .story.accent-mint { --accent: var(--mint); }
.story.accent-tang { --accent: var(--tang); } .story.accent-blue { --accent: var(--blue); }
.segments { display: flex; gap: 4px; padding: 2px 0 6px; }
.segments span { flex: 1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); }
.segments span.done, .segments span.cur { background: #fff; }
.story-top { display: flex; align-items: center; gap: 10px; padding: 12px 0; min-height: 68px; }
.story .kicker { color: var(--muted-on-bg); opacity: 1; }
.slide { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 12px 0; position: relative; }
.mega { font-size: 52px; line-height: .98; }
.mega.small { font-size: 36px; }
.headline { font-size: 34px; line-height: 1.02; margin: 0; }
.sub { font-size: 20px; }
.story-nav { display: flex; gap: 12px; }
.story-nav .btn { flex: 1; min-height: 60px; font-size: 19px; font-family: var(--head); }
.story-nav .btn.ghost { flex: 0 0 96px; }
.story .face { box-shadow: 0 8px 0 var(--accent); }
.story .bigchip { background: var(--accent); color: var(--ink); }
.intro-art { position: relative; height: 120px; }
.intro-art span { position: absolute; border-radius: 50%; }
.intro-art span:nth-child(1) { width: 110px; height: 110px; background: var(--primary); left: 0; top: 0; }
.intro-art span:nth-child(2) { width: 64px; height: 64px; background: var(--pink); left: 92px; top: 52px; }
.intro-art span:nth-child(3) { width: 38px; height: 38px; background: var(--mint); left: 170px; top: 14px; }
.allbars { display: flex; flex-direction: column; gap: 10px; }
.flipchips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.flipchips.left { justify-content: flex-start; }
.bigchip { background: var(--ink); color: #fff; font-family: var(--head); font-weight: 800; font-size: 22px; padding: 10px 18px; border-radius: 99px; }
.summary .bigchip { background: var(--primary); color: var(--ink); }

/* flip card */
.flip { perspective: 1400px; min-height: 340px; cursor: pointer; outline: none; }
.flip-inner { position: relative; width: 100%; min-height: 340px; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; padding: 26px 24px 48px; display: flex; flex-direction: column; overflow: auto; box-shadow: 0 8px 0 rgba(26,11,61,.25); }
.face.front { background: var(--paper); color: var(--ink); }
.face.back { background: var(--ink); color: #fff; transform: rotateY(180deg); }
.face .style-name { font-size: 40px; margin-bottom: 14px; }
.face .desc { font-size: 18px; }
.face .hint { position: absolute; right: 16px; bottom: 12px; font-size: 13px; font-style: italic; opacity: .78; }
.summary .flip, .summary .flip-inner { min-height: 340px; }

/* lean bars */
.leanbar { width: 100%; }
.leanbar .ends { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 6px; gap: 10px; }
.leanbar .ends span:last-child { text-align: right; }
.leanbar .track { position: relative; height: 14px; background: rgba(26,11,61,.14); border-radius: 99px; }
.leanbar .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: rgba(26,11,61,.3); }
.dot { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; }
.leanbar .dot { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.dot.you { background: var(--ink); }
.dot.them { background: #FF4FA3; }
.dot.them.fuzzy { box-shadow: 0 0 0 6px rgba(255,79,163,.35); }
.story .leanbar .track { background: rgba(255,255,255,.22); }
.story .leanbar .mid { background: rgba(255,255,255,.5); }
.story .dot.you { background: var(--primary); border-color: var(--ink); }
.story .dot.them { border-color: var(--ink); }
.leanbar.compact .ends { font-size: 13px; margin-bottom: 4px; }
.leanbar.compact .track { height: 10px; }
.leanbar.compact .dot { width: 16px; height: 16px; border-width: 2px; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.legend .dot { width: 14px; height: 14px; border-width: 2px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare .style-name { font-size: 28px; }
.disagree { align-self: flex-start; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 16px; border-radius: 16px; }

/* rating */
.rate { display: flex; justify-content: space-between; gap: 8px; }
.rbtn { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255,255,255,.7); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 22px; }
.rbtn.on { background: var(--ink); color: #fff; }
.story .rbtn { border-color: #fff; background: transparent; color: #fff; }
.story .rbtn.on { background: var(--primary); border-color: var(--primary); color: var(--ink); }

/* summary */
.summary .legend { background: var(--paper); color: var(--ink); align-self: flex-start; padding: 6px 14px; border-radius: 99px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.grow-row { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 14px 16px; }
.grow-row summary { list-style: none; cursor: pointer; }
.grow-row summary::-webkit-details-marker { display: none; }
.grow-row .lab { font-family: var(--head); font-weight: 800; font-size: 20px; display: block; margin-bottom: 6px; }
.grow-row:not(.strong) .lab { color: #6B5C92; font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.grow-row .more { padding-top: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* "How others see you": a deep-purple card on the purple page, so its CTA is the same yellow
   primary button as the pre-results invite screen (REVIEW-2 M3). */
.others { text-align: center; background: var(--bg-deep); color: #fff; box-shadow: 0 0 0 3px var(--primary) inset; }
.others .muted { color: var(--muted-on-bg); }
.others .lock { font-size: 34px; }
.counter-big { font-family: var(--head); font-weight: 800; font-size: 54px; line-height: 1; margin: 6px 0; }
.pips { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.pips span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; }
.pips span.on { background: var(--primary); border-color: var(--primary); }
.others .repitch { margin: 6px 0 14px; font-size: 18px; }
.others .row { justify-content: center; }
.others .linkbtn { color: #fff; }
.paused { color: var(--muted-on-bg); }
.notcounted { background: var(--bg-deep); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.friendlabel .rbtn { background: #fff; }
.row.between { justify-content: space-between; align-items: flex-start; }
.row.between .kicker { margin: 0; }
.linkbtn.ink { color: var(--ink); padding: 0 4px; font-size: 15px; }
.tucked > summary { cursor: pointer; font-weight: 700; color: var(--muted-on-bg); padding: 6px 0; }
.tucked[open] > summary { margin-bottom: 10px; }

/* friend intro */
.hero.friend .title { font-size: 46px; }
.promise { margin: 18px 0 16px; font-size: 18px; }
.promise p { margin: 0; }

/* feedback sheet (spec 63a/63b, QA-1): what it's about, a quick chip, an optional note */
.modal { position: fixed; inset: 0; background: rgba(20,6,50,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: var(--paper); color: var(--ink); width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto; border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sheet h2 { font-size: 24px; margin: 0; }
.sheet .muted { color: #5B4D80; margin: 0; }
.sheet blockquote { margin: 0; padding: 12px 14px; background: var(--lilac); border-radius: 14px; font-weight: 600; line-height: 1.35; }
.sheet blockquote .qlabel { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B4D80; margin-bottom: 4px; }
.sheet .scope { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #F1EBFF; border-radius: 14px; border: 0; margin: 0; }
.sheet .scope legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sheet .scope label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 11px; font-weight: 700; font-size: 15px; text-align: center; padding: 6px 8px; cursor: pointer; color: #5B4D80; }
.sheet .scope input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sheet .scope label:has(input:checked) { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(26,11,61,.12), 0 0 0 2px var(--ink); }
.sheet .scope label:has(input:focus-visible) { outline: 3px solid var(--bg); outline-offset: 2px; }
.sheet .fbchips { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .fbchip { border: 2px solid #D8CCF8; background: var(--paper); color: var(--ink); border-radius: 99px; min-height: 44px; padding: 8px 16px; font-weight: 600; font-size: 16px; }
.sheet .fbchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sheet .fbchip:focus-visible, .sheet .btn:focus-visible { outline: 3px solid var(--bg); outline-offset: 2px; }
.sheet .notelabel { font-weight: 700; font-size: 15px; display: block; margin-bottom: 6px; }
.sheet textarea { width: 100%; font: inherit; border: 3px solid #D8CCF8; border-radius: 14px; padding: 12px; margin: 0; color: var(--ink); resize: vertical; display: block; }
.sheet textarea:focus { outline: none; border-color: var(--bg); }
.sheet .row { justify-content: flex-end; }
.sheet .btn.ghost { color: var(--ink); border-color: #D8CCF8; }
.sheet .btn.primary[aria-disabled="true"] { opacity: .45; box-shadow: none; }
.sheet .fberr { color: #8A1B4A; font-weight: 700; margin: 0; }
.sheet .fbhint { font-size: 14px; color: #5B4D80; margin: 0 auto 0 0; align-self: center; }
.sheet.done { align-items: center; text-align: center; padding-top: 30px; padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
.sheet .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; }
.sheet .tick svg { width: 30px; height: 30px; }

/* lists & static pages */
.qlist { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.qitem { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.qitem .qt { font-weight: 700; margin: 0 0 4px; }
.qitem .muted { color: #5B4D80; margin: 0; }
.qitem .friendq { color: #3B2A73; margin: 4px 0 0; }
.qitem .fbbtn { align-self: flex-end; background: var(--lilac); color: var(--ink); font-size: 14px; min-height: 44px; padding: 0 14px 0 12px; margin: 0 -4px 0 0; }
.qitem .fbbtn svg { width: 16px; height: 16px; }
.faq h2 { font-size: 28px; }
.postlink { text-decoration: none; display: block; }
.joke { margin-top: 40px; }
.joke .quote { font-family: var(--body); font-size: 24px; font-weight: 600; line-height: 1.3; }
.joke .by { font-weight: 700; }
.joke .quote .ph { font-size: 18px; }

.foot { display: flex; flex-wrap: wrap; gap: 0 12px; justify-content: center; padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot a { text-decoration: none; opacity: .8; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.others .btn + .muted { margin-top: 16px; }
/* "Your answers about X" card: a little room between the labels and the rating question */
.friendlabel .bigchip { font-size: 18px; padding: 8px 14px; }
.friendlabel h3 { margin-top: 16px; }

[hidden] { display: none !important; }

/* REVIEW-3 M2: the private link looks nothing like the invite link (cream, dashed, a lock and a warning) */
.card.private { background: var(--cream); color: var(--ink); border: 3px dashed #B98900; margin-top: 18px; }
.card.private .linkbox { background: #fff; border: 1px solid #E7D6B0; }
.kicker.warn { color: #8A2B00; opacity: 1; }
.muted-ink { color: #5B4D80; }
.btn.ghost.dark { color: var(--ink); border-color: #CDBEF5; }
.btn.danger { background: #D7263D; color: #fff; box-shadow: 0 5px 0 #9E1426; }
.card.viewer { background: var(--cream); border: 3px solid var(--primary); margin-bottom: 16px; }
.card.viewer h2 { font-size: 22px; }
.claim summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.claim .btn { width: 100%; margin-top: 8px; }
.confirm { margin-top: 16px; padding-top: 16px; border-top: 2px solid #E6DBFF; }

/* dev mode (public/js/config.js DEV_MODE): "Needs review" toggle, scoring info, #/review */
.dev { background: rgba(26,11,61,.28); border: 2px solid transparent; border-radius: 14px; padding: 8px 10px 9px 12px; font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,.82); }
.dev.flagged { border-color: var(--primary); background: rgba(255,210,63,.1); }
.devrow { display: flex; align-items: center; gap: 8px; }
.devnum { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.devtag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.devflag { margin-left: auto; border: 2px solid rgba(255,255,255,.45); border-radius: 99px; background: transparent; color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; min-height: 36px; }
.devflag.on { background: var(--primary); color: var(--ink); border-color: var(--primary); }
.devscore { margin-top: 6px; }
.devline { margin: 0; }
.devline.also { opacity: .8; }
.devnote { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.devnote[hidden] { display: none; }
.devnote .input { flex: 1 1 160px; margin: 0; font-size: 15px; padding: 7px 10px; border-width: 2px; border-radius: 10px; }
.devnote .btn { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.devmsg { font-weight: 700; color: var(--primary); }
.dev ~ .qcard { min-height: 96px; margin-top: 4px; }
.extras .dev { margin-bottom: 4px; }
.foot .devlink { border: 1px dashed rgba(255,255,255,.5); border-radius: 8px; padding: 0 8px; min-height: 32px; align-self: center; }
.revlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.revcard { padding: 16px 18px; }
.revmeta { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; flex-wrap: wrap; }
.revnum { font-family: var(--head); font-size: 18px; }
.pill { background: var(--lilac); border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.revmeta .muted { margin-left: auto; }
.revtext { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.revcard .devscore { background: var(--cream); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 8px 0; }
.revnote { font-style: italic; margin: 6px 0 10px; }
.revcard .btn.ghost { color: var(--ink); border-color: #CDBEF5; min-height: 40px; padding: 6px 16px; font-size: 15px; }
.credits { opacity: .8; margin-top: 4px; } .credits a { color: inherit; }

/* QA-1: one "new area to play" per slide; story slides take taps and horizontal swipes */
.story .slide { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.growthcard { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 26px 24px; box-shadow: 0 8px 0 var(--accent); }
.growthcard .style-name { font-size: 40px; margin: 0 0 14px; }
.growthcard .desc { font-size: 18px; margin: 0; }

/* QA-1: results color wheel. Bleeds to the screen edges on phones so the labels stay readable. */
.wheel { margin: 0 -20px; }
.wheelsvg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; overflow: hidden; font-family: var(--body, inherit); }
.wheelsvg .wgrid { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; }
.wheelsvg .wgrid.mid { stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 5 5; }
.wheelsvg .wspoke { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.wheelsvg .wshape { fill: rgba(255,210,63,.32); stroke: var(--sun); stroke-width: 2.5; stroke-linejoin: round; pointer-events: none; }
.wheelsvg .wdot { fill: var(--sun); stroke: var(--bg); stroke-width: 1.5; pointer-events: none; }
.wheelsvg .wsel { stroke: #fff; stroke-width: 2; stroke-dasharray: 3 4; pointer-events: none; }
.wheelsvg .pole { cursor: pointer; outline: none; }
.wheelsvg .pole .hit { fill: transparent; }
.wheelsvg .pole.sel .hit { fill: rgba(255,255,255,.12); }
.wheelsvg .pole:focus-visible .hit { fill: rgba(255,255,255,.2); stroke: #fff; stroke-width: 2; }
.wheelsvg .pole.sel .seg, .wheelsvg .pole:focus-visible .seg { stroke: #fff; stroke-width: 3; }
.wheelsvg .plabel { fill: #fff; font-weight: 600; cursor: pointer; }
.wheelsvg .plabel.sel { fill: var(--sun); font-weight: 800; }
.wheelsheet .style-name { font-size: 34px; margin: 0; }
.wheelsheet .kicker { margin: 0; color: #5B4D80; }
.wheelsheet .qlabel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B4D80; margin: 0 0 6px; }
.wheelsheet .desc { font-size: 18px; margin: 0; }
.wheelsheet .row .btn { flex: 1; min-height: 52px; }

/* Blog post: text on the purple page; the style circle bleeds like the results wheel. */
.post p { font-size: 18px; }
.blogwheel { margin: 18px -20px 4px; }
.wheelsvg.plain .plabel { cursor: default; }
.stylelist { list-style: none; padding: 18px 22px; margin: 18px 0; }
.stylelist li { margin: 0 0 10px; font-size: 16px; }
.stylelist li:last-child { margin: 0; }
.blogwheel figcaption { font-size: 15px; opacity: .85; margin: 6px 20px 0; }

/* "?" help: why it takes 4 friends (share screen + waiting card) */
.helpq { margin: 4px 0 12px; text-align: left; }
.helpq summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); min-height: 44px; }
.helpq summary::-webkit-details-marker { display: none; }
.helpq .q { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 800; }
.helpq p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
/* Sat 11-19: friends' shape on the comparison wheel, pink to match the friends dot; yours stays yellow on top */
.wheelsvg .wshape.them { fill: rgba(255,79,163,.30); stroke: #FF4FA3; }
.wheelsvg .wdot.them { fill: #FF4FA3; }
.legend.center { justify-content: center; }
.yousee { font-size: 18px; font-weight: 600; opacity: .92; }
.yousee b { font-weight: 800; }
