/* The complete game is a fitted screen; no controls live below the viewport. */
html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:#e8efeb;font-size:16px}#gameScreen{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--screen-scale,1));width:var(--screen-width,1280px);height:var(--screen-height,800px);display:grid;grid-template-rows:58px minmax(0,1fr);background:#f8f7f2;transform-origin:center}#gameScreen *{min-width:0}#gameScreen .topbar{height:auto;padding:0 24px}#gameScreen .brand{font-size:24px}.brand small{font-size:9px}.brand-icon{height:40px;width:39px;line-height:40px}#gameScreen main{width:100%;max-width:none;padding:10px 22px 14px;display:grid;grid-template-rows:40px 66px minmax(0,1fr);gap:10px;overflow:hidden}#gameScreen .page-heading{margin:0;height:40px;align-items:center}#gameScreen .page-heading h1{font-size:25px;margin:0}#gameScreen .page-heading .eyebrow,#gameScreen .page-heading p{display:none}#gameScreen .outline-button,#gameScreen .light-button{font-size:14px;padding:7px 12px}#gameScreen .demo-tag{font-size:10px}#gameScreen .scorebar{height:66px;margin:0;padding:9px 17px;gap:12px;flex-wrap:nowrap}#gameScreen .scorebar small{font-size:11px;letter-spacing:.6px}#gameScreen .scorebar strong{font-size:23px}#gameScreen .level-block{min-width:245px;width:auto}#gameScreen .level-block strong{font-size:15px}#gameScreen .scorebar .stat{order:0;flex:0 1 auto;text-align:left}#gameScreen #pause{order:0}#gameScreen .stat-icon{width:36px;height:36px}#gameScreen .streak-stat{display:block}#gameScreen .play-layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 266px;gap:14px}#gameScreen .play-column{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 130px 99px;gap:10px}#gameScreen .lab{min-height:0;display:grid;grid-template-rows:34px minmax(0,1fr) 25px}#gameScreen .lab-heading{padding:5px 14px;font-size:14px}#gameScreen .lab-heading #activeTables{font-size:12px}.room-tag{font-size:10px}#gameScreen .lab-room{min-height:0;padding:0 17px;display:grid;grid-template-rows:24px minmax(0,1fr) 37px;overflow:hidden}#gameScreen .room-decor{height:24px;font-size:9px}.shelf{height:22px;width:130px}#gameScreen .tables{min-height:0;height:100%;padding:3px 0 7px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:10px 22px}#gameScreen .table{height:100%;min-height:0;padding:0}.table-content{display:contents}#gameScreen .table-surface{left:10%;width:80%;top:48%;bottom:8px;height:auto;min-height:19px;border-radius:9px;box-shadow:0 4px 0 #c3bfa6,0 7px 0 #d2ded1}#gameScreen .people{top:25px;transform:translateX(-50%) scale(.72);transform-origin:top center}#gameScreen .request-bubble{top:-1px;padding:3px 8px;max-width:95%;width:max-content;white-space:normal;line-height:1.12;text-align:center;min-height:27px;border-radius:7px}#gameScreen .request-bubble .formula{font-size:13px;color:var(--purple);font-weight:750}#gameScreen .request-bubble .mood{display:none}#gameScreen .table-number{right:13%;bottom:11px;font-size:9px;height:14px;line-height:12px}#gameScreen .patience{bottom:0;height:4px}#gameScreen .locked-label{top:55%;font-size:12px}#gameScreen .table-feedback{top:10px;font-size:12px}#gameScreen .puff{font-size:26px}#gameScreen .delivery-lane{height:37px;margin:0 5px;border-top:1px dashed #bed5c5}#gameScreen .courier{position:absolute;left:0;top:0;bottom:auto;width:28px;height:36px;pointer-events:none;transition:transform .1s linear;will-change:transform}#gameScreen .courier.walking svg{animation:walk .24s ease-in-out infinite alternate}#gameScreen .lane-label,#gameScreen .base-label{font-size:10px}.floor-arrow{display:none}#gameScreen .lab-caption{font-size:10px;line-height:1;padding:6px 10px;gap:13px;flex-wrap:nowrap;align-items:center}#gameScreen .lab-caption #mission{width:auto;margin-left:auto;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#gameScreen .workbench{display:grid;grid-template-rows:26px minmax(0,1fr);min-height:0}#gameScreen .section-title{margin:0;align-items:center}#gameScreen .section-title .eyebrow{display:none}#gameScreen h2{font-size:16px}#gameScreen .helper{font-size:11px;max-width:none}#gameScreen .stations{gap:10px;min-height:0}#gameScreen .station{padding:7px 9px;display:grid;grid-template-rows:17px minmax(0,1fr) 26px;gap:4px;min-height:0}#gameScreen .station-head{font-size:12px}#gameScreen .station-head small{font-size:10px}#gameScreen .station-well{min-height:0;margin:0;padding:3px;gap:3px;overflow:hidden}#gameScreen .station-actions{gap:4px}#gameScreen .station-actions button{font-size:12px;padding:3px 5px}#gameScreen .clear-button{max-width:29px}#gameScreen .atom-chip{width:25px;height:25px;font-size:11px;flex-shrink:0}#gameScreen .empty-well{font-size:11px}#gameScreen .empty-well span{font-size:20px;line-height:1}#gameScreen .prepared{font-size:21px;line-height:1.15}#gameScreen .prepared small{font-size:10px}#gameScreen .elements-panel{margin:0;padding:8px 11px;display:grid;grid-template-rows:19px minmax(0,1fr);gap:5px;min-height:0}#gameScreen .element-heading{margin:0;align-items:center}#gameScreen .element-heading h2{font-size:13px}#gameScreen .element-heading>span{font-size:11px;max-width:none}#gameScreen .elements{grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;min-height:0}#gameScreen .element{padding:11px 0 4px;min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column}#gameScreen .element>strong{font-size:23px}#gameScreen .element>small{font-size:9px}#gameScreen .element>span{font-size:9px;margin-top:1px}#gameScreen .sidebar{min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:190px 156px minmax(70px,1fr) 80px;gap:10px}#gameScreen .sidebar>section{margin:0;min-height:0}#gameScreen .tray-panel{grid-column:auto;grid-row:auto;padding:13px 15px}#gameScreen .tray-panel h2{font-size:21px;margin:3px 0}#gameScreen .tray-panel p{font-size:12px;margin:4px 0 9px}#gameScreen .tray{padding:7px;min-height:65px}#gameScreen .tray-slot{height:49px}#gameScreen .tray-slot.filled{font-size:20px}#gameScreen .tray-slot small{font-size:9px}#gameScreen .courier-status{font-size:11px;line-height:1.2;margin-top:9px}#gameScreen .request-panel{grid-column:auto;grid-row:auto;padding:12px 15px}#gameScreen .request-panel .eyebrow{font-size:10px}#gameScreen .order-title{margin:6px 0;gap:8px}#gameScreen .order-title strong{font-size:18px;line-height:1.2}#gameScreen .order-title small{font-size:10px;white-space:nowrap}#gameScreen .order-hint{font-size:12px;color:#82769f;margin:6px 0 8px}#gameScreen .order-guide{padding:6px 10px;border:1px solid #cbc1e7;border-radius:7px;color:var(--purple);background:#fff;font-size:13px;font-weight:650}#gameScreen .tip-panel{padding:12px;overflow:hidden}#gameScreen .tip-panel strong{font-size:13px}#gameScreen .tip-panel p{font-size:12px;line-height:1.4;margin:4px 0}#gameScreen .tip-panel>span{font-size:21px}#gameScreen .class-progress{display:block;padding:2px 5px}#gameScreen .class-progress>div:first-child{font-size:13px}#gameScreen .class-progress p{font-size:12px;margin:4px 0}#gameScreen .class-progress small{display:none}#gameScreen .class-progress .progress-track{margin:8px 0}#gameScreen footer{display:none}.toast{top:auto;bottom:18px;max-width:75vw;font-size:14px;padding:10px 19px}dialog{position:fixed;left:50%;top:50%;right:auto;bottom:auto;margin:0;max-width:none;max-height:none;overflow:visible;transform:translate(-50%,-50%) scale(var(--dialog-scale,1));transform-origin:center}dialog p{font-size:16px}.book-dialog{width:700px;padding:25px 28px}.book-dialog h2{font-size:25px}.book-dialog>p{font-size:14px;margin:6px 0}.recipe-list{grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.recipe-card{padding:14px;min-height:132px}.recipe-card h3{font-size:15px}.recipe-card h3 span{font-size:24px}.recipe-card p{font-size:13px}.recipe-card small{font-size:12px}.book-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:14px}.book-pagination button{font-size:14px}.help-dialog{width:650px;padding:28px}.help-dialog>p{font-size:15px}.science-note{font-size:13px}.intro-content{padding:28px}.intro-content>p{font-size:14px}.instructions li{font-size:12px}.instructions strong{font-size:14px}.intro-note{font-size:11px}.mode-picker button{font-size:13px}.mode-picker small{font-size:11px}.primary-button{font-size:15px}.intro-art{min-height:540px}.intro[open]{grid-template-columns:240px 420px}.small-dialog p{font-size:15px}.results-dialog>p{font-size:14px}.results-grid small{font-size:12px}.portrait #gameScreen{grid-template-rows:52px minmax(0,1fr)}.portrait #gameScreen .topbar{padding:0 13px}.portrait #gameScreen .brand{font-size:18px}.portrait .brand small{font-size:6px;letter-spacing:1px}.portrait .brand-icon{width:31px;height:35px;line-height:35px;font-size:23px}.portrait .demo-tag{display:none}.portrait .top-actions{gap:5px}.portrait #gameScreen .light-button{font-size:0;padding:7px}.portrait .light-button:after{content:'?';font-size:17px}.portrait .icon-button{padding:5px 9px;font-size:17px}.portrait #gameScreen main{padding:8px 12px 10px;grid-template-rows:32px 60px minmax(0,1fr);gap:8px}.portrait #gameScreen .page-heading{height:32px}.portrait #gameScreen .page-heading h1{font-size:19px;max-width:none;letter-spacing:-.6px}.portrait #gameScreen #bookToggle{font-size:11px;padding:6px;max-width:99px}.portrait #gameScreen .scorebar{height:60px;padding:7px 10px;gap:11px}.portrait #gameScreen .scorebar small{font-size:9px}.portrait #gameScreen .scorebar strong{font-size:21px}.portrait #gameScreen .level-block{min-width:80px;flex:1}.portrait #gameScreen .level-block strong{font-size:12px}.portrait #gameScreen .stat-icon,.portrait #phaseLabel,.portrait .streak-stat{display:none!important}.portrait #gameScreen .scorebar .stat{min-width:46px}.portrait #gameScreen #pause{font-size:11px;padding:6px}.portrait #gameScreen .play-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 111px;gap:8px}.portrait #gameScreen .play-column{grid-template-rows:minmax(0,1fr) 132px 120px;gap:8px}.portrait #gameScreen .lab{grid-template-rows:30px minmax(0,1fr) 20px}.portrait #gameScreen .lab-heading{font-size:13px;padding:5px 9px}.portrait #gameScreen .lab-heading #activeTables{font-size:10px}.portrait #gameScreen .lab-room{padding:0 8px;grid-template-rows:20px minmax(0,1fr) 31px}.portrait #gameScreen .room-decor{height:20px;font-size:7px;letter-spacing:1px}.portrait #gameScreen .shelf{height:20px;width:93px}.portrait #gameScreen .tables{gap:9px 23px;padding-bottom:6px}.portrait #gameScreen .table-surface{left:3%;width:94%;top:49%;bottom:8px}.portrait #gameScreen .request-bubble{font-size:11px;padding:3px 5px;max-width:100%;min-height:26px}.portrait #gameScreen .request-bubble .formula{font-size:11px}.portrait #gameScreen .people{top:26px;transform:translateX(-50%) scale(.65)}.portrait #gameScreen .table-feedback{font-size:9px}.portrait #gameScreen .table-number{font-size:8px;right:7%;bottom:10px}.portrait #gameScreen .locked-label{font-size:10px}.portrait #gameScreen .delivery-lane{height:31px}.portrait #gameScreen .courier{width:18px;height:27px}.portrait #gameScreen .lane-label,.portrait #gameScreen .base-label{font-size:8px}.portrait #gameScreen .lab-caption{font-size:8px;padding:5px 7px;gap:8px}.portrait #gameScreen .lab-caption #mission{font-size:8px}.portrait #gameScreen .section-title h2{font-size:15px}.portrait #gameScreen .helper{font-size:9px;max-width:190px}.portrait #gameScreen .stations{gap:6px}.portrait #gameScreen .station{padding:6px;grid-template-rows:16px minmax(0,1fr) 25px}.portrait #gameScreen .station-head{font-size:11px}.portrait #gameScreen .station-head small{font-size:9px}.portrait #gameScreen .station-actions button{font-size:11px}.portrait #gameScreen .atom-chip{width:21px;height:21px;font-size:10px}.portrait #gameScreen .empty-well{font-size:10px}.portrait #gameScreen .elements-panel{padding:6px 9px;grid-template-rows:17px minmax(0,1fr);gap:5px}.portrait #gameScreen .element-heading h2{font-size:12px}.portrait #gameScreen .element-heading>span{font-size:9px}.portrait #gameScreen .elements{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr 1fr;gap:5px 7px}.portrait #gameScreen .element{padding:7px 0 1px}.portrait #gameScreen .element>strong{font-size:20px;line-height:1}.portrait #gameScreen .element>span{font-size:8px}.portrait #gameScreen .element>small{font-size:8px;top:2px}.portrait #gameScreen .sidebar{grid-template-columns:1fr 1fr;grid-template-rows:1fr;gap:8px}.portrait #gameScreen .tip-panel,.portrait #gameScreen .class-progress{display:none}.portrait #gameScreen .tray-panel,.portrait #gameScreen .request-panel{padding:7px 10px;grid-row:auto;grid-column:auto}.portrait #gameScreen .tray-panel .eyebrow,.portrait #gameScreen .tray-panel p{display:none}.portrait #gameScreen .tray-panel h2{font-size:15px;margin:0 0 4px}.portrait #gameScreen .tray-panel h2 span{font-size:10px;height:19px;padding:1px 5px}.portrait #gameScreen .tray{min-height:46px;padding:4px;gap:6px}.portrait #gameScreen .tray-slot{height:37px}.portrait #gameScreen .tray-slot.filled{font-size:17px}.portrait #gameScreen .tray-slot small{font-size:8px}.portrait #gameScreen .courier-status{font-size:9px;margin-top:4px}.portrait #gameScreen .request-panel .eyebrow{font-size:9px}.portrait #gameScreen .order-title{margin:3px 0}.portrait #gameScreen .order-title strong{font-size:14px}.portrait #gameScreen .order-title small{font-size:9px}.portrait #gameScreen .order-hint{font-size:10px;margin:3px 0}.portrait #gameScreen .order-guide{font-size:11px;padding:3px 7px}.portrait .intro[open]{display:block;width:430px}.portrait .intro-art{display:none}.portrait .intro-content{padding:25px}.portrait .book-dialog{width:450px;padding:22px}.portrait .book-dialog h2{font-size:23px}.portrait .recipe-list{grid-template-columns:1fr;gap:8px}.portrait .recipe-card{min-height:0;padding:10px 12px}.portrait .recipe-card p{margin:3px 0}.portrait .help-dialog{width:440px;padding:25px}.portrait .results-dialog{width:430px}.portrait .toast{max-width:90vw;font-size:12px;bottom:10px}@keyframes walk{from{transform:rotate(-3deg) translateY(-1px)}to{transform:rotate(3deg) translateY(1px)}}
.portrait #gameScreen .tables{column-gap:30px}
#gameScreen .people{height:43px;overflow:hidden;top:calc(48% - 20px)}
#gameScreen .request-bubble{top:max(-2px,calc(48% - 51px))}
.portrait #gameScreen .people{height:43px;top:calc(49% - 20px)}
.portrait #gameScreen .request-bubble{top:max(-2px,calc(49% - 49px))}
#gameScreen main{margin:0;height:100%;min-height:0;align-self:stretch}
