:root{font-family:Heebo,Arial,sans-serif;color:#342415;background:#13281f;font-synthesis:none;--cream:#fff0c9;--gold:#f3ba50;--green:#176b47}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{overflow:hidden}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #fff7a7;outline-offset:5px}button{color:inherit}button:active:not(:disabled){filter:brightness(1.12)}#app,#screen{width:100%;height:100%;height:100dvh}#app{background:#112b21}#screen{display:grid;place-items:center}.scene{position:relative;isolation:isolate;width:100%;height:100%;max-width:1800px;overflow:hidden;background:#493721}.backdrop{position:absolute;inset:0;background:url('/assets/rotisserie-shop.png') center 52%/cover no-repeat;z-index:-3}.icon{width:24px;height:24px;flex:none;vertical-align:middle}.round-button{width:48px;height:48px;border-radius:50%;background:linear-gradient(#325b43,#173c2c);border:2px solid #ead79c;color:#fff2c4;box-shadow:0 4px 0 #11291f,0 5px 12px #0005,inset 0 2px 1px #ffffff38;display:inline-grid;place-items:center;transition:transform .15s}.round-button:hover{transform:translateY(-2px)}.corner-controls{position:absolute;top:max(20px,env(safe-area-inset-top));left:22px;display:flex;gap:9px;direction:ltr;z-index:12}.game-button{display:inline-flex;align-items:center;justify-content:center;gap:20px;border:3px solid #fceac0;border-radius:999px;padding:13px 36px;color:#fff9dd;background:linear-gradient(#318b59,#125336);box-shadow:inset 0 3px 0 #8fb584,0 0 0 3px #143224,0 8px 0 #0f3524,0 13px 20px #0006;text-shadow:0 3px 0 #10472e;font-size:28px;font-weight:900;transition:transform .15s}.game-button:hover{transform:translateY(-3px);filter:brightness(1.1)}.game-button:active{transform:translateY(4px);box-shadow:inset 0 3px 0 #8fb584,0 0 0 3px #143224,0 3px 0 #0f3524}.game-button .icon{width:25px;height:25px;fill:currentColor}.text-button{border:0;background:none;color:inherit;text-decoration:underline;text-underline-offset:4px;padding:8px}.paper-button{border:1px solid #b89455;background:#f1dba7;border-radius:8px;padding:10px 18px;font-weight:800;box-shadow:0 3px 0 #b18d4b}.paper-button:disabled{opacity:.65}.home-light{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 50% 40%,#25150d00 10%,#17251977 90%),linear-gradient(0deg,#102219bd,transparent 55%)}.best-medal{position:absolute;right:24px;top:20px;color:#ffe7a3;display:flex;gap:10px;align-items:center;background:#17382eea;border:2px solid #c99a46;border-radius:15px;padding:8px 17px;box-shadow:0 4px 0 #0e281d}.best-medal .icon{width:32px;height:32px}.best-medal span{display:grid;font-size:11px}.best-medal b{font-size:23px;line-height:1.2}.home-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(680px,86%);text-align:center;display:flex;align-items:center;flex-direction:column}.wood-sign{position:relative;color:#ffefc1;border:4px solid #d99843;border-radius:20px;padding:38px 35px 22px;background:repeating-linear-gradient(0deg,#3b1d0e22 0px,#3b1d0e22 2px,transparent 3px,transparent 21px),linear-gradient(120deg,#6e381c,#3d2113 55%,#673519);box-shadow:inset 0 0 0 3px #49220c,inset 0 0 0 6px #ad7233,0 0 0 4px #30190e,0 15px 22px #0007;text-shadow:0 2px 1px #2a150c;width:100%;transform:rotate(-1deg)}.wood-sign:before,.wood-sign:after{content:'';position:absolute;width:10px;height:10px;top:50%;border:2px solid #d79d54;background:#5a3015;box-shadow:inset 0 1px 1px #130b04;border-radius:50%}.wood-sign:before{left:13px}.wood-sign:after{right:13px}.wood-sign small{font-weight:800;letter-spacing:1px;color:#edcc98}.wood-sign h1{margin:0;font-size:clamp(44px,6.8vw,98px);line-height:1.25;font-weight:900;color:#fff0cc;text-shadow:0 3px #d88731,0 6px #a6401d,0 9px #24110d;white-space:nowrap}.sign-subtitle{font-size:20px;font-weight:700}.sign-rule{height:1px;background:linear-gradient(90deg,transparent,#cd965a,transparent);margin:12px 10px}.flame-seal{position:absolute;left:50%;top:0;transform:translate(-50%,-77%) rotate(-8deg);width:86px;height:94px;background:linear-gradient(#ffc43f,#d45d23);border:4px solid #ffe8a6;box-shadow:0 4px 0 #752c16;border-radius:50% 50% 45% 45%;display:grid;place-items:center;color:#422914}.flame-seal .icon{width:56px;height:56px;fill:#422914}.sign-chain{position:absolute;top:-130px;width:6px;height:130px;background:repeating-linear-gradient(#352b21 0 8px,#b79963 8px 13px);box-shadow:2px 0 #251c10}.sign-chain.left{left:12%}.sign-chain.right{right:12%}.start-button{margin-top:30px;min-width:310px;font-size:35px}.home-options{display:flex;gap:20px;margin-top:24px}.name-paper{position:absolute;bottom:30px;right:30px;width:185px;background:#f5e4bb;padding:14px 16px;transform:rotate(3deg);box-shadow:0 5px 9px #0005;font-size:13px;font-weight:800}.name-paper:before{content:'';position:absolute;top:-7px;left:34%;width:36%;height:20px;background:#cfb98cab;transform:rotate(-8deg)}.name-paper input{display:block;width:100%;background:none;border:0;border-bottom:1px solid #aa8c59;padding:5px 0;color:#533720;outline:none}.home-caption{position:absolute;bottom:30px;left:30px;color:#ffecc2;text-shadow:0 2px 4px #000;font-size:19px;font-weight:800}.home-caption small{display:block;font-size:11px;font-weight:400;opacity:.8;margin-top:4px}
/* Sprite atlases are generated from the storyboard, with native transparent edges. */
.food{display:block;background-image:url('/assets/food-atlas.png');background-size:400% 200%;background-repeat:no-repeat;aspect-ratio:1;pointer-events:none}.food-chicken{background-position:0 0}.food-potato{background-position:33.3333% 0}.food-rice{background-position:66.6667% 0}.food-slaw{background-position:100% 0}.food-beans{background-position:0 100%}.food-openbox{background-position:33.3333% 100%}.food-closedbox{background-position:66.6667% 100%}.food-bell{background-position:100% 100%}.character{display:block;background-image:url('/assets/people-atlas.png');background-size:200% 200%;background-repeat:no-repeat;aspect-ratio:1;pointer-events:none}.character-0{background-position:0 0}.character-1{background-position:100% 0}.character-2{background-position:0 100%}.character-3{background-position:100% 100%}
/* Playfield: objects live in the shop, not in UI cards. */
.play-scene .backdrop{background-position:center 25%;filter:brightness(.78);transform:scale(1.03)}.game-shade{position:absolute;inset:0;background:linear-gradient(#101d2a91,transparent 30%,#24140922 60%);z-index:-2}.hud{position:absolute;z-index:15;top:max(14px,env(safe-area-inset-top));left:20px;right:20px;display:flex;align-items:center;gap:13px;direction:ltr}.hud-score,.hud-time{display:flex;align-items:center;gap:12px;border:2px solid #cdb276;background:linear-gradient(#294f3e,#142e24);box-shadow:inset 0 2px 1px #ffffff26,0 4px 0 #10251c,0 5px 10px #0004;border-radius:15px;color:#fff3d1;padding:6px 16px;height:55px}.hud-score .icon{fill:#ffca4d;color:#ffcc58;width:30px;height:30px}.hud-score b{font-size:28px;min-width:48px}.hud-time{margin-left:auto;min-width:135px}.hud-time b{font-size:31px;font-variant-numeric:tabular-nums;line-height:1}.hud-time.urgent{color:#ffdc8f;background:linear-gradient(#98452d,#683222);animation:warning-pulse 1s infinite}.mini-sign{color:#ffe8ab;font-size:24px;font-weight:900;text-shadow:0 3px 0 #432411;direction:rtl;transform:rotate(-2deg)}.hud .round-button{width:45px;height:45px}.shift-meter{position:absolute;top:80px;left:23px;right:23px;height:7px;background:#17291b8c;z-index:14;border-radius:10px;overflow:hidden;box-shadow:0 1px #b79556}.shift-meter i{display:block;background:linear-gradient(90deg,#ef842c,#ffd374);height:100%;transition:width .15s linear}.order-slip{position:absolute;z-index:6;top:17%;left:28%;width:19%;max-width:255px;min-width:160px;background:linear-gradient(100deg,#f6e6bf,#fff5db 50%,#f1dfb9);box-shadow:1px 7px 10px #0007;border-radius:3px 3px 0 0;transform:rotate(-3deg);padding:15px 15px 9px}.order-slip:after{content:'';position:absolute;left:0;right:0;bottom:-9px;height:10px;background:linear-gradient(135deg,#f4e3bd 25%,transparent 25%) 0 0/14px 14px,linear-gradient(225deg,#f4e3bd 25%,transparent 25%) 0 0/14px 14px}.clip{position:absolute;top:-14px;left:43%;width:30px;height:24px;border:4px solid #41494b;border-radius:4px;background:linear-gradient(#bdc1b7,#394543);box-shadow:0 2px 3px #0005}.receipt-heading{border-bottom:2px dashed #bca782;padding-bottom:6px;text-align:center;display:grid}.receipt-heading>span{font-size:11px;color:#7b6545}.receipt-heading>b{font-size:31px;direction:ltr;line-height:1.2}.receipt-row{display:flex;align-items:center;gap:5px;min-height:47px;font-size:14px;border-bottom:1px solid #d9c89d}.receipt-row .food{width:44px;flex:none}.receipt-row b{flex:1}.receipt-row .icon{width:19px;height:19px;color:#2e7445}.receipt-row.done b{color:#497043}.receipt-footer{display:flex;align-items:center;gap:5px;font-size:11px;padding-top:8px;font-weight:800}.receipt-footer .icon{width:16px;height:16px}.receipt-footer span:last-child{margin-right:auto;color:#8d744f;font-size:10px}.idle-slip{text-align:center;padding:35px 14px}.idle-slip small{display:block;margin-top:8px}.customer-line{position:absolute;top:20%;left:49%;width:49%;height:44%;display:flex;align-items:flex-end;direction:ltr;z-index:4;overflow:hidden;gap:0}.person{position:relative;flex:1 0 31%;max-width:260px;height:100%;border:0;background:transparent;padding:0;align-content:end;transition:filter .2s;isolation:isolate}.person .character{width:100%;filter:drop-shadow(0 4px 3px #0006);transform-origin:bottom;animation:breathe 3.8s ease-in-out infinite}.person:nth-child(2) .character{animation-delay:-1.7s}.person:nth-child(3) .character{animation-delay:-2.9s}.person:hover .character{filter:drop-shadow(0 0 8px #ffdc79);transform:scale(1.035)}.person.selected .character{filter:drop-shadow(0 0 5px #ffcf67)}.person-bubble{position:absolute;top:0;left:8%;right:8%;background:#fff3cf;border:2px solid #74512e;box-shadow:0 4px 0 #493320,0 5px 10px #0005;border-radius:13px;padding:6px 7px;display:grid;direction:rtl;z-index:2;font-size:11px;line-height:1.3;font-weight:700}.person-bubble:after{content:'';position:absolute;bottom:-10px;left:43%;border-left:9px solid transparent;border-right:9px solid transparent;border-top:10px solid #74512e}.person-bubble b{font-size:23px;direction:ltr;color:#2b3425}.person.selected .person-bubble{border-color:#f6c967;background:#fff4bd}.person.ready .person-bubble{background:#d6ecc0;color:#285737;border-color:#4e8b46}.person-bubble .icon{width:14px;height:14px;position:absolute;top:6px;right:8px}.patience{height:6px;background:#705c48;display:block;border:1px solid #6c5535;border-radius:10px;overflow:hidden;margin-top:4px;direction:ltr}.patience i{display:block;height:100%;background:linear-gradient(#b3dc6f,#70a84b);transition:width .15s linear}.patience i.urgent{background:#e56942}.person-name{position:absolute;bottom:4%;left:15%;right:15%;background:#1a3d2dde;color:#fff2c9;border:1px solid #bfa273;border-radius:5px;padding:3px;font-weight:800;font-size:12px;z-index:2}.quiet-sign{color:#f8eac4;font-size:24px;align-self:center;transform:rotate(5deg);background:#274333;padding:15px 30px;border:3px solid #a1814b}.rotisserie{position:absolute;top:27%;left:3%;width:23%;height:28%;border:0;background:none;z-index:5;padding:0;transition:transform .2s}.rotisserie>.food{width:90%;position:absolute;left:5%;top:-15%;filter:drop-shadow(0 7px 5px #190b0b99)}.rotisserie:hover:not(:disabled){transform:scale(1.06)}.rotisserie:disabled{filter:saturate(.7)}.rotisserie-glow{position:absolute;inset:0;background:radial-gradient(ellipse,#ffc048b3,transparent 70%);animation:oven-glow 3s ease-in-out infinite}.station-sign{position:absolute;left:3%;right:3%;bottom:0;background:#184b31;border:2px solid #dbb574;box-shadow:0 3px 0 #1d2816;padding:7px 5px;border-radius:8px;transform:rotate(2deg);color:#fff1c5;font-weight:800;font-size:15px}.station-sign i{display:inline-block;width:8px;height:8px;background:#dfed86;border-radius:50%;margin-right:7px;box-shadow:0 0 7px #d3ff63}.counter{position:absolute;left:0;right:0;top:61%;bottom:0;z-index:5;background:repeating-linear-gradient(1deg,#5a2b1030 0 1px,transparent 2px 7px),repeating-linear-gradient(93deg,#6d381e00 0 230px,#4929115c 231px 233px),linear-gradient(#bc8e57,#a26d38 30%,#956335 80%,#6a3d22);box-shadow:0 -6px 0 #edc38c,0 -12px 0 #704529,0 -17px 12px #0005}.counter-edge{position:absolute;bottom:0;left:0;right:0;height:6%;background:linear-gradient(#d89c58,#6f3b1a);box-shadow:0 -4px 0 #572e1b}.instruction-ribbon{position:absolute;z-index:8;top:55%;left:50%;transform:translateX(-50%) rotate(-1deg);white-space:nowrap;background:#ffefc3;color:#4c331f;padding:7px 22px;font-size:17px;font-weight:900;clip-path:polygon(3% 0,98% 3%,100% 94%,0 100%);filter:drop-shadow(0 3px 2px #0009)}.tray{position:absolute;top:65%;width:15%;height:23%;z-index:7;background:none;border:0;padding:0;filter:drop-shadow(0 6px 3px #48260e77);transition:transform .17s}.tray-0{left:2%}.tray-1{left:18%}.tray-2{right:18%}.tray-3{right:2%}.tray-rim{position:absolute;inset:0 0 15%;padding:8px;border-radius:15px;background:linear-gradient(125deg,#e0d9b9,#8e9990 12%,#e8e4c9 25%,#687a73 50%,#c9c9a7 80%,#69776f);box-shadow:0 5px 0 #4e5a52,inset 0 1px 3px white;transform:perspective(500px) rotateX(17deg)}.tray-well{display:block;position:relative;width:100%;height:100%;overflow:hidden;border-radius:9px;background:radial-gradient(ellipse,#9b9c7f,#363f33);box-shadow:inset 0 3px 6px #182920,inset 0 0 0 2px #555d4f}.tray-well .food{position:absolute;width:104%;left:-2%;top:50%;transform:translateY(-50%);filter:drop-shadow(0 2px 2px #19180a99)}.tray:hover:not(:disabled){transform:translateY(-7px)}.tray:active:not(:disabled){transform:translateY(2px)}.tray.scooped .tray-rim{box-shadow:0 4px 0 #4e5a52,0 0 0 3px #d5ef83}.tray-label{position:absolute;left:4%;right:4%;bottom:0;background:linear-gradient(#fff3cf,#e2c897);border:1px solid #a47c43;border-radius:3px;box-shadow:0 3px 0 #6c4b26;padding:3px 7px;font-size:16px;line-height:1.3;font-weight:900;transform:rotate(-2deg)}.tray:nth-of-type(even) .tray-label{transform:rotate(2deg)}.portion-dots{display:flex;justify-content:center;gap:4px;margin:4px 0 1px;direction:ltr}.portion-dots i{height:5px;width:14%;max-width:17px;background:#b5a284;border-radius:2px;box-shadow:inset 0 1px 1px #634c3938}.portion-dots i.full{background:#537f40;box-shadow:0 1px #b4ca80}.scoop-check{position:absolute;top:-8px;right:-2px;width:28px;height:28px;border-radius:50%;background:#3d7b44;color:#fff3c4;border:2px solid #e6d8a1;display:grid;place-items:center}.scoop-check .icon{width:18px;height:18px}.empty-sticker{position:absolute;top:26%;left:23%;right:23%;color:#a43f26;background:#f5d18c;font-size:23px;font-weight:900;transform:rotate(-10deg);box-shadow:0 2px 5px #0007;border:1px solid #ab732f}.empty-scrape{display:block;width:80%;height:50%;margin:20% auto;background:repeating-linear-gradient(10deg,transparent 0 12px,#d3d7b233 13px 14px);border-radius:50%}.meal-box{position:absolute;z-index:8;left:35%;top:56%;width:30%;aspect-ratio:1;border:0;background:none;padding:0;filter:drop-shadow(0 9px 7px #43230c88);transition:transform .2s}.box-sprite{position:absolute;inset:0;width:100%}.box-food{position:absolute;inset:0;pointer-events:none}.box-food .food{position:absolute;filter:drop-shadow(0 2px 2px #43270b7a);animation:ingredient-drop .25s ease-out}.box-chicken{width:48%;top:45%;left:11%;transform:rotate(-8deg)}.box-side{width:32%;left:55%;top:46%}.box-side-1{top:64%;left:54%;transform:rotate(8deg)}.box-tag{position:absolute;top:86%;left:36%;right:30%;transform:rotate(-2deg);font-size:20px;font-weight:900;color:#442c13;background:#f7e2b1;box-shadow:0 1px 2px #5a331aaa;line-height:1.35}.meal-box.closed .box-tag{top:44%;left:31%;right:31%;background:transparent;font-size:26px;box-shadow:none}.meal-box.closed{animation:box-shut .25s ease-out}.box-callout{position:absolute;top:25%;left:12%;right:12%;font-size:18px;font-weight:900;background:#255b37;color:#fff1be;border:2px solid #e3c182;border-radius:8px;padding:5px;box-shadow:0 3px 0 #172e1d;animation:prompt-bob 1.8s ease-in-out infinite}.meal-box.closed .box-callout{top:12%}.meal-box.can-close:hover{transform:scale(1.025)}.kitchen-bell{position:absolute;z-index:10;right:2.5%;bottom:1.5%;height:12%;width:22%;display:flex;align-items:center;border:0;background:none;padding:0;color:#fff3c5;text-shadow:0 2px 2px #3c230d}.kitchen-bell>.food{width:36%;flex:none;filter:drop-shadow(0 4px 2px #1e190ba8);transition:transform .15s}.kitchen-bell:hover:not(:disabled)>.food{transform:rotate(5deg) scale(1.08)}.kitchen-bell>span:last-child{font-size:15px;font-weight:900;text-align:right}.kitchen-bell small{display:block;font-size:10px;font-weight:500;opacity:.8}.kitchen-bell.refilling .food{animation:bell-ring .35s ease-in-out infinite alternate}.delivered-stamp{position:absolute;z-index:8;bottom:4%;left:4%;color:#ffefbf;display:flex;align-items:center;gap:7px;text-shadow:0 2px 1px #573218;font-size:14px}.delivered-stamp b{font-size:25px}.delivered-stamp .icon{color:#c8e08a}.keyboard-hint{position:absolute;bottom:7px;left:35%;right:35%;color:#f4d9aa88;font-size:9px;text-align:center;z-index:9}.interruption{position:absolute;z-index:20;inset:0;background:#27170c38;pointer-events:none}.event-actor{position:absolute;left:12%;bottom:22%;width:33%;height:60%;background:none;border:0;padding:0;pointer-events:auto;animation:event-enter .3s ease-out}.event-actor .character{position:absolute;bottom:0;left:0;width:100%;filter:drop-shadow(0 5px 6px #0008)}.event-speech{position:absolute;top:0;left:5%;right:-10%;z-index:2;display:grid;gap:5px;border:3px solid #ad6230;border-radius:20px;background:#fff0c9;padding:14px 18px;box-shadow:0 6px 0 #6b3c26,0 7px 20px #0007;color:#543820}.event-speech b{font-size:23px}.event-speech small{font-size:13px}.event-speech strong{background:#a84228;color:#fff2bc;border-radius:20px;padding:5px;font-size:15px}.event-speech strong .icon{width:17px;height:17px}.event-time{font-size:12px;color:#96562a}
/* Pause, scorebook, results. */
.menu-shade{position:absolute;inset:0;background:#142b21a8;backdrop-filter:blur(3px);z-index:-2}.results-display,.board-display{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(530px,90%);text-align:center}.compact-sign{padding:20px 25px 15px}.compact-sign h1{font-size:49px}.results-paper{background:linear-gradient(115deg,#eddbb3,#fff1d0,#e7d2a3);padding:25px 28px 18px;margin:0 15px;border-radius:0 0 12px 12px;box-shadow:0 10px 20px #0006;color:#4b361f}.result-stars{color:#f1bb4b;display:flex;justify-content:center;gap:13px;background:#25442c;padding:18px 10px 12px;margin:0 15px}.result-stars .icon{width:35px;height:35px;fill:#f1bb4b;filter:drop-shadow(0 3px #835424)}.result-stars .icon:nth-child(2){transform:scale(1.25)}.results-paper p{font-size:14px}.result-numbers{display:flex;justify-content:space-around;margin:16px 0}.result-numbers span{display:grid;font-size:11px;padding:0 10px;border-left:1px solid #cbb48b}.result-numbers span:last-child{border:0}.result-numbers b{font-size:35px;color:#2e5736;line-height:1.2}.score-total{display:grid;font-size:13px;background:#1d422f;color:#f5e4b9;border:2px solid #a5834b;border-radius:8px;margin:10px 0 24px;padding:9px}.score-total strong{font-size:47px;color:#ffe399;line-height:1.2}.results-paper .game-button{font-size:23px;width:100%;padding:10px 20px}.results-paper .paper-button{margin-top:20px;width:100%;font-size:13px}.privacy-note{display:block;font-size:10px;margin-top:7px}.results-paper .text-button{font-size:12px}.back-home{position:absolute;top:20px;right:20px;z-index:9}.leaderboard-heading{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:900;border-bottom:2px dashed #b89d6f;padding-bottom:12px}.leaderboard-heading .icon{color:#997121}.leaderboard-heading .text-button{margin-right:auto}.board-paper{max-height:70dvh;overflow:auto}.leader-row{display:flex;align-items:center;gap:15px;padding:10px 4px;border-bottom:1px solid #c5b18c;font-size:16px}.leader-row>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#415e36;color:#fff0ba}.leader-row strong{margin-right:auto;color:#426535}.board-paper .game-button{margin-top:23px}.empty-board{padding:25px}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#132920bd;backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}.game-modal{width:min(480px,100%);background:linear-gradient(120deg,#f6e4bd,#ffefcf);border:6px solid #774c2a;outline:3px solid #d7ac64;box-shadow:0 14px 0 #3d291a,0 20px 50px #0009;border-radius:18px;padding:25px;text-align:center;max-height:92dvh;overflow:auto}.game-modal h2{font-size:33px;margin:5px 0;color:#23432c}.game-modal p{font-size:16px}.game-modal .game-button{width:100%;font-size:22px;margin:12px 0 15px}.game-modal .paper-button,.game-modal .text-button{display:block;width:100%;margin:8px 0}.game-modal ol{text-align:right;padding-right:23px;font-size:15px;line-height:1.65}.game-modal li{padding:5px 0}.game-modal small{display:block;font-size:11px}.modal-emblem{display:inline-grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#255c3e;color:#ffefbd;border:3px solid #c29348}.modal-emblem .icon{width:34px;height:34px}#toast{position:fixed;z-index:120;bottom:25px;left:50%;transform:translate(-50%,20px);background:#193c2bf5;border:2px solid #e1b564;border-radius:12px;box-shadow:0 5px 0 #112e20;color:#fff0bd;font-weight:700;padding:12px 20px;max-width:min(520px,90vw);text-align:center;font-size:14px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.score-pop{position:fixed;top:41%;left:50%;z-index:90;white-space:nowrap;font-size:34px;font-weight:900;color:#ffec95;text-shadow:0 3px #285534,0 0 5px #142f1c;pointer-events:none;animation:score-float 1.6s ease-out forwards}
@keyframes breathe{0%,100%{transform:rotate(-.6deg) translateY(0)}50%{transform:rotate(.6deg) translateY(3px)}}@keyframes oven-glow{50%{opacity:.55}}@keyframes warning-pulse{50%{box-shadow:0 0 15px #ff9d4380}}@keyframes prompt-bob{50%{transform:translateY(-4px)}}@keyframes bell-ring{to{transform:rotate(7deg)}}@keyframes ingredient-drop{from{opacity:0;translate:0 -25px;scale:1.15}to{opacity:1;translate:0 0;scale:1}}@keyframes box-shut{from{transform:scale(1.06)}to{transform:scale(1)}}@keyframes event-enter{from{transform:translateX(-50%);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes score-float{0%{transform:translate(-50%,20px) scale(.7);opacity:0}20%{transform:translate(-50%,0) scale(1);opacity:1}75%{opacity:1}100%{transform:translate(-50%,-65px);opacity:0}}
@media(min-aspect-ratio:19/10){.home-center{width:540px}.wood-sign h1{font-size:70px}.wood-sign{padding-top:22px}.sign-subtitle{font-size:17px}.flame-seal{width:65px;height:70px}.flame-seal .icon{width:40px}.start-button{margin-top:20px;font-size:27px;min-width:260px}.home-options{margin-top:16px}.order-slip{top:20%;width:17%;padding:8px 12px}.receipt-row{min-height:34px;font-size:12px}.receipt-row .food{width:32px}.receipt-heading b{font-size:25px}.meal-box{width:24%;left:38%;top:53%}.tray{top:66%;height:22%}.customer-line{top:20%;height:44%}.rotisserie>.food{width:72%;left:14%;top:-40%}.instruction-ribbon{font-size:14px}.results-display{transform:translate(-50%,-50%) scale(.82);width:500px}}
@media(max-width:760px) and (orientation:portrait){.scene{max-width:none}.backdrop{background-position:53% center}.corner-controls{top:max(14px,env(safe-area-inset-top));left:13px;gap:7px}.round-button{width:42px;height:42px}.best-medal{top:14px;right:13px;padding:6px 10px;border-radius:12px;gap:7px}.best-medal .icon{width:24px;height:24px}.best-medal b{font-size:19px}.home-center{top:45%;width:90%}.wood-sign{padding:33px 14px 19px;border-radius:15px}.wood-sign h1{font-size:clamp(40px,12vw,65px);line-height:1.4}.wood-sign small{font-size:12px}.sign-subtitle{font-size:15px}.flame-seal{width:67px;height:75px}.flame-seal .icon{width:45px;height:45px}.start-button{font-size:29px;min-width:245px;margin-top:28px}.home-options{margin-top:23px}.name-paper{bottom:14%;right:50%;transform:translateX(50%) rotate(2deg);width:180px;padding:10px 15px;font-size:12px}.home-caption{bottom:5%;left:10%;right:10%;text-align:center;font-size:16px}.home-caption small{font-size:10px}.play-scene .backdrop{background-position:50% top}.hud{left:10px;right:10px;top:max(10px,env(safe-area-inset-top));gap:7px}.hud-score,.hud-time{height:45px;padding:5px 9px;gap:5px;border-radius:11px}.hud-score b{font-size:23px;min-width:35px}.hud-score .icon{width:24px;height:24px}.hud-time{min-width:100px;margin-left:auto}.hud-time b{font-size:25px}.hud-time .icon{width:21px;height:21px}.mini-sign{position:absolute;top:62px;left:15px;font-size:20px}.hud .round-button{width:38px;height:38px}.sound-game{display:none!important}.shift-meter{top:63px;left:12px;right:12px;height:6px}.order-slip{top:15.5%;left:4%;width:36%;min-width:0;max-width:none;padding:11px 9px 8px}.receipt-heading span{font-size:9px}.receipt-heading b{font-size:26px}.receipt-row{min-height:37px;font-size:12px;gap:3px}.receipt-row .food{width:32px}.receipt-row .icon{width:14px;height:14px}.receipt-footer{font-size:10px;gap:3px}.receipt-footer span:last-child{font-size:8px}.clip{width:24px;height:20px;top:-12px}.customer-line{top:17%;left:43%;width:57%;height:31%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.person{flex:0 0 65%;max-width:none;height:100%}.person-bubble{left:9%;right:9%;font-size:9px;top:0;padding:5px 7px;border-radius:10px}.person-bubble b{font-size:20px}.person-name{font-size:11px;bottom:1%}.person .character{width:100%}.rotisserie{top:43%;left:4%;width:26%;height:13%}.rotisserie>.food{top:-24%;left:0;width:100%}.station-sign{font-size:10px;padding:4px;left:-1%;right:-6%;bottom:0}.station-sign i{height:6px;width:6px;margin-right:3px}.instruction-ribbon{top:52%;left:auto;right:3%;max-width:64%;white-space:normal;transform:rotate(-2deg);font-size:12px;padding:7px 10px;text-align:center;line-height:1.4}.counter{top:59%}.tray{top:62%;width:22%;height:14%;}.tray-0{left:2%}.tray-1{left:26.5%}.tray-2{right:26.5%}.tray-3{right:2%}.tray-rim{padding:5px;border-radius:10px;inset:0 0 22%}.tray-well{border-radius:6px}.tray-label{font-size:11px;padding:2px 2px;bottom:0;left:0;right:0;white-space:nowrap}.portion-dots{gap:2px;margin:3px 0 1px}.portion-dots i{height:4px}.scoop-check{width:23px;height:23px;top:-7px;right:0}.scoop-check .icon{width:14px}.empty-sticker{font-size:17px;left:10%;right:10%}.meal-box{top:74%;left:22%;width:55%}.box-tag{font-size:15px}.meal-box.closed .box-tag{font-size:22px}.box-callout{font-size:12px;padding:4px;top:23%}.kitchen-bell{right:1%;bottom:4%;width:22%;height:15%;flex-direction:column;justify-content:center;gap:0}.kitchen-bell>.food{width:76%}.kitchen-bell>span:last-child{font-size:10px;text-align:center}.kitchen-bell small{font-size:8px}.delivered-stamp{left:4%;bottom:7%;font-size:10px;display:grid;grid-template-columns:18px 1fr;gap:2px 4px}.delivered-stamp b{font-size:22px}.delivered-stamp .icon{width:16px}.keyboard-hint{display:none}.event-actor{left:3%;bottom:27%;width:64%;height:50%}.event-speech{padding:10px 13px;top:2%;left:0;right:-15%;border-radius:15px}.event-speech b{font-size:19px}.event-speech small{font-size:11px}.event-speech strong{font-size:12px}.event-time{font-size:10px}.results-display,.board-display{width:94%;}.compact-sign h1{font-size:38px}.compact-sign{padding:16px 12px}.results-paper{padding:15px 16px}.result-numbers b{font-size:30px}.result-numbers span{font-size:10px;padding:0 7px}.score-total strong{font-size:42px}.result-stars{padding:14px}.result-stars .icon{width:28px;height:28px}.board-paper{max-height:68dvh}.leaderboard-heading{font-size:17px}.leader-row{font-size:14px}.game-modal{padding:20px 18px}.game-modal h2{font-size:29px}.game-modal ol{font-size:13px;line-height:1.5}.game-modal li{padding:6px 0}.game-modal .game-button{font-size:20px}.score-pop{font-size:25px}#toast{bottom:15px;font-size:12px;padding:10px 15px}}
@media(max-height:700px) and (orientation:portrait){.home-center{top:43%}.home-options{margin-top:15px}.start-button{margin-top:18px;padding:10px 30px}.name-paper{bottom:11%;}.home-caption{bottom:3%;font-size:13px}.order-slip{top:17%;}.receipt-row{min-height:30px;font-size:11px}.receipt-row .food{width:27px}.receipt-heading b{font-size:23px}.receipt-footer{padding-top:4px}.meal-box{width:47%;left:27%;top:74%}.person-bubble{font-size:9px}.person-bubble b{font-size:18px}.compact-sign h1{font-size:32px}.results-paper{padding:10px 14px}.result-stars{padding:8px}.score-total{margin-bottom:15px}.results-paper p{margin:5px 0}.result-numbers{margin:9px 0}.results-paper .paper-button{margin-top:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Fit tangible objects to the counter height across aspect ratios. */
.meal-box{left:50%;translate:-50% 0;top:59%;width:min(28%,39dvh)}
.instruction-ribbon{top:54%;z-index:9}
.customer-line{overflow-x:auto;scrollbar-width:none}
.reset-meal{display:block;margin:4px auto 0;background:transparent;border:0;color:#977d5c;text-decoration:underline;text-underline-offset:2px;font-size:10px;padding:2px 8px}
@media(max-width:760px) and (orientation:portrait){.meal-box{left:50%;top:74%;width:min(55%,25dvh)}.instruction-ribbon{top:52%}.reset-meal{font-size:9px;margin:2px auto 0}}
@media(min-aspect-ratio:19/10){.meal-box{width:min(24%,39dvh);left:50%;top:59%}.receipt-row{min-height:31px}.receipt-heading b{font-size:23px}}
.play-scene .backdrop{background-image:url('/assets/kitchen-playfield.png')}
.counter{inset:0;background:url('/assets/kitchen-playfield.png') center 25%/cover no-repeat;clip-path:inset(61% 0 0);box-shadow:none;pointer-events:none;transform:scale(1.03)}
.counter-edge{display:none}
@media(max-width:760px) and (orientation:portrait){.counter{background-position:50% top;clip-path:inset(59% 0 0)}}
/* Brushed stainless service counter and recessed individual gastronorm pans. */
.counter{inset:60% 0 0;clip-path:none;transform:none;background:repeating-linear-gradient(0deg,#ffffff10 0 1px,#4d5a6310 1px 3px),linear-gradient(105deg,#76848a,#d6dee0 20%,#a1adb3 42%,#e7edef 62%,#929fa7 88%,#c4ced2);border-top:8px solid #dce3e5;box-shadow:0 -3px 0 #5c6a72,0 -8px 12px #0007,inset 0 8px 8px #36454d88;}
.counter-edge{display:block;height:12px;background:linear-gradient(#e3e9ed,#7f8d95 40%,#394951);box-shadow:0 -2px 0 #eef3f5;}
.tray-rim{padding:9px;border-radius:10px;background:linear-gradient(135deg,#f6fafb,#84949e 13%,#e9f0f3 22%,#7b8991 48%,#e4ecef 72%,#73818a);box-shadow:0 3px 0 #3e4d55,0 0 0 3px #64727a,inset 0 2px 2px #fff;}
.tray-well{border-radius:5px;background:linear-gradient(130deg,#394a55,#778892 30%,#bbc7cd 55%,#6e808b 85%,#3a4d58);box-shadow:inset 0 6px 9px #182b38aa,inset 2px 0 3px #e4eef5;}
.tray-label{background:linear-gradient(#fff8e2,#e8d9b3);transform:none!important;}
.box-tools{position:absolute;z-index:12;bottom:10px;left:50%;translate:-50% 0;display:flex;gap:8px;white-space:nowrap;}
.box-tools button{min-height:40px;padding:6px 12px;border:2px solid #ddc692;border-radius:8px;background:linear-gradient(#376a55,#153c2e);color:#fff5d5;font-size:13px;font-weight:800;box-shadow:0 3px 0 #122f25;}
.box-tools button:last-child{background:linear-gradient(#8c503b,#603425);}
.box-tools button:disabled{opacity:.48;}.box-tools .icon{width:16px;height:16px;}
.meal-box{top:57%;width:min(27%,35dvh)}
.keyboard-hint{display:none;}.delivered-stamp,.kitchen-bell{color:#203d37;text-shadow:0 1px #fff9;}
#toast{bottom:68px;}
/* Portrait: fixed zones for the queue, food wells and packing bench. */
@media(max-width:760px) and (orientation:portrait){
 .hud{top:max(8px,env(safe-area-inset-top));}.mini-sign{display:none;}.shift-meter{top:60px;}
 .order-slip{top:80px;left:3%;width:37%;padding:7px 7px 5px;}.receipt-heading>b{font-size:22px;}.receipt-row{min-height:30px;font-size:11px;}.receipt-row .food{width:28px;}.receipt-footer{padding-top:4px;}
 .customer-line{top:80px;left:42%;width:58%;height:29%;}.person{flex-basis:75%;}.person .character{max-height:100%;object-fit:contain;}.person-name{bottom:0;}
 .rotisserie{top:36%;height:13%;left:3%;width:25%;}.rotisserie>.food{width:min(100%,13dvh);top:-4%;}.station-sign{font-size:10px;}
 .instruction-ribbon{top:45%;right:3%;max-width:65%;font-size:11px;padding:5px 9px;}
 .counter{inset:51% 0 0;clip-path:none;background-position:initial;}
 .tray{top:54%;height:16%;width:22%;}.tray-rim{padding:5px;inset:0 0 25%;}.tray-label{font-size:clamp(9px,2.7vw,12px);}.tray-well .food{width:108%;left:-4%;}
 .meal-box{top:71%;left:50%;width:min(51%,23dvh);}.box-callout{font-size:11px;}.box-tag{font-size:13px;}
 .box-tools{bottom:max(10px,env(safe-area-inset-bottom));gap:6px;}.box-tools button{font-size:12px;padding:6px 10px;min-height:40px;}
 .kitchen-bell{bottom:9%;right:1%;width:22%;height:17%;}.kitchen-bell>.food{width:70%;}.kitchen-bell>span:last-child{font-size:10px;}.kitchen-bell small{font-size:9px;}
 .delivered-stamp{bottom:13%;left:3%;}.event-actor{bottom:31%;height:48%;}
 #toast{bottom:62px;font-size:12px;max-width:94vw;width:max-content;}
}
/* Short landscape phones: receipt stays above the counter; no overlapping HUD. */
@media(orientation:landscape) and (max-height:540px){
 .hud{top:max(6px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:8px;}.hud-score,.hud-time{height:36px;border-radius:10px;padding:3px 10px;}.hud-score b,.hud-time b{font-size:22px;}.hud-score .icon,.hud-time .icon{width:22px;height:22px;}.hud-time{min-width:100px;}.hud .round-button{width:34px;height:34px;}.mini-sign{font-size:20px;}.shift-meter{top:48px;height:4px;}
 .order-slip{top:62px;left:22%;width:19%;min-width:0;padding:4px 8px;transform:rotate(-2deg);}.receipt-heading{padding-bottom:2px;}.receipt-heading>span{font-size:8px;}.receipt-heading>b{font-size:19px;}.receipt-row{min-height:21px;font-size:10px;gap:3px;}.receipt-row .food{width:23px;}.receipt-row .icon{width:12px;height:12px;}.receipt-footer{font-size:9px;padding-top:3px;}.receipt-footer span:last-child{display:none;}.clip{width:22px;height:16px;top:-9px;}
 .customer-line{top:60px;left:43%;width:56%;height:35%;}.person{flex:0 0 27%;max-width:150px;}.person .character{width:min(100%,30dvh);margin:auto;}.person-bubble{padding:2px 4px;font-size:8px;left:10%;right:10%;}.person-bubble b{font-size:16px;}.patience{height:4px;margin-top:1px;}.person-name{font-size:9px;padding:1px;bottom:0;}
 .rotisserie{top:22%;left:2%;width:18%;height:29%;}.rotisserie>.food{width:85%;max-width:30dvh;top:-20%;left:5%;}.station-sign{font-size:11px;padding:3px;}
 .counter{inset:56% 0 0;clip-path:none;}.tray{top:62%;height:27%;width:15%;}.tray-0{left:2%;}.tray-1{left:18%;}.tray-2{right:18%;}.tray-3{right:2%;}.tray-rim{padding:5px;inset:0 0 27%;}.tray-label{font-size:11px;padding:1px 4px;}.portion-dots{margin:2px 0 0;}.portion-dots i{height:3px;}
 .instruction-ribbon{top:53%;font-size:10px;padding:3px 14px;max-width:40%;white-space:normal;text-align:center;}
 .meal-box{top:59%;width:30dvh;left:50%;}.box-tag{font-size:11px;}.box-callout{font-size:9px;padding:2px;}.meal-box.closed .box-tag{font-size:16px;}
 .box-tools{bottom:4px;gap:5px;}.box-tools button{min-height:32px;padding:3px 7px;font-size:10px;}.box-tools .icon{width:12px;height:12px;}
 .kitchen-bell{bottom:0;right:2%;width:22%;height:10%;}.kitchen-bell>.food{width:32px;}.kitchen-bell>span:last-child{font-size:10px;}.kitchen-bell small{display:none;}.delivered-stamp{bottom:1%;font-size:10px;left:3%;}.delivered-stamp b{font-size:16px;}.delivered-stamp .icon{width:15px;}
 .event-actor{left:8%;bottom:6%;width:29%;height:74%;}.event-speech{padding:7px;gap:2px;}.event-speech b{font-size:16px;}.event-speech small{font-size:10px;}.event-speech strong{font-size:11px;}.event-time{font-size:9px;}
 #toast{bottom:44px;padding:7px 14px;font-size:11px;}.game-modal{max-height:90dvh;padding:12px 22px;}.game-modal h2{font-size:22px;}.modal-emblem{display:none;}.game-modal .game-button{font-size:16px;padding:7px;}.game-modal ol{font-size:12px;line-height:1.25;}.game-modal li{padding:3px;}
 .result-scene,.board-scene{overflow:auto;}.results-display{position:relative;left:auto;top:auto;transform:none;width:480px;margin:20px auto;}.home-center{top:50%;width:380px;}.home-center .wood-sign{padding:8px 20px;}.home-center .wood-sign h1{font-size:40px;}.home-center .sign-subtitle{font-size:12px;}.home-center .flame-seal,.home-center .sign-chain,.home-center .sign-rule{display:none;}.home-center .start-button{margin-top:12px;font-size:20px;padding:6px 24px;min-width:220px;}.home-options{margin-top:14px;}.home-options .round-button{width:34px;height:34px;}.name-paper{right:14px;bottom:18px;width:145px;font-size:11px;padding:8px;}.home-caption{font-size:12px;left:14px;bottom:18px;width:150px;}.home-caption small{font-size:9px;}.best-medal{right:12px;top:10px;padding:5px 10px;}.corner-controls{top:10px;left:12px;}
}
@media(orientation:portrait) and (max-height:660px){
 .order-slip{top:76px;padding:5px 7px;}.receipt-heading>b{font-size:20px;}.receipt-heading{padding-bottom:3px;}.receipt-row{min-height:25px;font-size:10px;}.receipt-row .food{width:23px;}.receipt-footer{font-size:9px;padding-top:3px;}
 .rotisserie{top:39%;height:10%;}.rotisserie>.food{width:11dvh;top:-15%;}.customer-line{height:31%;}.person-bubble{padding:3px 7px;}.person-bubble b{font-size:18px;}
.meal-box{top:71%;width:21dvh;}.box-tag{font-size:11px;}
}

/* Home identity and creator credit. */
.home-center .home-name{position:relative;right:auto;bottom:auto;width:min(260px,72%);margin-top:24px;padding:10px 18px;transform:rotate(1deg)}
.home-center .home-name input{text-align:center}
.home-caption a{display:block;margin-top:4px;color:#ffe7a3;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px) and (orientation:portrait){.home-center{top:46%}.home-center .home-name{width:190px;margin-top:20px;padding:9px 14px}.home-center .start-button{margin-top:20px}.home-caption{bottom:3%;width:auto}.home-caption a{font-size:10px}}
@media(max-height:700px) and (orientation:portrait){.home-center{top:44%}.home-center .home-name{margin-top:12px;padding:7px 12px}.home-center .start-button{margin-top:12px}.home-options{margin-top:12px}.home-caption{bottom:2%}}
