/* Shared mobile and desktop layout. The bottom 58px is reserved for two notices. */
#app{overflow:clip}.game-screen{overflow:clip}.result-screen{overflow-y:auto}.result-card .text-button{color:#71302f}
#mpStation{overflow-x:hidden}#mpServe{position:relative;inset:auto;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:55px}#mpServe strong,#mpServe small{align-self:auto;text-align:center}#mpServe small{font-size:12px}
.screen{bottom:58px}.toast-region{top:auto;bottom:max(2px,var(--safe-bottom));height:54px;width:calc(100% - 16px);gap:3px;align-content:end}.toast{min-height:24px;padding:4px 9px;font-size:12px;line-height:16px;border-radius:7px;box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
button{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid #ffd165;outline-offset:3px}button:disabled{opacity:.5;cursor:default}
.game-button--blue{color:white;background:linear-gradient(#337eb0,#174b74);box-shadow:0 5px 0 #102d43,inset 0 1px #a6d6ef66}.save-status{display:block;color:#fff9d6;text-align:center;font-size:12px}.menu-actions{gap:10px;bottom:7%}.menu-actions .text-button{order:4}.menu-foot{display:none}
.customer-area{height:40%;top:62px}.customer{top:8px;bottom:0;width:31%;height:100%;cursor:pointer}.customer:not(.is-active) .order-bubble{display:block}.order-bubble{width:100%;min-width:0;max-width:none;padding:7px 4px;border-radius:12px;top:0;transform:translateX(-50%)}.customer.is-active .order-bubble{border-color:#efa824;box-shadow:0 0 0 2px #a86918,0 5px 14px #0005}.order-lines{max-height:188px;display:grid;gap:4px;overflow-y:auto}.order-line{padding:2px;gap:3px;min-width:0}.order-line img{width:24px;height:29px}.order-line-copy{min-width:0}.order-line-copy strong{font-size:12px;overflow-wrap:anywhere}.order-line-copy small{font-size:11px;white-space:normal;max-width:none;line-height:1.2}.patience-copy{font-size:10px}.customer-name{font-size:12px;bottom:7%;white-space:nowrap;max-width:100%;overflow:hidden}.customer-figure{height:62%;bottom:0}.browsing-copy{font-size:12px;gap:2px;min-height:100px;flex-direction:column}
.workstation{height:55%;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}.product-button{min-height:43px}.product-button span{font-size:12px;max-width:72px}.station-label{font-size:11px}.fryer-number,.fryer-timer{font-size:11px}.fryer-status{font-size:12px}.fryer{grid-template-rows:18px 1fr 22px}.fryer-row{height:116px}.sauce-button span{font-size:11px}.tray-item small{font-size:11px}.ready-stock-empty,.tray-placeholder{font-size:12px}.pos-launch{font-size:13px;min-height:36px}.pos-ticket-line.is-selected{background:#fff0c8;color:#851f29}.pos-product small{display:block}.pos-ref-line{font-size:14px}.pos-ticket-lines{min-height:60px}
.fryer.is-cooking .fryer-well::after,.fryer.is-ready .fryer-well::after{content:'';position:absolute;z-index:3;inset:0;pointer-events:none;background:radial-gradient(ellipse at 30% 80%,#ffffff80,transparent 15%),radial-gradient(ellipse at 60% 60%,#fff8,transparent 20%),radial-gradient(ellipse at 80% 95%,#fff5,transparent 17%);animation:steam-up 1.3s linear infinite}.fryer.is-cooking .fryer-oil{background-size:17px 21px,23px 18px,29px 25px,100%;animation:oil-boil .28s linear infinite}.fryer.is-burnt .fryer-well::after{content:'';position:absolute;z-index:3;inset:0;background:radial-gradient(ellipse,#242424aa,transparent);animation:steam-up 1s infinite}
@keyframes steam-up{0%{transform:translateY(15%) scale(.9);opacity:.25}60%{opacity:.75}100%{transform:translateY(-65%) scale(1.5);opacity:0}}
.fryer.is-ready{animation:ready-glow .7s infinite alternate}@keyframes ready-glow{to{filter:brightness(1.15);box-shadow:0 0 20px #45ba7588}}
.multi-card{position:relative;margin:14px auto 24px;width:calc(100% - 28px);max-width:540px;padding:22px;color:#352621;display:flex;flex-direction:column;gap:13px}.multi-card h2{font-size:28px;margin:0}.multi-card p{margin:0;font-size:16px;line-height:1.5}.eyebrow{font-size:12px;letter-spacing:.15em;font-weight:900;color:#8d2430}.multi-card label,.profile-card label{font-size:14px;font-weight:800}.multi-card input,.multi-card select,.profile-card input{width:100%;min-width:0;min-height:48px;border:1px solid #bcb0a5;border-radius:10px;padding:10px 12px;background:#fff;color:#342b27;font:inherit;font-size:17px}.multi-card .game-button{min-height:55px}.or-divider{display:flex;align-items:center;gap:15px;font-size:13px;color:#76665c}.or-divider:before,.or-divider:after{content:'';height:1px;background:#d5c9b9;flex:1}.join-row{display:flex;gap:8px;align-items:center}.join-row input{flex:1}.join-row button{flex:none}.inline-error{font-size:14px;color:#ac2632;min-height:20px}.small-copy{font-size:13px!important;color:#6a584a}.room-code{font-size:36px;letter-spacing:.18em;font-weight:900;color:#8e202b;line-height:1.4;background:#fff6dd;border:2px dashed #d4ab65;border-radius:12px;padding:6px}.lobby-players{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lobby-player{display:flex;flex-direction:column;gap:5px;border:1px solid #c9bdad;border-radius:12px;padding:12px;background:#fff9ef;min-width:0}.lobby-player>span{font-size:11px;letter-spacing:.1em;color:#826a55}.lobby-player strong{font-size:17px;overflow-wrap:anywhere}.lobby-player small{font-size:12px}.lobby-player b{font-size:13px;color:#8c6731}.lobby-player.is-ready{border-color:#559867;background:#e8f4e9}.lobby-player.is-ready b{color:#287940}.role-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.role-options button{display:flex;flex-direction:column;gap:6px;align-items:center;padding:14px 6px;border:2px solid #bdb4a6;border-radius:12px;background:white;color:#47352a}.role-options b{font-size:17px}.role-options span{font-size:12px}.role-options .is-selected{border-color:#9c2533;background:#fff0cd;box-shadow:0 0 0 2px #ffc850}.connection-status{color:#8c3c1d;font-size:13px;min-height:0}.panel-screen{overflow-y:auto}.multi-card .connection-status:empty{display:none}
.team-bar{position:absolute;top:58px;left:12px;right:12px;display:flex;align-items:center;gap:10px;border-radius:8px;padding:7px 10px;background:#221512d9;color:white;font-size:13px;z-index:5}.team-bar b{white-space:nowrap}.team-bar #teamMate{flex:1;overflow:hidden;text-overflow:ellipsis}.team-bar #mpHearts{color:#ff8c89;letter-spacing:3px}.game-connection{position:absolute;top:88px;z-index:20;left:10px;right:10px;background:#fff0c9;border-radius:7px;text-align:center;padding:7px}.game-connection:empty{display:none}
.mp-customers{position:absolute;top:102px;left:8px;right:8px;bottom:53%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-items:stretch}.mp-customer{position:relative;min-width:0;background:transparent;align-self:stretch;text-align:left;color:#392b22;border:0;overflow:visible}.mp-order{position:absolute;left:0;right:0;top:0;z-index:2;background:#fffaf1f5;padding:7px 5px;border:2px solid #e4d5bf;border-radius:12px;box-shadow:0 4px 14px #0002}.mp-order>b{display:block;font-size:12px;margin-bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp-order>small{font-size:10px}.mp-order p{font-size:13px;line-height:1.5;margin:15px 0}.mp-order-line{display:flex;gap:2px;align-items:center;margin:4px 0}.mp-order-line img{width:24px;height:28px;object-fit:contain}.mp-order-line span{font-size:12px;line-height:1.15;min-width:0;overflow-wrap:anywhere}.mp-order-line small{display:block;font-size:10px;color:#806b58;margin-top:2px}.mp-person{position:absolute;bottom:-15px;left:5%;width:90%;height:62%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 4px 8px #0005);animation:customer-idle 3s infinite}.mp-customer.is-selected .mp-order{border-color:#de9c28;box-shadow:0 0 0 2px #ffe298}.mp-customer.is-entering{animation:mp-walk .85s ease-out}.mp-customer.is-leaving{animation:mp-leave .8s ease-in forwards}.mp-customer.is-angry .mp-person{animation:angry-stomp .3s infinite}.mp-patience{height:6px;background:#ded5c8;border-radius:4px;margin:6px 0 2px;overflow:hidden}.mp-patience i{display:block;height:100%;transition:width 1s linear}.mp-empty{grid-column:1/-1;align-self:center;text-align:center;color:#452e21;background:#fff8e5dc;padding:14px;border-radius:14px}
@keyframes mp-walk{from{transform:translateX(80vw);opacity:0}}@keyframes mp-leave{to{transform:translateX(-80vw);opacity:0}}
.mp-station{position:absolute;left:0;right:0;bottom:0;height:53%;overflow-y:auto;padding:15px 10px;background:linear-gradient(135deg,#e6e8e8,#abb1b5);border-top:2px solid #fff;border-radius:22px 22px 0 0;color:#342b25;box-shadow:0 -6px 28px #0005}.station-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.station-heading h2{font-size:20px;margin:0}.station-heading>span{font-size:11px;color:#615650}.mp-station h3{font-size:14px;margin:15px 0 8px}.demand{display:flex;gap:5px;flex-wrap:wrap;min-height:35px;align-items:center;margin-bottom:10px}.demand span{font-size:14px;background:#fff5dd;padding:5px 8px;border-radius:7px}.mp-fryers{display:grid;grid-template-columns:1fr 1fr;gap:10px;height:150px;margin-top:12px}.mp-fryers img{width:80px;height:65px}.mp-stock{display:flex;gap:6px;flex-wrap:wrap;align-items:center;min-height:55px;margin-bottom:12px}.mp-stock>span{font-size:14px;color:#5e5248}.mp-stock button{display:flex;align-items:center;gap:4px;border:1px solid #b4a486;border-radius:10px;background:#fff8e9;padding:5px 8px;min-height:48px;color:#392c22;font-size:13px}.mp-stock button:disabled{opacity:1}.mp-stock img{width:36px;height:36px;object-fit:contain}#mpTray{height:94px;margin:8px 0 12px;border:1px dashed #9d958c;border-radius:12px;padding:5px}#mpTray .tray-item{height:79px;min-width:72px}#mpSauces{min-height:50px;margin-bottom:14px}#mpServe{width:100%;margin:10px 0 2px}#mpServe:disabled{filter:grayscale(.6);opacity:.65}.result-earned{display:flex;flex-direction:column;gap:8px;font-size:14px;margin:22px 0}.result-earned strong{font-size:38px;color:#216135}#multiResult .result-card p{font-size:15px}#multiResult .result-card h1{font-size:28px}
.scores-content{position:relative;padding:14px;max-width:800px;margin:auto;color:#31251e}.profile-card{padding:18px;margin-bottom:15px}.profile-card label{display:block;margin-bottom:8px}.profile-card p{font-weight:800;font-size:15px}.profile-card small{font-size:12px}.score-table-wrap{overflow-x:auto;border-radius:12px;background:#fff8eb}.score-table-wrap table{border-collapse:collapse;width:100%;font-size:13px}.score-table-wrap th,.score-table-wrap td{padding:12px 8px;border-bottom:1px solid #dacdb7;text-align:left;white-space:nowrap}.score-table-wrap th{background:#8e2630;color:white;font-size:12px}.score-table-wrap td:first-child{white-space:normal}.score-table-wrap td small{color:#886b50}
@media(min-width:900px) and (min-height:580px){
 #app{width:min(100%,1320px);height:100dvh;min-height:580px}.menu-logo{left:28%;top:22%;width:44%}.menu-actions{left:59%;right:7%;bottom:15%;gap:15px}.menu-bg{background-position:center 62%}.menu-logo .brand-name{font-size:80px}.menu-foot{display:block;left:8%;right:auto;bottom:10%}.game-hud{top:10px;left:16px;right:16px;height:55px}.hud-chip strong{font-size:24px}.hud-chip small,.hud-progress{font-size:13px}.customer-area{top:87px;left:10px;right:54%;height:calc(100% - 88px)}.customer{top:8px;height:100%;width:31%}.order-bubble{padding:10px 7px}.order-line-copy strong{font-size:14px}.order-line-copy small{font-size:12px}.order-line img{width:34px;height:34px}.customer-figure{height:60%}.customer-name{bottom:8%;font-size:14px}.order-lines{max-height:290px}.patience-copy{font-size:12px}.workstation{top:84px;left:48%;right:12px;bottom:12px;height:auto;border-radius:22px;padding:20px}.station-topbar{height:32px;margin-bottom:14px}.product-strip-wrap{height:85px}.product-button{height:55px;padding:6px 10px}.product-button img{width:38px;height:38px}.product-button span{font-size:13px}.station-label{font-size:12px}.fryer-row{height:175px;gap:12px}.fryer img{height:70px;width:90px}.fryer-status{font-size:15px}.fryer-number,.fryer-timer{font-size:12px}.assembly{height:155px;margin-top:18px}.tray-items{height:116px}.tray-item{height:95px}.tray-item img{height:58px}.sauce-button{height:50px}.serve-button{height:62px}.customer-area:after{display:none}.mp-customers{top:130px;left:15px;right:54%;bottom:0;gap:12px}.mp-order{padding:12px 7px}.mp-order>b{font-size:15px}.mp-order-line img{width:36px;height:40px}.mp-order-line span{font-size:14px}.mp-order-line small,.mp-order>small{font-size:12px}.mp-person{height:61%;bottom:0}.mp-station{top:90px;left:48%;right:12px;bottom:12px;height:auto;border-radius:22px;padding:24px}.mp-fryers{height:220px}.mp-fryers img{width:110px;height:100px}.mp-station h3{margin-top:25px}.station-heading h2{font-size:26px}.station-heading>span{font-size:12px}.team-bar{top:83px;left:16px;right:54%}.game-connection{top:69px;left:49%;right:20px}.mp-stock{min-height:80px}#mpTray{height:124px}#mpTray .tray-item{height:108px;min-width:96px}.multi-card{margin-top:25px}.toast-region{max-width:700px}.score-table-wrap table{font-size:16px}.panel-header{max-width:840px;margin:auto}.pos-panel{max-width:730px}
}
@media(max-height:720px){.multi-card{padding:16px;gap:10px}.multi-card h2{font-size:24px}.multi-card p{font-size:14px}.menu-logo{top:7%}.menu-actions{bottom:3%;gap:8px}.menu-actions .game-button{min-height:47px}.mp-station{height:51%}.mp-customers{bottom:51%}.station-heading{margin-bottom:7px}.station-heading h2{font-size:18px}.mp-fryers{height:115px}.mp-stock{min-height:45px;margin-bottom:6px}.mp-station{padding:10px}.demand{margin-bottom:6px}.mp-station h3{margin-top:10px}.customer-area{height:39%}.workstation{height:56%}.menu-actions .save-status{font-size:10px}}
@media(prefers-reduced-motion:reduce){.fryer-well::after,.mp-person,.mp-customer{animation:none!important}.mp-patience i{transition:none}}

/* Version 3: real kitchen and counter workspaces; controls stay in document flow. */
[hidden]{display:none!important}
#app{min-height:0}
.menu-header{gap:8px}.menu-header .wallet{margin-left:auto}
.workstation{display:flex;flex-direction:column;gap:7px;padding-bottom:12px}
.workstation>*{flex-shrink:0}.workstation .station-topbar{min-height:28px;height:auto;margin:0}
.workstation .product-strip-wrap{height:auto;min-height:62px}.workstation .product-strip{padding-bottom:5px}
.workstation .fryer-row{margin:0;min-height:106px}.workstation .assembly{height:120px;margin:0}.workstation .tray-items{height:88px}
.workstation .serve-button{position:relative;inset:auto;min-height:52px;width:100%;margin:3px 0 6px}
.workstation .sauce-strip{min-height:0;grid-auto-rows:minmax(34px,1fr)}
.mini-link{font-size:12px;min-height:32px}.product-button span,.sauce-button span{max-width:none;white-space:normal;overflow-wrap:anywhere}
.pos-shell{max-width:840px;margin:auto}.pos-header,.pos-pay-button{flex-shrink:0}.pos-body{display:flex;flex-direction:column;gap:12px}.pos-body>*{flex-shrink:0}.pos-ticket{min-height:160px}
.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pos-sauce-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pos-product,.pos-sauce{min-width:0;min-height:52px;font-size:13px;grid-template-columns:30px minmax(0,1fr)}.pos-product img{width:30px;height:34px}.pos-product span,.pos-sauce span{overflow-wrap:anywhere}.pos-ticket-line{gap:10px;min-height:45px;padding:5px;border-radius:5px;font-size:14px;text-align:left}.pos-ticket-line small{display:block;font-size:12px}.pos-ticket-line strong{white-space:nowrap}.pos-ticket-head .mini-link{font-size:14px}
#mpPosReference{display:flex;flex-wrap:wrap;gap:6px}#mpPosReference>b{width:100%}.pos-header strong{font-size:17px}.pos-pay-button strong{font-size:16px}
#multiGame.is-active{display:grid;grid-template-rows:54px 32px minmax(0,1fr);gap:6px;padding:8px 8px 0}
#multiGame .game-hud,#multiGame .team-bar{position:relative;inset:auto;height:auto;margin:0;min-width:0}
#multiGame .game-hud{gap:7px;z-index:4}.team-bar{padding:5px 10px;font-size:12px}.team-bar #mpHearts{font-size:14px;letter-spacing:1px}
#multiGame .game-connection{top:95px;left:12px;right:12px}
.mp-layout{position:relative;display:grid;grid-template-rows:minmax(190px,1fr) minmax(248px,1fr);gap:8px;min-height:0;min-width:0}
#mpCustomers{position:relative;inset:auto;min-height:0;min-width:0;gap:7px}
#mpCustomers .mp-customer{height:100%}.mp-order{max-height:82%;overflow-y:auto;scrollbar-width:thin}.mp-person{bottom:0;height:65%}.mp-order-line{margin:4px 0}.mp-order>small{font-size:11px}
#mpStation{position:relative;inset:auto;min-width:0;min-height:0;height:auto;border-radius:18px 18px 0 0;padding:12px;overscroll-behavior:contain;scrollbar-width:thin}
#counterPanel,#bakerPanel{min-width:0;min-height:0}#counterPanel{display:flex;flex-direction:column;gap:9px;height:100%}
.station-heading{gap:10px;margin:0 0 10px}.station-heading h2{font-size:20px;min-width:0}.station-heading>span{font-size:12px;text-align:right}.station-heading h2,#mpSelectedName{overflow-wrap:anywhere}
.pass-orders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex-shrink:0}.pass-order{display:flex;flex-direction:column;gap:4px;text-align:left;background:#faf9f5;border:2px solid #b0aa9d;border-radius:10px;padding:8px 6px;min-height:65px;min-width:0}.pass-order b{font-size:12px;overflow-wrap:anywhere}.pass-order span{font-size:11px;color:#615c51}.pass-order.is-ready{background:#e5f6e8;border-color:#4b9060}.pass-order.is-ready span{color:#216b3a;font-weight:800}.pass-order.is-selected{box-shadow:0 0 0 2px #edb650}.pass-orders p{grid-column:1/-1;font-size:14px;margin:8px 0}
.counter-selected{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;align-items:center;font-size:16px}.counter-selected>span{font-size:12px;color:#41544b}
.counter-order,.prep-reference{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.compact-order-line{display:flex;gap:4px;align-items:center;background:#fff9ec;padding:5px;border-radius:7px;min-width:0}.compact-order-line img{width:29px;height:30px;object-fit:contain}.compact-order-line>span{font-size:13px}.compact-order-line small{display:block;font-size:11px;color:#6b5c48}.counter-order{max-height:110px;overflow-y:auto;flex-shrink:0}.counter-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto;padding-bottom:7px;flex-shrink:0}
#mpPosButton,#mpServe,#mpComplete{position:relative;inset:auto;width:100%;min-height:62px;height:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin:0;padding:10px 5px;text-align:center;border-radius:12px}
#mpPosButton strong,#mpServe strong,#mpComplete strong{font-size:15px;letter-spacing:.015em;align-self:auto;text-align:center}#mpPosButton small,#mpServe small,#mpComplete small{font-size:12px;line-height:1.25;text-align:center;align-self:auto}
#multiGame[data-role=fryer] .mp-layout{grid-template-rows:minmax(166px,.32fr) minmax(265px,.68fr)}
.kitchen-orders{display:flex;flex-direction:column;min-height:0;border:1px solid #77675b;background:#262e30ef;border-radius:13px;padding:9px;color:#fff;box-shadow:0 4px 18px #0004}
.kitchen-orders>header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.kitchen-orders h2{font-size:18px;margin:0}.kitchen-orders header small{font-size:10px;letter-spacing:.13em;color:#e1c18b}.kitchen-orders>header>span{font-size:13px;color:#f1d68c}
.kitchen-tickets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:6px;min-height:0;overflow-y:auto;scrollbar-width:thin;padding:3px}
.kitchen-ticket{background:#fffdf4;color:#382e26;border:2px solid transparent;border-radius:9px;min-width:0;padding:7px 5px;text-align:left}.kitchen-ticket.is-selected{border-color:#ecb23f;box-shadow:0 0 0 1px #f8d180}.kitchen-ticket.is-ready{background:#e3f4e4}
.kitchen-ticket>header{display:flex;flex-wrap:wrap;gap:3px;padding-bottom:5px;border-bottom:1px dashed #beb3a0;font-size:12px}.kitchen-ticket>header span{font-size:11px;overflow-wrap:anywhere}.ticket-line{display:flex;align-items:center;gap:3px;margin-top:5px}.ticket-line img{width:22px;height:28px;object-fit:contain}.ticket-line>span{font-size:12px;line-height:1.2;min-width:0;overflow-wrap:anywhere}.ticket-line small{display:block;color:#6c5c4f;font-size:10px}.ticket-line>b{color:#398556;margin-left:auto;font-size:13px}.ticket-line.is-done>span{color:#398556}.kitchen-ticket footer{font-size:10px;margin-top:6px}.kitchen-empty{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;padding:12px;font-size:15px}.kitchen-empty span{font-size:13px;color:#c9d1d1;line-height:1.4}
.work-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;position:sticky;top:-12px;z-index:5;padding:0 0 10px;background:#c8cdce}.work-tabs button{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;min-height:44px;background:#e9ebeb;color:#4b4e4d;border:1px solid #9ba5a7;border-radius:9px;font-size:15px;font-weight:800;padding:5px}.work-tabs [aria-selected=true]{background:#7b2430;color:white;border-color:#62202a}.work-tabs span{font-size:11px;font-weight:600}.work-tabs span.is-ready{color:#224b2d;background:#a9e8af;padding:3px;border-radius:4px}
#mpBakePane,#mpFinishPane{padding-bottom:8px}#mpBakePane .station-heading{margin:3px 0 9px}#mpProducts{padding-bottom:5px}#mpProducts .product-button{min-height:49px;flex-shrink:0;padding:5px 8px}#mpProducts .product-button span{font-size:13px;max-width:90px}
.mp-fryers{height:155px;margin:10px 0;gap:10px}.mp-fryers .fryer{min-height:130px;grid-template-rows:22px minmax(0,1fr) 26px}.mp-fryers .fryer-status{font-size:14px}.mp-fryers img{width:78px;height:65px}.mp-stock{margin:7px 0 10px;min-height:45px;gap:7px}.mp-stock button{min-height:47px;font-size:13px}.mp-stock>span{font-size:13px}#mpStation h3{font-size:14px;margin:12px 0 5px}.work-hint{font-size:12px;color:#514f48;margin:4px 0;line-height:1.4}.demand{min-height:26px;margin:5px 0}.demand span{font-size:13px}
#mpTray{height:98px;margin:10px 0;padding:7px;gap:7px}#mpTray .tray-item{height:82px;min-width:77px;padding:4px}#mpTray .tray-item small{max-width:70px;font-size:11px}#mpTray .tray-remove{top:0;right:0;width:22px;height:22px;font-size:15px}#mpSauces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-height:42px;margin-bottom:12px;overflow:visible}#mpSauces .sauce-button{min-height:44px;height:auto;font-size:12px}.prep-reference{margin-bottom:8px}#mpComplete{margin:6px 0}
.audio-card{display:flex;flex-direction:column;gap:17px}.audio-card label{display:flex;justify-content:space-between;font-size:16px;font-weight:800}.audio-card input{width:100%;accent-color:#942f3b;min-height:36px}.audio-card p{font-size:14px;line-height:1.5;margin:0}
@media(min-width:900px) and (min-height:580px){
 #multiGame.is-active{padding:12px 16px 0;grid-template-rows:58px 34px minmax(0,1fr);gap:9px}
 #multiGame .game-connection{top:70px;left:36%;right:16px}
 .mp-layout,#multiGame[data-role=fryer] .mp-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:20px}
 #mpStation{border-radius:18px;padding:20px;margin-bottom:12px}#mpCustomers{padding-top:8px}.mp-order{padding:10px 7px}.mp-order-line span{font-size:14px}.mp-order-line small{font-size:12px}.mp-order>small{font-size:12px}
 #multiGame[data-role=fryer] .mp-layout{grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr)}
 .kitchen-orders{padding:15px;margin-bottom:12px}.kitchen-orders h2{font-size:24px}.kitchen-tickets{grid-template-columns:1fr;gap:12px}.kitchen-ticket{padding:12px}.kitchen-ticket>header{font-size:18px;gap:12px}.kitchen-ticket>header span{font-size:15px}.ticket-line{margin-top:8px}.ticket-line img{width:33px;height:32px}.ticket-line>span{font-size:15px}.ticket-line small,.kitchen-ticket footer{font-size:13px}
 .station-heading h2{font-size:24px}.work-tabs{top:-20px}.mp-fryers{height:230px}.mp-fryers img{width:105px;height:100px}.mp-fryers .fryer-status{font-size:17px}.pass-order{padding:12px 8px;min-height:90px}.pass-order b{font-size:15px}.pass-order span{font-size:13px}.counter-selected{font-size:22px;margin-top:14px}.counter-selected>span{font-size:14px}.counter-order{max-height:280px;gap:9px}.compact-order-line>span{font-size:16px}.compact-order-line small{font-size:13px}.compact-order-line img{width:40px;height:45px}.counter-actions{gap:15px}#mpPosButton,#mpServe{min-height:78px}.workstation .fryer-row{height:175px}.workstation .assembly{height:150px}.workstation .tray-items{height:113px}.workstation .serve-button{margin-top:auto}
 .pos-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-product{min-height:65px;font-size:16px}.pos-sauce{font-size:15px;min-height:53px}
}
@media(max-height:670px) and (max-width:899px){
 .mp-layout{grid-template-rows:minmax(155px,.85fr) minmax(235px,1.15fr)}#multiGame[data-role=fryer] .mp-layout{grid-template-rows:minmax(142px,.5fr) minmax(200px,1fr)}.kitchen-orders>header{margin-bottom:3px}.kitchen-orders h2{font-size:15px}.kitchen-orders header small{display:none}#counterPanel{height:auto}.mp-fryers{height:130px}.station-heading h2{font-size:18px}
}
@media(max-height:520px) and (min-width:600px){
 #app{width:100%}#multiGame.is-active{grid-template-rows:44px 28px minmax(0,1fr);gap:4px;padding:5px}.mp-layout,#multiGame[data-role=fryer] .mp-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:10px}#mpStation{border-radius:12px}#counterPanel{height:auto}.kitchen-orders{min-height:0}.kitchen-tickets{grid-template-columns:1fr}.mp-order{max-height:92%}.mp-person{height:48%}.counter-actions{position:sticky;bottom:-12px;background:#bfc5c6;padding-bottom:10px}.pos-header{min-height:55px}.pos-pay-button{min-height:48px;padding:9px}.pos-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* Keep the counter actions visible; its order is already displayed over the customer. */
@media(max-width:899px){#mpCounterOrder{display:none}#counterPanel{height:100%}.mp-order{max-height:100%}#multiGame[data-role=fryer] .mp-layout{grid-template-rows:minmax(210px,.38fr) minmax(265px,.62fr)}}
@media(max-width:399px){.mp-order-line img{width:20px;height:25px}.mp-order-line span{font-size:11px;overflow-wrap:normal}.mp-order-line small{font-size:10px}.mp-order-line{margin:3px 0}}
@media(max-height:670px) and (max-width:899px){#multiGame[data-role=fryer] .mp-layout{grid-template-rows:minmax(175px,.4fr) minmax(200px,.6fr)}.pass-order{min-height:60px;padding:6px 5px}.pass-order b{font-size:11px}.pass-order span{font-size:10px}#counterPanel .station-heading{margin-bottom:0}.counter-selected{font-size:14px}}
.kitchen-tickets{grid-template-columns:repeat(var(--ticket-count,3),minmax(0,1fr))}
@media(min-width:900px) and (min-height:580px){.kitchen-tickets{grid-template-columns:1fr}}
#multiGame .game-connection{position:static!important;inset:auto!important;margin:0;padding:6px;grid-row:3;font-size:12px}
#multiGame:has(.game-connection:not(:empty)){grid-template-rows:54px 32px auto minmax(0,1fr)}
@media(max-height:520px) and (min-width:600px){#multiGame:has(.game-connection:not(:empty)){grid-template-rows:44px 28px auto minmax(0,1fr)}}
.pos-sauce{grid-template-columns:1fr;justify-items:center;gap:2px;min-height:65px;text-align:center}.pos-sauce img{width:24px;height:24px}.pos-sauce span{font-size:12px;overflow-wrap:normal}
