#storageNote:empty{display:none}
.play-launcher{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#dce9dc;border:1px solid #b4cdbb;border-radius:16px;padding:16px;margin-bottom:12px}
.play-launcher>div{display:grid;gap:5px}.play-launcher strong{font-size:17px}.play-launcher span{font-size:13px;line-height:1.5}.play-launcher button{flex-shrink:0;min-height:48px;font-size:14px}
@media(max-width:600px){.play-launcher{align-items:stretch;flex-direction:column;gap:12px}.play-launcher button{width:100%}}
body.cafe-focused{overflow:hidden!important;padding:0!important}
body.cafe-focused> :not(#cafePlayView):not(dialog):not(script):not(style){display:none!important}
body.cafe-focused #cafePlayView{display:grid;position:fixed;inset:0;z-index:9000;width:100%;height:100vh;height:100dvh;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);grid-template-rows:auto auto auto minmax(0,1fr);background:#ede0c2;color:#254e4b;overflow:hidden;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#cafePlayView[hidden]{display:none!important}
#cafePlayView button{font-family:inherit;min-width:44px;min-height:44px;line-height:1.2;font-size:13px;padding:9px 12px;border-radius:12px;touch-action:manipulation}
#cafePlayView .play-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;background:#396e63;color:#fff3d6;min-height:54px}
#cafePlayView .play-header strong{font-size:16px;text-align:center;line-height:1.2;min-width:0}.play-header small{display:block;font-size:10px;font-weight:500;letter-spacing:.3px;margin-top:3px;color:#deead8}
#cafePlayView .play-header button{background:#f8edcf;color:#315a51;border-color:#d8c798;padding:8px 10px}
.play-nav{display:flex;align-items:center;gap:7px;padding:4px 8px;border-bottom:3px solid #c59467;background:#f7edcf;min-height:52px}
#playClock{margin-left:auto;font-size:15px;font-variant-numeric:tabular-nums;font-weight:750;white-space:nowrap}
#playOrders span{display:inline-grid;place-items:center;min-width:19px;border-radius:50%;background:#e3d7ac;padding:2px;margin-left:3px;font-size:11px}
#playCustomer{overflow:hidden;border-bottom:3px solid #ab8057}
#cafePlayView .service-window{height:74px;min-height:0;border:0;border-radius:0;margin:0;background:#c9dfcf;position:relative;overflow:hidden}
#cafePlayView .service-window .window-label,#cafePlayView #customerHint{display:none}
#cafePlayView .cafe-backdrop{position:absolute;width:100%;height:100%;opacity:.7}
#cafePlayView .customer-ticket{inset:4px 12px;display:flex;gap:8px;align-items:center;justify-content:center;position:absolute;transform:none}
#cafePlayView .customer-ticket .customer-swimmer{width:65px;flex:0 0 65px;height:60px}
#cafePlayView .customer-ticket canvas{width:65px;height:54px;max-width:100%}
#cafePlayView .customer-ticket>div{padding:6px 10px;max-width:550px;border-radius:12px 12px 12px 2px;min-width:0}
#cafePlayView .customer-ticket #customerName{font-size:9px;letter-spacing:.5px;margin:0 0 3px}
#cafePlayView .customer-ticket h2{font-size:12px;line-height:1.3;margin:0}
#cafePlayView .served-dish{width:55px;height:32px;left:15px;bottom:0}
.play-body{min-height:0;display:grid;grid-template-rows:minmax(130px,1fr) auto;overflow:hidden}
.play-scene{display:grid;grid-template-rows:25px minmax(80px,1fr) auto;min-height:0;overflow:hidden}
#cafePlayView .cook-steps{margin:0;padding:3px 7px;gap:5px;background:#eddbb4;border:0;min-height:0}
#cafePlayView .cook-steps li{font-size:10px;padding:2px;line-height:1.4}
#cafePlayView .work-surface{min-height:0;height:100%;border-top:0;background-size:100% 28px,100% 100%}
#cafePlayView #workArt{height:100%;min-height:0;padding:0 8px 19px;box-sizing:border-box;overflow:hidden}
#cafePlayView #workArt>svg{width:100%;height:100%;max-height:none}
#cafePlayView .gesture-hint{bottom:3px;font-size:10px;line-height:1.2}
#cafePlayView .kitchen-status{min-height:0;margin:0;border:0;border-top:3px solid #a98055;padding:4px 12px;background:#f5e7c6}
#cafePlayView .kitchen-status p{color:#3a6256;margin:2px 0;min-height:0;font-size:11px;line-height:1.3;max-height:29px;overflow-y:auto}
#cafePlayView #cookMeter{height:4px;margin:0 0 2px}
.play-tools{min-height:0;overflow:auto;max-height:45dvh;overscroll-behavior:contain;background:#fff5da;border-top:1px solid #c5ad80;padding-bottom:3px}
#cafePlayView .chef-tools{margin:0;padding:8px 12px;border:0;border-radius:0;box-shadow:none;background:transparent;position:static;min-width:0}
#cafePlayView .chef-tools:before,#cafePlayView .chef-tools:after,#cafePlayView .order-ticket-head,#cafePlayView .counter-controls,#cafePlayView .chef-note,#cafePlayView #newRecipe,#cafePlayView #meetCustomer,#cafePlayView #stepLabel{display:none!important}
#cafePlayView .chef-tools h2{font-size:17px;line-height:1.2;margin:0 0 4px}
#cafePlayView #toolInstructions{font-size:12px;line-height:1.3;margin:0 0 7px}
#cafePlayView .cook-choices{display:flex;flex-wrap:nowrap;gap:7px;margin:0 0 7px;overflow-x:auto}
#cafePlayView .cook-choices:empty{display:none}
#cafePlayView .cook-choice{flex:1 0 88px;min-width:88px;flex-direction:row;gap:4px;min-height:44px;padding:4px 6px;font-size:11px;line-height:1.2;white-space:nowrap}
#cafePlayView .choice-art{width:25px;height:25px;flex:0 0 25px}
#cafePlayView .cook-action{font-size:14px;min-height:48px;width:100%;padding:10px;box-shadow:0 3px #1c514e33;margin:0 0 3px;touch-action:none}
#cafePlayView #cookBack{min-height:44px;font-size:12px;margin:4px 0 0;padding:8px;width:100%}
#cafePlayView .active-patience{font-size:10px;line-height:1.2;margin:0 0 6px}
#cafePlayView .active-patience>div{margin-top:3px;height:3px}
#cafePlayView .thankyou-art{height:100%;padding:8px;display:flex;flex-direction:column;justify-content:center;gap:4px}
#cafePlayView .thankyou-art>span{font-size:34px;line-height:1}#cafePlayView .thankyou-art p{margin:0}
#cafePlayView .thankyou-art strong{font-size:19px}#cafePlayView .thankyou-art p{font-size:12px}
/* In landscape, the food stays beside the controls rather than above them. */
#cafePlayView[data-wide=true] .play-body{grid-template-columns:minmax(0,1.25fr) minmax(250px,1fr);grid-template-rows:minmax(0,1fr)}
#cafePlayView[data-wide=true] .play-tools{max-height:none;border-top:0;border-left:2px solid #c5ad80}
#cafePlayView[data-wide=true] .service-window{height:64px}
#cafePlayView[data-short=true] .play-header{min-height:48px;padding-block:2px}
#cafePlayView[data-short=true] .play-header small{display:none}
#cafePlayView[data-short=true] .service-window{height:58px}
#cafePlayView[data-short=true] .customer-ticket{inset:1px 8px}
#cafePlayView[data-short=true] .customer-ticket .customer-swimmer{height:50px}
#cafePlayView[data-short=true] .customer-ticket canvas{height:46px}
#cafePlayView[data-short=true] #toolInstructions{font-size:11px;line-height:1.25}
#cafePlayView[data-short=true] .chef-tools{padding:6px 9px}
#cafePlayView[data-short=true] .chef-tools h2{font-size:15px}
#cafePlayView[data-short=true] .kitchen-status p{max-height:15px}
#cafePlayView[data-short=true][data-wide=false] .play-body{overflow-y:auto;display:block}
#cafePlayView[data-short=true][data-wide=false] .play-scene{height:185px}
#cafePlayView[data-short=true][data-wide=false] .play-tools{max-height:none;overflow:visible}
@media(max-width:350px){#cafePlayView .play-header strong{font-size:13px}#cafePlayView .cook-choice{flex-direction:column;gap:1px}#cafePlayView .customer-ticket h2{font-size:11px}}
#cafePlayPanel{width:min(620px,calc(100% - 20px));max-height:calc(100dvh - 24px);padding:14px;border:2px solid #a8c2ad;border-radius:20px;background:#fff7de;color:#254e4b;overflow:auto}
#cafePlayPanel::backdrop{background:#153e38aa}
#cafePlayPanel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-14px;background:#fff7de;z-index:1;padding:4px 0 10px}
#cafePlayPanel h2{font-size:21px;line-height:1.2;margin:0}
#cafePlayPanel button,#cafePlayPanel summary{min-height:44px;font-size:14px}
#playPanelNote{font-size:12px;line-height:1.4;margin:0 0 12px}
#cafePlayPanel .recipe-menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow:visible;padding:0}
#cafePlayPanel .recipe-menu button{min-width:0;min-height:108px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:9px;background:#e5edd9;color:#315c50;border:2px solid #b5c6a7;font-size:13px}
#cafePlayPanel .recipe-menu [aria-pressed=true]{border-color:#2a7563;background:#cfe3d1}
#cafePlayPanel .menu-icon{width:72px;height:44px;display:block}
#cafePlayPanel .recipe-menu small{font-size:10px;display:block;margin-top:5px;color:#526c5c}
#cafePlayPanel .order-queue{display:grid!important;grid-template-columns:1fr;overflow:visible}
#cafePlayPanel .queue-order{width:100%;min-height:88px}
#cafePlayPanel .queue-order canvas{width:70px;height:45px}
#cafePlayPanel .order-rail-title>span{display:none}
#playPanelMenu{display:grid;gap:9px}#playPanelMenu[hidden]{display:none}
#playPanelMenu details{padding:8px 0;font-size:14px;line-height:1.6}#playPanelMenu summary{padding-block:8px}
html[data-game-pane] body.cafe-focused #cafePlayView{left:var(--game-pane-left);right:auto;width:var(--game-pane-width)}
html[data-game-pane] #cafePlayPanel{max-width:calc(var(--game-pane-width) - 24px);margin-left:calc(var(--game-pane-left) + 12px);margin-right:auto}
html[data-game-horizontal-hinge] body.cafe-focused #cafePlayView{height:var(--game-pane-height);bottom:auto}
html[data-game-horizontal-hinge] #cafePlayPanel{max-height:calc(var(--game-pane-height) - 24px);margin-top:12px}
@media(prefers-reduced-motion:reduce){#cafePlayView *,#cafePlayPanel *{scroll-behavior:auto!important}}
