:root{color-scheme:light;--cream:#f5f0e5;--paper:#fffcf3;--ink:#383e31;--muted:#7b7c6c;--line:#d9d7c8;--green:#567052;--green-light:#e7edde;--red:#b55236;--yellow:#f7d67a;font-family:Arial,"Microsoft JhengHei","PingFang TC",sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0,#fcf9ef,transparent 70%),var(--cream)}button,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:13px;font-weight:700;min-height:40px;padding:7px 11px}button:disabled{opacity:.45;cursor:default}button:not(:disabled):hover{filter:brightness(.97)}button:not(:disabled):active{transform:translateY(1px)}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--red);outline-offset:2px}a{color:inherit;text-decoration:none}button[hidden],[hidden]{display:none!important}select{max-width:100%;min-width:0;min-height:40px;border:1px solid var(--line);border-radius:6px;padding:4px 7px;background:var(--paper);font-size:12px}.primary{background:var(--red);border-color:var(--red);color:#fff9ef}h1,h2,h3,p{margin:0}.restaurant{position:relative;max-width:1440px;height:min(900px,100dvh);min-height:360px;margin:auto;padding:14px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));display:grid;grid-template-rows:60px 50px 164px minmax(0,1fr) 40px;gap:12px}.restaurant:fullscreen{background:var(--cream);max-width:none;height:100dvh}
.topbar{display:flex;align-items:center;gap:24px;border-bottom:1px solid #aeb29e;padding-bottom:12px}.brand{font:700 19px Georgia,serif;letter-spacing:2px;flex-shrink:0}.brand small{display:block;font:9px Arial;letter-spacing:2.3px;margin-top:4px;color:var(--muted)}.title{display:flex;align-items:baseline;gap:16px;flex:1;min-width:0}.title h1{font:900 31px/1.1 "PMingLiU","Songti TC",Georgia,serif;white-space:nowrap;letter-spacing:1px}.title h1 em{font:italic 700 31px Georgia;color:var(--red);padding:0 5px}.title>span{font-size:12px;color:var(--muted);white-space:nowrap}.toolbar{display:flex;gap:6px;flex-shrink:0}.toolbar button{min-width:42px}#sound[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}
.dashboard{display:grid;grid-template-columns:1.1fr .8fr .8fr 1.1fr 2fr;align-items:center;gap:20px}.dashboard>div:not(:last-child){display:flex;align-items:center;gap:12px;border-right:1px solid var(--line);min-width:0}.dashboard span{font-size:12px;color:var(--muted);white-space:nowrap}.dashboard strong{font-size:22px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard .reputation strong{color:var(--red);font-size:19px}.progress{height:5px;background:#e5e5d6;border-radius:9px;overflow:hidden}.progress>i{display:block;height:100%;background:var(--green);width:0;transition:width .12s linear}.progression>span{display:block;margin-bottom:7px;color:var(--green);font-weight:700}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.section-heading h2{font-size:13px}.section-heading h2>span{margin-left:9px;font-size:11px;font-weight:400;color:var(--muted)}.section-heading>span{font-size:11px;color:var(--muted)}.orders{display:flex;gap:10px;overflow:auto;padding:1px 1px 5px;scrollbar-width:thin;scrollbar-color:#bfc4ac transparent;height:139px}.ticket{border:1px solid var(--line);border-top:3px solid #c3b99d;border-radius:8px;background:var(--paper);padding:9px 11px;flex:1 0 calc((100% - 30px)/4);max-width:calc((100% - 30px)/4);min-width:170px;position:relative;display:flex;flex-direction:column;gap:5px}.ticket.preparing{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.ticket.target{border-top-color:var(--red)}.ticket.urgent .order-time{color:var(--red)}.ticket.urgent .progress>i{background:var(--red)}.ticket.preview{opacity:.65}.ticket-top{display:flex;justify-content:space-between;gap:5px;font-size:11px;color:var(--muted)}.customer-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.order-time{flex-shrink:0;font-variant-numeric:tabular-nums}.ticket-title{display:flex;align-items:center;gap:6px;font-size:15px}.ticket-title .meal-icon{font-size:23px;line-height:1}.ticket-title small{margin-left:auto;font-size:10px;color:var(--muted);white-space:nowrap}.ticket-note{font-size:11px;color:var(--red);font-weight:700;min-height:14px}.ticket-expect{font-size:10px;color:var(--muted);white-space:nowrap}.ticket-bottom{display:flex;gap:5px;margin-top:auto}.ticket-bottom button{flex:1;min-height:28px;font-size:11px;padding:4px}.ticket-bottom .prep-current{background:var(--green);border-color:var(--green);color:white}.ticket-bottom .target-current{background:#f5e5dc;border-color:#d3ac93;color:var(--red)}.empty-orders{flex:1;display:grid;place-items:center;border:1px dashed #babfac;border-radius:8px;color:var(--muted);font-size:13px;background:#f8f5eb}
.workbench{display:grid;grid-template-columns:.85fr 1.2fr 1fr;gap:12px;min-height:0}.panel{border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:0;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#bcc3ac transparent}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid var(--line);padding:12px 13px;position:sticky;top:0;background:var(--paper);z-index:1}.panel-heading h2{font-size:14px;white-space:nowrap}.panel-heading h2 b{font:italic 14px Georgia;color:var(--red);margin-right:5px}.panel-heading>span{font-size:10px;color:var(--muted)}.ingredients{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:12px}.ingredient{display:grid;place-items:center;gap:5px;min-height:78px;padding:8px 3px;font-size:12px;border-color:#d9decf;background:#f3f5ec}.ingredient>span{font-size:30px;line-height:1.15}.ingredient.needed{border-color:var(--green);background:var(--green-light)}.drink-settings{padding:10px 12px;background:#eeeede;border-top:1px dashed #c4c6b2;display:grid;grid-template-columns:1fr 1fr;gap:8px}.tiny-heading{grid-column:1/-1;font-size:12px;font-weight:700}.tiny-heading small{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}.drink-settings>div{display:flex;align-items:center;gap:5px}.drink-settings label{font-size:11px;white-space:nowrap}.drink-settings select{width:100%}.panel-note{padding:11px 13px;font-size:11px;color:var(--muted);line-height:1.8}
.stations{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.station{padding:10px;border:1px solid #bcc2b0;border-radius:8px;background:linear-gradient(120deg,#e9ece2,#f7f8f1);box-shadow:0 3px 0 #d9decd}.station h3{font-size:12px;display:flex;gap:5px;align-items:center;margin-bottom:8px}.station h3>span{font-size:19px}.station h3>small{margin-left:auto;font-size:9px;font-weight:400;color:var(--muted)}.station.ready{background:#e8eedb;border-color:var(--green)}.station.stale{border-color:var(--red);background:#f2e4d8}.cook-choices{display:flex;gap:5px;flex-wrap:wrap}.cook-choices button{flex:1;min-width:40px;font-size:11px;padding:5px 2px;min-height:47px}.cook-choices .cook-icon{display:block;font-size:22px;margin-bottom:3px}.station-status{min-height:22px;font-size:11px;color:var(--muted);padding-top:7px;font-variant-numeric:tabular-nums}.station .progress{margin:5px 0}.station-actions{display:flex;gap:4px}.station-actions button{padding:5px;font-size:11px;min-height:32px}.station-actions .collect{flex:1;background:var(--green);border-color:var(--green);color:white}.station-actions .discard{font-size:10px;background:transparent}.station.stale .collect{background:var(--red);border-color:var(--red)}.equipment-next{font-size:11px;color:var(--muted);margin:0 12px 12px;padding:12px;border:1px dashed #c9ccbd;border-radius:6px;text-align:center}
.plate-panel{display:flex;flex-direction:column;overflow:hidden}.recipe-summary{padding:12px 13px;background:#f0f2e7;border-bottom:1px solid var(--line)}.recipe-summary>strong{font-size:16px;display:inline-block;margin-right:8px}.recipe-summary>span{font-size:11px;color:var(--red);font-weight:700}.recipe-parts{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.recipe-part{border:1px solid #d0d5c5;border-radius:5px;font-size:11px;background:#fcfcf5;padding:3px 5px}.recipe-part.done{color:var(--green);background:#e3eacf}.plate-scene{position:relative;display:grid;place-items:center;min-height:75px;flex:1;margin:6px 12px;background:repeating-linear-gradient(0deg,transparent 0 24px,#e6e6d61f 24px 25px),repeating-linear-gradient(90deg,#eee7d9 0 24px,#e5dfd0 24px 25px);border-radius:8px;overflow:hidden}.ceramic-plate{width:132px;height:100px;border-radius:50%;background:#fffcf4;border:10px solid #f9f9ed;box-shadow:0 6px 0 #c8c3ae,0 8px 13px #655b3a20,inset 0 0 0 2px #e3e4d7;display:grid;place-items:center}.ceramic-plate #plate-picture{font-size:52px;line-height:1}.quality{position:absolute;right:9px;bottom:7px;font-size:9px;display:flex;gap:5px;align-items:center;padding:4px 6px;background:#fffdf2da;border-radius:5px}.quality strong{color:var(--green);font-size:12px}.quality.low strong{color:var(--red)}.plate-items{display:flex;flex-wrap:wrap;gap:5px;min-height:37px;max-height:100px;overflow:auto;padding:4px 12px;scrollbar-width:thin}.plate-items button{min-height:36px;padding:4px 7px;font-size:11px;background:#f4f2e8}.plate-items button.low{color:var(--red);border-color:#c99c85}.plate-items .empty{font-size:11px;color:var(--muted);align-self:center}.delivery-controls{padding:9px 12px 12px;border-top:1px solid var(--line);margin-top:5px}.target-row{display:flex;gap:7px;align-items:center}.target-row label{font-size:11px;flex-shrink:0}.target-row select{flex:1}.target-row button{font-size:11px}.serve{margin-top:7px;width:100%;display:flex;justify-content:center;gap:20px;font-size:15px;min-height:42px}.game-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:7px;min-width:0}.game-footer p{font-size:12px;line-height:1.4;min-width:0}.game-footer p.error{color:var(--red)}.game-footer>span{font-size:10px;color:var(--muted);flex-shrink:0}
.pause-overlay{position:absolute;inset:0;background:#f5f0e5b8;backdrop-filter:blur(3px);display:grid;place-items:center;z-index:10}.pause-overlay>div{text-align:center;border:1px solid var(--line);padding:25px 40px;border-radius:16px;background:var(--paper);box-shadow:0 12px 50px #45403220}.pause-overlay span{font-size:34px}.pause-overlay h2{margin:12px 0;font:700 28px "PMingLiU",serif}.pause-overlay p{font-size:13px;margin-bottom:16px}.rotate-overlay{display:none;position:fixed;inset:0;z-index:30;background:var(--cream);padding:30px;text-align:center;flex-direction:column;align-items:center;justify-content:center;gap:18px}.rotate-phone{border:3px solid var(--green);width:98px;height:55px;border-radius:10px;font-size:35px;color:var(--green);transform:rotate(-15deg);margin-bottom:15px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green)}.rotate-overlay h2{font:900 34px "PMingLiU",serif}.rotate-overlay p{font-size:14px;line-height:1.9}.rotate-overlay>span{font-size:11px;color:var(--muted)}.rotate-overlay>a{font-size:12px;color:var(--green);margin-top:24px;border-bottom:1px solid var(--green);padding-bottom:5px}
dialog{border:1px solid #c6c9b7;border-radius:14px;padding:24px;background:var(--paper);color:var(--ink);width:min(650px,94vw);max-height:88dvh;overflow:auto;box-shadow:0 18px 60px #23282230}dialog::backdrop{background:#31382775;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.dialog-heading h2{font:900 26px "PMingLiU",serif}.dialog-heading button{background:transparent}dialog p,dialog ol{font-size:13px;line-height:1.9;margin:10px 0}dialog li{margin-bottom:6px}dialog ol{padding-left:20px}.menu-guide{display:grid;gap:5px;margin-top:16px}.menu-guide>div{display:grid;grid-template-columns:62px 1fr;gap:10px;font-size:12px;padding:8px;background:#f0f2e7;border-radius:5px;line-height:1.6}.menu-guide strong{color:var(--green)}.shortcut-note{color:var(--muted)}.end-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:var(--green-light);padding:20px;border-radius:9px;margin:18px 0;font-size:12px}.end-stats strong{display:block;font-size:24px;margin-top:5px}#end-dialog>.primary{width:100%}.privacy-footer,.footer-ad{max-width:1440px;margin-left:auto;margin-right:auto}
@media(max-width:1100px){.title>span{display:none}.restaurant{padding:9px 12px;gap:8px;grid-template-rows:48px 39px 150px minmax(0,1fr) 36px}.topbar{gap:16px;padding-bottom:7px}.title h1,.title h1 em{font-size:27px}.brand{font-size:16px}.toolbar button{font-size:12px;padding:6px 9px;min-height:36px}.dashboard{gap:14px}.dashboard strong{font-size:19px}.orders{height:125px}.ticket{padding:7px 8px;gap:4px}.ticket-title{font-size:13px}.ticket-title .meal-icon{font-size:20px}.ticket-expect{font-size:9px}.workbench{gap:8px;grid-template-columns:.8fr 1.1fr 1fr}.panel-heading{padding:9px}.panel-heading>span{display:none}.panel-heading h2{font-size:12px}.ingredients{gap:5px;padding:8px;grid-template-columns:repeat(2,1fr)}.ingredient{min-height:65px;font-size:11px}.ingredient>span{font-size:24px}.drink-settings{padding:8px;gap:5px}.drink-settings>div{display:block}.drink-settings label{display:none}.stations{gap:7px;padding:8px}.station{padding:7px}.station h3{font-size:11px}.station h3>small{display:none}.cook-choices button{font-size:10px;min-width:32px}.recipe-summary{padding:8px}.recipe-summary>strong{font-size:14px}.recipe-summary>span{font-size:10px}.recipe-part{font-size:10px;padding:2px 4px}.delivery-controls{padding:7px}.plate-items{padding:4px 7px}.target-row{gap:4px}.game-footer p{font-size:11px}.game-footer>span{font-size:9px}}
@media(orientation:landscape) and (max-height:540px){.restaurant{padding:5px max(8px,env(safe-area-inset-right)) 5px max(8px,env(safe-area-inset-left));gap:5px;grid-template-rows:39px 31px 112px minmax(0,1fr) 30px}.topbar{gap:14px;padding-bottom:4px}.brand{font-size:14px}.brand small{font-size:7px;margin-top:2px}.title h1,.title h1 em{font-size:24px}.toolbar button{font-size:11px;min-height:31px;padding:5px 8px}.dashboard{gap:9px}.dashboard span{font-size:10px}.dashboard strong{font-size:16px}.dashboard>div:not(:last-child){gap:6px}.dashboard .reputation strong{font-size:15px}.progression>span{margin-bottom:4px;font-size:10px}.section-heading{margin-bottom:4px}.section-heading h2{font-size:11px}.section-heading>span{font-size:9px}.orders{height:94px;gap:6px}.ticket{min-width:145px;flex-basis:calc((100% - 18px)/4);max-width:calc((100% - 18px)/4);padding:5px 6px;gap:3px;border-top-width:2px}.ticket-top{font-size:9px}.ticket-title{font-size:11px;gap:4px}.ticket-title .meal-icon{font-size:16px}.ticket-title small{font-size:8px}.ticket-note{font-size:9px;min-height:10px}.ticket-expect{font-size:8px}.ticket-bottom{gap:3px}.ticket-bottom button{min-height:23px;padding:2px;font-size:9px}.ticket .progress{height:3px}.workbench{gap:6px;grid-template-columns:.8fr 1.12fr 1fr}.panel{border-radius:7px}.panel-heading{padding:6px 8px}.panel-heading h2{font-size:11px}.panel-heading h2 b{font-size:11px}.ingredients{grid-template-columns:repeat(3,1fr);padding:6px;gap:4px}.ingredient{min-height:46px;gap:2px;font-size:10px;padding:4px 2px}.ingredient>span{font-size:19px}.drink-settings{padding:6px;gap:3px}.tiny-heading{font-size:10px}.tiny-heading small{font-size:8px}.drink-settings select{min-height:29px;font-size:10px;padding:2px}.panel-note{padding:6px 8px;font-size:9px}.stations{padding:6px;gap:5px}.station{padding:5px}.station h3{font-size:10px;margin-bottom:4px}.station h3>span{font-size:14px}.cook-choices{gap:3px}.cook-choices button{min-height:34px;font-size:9px;min-width:27px;padding:3px 2px}.cook-choices .cook-icon{font-size:15px;margin-bottom:2px}.station-status{font-size:9px;padding-top:4px;min-height:17px}.station .progress{margin:3px 0;height:4px}.station-actions button{min-height:29px;font-size:9px;padding:3px}.station-actions .discard{font-size:8px}.equipment-next{margin:3px 6px 6px;padding:6px;font-size:9px}.recipe-summary{padding:5px 7px}.recipe-summary>strong{font-size:11px}.recipe-summary>span{font-size:9px}.recipe-parts{gap:3px;margin-top:3px}.recipe-part{font-size:9px;padding:1px 3px}.plate-scene{min-height:30px;margin:4px 7px}.ceramic-plate{width:86px;height:62px;border-width:6px}.ceramic-plate #plate-picture{font-size:32px}.quality{font-size:8px;bottom:3px;right:3px;padding:2px 4px}.quality strong{font-size:10px}.plate-items{min-height:27px;max-height:47px;gap:3px;padding:2px 7px}.plate-items button{min-height:24px;padding:3px 5px;font-size:9px}.plate-items .empty{font-size:9px}.delivery-controls{padding:4px 6px 5px;margin-top:3px}.target-row select{min-height:27px;font-size:10px;padding:2px}.target-row label,.target-row button{font-size:9px}.target-row button{min-height:27px;padding:3px 5px}.serve{margin-top:4px;min-height:31px;font-size:11px}.game-footer{padding-top:4px;gap:8px}.game-footer p{font-size:9px;line-height:1.35}.game-footer>span{font-size:8px}.pause-overlay>div{padding:16px 30px}.pause-overlay h2{font-size:24px;margin:7px 0}}
@media(max-width:730px) and (orientation:landscape){.brand{display:none}.topbar{gap:9px}.title h1,.title h1 em{font-size:21px}.toolbar button{min-width:30px;padding:4px 6px}.dashboard{grid-template-columns:1fr .8fr .8fr 1fr 1.6fr;gap:6px}.dashboard strong{font-size:14px}.dashboard span{font-size:9px}.progression>span{font-size:8px}.ingredients{grid-template-columns:repeat(2,1fr)}.ticket{min-width:138px}.ticket-expect{font-size:7px}.workbench{grid-template-columns:.74fr 1fr 1.05fr}.game-footer>span{display:none}}
@media(max-width:900px) and (orientation:portrait){.rotate-overlay{display:flex}.restaurant{visibility:hidden}body{overflow:hidden}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep delivery anchored in short landscape viewports; the ingredient list,
   rather than the delivery controls, is the part that scrolls. */
@media(orientation:landscape) and (max-height:700px){
  .plate-panel{position:relative}
  .plate-panel>.panel-heading{display:none}
  .recipe-summary,.delivery-controls{flex-shrink:0}
  .plate-panel .recipe-summary{padding-right:77px}
  .plate-scene{display:contents}.ceramic-plate{display:none}
  .quality{top:5px;bottom:auto;right:5px;z-index:2;background:var(--paper)}
  .quality>span{display:none}.quality strong::before{content:'品質 ';font-size:8px;font-weight:400}
  .plate-items{flex:1;min-height:0;max-height:none;align-content:start;overflow:auto}
}
@media(orientation:landscape) and (max-height:540px){
  .restaurant{grid-template-rows:34px 28px 87px minmax(0,1fr) 25px}
  .orders{height:69px}.ticket-expect{display:none}
  .plate-panel{position:relative}.plate-panel>.panel-heading,.recipe-summary,.delivery-controls{flex-shrink:0}
  .plate-panel>.panel-heading{display:none}
  .plate-panel .recipe-summary{padding-right:77px}
  .plate-scene{display:contents}.ceramic-plate{display:none}
  .quality{top:5px;bottom:auto;right:5px;z-index:2;background:var(--paper)}
  .quality>span{display:none}.quality strong::before{content:'品質 ';font-size:8px;font-weight:400}
  .plate-items{flex:1;min-height:0;max-height:none;align-content:start;overflow:auto;padding-top:4px;padding-bottom:4px}
  .game-footer .privacy-link{font-size:8px;white-space:nowrap}
}
/* Third kitchen: a visible cooking station and a plate that changes with care. */
.ticket{padding:6px 8px;gap:3px}.ticket-expect{display:none}
.station.cooking .cook-choices,.station.ready .cook-choices,.station.stale .cook-choices{display:none}
.station-modes{display:flex;gap:4px}.station-modes button{flex:1;min-width:0;min-height:32px;padding:5px 3px;font-size:11px;background:#fffdf5}.station-modes button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.station-modes button[data-mode=auto][aria-pressed=true]{background:#e9cb75;border-color:#b18a30;color:#4b3c17}.station-mode-note{font-size:10px;line-height:1.5;color:var(--muted);margin:4px 0 7px}
.manual-open{width:100%;background:var(--green);color:white;border-color:var(--green);min-height:34px;font-size:11px;margin-top:5px}
.manual-dialog{width:min(1120px,97vw);max-width:none;height:min(760px,96dvh);max-height:96dvh;padding:0;overflow:hidden;background:#faf6e9;border-color:#a7b39c}
.manual-dialog[open]{display:flex;flex-direction:column}.chef-heading{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;border-bottom:1px solid var(--line);background:#f9f5e8}.chef-heading small{font:9px Georgia;letter-spacing:2px;color:var(--green)}.chef-heading h2{font:700 23px Georgia,"Microsoft JhengHei";margin-top:5px}.chef-heading>div:last-child{display:flex;gap:6px}.chef-steps{display:grid;grid-template-columns:repeat(4,1fr);padding:10px 16px;gap:6px;background:#e7eddf;flex-shrink:0}.chef-steps>span{font-size:11px;color:#939886;padding:7px 10px;border-radius:5px;background:#f1f3e9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chef-steps>span.current{background:#35645c;color:#fff}.chef-steps>span.complete{background:#d7e4c9;color:#3a6547}.chef-workspace{display:grid;grid-template-columns:minmax(0,1fr) 242px;min-height:0;flex:1}.chef-scene{position:relative;min-height:0;overflow:hidden;background:#d9bf92}.chef-scene canvas{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none;outline-offset:-4px}.chef-scene #manual-guide{pointer-events:none}.scene-label{position:absolute;left:15px;right:15px;bottom:12px;pointer-events:none;color:#fff9df;text-shadow:0 1px 5px #211a11;display:flex;flex-direction:column;gap:5px}.scene-label>span{font:700 22px Georgia,"Microsoft JhengHei"}.scene-label>small{font-size:10px}.chef-controls{padding:18px 16px;overflow:auto;border-left:1px solid var(--line);background:#f5f0e1;scrollbar-width:thin}.heat-readout{display:flex;flex-direction:column;gap:5px;margin-bottom:19px}.heat-readout>span{font-size:11px;color:var(--muted)}.heat-readout>strong{font:700 38px Georgia;color:#a65a2c;font-variant-numeric:tabular-nums}.heat-readout>small{font-size:10px;color:var(--muted)}.heat-label{display:flex;justify-content:space-between;font-size:12px}.chef-controls input[type=range]{width:100%;margin:14px 0 12px;accent-color:#a66434;cursor:pointer;min-height:26px}.heat-presets{display:flex;gap:5px}.heat-presets button{flex:1;min-height:32px;font-size:11px;padding:4px}.chef-doneness{margin:20px 0}.chef-doneness>span{display:flex;justify-content:space-between;font-size:11px}.doneness-track{position:relative;height:11px;background:#ded9c6;border-radius:9px;margin:10px 0;overflow:hidden}.doneness-track>i{display:block;height:100%;background:linear-gradient(90deg,#e7cc69,#a97238);width:0}.doneness-track>em{position:absolute;left:59%;width:12%;height:100%;top:0;border-left:2px solid #3d7255;border-right:2px solid #3d7255}.chef-doneness>small{font-size:9px;color:var(--muted)}.task-readout{display:block;font-size:13px;line-height:1.6;padding:10px 0;color:var(--green)}#manual-pour{width:100%;margin:6px 0}.gesture-alternatives{font-size:10px;margin-top:15px;border-top:1px dashed var(--line);padding-top:10px}.gesture-alternatives summary{cursor:pointer;color:var(--green)}#manual-gestures{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}#manual-gestures button{font-size:10px;min-height:30px;padding:4px}.gesture-alternatives small{font-size:9px;line-height:1.6;color:var(--muted)}.chef-action{padding:13px 18px;display:flex;gap:18px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);background:#fffcf2;flex-shrink:0}.chef-action>div{min-width:0;flex:1}.chef-action strong{display:block;font-size:13px;line-height:1.6;color:#354e3c}.chef-action p{font-size:10px;line-height:1.5;color:var(--muted);margin:4px 0 0}.chef-action>button{flex-shrink:0;min-width:160px;min-height:46px;font-size:13px}
@media(orientation:landscape) and (max-height:540px){.manual-dialog{height:98dvh;max-height:98dvh;width:98vw}.chef-heading{padding:5px 10px}.chef-heading h2{font-size:15px;margin-top:0}.chef-heading small{font-size:7px;letter-spacing:1px}.chef-heading button{min-height:27px;padding:3px 7px;font-size:10px}.chef-steps{padding:5px 8px;gap:4px}.chef-steps>span{font-size:9px;padding:4px 6px}.chef-workspace{grid-template-columns:minmax(0,1fr) 180px}.chef-controls{padding:8px 10px}.heat-readout{margin-bottom:7px;gap:2px}.heat-readout>strong{font-size:26px}.heat-readout>span,.heat-readout>small{font-size:9px}.heat-label{font-size:10px}.chef-controls input[type=range]{margin:3px 0;min-height:22px}.heat-presets button{min-height:25px;font-size:9px;padding:3px}.chef-doneness{margin:9px 0}.chef-doneness>span{font-size:9px}.doneness-track{margin:5px 0;height:8px}.chef-doneness>small{font-size:8px}.task-readout{font-size:10px;padding:4px 0}.chef-action{padding:6px 10px;gap:9px}.chef-action strong{font-size:10px;line-height:1.5}.chef-action p{font-size:8px;margin-top:3px;max-height:24px;overflow:auto}.chef-action>button{min-height:34px;min-width:120px;font-size:10px}.scene-label{left:9px;bottom:8px;right:9px}.scene-label>span{font-size:15px}.scene-label>small{font-size:8px}.gesture-alternatives{font-size:9px;margin-top:7px;padding-top:7px}#manual-pour{font-size:10px;min-height:30px}.station-modes button{font-size:10px;min-height:29px}.station-mode-note{font-size:9px}}
:root{--green:#35645c;--green-light:#e1ece6;--red:#a34f32;--gold:#d9ab40;--cream:#f3eee1;--paper:#fffcf5}
.title h1 em{color:#a98026}.restaurant{grid-template-rows:56px 42px 150px minmax(0,1fr) 36px;gap:10px}.orders{height:125px}
.cooking-mode{padding:9px 12px;background:#edf1e8;border-bottom:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px}.cooking-mode select{flex:1;min-height:32px}.cooking-mode small{width:100%;font-size:10px;color:var(--muted);line-height:1.5}
.station{background:linear-gradient(135deg,#e7ede5,#fafaf1)}.station h3{flex-wrap:wrap}.station h3>small{display:none}.cook-scene{height:61px;border-radius:7px;margin-top:8px;background:radial-gradient(ellipse at 50% 100%,#eac88980,transparent 70%),#f9f5e9;position:relative;display:grid;place-items:center;overflow:hidden}.cooking-food{font-size:33px;position:relative;z-index:1}.steam{position:absolute;top:0;color:#a0b3a3;opacity:0;letter-spacing:5px;left:calc(50% - 21px)}.station.cooking .steam{animation:steam 1.5s ease-in-out infinite}.station.cooking .cooking-food{animation:simmer 1s ease-in-out infinite}.mode-badge{position:absolute;right:4px;bottom:3px;font:700 9px Arial;color:var(--green);background:#ffffffe0;padding:2px 4px;border-radius:3px}.station.automatic .mode-badge{color:#806328}.technique-timeline{height:16px;margin:8px 2px;background:#d4dccd;border-radius:5px;position:relative;overflow:hidden}.target-zone{position:absolute;top:0;height:100%;background:var(--gold);box-shadow:inset 0 0 0 1px #b78c2e}.time-needle{position:absolute;top:0;height:100%;width:3px;background:#23433a;box-shadow:0 0 0 1px #fff;transform:translateX(-50%)}.technique-buttons{display:grid;grid-template-columns:1fr 1fr;gap:4px}.technique-buttons button{min-height:35px;padding:5px 2px;font-size:10px;background:#fff9e8;border-color:#cebd91}.technique-buttons button.perfect-time{background:#f7d779;border-color:#99702a;box-shadow:0 0 0 2px #f1d69366}.technique-feedback{font-size:10px;line-height:1.5;min-height:31px;margin:6px 0;color:var(--green)}.station-status{line-height:1.5}.station-actions{margin-top:5px}.plate-content{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.plate-content .plate-items{max-height:none;overflow:visible;min-height:34px}.plate-scene{display:grid;position:relative;min-height:135px;margin:7px;flex:none}.ceramic-plate{position:relative;width:178px;height:110px;display:grid;place-items:center;border-width:9px}.ceramic-plate #plate-picture{width:100%;height:100%;position:relative;font-size:30px}.ceramic-plate #plate-picture>span{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);line-height:1;transition:left .3s,top .3s,transform .3s}.layout-loose>span:nth-child(3n+1){left:33%!important;top:38%!important}.layout-loose>span:nth-child(3n+2){left:63%!important;top:43%!important}.layout-loose>span:nth-child(3n){left:48%!important;top:71%!important}.layout-stack>span:nth-child(1){top:73%!important}.layout-stack>span:nth-child(2){top:55%!important}.layout-stack>span:nth-child(3){top:36%!important}.layout-stack>span:nth-child(n+4){left:70%!important;top:55%!important;font-size:22px}.layout-fan>span:nth-child(3n+1){left:27%!important;top:62%!important;transform:translate(-50%,-50%) rotate(-25deg)!important}.layout-fan>span:nth-child(3n+2){left:50%!important;top:35%!important}.layout-fan>span:nth-child(3n){left:73%!important;top:62%!important;transform:translate(-50%,-50%) rotate(25deg)!important}.layout-circle>span:nth-child(4n+1){left:30%!important;top:35%!important}.layout-circle>span:nth-child(4n+2){left:70%!important;top:35%!important}.layout-circle>span:nth-child(4n+3){left:70%!important;top:70%!important}.layout-circle>span:nth-child(4n){left:30%!important;top:70%!important}#plate-garnish{position:absolute;bottom:4px;right:8px;font-size:25px;z-index:3}#plate-drizzle{position:absolute;width:76%;height:59%;border-top:3px dashed #b06d30;border-bottom:3px dashed #b06d30;border-radius:50%;transform:rotate(-20deg);pointer-events:none;z-index:2}.quality{top:auto;bottom:5px;right:5px}.quality>span{display:inline}.quality strong::before{content:none}
.plating-controls{padding:8px 10px;border-top:1px dashed var(--line);font-size:11px;background:#f3f2e7}.plating-controls summary{cursor:pointer;font-weight:700;color:var(--green);padding:3px 0}.plating-controls summary span{float:right;color:var(--red)}.plating-controls p{margin:6px 0;color:var(--muted);font-size:10px;line-height:1.6}.layout-choices{display:flex;gap:4px}.layout-choices button{flex:1;min-width:0;min-height:32px;font-size:10px;padding:4px 2px}.layout-choices button[aria-pressed=true],#drizzle[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.garnish-row{display:flex;gap:5px;align-items:center;margin-top:6px}.garnish-row select{flex:1;min-height:31px;font-size:11px}.garnish-row button{min-height:31px;font-size:10px;padding:4px}.plating-controls>small{display:block;font-size:9px;line-height:1.5;color:var(--muted);margin-top:6px}.delivery-controls{flex-shrink:0}.last-review{border:0;background:#edf1e8;color:var(--green);width:100%;min-height:27px;padding:4px;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.journal-balance{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--green-light);padding:16px;border-radius:9px;margin-bottom:20px;font-size:13px}.journal-balance strong{font-size:27px;color:var(--green)}.journal-balance small{width:100%;color:var(--muted);font-size:11px}#journal-dialog h3{font-size:15px;margin:18px 0 8px}#daily-day{font-size:11px;color:var(--muted);font-weight:400}.upgrade-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 2px;border-bottom:1px solid var(--line);font-size:13px}.upgrade-row small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.upgrade-row button{flex-shrink:0}.challenge-list{display:grid;gap:7px}.challenge-row{display:grid;grid-template-columns:1fr auto;gap:5px;background:#f1f1e5;border-radius:7px;padding:12px;font-size:12px}.challenge-row>span{grid-row:2;color:var(--muted);font-size:11px}.challenge-row>b{grid-row:1;grid-column:2}.challenge-row>small{grid-column:2;grid-row:2;color:var(--red);font-size:11px}.challenge-row.achieved{background:#e5eddc}.challenge-row.achieved>small{color:var(--green)}.review-headline{display:flex;gap:20px;align-items:center;margin:18px 0;font-size:15px}.review-grade{font:italic 700 62px Georgia;color:var(--green)}.review-grade.grade-S{color:#a98026}.review-grade.grade-C,.review-grade.grade-D{color:var(--red)}#review-content blockquote{margin:12px 0;padding:16px;background:#eef0e4;border-radius:9px;font-size:14px;line-height:1.8}.review-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.review-metrics>div{display:flex;gap:10px;justify-content:space-between;padding:12px;border:1px solid var(--line);border-radius:6px;font-size:12px}.auto-cap-note{color:var(--red);font-weight:700}
@keyframes steam{0%{transform:translateY(10px);opacity:0}50%{opacity:.8}100%{transform:translateY(-10px);opacity:0}}@keyframes simmer{50%{transform:translateY(-3px) rotate(3deg)}}
@media(max-width:1100px){.restaurant{grid-template-rows:44px 35px 140px minmax(0,1fr) 32px;gap:7px}.orders{height:115px}.toolbar{gap:4px}.toolbar button{padding:5px 7px}.topbar{gap:12px}.brand{font-size:14px}.title h1,.title h1 em{font-size:24px}.stations{grid-template-columns:1fr}.plate-content .plate-items{padding:4px 7px}.ceramic-plate{width:150px;height:100px}.review-metrics>div{flex-wrap:wrap}}
@media(orientation:landscape) and (max-height:700px){.plate-content .plate-scene{display:grid;min-height:110px;position:relative}.plate-content .ceramic-plate{display:grid}.plate-content .quality{top:auto;bottom:3px;right:3px}.plate-content .quality>span{display:none}.plate-content .plate-items{flex:none;min-height:27px;max-height:none;overflow:visible}.plate-panel .recipe-summary{padding-right:8px}.plate-content{overflow:auto}.plate-panel{min-height:0}.plating-controls{padding:6px}.delivery-controls{margin-top:0}.last-review{min-height:22px;font-size:10px;margin-bottom:3px}}
@media(orientation:landscape) and (max-height:540px){.restaurant{grid-template-rows:34px 27px 87px minmax(0,1fr) 26px;gap:5px}.orders{height:69px}.title h1,.title h1 em{font-size:22px}.toolbar button{font-size:10px;min-height:29px;min-width:27px;padding:3px 6px}.toolbar{gap:3px}.cooking-mode{padding:4px 6px;gap:3px;font-size:9px}.cooking-mode select{min-height:27px;font-size:10px;padding:2px}.cooking-mode small{font-size:8px}.stations{grid-template-columns:1fr;padding:5px}.station{padding:6px}.station h3{margin-bottom:4px}.cook-choices button{min-height:30px}.cook-scene{height:36px;margin-top:5px}.cooking-food{font-size:25px}.mode-badge{font-size:8px}.technique-timeline{height:13px;margin:5px 2px}.technique-buttons button{min-height:30px;font-size:10px}.technique-feedback{font-size:9px;min-height:14px;margin:4px 0}.station-status{min-height:16px}.station-actions button{min-height:29px}.plating-controls small{font-size:8px}.layout-choices button{font-size:9px;min-height:29px}.garnish-row button{font-size:9px}.plating-controls p{font-size:9px}.plate-content .ceramic-plate{width:132px;height:84px;border-width:7px}.plate-content .plate-scene{min-height:98px}.ceramic-plate #plate-picture{font-size:26px}.plate-content .plate-items button{font-size:9px}.quality strong{font-size:10px}.section-heading>span{display:none}.game-footer p{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:9px}.last-review{font-size:9px}#fullscreen{display:none}}
@media(max-width:650px) and (orientation:landscape){.title h1,.title h1 em{font-size:19px}.toolbar button{font-size:9px;padding:3px 4px}.topbar{gap:4px}.workbench{grid-template-columns:.65fr 1.1fr 1fr}.cooking-mode label{display:none}.garnish-row{flex-wrap:wrap}.garnish-row label{display:none}.dashboard .progression{display:none}.dashboard{grid-template-columns:repeat(4,1fr)}.recipe-summary>strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(orientation:landscape) and (max-height:540px){
  .restaurant{min-height:min(360px,100dvh);grid-template-columns:minmax(0,1fr)}
  .restaurant>*{min-width:0}
  .manual-dialog{width:calc(100% - 8px);height:calc(100% - 8px);max-height:calc(100% - 8px)}
  .ticket{padding:2px 4px;gap:1px;border-top-width:2px}
  .ticket-top{font-size:8px;line-height:10px}.ticket-title{font-size:10px;line-height:13px}.ticket-title .meal-icon{font-size:13px}.ticket-title small{font-size:7px}
  .ticket-note{font-size:8px;line-height:10px;min-height:10px}.ticket .progress{display:none}
  .ticket-bottom{margin-top:auto;gap:3px}.ticket-bottom button{min-height:20px;padding:2px;font-size:8px;line-height:14px}
}
