:root{--cream:#fff8e8;--cocoa:#4a382f;--sky:#91bce5;--inkblue:#396486;--butter:#f2d57a;--line:#d4c9b9;--paper:#fffdf8;color-scheme:light;font:100%/1.5 system-ui,-apple-system,sans-serif;color:var(--cocoa);background:var(--cream)}
*{box-sizing:border-box}body{margin:0}main,.head-inner,.controls{width:min(100%,40rem);margin:auto;padding-inline:20px}header{border-bottom:1px solid var(--line)}.head-inner{display:flex;align-items:center;gap:10px;min-height:72px}.symbol{width:34px;height:34px}.wordmark{width:146px;height:auto}.test{margin-left:auto;font-size:.75rem;font-weight:700;letter-spacing:.08em;border:1px solid var(--line);padding:2px 6px;border-radius:4px}
main{padding-block:24px 120px}h1,h2,p,ul,ol,figure,fieldset{margin:0}h1{font-size:clamp(1.65rem,4vw,2.15rem);letter-spacing:-.04em;line-height:1.15;text-wrap:balance}h2{font-size:1.12rem;line-height:1.3;letter-spacing:-.025em}.hero h1,.result h1{font-size:clamp(2.4rem,6vw,3.5rem);max-width:19ch}.pose{height:120px;width:120px;object-fit:contain}.hero .pose{width:180px;height:180px}.hero,.reward{padding-block:22px}.promise{font-size:1.15rem;line-height:1.65;margin-block:18px}details{margin-top:20px;border-block:1px solid var(--line)}summary,a,.link{color:inherit;cursor:pointer;text-underline-offset:3px}summary{padding:12px 0;font-weight:650;min-height:48px}details p{padding:0 0 16px}
.progress{margin-bottom:20px}.segments{display:flex;gap:5px}.segments progress{appearance:none;border:0;padding:0;min-width:0;height:7px;flex:1;border-radius:8px;background:#ded8cb;overflow:hidden;color:var(--inkblue)}
.segments progress::-webkit-progress-bar{background:#ded8cb}
.segments progress::-webkit-progress-value{background:var(--inkblue)}
.segments progress::-moz-progress-bar{background:var(--inkblue)}.chapter{margin-top:8px;font-size:.9375rem;font-weight:650}.slots{display:flex;list-style:none;gap:12px;padding:0;margin-top:12px}.slots li{text-align:center;font-size:.8rem;font-weight:650;min-width:40px}.slot{width:40px;height:40px;display:block;margin:auto;border-radius:12px}.empty{border:1.5px dashed #aa9d8c;border-radius:50%}.joining{animation:arrive .24s ease-out both}@keyframes arrive{from{transform:translateY(5px);opacity:.3}to{transform:none;opacity:1}}
.join-note{margin-top:8px;color:var(--inkblue);font-weight:650}.bubble{display:flex;align-items:center;gap:12px;margin-bottom:18px}.bubble img{height:48px;width:48px;border-radius:50%}.bubble p{background:#e2ecf3;border-radius:14px 14px 14px 3px;padding:10px 14px;font-weight:550}.question{margin-block:14px 20px}.hint{margin:8px 0}.choices{display:grid;gap:7px;border:0;padding:0}.choice{position:relative;display:flex;gap:12px;align-items:center;min-height:49px;padding:9px 13px;border:1px solid var(--line);border-radius:12px;background:var(--paper);cursor:pointer}.choice input{position:absolute;opacity:0}.choice .tick{flex:none;margin-left:auto}
.choice:has(:checked){border-color:var(--inkblue);background:#e3edf5;box-shadow:inset 0 0 0 1px var(--inkblue)}.choice :checked~.tick:after{content:"✓";color:var(--inkblue);font-size:20px;font-weight:800}
:focus-visible,.choice:has(:focus-visible){outline:3px solid var(--inkblue);outline-offset:3px}.field{display:block;margin:16px 0;font-weight:650}.field input,.field textarea,textarea.written,input.numeric{display:block;margin-top:6px;width:100%;min-height:48px;background:var(--paper);color:var(--cocoa);font:inherit;font-weight:400;border:1px solid #897c6e;padding:10px 12px;border-radius:10px}textarea{resize:vertical}.field small{display:block;font-weight:400}.slider-box{padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:14px}.slider-box output{display:block;font-size:1.6rem;font-weight:700}.slider-box input[type=range]{appearance:none;display:block;width:100%;height:48px;margin:0;background:transparent;--thumb-fill:var(--cream);--thumb-edge:#887969}
.slider-box input[type=range].answered{--thumb-fill:var(--inkblue);--thumb-edge:var(--inkblue)}
.slider-box input[type=range]::-webkit-slider-runnable-track{background:var(--line);border-radius:4px;height:6px}
.slider-box input[type=range]::-moz-range-track{background:var(--line);border-radius:4px;height:6px}
.slider-box input[type=range]::-webkit-slider-thumb{appearance:none;box-sizing:border-box;width:22px;height:22px;margin-top:-8px;border:1px solid var(--thumb-edge);border-radius:50%;background:var(--thumb-fill)}
.slider-box input[type=range]::-moz-range-thumb{box-sizing:border-box;width:22px;height:22px;border:1px solid var(--thumb-edge);border-radius:50%;background:var(--thumb-fill)}
.ends{display:flex;justify-content:space-between}.dock{position:fixed;bottom:0;left:0;right:0;background:var(--cream);border-top:1px solid var(--line);padding:10px 0 max(10px,env(safe-area-inset-bottom));z-index:2}.controls{display:flex;align-items:center;gap:16px}.button,button{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font:inherit;font-weight:700;min-height:48px;padding:10px 16px;border-radius:12px;border:2px solid var(--inkblue);background:var(--butter);color:var(--cocoa);cursor:pointer}.controls .button,.controls button{flex:1}.back,.edit,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}button:disabled{background:#e9e2d4;border-color:#a99d8c;color:#64574c;cursor:default}.kicker{margin:0 0 10px;color:var(--inkblue);font-weight:700}.cards{display:grid;gap:12px;margin:22px 0}.card{border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:16px}.card header{display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;margin-bottom:6px}.card p+p{margin-top:4px}.edit{font-size:.9375rem}.role{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center}.role img{width:56px}.role p{margin-top:5px}.reward .pose{margin-bottom:18px}.steps{padding:0;list-style:none;counter-reset:stage;margin:24px 0}.steps li{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);counter-increment:stage}.steps li:before{content:counter(stage);font-weight:750;color:var(--inkblue);font-size:1.3rem}.secondary{margin:8px 0}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}
@media(min-width:800px){main{padding-top:36px}.hero{display:grid;grid-template-columns:1fr 180px;align-items:center;column-gap:16px}.hero .pose{grid-column:2;grid-row:1/4}.hero details{grid-column:1/-1}.result .cards{gap:14px}.card{padding:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.edit-group{margin-top:20px}.edit-group legend{font-weight:650;padding:0;margin-bottom:8px}

html{scroll-padding-block-end:calc(88px + env(safe-area-inset-bottom))}

/* Quiz v3 — one exchange per screen. */
main,.head-inner,.controls{width:min(100%,42rem)}
main{padding-top:22px;overflow-wrap:anywhere}
.meter{display:flex;align-items:center;gap:12px;margin:0 0 24px;color:#635449;font-size:.875rem;font-weight:650;font-variant-numeric:tabular-nums}
.meter progress{flex:1;min-width:0;height:5px;appearance:none;background:#e5ddcb;border:0;border-radius:8px;overflow:hidden}
.meter progress::-webkit-progress-bar{background:#e5ddcb}.meter progress::-webkit-progress-value{background:var(--inkblue)}.meter progress::-moz-progress-bar{background:var(--inkblue)}
.exchange{display:grid;gap:10px;margin-bottom:23px}.mine{justify-self:end;max-width:87%;padding:8px 14px;border-radius:14px 14px 3px 14px;background:#f7e9bd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bubble{align-items:flex-end;margin:0;gap:8px}.bubble img{width:40px;height:40px}.bubble p{max-width:85%;font-weight:500}
h1{font-size:clamp(1.75rem,4.8vw,2.5rem);line-height:1.12;letter-spacing:-.045em}
.hero .pose{width:150px;height:150px}.hero{padding:6px 0}.lead{margin-block:16px;font-size:1.31rem;line-height:1.44;letter-spacing:-.02em}.sub{color:#635449;margin:10px 0 18px}.page-00 .sub{margin:4px 0 22px}
.choices{margin-top:17px}.group-name{margin-top:12px;font-size:.94rem;font-weight:700}.group-name:first-child{margin-top:0}
.field small{font-size:1rem;margin-bottom:10px}.field select{min-height:44px;padding:8px;font:inherit}.field textarea:focus,.field input:focus{outline-offset:2px}
.page-09>.pose{width:96px;height:96px}.page-14>.pose,.page-15>.pose{width:120px;height:120px}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-block:20px}
.tiles a{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:14px;min-height:112px;background:var(--paper);border:1px solid var(--line);border-radius:16px;text-decoration:none}
.tile-icon{font-size:1.55rem;line-height:1.2}.tiles strong{line-height:1.25}.tiles small,.sample{color:var(--inkblue);font-weight:650}.tiles a:hover,.choice:hover{border-color:var(--inkblue)}
.controls .skip,.plain{background:var(--paper);border:1px solid var(--line)}.controls .skip{flex:0;border:0;text-decoration:underline;background:transparent}
.recorder{text-align:center;margin:24px auto}.clock{display:block;font-size:2.3rem;font-weight:700;font-variant-numeric:tabular-nums}.record{min-height:104px;width:104px;border-radius:50%;line-height:1.2}
.levels{display:flex;align-items:center;justify-content:center;gap:5px;height:44px;margin-bottom:12px}.levels i{display:block;width:6px;height:10px;border-radius:5px;background:var(--sky)}
.running .levels i{animation:level .65s ease-in-out infinite alternate}.running .levels i:nth-child(2n){animation-delay:-.3s}.running .levels i:nth-child(3n){animation-delay:-.5s}@keyframes level{to{transform:scaleY(2.8)}}
.record-status,.pic-status{margin-top:12px;font-weight:650}.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.thumbs img{width:85px;height:85px;object-fit:cover;border-radius:10px}
.examples{display:grid;gap:12px;margin:18px 0 10px}.example{font-size:1.35rem;line-height:1.4;min-height:140px}.examples.swipe{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;position:relative}.swipe .example{flex:0 0 100%;scroll-snap-align:start}
.example-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.sample{display:inline-block;font-size:.85rem;padding:4px 9px;background:#e2ecf3;border-radius:8px}
.card header .edit{white-space:nowrap}.wishes .lamp{width:38px;height:38px;float:left;margin:0 12px 6px 0}.wishes .card p{clear:both;padding-top:9px}.wish{display:inline-flex;margin-top:14px;min-height:44px}
@media(min-width:800px){main{padding-top:32px}.hero{column-gap:24px;grid-template-columns:1fr 150px;padding-top:22px}.hero details{margin-top:6px}.hero .lead{margin-bottom:10px}}
.record{background:var(--inkblue);color:var(--paper)}

/* Navigation keeps separate, readable targets even at enlarged text sizes. */
.controls{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px}
.controls button{min-width:0;overflow-wrap:normal}
.controls .back{background:var(--paper);border:1px solid var(--line)}
.controls .skip{grid-column:1/-1;justify-self:center;min-width:88px;min-height:48px;padding:10px 18px;white-space:normal}
.controls .skip{order:-1}
.page-10{padding-bottom:210px}
.privacy{font-size:.9375rem;margin-top:18px}
.field-error{color:#8a3024;margin-block:8px}
@media(max-width:430px){.controls{gap:10px}.controls button{padding-inline:12px}}

.controls [data-next]{order:1}.controls .back{order:0}.controls .skip{order:-1}
strong{font-weight:800;color:inherit}
.page-00 .hero h1{font-size:2rem;line-height:1.15}
.page-00 .lead{font-size:1.1875rem}.page-00 .sub{font-size:.9375rem}.page-00 .kicker{font-size:1rem;font-weight:600}
.more-options{margin:0;border:0}.more-options .choice{margin-bottom:7px}
.tally{position:sticky;bottom:100px;z-index:1;margin-top:16px;padding:12px;background:var(--cream);border:1px solid var(--line);border-radius:12px}
.page-09{padding-bottom:230px}

main{padding-bottom:calc(var(--dock-height,8rem) + 32px)}
.tally{bottom:calc(var(--dock-height,8rem) + 12px)}
.tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
.controls .back:disabled{opacity:.6}

/* Leave room for both overlays when the final Q04 choices scroll into view. */
.page-04{padding-bottom:calc(var(--dock-height,8rem) + var(--tally-height,8rem) + 56px)}

/* Four complete stories stay visible above the dock at standard phone text size. */
.page-11{padding-top:16px;padding-bottom:calc(var(--dock-height,8rem) + 16px)}
.page-11 .examples{gap:6px;margin:10px 0 8px}
.page-11 .example{min-height:0;font-size:1rem;line-height:1.35;padding:8px 12px}
.page-11 .sub{margin:6px 0 8px;font-size:.9375rem;line-height:1.4}
.page-11 .exchange{gap:4px;margin-bottom:10px}
.page-11 .mine{padding:6px 12px}
.page-11 .bubble p{padding:8px 12px;font-size:.9375rem}
.page-11 .meter{margin-bottom:12px}

/* Footer privacy r2: one native disclosure at every size. */
.quiz-footer{margin-top:16px;font-size:.875rem;color:rgb(74 56 47 / 70%)}
.quiz-disclosure{position:relative;margin:0;border:0;padding-bottom:max(44px,3em);font-size:.875rem;line-height:1.5}
.quiz-disclosure summary{position:absolute;bottom:0;left:0;display:flex;align-items:center;gap:.4em;min-height:44px;max-width:100%;padding:0;font-weight:400;list-style:none}
.quiz-disclosure summary::-webkit-details-marker{display:none}
.quiz-disclosure summary span{text-decoration:none}.quiz-disclosure summary:hover span,.quiz-disclosure summary:focus-visible span{text-decoration:underline}
.quiz-disclosure summary small{font:inherit;white-space:nowrap}
.quiz-disclosure p{padding:16px 0;color:var(--cocoa);font-size:1rem;line-height:1.6}
.desktop-night{--footer-row-height:max(96px,6em);font-size:.875rem;display:block;background:#203751;color:var(--cream);--illo-ink:var(--cream);--illo-1:var(--sky);--illo-2:var(--butter)}
.desktop-night>div{position:relative;width:min(calc(100% - 40px),42rem);margin:auto}
.desktop-night .quiz-disclosure{padding-bottom:var(--footer-row-height)}
.desktop-night .quiz-disclosure summary{left:auto;right:0;bottom:calc(var(--footer-row-height)/2);transform:translateY(50%);max-width:calc(100% - 110px)}
.desktop-night .quiz-disclosure p{color:var(--cream)}
.desktop-dots,.footer-email{position:absolute;bottom:calc(var(--footer-row-height)/2);transform:translateY(50%)}
.desktop-dots{left:0;width:46px}.desktop-dots svg{display:block;width:100%}
.footer-email{left:50%;transform:translate(-50%,50%);display:grid;place-items:center;width:44px;height:44px}.footer-email svg{width:24px}
.desktop-night[data-step="00"]{margin-bottom:calc(var(--dock-height,80px) + 16px + env(safe-area-inset-bottom))}
@media(max-width:1023px){.page-00,.page-15{padding-bottom:24px}}
@media(max-width:767px){
 .desktop-night{--footer-row-height:max(128px,8em)}
 .desktop-night .quiz-disclosure summary{max-width:100%;bottom:12px;transform:none}
 .desktop-dots,.footer-email{bottom:calc(var(--footer-row-height) - 24px)}
}

/* Phone welcome only: fill the viewport above the measured sticky action bar. */
@media(max-width:767px){
 body:has(> .quiz-layout[data-step="00"]){display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding-bottom:var(--dock-height,80px)}
 body:has(> .quiz-layout[data-step="00"])>header{flex-shrink:0}
 body:has(> .quiz-layout[data-step="00"]) .page-00{margin-block:0}
 .desktop-night[data-step="00"]{flex-shrink:0;margin: auto 0 0;--footer-row-height:calc(72px + max(44px,3em))}
 .desktop-night[data-step="00"] .quiz-disclosure summary{bottom:8px}
 .desktop-night[data-step="00"] .desktop-dots,.desktop-night[data-step="00"] .footer-email{bottom:calc(var(--footer-row-height) - 30px)}
}

/* Open phone disclosure: reserve the dock once, below the entire footer. */
@media(max-width:767px){
 body:has(.quiz-disclosure[open]){padding-bottom:calc(var(--dock-height,0px) + 16px)}
 body:has(.quiz-disclosure[open]) .quiz-layout>main{padding-bottom:0}
 body:has(.quiz-disclosure[open])>.desktop-night{margin-bottom:0}
}
