.restaurant{grid-template-rows:52px 44px minmax(88px,.8fr) 30px minmax(170px,1.4fr) 80px 56px 22px 26px;min-height:0;background-position:center 35%}
.restaurant header{background:linear-gradient(120deg,#092d25,#1f5140,#092d25);border-bottom:1px solid #cda66b}
.restaurant .hud{background:#0b2923ed}.restaurant .hud strong{font-variant-numeric:tabular-nums}
.restaurant .customers{padding-inline:12%;gap:30px}.restaurant .ticket{border-radius:12px;background:#fff3d8;max-width:250px}.restaurant .order-foods{height:42px;min-height:32px}.restaurant .order-foods .food{width:32px;height:32px}
.restaurant .worktop{grid-template-columns:1fr 1.35fr 1fr;padding:10px 4%;gap:18px;background:repeating-linear-gradient(2deg,#6c422b22 0 2px,transparent 2px 12px),linear-gradient(100deg,#794c2f,#c28f58 45%,#805136);box-shadow:inset 0 5px 10px #351b19aa}
.restaurant .station{background:none;border:0;box-shadow:none;padding:0;color:#ffeec9}.restaurant .station h2{font-size:11px;text-shadow:0 1px 4px #30150b;margin:0 0 3px}
.restaurant .grills,.restaurant .sides #side-machines{align-items:stretch;gap:8px}
.restaurant .machine,.restaurant #oven .machine{display:flex;flex-direction:column;background:transparent;border:1px solid #efd7ae40;box-shadow:none;border-radius:14px;min-height:0;overflow:visible;padding:0;justify-content:flex-end;gap:0;isolation:isolate;touch-action:none;user-select:none}
.appliance-art{position:absolute;width:min(100%,210px);aspect-ratio:1;max-height:calc(100% - 32px);top:45%;left:50%;transform:translate(-50%,-50%);background:url('./appliances.webp') 0 0/200% 200% no-repeat;z-index:-1;filter:drop-shadow(0 8px 5px #24140b70)}
.machine[data-item=fries] .appliance-art{background-position:100% 0}.machine[data-item=juice] .appliance-art{background-position:0 100%}.machine[data-item=pizza] .appliance-art{background-position:100% 100%}
.restaurant .machine .food,.restaurant #oven .machine .food{position:absolute;width:65px;height:65px;left:50%;top:26%;transform:translate(-50%,-30%);margin:0;opacity:0;transition:opacity .2s}
.restaurant .machine.cooking .food,.restaurant .machine.ready .food,.restaurant .machine.burnt .food{opacity:1}
.restaurant .machine[data-item=juice] .food{top:50%;width:58px;height:58px}.restaurant .machine[data-item=pizza] .food{top:39%}
.restaurant .machine b{font-size:12px;line-height:1.4;text-shadow:0 1px 3px #000;background:#192c24d9;border-radius:6px 6px 0 0;padding:2px 8px;min-width:80%}
.restaurant .machine small{font-size:10px;line-height:1.5;background:#172b23e8;color:#e6dbc4;border-radius:0 0 6px 6px;width:100%;padding:1px 2px 7px;margin:0}
.restaurant .machine progress{position:absolute;bottom:1px;left:5%;width:90%;height:4px;accent-color:#ffd16e}
.restaurant .machine.ready{outline:2px solid #c9ed8b;outline-offset:2px;box-shadow:0 0 18px #a6e28240}.restaurant .machine.ready small{background:#244f31;color:#dff8b6}.restaurant .machine.burnt small{background:#6e2c23;color:#ffe4cf}
.restaurant .machine.cooking:after{top:18%;left:40%;font-size:24px;pointer-events:none}.restaurant .machine.locked{opacity:.5}.restaurant #oven:not(:empty){height:38%;margin-top:7px}.restaurant #oven .appliance-art{max-height:100%;height:100%;width:auto;top:42%}.restaurant #oven .machine b{display:none}
.restaurant .assembly{border:1px solid #f5d09c5c;background:linear-gradient(145deg,#ddb178cc,#b77f46cc);box-shadow:inset 0 1px #ffe6bba1,0 7px 14px #341c1240;border-radius:20px;padding:8px 12px;overflow:hidden}
.restaurant .assembly>span{letter-spacing:.3px;font-size:11px;color:#51321f}.restaurant .tray{margin:2px 0;max-width:470px;width:100%;min-height:35px;border-radius:38%;background:radial-gradient(ellipse at 50% 64%,var(--plate) 0 53%,var(--rim) 55%,var(--plate) 57% 65%,transparent 67%);box-shadow:none;touch-action:none;user-select:none}
.meal-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 6px 4px #49251140)}
.restaurant .tray .placeholder{position:absolute;max-width:70%;font-size:12px;line-height:1.7;color:#79613e;pointer-events:none}.restaurant .tray-items{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.recipe-checklist{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;width:100%;padding:2px 0;flex-shrink:0}.recipe-chip{display:flex;align-items:center;gap:3px;background:#f9eed5ae;border:1px solid #7b5f3540;border-radius:20px;color:#6c5037;font-size:10px;padding:1px 6px 1px 2px}.recipe-chip .food{height:21px;width:21px}.recipe-chip b{font-size:13px;color:#967f57}.recipe-chip.complete{background:#e4f2c8;border-color:#557d47;color:#355b2a}.recipe-chip.complete b{color:#3e762e}.recipe-extra{font-size:10px;color:#8b221a;background:#ffdfc7;border-radius:5px;padding:2px 6px}
.restaurant .tray-actions{position:absolute;top:5px;inset-inline-end:5px;gap:3px}.restaurant .tray-actions button{width:25px;height:25px;font-size:18px;background:#fff0cc7a;border-color:#a4754740}
.restaurant .ingredients{padding:5px 12%;gap:14px;background:linear-gradient(#52321d,#38281d);border-top:1px solid #e8c38e}.restaurant .ingredient{background:var(--metal);border:1px solid #e3c7979c;border-radius:13px;padding:3px 6px;box-shadow:inset 0 2px 6px #18231e80,0 3px 5px #22170e;touch-action:none;user-select:none}.restaurant .ingredient .food{width:68px;height:68px;max-height:none;filter:drop-shadow(0 4px 3px #291d1660)}.restaurant .ingredient span:last-child{font-size:11px;padding:4px 8px;border-radius:5px}.restaurant .ingredient:disabled{opacity:.3;filter:grayscale(.4)}
.restaurant .actions{background:#102d25;border:0;padding:6px 8%;gap:16px}.restaurant .actions .primary{background:linear-gradient(#e8b75e,#bd7c2b);color:#332411;border:1px solid #ffe1a0;box-shadow:inset 0 1px #fff3bb,0 3px #61431e;border-radius:11px;font-size:19px}.restaurant .actions .secondary{background:#1f4436;border-color:#b99b5b66;box-shadow:none}
.service-streak{text-align:center;background:#102d25;color:#d6be84;font-size:11px;line-height:22px;overflow:hidden}.restaurant footer{background:#0a211b;border-top:1px solid #ac926536}
.service-pop{position:fixed;pointer-events:none;z-index:1001;transform:translateX(-50%)}
.restaurant .tray{background-size:100% 65%;background-position:center 75%;background-repeat:no-repeat}
.restaurant .machine.burn-warning{outline-color:#ff913f;animation:burn-pulse .7s infinite alternate}.restaurant .machine.burn-warning small{background:#893b1e;color:#fff2c6}.restaurant .machine.burnt .food{filter:brightness(.15) saturate(.1)}.restaurant .machine.burnt:after{content:'♨';color:#777;position:absolute;top:12%;font-size:30px;animation:steam 1s infinite}@keyframes burn-pulse{to{box-shadow:0 0 15px #ff6b3588}}
.drag-ghost{position:fixed;pointer-events:none;z-index:1000;width:100px;height:100px;opacity:.95;filter:drop-shadow(0 8px 5px #0007)}canvas.drag-ghost{width:160px;height:123px}.drop-ready{outline:2px dashed #ffe3a1;outline-offset:-3px}.drop-hover{outline:3px solid #c0ec86;outline-offset:-3px;filter:brightness(1.1)}.service-pop{color:#fff1b1;background:#183e2eea;border:1px solid #edcb7a;border-radius:30px;padding:9px 18px;white-space:nowrap;font-weight:bold;box-shadow:0 5px 20px #0005}.order-error{animation:order-shake .28s linear}@keyframes order-shake{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
[data-tools=copper] .appliance-art{filter:sepia(.5) saturate(1.5) drop-shadow(0 8px 5px #24140b70)}[data-tools=black] .appliance-art{filter:brightness(.65) saturate(.3) drop-shadow(0 8px 5px #24140b70)}
@media(max-width:700px){.restaurant{grid-template-rows:44px 40px minmax(94px,.8fr) 30px minmax(174px,1.5fr) 73px 52px 20px 25px}.restaurant header h1{font-size:19px}.restaurant .customers{padding-inline:5%;gap:10px}.restaurant .order-foods{height:46px}.restaurant .order-foods .food{height:22px;width:22px}.restaurant .worktop{padding:8px 5px;gap:6px;grid-template-columns:1fr 1.65fr 1fr}.restaurant .grills,.restaurant .sides #side-machines{flex-direction:column;gap:7px}.restaurant .station h2{font-size:9px}.restaurant .machine{border-radius:9px}.restaurant .machine b{font-size:9px;padding:0 4px;line-height:1.2;min-width:90%}.restaurant .machine small{font-size:8px;line-height:1.2;padding:1px 1px 5px}.appliance-art{width:100%;max-height:calc(100% - 19px);top:42%}.restaurant .machine .food{width:45px;height:45px;top:23%}.restaurant .machine[data-item=juice] .food{width:34px;height:34px;top:43%}.restaurant .assembly{border-radius:14px;padding:6px 4px}.restaurant .assembly>span{font-size:9px;padding-top:22px}.restaurant .tray .placeholder{font-size:10px}.recipe-checklist{gap:2px}.recipe-chip{padding:1px 4px 1px 1px;font-size:8px;gap:1px}.recipe-chip .food{height:17px;width:17px}.recipe-chip b{font-size:10px}.restaurant .ingredients{padding:4px 10px;gap:7px}.restaurant .ingredient{padding:1px;gap:0}.restaurant .ingredient .food{width:46px;height:46px}.restaurant .ingredient span:last-child{font-size:10px;padding:2px 6px}.restaurant .actions{padding:5px 8px;gap:8px}.restaurant .actions .primary{font-size:18px}.service-streak{font-size:9px;line-height:20px}.restaurant .overlay{inset:84px 0 97px}}
@media(max-height:640px){.restaurant{grid-template-rows:36px 34px minmax(60px,.7fr) 26px minmax(116px,1.3fr) 56px 44px 18px 24px}.restaurant header{padding-block:2px}.restaurant header .icon{height:29px;min-height:29px}.restaurant .order-foods{height:40px;min-height:36px}.restaurant .order-foods .food{height:17px;width:17px}.restaurant .worktop{padding-block:4px}.restaurant .assembly{padding:3px}.restaurant .assembly>span{padding-top:0;font-size:8px;align-self:flex-start}.restaurant .tray-actions{top:1px;inset-inline-end:2px}.restaurant .tray-actions button{height:20px;width:20px;font-size:15px}.restaurant .tray{min-height:30px}.recipe-chip{padding:0 2px;font-size:7px;line-height:13px}.recipe-chip .food{height:14px;width:14px}.recipe-chip b{font-size:9px}.restaurant .ingredient .food{width:33px;height:33px}.restaurant .ingredient span:last-child{font-size:8px;padding:1px 5px}.restaurant .machine b{font-size:8px}.restaurant .machine small{font-size:7px}.restaurant .machine .food{width:32px;height:32px}.restaurant .machine[data-item=juice] .food{width:25px;height:25px}.restaurant .actions .primary{font-size:16px}.service-streak{font-size:8px;line-height:18px}.restaurant .overlay{inset:70px 0 86px}}
@media(max-height:500px) and (min-width:560px){.restaurant{grid-template-columns:30% 70%;grid-template-rows:34px 30px minmax(115px,1fr) 43px 39px 20px;height:calc(100svh - var(--game-guest-height,0px));min-height:0}.restaurant header{grid-area:1/1/2/3}.restaurant .hud{grid-area:2/1/3/3}.restaurant .customers{grid-area:3/1/4/2;padding:24px 6px 0;gap:5px}.restaurant .service-edge{top:64px;left:0;width:30%;height:22px}.restaurant .worktop{grid-area:3/2/4/3;grid-template-columns:1fr 1.25fr 1fr;gap:6px;padding:3px 7px}.restaurant .grills,.restaurant .sides #side-machines{flex-direction:row;gap:3px}.restaurant .assembly>span{padding:0}.restaurant .ingredients{grid-area:4/1/5/3;padding:2px 15%}.restaurant .ingredient{flex-direction:row}.restaurant .actions{grid-area:5/1/6/3;padding:2px 12%;gap:15px}.restaurant footer{grid-area:6/1/7/3;font-size:8px}.service-streak{display:none}.restaurant .order-foods{height:28px;min-height:28px}.restaurant .order-foods .food{width:14px;height:14px}.recipe-chip span:not(.food){display:none}.restaurant .overlay{inset:64px 0 59px}.restaurant .machine b{font-size:8px}.restaurant .machine small{font-size:7px}.restaurant .tray-actions{top:1px}.restaurant .tray-actions button{width:18px;height:18px}.restaurant .station h2{display:none}}

.first-order-guide { margin: 4px 0; padding: 5px 9px; border-radius: 10px; color: #fff1cd; background: #30483f; font-size: 12px; }
.restaurant-resume { font-weight: 700; }
