/* A fixed game table, not a growing kitchen form. */
body:has(#game:not([hidden])){background:#142d30;overflow:hidden}
body:has(#game:not([hidden])) header{height:42px;padding:3px 12px;background:#142d30;border:0;color:#fff}
body:has(#game:not([hidden])) .brand{color:#fff;font-size:16px}
body:has(#game:not([hidden])) .brand-logo{width:32px;height:32px;background:#fff;border-radius:8px}
body:has(#game:not([hidden])) .brand small{display:none}
body:has(#game:not([hidden])) .header-actions button{min-height:36px;background:#28474a;border-color:#72908e;color:#fff;padding:4px 10px}
body:has(#game:not([hidden])) #roadmap{display:none}
#game{width:100%;max-width:1500px;height:calc(100dvh - 42px);padding:4px 8px 8px;display:grid;grid-template-rows:30px 72px minmax(0,1fr);gap:5px;overflow:hidden;color:#18212c}
#game .shiftbar{margin:0;min-width:0}
#game .shiftbar>div:first-child{display:none}
#game .stats{width:100%;gap:14px;justify-content:flex-end;color:#fff}
#game .stats span,#game .stats b{color:#fff;font-size:16px;display:inline;margin:0;letter-spacing:0}
#game .stats span{font-size:12px;display:flex;align-items:center;gap:6px}
#game .stats span:first-child{margin-right:auto}
#game .stats .ghost{padding:3px 9px;min-height:30px;background:#ffe084;color:#272011;border:0;font-size:14px}
#game .stats #clock{color:#ffe084}
#game .stats #day-rating{cursor:pointer;border-bottom:1px dotted #ffe084}
#game .demand,#game .menu-progress,#game .rolebar,#game .workspace-tabs,#game>.day-reviews{display:none!important}
#game .orders{padding:4px 6px;margin:0;min-height:0;border-radius:12px;background:#27484a;border-color:#496f6f;display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,28%);gap:8px;overflow:hidden}
#game .orders>.sectiontitle{display:none}
#game .orderline{min-width:0;min-height:0;padding:0 0 3px;align-items:stretch;overflow-x:auto;overflow-y:hidden}
#game .order{flex:0 0 165px;min-width:0;padding:4px 6px;grid-template-columns:26px minmax(0,1fr);grid-template-rows:14px 16px 14px 4px;height:60px;min-height:60px;border-radius:9px;gap:0 5px}
#game .order .visitor{height:42px;min-height:0;grid-row:1/4}
#game .order .customer-figure{font-size:28px}
#game .order .customer{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .order strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .order .detail{font-size:12px;line-height:14px;min-height:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .order .patience{height:4px;margin-top:2px}
.customer-talk{color:#fff3c3;display:flex;align-items:center;font-size:14px;line-height:1.2;padding:4px;font-weight:600;min-width:0;overflow:hidden}
#game .workbench{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);min-width:0;min-height:0;gap:7px;align-items:stretch}
#game .workbench>.stations,#game .workbench>.assembly{min-width:0;min-height:0;overflow:auto;margin:0;padding:7px;border-radius:14px;border:2px solid #d9b65d;background:#fff5d9;box-shadow:inset 0 0 0 2px #fff;overscroll-behavior:contain}
#game .assembly{display:grid!important;grid-template-rows:auto minmax(110px,1fr) auto auto;gap:5px;position:relative;align-content:stretch;overflow:auto!important}
#game .assembly>.sectiontitle,#game .plating-title,#game .assembly-hint{display:none}
#game .recipe{min-width:0;min-height:0;border:0;border-radius:9px;background:#ffe9a4;padding:5px 8px;line-height:1.1}
#game .ticket-heading{gap:6px;display:flex;flex-wrap:nowrap;align-items:center}
#game .ticket-heading strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .ticket-heading span{font-size:12px;flex-shrink:0}
#game .ticket-heading>span:last-child{display:none}
#game .recipe-meal{margin-top:3px;gap:0}
#game .recipe-checklist{gap:4px 8px;display:flex;flex-wrap:wrap}
#game .recipe-item .food-image{width:24px;height:24px}
#game .recipe-item b{display:none}
#game .recipe-item small{font-size:14px;font-weight:700}
#game .recipe-item{padding:0;gap:3px}
#game .plate{margin:0;min-width:0;min-height:0;padding:5px;display:flex;flex-direction:column;background:#eeeedf;border:0;border-radius:12px;overflow:hidden}
#game .plates-heading{font-size:14px;align-items:center;gap:6px;margin:0 0 3px;flex-shrink:0;flex-wrap:nowrap}
.plate-tabs{display:flex;gap:4px;min-width:0;flex:1;justify-content:center}
.plate-tabs button{min-width:36px;min-height:36px;padding:4px;background:#fff;color:#244843;border:1px solid #99b7a7;font-size:14px;border-radius:50%}
.plate-tabs button.selected{background:#ffd957;border:2px solid #8b6411;color:#211800}
.plate-tabs button.done{background:#b4e2bb;border-color:#3b8253}
#game .actual-plate{grid-template-columns:minmax(70px,1fr) minmax(80px,.65fr);flex:1;min-height:0;align-items:center;gap:8px;padding:4px;border:0;box-shadow:none;background:transparent;overflow:hidden}
#game .actual-plate .meal-scene{width:min(100%,27dvh);max-width:260px;max-height:100%;margin:auto}
#game .plate-checklist{min-width:0;font-size:14px;line-height:1.2;gap:6px;align-items:center;text-align:center}
.missing-foods{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}
.missing-foods span{padding:3px;border:2px dashed #b2aaa0;border-radius:9px;background:#fff9}
.missing-foods .food-image{width:38px;height:34px;opacity:.55;filter:grayscale(.35)}
#game .on-plate{font-size:14px;max-width:220px}
#game .plate-complete{padding:8px;font-size:16px}
#game .plate.drop-ready{outline:3px solid #2c935e;outline-offset:-4px;background:#d6f2d7}
#game .serveactions{margin:0;gap:5px}
#game .serveactions button{min-height:44px;font-size:16px;padding:6px 9px}
#game #clear{font-size:14px;background:#fff}
#game #serve{background:#258455;color:#fff;box-shadow:0 3px 0 #145738}
#game #serve:disabled{background:#bac6bb!important;color:#46574a!important}
#game #feedback{position:absolute;top:46px;left:12px;right:12px;z-index:8;background:#183c36;color:#fff;font-size:14px;padding:7px;border-radius:8px;pointer-events:none;animation:arcade-toast 3s both;margin:0}
@keyframes arcade-toast{0%,70%{opacity:1}100%{opacity:0;visibility:hidden}}
#game .ingredients{margin:0;min-width:0}
#game .topping-bar{display:flex;gap:5px;flex-wrap:wrap}
#game .topping-bar h4,#game .topping-option.optional-topping{display:none}
#game .topping-option.needed-topping{display:flex;flex-direction:row;flex:1;gap:3px}
#game .topping-option button{min-height:44px;padding:4px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:4px}
#game .topping-option .food-image{width:28px;height:28px}
#game .topping-option span{display:none}
#game .refill-topping{font-size:14px}
#game .stations>.sectiontitle{margin:0 0 5px}
#game .stations>.sectiontitle span{display:none}
#game .stations>.sectiontitle h3{font-size:14px;color:#6b5117}
#game .stationgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0}
#game .stationgrid .station,#game .equipment-grid .station{display:grid;grid-template-columns:48px minmax(0,1fr);gap:2px 5px;padding:4px;min-height:0;border-radius:10px;background:#e0ebe5;overflow:hidden}
#game .station h4{font-size:12px;line-height:1.2;margin:0;grid-column:1/-1;color:#385348;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#game .station b{font-size:14px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .station small{font-size:14px;line-height:1.15;min-height:0}
#game .station .cooking-food,#game .equipment-grid .cooking-food{width:48px;height:48px;min-height:44px;grid-column:1;grid-row:2/4;align-self:center}
#game .station .cook-meter{height:4px}
#game .station .station-actions button{font-size:14px;min-height:44px;padding:5px}
#game .equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:5px 0 0;gap:5px}
#game .bain-section{margin:5px 0 0;padding-top:5px;border-color:#b9caaa}
#game .bain-section .sectiontitle{margin-bottom:4px}
#game .bain-section h3{font-size:14px}
#game .bain-section .sectiontitle span{font-size:14px}
#game .bain-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#game .bain-slot{min-width:0;border-radius:10px;background:#fff;border:1px solid #93b5a3;position:relative}
#game .bain-slot>button:first-child{display:grid;grid-template-columns:42px minmax(0,1fr);width:100%;align-items:center;padding:5px;min-height:60px;gap:1px 4px;touch-action:none}
#game .bain-slot .food-image{width:42px;height:38px;grid-column:1;grid-row:1/4;float:none}
#game .bain-slot strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#game .bain-slot .stock-badge{font-size:16px;font-weight:800;grid-column:2;margin:0}
#game .bain-slot .heat-timer{font-size:14px;font-weight:700;grid-column:2;color:#3c6851;margin:0}
.freshness{height:4px;grid-column:1/-1;background:#dee5da;border-radius:5px;overflow:hidden}
.freshness i{display:block;height:100%;background:#48a46c;transition:width .25s linear}
#game .bain-slot.cooling{background:#ffe4bc;border-color:#d77e22}
#game .bain-slot.cooling .heat-timer{color:#973800}
#game .bain-slot.cooling .freshness i{background:#de7530}
#game .discard{display:none}
#game .pantry{margin:5px 0 0;padding-top:5px;gap:5px}
#game .pantry h3{display:none}
#game .pantry span{font-size:12px;flex:1}
#game .pantry button{min-height:36px;font-size:14px;padding:4px 8px}
#game .roti-box{grid-template-columns:48px minmax(0,1fr);padding:4px;gap:5px;margin-top:5px;background:#e0ebe5}
#game .roti-box>img{height:48px}
#game .roti-box h4,#game .roti-box b{font-size:14px}
#game .roti-box button{font-size:14px;min-height:36px;padding:4px;touch-action:none}
.drag-food{position:fixed;z-index:1002;width:76px;height:70px;object-fit:contain;transform:translate(-50%,-65%);pointer-events:none;filter:drop-shadow(0 8px 5px #0006)}
#game [data-food]{touch-action:none}
#game .cutting-scene{position:absolute;bottom:52px;right:8px;background:#fff;border:2px solid #d9b65d;border-radius:12px;z-index:5;padding:5px}
#game .cutting-frames{width:90px}
#game .cutting-scene strong{font-size:14px;max-width:180px}
#game .customer-exit{bottom:-24px;right:8%;z-index:10}
#game .customer-exit .customer-figure{font-size:38px}
#game #action-effects{top:48px;left:15%;right:15%}
@media(max-width:1000px){#game .workbench{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#game .stationgrid{grid-template-columns:repeat(2,minmax(0,1fr))}#game .on-plate{font-size:12px}#game .bain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:550px) and (orientation:landscape){#game{grid-template-rows:26px 58px minmax(0,1fr);gap:4px;padding:2px 5px 4px}body:has(#game:not([hidden])) header{height:36px;padding:2px 8px}#game{height:calc(100dvh - 36px)}#game .orders{padding:3px 5px}#game .stations,#game .assembly{padding:5px}#game .stationgrid{grid-template-columns:repeat(3,minmax(0,1fr))}#game .station b{display:none}#game .station .cook-time{grid-column:2;grid-row:2/4}#game .ticket-heading strong{font-size:14px}#game .ticket-heading span{font-size:12px}#game .recipe-item .food-image{width:21px;height:20px}#game .recipe-meal{margin-top:2px}#game .assembly{grid-template-rows:auto minmax(80px,1fr) auto auto;gap:3px}#game .actual-plate .meal-scene{width:min(100%,25dvh)}#game .plates-heading>span{display:none}#game .plates-heading{margin-bottom:0}#game .plate-tabs button{min-width:32px;min-height:32px}#game .on-plate{display:none}#game .missing-foods .food-image{width:28px;height:25px}#game .missing-foods span{padding:2px}#game .serveactions button{min-height:40px;padding:4px;font-size:14px}#game .topping-option button{min-height:40px}#game .bain-slot>button:first-child{min-height:54px;padding:3px;grid-template-columns:34px minmax(0,1fr)}#game .bain-slot .food-image{width:34px;height:30px}#game .bain-slot strong{display:none}#game .bain-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#game .pantry span{display:none}#game .customer-talk{font-size:14px}#game .station .cooking-food,#game .equipment-grid .cooking-food{width:44px;height:44px}#game .stationgrid .station,#game .equipment-grid .station{grid-template-columns:44px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.freshness i{transition:none}#game #feedback{animation:none;opacity:0}}
@media(max-height:550px) and (orientation:landscape){#game{grid-template-rows:26px 66px minmax(0,1fr)}#game .order{height:56px;min-height:56px;grid-template-rows:12px 14px 12px 4px;padding:3px 5px}#game .order .customer{font-size:11px;line-height:12px}#game .order strong{font-size:13px;line-height:14px}#game .order .detail{font-size:11px;line-height:12px}#game .order .visitor{height:38px}}
/* 2.0: behind the counter, with customers opposite the player. */
:root{--orange:#edbd6b}
body:has(#game:not([hidden])){background:#211429}
body:has(#game:not([hidden])) header{background:#211429}
#game{grid-template-rows:34px 158px minmax(0,1fr);gap:8px;padding:5px 12px 10px;background:linear-gradient(#34213e,#201327)}
#game .orders{position:relative;grid-template-columns:112px minmax(0,1fr);background:linear-gradient(#492950e0,#2b1733f0),url('kitchen.png') center 38%/cover;border:1px solid #bf985a;border-radius:18px 18px 4px 4px;padding:8px 10px 0;overflow:visible;box-shadow:inset 0 -10px #6b3d25,0 6px 0 #a57542}
#game .customer-talk{display:none}
#game #your-chef{display:flex;float:none;position:relative;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;margin:0;color:#fff3d2;gap:0;grid-column:1;grid-row:1}
#game #your-chef>span:last-child{font-size:14px;position:absolute;bottom:5px;z-index:5;padding:3px 6px;background:#291c39d9;border-radius:7px;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chef-avatar{width:110px;height:150px;display:block;position:relative;flex-shrink:0}
.sprite-head{position:absolute;top:0;left:5%;width:90%;height:100px;background:url('assets/chef-heads.png') var(--head-x) var(--head-y)/300% 200% no-repeat;font-size:80px;line-height:100px;z-index:3;filter:var(--skin-filter)}
.avatar-hair{z-index:4;filter:var(--hair-filter);mask-image:linear-gradient(#000 0 30%,transparent 42%),linear-gradient(90deg,#000 0 13%,transparent 25% 75%,#000 87%);mask-composite:add}
.avatar-shirt{position:absolute;left:10%;top:83px;width:80%;height:68px;z-index:2;filter:drop-shadow(0 5px 4px #0004)}
.avatar-beard{position:absolute;z-index:5;width:54%;height:48px;object-fit:contain;left:23%;top:54px;filter:var(--skin-filter)}
.avatar-beard.stubble{opacity:.42;transform:scaleY(.7);transform-origin:top}
.chef-tool{display:none;position:absolute;left:70%;top:101px;font-size:32px;z-index:6;transform:rotate(-30deg);transform-origin:bottom left}
#game #your-chef .chef-avatar{transform:none;width:100px;height:142px;margin:0}
#your-chef .chef-tool{display:block}
#your-chef[data-motion="cooking"] .chef-tool{animation:chef-stir .65s ease-in-out infinite}
#your-chef[data-motion="cooking"] .chef-avatar{animation:chef-rock 1.3s ease-in-out infinite}
#your-chef[data-motion="cutting"] .chef-tool{animation:chef-chop .35s ease-in-out infinite}
#your-chef[data-motion="serving"] .chef-tool{animation:chef-serve .55s ease-in-out 2}
#game .orderline{display:flex;gap:14px;grid-column:2;grid-row:1;height:100%;overflow-x:auto;overflow-y:hidden;align-items:end;padding:0 5px 10px}
#game .order{height:140px;min-height:140px;flex:1 0 145px;max-width:245px;display:grid;grid-template-columns:78px minmax(0,1fr);grid-template-rows:24px 34px 26px 6px;align-items:center;align-content:end;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0 2px 12px;position:relative;color:#fff6e3;gap:2px 5px;animation:customer-arrive .65s cubic-bezier(.2,.8,.3,1) both}
#game .order.selected{background:linear-gradient(transparent,#c1914138)}
#game .order .visitor{grid-row:1/5;height:110px;position:static;min-height:0}
#game .order .customer-figure{display:block;position:relative;font-size:30px;height:115px}
#game .order .chef-avatar{transform:scale(.78);transform-origin:bottom left;width:100px;height:135px;position:absolute;bottom:0;left:0}
#game .order .customer{font-size:12px;color:#edd6ad}
#game .order strong{font-size:14px;line-height:1.2;white-space:normal;margin:0;color:#fff9e8}
#game .order .detail{font-size:12px;color:#edd6ad;margin:0;white-space:normal}
#game .order .patience{grid-column:2;height:5px;width:100%;margin:0}
#game .order .speech{display:none}
#game .order.selected .speech{display:block;position:absolute;left:3px;right:3px;top:0;max-height:42px;overflow:hidden;border-radius:10px;background:#fff1d4;color:#3e2542;padding:5px 8px;font-size:12px;line-height:1.3;z-index:6;animation:bubble-pop .25s ease-out}
#game .customer-face{position:absolute;bottom:32px;left:25px;font-size:15px;background:#ffffffdc;border-radius:100%;z-index:7}
#game .order.impatient .customer-figure{animation:customer-shift 1.4s ease-in-out infinite}
#game .order.angry .customer-figure,#game .order.urgent .customer-figure{animation:customer-shift .6s ease-in-out infinite}
#game .order.furious .customer-figure{animation:customer-furious .35s ease-in-out infinite}
#game .customer-events{position:absolute;inset:0;pointer-events:none;z-index:15}
#game .customer-exit{bottom:8px;right:18%;background:#fff3d8;border:2px solid #edbd6b;border-radius:14px;padding:8px;animation:customer-depart 2.5s ease-in both;width:230px;min-height:110px}
#game .customer-exit .customer-figure{display:inline-block;width:80px;height:85px;position:relative}
#game .customer-exit .chef-avatar{transform:scale(.6);transform-origin:top left}
#game .customer-exit .speech{font-size:14px;position:static;display:block;background:none;color:#3c2341}
#game .customer-exit strong{font-size:14px;color:#3c2341}
#game .workbench{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;background:linear-gradient(125deg,#96673f,#5a341f 50%,#8c5a35);padding:8px;border:2px solid #ba8851;border-radius:4px 4px 20px 20px;box-shadow:inset 0 5px 0 #e3b47e,0 10px 30px #0007}
#game .workbench>.stations,#game .workbench>.assembly{border:0;border-radius:12px;background:#35243ae8;color:#fff4de;box-shadow:none;padding:8px}
#game .stations>.sectiontitle h3,#game .bain-section h3{color:#edc684}
#game .stationgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#game .stationgrid .station,#game .equipment-grid .station{background:#e9ddca;border:2px solid #b68a53;grid-template-columns:70px minmax(0,1fr);padding:6px;box-shadow:0 3px 0 #130d1b66;color:#36283a}
#game .station .cooking-food,#game .equipment-grid .cooking-food{height:70px;width:70px;border:0}
#game .station h4{font-size:12px;color:#573846}
#game .station b,#game .station small{font-size:14px;color:#36283a}
#game .bain-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#game .bain-slot{background:#fff0d4;border:2px solid #b7905d;box-shadow:inset 0 0 0 3px #fff7e9;color:#35273b}
#game .bain-slot>button:first-child{min-height:86px;display:flex;flex-direction:column;gap:2px}
#game .bain-slot .food-image{height:45px;width:58px}
#game .bain-slot strong{font-size:12px}
#game .bain-slot .stock-badge,#game .bain-slot .heat-timer{display:inline;font-size:14px}
#game .bain-slot .freshness{width:90%;flex-shrink:0}
#game .assembly{grid-template-rows:auto minmax(90px,1fr) auto auto}
#game .recipe{background:#fff1d5;box-shadow:0 3px 0 #0004;color:#3b293f}
#game .plate{background:radial-gradient(#eedbbe,#b59161);border:2px solid #e5bd85;box-shadow:inset 0 0 25px #65402144}
#game .actual-plate{grid-template-columns:minmax(80px,1fr) minmax(60px,.4fr)}
#game .actual-plate .meal-scene{width:min(100%,34dvh);max-width:360px}
#game .plates-heading,#game .plate-checklist{color:#3c2a40}
#game #clear{color:#3b293f}
#game .pantry{border-color:#967144}
#game .roti-maker{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:6px}
#game .roti-maker .station{min-height:0;padding:5px;background:#e9ddca;color:#35273b;display:grid;grid-template-columns:60px 1fr}
#game .roti-maker .cooking-food{width:60px;height:60px}
#game .roti-stock{display:flex;align-items:center;gap:3px}
#game .roti-stock>img{width:45px;height:55px;object-fit:contain}
#game .roti-stock button{background:#e9ddca;color:#35273b;padding:4px;font-size:14px}
#game .roti-stock .food-image{width:48px;height:42px;display:block}
.character-editor{align-items:start}.character-fields{min-width:0}.character-fields input,.character-fields select{min-width:0;width:100%;box-sizing:border-box}.character-fields [hidden]{display:none!important}
#avatar-preview .chef-avatar{width:100px;height:145px}
.game-version{margin-top:22px;border-top:1px solid #e4c78655;padding-top:16px;color:#796584;font-size:14px}.game-version span{display:block;margin:5px 0}.game-version details p{max-width:750px;color:inherit}
@keyframes chef-stir{50%{transform:translate(-20px,-12px) rotate(35deg)}}
@keyframes chef-rock{50%{transform:rotate(3deg) translateY(-2px)}}
@keyframes chef-chop{50%{transform:translateY(-15px) rotate(-5deg)}}
@keyframes chef-serve{50%{transform:translate(20px,-15px) rotate(20deg)}}
@keyframes customer-arrive{from{opacity:0;transform:translateY(-45px) scale(.85)}to{opacity:1;transform:none}}
@keyframes customer-shift{50%{transform:translateX(4px) rotate(3deg)}}
@keyframes customer-furious{50%{transform:translateY(-4px) rotate(-4deg)}}
@keyframes customer-depart{0%,45%{opacity:1;transform:none}100%{opacity:0;transform:translateX(160px) scale(.8)}}
@keyframes bubble-pop{from{transform:scale(.85)}to{transform:scale(1)}}
@media(max-width:800px){#game{grid-template-rows:34px 126px minmax(0,1fr)}#game .orders{grid-template-columns:88px minmax(0,1fr)}#game .order{height:110px;min-height:110px;flex-basis:145px;grid-template-columns:62px 1fr;grid-template-rows:18px 30px 20px 4px}#game .order .chef-avatar{transform:scale(.6)}#game .order .visitor{height:85px}#game #your-chef .chef-avatar{transform:scale(.78);transform-origin:bottom center}#game .bain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#game .stats{gap:10px}#game .stats span{font-size:12px}}
@media(max-height:550px) and (orientation:landscape){#game{grid-template-rows:28px 94px minmax(0,1fr);padding:2px 5px 5px;gap:5px}#game .orders{grid-template-columns:68px minmax(0,1fr);padding:2px 5px 0}#game #your-chef .chef-avatar{transform:scale(.56);height:145px;transform-origin:bottom center;position:absolute;bottom:3px}#game #your-chef>span:last-child{font-size:11px;bottom:0}#game .order{height:90px;min-height:90px;flex-basis:150px;max-width:210px;grid-template-columns:52px 1fr;grid-template-rows:14px 26px 18px 4px;padding-bottom:7px;gap:0 3px}#game .order .visitor{height:70px}#game .order .chef-avatar{transform:scale(.5);height:135px}#game .order .speech{max-height:29px;font-size:11px;padding:3px}#game .order .customer{font-size:11px}#game .order .detail{font-size:11px;line-height:1.1}#game .order strong{font-size:12px}#game .order .customer-face{left:18px;bottom:23px;font-size:12px}#game .workbench{padding:4px;gap:5px}#game .stationgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}#game .stationgrid .station,#game .equipment-grid .station{grid-template-columns:44px 1fr;padding:3px}#game .station .cooking-food,#game .equipment-grid .cooking-food{width:44px;height:44px}#game .station small{font-size:12px}#game .bain-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#game .bain-slot>button:first-child{min-height:61px;padding:3px;gap:0}#game .bain-slot .food-image{height:32px;width:40px}#game .bain-slot strong{display:none}#game .bain-slot .stock-badge,#game .bain-slot .heat-timer{font-size:12px}#game .actual-plate .meal-scene{width:min(100%,32dvh)}#game .actual-plate{grid-template-columns:1fr .35fr;gap:2px}#game .equipment-grid{margin-top:4px}#game .roti-maker{grid-template-columns:1fr}#game .roti-maker .station{grid-template-columns:44px 1fr}#game .roti-maker .cooking-food{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){#game .chef-avatar,#game .chef-tool,#game .customer-figure,#game .order,#game .speech{animation:none!important}}

.bald-head{background-image:none!important;font-size:78px;line-height:1}

/* Contrast and a consistent Khelari entrance. */
body:has(#home:not([hidden])){background:radial-gradient(ellipse at top right,#3c2448,#130e1c 65%);color:#fff3db}
body:has(#home:not([hidden])) header{background:#1e1529;border-color:#765638;color:#fff3db}
body:has(#home:not([hidden])) .brand,body:has(#home:not([hidden])) h1,body:has(#home:not([hidden])) h2,body:has(#home:not([hidden])) h3{color:#fff3db}
body:has(#home:not([hidden])) .intro,body:has(#home:not([hidden])) .review-empty,body:has(#home:not([hidden])) .game-version{color:#d8cbdc}
body:has(#home:not([hidden])) .character-setup,body:has(#home:not([hidden])) .character-form,body:has(#home:not([hidden])) .levelcard{background:#2e2038;border-color:#856440;color:#fff3db}
body:has(#home:not([hidden])) label,body:has(#home:not([hidden])) .character-fields{color:#e7d9e8}
body:has(#home:not([hidden])) .eyebrow{color:#e1bc78}
#game .bain-title span,#game .bain-empty,#game .supplies{color:#efdfd1}
#game .order .customer-figure{width:78px;height:115px}
#game .order .speech{max-height:30px!important;padding:4px 8px!important}
#game .assembly{grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:5px}
#game #recipe{grid-row:1}#game #plate{grid-row:2}#game #ingredients{grid-row:3}#game #topping-prep{grid-row:4}#game .serveactions{grid-row:5}#game #feedback{grid-row:6}
#game .actual-plate{width:100%;height:100%;margin:0;align-content:center}
#game .order .customer-figure{width:78px;min-width:78px}
#game .bain-section,#game .pantry{color:#eee0cf}
@media(max-height:550px) and (orientation:landscape){#game .assembly{padding:5px;gap:3px}#game #recipe{min-height:49px}#game .recipe-checklist{flex-wrap:nowrap}#game .actual-plate{grid-template-columns:1fr;padding:0}#game .actual-plate .meal-scene{width:65px;height:65px;max-height:none;margin:0 auto}#game .plate-checklist{display:none}#game .plates-heading{height:24px;min-height:24px}#game .plate-tabs button{min-height:24px;min-width:26px;padding:0}#game .order .customer-figure{width:52px;min-width:52px}#game .order .speech{top:0;max-height:25px!important}#game .order .customer{display:none}}
#game .workbench>.stations{display:block!important}
#game .actual-plate{height:auto;min-height:0;flex:1;width:100%;align-items:center}
@media(max-width:800px) and (orientation:portrait){#game .workbench{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#game .stationgrid{grid-template-columns:1fr}#game .equipment-grid{grid-template-columns:1fr}#game .actual-plate{grid-template-columns:1fr}#game .plate-checklist{display:none}}
#game .order.selected .speech{left:80px;right:0;top:0;max-height:34px!important;font-size:11px;line-height:1.15}
#game .order .customer{visibility:hidden}#game .order strong{grid-column:2;grid-row:2}#game .order .detail{grid-column:2;grid-row:3}
#game .stations .stockbar,#game .stations .supplybar,#game .stations .empty-bain,#game .stations .bain-empty,#game .stations .storage-empty,#game .stations .pantry-status{color:#e9dacb}
@media(max-height:550px) and (orientation:landscape){#game{grid-template-rows:28px 78px minmax(0,1fr)}#game .order{height:75px;min-height:75px}#game .order .visitor{height:70px}#game .order.selected .speech{left:54px;max-height:24px!important}#game .order .detail{font-size:10px}#game .actual-plate .meal-scene{width:52px;height:52px}}
#game .customer-face{top:auto;transform:none;width:20px;height:20px;line-height:20px;text-align:center}
#game .order.selected .speech{min-height:0;height:auto;box-sizing:border-box}
@media(max-height:550px) and (orientation:landscape){#game .customer-face{width:16px;height:16px;line-height:16px;bottom:18px}}
/* Playful customers: distinct smiles, outfits and accessories. */
#game .emoji-smile .customer-face{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;position:absolute;top:0;bottom:auto;left:5px;width:90px;height:90px;font-size:80px;line-height:90px;background:none;border-radius:0;transform:none;z-index:4}
.smile-accessory{position:absolute;top:-8px;left:20px;font-size:52px;line-height:1;z-index:5;transform:rotate(-10deg)}
#game .emoji-smile .avatar-shirt{top:75px}
#game .order .emoji-smile{height:135px}
#game .chicken-prep{margin:0 0 8px;padding:8px;border:1px solid #bd985c;background:#241a2e;border-radius:10px;color:#fff1d5}
.chicken-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:14px}
.chicken-title span{color:#ecd9af;font-size:13px}
.chicken-controls{display:flex;gap:7px;margin-top:6px}
.chicken-controls>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:480px){.chicken-controls{flex-direction:column}.chicken-action{flex-wrap:wrap}.chicken-title span{overflow-wrap:anywhere}}
#game .chicken-controls button{min-height:40px;flex:1;padding:6px;background:#fff1d4;color:#3e2542;border:1px solid #d6ab66;border-radius:8px;font-size:14px}
#game .chicken-controls button:disabled{opacity:.48;cursor:default}
.chicken-action{display:flex;align-items:center;gap:8px;padding-top:6px;font-size:14px;color:#f3d68d}
.chicken-action span{font-size:28px;display:inline-block;animation:chef-chop .35s ease-in-out infinite}
.chicken-action.wash span{animation:chef-rock .5s ease-in-out infinite}
#your-chef[data-motion='washing'] .chef-tool{animation:chef-stir .6s ease-in-out infinite}
@media(max-height:550px) and (orientation:landscape){#game .chicken-prep{padding:5px;margin-bottom:5px}.chicken-title span{font-size:12px}#game .chicken-controls button{min-height:36px;padding:4px}.chicken-action{padding-top:3px;font-size:12px}.chicken-action span{font-size:20px}}
@media(prefers-reduced-motion:reduce){.chicken-action span{animation:none!important}}
/* Keep complete customer conversations outside the small order cards. */
#game{grid-template-rows:34px 125px auto minmax(0,1fr)}
#game .order.selected .speech{display:none!important}
#game .orders{overflow:hidden}
#game .orders{grid-template-rows:minmax(0,1fr)}
#game .orderline{min-height:0}
@media(max-height:550px) and (orientation:landscape){#game .orderline{padding-bottom:0;align-items:center}#game .order{grid-template-rows:16px 18px 4px;align-content:center;padding:0 4px;gap:2px 4px}#game .order .visitor{grid-row:1/4;height:48px}#game .order .customer-figure{height:48px}#game .order strong{grid-row:1;align-self:center}#game .order .detail{grid-row:2}#game .order .patience{grid-row:3}}
#game .conversation-panel{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;background:#fff1d4;color:#3e2542;border:1px solid #bd985c;border-radius:12px;padding:8px 12px}
#game .conversation-panel .customer-talk{display:block;overflow:visible;padding:0;color:#3e2542;font-size:15px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#game .customer-talk p{color:#3e2542;line-height:1.35;margin:0}
#game .customer-talk .chef-line{margin-bottom:4px}
.conversation-controls{display:flex;flex-wrap:wrap;gap:6px;max-width:305px}
#game .conversation-controls button{min-height:40px;background:#493052;color:#fff5e0;border:1px solid #634872;font-size:14px;padding:8px 10px}
#game .conversation-controls #chat-rude{background:#762c39;border-color:#762c39}
#game .conversation-controls button:disabled{opacity:1;background:#e1d5cb;color:#65575c;border-color:#ad9f97;cursor:not-allowed}
#chat-cooldown{flex-basis:100%;font-size:12px;color:#58454f}
@media(max-width:800px){#game .conversation-panel{grid-template-columns:1fr;gap:6px}.conversation-controls{max-width:none}#game .conversation-controls button{flex:1;min-width:0}#chat-cooldown{flex-basis:auto}}
@media(max-height:550px) and (orientation:landscape){#game{grid-template-rows:28px 68px auto minmax(0,1fr)}#game .orders{padding-top:0}#game .order{height:65px;min-height:65px}#game .order .visitor{height:60px}#game .conversation-panel{grid-template-columns:minmax(0,1fr) 260px;padding:5px 8px;gap:8px}#game .conversation-panel .customer-talk{font-size:13px;line-height:1.25}#game .customer-talk p{line-height:1.25}#game .conversation-controls button{min-height:36px;font-size:12px;padding:5px 7px}}
/* Explicit foregrounds protect text against inherited light button colours. */
:root{--muted:#e4d7e8;--orange:#f4ca7d;--line:#896b83}
body:has(#home:not([hidden])) .intro p,body:has(#home:not([hidden])) .quicksteps,body:has(#home:not([hidden])) .brand small,body:has(#home:not([hidden])) #home-reputation,body:has(#home:not([hidden])) .review-card p{color:#eee3ef}
body:has(#home:not([hidden])) .levelcard small{color:#f4d59b;font-size:14px;line-height:1.4}
body:has(#home:not([hidden])) .levelcard>span{color:#f4ca7d;font-size:13px}
body:has(#home:not([hidden])) .quicksteps{font-size:15px}
body:has(#home:not([hidden])) .game-version,body:has(#home:not([hidden])) .game-version p{color:#e8dbe9}
header .header-actions .ghost,#home .home-actions .ghost{background:#efe5d5;color:#3e2542;border:1px solid #bd985c;opacity:1}
#home .primary{background:#f4ca7d;color:#30202b}
#home .character-select{color:#3e2542}
#game .empty-bain,#game .bain-empty,#game .pantry,#game .pantry span,#game #stock,#game .stockbar{color:#eee0cf}
/* Serving stays reachable independently of scroll position and browser bars. */
body:has(#game:not([hidden])){overflow-y:auto}
@media(max-width:900px),(max-height:600px){
 #game{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;overflow-y:auto}
 #game .assembly{padding-bottom:12px!important;overscroll-behavior-y:auto;touch-action:pan-y}
 #game .serveactions{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));background:#281a30;border-top:2px solid #bd985c;box-shadow:0 -5px 18px #0005;gap:8px}
 #game .serveactions button{min-height:44px!important;white-space:normal;flex:1;min-width:0}
 #game .serveactions #serve{flex:2;background:#f4ca7d;color:#30202b}
 #game .serveactions #serve:disabled{opacity:1;background:#807786;color:#eee7ee;cursor:not-allowed}
 #game .serveactions #clear{background:#efe5d5;color:#3e2542}
 #game .assembly{grid-template-rows:auto minmax(90px,1fr) auto auto!important}
 #game .workbench{min-height:160px}
}
@media(max-height:550px) and (orientation:landscape){#game{grid-template-rows:28px 54px auto minmax(0,1fr);gap:4px}#game .order{height:52px;min-height:52px}#game .order .visitor{height:50px}#game .order .chef-avatar{transform:scale(.36);transform-origin:top center;position:absolute;top:0;bottom:auto}#game #your-chef .chef-avatar{transform:scale(.4);transform-origin:top center;top:0;bottom:auto}#game .order strong{grid-row:1/3;align-self:center}#game .conversation-panel{padding:4px 8px}#game .conversation-panel .customer-talk{font-size:12px}#game .conversation-controls button{min-height:32px}#game .assembly{grid-template-rows:49px minmax(72px,1fr) auto auto 36px;overflow:auto;gap:2px}#game #recipe{min-height:49px;padding:3px}#game .ticket-heading>span{display:none}#game .recipe-checklist .recipe-item{font-size:11px}#game .plates-heading{height:19px;min-height:19px;font-size:12px;margin-bottom:0}#game .actual-plate{min-height:48px}#game .actual-plate .meal-scene{width:48px;height:48px}#game .serveactions button{min-height:36px}#game .empty-bain{color:#eee0cf}}

/* 2.4: reserve the footer inside the viewport; keep customer art in its column. */
@media(max-width:900px),(max-height:600px){
 #game .workbench{min-height:0}
 #game .assembly{align-content:start;grid-template-rows:auto minmax(90px,1fr) auto auto!important}
 #game .assembly #plate{min-height:90px}
}
@media(max-height:550px) and (orientation:landscape){
 #game .orders{grid-template-rows:1fr}
 #game .order{grid-template-columns:44px minmax(0,1fr);overflow:hidden}
 #game .order .visitor,#game .order .customer-figure{width:44px;min-width:44px;height:48px;overflow:hidden}
 #game .order .emoji-smile{transform:scale(.44);transform-origin:top left;width:100px;min-width:100px;height:110px;flex:none}
 #game .order .emoji-smile .customer-face{font-size:80px}
 #game .order strong{grid-row:1;line-height:16px}
 #game .order .detail{grid-row:2;line-height:16px}
 #game .assembly{padding:5px!important;grid-template-rows:auto minmax(90px,1fr) auto auto!important}
 #game .actual-plate .meal-scene{width:72px;height:72px}
}
@media(max-width:480px) and (orientation:portrait){
 #game{grid-template-rows:auto 125px auto minmax(0,1fr)}
 #game .stats{flex-wrap:wrap;gap:6px 12px}
}

/* 2.5: keep actions outside the scrolling assembly and give the table real space. */
#game{grid-template-rows:34px 125px auto minmax(0,1fr) 44px}
#game>.serveactions{margin:0;align-self:stretch}
@media(max-width:900px),(max-height:600px){
 #game{height:auto;min-height:calc(100dvh - 42px);grid-template-rows:34px 125px auto minmax(260px,1fr);overflow:visible;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
 #game .workbench{min-height:260px;height:max(260px,calc(100dvh - 340px))}
 #game .workbench>.stations,#game .workbench>.assembly{height:100%;margin:0;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 #game .assembly{display:flex!important;flex-direction:column;gap:5px;overflow-y:auto!important;align-items:stretch}
 #game .assembly>#recipe,#game .assembly>#plate,#game .assembly>#ingredients,#game .assembly>#topping-prep{flex-shrink:0}
 #game .assembly>#plate{flex-grow:1;min-height:110px}
 #game>.serveactions{margin:0;box-sizing:border-box;left:0;right:0;bottom:0}
}
@media(max-height:550px) and (orientation:landscape){
 body:has(#game:not([hidden])) header{height:32px;padding:0 8px}
 body:has(#game:not([hidden])) .brand-logo{width:26px;height:26px}
 body:has(#game:not([hidden])) .header-actions button{min-height:30px;font-size:12px;padding:3px 8px}
 #game{min-height:calc(100dvh - 32px);grid-template-rows:30px 48px auto minmax(240px,1fr);gap:4px;padding:2px 5px calc(66px + env(safe-area-inset-bottom,0px))!important}
 #game .stats{gap:8px;flex-wrap:nowrap}
 #game .stats span{font-size:10px;gap:4px}
 #game .stats b{font-size:13px}
 #game .stats .ghost{min-height:28px;font-size:12px}
 #game .orders{grid-template-columns:48px minmax(0,1fr);padding:0 4px;box-shadow:none}
 #game .order{height:46px;min-height:46px;flex-basis:180px}
 #game #your-chef>span:last-child{display:none}
 #game #your-chef .chef-avatar{transform:scale(.3)}
 #game .order .visitor,#game .order .customer-figure{height:44px}
 #game .order .emoji-smile{transform:scale(.36)}
 #game .conversation-panel{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:3px 6px}
 #game .conversation-panel .customer-talk{font-size:12px;line-height:1.2}
 #game .conversation-controls{gap:4px;flex-wrap:nowrap;max-width:none;align-items:center}
 #game .conversation-controls button{min-height:32px;font-size:11px;padding:4px 6px}
 #game #chat-cooldown{font-size:10px;flex-basis:auto}
 #game .workbench{height:max(240px,calc(100dvh - 212px));min-height:240px;padding:4px}
 #game .workbench>.stations,#game .workbench>.assembly{padding:5px!important}
 #game .chicken-prep{padding:4px;margin-bottom:4px}
 #game .chicken-title{font-size:12px}
 #game .chicken-title span{font-size:10px}
 #game .chicken-controls button{min-height:36px;font-size:12px;padding:4px}
 #game .assembly>#plate{min-height:100px}
 #game>.serveactions{padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px))}
}
/* 2.6: compact conversations and one serve action on the board side. */
#game .conversation-panel{position:relative;gap:6px;padding:4px 8px}
#game .conversation-panel .customer-talk{font-size:12px;line-height:1.2;min-width:0}
#game .customer-talk p{font-size:12px;line-height:1.2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .customer-talk .chef-line{margin-bottom:1px}
#game .conversation-controls{gap:4px;flex-wrap:nowrap;max-width:none;align-items:center}
#game .conversation-controls button{min-height:30px;font-size:12px;padding:4px 7px}
#chat-cooldown{flex-basis:auto;font-size:10px;white-space:nowrap}
#conversation-history summary{cursor:pointer;font-size:11px;padding:5px;color:#493052;list-style:none}
#conversation-log{position:absolute;right:0;top:100%;width:min(440px,95vw);max-height:180px;overflow:auto;background:#fff1d4;border:2px solid #bd985c;border-radius:10px;padding:10px;z-index:90;box-shadow:0 8px 20px #0007}
#conversation-log p{font-size:13px;line-height:1.35;color:#3e2542;margin:0 0 8px;white-space:normal}
#game>.serveactions{justify-content:flex-end;background:transparent;box-shadow:none;border:0}
#game>.serveactions #serve{flex:0 1 49%;min-height:44px}
.portion-controls{display:flex;align-items:center;gap:4px;margin-bottom:5px;font-size:12px}
.portion-controls button{min-height:30px;min-width:30px;font-size:12px;padding:4px;background:#594360;color:#fff1d4;border:1px solid #997390}
.portion-controls button[aria-pressed=true]{background:#f4ca7d;color:#30202b;border-color:#f4ca7d}
#cook-picker{padding:6px;border:1px solid #bd985c;background:#493052;border-radius:8px;margin-bottom:5px;font-size:12px}
.inline-dishes,.fridge-tiles,.leftover-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:4px}
.inline-dishes button,.fridge-tiles button,.leftover-tiles button{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:44px;padding:5px;background:#fff1d4;color:#3e2542;font-size:12px}
.inline-dishes .food-image,.fridge-tiles .food-image,.leftover-tiles .food-image{width:32px;height:28px}
#game .cool-food{min-height:28px;font-size:11px;padding:3px;width:100%;background:#d1edf0;color:#28474a}
#game .fridge{border-top:1px solid #997390;margin-top:6px;padding-top:5px;font-size:12px;color:#eee0cf}
#game .fridge h4{font-size:12px;margin:0 0 4px;color:#eee0cf}
#game .fridge button small{font-size:10px}
.shift-result h2{font-size:22px;margin:6px 0 10px}
.shift-result h3{font-size:15px;margin:12px 0 6px}
.shift-result .resultstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}
.shift-result .resultstats>div{background:#493052;color:#fff1d4;border:1px solid #bd985c;border-radius:8px;padding:8px;font-size:12px}
.shift-result .resultstats b{display:block;font-size:20px}
.result-chips{display:flex;flex-wrap:wrap;gap:5px;font-size:12px}
.result-chips span{padding:4px 6px;background:#493052;border-radius:5px;color:#fff1d4}
.fridge-summary{font-size:12px;margin:8px 0}
.shift-result .upgrades{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.shift-result .upgrades button{min-height:64px;padding:8px 5px;display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:center;border:1px solid #bd985c;background:#f4ca7d;color:#30202b;font-size:12px}
.shift-result .upgrades button small{display:block;font-size:12px;margin:0}
.shift-result .upgrades button:disabled{opacity:1;background:#493d50;color:#d9c9d9;border-color:#75617c}
.result-review-details{font-size:12px;margin:10px 0}
.result-review-details summary{cursor:pointer;min-height:30px}
.shift-result .resultactions{display:flex;gap:6px;margin-top:10px}
.shift-result .resultactions button{font-size:13px;padding:8px;min-height:40px}
@media(max-width:900px),(max-height:600px){
 #game{padding-bottom:8px!important;grid-template-rows:34px 100px auto minmax(260px,1fr)}
 #game .workbench{height:max(260px,calc(100dvh - 282px))}
 #game .workbench>.assembly{height:calc(100% - 58px)}
 #game>.serveactions{left:calc(50% + 4px);right:8px;bottom:0;padding:5px 0 calc(5px + env(safe-area-inset-bottom,0px));background:#281a30;border-radius:8px 8px 0 0}
 #game>.serveactions #serve{flex:1;width:100%}
}
@media(max-height:550px) and (orientation:landscape){
 #game{grid-template-rows:28px 38px auto minmax(240px,1fr);padding:2px 5px 8px!important;gap:3px}
 #game .orders{grid-template-columns:32px minmax(0,1fr)}
 #game .order{height:36px;min-height:36px;flex-basis:170px;grid-template-columns:30px minmax(0,1fr);gap:1px 3px}
 #game .order .visitor,#game .order .customer-figure{width:30px;min-width:30px;height:34px}
 #game .order .emoji-smile{transform:scale(.27)}
 #game #your-chef .chef-avatar{transform:scale(.24)}
 #game .order strong{font-size:11px;line-height:13px}
 #game .order .detail{font-size:10px;line-height:12px}
 #game .conversation-panel{grid-template-columns:minmax(0,1fr) auto;padding:3px 5px;gap:4px}
 #game .conversation-panel .customer-talk,#game .customer-talk p{font-size:10px;line-height:12px}
 #game .conversation-controls button{min-height:28px;font-size:11px;padding:3px 5px}
 #conversation-history summary{font-size:10px;padding:4px}
 #game .workbench{height:max(240px,calc(100dvh - 145px));min-height:240px}
 #game .portion-controls{margin-bottom:3px}
 #game .portion-controls button{min-height:28px}
 #game>.serveactions{left:calc(50% + 4px);right:8px;padding:4px 0 calc(4px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:480px){.shift-result .upgrades{grid-template-columns:repeat(3,minmax(0,1fr))}.inline-dishes,.fridge-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
#game .free-station{cursor:pointer}
#game .free-station:hover{filter:brightness(1.08)}
#game .free-station .cooking-food{touch-action:manipulation}
@media(max-width:1000px){
 #game .stationgrid,#game .equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 #game .stationgrid .station,#game .equipment-grid .station{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px;text-align:center;min-height:70px}
 #game .station h4{font-size:11px;margin:0;max-width:100%}
 #game .station .cooking-food,#game .equipment-grid .cooking-food{width:40px;height:36px;min-height:36px;margin:0}
 #game .station b{font-size:10px;max-width:100%}
 #game .station small{font-size:10px;line-height:12px}
 #game .station .cook-meter{width:100%}
 #game .station .station-actions button{font-size:10px;min-height:36px;padding:3px}
}
