/* Desktop frame, with shared phone changes explicitly approved in later rounds. */
[data-desktop-only]{display:none}
[data-desktop-wrap]{display:contents}
/* Shared art corrections approved after the desktop frames: phone and desktop. */
.quiz-team{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
.quiz-team>span{font-size:.875rem;font-weight:650}
.quiz-team .slots{margin:0;gap:6px;align-items:flex-start}
.quiz-team .slots li{min-width:26px;font-size:.6875rem}
.quiz-team .slot{width:1.625rem;height:1.625rem}
.quiz-team .initial{display:grid;place-items:center;border-radius:50%;background:var(--butter);color:var(--cocoa);font-size:.875rem;line-height:1.2;font-weight:750;border:1px solid var(--line)}
.quiz-team li>span:not(.slot){display:block;margin-top:2px}
.wishes .choice.wish{display:flex;border-radius:999px;min-height:56px;padding:10px 14px;gap:8px;line-height:1.25}
.wishes .choice.wish input{position:absolute;opacity:0}
/* Keep all four phone stories above the dock; the team shares the progress row. */
@media(max-width:767px){
 .page-11{position:relative}
 .page-11>.meter{width:calc(100% - 9.5rem);min-height:2.5rem}
 .page-11>.quiz-team{position:absolute;top:1rem;right:20px;width:9rem;margin:0;padding:0;border:0;justify-content:flex-end}
 .page-11>.quiz-team>span{display:none}
 .page-11 .quiz-team .slot{width:1.25rem;height:1.25rem}
 .page-11 .quiz-team .slots li{min-width:1.25rem;line-height:1.25}
 .page-11 .examples{gap:5px}
}
@media(min-width:768px) and (max-width:1023px){
 main,.head-inner,.controls{width:min(100%,640px)}
 .dock{left:50%;right:auto;transform:translateX(-50%);width:min(100%,640px)}
 .hero{display:block}.hero .pose{float:none}
}
@media(min-width:1024px){
 :root{--quiz-frame:1120px;--quiz-gutter:32px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
 html{scroll-padding-block-end:24px}
 body{min-height:100vh}
 body>.quiz-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:start;align-content:center;min-height:calc(100vh - 76px);width:min(calc(100% - 2 * var(--quiz-gutter)),var(--quiz-frame));margin:auto;padding:36px 0}
 body>header>.head-inner{width:min(calc(100% - 2 * var(--quiz-gutter)),var(--quiz-frame));min-height:75px;padding:0;gap:16px}
 .head-inner>.symbol,.head-inner>.wordmark{display:none}
 .head-inner>.desktop-logo{display:block;width:190px;height:auto}
 .quiz-layout>main{width:100%;padding:0;margin:0;min-width:0;align-self:center}
 main>.meter,main>.exchange,main>.pose,.hero>.pose{display:none}
 .desktop-progress{display:block;margin-bottom:24px;max-width:390px}
 .desktop-progress .segments progress{height:5px}
 .desktop-progress p{font-size:.875rem;color:var(--inkblue);font-weight:650;margin:8px 0 0}
 main h1{font:750 clamp(36px,3.1vw,48px)/1.06 ui-rounded,"SF Pro Rounded",system-ui,sans-serif;letter-spacing:-.048em;max-width:18ch;margin:0 0 20px}
 main h1 strong{font-weight:850}
 main .sub{font-size:1.125rem;line-height:1.45;margin:0 0 20px}
 main .dock{position:static;inset:auto;transform:none;width:auto;border:0;padding:0;margin:24px 0 0;background:transparent}
 main .controls{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:12px;width:auto;padding:0;margin:0}
 main .controls button,main.page-15>.edit{flex:none;min-height:56px;padding:12px 26px;border:2px solid var(--cocoa);border-radius:999px;font-size:1.0625rem;line-height:1.25;font-weight:700;white-space:normal}
 main .controls [data-next]{min-width:200px;max-width:100%}
 main .controls .back{min-width:100px;background:transparent}
 main .controls .back:disabled{display:none}
 main .controls .skip{order:2;border:0;background:transparent;padding:12px;min-width:0}
 .choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
 .choices.desktop-short{grid-template-columns:repeat(3,minmax(0,1fr))}
 .choices>.choice,.choice-group>.choice{min-height:56px;padding:8px 16px;line-height:1.25;border-radius:28px;gap:6px;min-width:0}
 .page-04 .choices{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px}
 .page-04 .choice-group{display:grid;gap:6px;min-width:0}
 .page-04 .choice-group .choice,.page-06 .choice{min-height:48px;padding:7px 12px;font-size:.94rem}
 .page-04 .group-name{margin:0 0 2px}
 .page-04 .choices>.choice{grid-column:1/-1;justify-self:start;min-width:112px;min-height:48px}
 .page-06 .choices{display:block}
 .page-06 .choice-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:16px}
 .page-06 .group-name{grid-column:1/-1;margin:0}
 .page-06 .choices>.choice{width:fit-content;min-width:112px}
 .field input{max-width:440px;min-height:56px}
 .field.own{max-width:560px}.page-09b textarea{max-width:640px}
 .page-09d .pickers{max-width:640px;padding:24px;border:1px dashed var(--inkblue);border-radius:16px;min-height:240px}
 .tally{position:static;margin:18px 0 0;padding:0;border:0;font-size:1.25rem;line-height:1.3}
 .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tiles a{min-height:160px;justify-content:center;padding:17px}
 .recorder{max-width:440px;padding:24px 0}.recorder .record{width:96px;height:96px;min-height:96px}
 .page-11 .examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
 .page-11 .example{font-size:1.1rem;line-height:1.45;padding:17px}
 .page-11 .sub{font-size:1.125rem;line-height:1.45;margin:0 0 20px}
 .page-13 .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .page-13 .card{padding:12px 16px;min-width:0}.card header{flex-wrap:wrap}
 .page-14 .wishes{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .page-14 .wishes .card{display:flex;flex-direction:column;gap:12px;padding:17px;min-width:0}
 .page-14 .wishes .lamp{display:none}
 .page-14 .wishes h2{font-size:1.08rem;line-height:1.28}
 .page-14 .wishes p{font-size:.94rem;margin:0;padding:0}
 .page-14 .wish{margin-top:auto;padding:8px;gap:6px}
 .desktop-panel{display:block;position:sticky;top:96px;align-self:start;min-width:0}
 .desktop-scene{position:relative}
 .desktop-arch{position:relative;isolation:isolate;overflow:hidden;width:100%;height:clamp(350px,36.15vw,520px);border-radius:49% 49% 18px 18px;background:var(--sky)}
 .desktop-arch::before{content:"";position:absolute;inset:0;z-index:-1;background:url(/quiz/v3/assets/smoke-cream.svg) center/190px;opacity:.19}
 .desktop-genie{position:absolute;bottom:0;left:0;width:100%;height:90%;object-fit:contain}
 .desktop-panel:has(.bubble p) .desktop-genie{height:78%}
 .desktop-reaction{position:absolute;left:4%;top:12%;max-width:88%;z-index:1}
 .desktop-reaction .exchange{margin:0}.desktop-reaction .mine,.desktop-reaction .avatar{display:none}
 .desktop-reaction .bubble p{max-width:100%;margin:0;padding:12px 18px;background:var(--paper);color:var(--cocoa);font-weight:550;font-size:1.05rem;line-height:1.4;border:1px solid #6b8aa2;border-radius:18px 18px 18px 4px}
 .quiz-team{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
 .quiz-team>span{font-size:.9rem;font-weight:650}.quiz-team .slots{margin:0;gap:8px}.quiz-team .slot{width:36px;height:36px}.quiz-team li{min-width:36px;font-size:.78rem}
 .quiz-team li>span:not(.slot){display:block;margin-top:3px}
 .quiz-layout[data-step="00"],.quiz-layout[data-step="15"]{min-height:calc(100vh - 76px - 96px);grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:center}
 .page-00 .hero{display:block;padding:0}.page-00 .hero h1,.page-15 h1{font-size:clamp(56px,5.55vw,88px);line-height:1.01;max-width:12ch;letter-spacing:-.06em}
 .page-00 .lead,.page-15 .lead{max-width:34ch;font-size:1.25rem;margin-top:20px}.page-00 .sub{font-size:1.125rem}
 .quiz-layout:is([data-step="00"],[data-step="15"]) .desktop-panel{position:static;align-self:center}
 .quiz-layout:is([data-step="00"],[data-step="15"]) .desktop-arch{height:auto;aspect-ratio:1.25}
 .quiz-layout:is([data-step="00"],[data-step="15"]) .desktop-genie{height:100%}
}
@media(min-width:1440px){:root{--quiz-frame:1200px;--quiz-gutter:40px}}

@media(min-width:1024px){
 .quiz-footer{margin-top:16px}
 .desktop-night>div{width:min(calc(100% - 2 * var(--quiz-gutter)),var(--quiz-frame))}
 .desktop-night[data-step="00"]{margin-bottom:0}
}
