/* 0.6.3.1 — separate final theme loaded after all previous styles. */
.b6,.d631{--px-ink:#39291f;--px-edge:#513828;--px-paper:#f5e3b7;--px-light:#ffefcc;--px-green:#4e7141;--px-darkgreen:#304b35;background:#604b3d url('../assets/pixel631/wall.png') repeat;background-size:128px 128px;color:var(--px-ink);image-rendering:pixelated;min-height:100dvh;font-family:system-ui,sans-serif}.b6 img,.d631 img{image-rendering:pixelated;object-fit:contain}.b6 button,.d631 button{border-radius:0;border:2px solid #293e2b;box-shadow:inset 0 2px #88a86b,inset 0 -3px #344f31,0 2px #30251e;background:#537849;color:#fff4d4;text-shadow:1px 1px #30452a;transition:none}.b6 button:active:not(:disabled),.d631 button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px #344f31}.b6 button:focus-visible,.d631 button:focus-visible{outline:3px solid #eebc59;outline-offset:1px}.b6 button:disabled,.d631 button:disabled{opacity:.58}.b6 .b6top,.b6.b62playing .b6top,.px-top{background:#342820;color:#ffe4a9;border-bottom:3px solid #b78950;box-shadow:inset 0 -1px #201a17}.b6 .b6top button,.b6.b62playing .b6top button,.px-top button{background:#755138;border:2px solid #38271e;box-shadow:inset 0 2px #ab8050,inset 0 -3px #513522;text-shadow:none}.b6 .b6hero{border:4px solid #513828;border-radius:0;box-shadow:0 4px #33271e,inset 0 0 0 2px #b68a53;background:#654b36 url('../assets/bakery/bakery.png') center/cover;min-height:240px;display:grid;justify-items:center;align-content:center;gap:4px;text-shadow:2px 2px #30251e;color:#ffefc5}.b6 .b6hero h1,.b6 .b6hero p,.b6 .b6hero>small{background:#392b22;padding:5px 14px;margin:0;max-width:100%}.b6 .b6heroart{background:#eacb8a;border:3px solid #63452d;padding:5px 16px;box-shadow:inset 0 0 0 2px #ffdda0}.b6 .b6heroart img{height:62px;width:70px}.b6 .b6modes{margin-top:7px}.b6 .b6modes button[aria-pressed=false],.d631 .d-modes button[aria-pressed=false]{background:#866440;border-color:#4d3626;box-shadow:inset 0 2px #b99560,inset 0 -3px #61452f}.b6 .b6levels button,.b6 .b6levels button:not(:disabled):hover{border-radius:0;background:#f5e3b7;border:3px solid #6a482d;box-shadow:inset 0 0 0 2px #ffe9b5,inset 0 -5px #c3995b,0 3px #33271e;color:#39291f;text-shadow:none}.b6 .b6levels button:before{content:'';display:block;width:48px;height:32px;background:url('../assets/bakery/rustico.png') center/contain no-repeat;image-rendering:pixelated}.b6 .b6levels strong{color:#553824}.b6 .b6result{border-radius:0;border:4px solid #6a482d;background:#f5e3b7;box-shadow:inset 0 0 0 3px #ffe9b5,0 5px #33271e}.b6 .b6resultstats span,.b6 .b6medal{border-radius:0;border:2px solid #a87b46;background:#ead09a}.b6 .b6resultstats b{color:#513828}
/* retain 0.6.2 dimensions and cognitive hierarchy; stronger specificity overrides the old neutral panels */
.b6.b62playing .b6hud{border:2px solid #38291e;border-radius:0;background:#8c6039;gap:2px}.b6.b62playing .b6hud>span{background:#f5e3b7;color:#493322}.b6.b62playing .b6hud small{color:#765133}.b6.b62playing .b62bar button{border:2px solid #293e2b;box-shadow:inset 0 2px #88a86b,inset 0 -3px #344f31;background:#537849;color:#fff4d4}.b6.b62playing .b62bar button b{background:#293e2b;color:#fff4d4;border-radius:0}.b6.b62playing #b62summary{color:#ffe5a6;background:#392b22;padding:4px 6px}.b6.b62playing #b62summary:empty{display:none}.b6.b62playing #b62summary[data-point=late]{color:#ffc2a0}.b6.b62playing .b6stations{gap:4px}.b6.b62playing .b6station{border:2px solid #39291f;border-radius:0;background:#cda36a;box-shadow:inset 0 -3px #916137}.b6.b62playing .b6station.proof{background:#aab48b;box-shadow:inset 0 -3px #708360}.b6.b62playing .b6station.oven{background:#b9a28b;box-shadow:inset 0 -3px #78634e}.b6.b62playing .b6station.ready{background:#d5b97b}.b6.b62playing .b6stationlabel,.b6.b62playing .b6station.proof .b6stationlabel,.b6.b62playing .b6station.oven .b6stationlabel,.b6.b62playing .b6station.ready .b6stationlabel{border-radius:0;background:#493528;color:#ffe8b4;padding:2px 4px}.b6.b62playing .b6stationlabel strong{display:flex;align-items:center;gap:3px;min-width:0}.b6.b62playing .b6stationlabel img{width:23px;height:23px;flex:none}.b6.b62playing .b6slot{border:2px solid #8c623c;border-radius:0;background:#f5e3b7;color:#39291f;box-shadow:none}.b6.b62playing .b6slot.selected{outline:2px solid #305432;background:#d9e2ad;border-color:#305432}.b6.b62playing .b62empty{color:#493322;font-weight:650}.b6.b62playing .b6table,.b6.b62playing .b6orders{border:3px solid #513828;border-radius:0;background:#f5e3b7;box-shadow:0 3px #32271f}.b6.b62playing .b6orders{color:#39291f}.b6.b62playing .b6ticket{border-radius:0;background:#fff0cc;border:2px solid #ad8550;box-shadow:inset 0 -3px #dfc18a}.b6.b62playing .b6ticket.complete{background:#dbe4b5}.px-order-scene{display:flex;align-items:center;gap:9px;background:#77553b url('../assets/bakery/bakery.png') center/cover;border:2px solid #6a482d;padding:5px 10px;margin-bottom:7px;min-height:62px}.px-order-scene img{height:50px;width:34px}.px-order-scene span{background:#392b22;color:#ffe8b4;padding:5px 9px;font-size:12px}.b6orders.overlay .px-order-scene{display:none}.b6.b62playing .b62focushead{background:#e5bf83;color:#39291f}.b6.b62playing .b62focushead h2,.b6.b62playing .b62focushead small{color:#493322}.b6.b62playing .b6quality{border:1px solid #748750;border-radius:0;background:#dbe4b5;color:#34512c}.b6.b62playing .b62hint{background:#f5e3b7;border-bottom:2px solid #b4864f;color:#493322}.b6.b62playing .b6focus{background:#c89b60 url('../assets/pixel631/wood.png');background-size:96px 96px}.b6.b62playing .b6visual{border:3px solid #523b2a;border-radius:0;box-shadow:0 2px #38291e}.b6.b62playing .b62destination{background:#493528;color:#ffe9bc;padding:2px 6px}.b6.b62playing .b6controls{background:#f5e3b7}.b6.b62playing .b6controls>button:not([data-act=discard]){background:#537849;border:2px solid #293e2b;box-shadow:inset 0 2px #88a86b,inset 0 -3px #344f31,0 2px #6a482d}.b6.b62playing .b6localmsg{border:2px solid #73884e;border-radius:0;background:#dce5b7;color:#35482d}.b6.b62playing .b6localmsg[data-good=false]{border-color:#a24e36;background:#f5d0a0;color:#81351f}.b6.b62playing .b6steps span{border-radius:0;border:2px solid #65472e;background:#c8a573;color:#513828}.b6.b62playing .b6steps .current{background:#fff0c2;border-color:#e4a944;color:#493322}.b6.b62playing .b6steps .done{background:#c8d69b;color:#344b2d}.b6.b62playing .b62heat{border-radius:0;border:2px solid #684b32;background:#ead09a}.b6.b62playing .b6gauge,.b6.b62playing .b6timing,.b6.b62playing .b6rhythm,.b6.b62playing .b6movements i,.b6.b62playing .b6mini,.b6.b62playing .b62tapcue{border-radius:0}.b6.b62playing .b62foot{color:#ffdf9d}.b6.b62playing .b6controls .b62secondary button{color:#68472f;text-shadow:none;border:0;box-shadow:none}.b6.b62playing .b6visual .b62sceneaction{border:0;box-shadow:none;background:transparent;text-shadow:none}.b6.b62playing .b6visual .b6vapour{animation-timing-function:steps(8,end)}
/* MER-03: self-contained gameplay and menus */
body.mer03-full>header{display:none}body.mer03-full>#app{padding:0;max-width:none;min-height:100dvh}.d631{display:flex;flex-direction:column;font-size:14px}.px-top{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;align-items:center;padding:5px max(8px,calc((100vw - 950px)/2))}.px-top>button{justify-self:start}.px-top>div{display:flex;justify-content:flex-end;gap:5px}.px-top button{min-height:38px;padding:5px 9px}.d-menu,.d-session{width:min(950px,100%);margin:0 auto;padding:10px;display:grid;gap:8px}.d-hero{min-height:220px;display:flex;align-items:center;justify-content:center;gap:20px;padding:14px;background:#a47d51 url('../assets/organization/warehouse.png') center/cover;border:4px solid #523827;box-shadow:0 3px #32271e}.d-hero-title{padding:12px;background:#392b22;color:#ffe9b6;border:2px solid #b48b55}.d-hero-title p{font-size:14px;margin-top:6px}.d-hero-title small{font-size:11px;color:#e0b77d}.d-hero-crate{display:grid;grid-template-columns:repeat(2,1fr);width:170px;flex:none;background:#ac7742 url('../assets/pixel631/wood.png');background-size:96px 96px;border:6px solid #6a452a;padding:6px;box-shadow:inset 0 0 0 2px #dbad6b,0 5px #3e2a1f}.d-hero-crate img{width:100%;height:56px}.d-modes{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.d-levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:8px}.d631 .d-levels button{display:flex;align-items:center;gap:10px;text-align:left;background:#f5e3b7;border:3px solid #6a482d;color:#39291f;text-shadow:none;box-shadow:inset 0 -4px #c3995b,0 3px #33271e;min-height:88px}.d-level-num{background:#6d5035;color:#ffe6b0;font-size:24px;padding:8px}.d-levels strong,.d-levels small{display:block}.d-levels small{font-size:12px;font-weight:500;margin-top:3px}.d-result{margin:auto;width:min(650px,94%);background:#f5e3b7;border:4px solid #6a482d;padding:18px;text-align:center;display:grid;gap:12px;justify-items:center}.d-stats,.d-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:#795536;border:2px solid #39291f;width:100%}.d-hud{grid-template-columns:1.6fr repeat(4,1fr)}.d-hud>span,.d-stats>span{background:#f5e3b7;padding:6px 8px;display:flex;align-items:center;gap:6px;justify-content:center;font-size:12px}.d-hud>span:first-child{flex-direction:column;align-items:flex-start;gap:0}.d-hud small{font-size:9px;color:#765133}.d-hud b,.d-stats b{font-size:18px;font-variant-numeric:tabular-nums}.d-orders{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:5px}.d631 .d-orders button{font-size:12px;min-height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;background:#9a7247;border-color:#513828;box-shadow:inset 0 2px #c89b60,inset 0 -3px #69472c}.d631 .d-orders button[aria-pressed=true]{background:#537849;border-color:#293e2b;box-shadow:inset 0 2px #88a86b,inset 0 -3px #344f31}.d-orders small{color:#ffe18d;font-size:9px}.d-work{background:#f5e3b7;border:3px solid #513828;box-shadow:0 3px #32271f;min-width:0}.d-head{display:flex;align-items:center;justify-content:space-between;background:#e5bf83;padding:6px 10px;border-bottom:2px solid #a47642}.d-head small{font-size:10px;font-weight:800;color:#775033}.d-head h2{font-size:20px}.d-head>span{font-size:12px;font-weight:700}.d-req{display:flex;gap:4px;flex-wrap:wrap;padding:6px 8px;border-bottom:2px solid #b4864f}.d-req>span{display:flex;align-items:center;gap:4px;background:#fff0cc;border:1px solid #b68c56;padding:3px 5px;font-size:12px}.d-req img{width:24px;height:24px}.d-req>span[data-complete=true]{background:#dbe4b5;border-color:#829858}.d-workgrid{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:8px;padding:8px}.d-stockarea,.d-packarea{min-width:0;display:grid;align-content:start;gap:5px}.d-label{background:#493528;color:#ffe7b0;padding:5px 7px;font-size:12px;font-weight:800;min-height:26px}.d-label small{display:block;font-size:10px;font-weight:500}.d-stock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#ac7742 url('../assets/pixel631/wood.png');background-size:96px 96px;padding:5px;border:2px solid #704a2d}.d631 .d-stock button{position:relative;background:#f4d9a4;border:2px solid #77502d;color:#493322;text-shadow:none;box-shadow:inset 0 -3px #c99a5b;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:2px;min-height:70px;padding:3px;font-size:11px}.d631 .d-stock button[aria-pressed=true]{background:#d5e2a3;border-color:#365835;outline:2px solid #365835;outline-offset:-2px}.d-stock img{width:100%;height:36px}.d-stock button b{position:absolute;top:2px;right:3px;background:#493528;color:#fff0c9;font-size:10px;padding:1px 3px}.d-selection{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:40px;background:#ffecc5;border:2px solid #b68c56;padding:3px 6px;font-size:12px}.d-selection>span{display:flex;align-items:center;gap:5px}.d-selection img{width:34px;height:28px}.d-selection button{min-height:34px;padding:4px 8px;font-size:12px}.d-table{background:#ac7742 url('../assets/pixel631/wood.png');background-size:96px 96px;border:2px solid #704a2d;padding:6px;display:grid;place-items:center}.d-board{--unit:clamp(48px,11vw,86px);display:grid;grid-template-columns:repeat(var(--cols),var(--unit));grid-template-rows:repeat(var(--rows),var(--unit));gap:2px;background:#714a2e;border:6px solid #86562f;box-shadow:0 0 0 2px #4d3322,inset 0 0 0 2px #d8a86b;padding:3px;max-width:100%}.d-board.ready{outline:3px solid #c9df83}.d631 .d-cell{background:#bb8b50 url('../assets/pixel631/crate.png') center/100% 100%;border:1px dashed #674a2b;box-shadow:none;min-height:0;padding:0}.d631 .d-cell.valid{background:#b4c88a;border:2px solid #5d7d49}.d631 .d-cell.valid:after{content:'+';color:#345331;font-size:20px}.d631 .d-cell:disabled{opacity:1}.d631 .d-piece{z-index:1;position:relative;background:#e1ba79;border:2px solid #775030;box-shadow:inset 0 2px #f3d39c;min-height:0;padding:3px;display:grid;place-items:center}.d-piece img{width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain}.d-piece small{position:absolute;bottom:2px;right:3px;font-size:10px;color:#ffecc5;background:#493528;padding:1px 3px}.d-piece.fresh{animation:d-place .15s steps(3,end)}@keyframes d-place{from{transform:translateY(-6px)}to{transform:translateY(0)}}.d-bottom{display:grid;gap:4px}.d-bottom button{min-height:44px}.d-feedback{background:#dce5b7;border:2px solid #73884e;min-height:32px;padding:5px 7px;font-size:12px;color:#35482d}.d-feedback[data-good=false]{background:#f5d0a0;border-color:#a24e36;color:#81351f}.d-foot{color:#ffe0a0;text-align:center;font-size:11px}.d631.paused .d-session{opacity:.7}.d631.paused *,.reduce .d631 *{animation:none!important}.d631 [hidden]{display:none!important}
@media(max-width:700px){.b6.b62playing .b6stationlabel img{width:16px;height:16px}.b6.b62playing .b6stationlabel{padding:2px;gap:1px}.b6.b62playing .b6stationlabel strong{gap:1px}.b6 .b6hero{min-height:200px}.b6 .b6hero h1{font-size:25px}.px-order-scene{min-height:46px}.px-order-scene img{height:34px}.d-session{padding:5px 6px;gap:5px}.px-top{padding:4px 6px;font-size:12px}.px-top button{min-height:36px;padding:4px 7px;font-size:12px}.d-hud{grid-template-columns:repeat(4,1fr)}.d-hud>span:first-child{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}.d-hud>span{font-size:10px;padding:3px 2px;gap:3px}.d-hud b{font-size:14px}.d-orders button b{font-size:11px}.d-workgrid{grid-template-columns:1fr;padding:4px;gap:4px}.d-head{padding:3px 6px}.d-head h2{font-size:17px}.d-req{padding:3px 4px;gap:3px}.d-req>span{font-size:11px;padding:1px 4px}.d-req img{width:19px;height:19px}.d-stockarea,.d-packarea{gap:3px}.d-stockarea .d-label{padding:3px 6px;min-height:0}.d-stockarea .d-label small{display:none}.d-stock{grid-template-columns:repeat(5,minmax(0,1fr));padding:3px;gap:3px}.d631 .d-stock button{min-height:48px;font-size:10px;padding:1px}.d-stock img{height:24px}.d-stock button b{font-size:9px;top:0;right:0}.d-board{--unit:min(17vw,58px);border-width:4px;padding:2px}.d-table{padding:4px}.d-label{font-size:11px;min-height:0;padding:3px 6px}.d-selection{min-height:35px;padding:2px 4px}.d-selection button{min-height:34px}.d-bottom button{min-height:42px}.d-feedback{min-height:28px;padding:3px 6px}.d-hero{min-height:180px;gap:8px;padding:8px}.d-hero-crate{width:98px;padding:3px;border-width:4px}.d-hero-crate img{height:36px}.d-hero-title{padding:7px}.d-hero-title h1{font-size:23px}.d-hero-title p{font-size:12px}}
@media(max-width:700px) and (max-height:730px){.b6.b62playing .b6stationlabel img{width:14px;height:14px}.b6.b62playing .b6station{padding:2px}.b6.b62playing .b6table{border-width:2px}.d-board{--unit:min(15vw,48px)}.d-foot{display:none}.d631 .d-orders button{min-height:35px}.d-hud>span:first-child{padding:2px 4px}}
@media(prefers-reduced-motion:reduce){.d631 *,.b6 *{animation:none!important;transition:none!important}}

.b6.b62playing .b6slot{ text-shadow:none }
.b6.b62playing .b6visual.mix .b6bread{visibility:hidden}.b6.b62playing .px-knead{position:absolute;top:19%;left:50%;height:38%;aspect-ratio:56/40;transform:translateX(-50%);background:url('../assets/pixel631/knead-sheet.png') 0 0/800% 100% no-repeat;z-index:1;pointer-events:none;image-rendering:pixelated}.b6.b62playing .b6stationlabel img{image-rendering:pixelated}
@media(max-width:700px) and (max-height:730px){.b6.b62playing.b62busy .b6stationlabel img{display:none}.b6.b62playing.b62busy .b6stationlabel{min-height:18px;padding:1px 2px}.b6.b62playing.b62busy .b6station{padding:1px;border-width:1px}.b6.b62playing.b62busy .b6slots{max-height:72px}.b6.b62playing.b62busy .b6slot{border-width:1px;min-height:23px}.b6.b62playing.b62busy .b6visual{width:min(100%,136px);border-width:2px}.b6.b62playing.b62busy .b62bar,.b6.b62playing.b62busy .b62bar button{min-height:31px}.b6.b62playing.b62busy .b6controls{padding:3px 6px;gap:3px}.b6.b62playing.b62busy .b62focushead{padding:3px 6px 1px}.b6.b62playing.b62busy .b62hint{padding:2px 6px 4px}.b6.b62playing.b62busy .b62destination{padding:1px 4px}.b6.b62playing.b62busy .b6localmsg{min-height:26px}}

.b6 .b6levels:has(>button:only-child){grid-template-columns:minmax(0,520px);justify-content:center}.b6 .b6levels>button:only-child{display:grid;grid-template-columns:80px 1fr;align-items:center;column-gap:12px;row-gap:4px}.b6 .b6levels>button:only-child:before{grid-column:1;grid-row:1/5;width:76px;height:65px;background-color:#e0bc7d;border:2px solid #ab824a}.b6 .b6levels>button:only-child>*{grid-column:2}
@media(max-width:700px){.d631.d-weighted .d-stock{grid-template-columns:repeat(6,minmax(0,1fr))}.d631.d-weighted .d-stock button{font-size:9px;line-height:1.1}.d631.d-weighted .d-stock button span{overflow-wrap:anywhere}.d631.d-weighted .d-stock img{height:22px}}
@media(max-width:700px) and (max-height:730px){.d631.d-weighted .d-head{padding:2px 5px}.d631.d-weighted .d-head small{font-size:9px}.d631.d-weighted .d-req{padding:2px 3px}.d631.d-weighted .d-req>span{font-size:10px}.d631.d-weighted .d-req img{width:16px;height:16px}.d631.d-weighted .d-board{--unit:min(13vw,46px)}.d631.d-weighted .d-selection{min-height:32px}.d631.d-weighted .d-stock button{min-height:46px}}
