*{box-sizing:border-box}body{margin:0;color:var(--ink,#304d40);font-family:var(--font,system-ui);background:#f6edcf}main{height:100dvh;max-width:1100px;margin:auto;display:grid;grid-template-rows:60px minmax(150px,1fr) auto}header{display:flex;gap:5px;align-items:center;justify-content:space-between;padding:5px 8px}h1{font-size:clamp(17px,2.8vw,28px);margin:0;text-align:center}button,header a{font:700 16px var(--font,system-ui);border:2px solid #64816b;background:#fff7dd;color:var(--ink,#304d40);border-radius:17px;min-height:48px;min-width:48px;padding:5px 9px;cursor:pointer;touch-action:manipulation;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:3px}button:focus-visible,a:focus-visible{outline:4px solid #2863a9;outline-offset:2px}button:disabled{opacity:.4;cursor:default}#scene{position:relative;overflow:hidden;background:#c5e5dc}#world{width:100%;height:100%;display:block}#message{position:absolute;top:5px;left:5%;width:90%;margin:0;padding:8px 10px;border-radius:25px;background:#fff7dfef;text-align:center;font-weight:800;font-size:clamp(15px,2.5vw,22px)}#crew{position:absolute;bottom:0;left:1%;height:39%;width:36%;display:flex;align-items:end;gap:0;pointer-events:none}#crew img{width:33%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 1px #466b5a33);transform-origin:bottom}#crew .acting{animation:crew-act .7s ease-in-out infinite}#workbench{padding:6px 8px 2px;background:#f6edcf}#slots,#choices,#controls{display:flex;justify-content:center;gap:6px;margin:0 0 5px}#slots button,#choices button{flex:1;min-width:0}#slots button{font-size:13px;border-style:solid;background:#e9e1c5;min-height:48px;padding:2px 4px}#slots img{width:31px;height:34px;object-fit:contain}.step[aria-pressed=true]{outline:3px solid #bb7d35;outline-offset:-3px}.step[aria-current=step]{border:3px dashed #297f98;background:#ddedf0}.step[data-blocked]{background:#f0c8b0;box-shadow:inset 0 0 0 3px #9d583a}#choices button{display:flex;flex-direction:column;gap:0;min-height:72px;padding:2px}#choices img{height:43px;width:55px;object-fit:contain}#choices button[aria-pressed=true]{background:#e1edc5;border-color:#507b51}#controls{gap:5px;margin-bottom:0}#controls button{flex:1;min-width:0;font-size:13px;padding:3px;min-height:48px}#controls img{height:33px;width:29px;object-fit:contain}#go{background:#d2e6b2}#stop{background:#f1d0b3}#save{font-size:11px;margin:2px 0 0;min-height:14px;text-align:center;color:#607568}#demo-tools{position:absolute;top:5px;left:2%;width:96%;display:flex;align-items:center;justify-content:center;gap:5px;background:#fff3cf;border:2px solid #b98c42;border-radius:18px;padding:3px;z-index:3}#demo-tools[hidden]{display:none}#demo-cue{font-size:13px;flex:1;text-align:center;font-weight:700}#demo-tools button{min-height:48px;font-size:13px;padding:3px 7px}.demonstrating #message{top:67px}.demonstrating #slots,.demonstrating #choices{pointer-events:none}[data-demo-active]{box-shadow:0 0 0 4px #d99e35!important}.pour,#eating{visibility:hidden}body[data-action=TipCereal] #pour-cereal,body[data-action=PourMilk] #pour-milk{visibility:visible;animation:pour .7s linear forwards}body.paused .pour,body.paused #crew .acting{animation-play-state:paused}body.enjoying #eating{visibility:visible;animation:eat .7s ease-in-out 3}body.enjoying .waiting-arms,body.enjoying #meal,body.enjoying #meal *{visibility:hidden!important}body.enjoying #mouth{d:path('M449 191q18 26 36 0');stroke-width:7}@keyframes crew-act{50%{transform:translateY(-8px) rotate(6deg)}}@keyframes pour{0%{opacity:1;transform:translateY(-10px)}85%{opacity:1}100%{opacity:0;transform:translateY(0)}}@keyframes eat{50%{transform:translateY(-9px)}}@media(min-width:500px) and (orientation:landscape){main{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);grid-template-rows:60px minmax(0,1fr)}header{grid-column:1/-1}#scene{grid-column:1;grid-row:2}#workbench{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:center;gap:10px}#choices img{height:62px}#choices button{min-height:94px}#slots button{min-height:56px}#controls{flex-wrap:wrap}#controls button{flex:1 1 29%;font-size:15px}#message{font-size:17px}#crew{height:38%}}@media(max-height:450px){#workbench{gap:5px}#choices button{min-height:68px}#choices img{height:39px}#slots button{min-height:48px}#controls button{min-height:48px}#save{display:none}}@media(max-width:360px){header{padding:4px}header button,header a{font-size:14px;padding:4px 6px}#workbench{padding:4px}#slots,#choices{gap:4px;margin-bottom:4px}#controls{gap:3px}#controls img{width:23px;height:30px}#controls button{font-size:12px}#scene #crew{width:38%;height:37%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}body[data-action] .pour{visibility:hidden}}

#crew{width:45%;max-width:280px}#helperPhone{top:112px!important;left:10px!important;right:auto!important;bottom:auto!important;transform:none!important}
#crew{bottom:22%;height:32%}#crew img{object-position:center bottom}
.demonstrating #message{visibility:hidden}
[hidden]{display:none!important}

body.settled #eating{animation:none}
#choices img{height:58px;width:72px}#choices button{min-height:88px}@media(orientation:landscape) and (max-height:450px){#choices img{height:39px;width:55px}#choices button{min-height:68px}}

#crew .away{visibility:hidden}#working-friend{visibility:hidden;transform-box:fill-box;transform-origin:center;animation:crew-act .7s ease-in-out 1}body.paused #working-friend{animation-play-state:paused}

#choices button.needed-friend{outline:4px dashed #925125;outline-offset:-6px;box-shadow:0 0 0 3px #fff3cf}#choices button.needed-friend img{filter:drop-shadow(0 2px 0 #fff)}
