:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#4e402e;background:#f5efdf;font-synthesis:none;--leaf:#657a48;--wood:#b7804d;--line:#ddcfb3}*{box-sizing:border-box}body{margin:0}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit;border:1px solid var(--line);background:#fffcf2;border-radius:9px;padding:9px 14px}button:hover{background:#e9efd9}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #aa752e;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}.top{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1600px;margin:auto;padding:14px 28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-family:"Songti SC",serif;font-size:23px;font-weight:700}.brand img{width:44px;height:50px;object-fit:contain}.brand small{display:block;font:10px/1.8 monospace;letter-spacing:2px;color:#867951}.top nav{display:flex;align-items:center;gap:10px;font-size:14px}.top nav>button{background:transparent;border-color:transparent}.wallet{background:#f4e5bd;padding:10px 14px;border-radius:10px;color:#8a602f;white-space:nowrap}.wallet b{font:700 22px Georgia;margin-right:5px}main{max-width:1600px;margin:auto;padding:24px 28px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start}.stage-wrap{border:1px solid #d3c09b;border-radius:16px;overflow:hidden;background:#fcf7e8;box-shadow:0 5px 0 #e8decb}.stage-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 22px;border-bottom:1px solid #e1d3b9}.eyebrow{font-size:12px;color:#768653;letter-spacing:1px}h1{font:700 25px/1.5 "Songti SC",serif;margin-top:4px}.level-stats{display:flex;align-items:center;gap:22px;font-size:12px;color:#8a7657}.level-stats span b{display:block;font:700 22px/1.5 Georgia;color:#8d673d;white-space:nowrap}.level-stats button{font-size:13px}#scene{height:550px;position:relative;background:radial-gradient(ellipse at 50% 45%,#fff9e8,#ddd4b7);overflow:hidden;touch-action:none}#scene canvas{display:block;width:100%;height:100%}#scene-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:17px;z-index:5;background:#f4edd9}#scene-labels{position:absolute;inset:0;z-index:2;pointer-events:none}.world-label{position:absolute;left:0;top:0;transform:translate(-50%,-100%);white-space:nowrap;pointer-events:auto;background:#fff9e8ed;border:1px solid #ccb992;border-radius:10px;padding:5px 9px;font-size:11px;box-shadow:0 2px 4px #694c241b;text-align:center}.world-label small{display:block;color:#7e7957;font-size:10px}.world-label.waiting{border-color:#91a061;background:#f8fae9}.world-label.eating{background:#e5edcf;color:#607843}.world-label.leaving{opacity:.75}.world-label img{width:28px;height:26px;object-fit:contain;vertical-align:middle}.world-label.station{font-size:11px;padding:4px 7px;background:#fff8e5d9}.world-label.chef{font-size:10px;color:#526d3c;pointer-events:none}.camera-tools{position:absolute;bottom:14px;right:14px;display:flex;gap:5px;z-index:3}.camera-tools button{padding:6px 9px;font-size:12px;background:#fffbefdc}.scene-caption{position:absolute;bottom:18px;left:18px;color:#81704f;font-size:11px;pointer-events:none}.scene-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:49px;padding:10px 18px;border-top:1px solid #daccb0;font-size:13px;color:#728053}.scene-bottom button{border:0;padding:4px;background:none;text-decoration:underline;font-size:12px;color:#9e7c51}aside{display:grid;gap:14px}.panel{border:1px solid #d7c5a5;border-radius:13px;padding:18px;background:#fff9eb}.panel h2{font:700 20px/1.5 "Songti SC",serif;margin:5px 0 10px}.panel p{font-size:13px;line-height:1.8;color:#887556}.new-resident{display:flex;align-items:center;gap:12px;margin:14px 0;border-top:1px dashed var(--line);padding-top:14px}.new-resident img{width:44px;height:53px;object-fit:contain}.resident-dot{width:38px;height:38px;border-radius:50%;background:var(--resident-color);display:grid;place-items:center;font:700 18px "Songti SC",serif;color:white;flex-shrink:0}.new-resident b{display:block;font-size:15px}.new-resident small{font-size:11px;color:#8b7d60;display:block;margin-top:4px}.primary{background:#738651;border-color:#617543;box-shadow:0 3px 0 #526636;color:#fffcec;font-weight:600}.primary:hover{background:#637a43}.panel>.primary{width:100%;margin-top:14px}.panel>.secondary{width:100%;margin-top:10px;background:transparent;font-size:13px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:7px}.panel-heading h2{font-size:17px;margin:0}.panel-heading>span{font-size:11px;color:#8a7f63}.empty-note{padding:19px 0;line-height:1.8;font-size:13px;color:#8c7b5e}.guest-card{padding:11px;margin-top:10px;background:#f4eddc;border:1px solid #e0d0af;border-radius:9px}.guest-card header{display:flex;justify-content:space-between;align-items:center;gap:8px}.guest-card header b{font-size:13px}.phase{font-size:10px;padding:3px 5px;border-radius:5px;background:#e4e9d2;color:#6b7d49}.guest-card .food-order{display:flex;gap:6px;margin:8px 0}.food-order button{display:flex;align-items:center;gap:3px;flex:1;padding:5px;font-size:11px;border-radius:7px;background:#fff9ea}.food-order button img{width:29px;height:27px;object-fit:contain}.food-order button.deliver{background:#e8edc7;border-color:#8ba054;color:#526638;font-weight:600}.guest-card p{font-size:11px;color:#847658;line-height:1.5;margin-top:5px}.patience{height:4px;border-radius:4px;background:#ded4bc;overflow:hidden;margin-top:9px}.patience i{height:100%;display:block;background:#8ba163}.patience i.urgent{background:#ce8258}.lifecycle{display:flex;justify-content:space-between;font-size:11px;color:#9b8764;border-top:1px dashed #dfcdac;padding-top:13px;margin-top:13px}.kitchen-dock{margin-top:21px;border:1px solid #d8c4a2;border-radius:13px;background:#fffaed;padding:17px 20px}.dock-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:13px}.dock-heading h2{font:700 20px "Songti SC",serif}.dock-heading span{font-size:12px;color:#7d775a}#dish-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.dish-control{display:flex;align-items:center;gap:13px;background:#f3ecd9;border:1px solid #e0d1b4;border-radius:10px;padding:11px 14px}.dish-control>img{width:62px;height:59px;object-fit:contain}.dish-control>div{flex:1;min-width:0}.dish-control h3{font-size:14px}.dish-control p{font-size:11px;color:#8c7a5b;margin:5px 0}.dish-control button{padding:6px 10px;font-size:12px;min-width:80px}.dish-control.locked{opacity:.5}.dish-control.ready{border-color:#9fae72;background:#eaf0d5}footer{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#8c7958;margin-top:20px}dialog{border:1px solid #c5b58f;border-radius:18px;background:#fff8e8;color:#554630;padding:25px;max-width:min(840px,94vw);max-height:88vh;width:840px;box-shadow:0 18px 80px #3d362533}dialog::backdrop{background:#4c443989;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;gap:18px;margin-bottom:20px}.dialog-heading h2{font:700 25px/1.5 "Songti SC",serif;margin-top:5px}.dialog-heading>button{font-size:24px;align-self:start;line-height:1;padding:7px 11px}#level-list{display:grid;gap:18px}.tier-row h3{font-size:14px;color:#798450;margin-bottom:9px}.tier-cards{display:grid;grid-template-columns:1fr 1fr;gap:11px}.level-card{display:flex;gap:13px;text-align:left;padding:16px;background:#f4eddb}.level-card>strong{font:italic 30px Georgia;color:#9b804f}.level-card b{font-size:14px;display:block}.level-card small{font-size:11px;display:block;margin-top:6px;line-height:1.6;color:#7f7558}.level-card.selected{background:#e9edcf;border-color:#899e61}.level-card:disabled{opacity:.45}.stars{color:#a17934;letter-spacing:3px;margin:10px 0;font-size:24px}.result-stats{display:flex;justify-content:space-between;font-size:13px;color:#78684b;margin:12px 0}.resident-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.resident-entry{padding:16px;border:1px solid var(--line);border-radius:10px;background:#f6efdd}.resident-entry h3{font-size:16px;margin-top:12px}.resident-entry p{font-size:12px;line-height:1.8;color:#877756;margin-top:6px}.resident-entry small{font-size:11px;color:#75824e}.resident-entry.locked{opacity:.5}#paused-overlay{position:absolute;inset:0;background:#f6efdfde;backdrop-filter:blur(5px);z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}#paused-overlay[hidden]{display:none}#paused-overlay b{font:700 27px "Songti SC",serif}#paused-overlay p{font-size:14px;color:#877654}#toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);opacity:0;transition:.18s;background:#627a49;color:#fffbe9;padding:12px 19px;border-radius:10px;z-index:99;font-size:14px;pointer-events:none;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.webgl-error{position:absolute;inset:0;display:grid;place-content:center;padding:35px;text-align:center;gap:15px;background:#f5efdf;z-index:10}.webgl-error p{font-size:14px;line-height:1.8}.webgl-error a{text-decoration:underline;color:#657a48}
@media(min-width:1500px){#scene{height:640px}}@media(max-width:1100px){.play-layout{grid-template-columns:minmax(0,1fr) 260px;gap:13px}main{padding:18px}.top{padding:12px 18px}.stage-header{padding:15px;gap:10px}h1{font-size:22px}.level-stats{gap:12px}.level-stats span b{font-size:19px}#scene{height:490px}.panel{padding:14px}.dish-control{gap:6px;padding:10px}.dish-control>img{width:47px;height:49px}}
@media(max-width:820px){.top{gap:10px}.brand{font-size:20px}.top nav{gap:5px}.top nav>button{padding:8px;font-size:12px}.wallet{padding:8px}.play-layout{grid-template-columns:1fr}#scene{height:470px}aside{grid-template-columns:1fr 1fr;align-items:start}.orders-panel{min-height:220px}.panel>.primary{margin-top:10px}.dish-control>img{width:52px}.scene-caption{font-size:10px}}
@media(max-width:540px){.top{padding:10px 12px;flex-wrap:wrap}.brand img{width:32px;height:38px}.brand{font-size:18px}.brand small{font-size:8px;letter-spacing:1px}.top nav{width:100%;justify-content:space-between;font-size:12px}.top nav>button{padding:5px 8px}.wallet{padding:5px 10px;font-size:11px}.wallet b{font-size:17px}main{padding:12px}.stage-header{padding:12px;align-items:start;gap:6px;flex-wrap:wrap}h1{font-size:20px}.eyebrow{font-size:10px}.level-stats{width:100%;justify-content:space-between}.level-stats span{display:flex;gap:7px;align-items:center;font-size:11px}.level-stats span b{font-size:17px}.level-stats button{padding:5px 12px;font-size:12px}#scene{height:370px}.scene-caption{left:9px;bottom:12px;font-size:9px}.camera-tools{right:7px;bottom:6px;gap:3px}.camera-tools button{padding:5px 7px;font-size:10px}.scene-bottom{font-size:11px;padding:9px 12px}.world-label{font-size:9px;padding:3px 5px;border-radius:7px}.world-label small{font-size:8px}.world-label img{width:20px;height:20px}.world-label.station{font-size:9px;padding:3px 5px}.world-label.chef{display:none}aside{grid-template-columns:1fr;gap:12px}#shift-panel{order:0}.orders-panel{min-height:0}.panel{padding:15px}.panel h2{font-size:19px}.new-resident{margin:9px 0;padding-top:10px}.new-resident .resident-dot{width:30px;height:30px;font-size:14px}.panel>.primary{margin-top:9px}.lifecycle{margin-top:10px;padding-top:10px}.kitchen-dock{padding:14px 11px;margin-top:13px}.dock-heading{align-items:start;flex-direction:column;gap:7px}.dock-heading h2{font-size:18px}.dock-heading span{font-size:11px}#dish-controls{gap:7px}.dish-control{flex-direction:column;text-align:center;padding:8px 5px;gap:3px}.dish-control>img{width:54px;height:43px}.dish-control h3{font-size:12px}.dish-control p{font-size:10px}.dish-control button{font-size:11px;padding:7px 6px;min-width:70px}.dish-control>div{width:100%}footer{font-size:10px;flex-direction:column;gap:6px}dialog{padding:19px}.dialog-heading h2{font-size:21px}.tier-cards{grid-template-columns:1fr}.level-card{padding:13px}.resident-grid{grid-template-columns:1fr 1fr}.resident-entry{padding:12px}.resident-entry h3{font-size:14px}.resident-entry p{font-size:11px}.resident-entry small{font-size:10px}.in-service #shift-panel{display:none}.in-service .orders-panel{order:1}}
@media(max-width:540px){.in-service main{display:flex;flex-direction:column}.in-service .play-layout{display:contents}.in-service .stage-wrap{order:0}.in-service .kitchen-dock{order:1}.in-service aside{order:2;margin-top:13px}.in-service footer{order:3}.in-service #scene{height:330px}}
/* Expanded restaurant operations */
.play-layout{grid-template-columns:minmax(0,1fr) 310px}.stage-header{padding:15px 18px}.level-stats{gap:16px}.level-stats span b{font-size:18px}.stage-header h1{font-size:23px}#scene{height:630px}.camera-presets{position:absolute;left:12px;top:12px;z-index:3;display:flex;gap:6px}.camera-presets button{font-size:11px;background:#fffae5e8;padding:7px 10px}.world-label.worker{padding:3px 6px;font-size:9px;border-color:#93a7b1;background:#ebf3f1e8;pointer-events:none}.world-label.worker small{font-size:8px}.world-label.foreman{background:#e9dfedec;border-color:#9f7bac}.world-label.guest{font-size:9px;padding:2px 4px}.world-label.guest small{font-size:8px}.world-label.guest img{width:23px;height:22px}.world-label.dirty{background:#e4cba6;color:#7f5437;font-size:10px}.orders-panel #orders{max-height:430px;overflow:auto;overscroll-behavior:contain;padding-right:3px}.operation-kpis{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.operation-kpis span{font-size:12px;color:#7b7556}.operation-kpis b{display:block;font:700 23px/1.6 Georgia;color:#6f8150}.negative{color:#a15b40!important}.satisfaction{background:#e8edd3;padding:8px 10px;border-radius:7px;font-size:12px;display:flex;justify-content:space-between;color:#6b7e4b}.ops-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;margin-top:20px}.ops-grid .panel{padding:21px}.ops-grid h2{font-size:22px}.ops-grid #staff-panel{grid-row:span 2;scroll-margin-top:18px}.capacity-badge,.role-badge{background:#e6ecd2;border:1px solid #bac795;padding:6px 8px;border-radius:7px;font-size:12px;color:#698148;white-space:nowrap}.staff-rows{margin:15px 0}.staff-rows>div{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;border-bottom:1px dashed var(--line)}.staff-rows b{display:block;font-size:15px}.staff-rows small{display:block;font-size:11px;color:#887756;margin-top:5px}.staff-rows button{font-size:12px;white-space:nowrap}.foreman-controls>label:first-child{display:flex;flex-direction:column;gap:8px;font-size:13px;margin:16px 0}.foreman-controls select{border:1px solid #c8bb99;border-radius:8px;padding:10px;background:#fbf4e3;color:#685938;font:inherit;width:100%}.policy-toggle{display:flex;align-items:start;gap:10px;border:1px solid #ddd0b1;border-radius:9px;padding:11px;margin-top:8px;background:#f9f1dd}.policy-toggle input{accent-color:#75894f;width:17px;height:17px;margin-top:2px;flex-shrink:0}.policy-toggle b{font-size:13px;display:block}.policy-toggle small{font-size:11px;line-height:1.7;color:#8c7b5c;display:block;margin-top:3px}.team-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.team-actions button{font-size:12px;padding:8px 10px}.staff-note{font-size:11px!important}.worker-roster{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:15px}.worker-roster>span{font-size:11px;padding:8px;background:#f1ead6;border:1px solid #ddd0b3;border-radius:7px}.worker-roster .working{background:#e4ecd1;border-color:#b3c38d}.worker-roster small{display:block;font-size:9px;color:#78805c;margin-top:4px}.facility-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.facility-grid article{padding:13px;border:1px solid #daceb1;border-radius:10px;background:#f4edd9}.facility-grid b{font-size:14px}.facility-grid b span{font-size:11px;color:#899263;margin-left:4px}.facility-grid p{font-size:11px;margin:8px 0!important}.facility-grid button{font-size:12px;padding:7px 10px}.reward-rules{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:13px 0}.reward-rules span{display:flex;justify-content:space-between;padding:9px;background:#f2ecd9;border-radius:7px;font-size:12px}.reward-rules b{color:#6f834d}.event-log{padding:0;list-style:none;margin:13px 0 0;max-height:245px;overflow:auto}.event-log li{display:flex;justify-content:space-between;gap:10px;border-top:1px dashed #daccab;padding:8px 0;font-size:11px;color:#7c7155}.event-log li b{white-space:nowrap;color:#7a8a4f}.event-log .penalty b,.event-log .staff b{color:#9c663e}
@media(max-width:1100px){.play-layout{grid-template-columns:minmax(0,1fr) 270px}.level-stats{flex-wrap:wrap;gap:9px}.stage-header{align-items:start}.level-stats span b{font-size:15px}#scene{height:570px}.stage-header h1{font-size:21px}.ops-grid{grid-template-columns:1fr 1fr;gap:12px}.ops-grid .panel{padding:16px}.capacity-badge{font-size:10px}.ops-grid h2{font-size:19px}}
@media(max-width:820px){.play-layout{grid-template-columns:1fr}#scene{height:540px}.level-stats{flex-wrap:nowrap}.stage-header{align-items:center}.ops-grid{grid-template-columns:1fr}.ops-grid #staff-panel{grid-row:auto}.orders-panel #orders{max-height:270px}.staff-rows>div{gap:10px}.worker-roster{grid-template-columns:repeat(4,1fr)}}
@media(max-width:540px){.top nav{flex-wrap:wrap;gap:3px}.top nav button{font-size:11px}.stage-header h1{font-size:20px}.level-stats{gap:8px;flex-wrap:wrap}.level-stats>span:first-child{width:100%}.level-stats span b{font-size:15px}.in-service #scene,#scene{height:390px}.camera-presets{top:7px;left:7px;gap:4px}.camera-presets button{font-size:9px;padding:5px 7px}.world-label.worker{display:none}.world-label.guest small{display:none}.world-label.guest{font-size:8px}.world-label.guest img{width:16px;height:16px}.world-label.station{font-size:8px;opacity:.85}.world-label.station small{font-size:7px}.in-service .ops-grid{order:3}.in-service footer{order:4}.ops-grid{margin-top:13px}.ops-grid .panel{padding:15px}.worker-roster{grid-template-columns:repeat(3,1fr)}.staff-rows b{font-size:14px}.staff-rows small{font-size:10px}.staff-rows button{font-size:11px;padding:7px}.facility-grid{gap:7px}.facility-grid article{padding:10px}.ops-grid h2{font-size:19px}.capacity-badge{font-size:9px}.facility-grid b{font-size:12px}.facility-grid button{font-size:11px}.orders-panel #orders{max-height:330px}.scene-bottom{font-size:10px}.top .brand{font-size:18px}}
#pantry-panel{margin-top:24px;background:#fff8e7;border:2px solid #bca271;scroll-margin-top:20px}.pantry-heading{display:flex;justify-content:space-between;gap:18px;align-items:center}.pantry-heading h2{font-size:25px}.pantry-heading p{font-size:16px}.hands-toggle{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:14px}.hands-toggle input{width:20px;height:20px;accent-color:#6d804f}.pantry-steps{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.pantry-steps span{padding:7px 12px;background:#efe4cb;border-radius:7px;font-size:14px}.pantry-steps .current{background:#748650;color:white}.pantry-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:24px}.recipe-picks{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.recipe-picks button{font-size:14px}.recipe-picks [aria-pressed=true]{background:#e2e8c5;border-color:#82945a}.ingredient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ingredient{display:flex;align-items:center;text-align:left;gap:10px;padding:14px;min-width:0;background:#fffdf5}.ingredient b{display:block;font-size:16px}.ingredient small{display:block;font-size:12px;color:#806e50}.ingredient-emoji{font-size:32px}.ingredient-flavor{font-size:13px;color:#8e733b}.ingredient i{margin-left:auto;font-style:normal;color:#748650}.ingredient.selected{border:2px solid #748650;background:#f0f4dc;padding:13px}.mix-basket{background:#f1e8d0;padding:21px;border-radius:10px;border:1px dashed #b89c67}.mix-basket h3{font-size:20px;display:flex;justify-content:space-between}.mix-basket p{font-size:14px;margin:10px 0}.flavor-bars{margin:16px 0}.flavor-bars label{display:flex;align-items:center;gap:12px;font-size:14px;margin:9px 0}.flavor-bars meter{flex:1;max-width:230px;min-width:0;height:16px}.mix-actions{display:grid;gap:10px;margin:15px 0}.mix-actions button{font-size:16px;min-height:48px}.mix-basket>small{font-size:12px;color:#7c694a}.pantry-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin-top:18px;border-top:1px solid #d8c8a5;padding-top:15px;font-size:14px}.pantry-bottom>a{color:#762534;text-decoration:underline;margin-left:auto}.pantry-hotspot{background:#f4e3aa;border:1px solid #a28c47;font-weight:700;font-size:12px}.social-entry{color:#762534;font-weight:700}.mix-hint{color:#76592d!important}@media(max-width:760px){.pantry-layout{grid-template-columns:1fr}.pantry-heading{align-items:start;flex-direction:column}.pantry-steps{display:grid;grid-template-columns:1fr 1fr}.pantry-steps span{font-size:13px}.ingredient{padding:10px;gap:6px}.ingredient.selected{padding:9px}.ingredient-emoji{font-size:26px}.ingredient b{font-size:15px}.ingredient-grid{gap:8px}.pantry-bottom>a{margin-left:0}.in-service #pantry-panel{order:1}.in-service .kitchen-dock{order:2}.in-service .play-layout aside{order:3}.in-service .ops-grid{order:4}.in-service footer{order:5}.pantry-hotspot{font-size:11px;padding:4px}}
