*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#10251e;color:#fff0c9;font-family:Tahoma,Arial,sans-serif}button,a,input{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #fff2a8;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.restaurant{--gold:#e6ba6c;--plate:#eee9dc;--rim:#ccc1a5;--metal:linear-gradient(120deg,#8d9190,#e2e0d5 20%,#626d6b 45%,#b8bab1 70%,#55605e);position:relative;max-width:1500px;margin:auto;height:calc(100svh - var(--game-guest-height,0px));min-height:430px;display:grid;grid-template-rows:56px 48px minmax(100px,1fr) 32px minmax(170px,1.35fr) 86px 60px 30px;background:#253b2c url('./kitchen.webp') center/cover;isolation:isolate;overflow:hidden;border-inline:1px solid #8b72494d}header{display:flex;align-items:center;gap:14px;padding:7px 20px;background:linear-gradient(#193c2d,#08261d);border-bottom:2px solid var(--gold)}h1{flex:1;font-size:clamp(17px,2.5vw,30px);text-align:center;margin:0;text-shadow:0 2px #061b15}header .icon{height:40px;width:42px}.icon{border:1px solid #d5b977;background:#133f32;color:#fff1c6;border-radius:12px;font-size:24px;min-width:38px;min-height:38px}.hud{display:flex;align-items:center;justify-content:space-around;gap:6px;background:#0b281fef;border-bottom:1px solid #ae845b;padding:5px 15px}.hud>div{display:flex;align-items:center;gap:8px}.hud span{font-size:11px;color:#dacda8}.hud strong{font-size:23px;line-height:1}.hud button{background:#173c2b;border:1px solid #cfac67;border-radius:9px;color:#ffedbd;padding:6px 14px}.wallet{font-size:14px;color:#ffdd84}.customers{display:flex;justify-content:space-evenly;align-items:stretch;padding:6px 7% 0;gap:18px;min-height:0;background:linear-gradient(#0002,transparent)}.customer{position:relative;flex:1;max-width:280px;background:transparent;border:0;padding:0;display:flex;flex-direction:column;align-items:center;min-width:0;color:#243529}.customer.absent{opacity:0;pointer-events:none}.portrait{width:100%;flex:1;min-height:0;background-image:url('./customers.webp');background-size:300% 100%;background-repeat:no-repeat;background-position:0% center;max-width:230px}.customer:nth-child(2) .portrait{background-position:50% center}.customer:nth-child(3) .portrait{background-position:100% center}.ticket{z-index:1;background:linear-gradient(#fff5dc,#e8d9b6);border:2px solid #ad8d53;border-radius:15px;padding:5px 10px;width:100%;max-width:220px;box-shadow:0 3px 7px #0005;position:relative}.ticket:after{content:'';position:absolute;bottom:-8px;left:48%;border:5px solid transparent;border-top-color:#e8d9b6;border-bottom:0}.customer.selected .ticket{border-color:#fff3af;box-shadow:0 0 0 3px #d5a53b,0 5px 18px #0007}.order-foods{display:flex;justify-content:center;align-items:center;gap:2px;min-height:32px;flex-wrap:wrap}.order-foods .food{width:32px;height:32px}.patience-track{height:5px;border-radius:5px;background:#9a947a;overflow:hidden;margin-top:4px}.patience-track i{display:block;height:100%;background:linear-gradient(#98de61,#39922b);transform-origin:left}.customer.urgent .patience-track i{background:#eaa12c}.service-edge{display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(#8c4c22,#bd813f 15%,#7c451e 50%,#381c0f);border-block:2px solid #e0ab5b;padding:2px 12px;z-index:2;box-shadow:0 5px 10px #0007}#status{font-size:12px;text-align:center;max-width:90%}.apron{width:23px;color:#f5efe1;flex-shrink:0}.apron svg{height:25px;width:22px}.worktop{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:16px;padding:12px 5%;min-height:0;background:linear-gradient(95deg,#66331377,#b37d3e44,#40240b88)}.station{background:var(--metal);border:2px solid #bbb5a3;border-radius:10px;padding:7px;box-shadow:0 5px 8px #0006,inset 0 2px 2px #fff8;display:flex;flex-direction:column;min-height:0;color:#1c2a22}.station h2{font-size:12px;text-align:center;margin:0 0 5px;text-shadow:0 1px #fff7}.grills{display:flex;gap:7px;flex:1;min-height:0}.machine{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;height:100%;min-height:45px;border:1px solid #b4afa0;border-radius:8px;padding:4px;background:repeating-linear-gradient(0deg,#111d1b 0 7px,#29312d 8px 10px);color:#fff2c8;overflow:hidden;box-shadow:inset 0 2px 10px #000b}.machine .food{width:min(90px,80%);height:auto;aspect-ratio:1;max-height:95px;flex:1;min-height:10px}.machine b{font-size:11px;z-index:1}.machine small{font-size:9px;z-index:1}.machine progress{height:5px;width:85%;accent-color:#e6a844}.machine.ready{border:2px solid #a9e16d;box-shadow:0 0 9px #96e47577}.machine.burnt .food{filter:brightness(.2) saturate(.1)}.machine.burnt{border-color:#fa6d40}.machine.cooking:after{content:'♨';position:absolute;top:5px;color:#fff8;font-size:26px;animation:steam 1.5s infinite}.machine.locked{background:#20312a}.machine.locked .food{filter:grayscale(1);opacity:.35}.sides #side-machines{display:flex;flex:1;gap:7px;min-height:0}.sides .machine{background:linear-gradient(#b9bba9,#6f796f 40%,#343f38)}#oven:not(:empty){height:40%;margin-top:6px}#oven .machine{flex-direction:row}#oven .food{height:100%;width:auto;aspect-ratio:1}.assembly{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;position:relative;background:linear-gradient(100deg,#aa703c,#d19958 50%,#a66b36);border:2px solid #72451f;border-radius:12px;box-shadow:0 8px 8px #0005,inset 0 2px #f9ca8b;padding:6px}.assembly>span{font-size:11px;color:#312818;text-align:center;font-weight:bold}.tray{position:relative;flex:1;min-height:40px;width:94%;max-width:400px;border-radius:48%;margin:6px 0;background:radial-gradient(ellipse,#fff 10%,var(--plate) 65%,var(--rim) 70%,var(--plate) 76%,#a0987d 80%);box-shadow:0 4px 7px #0005;display:flex;align-items:center;justify-content:center;gap:2px}.tray .food{width:38%;height:auto;aspect-ratio:1;max-height:100%}.tray .main-food{width:58%;max-height:100%}.tray .placeholder{color:#76674a;font-size:12px;text-align:center}.tray-items{font-size:10px;color:#392712;min-height:14px;text-align:center}.tray-actions{display:flex;gap:18px}.tray-actions button{background:#faf1d6b0;color:#573c1e;border:1px solid #bb8c50;border-radius:8px;width:40px;height:27px;font-size:22px;line-height:1}.ingredients{display:flex;gap:9px;padding:6px 7%;background:linear-gradient(#75502f,#32251a);border-block:2px solid #a58350}.ingredient{flex:1;background:var(--metal);border:2px solid #ccc4ac;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:8px;position:relative;min-width:0;color:#213126;font-weight:bold}.ingredient .food{width:61px;height:61px;max-height:90%}.ingredient span:last-child{font-size:13px;background:#f5e5bde8;border-radius:7px;padding:4px 10px}.ingredient.in-tray{box-shadow:inset 0 0 0 3px #6fad66}.food{display:inline-block;flex-shrink:0;background-image:url('./food.webp');background-size:300% 300%;background-repeat:no-repeat;background-position:0 0}.food[data-food=patty]{background-position:50% 0}.food[data-food=cheese]{background-position:100% 0}.food[data-food=lettuce]{background-position:0 50%}.food[data-food=tomato]{background-position:50% 50%}.food[data-food=fries]{background-position:100% 50%}.food[data-food=juice]{background-position:0 100%}.food[data-food=burger]{background-position:50% 100%}.food[data-food=pizza]{background-position:100% 100%}.actions{display:flex;align-items:center;gap:15px;padding:7px 4%;background:#153528;border-bottom:1px solid #977341}.primary,.secondary{border:1px solid #dfbc7c;border-radius:13px;color:#fff0c6;background:linear-gradient(#207951,#05472f);padding:10px 20px;min-height:40px;font:inherit;cursor:pointer;box-shadow:inset 0 2px #f9e9b34d,0 3px #0b271d}.primary{border:2px solid #e7c680;font-weight:bold;font-size:18px}.actions .primary{flex:1;height:100%;padding:4px}.actions .secondary{font-size:12px}.primary:active:not(:disabled),.secondary:active:not(:disabled){transform:translateY(2px)}footer{display:flex;align-items:center;justify-content:center;gap:22px;background:#0b241b;color:#d8ccaa;font-size:11px}footer button{border:0;background:none;color:inherit;font:inherit;padding:6px}.overlay{position:absolute;inset:104px 0 90px;display:flex;align-items:center;justify-content:center;background:#061e16aa;backdrop-filter:blur(5px);z-index:5;padding:16px}.intro-card{max-width:560px;max-height:100%;overflow:auto;background:linear-gradient(145deg,#1c4937f5,#0d291ff5);border:1px solid #d8b471;border-radius:24px;padding:22px;text-align:center;box-shadow:0 18px 50px #0008;display:flex;flex-direction:column;align-items:center;gap:10px}.intro-card h2{font-size:clamp(22px,3vw,36px);margin:0}.intro-card p{font-size:14px;line-height:1.8;margin:3px 0}.intro-card small{font-size:11px;line-height:1.7;color:#c9c4a3}.eyebrow{font-size:10px;letter-spacing:3px;color:#e4c176}.hero-food{width:170px;height:170px;filter:drop-shadow(0 10px 8px #0007)}#result-stars{color:#f7cd60;font-size:40px;letter-spacing:5px}#result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}dialog{padding:0;max-height:calc(100svh - var(--game-guest-height,0px) - 24px);width:min(580px,calc(100% - 24px));margin:auto;background:#133b2d;color:#fff0cc;border:1px solid #bc9b62;border-radius:18px;top:var(--game-guest-height,0px)}dialog::backdrop{background:#04130bd9}.panel-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;padding:12px 18px;background:#163b2c;z-index:3;border-bottom:1px solid #ba9c6955}.panel-head h2{font-size:21px;margin:0}#panel-body{padding:18px}#panel-body p{font-size:13px;line-height:1.8;white-space:pre-line;color:#dbd7bd}.panel-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.level-grid button{background:#22533e;color:#fff0c5;border:1px solid #ac9159;border-radius:9px;min-height:52px}.level-grid small{display:block;color:#ffd76a}select{width:100%;margin-bottom:14px;padding:10px;background:#1c4433;border:1px solid #a58b5a;border-radius:7px;color:#ffe9ba}.setting{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid #ffffff22}.setting input{width:22px;height:22px;accent-color:#dfbc72}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.shop-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:9px 6px;border:1px solid #799b7066;background:#204a36;border-radius:12px;text-align:center}.shop-card b{font-size:12px}.shop-card button{font-size:11px;padding:6px 9px;min-height:34px}.preview-button{color:#fae0a3;text-decoration:underline;border:0;background:none}.swatch{width:70px;height:50px;display:grid;place-items:center;font-size:32px;border-radius:7px;background:#85603a}.shop-preview{height:200px;border-radius:12px;position:relative;background:url('./kitchen.webp') center/cover;overflow:hidden;display:flex;align-items:center;justify-content:center}.shop-preview .sample-dish{width:130px;height:70px;border:5px solid var(--rim);border-radius:50%;background:var(--plate);box-shadow:0 5px 5px #0008}.shop-preview .sample-dish .food{width:95px;height:95px;position:relative;top:-35px}.shop-preview .sample-tool{position:absolute;left:10px;bottom:20px;width:80px;height:60px;background:var(--metal);border-radius:10px;border:2px solid #b8ab8c}.shop-preview .apron{position:absolute;right:20px;bottom:30px;transform:scale(1.8)}[data-decor=marble] .worktop{background:repeating-linear-gradient(155deg,#d9d7cd,#efeee5 60px,#a1aca7 61px,#d9d7cd 65px)}[data-decor=night]{background-blend-mode:multiply;background-color:#546080}[data-decor=royal] .worktop{background:linear-gradient(135deg,#0e5d42,#237a53,#0c392b)}[data-dish=gold]{--plate:#e6bd5b;--rim:#8c671f}[data-dish=slate]{--plate:#75817b;--rim:#334239}[data-tools=copper]{--metal:linear-gradient(120deg,#6a331e,#e7b58b 23%,#955531 50%,#ecbb8d 75%,#562f24)}[data-tools=black]{--metal:linear-gradient(120deg,#0f1918,#58635b,#182724 60%,#778075)}[data-uniform=red] .apron{color:#c74742}[data-uniform=green] .apron{color:#77a36c}[data-uniform=chef] .apron{color:#f4c862}.urgent{color:#ffb060!important}.hint{outline:3px solid #ffdc80;outline-offset:2px;animation:glow 1.4s infinite}.reduced *{animation:none!important;transition:none!important}@keyframes steam{from{transform:translateY(9px);opacity:.2}to{transform:translateY(-18px);opacity:0}}@keyframes glow{50%{outline-color:#fcedbf88}}
@media(max-width:700px){.restaurant{grid-template-rows:50px 41px minmax(110px,1fr) 38px minmax(165px,1.3fr) 74px 57px 30px}header{padding:5px 8px;gap:6px}header .icon{width:33px;min-width:33px;height:34px;min-height:34px;font-size:20px}h1{font-size:19px}.hud{padding:5px 7px;gap:4px}.hud>div{gap:3px;flex-direction:column}.hud strong{font-size:18px}.hud span{font-size:9px}.hud button{padding:5px 8px;font-size:11px}.wallet{font-size:11px}.customers{padding:5px 5% 0;gap:9px}.ticket{padding:3px 4px;border-radius:9px}.order-foods{gap:0;min-height:24px}.order-foods .food{width:24px;height:24px}.portrait{max-width:170px}.service-edge{padding:3px 6px;gap:4px}#status{font-size:10px;line-height:1.5}.worktop{gap:6px;padding:8px 7px;grid-template-columns:1fr 1.3fr 1fr}.station{padding:4px;border-radius:8px}.station h2{font-size:10px;margin-bottom:4px}.grills,.sides #side-machines{flex-direction:column;gap:4px}.machine{padding:3px;flex:1;min-height:36px;gap:1px;display:grid;grid-template-columns:40% 60%;grid-template-rows:1fr auto}.machine .food{grid-row:1/3;width:100%;height:100%;max-height:55px;aspect-ratio:1}.machine b{font-size:9px}.machine small{font-size:8px}.machine progress{position:absolute;bottom:2px;width:55%;right:2px;height:3px}.machine.cooking:after{font-size:18px;left:7px}.assembly{padding:4px;border-radius:8px}.assembly>span{font-size:9px}.tray .placeholder{font-size:10px}.tray-items{font-size:8px;line-height:1.4}.tray-actions{gap:8px}.tray-actions button{height:26px;width:32px;font-size:21px}.ingredients{padding:5px 10px;gap:5px}.ingredient{flex-direction:column;gap:0;padding:2px}.ingredient .food{width:42px;height:40px}.ingredient span:last-child{font-size:10px;padding:2px 7px;border-radius:4px}.actions{gap:6px;padding:6px 8px}.actions .secondary{font-size:10px;padding:5px 7px;min-height:39px;max-width:82px}.actions .primary{font-size:19px;min-height:40px}.overlay{inset:91px 0 87px;padding:12px}.intro-card{padding:18px 14px;gap:9px}.intro-card p{font-size:12px}.hero-food{width:140px;height:140px}footer{font-size:9px;gap:15px}.shop-grid{gap:7px}.shop-card b{font-size:10px}.apron{width:18px}.apron svg{width:18px;height:23px}}
@media(max-height:640px){.restaurant{grid-template-rows:43px 35px minmax(65px,1fr) 29px minmax(115px,1.15fr) 57px 46px 25px;min-height:390px}.customers{padding-top:2px}.ticket{padding:2px 4px}.order-foods .food{width:20px;height:20px}.worktop{padding:5px 6px}.station h2{display:none}.ingredients{padding-block:3px}.ingredient .food{height:30px;width:32px}.ingredient span:last-child{font-size:9px}.actions{padding-block:4px}.actions .primary{font-size:16px;min-height:35px}.actions .secondary{min-height:34px}.hero-food{width:90px;height:90px}.intro-card{gap:6px;padding:14px}.intro-card h2{font-size:23px}.overlay{inset:78px 0 71px}.tray-items{font-size:8px}.machine b{font-size:8px}.machine small{font-size:8px}.tray-actions button{height:23px}.tray{margin:3px 0}}
@media(max-height:500px) and (min-width:701px){.restaurant{grid-template-rows:40px 34px 95px 27px 135px 54px 44px 25px;height:auto;min-height:100svh}.hero-food{display:none}.grills,.sides #side-machines{flex-direction:row}.machine .food{max-height:65px}.overlay{inset:74px 0 69px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.tray{flex-wrap:wrap}.tray .food{width:42%;max-height:85%}.tray.plated-main .main-food{position:absolute;width:94%;left:3%;top:5%;height:auto}.tray.plated-main .food[data-food=fries]{position:absolute;left:1%;bottom:6%;width:43%;height:auto}.tray.plated-main .food[data-food=juice]{position:absolute;right:0;bottom:2%;width:39%;height:auto}

.shop-preview{--plate:#eee9dc;--rim:#ccc1a5;--metal:linear-gradient(120deg,#8d9190,#e2e0d5 20%,#626d6b 45%,#b8bab1 70%,#55605e)}.shop-preview:before{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(100deg,#93602c77,#c58a3b77)}.shop-preview[data-decor=marble]:before{background:repeating-linear-gradient(155deg,#d9d7cd,#efeee5 40px,#a1aca7 41px,#d9d7cd 44px)}.shop-preview[data-decor=royal]:before{background:linear-gradient(135deg,#0e5d42,#237a53,#0c392b)}.sample-dish{z-index:1}.swatch .apron{transform:scale(1.6)}

.customer{justify-content:flex-end}.portrait{flex:none;aspect-ratio:1;max-width:100%}.machine .food{flex:none!important;max-height:none!important;aspect-ratio:1}.tray .food{max-height:none!important}.tray.plated-main .main-food{left:50%;transform:translateX(-50%);top:4%}#oven .machine .food{max-width:none}

@media(max-width:700px){.machine,#oven .machine{display:flex;flex-direction:column;gap:0}.machine b,.machine small{line-height:1.2}.machine progress{width:90%;right:5%;height:3px}.machine .food{margin:auto 0 0}.machine small{margin-bottom:4px}}

.order-foods{height:64px;align-content:center;overflow:hidden}@media(max-width:700px){.order-foods{height:48px}}@media(max-height:640px){.order-foods{height:40px}}@media(max-width:360px){.order-foods{height:38px}.order-foods .food{width:18px;height:18px}}

@media(max-height:500px) and (min-width:560px){.restaurant{height:calc(100svh - var(--game-guest-height,0px));min-height:296px;grid-template-columns:32% 68%;grid-template-rows:36px 30px minmax(118px,1fr) 46px 42px 24px}header{grid-column:1/-1;grid-row:1;padding:2px 8px}header h1{font-size:20px}header .icon{height:29px;min-height:29px;font-size:18px}.hud{grid-column:1/-1;grid-row:2;padding:2px 10px}.hud>div{flex-direction:row}.hud strong{font-size:18px}.hud button{padding:2px 9px}.customers{grid-column:1;grid-row:3;padding:27px 5px 0;gap:5px}.service-edge{position:absolute;top:66px;left:0;width:32%;height:24px;padding:1px 3px}.service-edge .apron{display:none}#status{font-size:8px;max-width:100%;line-height:1.2}.worktop{grid-column:2;grid-row:3;padding:4px;gap:5px}.station{padding:3px}.station h2{display:none}.grills,.sides #side-machines{flex-direction:row;gap:3px}.machine{display:flex;flex-direction:column;gap:1px}.machine b{font-size:8px}.machine small{font-size:7px}.machine progress{position:absolute;bottom:1px;width:80%;height:2px}.ingredients{grid-column:1/-1;grid-row:4;padding:3px 12%;gap:8px}.ingredient{flex-direction:row}.ingredient .food{width:30px;height:30px}.ingredient span:last-child{font-size:9px}.actions{grid-column:1/-1;grid-row:5;padding:3px 8%;gap:12px}.actions .primary{font-size:17px;min-height:34px}.actions .secondary{min-height:32px;padding:4px 12px;max-width:none}footer{grid-column:1/-1;grid-row:6;font-size:9px}.ticket{padding:2px 3px}.order-foods{height:32px;min-height:32px}.order-foods .food{width:15px;height:15px}.overlay{inset:66px 0 66px}.intro-card{padding:10px;gap:4px;max-width:620px}.intro-card h2{font-size:22px}.intro-card p{font-size:11px}.intro-card .hero-food{display:none}.intro-card .primary{min-height:33px;padding:5px 18px}.tray-actions button{height:23px}.assembly>span{font-size:9px}.tray-items{font-size:8px}.shop-preview{height:140px}}
