:root{color-scheme:light;--ink:#2b2019;--brown:#6c402c;--wood:#ab7544;--red:#ce512f;--paper:#f8e6c1;--cream:#fff3d8;--gold:#efbd61;--green:#4d8052;--line:#543523}
*{box-sizing:border-box}html,body{height:100%;min-height:100%;margin:0}body{background:#271d18;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #eaa22a;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}#app{width:100%;height:100dvh;position:relative;overflow:hidden}.screen{position:absolute;inset:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.loading-screen{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:radial-gradient(ellipse at 50% 10%,#735133,#211713 75%);color:var(--cream);text-align:center;padding:24px}.loading-screen h1{font-size:clamp(36px,7vw,76px);line-height:1.05;letter-spacing:-.05em;margin:0;text-shadow:4px 5px #1a100c}.loading-screen p{font-size:17px;margin:0;color:#e4c69a}.loading-badge{font-size:12px;letter-spacing:.2em;color:#ffc777;font-weight:900}.load-track{height:18px;width:min(540px,84vw);border:3px solid #c39058;background:#221714;overflow:hidden}.load-track>div{width:0;height:100%;background:repeating-linear-gradient(110deg,#ffda8e 0,#ffda8e 18px,#ed8b39 18px,#ed8b39 36px);transition:width .1s}.loading-screen>span{font-size:14px;color:#eec59b}
.menu-screen{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f8ead1 radial-gradient(circle at 50% 50%,#fff6dd,#d5a97c)}.menu-art{position:relative;max-width:min(100vw,calc(100dvh * 1.333));width:min(100vw,calc(100dvh * 1.333));aspect-ratio:4/3;box-shadow:0 13px 50px #38200a50}.menu-art>img{display:block;width:100%;height:100%;object-fit:fill}.menu-hotspot{position:absolute;border:0;background:transparent;border-radius:6px;transform:none!important}.menu-hotspot:hover{background:#fff0a820;outline:3px solid #ffc266}.menu-hotspot:focus-visible{outline:5px solid #fcce69}.menu-play{left:36%;top:30.5%;width:28.5%;height:15%}.menu-settings{left:36%;top:49%;width:28.5%;height:11%}.menu-shop{left:36%;top:64%;width:28.5%;height:12%}.menu-quit{left:36%;top:79.4%;width:28.5%;height:11.5%}.menu-foot{position:absolute;bottom:9px;left:0;right:0;text-align:center;color:#5d3720;background:#ffefd6d9;padding:5px;font-size:12px;letter-spacing:.04em}
.play-screen{display:flex;flex-direction:column;background:#dbbf8e}.topbar{min-height:80px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(#493128,#2b201b);border-bottom:5px solid #c38747;padding:10px 18px;color:#fff5de}.top-brand{display:flex;flex-direction:column;gap:3px;min-width:180px}.top-brand strong{font-size:clamp(21px,2vw,29px);letter-spacing:-.065em;line-height:1}.top-brand em{font-style:normal;color:#ffd071}.top-brand span{font-size:11px;font-weight:800;letter-spacing:.14em;color:#d7b58c}.top-stats{display:flex;gap:11px}.stat{display:flex;flex-direction:column;min-width:79px;padding:2px 10px;border-left:1px solid #83624e}.stat span{font-size:12px;color:#dbc7aa}.stat b{font-size:20px;color:#ffdc8d}.top-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.tool-button{background:linear-gradient(#f5e5c9,#e6cba3);color:#34251c;border:2px solid #6c5036;border-bottom-width:4px;padding:9px 13px;min-height:44px;font-size:14px;font-weight:850}.tool-button.accent{background:linear-gradient(#ffd581,#f3ac4f)}
.game-layout{display:grid;grid-template-columns:minmax(292px,326px) minmax(0,1fr);min-height:0;flex:1}.service-rack{background:#e3cc9f;border-right:5px solid #64432b;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;box-shadow:inset -8px 0 25px #7b492923;z-index:3}.rack-top{padding:18px 15px 12px;background:#785138;color:#fff0cf;border-bottom:4px solid #3e2c20}.label-stamp{font-size:12px;font-weight:900;letter-spacing:.13em}.rack-heading{display:flex;justify-content:space-between;align-items:baseline;gap:5px;padding:13px 14px 8px}.rack-heading h2{margin:0;font-size:19px;letter-spacing:-.03em}.rack-heading>span{font-size:12px;font-weight:750;color:#71543c}.order-list{display:flex;flex-direction:column;gap:9px;padding:0 11px}.order-ticket{border:2px solid #754a2d;background:linear-gradient(#fff9e8,#f0dfb8);box-shadow:3px 4px #78513235;padding:0;text-align:left;width:100%;min-height:106px}.order-ticket.selected{outline:3px solid #cf7236;outline-offset:0;background:#fffaf1}.ticket-top{display:flex;justify-content:space-between;align-items:center;padding:9px 10px 6px;border-bottom:2px dashed #c39a6c}.ticket-top b{font-size:17px}.ticket-top span{font-size:12px;background:#dbc19c;padding:4px 6px;font-weight:800}.order-lines{display:flex;gap:6px;flex-wrap:wrap;padding:8px 9px}.order-token{display:inline-flex;align-items:center;gap:4px;min-height:35px;background:#f2dfbc;border:1px solid #d2b082;padding:3px 6px;font-size:12px;font-weight:750;white-space:nowrap}.order-token.ok{background:#dce9be;border-color:#82a66e}.order-token img{width:25px;height:25px;object-fit:contain}.order-token small{font-size:12px;font-weight:900}.empty-note{font-size:15px;line-height:1.5;padding:12px;color:#6c4f38}.plate-heading{border-top:2px solid #bc986c;margin-top:13px}.plate-list{padding:0 11px 8px;display:grid;gap:10px}.plate-card{background:#f8ead1;border:2px solid #785137;padding:9px;display:grid;grid-template-columns:86px 1fr;gap:9px;min-height:119px}.plate-card.selected{border-color:#b25630;box-shadow:inset 0 0 0 2px #d59a59}.plate-thumb{position:relative;display:block;width:86px;height:89px;border:1px dashed #ae8c65;background:#e2ceab;padding:0;touch-action:none}.plate-thumb img{width:100%;height:100%;object-fit:contain}.plate-thumb .plate-meal{position:absolute;width:58px;height:58px;top:10px;left:11px;filter:drop-shadow(1px 4px 2px #0005)}.plate-thumb .plate-drink{position:absolute;width:33px;height:51px;top:15px;right:-5px}.plate-meta b{display:block;font-size:16px;line-height:1.3}.plate-meta small{display:block;margin:3px 0 6px;color:#795d43;font-size:13px}.plate-actions{display:flex;gap:5px;flex-wrap:wrap}.plate-actions button{border:1px solid #79583c;background:#f3d59a;color:#3b261b;font-size:12px;font-weight:850;min-height:34px;padding:5px 8px}.plate-actions button.primary{background:#bdcd9d}.rack-note{padding:8px 13px 18px;font-size:14px;color:#634934;line-height:1.55;margin:0}
.stage-column{display:flex;flex-direction:column;min-width:0;min-height:0;background:#48382d}.viewport{flex:1;min-height:0;min-width:0;display:flex;overflow:auto hidden;scrollbar-color:#c28a50 #3c2a22;scrollbar-width:thin}.canvas-frame{min-width:100%;width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center}.canvas-frame canvas{display:block;max-width:100%;max-height:100%;width:100%;height:auto;aspect-ratio:16/9;touch-action:none;outline:none;cursor:crosshair}.bottom-controls{background:#3c2b21;color:#fceacf;border-top:4px solid #bd8b4d;min-height:53px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:8px 14px}.bottom-controls>span{flex:1;font-weight:650;font-size:14px;line-height:1.35}.small-link{background:none;color:#ffe09b;border:0;text-decoration:underline;min-height:34px;white-space:nowrap}.scroll-buttons{display:flex;gap:6px}.scroll-buttons button{min-height:42px;background:#f1d2a1;border:2px solid #7d573b;padding:5px 8px;font-size:13px;font-weight:800}.mobile-only{display:none}
.overlay-screen{background:#1a110ec9;z-index:10;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}.modal{width:min(740px,95vw);max-height:95dvh;overflow-y:auto;padding:28px;background:linear-gradient(125deg,#f8e5bd,#e6bc86);border:7px solid #60381f;box-shadow:0 12px #27180f,0 18px 70px #140902aa}.modal h2{margin:0 0 11px;font-size:clamp(26px,4vw,39px);letter-spacing:-.05em}.modal p{font-size:16px;line-height:1.55}.modal-toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.wood-button{border:3px solid #56321d;border-bottom:6px solid #3b241a;background:linear-gradient(#bf864d,#955b2c);color:#fff5df;min-height:48px;padding:10px 17px;font-size:16px;font-weight:900;text-shadow:0 2px #50321b}.wood-button.light{color:#3b2318;text-shadow:none;background:linear-gradient(#ffe4aa,#d5a46d)}.settings-row{margin:14px 0;padding:9px 0;border-bottom:1px solid #c7a277}.settings-row label{display:flex;align-items:center;justify-content:space-between;font-weight:750;gap:15px;min-height:44px}.settings-row input[type=range]{width:100%;accent-color:#ab622e;min-height:30px}.settings-row button{min-height:44px}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shop-item{padding:14px;background:#fff0d2;border:2px solid #bd946b;display:flex;flex-direction:column;gap:8px}.shop-item h3{font-size:17px;margin:0}.shop-item p{font-size:13px;line-height:1.5;margin:0;flex:1}.shop-item button{min-height:44px;padding:8px 12px;border:2px solid #6e4d31;background:#f5c66b;font-weight:850}.shop-item small{font-size:13px;color:#805737}
.plate-ghost{position:fixed;left:0;top:0;transform:translate(-50%,-50%);pointer-events:none;z-index:40;width:150px;height:130px;filter:drop-shadow(0 13px 13px #0009)}.plate-ghost>img{width:100%;height:100%;object-fit:contain}.plate-ghost>img.ghost-food{position:absolute;top:19px;left:28px;width:95px;height:85px}.tutorial{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);width:min(480px,94vw);background:#fff3d8;color:#3c291a;border:4px solid #6d4329;box-shadow:6px 8px #27190faa;padding:16px 19px;z-index:11}.tutorial-title{font-weight:900;font-size:20px}.tutorial p{margin:8px 0 15px;font-size:16px;line-height:1.48}.tutorial-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.tutorial-bottom>div{display:flex;gap:8px}.tutorial button{border:2px solid #7a4b2c;min-height:44px;padding:8px 14px;background:#f3dbb3;font-size:14px;font-weight:800}.tutorial button.tut-next{background:#efbd61}
@media(max-width:1120px){.top-brand span{display:none}.topbar{min-height:70px}.top-stats{gap:2px}.top-actions{gap:4px}.tool-button{padding:8px}.game-layout{grid-template-columns:280px minmax(0,1fr)}.service-rack{border-right-width:3px}.canvas-frame{min-width:1120px;width:1120px;min-height:630px;height:630px;flex-shrink:0}.canvas-frame canvas{height:630px;max-height:none;max-width:none;width:1120px}}
@media(max-width:800px){.mobile-only{display:inline-flex}.play-screen{overflow:hidden}.topbar{padding:8px;gap:5px;flex-wrap:wrap}.top-brand{min-width:135px}.top-brand strong{font-size:22px}.top-actions{margin-left:auto}.top-stats{order:3;width:100%;justify-content:center}.stat{flex:1;min-width:auto}.stat b{font-size:17px}.tool-button{min-height:44px;font-size:13px}.game-layout{display:block;position:relative;flex:1;min-height:0}.service-rack{display:none;position:absolute;z-index:8;inset:0 auto 0 0;width:min(370px,95vw);box-shadow:15px 0 0 #23170ec0}.drawer-open .service-rack{display:flex}.rack-top{display:flex;align-items:center;justify-content:space-between}.rack-close{min-width:44px;min-height:44px;border:2px solid #fff1d7;background:#422919;color:#fff5de;font-size:28px}.stage-column{width:100%;height:100%}.viewport{min-height:0}.canvas-frame{width:1150px;min-width:1150px;height:647px;min-height:647px}.canvas-frame canvas{width:1150px;height:647px}.bottom-controls{flex-wrap:wrap}.bottom-controls>span{min-width:100%;font-size:13px}.scroll-buttons{flex:1}.tutorial{bottom:12px}.menu-foot{font-size:10px}}
@media(max-width:450px){.topbar{gap:7px}.top-brand strong{font-size:19px}.top-brand{min-width:120px}.top-actions .tool-button:not(.mobile-only){padding:6px 9px}.menu-foot{font-size:9px}.shop-grid{grid-template-columns:1fr}.modal{padding:17px}.plate-list{grid-template-columns:1fr}.top-actions{flex:1;justify-content:flex-end}.top-actions .tool-button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
