/* Chance Machine — large living stages and light, responsive controls. */
:root{--stage:#102d3f;--cream:#fff3d6;--muted:#bbcfcc;--bulb:#f7cf7b;--signal:#f59e8c;--good:#98e5cd;--sign:Arial,Helvetica,sans-serif;--body:'Trebuchet MS','Segoe UI',sans-serif;--out:cubic-bezier(.16,1,.3,1)}
body{padding:24px 34px 30px;min-height:100svh;background:#102d3f}
#pavilionWorld{z-index:0}#pavilionWorld>canvas{display:block;width:100%;height:100%}#pavilionWorld>svg{display:none}
header{max-width:1240px;margin-bottom:12px}.wordmark{font:800 23px Arial,sans-serif;letter-spacing:-1.2px;color:#f7e7bf}.ibtn{background:#133442bb;border:1px solid #a1c5b533;box-shadow:0 7px 22px #051a2330;border-radius:50%;transition:transform .2s var(--out),background .2s,box-shadow .2s}.ibtn:hover{background:#345b60;box-shadow:0 4px 22px #8ddfc322;transform:translateY(-2px)}button:focus-visible,input:focus-visible{outline-color:#b7edd6;outline-offset:4px}button:active{transform:translateY(2px) scale(.97)}
main{z-index:2}.card{background:#14323fcc;border-color:#7d9f8240;box-shadow:0 25px 90px #03182244;backdrop-filter:blur(12px)}.card::before{display:none}
/* On desktop the copy opens a clear left column; the animated machine owns
   the entire right side. On phones it moves between title and action. */
#home{display:grid;grid-template-columns:1fr 1.05fr;grid-template-rows:auto;max-width:1180px;min-height:calc(100svh - 108px);padding:44px 0 10px;gap:13px 55px;align-content:center;align-items:center;justify-items:start}
#home>*{grid-column:1;max-width:100%}.sign{text-align:left;align-self:end}.eyebrow{font-size:10px;letter-spacing:.23em;color:#a2d9c8;margin-bottom:18px}.bigword{font:900 clamp(72px,8.4vw,116px)/.92 Arial,Helvetica,sans-serif;letter-spacing:-.075em;color:#fff3d6;text-shadow:0 5px 25px #001c2544;white-space:nowrap}.bigword em{color:#9ee5cc;font-style:normal}.signsub{font-size:21px;font-weight:400;line-height:1.45;max-width:28ch;margin:23px 0 16px;color:#d3e1d6}.signsub strong{color:#fff2d7;font-weight:700}
#home .arrival-host{grid-column:2;grid-row:1/11;align-self:stretch;justify-self:stretch;width:100%;height:100%;min-height:440px;max-width:none;max-height:none;margin:0;border:0;filter:none;position:relative;z-index:1;border-radius:50%;background:none;cursor:pointer}
#home .arrival-host>svg{opacity:0;pointer-events:none}.arrival-host::after{content:'GIVE CHANCE A LITTLE NUDGE';position:absolute;left:0;right:0;bottom:32px;text-align:center;font:9px var(--body);letter-spacing:.19em;color:#bbcfb57a;transition:color .2s}.arrival-host:hover::after{color:#d7ebc9}.arrival-host:focus-visible{outline-offset:-45px}
.board #boardA{font:700 10px var(--body);letter-spacing:.16em;color:#f0c878}.arrival-meta{justify-content:start;color:#a8bfbc;font-size:11px}.cta{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:360px;border:1px solid #ffe5a7;background:#f4cf86;color:#173543;box-shadow:0 5px 0 #a6844d,0 15px 45px #dfae4820;border-radius:15px;font:700 17px var(--body);padding:18px 22px;overflow:hidden;transition:transform .22s var(--out),box-shadow .22s,background .22s}.cta::after{content:'↗';font-size:25px;margin-left:20px;transition:transform .3s var(--out)}.cta:hover{background:#ffe1a0;transform:translateY(-3px);box-shadow:0 8px 0 #a6844d,0 20px 50px #dfae4840}.cta:hover::after{transform:translate(4px,-3px)}.cta:active{transform:translateY(3px);box-shadow:0 2px 0 #a6844d}
.homelinks{justify-content:start;gap:8px}.homelinks .pill{border-color:#9bc7b137;background:#173d4888;font-size:12px;padding:9px 17px}.pill:hover{border-color:#b8dfb8aa;background:#365b60;transform:translateY(-2px)}.home-help{text-align:left;max-width:420px;font-size:12px}.home-help summary{min-height:26px}.home-minor{justify-content:start;gap:17px}.home-minor .text-btn{font-size:12px;padding:3px 0}.streak{font-size:11px;color:#b9cec1}.reset{font-size:11px;text-align:left}.home-help[open]{padding:12px 15px;background:#113140e6;border:1px solid #81b49e44;border-radius:12px}
body[data-view="home"] .sign{animation:welcome-copy .7s var(--out) both}body[data-view="home"] .cta{animation:welcome-action .7s .12s var(--out) both}body[data-view="home"] .homelinks{animation:welcome-action .7s .19s var(--out) both}@keyframes welcome-copy{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}@keyframes welcome-action{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}
/* The movie is the main stage. The control station floats beside it. */
#game{max-width:1200px;gap:6px;padding-top:0}#game>.journey,#game>[data-journey]{width:100%}.journey{padding:16px 5px 0}.journey-caption{font-size:9px;letter-spacing:.035em}.journey-caption span:last-child{font-size:8px}.journey-track{height:22px;margin-inline:20px}.journey-marker{width:43px;height:43px;top:-31px}.journey-marker .host-body{animation-duration:3.9s}
#card{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.8fr);grid-template-rows:auto auto auto auto auto auto;gap:10px 34px;background:transparent;border:0;box-shadow:none;backdrop-filter:none;overflow:visible;padding:12px 0 20px;border-radius:0}
#card>.toprow{grid-column:1/-1;grid-row:1;min-height:35px;padding:0 0 10px;border-bottom:1px solid #a1c7ae25;font-size:11px;letter-spacing:.025em}#hudScore{font-size:20px;color:#f6d58f}.pips i{width:10px;height:10px;border-radius:50%;transition:background .4s,box-shadow .4s,transform .4s}.pips i.done{background:#9ddfc3;box-shadow:0 0 12px #b4e7ba30;transform:scale(1.08)}.pips i.now{background:#f8d184;box-shadow:0 0 0 4px #dac18316}.pips i.zero{background:transparent;transform:none}
.q{grid-column:1;grid-row:2;min-height:70px;display:block;padding:7px 4px 0}.q>div:last-child{width:100%}.cat{font-size:9px;letter-spacing:.2em;color:#8fceb9;margin:0 0 9px}#q{font:700 clamp(22px,2.15vw,29px)/1.18 var(--body);max-width:30ch;letter-spacing:-.55px;text-wrap:pretty;color:#fff0cf}
.event-scene,body[data-collection] .event-scene{grid-column:1;grid-row:3/7;display:flex;flex-direction:column;justify-content:center;align-self:start;width:100%;height:auto;max-height:none;min-height:0;padding:0;border:1px solid #b3cfb43b;border-radius:22px;background:#153944;box-shadow:0 22px 70px #001e2a55;overflow:hidden;position:relative}
.event-scene::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;border-radius:inherit;box-shadow:inset 0 1px 1px #f4e0b322,inset 0 -1px 1px #031a2044}.scene-art{width:100%;max-width:none;aspect-ratio:16/9;flex:none;display:block;position:relative;overflow:hidden}.event-cinema{display:block;width:100%;height:100%;border:0;object-fit:contain;transform-origin:50% 60%;transition:transform 700ms var(--out),filter .4s}.scene-art svg{width:100%;max-height:none;height:100%;padding:30px}.event-scene figcaption{font-size:10px;line-height:1.35;min-height:45px;padding:8px 14px;gap:15px;background:#112d3acc;color:#b5cec2}.event-scene .pill{min-height:32px;border-radius:20px;padding:6px 13px;font-size:10px;background:#264752;border:1px solid #8eae9840;box-shadow:none}
body[data-phase="locking"] .event-cinema{transform:scale(1.035);filter:saturate(1.15)}body[data-phase="revealing"] .event-cinema{transform:scale(1.065);filter:saturate(1.15)}body[data-phase="feedback"] .event-cinema{transform:scale(1)}
#timerBox{grid-column:2;grid-row:2;align-self:start;padding:15px 0 0;width:100%}.timebulbs{gap:4px}.timebulbs i{height:4px;border-radius:3px;transition:opacity .3s,background .3s}.timerow{font-size:10px;margin-top:7px;letter-spacing:.06em}.timerow b{color:#efd194;font-size:13px}.dialwrap{grid-column:2;grid-row:3;width:100%;height:146px;max-width:270px;margin:-10px auto -3px}.dialwrap svg{height:152px;filter:drop-shadow(0 8px 18px #00192666)}.readout{grid-column:2;grid-row:4;min-height:56px;gap:5px;margin-top:0}.flaps{--fs:28px}.cell{background:#102734;border-radius:5px;box-shadow:0 3px 0 #031b2688;border:1px solid #c4c6a211}.cell::after{opacity:.25}.chance{font-size:11px;color:#bfd1c4}#controls{grid-column:2;grid-row:5;min-width:0;padding:11px 15px 17px;background:#163442bd;border:1px solid #9cbaa52e;border-radius:16px;box-shadow:0 15px 30px #041d2730}.guess-format{margin-top:9px;gap:7px}.guess-format .pill{min-height:35px;font-size:11px}.guess-format .pill[aria-pressed=true]{background:#e6ce91;border-color:#ffe3a8;color:#1f3d43;box-shadow:0 3px 8px #0002}.controls{margin-top:12px!important;gap:10px}.typed input{height:46px;font-size:19px;background:#0c2936;border-color:#678f84;max-width:108px}.lock{height:46px;background:#a5e0ca;color:#143743;box-shadow:0 4px 0 #557e70;font-size:12px;padding:12px 17px;transition:background .2s,box-shadow .2s,transform .2s}.lock:hover{background:#c1eed5;box-shadow:0 6px 0 #557e70;transform:translateY(-2px)}.lock:disabled{transform:none;box-shadow:none}.ends{font-size:9px}.round-caption{grid-row:7;grid-column:1/-1;margin-top:4px;font-size:9px;opacity:.85}.skip-reveal{grid-column:2;grid-row:5;align-self:start;margin:14px auto;background:#cbdab818;color:#f7e5bc;font-size:12px;border-color:#b8d1aa55}
#motionCue{grid-column:2;grid-row:6;text-align:center;color:#a8d9c5;font-size:10px;letter-spacing:.12em;min-height:14px;margin:0;align-self:start}body[data-phase="answering"] #motionCue,body[data-phase="feedback"] #motionCue{visibility:hidden}
#result{grid-column:2;grid-row:2/7;padding:17px 20px;background:#173643e6;border:1px solid #9bbb9840;border-radius:20px;box-shadow:0 17px 45px #051d2945}#result>div{gap:9px!important}.verdict{min-height:36px}.tier,.tier.t0,.tier.t1{font:800 27px Arial,sans-serif;letter-spacing:-.9px}.pts{font-size:29px}.comparison{gap:12px}.comparison b{font-size:17px}.comparison small{letter-spacing:.08em;font-size:8px}.score-reaction{background:transparent;min-height:112px;margin:-2px 0;border:0;grid-template-columns:40% 1fr}.score-reaction-scene{height:112px}.score-reaction-copy{padding:6px 0 6px 8px}.score-reaction-title{font:800 17px/1.1 Arial,sans-serif;letter-spacing:-.4px}.score-reaction-eyebrow{font-size:7px}.score-reaction-message{font-size:10px;line-height:1.35}.fact{font-size:12px;padding:10px;background:#0c29377a;border:0;border-radius:10px;line-height:1.5}.evidence-label{font-size:9px;opacity:.7;margin:0}.wait{font-size:10px;margin:0}.round-proof{font-size:10px}.next{font-size:13px;padding:13px 20px;border:1px solid #ffe8b1;box-shadow:0 3px 0 #91784c;border-radius:10px}#next{width:100%}#result .row{display:block}
/* Full-effects result motion is a composed reveal, while the event movie
   continues to provide context instead of being replaced with a sticker. */
body[data-phase="feedback"] #result{animation:result-dock .65s var(--out) both}body[data-phase="feedback"] .comparison{animation:result-copy .65s .08s var(--out) both}body[data-phase="feedback"] .fact{animation:result-copy .65s .2s var(--out) both}@keyframes result-dock{from{opacity:0;transform:translateY(18px) scale(.95)}to{opacity:1;transform:none}}@keyframes result-copy{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
#end{max-width:920px;padding:14px 0 0}#end>.card{padding:30px;border-radius:25px;background:#173644ee}.endscore{font-family:Arial,sans-serif;font-weight:800;letter-spacing:-6px}.result-strip{height:105px}.result-bar b{height:calc(var(--points)*.74px + 3px);border-radius:6px 6px 2px 2px;transform-origin:bottom;animation:bar-rise .85s var(--out) both}.result-bar:nth-child(2) b{animation-delay:.07s}.result-bar:nth-child(3) b{animation-delay:.14s}.result-bar:nth-child(4) b{animation-delay:.21s}.result-bar:nth-child(5) b{animation-delay:.28s}.result-bar:nth-child(6) b{animation-delay:.35s}.result-bar:nth-child(7) b{animation-delay:.42s}@keyframes bar-rise{from{transform:scaleY(.05);opacity:0}to{transform:scaleY(1);opacity:1}}.review-head h2{font:700 24px Arial,sans-serif;letter-spacing:-.7px}.recap details[open] .review-body{animation:result-copy .4s var(--out)}.recap .review-art{width:280px;max-width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden}.recap .review-art canvas{width:100%;height:100%}.recap summary:hover{background:#41605444}
.overlay{background:#061b28c2;backdrop-filter:blur(12px)}.sheet{background:#183b49;border-color:#a4c7ab55;border-radius:24px;padding:27px;box-shadow:0 30px 100px #020f1b88;width:min(520px,100%)}.sheethead h2{font:800 28px Arial,sans-serif;letter-spacing:-.8px}.menu{gap:9px}.menu button{border-radius:12px;border:1px solid #9ab69a20;min-height:50px;transition:transform .22s var(--out),background .22s}.menu button:hover{background:#365958;transform:translateX(4px)}.collection-card,.wardrobe-item{transition:transform .3s var(--out),box-shadow .3s,border-color .3s}.collection-card:hover{transform:translateY(-3px);box-shadow:0 15px 35px #001d2940}.wardrobe-item:not(:disabled):hover{transform:translateY(-4px) rotate(-1deg);box-shadow:0 15px 25px #061d2855}.wardrobe-item svg .host-body{animation-duration:3s}.sw::after{transition:transform .32s var(--out),left .32s var(--out);box-shadow:0 2px 6px #00161b70}.toast{background:#e8dca8;color:#163943;animation:toast-in .4s var(--out) both;border-radius:15px}@keyframes toast-in{from{opacity:0;translate:0 15px;scale:.95}to{opacity:1;translate:0 0;scale:1}}
@media(min-width:1000px) and (max-height:780px){#home{padding-top:12px;gap:10px}#home .signsub{margin-top:16px;margin-bottom:10px}.bigword{font-size:98px}#home .arrival-host{min-height:400px}.event-scene{grid-row:3/7}.q{min-height:66px}.scene-art{max-height:340px}#card{column-gap:30px}#result{padding:14px 17px}.fact{font-size:11px}.score-reaction,.score-reaction-scene{min-height:102px;height:102px}}
@media(max-width:900px) and (min-width:701px){body{padding:20px}#home{gap:13px 18px}.bigword{font-size:76px}.signsub{font-size:18px}#home .arrival-host{min-height:410px}#card{grid-template-columns:minmax(0,1fr) minmax(270px,.8fr);column-gap:20px}.scene-art{aspect-ratio:16/11}.event-cinema{object-fit:cover}.q{min-height:92px}#q{font-size:22px}}
@media(max-width:700px){body{padding:12px 14px 24px}header{margin-bottom:6px}.wordmark{font-size:21px}#home{display:flex;align-items:center;justify-content:flex-start;min-height:calc(100svh - 80px);padding:16px 0 20px;gap:11px}#home>*{flex-shrink:0}.sign{text-align:center;align-self:center}.eyebrow{font-size:8px;margin-bottom:13px;letter-spacing:.2em}.bigword{font-size:clamp(66px,17vw,88px);letter-spacing:-.075em}.signsub{font-size:15px;margin:13px auto 0;max-width:28ch;line-height:1.4}#home .arrival-host{width:100%;height:220px;min-height:0;max-height:none;align-self:auto;flex:0 0 220px;margin:-6px 0 -4px;border-radius:25px}.arrival-host::after{font-size:7px;bottom:9px}.arrival-meta{font-size:10px;justify-content:center}.board #boardA{font-size:9px}.cta{max-width:340px;padding:15px 21px;font-size:16px}.cta::after{font-size:22px}.homelinks{gap:7px}.homelinks .pill{min-height:39px;padding:8px 15px;font-size:11px}.home-help{text-align:center;font-size:11px}.home-minor{gap:16px}.home-minor .text-btn{font-size:10px;min-height:32px}.streak{font-size:10px;text-align:center}.reset{font-size:10px;text-align:center}.journey{padding-top:17px}.journey-track{height:22px;margin-inline:14px}.journey-caption{font-size:8px}.journey-caption span:last-child{font-size:7px}#game{gap:3px}#card{display:flex;gap:9px;padding:5px 0 22px;flex-direction:column;min-height:0}#card>.toprow{font-size:10px;min-height:29px;padding-bottom:8px}#hudScore{font-size:15px}.q{min-height:0;padding:1px 3px}.cat{font-size:8px;margin:0 0 5px}#q{font-size:21px;max-width:none;line-height:1.2;letter-spacing:-.4px}.event-scene,body[data-collection] .event-scene{display:flex!important;border-radius:17px;padding:0;max-height:none;min-height:0;width:100%;background:#153944}.scene-art{width:100%;aspect-ratio:16/9;max-height:none}.event-scene figcaption{font-size:8px;min-height:34px;padding:5px 10px;gap:10px}.event-scene .pill{min-height:28px;font-size:9px;padding:5px 10px}.scene-art svg{max-height:none;height:100%;padding:15px}#timerBox{padding:0;width:100%}.timerow{font-size:9px;margin-top:4px}.timerow b{font-size:10px}.timebulbs i{height:3px}.dialwrap{height:77px;margin:-5px auto -6px;max-width:160px}.dialwrap svg{height:87px}.readout{min-height:38px;gap:2px;margin:0}.flaps{--fs:21px}.chance{font-size:10px;min-height:12px}#controls{width:100%;padding:4px 11px 12px;border-radius:13px}.ends{font-size:8px}.guess-format{margin-top:6px}.guess-format .pill{min-height:32px;font-size:10px;padding:5px 11px}.controls{margin-top:8px!important}.typed input{height:44px;font-size:17px;max-width:104px}.lock{height:44px;font-size:12px;padding:11px 19px}.round-caption{font-size:8px;margin:0}.skip-reveal{margin:10px auto}#motionCue{font-size:9px;min-height:0}.pips{gap:5px}.pips i{width:8px;height:8px}
  body[data-phase="feedback"] #card{padding-bottom:66px}body[data-phase="feedback"] .scene-art{max-height:150px;aspect-ratio:16/7}body[data-phase="feedback"] .event-cinema{object-fit:cover}body[data-phase="feedback"] .event-scene figcaption{display:none}#result{padding:15px;width:100%;border-radius:16px}#result>div{gap:8px!important}.score-reaction,.score-reaction-scene{min-height:108px;height:108px}.score-reaction-copy{padding-right:8px}.score-reaction-title{font-size:17px}.fact{font-size:11px}.tier,.tier.t0,.tier.t1{font-size:26px}.pts{font-size:28px}#next{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));right:14px;z-index:10;width:auto;min-width:170px;box-shadow:0 4px 0 #91784c,0 0 0 7px #102d3fee}.comparison b{font-size:17px}.wait,.round-proof{font-size:10px}
  #end{padding-top:10px}#end>.card{padding:19px;border-radius:19px}.endscore{font-size:70px;letter-spacing:-4px}.finale-host{width:90px;height:90px}.review-head h2{font-size:22px}.result-actions{gap:7px}.result-actions .pill{font-size:11px;padding:8px 10px}.sheet{padding:21px;border-radius:20px}.sheethead h2{font-size:26px}.toast{bottom:18px;font-size:11px;max-width:90%}body[data-phase="feedback"] .toast{bottom:80px}
}
@media(max-width:350px){body{padding:10px}#home{gap:9px;padding-top:9px}.bigword{font-size:65px}.signsub{font-size:14px}#home .arrival-host{height:185px;flex-basis:185px}.eyebrow{font-size:7px}.cta{font-size:15px;padding:13px 18px}.home-minor{gap:13px}.homelinks .pill{padding:7px 12px}#q{font-size:18px}.event-scene figcaption{font-size:7px}.dialwrap{max-width:137px;height:65px}.dialwrap svg{height:74px}.flaps{--fs:20px}#card{gap:7px}.typed input{max-width:94px}#controls{padding-inline:9px}.lock{padding-inline:14px}.journey-caption span:last-child{font-size:6px}}
@media(max-height:720px) and (max-width:700px){#home .arrival-host{height:170px;flex-basis:170px}#home{gap:8px;padding-top:7px}.signsub{margin-top:9px}.eyebrow{margin-bottom:9px}.bigword{font-size:66px}.home-minor .text-btn{min-height:26px}.home-help summary{min-height:23px}.scene-art{max-height:165px}.event-cinema{object-fit:contain}.dialwrap{max-width:140px;height:61px}.dialwrap svg{height:77px}}
@media(max-height:520px) and (min-width:701px){#home{min-height:620px}#game{padding-bottom:30px}}
/* Input stays stable during blur/submit until VisualViewport reports that
   the keyboard closed. No decorative element consumes this limited space. */
.keyboard-open #card{padding:10px;gap:6px;background:#153744e8;border:1px solid #a4baa040;border-radius:15px}.keyboard-open .event-scene,.keyboard-open .dialwrap,.keyboard-open #slider,.keyboard-open #controls>.ends,.keyboard-open .readout .flaps,.keyboard-open #motionCue{display:none!important}.keyboard-open .readout{min-height:0;gap:0}.keyboard-open #q{font-size:18px}.keyboard-open #controls{padding:0;border:0;background:none;box-shadow:none}.keyboard-open .guess-format{margin-top:0}.keyboard-open .q{padding:0}.keyboard-open #card>.toprow{padding-bottom:5px}.keyboard-open #game>[data-journey],.keyboard-open .round-caption{display:none}
.calm .event-cinema{transform:none!important;filter:none!important}.is-hidden #chanceWorld{visibility:hidden}
.keyboard-open #eventScene{display:none!important}
