@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');
/* A shared, finite stock keeps dressing and washing visible during service. */
.dish-cycle{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 14px;padding:12px 16px;border:1px solid #c7d4be;border-radius:10px;background:#edf2e3}.dish-stock{display:flex;align-items:center;gap:8px;min-width:118px;flex:1}.dish-stock>span{font-size:23px}.dish-stock>div{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:9px;min-width:95px}.dish-stock small{font-size:12px;color:#526c59;white-space:nowrap}.dish-stock strong{font:700 19px Outfit,system-ui,sans-serif;white-space:nowrap}.dish-cycle>p{flex-basis:100%;margin:0;padding-top:7px;border-top:1px solid #cfdcc7;font-size:12px;line-height:1.45;color:#49664e}.dish-cycle.low-stock{background:#fff1d2;border-color:#deb86c}.dish-cycle.low-stock>p{border-color:#e4cc9d;color:#845224}.sink-track{grid-column:1/3;display:block;height:4px;margin-top:3px;background:#cedbcc;border-radius:4px;overflow:hidden}.sink-track i{height:100%;display:block;background:#4b9eaa;transition:width .1s}.ticket .ingredients{display:flex;gap:8px;align-items:flex-start;margin:8px 0}.ingredient-chip{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1;text-align:center}.ticket .ingredient-chip>span{font-size:24px}.ticket .ingredient-chip small{font-size:11px;color:#425f4c;line-height:1.35}.ticket .ticket-instruction{display:block;font-size:11px;color:#647756;margin-bottom:7px}.tutorial li>div{min-width:0}#help-dialog{max-height:90vh;overflow-y:auto;max-width:680px}#help-dialog .tutorial p{font-size:12px;line-height:1.55}.context-hint{max-width:95%;white-space:normal!important;text-align:center;line-height:1.4}.ticket{min-width:190px!important}@media(max-width:700px){.dish-cycle{gap:10px;padding:9px 10px;margin-bottom:10px}.dish-stock{flex-basis:calc(50% - 10px);min-width:0}.dish-stock>div{width:100%;min-width:0}.dish-stock small{font-size:11px}.dish-stock strong{font-size:17px}.dish-stock>span{font-size:20px}.dish-cycle>p{font-size:11px}.ticket{min-width:175px!important}.ticket .ingredient-chip small,.ticket .ticket-instruction{font-size:10px}}
:root{--ink:#193f36;--paper:#f6f5ee;--orange:#f36e3e;--yellow:#f6cc5c;--muted:#75877d;--line:#dfe3d7;--green:#dce7bc}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:16px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button{transition:transform .15s,background .15s}button:active{transform:translateY(2px)}.hidden{display:none!important}.topbar{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5.2%;gap:20px}.brand{font-family:Outfit,system-ui,sans-serif;font-size:27px;font-weight:900;letter-spacing:-1.2px;text-decoration:none;color:var(--ink);position:relative;display:flex;align-items:center;gap:7px}.brand>span:not(.brand-icon){color:var(--orange);margin-left:-7px}.brand-icon{font-size:36px;margin-right:2px}.brand i{font:700 8px 'DM Sans',sans-serif;letter-spacing:3.1px;position:absolute;top:37px;left:45px}nav{display:flex;align-items:center;gap:14px}.connection{font-size:12px;color:var(--muted);margin-right:12px}.connection:before,.live-dot{content:'';display:inline-block;width:7px;height:7px;background:#7da46c;border-radius:50%;margin-right:7px}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:transparent;font-weight:700;color:var(--ink)}.discord{background:var(--ink);border:0;border-radius:8px;color:white;font-size:13px;font-weight:700;padding:13px 20px}.home{max-width:1510px;margin:auto;padding:49px 5.2% 20px;display:grid;grid-template-columns:1.55fr 1fr;column-gap:5%;row-gap:25px}.intro{grid-column:1;grid-row:1}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;display:flex;gap:8px;align-items:center}.eyebrow>span{display:inline-block;height:6px;width:6px;background:var(--orange);border-radius:50%}h1{font-family:Outfit,system-ui,sans-serif;font-size:clamp(52px,5.4vw,82px);font-weight:800;letter-spacing:-3.8px;line-height:1.02;margin:23px 0 18px}h1 em{font-style:normal;color:var(--orange);position:relative}h1 em:after{content:'';position:absolute;bottom:-5px;height:5px;border-top:3px solid var(--orange);border-radius:50%;left:0;right:0;transform:rotate(-3deg)}.intro p{line-height:1.7;color:#768278;font-size:14px}.hero-tags{display:flex;align-items:center;gap:14px;font-size:11px;font-weight:600;margin-top:22px}.hero-tags b{color:var(--orange)}.hero-kitchen{grid-column:1;grid-row:2;position:relative;min-width:0;background:#e6eadb;border-radius:14px;overflow:hidden;border:1px solid #d5ddc8}.kitchen-label{font-size:9px;font-weight:800;letter-spacing:1.3px;padding:15px 20px;border-bottom:1px solid #d0d8c6;display:flex;align-items:center}.tiny-star{margin-left:auto;color:var(--orange);font-size:17px}.hero-kitchen canvas{display:block;width:100%;height:auto;max-height:300px;object-fit:contain}.hero-sticker{position:absolute;right:22px;top:70px;background:var(--yellow);border:2px solid var(--ink);border-radius:50%;width:99px;height:99px;display:flex;flex-direction:column;justify-content:center;text-align:center;transform:rotate(12deg);font-size:10px;box-shadow:3px 4px 0 var(--ink);line-height:1.6}.hero-sticker strong{font-size:13px}.preview-caption{display:flex;justify-content:space-between;padding:11px 20px;background:#d9e2ca;font-size:11px;font-weight:600}.preview-caption span:last-child{color:#7b8b73}.play-panel{grid-column:2;grid-row:1/3;background:white;border:1px solid var(--line);border-radius:16px;padding:26px 28px;box-shadow:0 8px 0 #e8ebdf;align-self:start}.panel-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}.panel-title>span{font-size:10px;border:1px solid #ccd7c6;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}.panel-title h2{font-family:Outfit,sans-serif;font-size:21px;letter-spacing:-.7px;margin:0}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-card{text-align:left;padding:13px 12px;border:1px solid var(--line);background:#fafbf7;border-radius:9px;color:var(--ink);position:relative;min-height:91px}.mode-card.active{border:2px solid var(--ink);padding:12px 11px;background:#eff3e5}.mode-card.active:after{content:'✓';position:absolute;right:9px;top:8px;font-size:10px;display:grid;place-items:center;background:var(--ink);color:white;width:16px;height:16px;border-radius:50%}.mode-card .mode-icon{font-size:23px;display:block;margin-bottom:6px}.mode-card strong{display:block;font-size:12px}.mode-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.level-heading{display:flex;align-items:center;justify-content:space-between;margin-top:25px;font-size:11px;font-weight:700}.level-heading>span{font-size:9px;color:var(--muted);letter-spacing:1px}.level-picker{display:flex;gap:8px;margin-top:10px}.level-picker button{width:38px;border:1px solid var(--line);border-radius:7px;background:#fafbf7;color:var(--ink);font-size:20px}.level-picker select{flex:1;min-width:0;padding:12px;border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:12px;font-weight:600;background:#fafbf7;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#193f36 50%),linear-gradient(135deg,#193f36 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 13px) 50%;background-size:4px 4px;background-repeat:no-repeat}.level-detail{font-size:10px;line-height:1.6;color:var(--muted);min-height:31px;margin-top:8px}.name-row{display:flex;align-items:center;gap:12px;margin:17px 0}.name-row label{font-size:11px;font-weight:600;white-space:nowrap}input{min-width:0;border:1px solid var(--line);border-radius:7px;padding:11px;background:#fafbf7;color:var(--ink);outline-color:var(--orange)}.name-row input{width:100%;font-size:12px}.primary{border:0;color:white;background:var(--orange);border-radius:8px;padding:16px 21px;font-weight:700;font-size:14px;box-shadow:0 3px 0 #c9532a}.primary:hover{background:#e96132}.play-panel>.primary{width:100%;display:flex;align-items:center;justify-content:center;gap:15px}.join-row{display:flex;margin-top:17px;gap:8px}.join-row input{flex:1;width:50%;font-size:10px;letter-spacing:1px}.join-row button{border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--ink);font-size:11px;font-weight:700;padding:10px 15px}.panel-note{text-align:center;font-size:9px;line-height:1.6;color:var(--muted);margin:14px 0 0}.bottom-strip{border-top:1px solid var(--line);padding-top:25px;grid-column:1/3;display:flex;align-items:center;gap:40px}.bottom-strip>div{display:flex;gap:13px;align-items:center}.strip-icon{font-size:25px;color:var(--orange)}.bottom-strip p{font-size:10px;line-height:1.8;color:var(--muted);margin:0}.bottom-strip strong{color:var(--ink);font-weight:700}.made-for{margin-left:auto;font-size:8px;letter-spacing:1px}.made-for span{font-size:21px;margin-left:12px;color:var(--orange)}.secondary{background:transparent;border:1px solid #bdc9bb;border-radius:8px;padding:12px 18px;color:var(--ink);font-size:13px;font-weight:600}.lobby{max-width:850px;margin:60px auto;text-align:center;padding:0 22px}.lobby>.eyebrow{justify-content:center}.lobby h1{font-size:65px}.lobby>p{color:var(--muted);font-size:14px}.room-code-box{display:flex;flex-direction:column;margin:30px auto;max-width:360px;background:#e8eddb;padding:20px;border:1px dashed #9dac91;border-radius:12px}.room-code-box>span{font-size:10px;font-weight:700;letter-spacing:2px}.room-code-box button{font-family:Outfit,sans-serif;font-size:45px;letter-spacing:10px;font-weight:800;background:none;border:0;color:var(--ink);margin:10px}.room-code-box small{font-size:11px;color:var(--muted)}.lobby-players{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:30px}.player-card{border:1px solid var(--line);background:white;padding:22px 10px;border-radius:12px;min-height:120px}.player-card .avatar{font-size:35px}.player-card strong{display:block;margin:10px 0;font-size:13px}.player-card small{color:var(--muted);font-size:11px}.player-card select{width:100%;border:1px solid var(--line);border-radius:5px;padding:5px;color:var(--ink);background:white}.player-card.empty{border-style:dashed;background:transparent;color:#9da692}.lobby-actions{display:flex;justify-content:center;gap:12px}.game{max-width:1200px;margin:auto;padding:22px 28px}.game-top{display:flex;align-items:center;gap:25px;margin-bottom:18px}.game-top h2{font:700 23px Outfit,sans-serif;margin:5px 0 0}.game-top .eyebrow{font-size:8px}.game-stats{margin-left:auto;display:flex;gap:35px}.game-stats>div{display:flex;flex-direction:column;text-align:center}.game-stats small{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin-bottom:5px}.game-stats strong{font:700 28px Outfit,sans-serif}.orders{display:flex;gap:10px;min-height:94px;margin-bottom:16px;overflow-x:auto;padding:3px 3px 8px}.ticket{min-width:158px;max-width:220px;flex:1;background:white;border:1px solid var(--line);border-top:4px solid var(--orange);border-radius:5px;padding:9px 13px;position:relative}.ticket strong{font-size:12px;display:flex;justify-content:space-between;gap:8px}.ticket .ingredients{font-size:23px;margin:7px 0}.ticket small{font-size:9px;color:var(--muted)}.ticket .progress{height:4px;background:#eff1e7;border-radius:3px;overflow:hidden}.ticket .progress i{height:100%;display:block;background:#9cba6c;transition:width .1s}.ticket.urgent{border-top-color:#db4d3e}.ticket.urgent .progress i{background:#db4d3e}.arena-wrap{position:relative;border:8px solid var(--ink);border-radius:14px;background:#d9e2c4;overflow:hidden;box-shadow:0 7px 0 #c3ccbb}.arena-wrap canvas{display:block;width:100%;max-height:58vh;object-fit:contain;outline:0}.context-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:#173e35e8;color:white;border:1px solid #ffffff22;border-radius:20px;padding:8px 18px;font-size:11px;white-space:nowrap;pointer-events:none}.game-bottom{display:flex;gap:22px;align-items:center;margin-top:20px;font-size:10px;color:var(--muted)}.game-bottom #you{margin-left:auto;font-weight:700;color:var(--ink)}kbd{display:inline-block;background:white;border:1px solid var(--line);border-bottom-width:3px;border-radius:4px;padding:3px 6px;font:700 10px 'DM Sans',sans-serif;color:var(--ink);margin:0 3px}.touch-controls{display:none}dialog{border:1px solid var(--line);border-radius:18px;max-width:550px;width:calc(100% - 32px);padding:35px;background:var(--paper);color:var(--ink);box-shadow:0 20px 100px #102f3455}dialog::backdrop{background:#102f34a6;backdrop-filter:blur(4px)}dialog h2{font:700 30px Outfit,sans-serif;letter-spacing:-.8px;margin:15px 0}dialog p{font-size:13px;color:#718174;line-height:1.7}.close{position:absolute;right:15px;top:10px;background:transparent;border:0;font-size:28px;color:var(--ink)}.tutorial{list-style:none;padding:0;margin:25px 0;display:grid;grid-template-columns:1fr 1fr;gap:18px}.tutorial li{display:flex;gap:12px}.tutorial li>span{font-size:27px}.tutorial strong{font-size:12px}.tutorial p{margin:5px 0;font-size:11px}.result-stars{font-size:56px;color:var(--orange);letter-spacing:8px;margin-top:25px}#results{text-align:center;max-width:620px}#results>.eyebrow{justify-content:center}.result-actions{display:flex;gap:10px;justify-content:center;margin-top:25px}#result-scores{font-size:14px;line-height:2}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;box-shadow:0 4px 20px #0002;padding:14px 24px;font-size:13px;z-index:99;max-width:90vw;text-align:center}.danger{color:#d1533b!important}@media(min-width:1500px){.home{padding-top:65px}.hero-kitchen canvas{max-height:350px}.play-panel{padding:35px}.mode-card{min-height:100px}}@media(max-width:1000px){.home{column-gap:3%;grid-template-columns:1.2fr 1fr;padding-left:4%;padding-right:4%}.play-panel{padding:20px}.hero-sticker{width:80px;height:80px;font-size:8px}.hero-sticker strong{font-size:10px}.made-for{display:none}.brand{font-size:23px}.connection{display:none}.topbar{padding:0 4%}.game-bottom{gap:10px;font-size:9px}.game-stats{gap:20px}}@media(max-width:700px){.topbar{height:80px}.brand{font-size:19px;letter-spacing:-.8px}.brand-icon{font-size:28px}.brand i{font-size:6px;top:29px;left:36px;letter-spacing:2px}nav{gap:7px}.discord{font-size:10px;padding:10px}.icon-button{width:29px;height:29px}nav #sound{display:none}.home{display:flex;flex-direction:column;padding:30px 20px}.intro h1{font-size:61px}.intro p{font-size:13px}.hero-tags{margin-bottom:5px}.hero-kitchen{order:2}.play-panel{order:3;padding:23px}.bottom-strip{order:4;gap:20px;flex-wrap:wrap}.hero-kitchen canvas{max-height:240px}.intro{order:1}.lobby{margin-top:40px}.lobby h1{font-size:50px}.lobby-players{grid-template-columns:repeat(2,1fr)}.game{padding:14px 10px}.game-top{gap:10px}.game-top h2{font-size:17px}.game-top>.secondary{font-size:10px;padding:9px}.game-stats{gap:12px}.game-stats strong{font-size:20px}.game-stats small{font-size:7px}.game-top .eyebrow{font-size:7px}.orders{min-height:90px;gap:8px}.ticket{min-width:140px;padding:7px}.arena-wrap{border-width:5px}.arena-wrap canvas{max-height:48vh;min-height:260px;object-fit:contain}.game-bottom{display:none}.context-hint{font-size:9px;padding:7px 10px;max-width:95%;white-space:normal;text-align:center}.touch-controls{display:flex;justify-content:space-between;align-items:center;margin:24px 12px}.dpad{display:grid;grid-template-columns:repeat(3,47px);gap:5px}.dpad button,#touch-action{touch-action:none;user-select:none;background:#dfe7cc;color:var(--ink);border:1px solid #c1ceb0;border-radius:9px;width:47px;height:47px}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-column:1;grid-row:2}.dpad button:nth-child(3){grid-column:2;grid-row:2}.dpad button:nth-child(4){grid-column:3;grid-row:2}#touch-action{width:82px;height:82px;border-radius:50%;background:var(--orange);color:white;font-size:12px;font-weight:800}.tutorial{gap:15px;grid-template-columns:1fr}.result-actions{flex-wrap:wrap}dialog{padding:25px}.hero-sticker{right:12px;top:55px}}

/* Keep the plate stations unobscured and their instructions readable. */
.arena-wrap .context-hint{position:static;transform:none;max-width:none;border-radius:0;margin:0;padding:12px 18px;font-size:14px;min-height:44px;display:grid;place-items:center}.dish-stock small,.dish-cycle>p{font-size:14px}.ticket .ingredient-chip small{font-size:13px}.ticket .ticket-instruction{font-size:12px}#help-dialog .tutorial p{font-size:14px}#help-dialog .tutorial strong{font-size:14px}

/* A complete kitchen, including the plate circuit, fits the play screen. */
body:has(#game:not(.hidden)){overflow:hidden}
body:has(#game:not(.hidden)) .topbar{height:56px}
body:has(#game:not(.hidden)) .brand i{display:none}
.game{display:flex;flex-direction:column;height:calc(100dvh - 56px);max-width:1400px;padding:12px 24px;min-height:0}
.game-top{flex-shrink:0;margin-bottom:10px;gap:18px}
.game-top h2{font-size:21px}
.game-stats strong{font-size:25px}
.orders{flex-shrink:0;min-height:0;height:112px;margin-bottom:8px;padding-bottom:5px}
.ticket{flex:0 0 250px;min-width:250px!important;max-width:250px;padding:7px 10px}
.ticket strong{font-size:13px}
.ticket .ingredients{margin:5px 0;gap:5px}
.ticket .ingredient-chip>span{font-size:22px;line-height:24px}
.ticket .ingredient-chip small{font-size:12px;white-space:nowrap;line-height:16px}
.ticket .ticket-instruction{font-size:12px;line-height:15px;margin-bottom:5px}
.dish-cycle{flex-shrink:0;padding:7px 12px;gap:8px;margin-bottom:8px}
.dish-cycle>p{font-size:12px;padding-top:5px}
.dish-stock{gap:7px;min-width:0}
.dish-stock strong{font-size:18px}
.arena-wrap{flex:1;min-height:0;display:flex;flex-direction:column}
.arena-wrap canvas{flex:1;min-height:0;height:0;width:100%;max-height:none;object-fit:contain}
.arena-wrap .context-hint{flex-shrink:0;font-size:13px;min-height:38px;padding:8px 12px}
.game-bottom{flex-shrink:0;margin-top:10px;gap:14px}
.touch-controls{flex-shrink:0}
@media(max-width:700px){
 .game{padding:8px 10px}
 .game-top{gap:10px;margin-bottom:8px}
 .game-top h2{font-size:16px}
 .game-stats strong{font-size:20px}
 .orders{height:105px}
 .ticket{flex-basis:235px;min-width:235px!important;max-width:235px}
 .dish-stock{flex-basis:calc(50% - 8px)}
 .dish-stock small{font-size:12px}
 .dish-cycle>p{font-size:11px}
 .arena-wrap .context-hint{font-size:12px;min-height:44px}
 .touch-controls{margin:10px 12px 0}
 .dpad{grid-template-columns:repeat(3,38px);gap:4px}
 .dpad button{width:38px;height:38px}
 #touch-action{height:64px;width:64px}
}

.service-panel{display:contents}
@media(min-width:901px){
 .game{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;column-gap:16px;row-gap:10px}
 .game-top{grid-column:1/-1;margin:0}
 .service-panel{display:flex;flex-direction:column;min-height:0;gap:12px;grid-column:1;grid-row:2}
 .orders{flex:1;display:flex;flex-direction:column;height:auto;min-height:106px;overflow-x:hidden;overflow-y:auto;margin:0;padding:2px 3px 4px;gap:10px}
 .ticket{flex:0 0 106px;min-width:0!important;max-width:none;width:100%}
 .dish-cycle{display:grid;grid-template-columns:1fr 1fr;margin:0;padding:12px;gap:10px}
 .dish-stock{gap:4px;min-width:0;align-items:flex-start}
 .dish-stock>span{display:none}
 .dish-stock>div{grid-template-columns:1fr;min-width:0;gap:4px}
 .dish-stock small{font-size:13px;white-space:normal}
 .dish-stock strong{font-size:22px}
 .sink-track{grid-column:1}
 .dish-cycle>p{grid-column:1/-1;line-height:1.55}
 .arena-wrap{grid-column:2;grid-row:2;height:100%}
 .game-bottom{grid-column:1/-1;margin:0}
}

/* Campaign and service comfort */
.campaign-card{margin:14px 0 18px;padding:14px;background:#f0f4e7;border:1px solid #d5dfc8;border-radius:10px}
.campaign-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:14px}
.campaign-heading>button{padding:7px 10px;border:1px solid #b7c8aa;border-radius:7px;background:white;color:var(--ink);font-weight:700;font-size:14px;min-height:38px}
.campaign-card>p{font-size:13px;line-height:1.55;margin:9px 0;color:#51684e}
.campaign-card>small{display:block;color:#63765b;font-size:12px;line-height:1.5;margin-top:12px}
.campaign-card summary{font-size:14px;cursor:pointer;padding:7px 0}
.campaign-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding-top:8px}
.campaign-level{padding:8px 2px;background:#fff;border:1px solid #d0dac6;border-radius:7px;color:var(--ink);min-height:48px}
.campaign-level.selected{outline:2px solid var(--orange);outline-offset:1px}
.campaign-level>strong{font-size:14px;display:block}.campaign-level>span{display:block;color:#c47b26;font-size:13px;letter-spacing:1px;margin-top:3px}
.combo-hud{flex-shrink:0;display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #d8dfce;background:#eef2e7;border-radius:9px;font-size:14px}
.combo-hud>strong{margin-left:auto;font:800 21px Outfit,sans-serif}.combo-hud>b{padding:4px 8px;border-radius:6px;background:#d6e2c7;color:#466435}
.combo-active{border-color:#e3b557;background:#fff2ce}.combo-active>b{background:#f4c660;color:#6b461b}
.pause-screen{position:absolute;inset:0 0 38px;z-index:5;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;background:#eff4e5eF;backdrop-filter:blur(4px);gap:15px}
.pause-screen>h2{font:800 clamp(24px,3vw,42px) Outfit,sans-serif;letter-spacing:-1px;margin:0}
.pause-screen>p{font-size:15px;line-height:1.6;max-width:330px;margin:0;color:#607558}.pause-screen>.eyebrow{justify-content:center}
.pause-screen>.primary,.pause-screen>.secondary{min-height:46px}
.recipe-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}
.recipe-card{border:1px solid #d5decb;border-radius:10px;background:white;padding:15px}
.recipe-card>h3{font:700 19px Outfit,sans-serif;margin:0 0 12px}
.recipe-card ul{list-style:none;padding:0;margin:0 0 13px}.recipe-card li{font-size:14px;line-height:1.8}.recipe-card>small{font-size:12px;line-height:1.5;color:#6d7f63}
#recipe-dialog{max-width:760px;max-height:90dvh;overflow-y:auto}
.audio-setting{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;margin:22px 0;padding-top:18px;border-top:1px solid var(--line)}
.audio-setting>input{flex:1;min-width:100px;padding:0;accent-color:var(--orange)}.audio-setting>output{min-width:45px}
.touch-actions{display:flex;align-items:center;gap:12px}
#touch-run{width:64px;height:64px;touch-action:none;user-select:none;border:1px solid #b1c69b;border-radius:50%;background:#dce7c9;color:var(--ink);font-weight:800;font-size:12px}
.ticket .ingredient-chip small{white-space:pre-line;font-size:14px;line-height:16px}
.ticket{flex-basis:128px}.game-top>#pause{min-height:44px;font-size:14px}.game-top>#quit{min-height:44px;font-size:14px}
#sound{min-width:36px;min-height:36px}
@media(min-width:901px){.ticket{flex-basis:128px}}
@media(max-width:900px){
 .combo-hud{margin-bottom:7px;padding:5px 10px;min-height:32px}.combo-hud>strong{font-size:18px}
 .orders{height:124px}
 .dish-cycle{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 8px;gap:5px;margin-bottom:7px}
 .dish-stock{display:block;text-align:center;min-width:0}.dish-stock>span{display:none}.dish-stock>div{display:flex;min-width:0;flex-direction:column;gap:2px}
 .dish-stock small{white-space:normal;font-size:12px;line-height:14px}.dish-stock strong{font-size:16px}.dish-cycle>p{display:none}.sink-track{width:100%;margin-top:0}
 .ticket{flex:0 0 245px;min-width:245px!important;max-width:245px}
}
@media(max-width:700px){
 nav #sound{display:block}nav{gap:5px}.topbar{padding:0 12px;gap:8px}.brand{font-size:17px}.brand-icon{font-size:23px}
 .discord{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding:9px}
 .icon-button{width:32px;height:36px}#sound{width:32px;min-width:32px}
 .game-top{gap:7px;flex-wrap:nowrap}.game-top>#quit,.game-top>#pause{font-size:12px;padding:7px 9px;min-height:40px}
 .game-top h2{font-size:15px}.game-top .eyebrow{font-size:8px;letter-spacing:1px}.game-stats{gap:9px}.game-stats strong{font-size:18px}.game-stats small{font-size:8px;letter-spacing:.6px}
 .dpad{grid-template-columns:repeat(3,44px);gap:4px}.dpad button{width:44px;height:44px;font-size:16px}
 .touch-controls{margin:8px 4px 0;gap:15px}.touch-actions{gap:10px}#touch-action{width:64px;height:64px;font-size:13px}
 .game{padding:7px 8px}.arena-wrap .context-hint{font-size:12px;min-height:40px;padding:7px 9px}.pause-screen{inset:0 0 40px;gap:12px;padding:16px}.pause-screen>p{font-size:14px}.pause-screen>.eyebrow{font-size:9px;letter-spacing:1px}
 .recipe-list{grid-template-columns:1fr}.campaign-card{padding:12px}.campaign-heading{font-size:14px}
 .mode-card strong,.mode-card small{font-size:14px}.mode-card{min-height:112px}.level-heading,.name-row label,.name-row input,.level-picker select,.join-row button{font-size:14px}.panel-note{font-size:12px}
}
@media(max-width:430px){
 .game-top>div:not(.game-stats){max-width:95px}.game-stats{gap:6px}.game-top h2{font-size:14px}
 .game-top>#quit,.game-top>#pause{padding:6px 7px;font-size:11px}
 .touch-actions{gap:8px}#touch-run,#touch-action{width:58px;height:58px}.touch-controls{gap:10px}
 body:has(#game:not(.hidden)) .brand{font-size:15px}body:has(#game:not(.hidden)) .discord{max-width:93px}
}
@media(max-width:900px) and (orientation:landscape) and (max-height:550px){
 .game{display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;column-gap:10px;row-gap:6px;padding:6px 10px}
 .game-top{grid-column:1/-1;margin:0}.game-top h2{font-size:16px}.game-top>div:not(.game-stats){max-width:none}
 .service-panel{display:flex;flex-direction:column;grid-column:1;grid-row:2;min-height:0;gap:6px}
 .orders{flex:1;min-height:0;height:auto;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;margin:0;padding:0 2px 3px}
 .ticket{flex:0 0 122px;min-width:0!important;max-width:none;width:100%}.combo-hud{margin:0;font-size:12px}
 .dish-cycle{grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:5px}.dish-stock small{font-size:10px;line-height:12px}.dish-stock strong{font-size:14px}
 .arena-wrap{grid-column:2;grid-row:2;height:100%}.touch-controls{grid-column:1/-1;grid-row:3;justify-content:space-between;margin:0 10px;height:92px}
 .game-bottom{display:none}.pause-screen>.eyebrow,.pause-screen>p{display:none}.pause-screen>h2{font-size:22px}.pause-screen{gap:8px}.pause-screen>.primary,.pause-screen>.secondary{padding:9px 14px;min-height:38px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:430px){.topbar{padding:0 8px;gap:6px}.topbar>.brand{font-size:14px;letter-spacing:-.7px}.topbar .brand-icon{font-size:21px}.topbar .brand i{display:none}.topbar nav{gap:4px}.topbar .discord{max-width:83px;padding:8px}body:has(#game:not(.hidden)) .topbar .discord{display:none}}

/* Portrait tickets keep their full plating instruction without a vertical scrollbar. */
@media(max-width:900px) and (min-height:501px){
 .game .orders{height:142px;min-height:142px;overflow-y:hidden;align-items:stretch}
 .game .orders .ticket{height:132px;min-height:132px}
}

/* Chapter menus and deliberate manual preparation */
.cuisine-summary{margin:12px 0 16px;padding:12px 14px;border:1px solid #d5deca;border-left:4px solid #739b65;border-radius:9px;background:#f6f8f0}
.cuisine-summary>strong{display:block;font:700 18px Outfit,sans-serif}.cuisine-summary>p{margin:6px 0 0;font-size:14px;line-height:1.55;color:#5c7053}
.cuisine-summary[data-cuisine=italian]{border-left-color:#c77245;background:#fcf1e7}.cuisine-summary[data-cuisine=asian]{border-left-color:#759a83;background:#edf5ed}.cuisine-summary[data-cuisine=mexican]{border-left-color:#c99439;background:#fff3d4}
.cuisine-badge{display:inline-block;margin-top:5px;font-size:12px;font-weight:700;line-height:1.3;color:#526e43;letter-spacing:.3px}
#game[data-cuisine=italian] .cuisine-badge{color:#a96036}#game[data-cuisine=asian] .cuisine-badge{color:#4b7f68}#game[data-cuisine=mexican] .cuisine-badge{color:#9e7023}
.recipe-chapters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 12px}.recipe-chapters>button{padding:10px 12px;border:1px solid #c5d3b9;background:white;border-radius:8px;min-height:44px;color:var(--ink);font-weight:600;font-size:14px}.recipe-chapters>button.selected{background:var(--ink);border-color:var(--ink);color:white}
.recipe-chapter-description{font-size:14px;line-height:1.55!important;color:#5b7251}.recipe-method{display:inline-block;background:#e6edda;border-radius:5px;padding:4px 7px;font-size:12px;font-weight:700;margin-bottom:10px}.recipe-card[data-cuisine=italian] .recipe-method{background:#f7e4d1}.recipe-card[data-cuisine=asian] .recipe-method{background:#dcece3}.recipe-card[data-cuisine=mexican] .recipe-method{background:#fae8b3}
.recipe-card li{display:flex;align-items:center;gap:9px;margin-bottom:7px;line-height:1.5}.recipe-card li>span{flex:1}.food-portrait{object-fit:contain;flex-shrink:0;vertical-align:middle;image-rendering:auto}
.recipe-card .recipe-workflow{font-size:14px;line-height:1.55;padding:10px;background:#f5f7ef;border-radius:6px;color:#51684a}.recipe-card>small{font-size:12px;line-height:1.6;display:block}
.manual-key-guide{background:#edf3e3;border:1px solid #d1ddc2;border-radius:10px;padding:11px 15px;margin-top:18px}.manual-key-guide p{font-size:14px;line-height:1.6;margin:5px 0}
#touch-work{width:64px;height:64px;touch-action:none;user-select:none;border:1px solid #1e6f69;border-radius:50%;background:#286d66;color:white;font-weight:800;font-size:11px;line-height:1.3;box-shadow:0 3px 0 #154b43}
#touch-work:active{background:#1b544c}.touch-actions{gap:9px}#touch-action{line-height:1.3}
.ticket .ingredients{align-items:flex-start}.ticket .ingredient-chip>img{display:block;width:28px;height:28px}.ticket .ticket-instruction{white-space:nowrap;font-size:12px}.ticket{flex-basis:138px}
@media(min-width:901px){.ticket{flex-basis:138px}.game-top h2{font-size:20px}.game-bottom{gap:11px;font-size:10px}}
@media(max-width:900px) and (min-height:501px){.game .orders{height:150px;min-height:150px;overflow-y:hidden}.game .orders .ticket{height:140px;min-height:140px}}
@media(max-width:700px){
 .cuisine-badge{font-size:11px;max-width:145px;line-height:1.2}.game-top>div:not(.game-stats){max-width:145px}.game-top h2{font-size:14px}
 .cuisine-summary>strong{font-size:18px}.cuisine-summary>p{font-size:14px}.recipe-chapters{gap:6px}.recipe-chapters>button{padding:8px 10px;font-size:13px}
 .touch-controls{gap:8px}.touch-actions{gap:7px}#touch-run,#touch-action,#touch-work{width:58px;height:58px}#touch-run,#touch-work{font-size:10px}#touch-action{font-size:11px}
 .arena-wrap .context-hint{font-size:12px;line-height:1.35;max-height:68px;overflow:hidden}
}
@media(max-width:430px){.game-top>div:not(.game-stats){max-width:100px}.cuisine-badge{font-size:10px}.touch-actions{gap:5px}#touch-run,#touch-action,#touch-work{width:52px;height:52px}.touch-controls{margin-left:0;margin-right:0}}
@media(max-width:360px){#touch-run,#touch-action,#touch-work{width:44px;height:48px;font-size:9px}.touch-actions{gap:4px}.touch-controls{gap:5px}.dpad{grid-template-columns:repeat(3,44px)}}
@media(max-width:900px) and (orientation:landscape) and (max-height:550px){
 .game-top .cuisine-badge{font-size:11px}.game-top h2{font-size:15px}.game-top>div:not(.game-stats){max-width:none}
 .service-panel,.arena-wrap{min-width:0}.ticket{min-height:138px;flex-basis:138px}.ticket .ingredients{gap:4px}.ticket .ticket-instruction{font-size:11px}
 .touch-controls{gap:10px}.touch-actions{gap:12px}#touch-run,#touch-action,#touch-work{width:58px;height:58px}
}
.gamepad-status{display:grid;place-items:center;min-width:30px;font-size:20px;cursor:help}
.gamepad-guide{padding:14px 16px;border:1px solid #b5c9b0;background:#e8efdf;border-radius:10px;margin-top:18px}
.gamepad-guide>strong{font-size:14px}.gamepad-guide p{margin:8px 0 0;font-size:13px}
.dash-status{position:absolute;top:10px;right:10px;border:1px solid #ffffff44;background:#335a50e8;color:#e3e7d0;padding:6px 9px;border-radius:7px;font-size:10px;font-weight:800;letter-spacing:.5px;pointer-events:none}
.dash-status.ready{background:#f6dfa6ed;color:#365645;border-color:#fff1b7}
#touch-run{background:radial-gradient(circle,#e5edcf 60%,transparent 62%),conic-gradient(#63936d calc(var(--dash-fill,1)*1turn),#c7d2ba 0);transition:color .12s}
#touch-run.recharging{color:#7c8872}.gamepad-focus:focus,button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e78d4f;outline-offset:3px}
@media(max-width:700px){.dash-status{top:5px;right:5px;font-size:9px;padding:4px 6px}.gamepad-status{min-width:20px;font-size:16px}}
.progress-sync{margin:12px 0;padding:11px 12px;border:1px solid #c6d5bd;border-radius:8px;background:#ffffffa8}
.progress-sync>strong{display:block;font-size:12px;line-height:1.5;color:#456647}
.progress-sync>p{margin:5px 0 0;font-size:12px;line-height:1.5;color:#6b7b63}
.progress-sync>p:empty{display:none}.progress-sync>button{margin-top:8px;background:white;border:1px solid #bdc9b5;border-radius:6px;min-height:36px;padding:6px 10px;color:var(--ink);font-size:12px;font-weight:700}
.progress-sync[data-state="saving"]>strong,.result-progress[data-state="saving"]{color:#8e6e2d}
.progress-sync:is([data-state="unavailable"],[data-state="offline"],[data-state="expired"],[data-state="disabled"]) {background:#fff5e3;border-color:#e3cda5}
.progress-sync:is([data-state="unavailable"],[data-state="offline"],[data-state="expired"],[data-state="disabled"])>strong,.result-progress:is([data-state="unavailable"],[data-state="offline"],[data-state="expired"],[data-state="disabled"]){color:#9a6933}
.account-stats{padding:10px 0 2px;border-top:1px solid #d5dfc8}.account-stats dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;text-align:center}.account-stats dl>div{min-width:0}.account-stats dt{font-size:11px;line-height:1.4;color:#6e7d64}.account-stats dd{margin:5px 0;font:700 19px Outfit,sans-serif;color:var(--ink)}
.account-stats>small{display:block;text-align:center;margin-top:8px;font-size:11px;line-height:1.5;color:#6e7d64}
#results .result-progress{font-size:12px;line-height:1.5;margin:12px auto;color:#49704a;max-width:440px}
@media(max-width:700px){.progress-sync>strong,.progress-sync>p,.progress-sync>button{font-size:13px}.progress-sync>button{min-height:44px}.account-stats dt{font-size:12px}.account-stats dd{font-size:18px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#leaderboard{font-size:17px}#leaderboard-dialog{max-width:840px;max-height:90dvh;overflow-y:auto}
.leaderboard-filters{display:grid;grid-template-columns:1fr 1.5fr 1.1fr;gap:12px;margin:20px 0 12px}
.leaderboard-filters label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:700}
.leaderboard-filters select{width:100%;min-width:0;min-height:44px;padding:10px 9px;border:1px solid #c7d2be;border-radius:7px;background:white;color:var(--ink);font-size:13px}
#leaderboard-state{font-size:13px;line-height:1.6;min-height:21px;margin:10px 0}
#leaderboard-dialog[data-state="error"] #leaderboard-state{color:#986532}
.leaderboard-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.leaderboard-actions:has(>button:not(.hidden)){margin-bottom:18px}
.leaderboard-summary{font-size:12px!important;font-weight:700;color:#687b61!important;margin:15px 0 8px}
.leaderboard-table-wrap{overflow-x:auto;border:1px solid #d5decc;border-radius:9px;background:white}
.leaderboard-table{width:100%;border-collapse:collapse;font-size:13px;text-align:right}.leaderboard-table th,.leaderboard-table td{padding:12px 10px;border-bottom:1px solid #e6ebdf;vertical-align:middle}.leaderboard-table th{font-size:11px;color:#6b7b63;font-weight:700;background:#edf2e4;white-space:nowrap}.leaderboard-table th:nth-child(2),.leaderboard-table td:nth-child(2){text-align:left}.leaderboard-table tr:last-child td{border-bottom:0}.leaderboard-rank{font:800 17px Outfit,sans-serif;color:#708568;text-align:center}.leaderboard-stars{color:#b57c29;font-weight:800;white-space:nowrap}
.leaderboard-identity{display:flex;align-items:center;gap:8px;min-width:100px}.leaderboard-identity>img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex-shrink:0}.leaderboard-avatar{font-size:24px;flex-shrink:0}.leaderboard-identity>span:not(.leaderboard-avatar){overflow-wrap:anywhere;line-height:1.4}.leaderboard-you{font-size:8px;letter-spacing:.6px;padding:3px 4px;border-radius:4px;background:#417b5d;color:white;margin-left:auto}
.leaderboard-table .is-me{background:#f2efd3}.leaderboard-table .is-me .leaderboard-rank{color:#956b28}
.leaderboard-self{display:flex;gap:7px;flex-direction:column;margin:15px 0;padding:12px 14px;border:1px solid #cbd9bd;border-radius:8px;background:#edf2e3;font-size:13px}.leaderboard-self:empty{display:none}.leaderboard-self>span{font-size:12px;color:#62795b;line-height:1.5}.leaderboard-note{font-size:11px!important;line-height:1.6!important}
.debug-guide{padding:14px 16px;border:1px dashed #9dac91;border-radius:10px;margin-top:18px;background:#e8eddf}.debug-guide>strong{font-size:14px}.debug-guide>p{font-size:12px;margin:7px 0 10px}.debug-guide>.secondary{font-size:12px;min-height:40px}
@media(max-width:600px){#leaderboard-dialog{padding:25px 18px}.leaderboard-filters{grid-template-columns:1fr 1fr;gap:10px}.leaderboard-filters>label:nth-child(2){grid-column:1/-1;grid-row:2}.leaderboard-table .leaderboard-levels{display:none}.leaderboard-table th,.leaderboard-table td{padding:10px 6px;font-size:12px}.leaderboard-table th{font-size:10px}.leaderboard-rank{font-size:15px!important}.leaderboard-identity{gap:5px;min-width:0}.leaderboard-identity>img{width:24px;height:24px}.leaderboard-avatar{font-size:20px}.leaderboard-you{display:none}.leaderboard-self{font-size:13px}.leaderboard-filters select,.debug-guide>.secondary{font-size:13px;min-height:44px}}
/* The service keeps the kitchen central; supporting detail lives in the menu. */
body.is-playing{overflow:hidden;background:#9bb7aa}
.is-playing .topbar{display:none}
.is-playing .topbar .brand,.is-playing .topbar #connection,.is-playing .topbar #account,.is-playing .topbar #gamepad-status{display:none}
.is-playing .topbar nav{gap:7px}
.is-playing .topbar .icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;border:1px solid #fff8df75;background:#24493fdd;color:#fff9dd;border-radius:12px;box-shadow:0 3px 8px #183e3420;font-size:19px}
.is-playing #game{--hud-top:128px;--hud-bottom:86px;display:block;position:fixed;inset:0;max-width:none;width:100%;height:100dvh;margin:0;padding:0;overflow:hidden;background:radial-gradient(ellipse at 48% 40%,#eff0db,#8caeac);isolation:isolate}
.is-playing #game[data-cuisine=italian]{background:radial-gradient(ellipse at 48% 40%,#f4e3bf,#a4b498)}
.is-playing #game[data-cuisine=asian]{background:radial-gradient(ellipse at 48% 40%,#e6e9ce,#8ba79b)}
.is-playing #game[data-cuisine=mexican]{background:radial-gradient(ellipse at 48% 40%,#f2dbaf,#b39b7e)}
.is-playing #game .arena-wrap{position:absolute;inset:var(--hud-top) 0 var(--hud-bottom);display:block;height:auto;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
.is-playing #game #arena{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;touch-action:none}
.is-playing #game .service-panel{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:128px;z-index:10;display:block;height:112px;min-height:0;pointer-events:none}
.is-playing #game .orders{display:flex;flex-direction:row;align-items:stretch;width:100%;height:112px;min-height:0;margin:0;padding:0 3px 3px 0;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#365f5155 transparent;pointer-events:auto}
.is-playing #game .orders .ticket{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:0 0 106px;min-width:106px!important;max-width:106px;width:106px;min-height:108px;height:108px;margin:0;padding:7px 5px 4px;overflow:hidden;border:1px solid #fff8e4cc;border-top:0;border-radius:8px;background:#fffdf1f5;color:#274d40;box-shadow:0 3px 0 #284d3b20;text-align:center;cursor:pointer;transition:background .15s,transform .15s}
.is-playing #game .ticket:hover{background:#fff}
.is-playing #game .ticket:active{transform:translateY(1px)}
.is-playing #game .ticket .progress{position:absolute;inset:0 0 auto;height:5px;border-radius:0;background:#e4e6d9}
.is-playing #game .ticket .progress i{background:#8aa852;height:5px;transition:width .1s}
.is-playing #game .ticket.urgent .progress i{background:#dc6846}
.is-playing #game .ticket.urgent{border-color:#e8a56e;background:#fff4e7}
.is-playing #game .ticket .ticket-dish{display:block;width:67px;height:45px;object-fit:contain;flex:0 0 45px;margin:-1px 0 -3px}
.is-playing #game .ticket strong{display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:14px;font-weight:800;min-height:14px;margin:0}
.is-playing #game .ticket .ingredients{display:flex;justify-content:center;align-items:center;gap:3px;min-height:27px;height:27px;margin:1px 0 0;width:100%}
.is-playing #game .ticket .ingredient-chip{display:block;position:relative;flex:0 1 24px;min-width:0;height:26px;margin:0}
.is-playing #game .ticket .ingredient-chip>img{width:24px;height:24px;object-fit:contain}
.is-playing #game .ticket .ingredient-chip small{position:absolute;right:-2px;bottom:-2px;min-width:11px;height:11px;padding:0 1px;border-radius:3px;color:#294c40;background:#fff9e0;font-size:10px;line-height:11px;white-space:nowrap}
.is-playing #game .ticket .ingredient-chip small:empty{display:none}
.is-playing #game .ticket .ticket-instruction{display:block;min-height:12px;margin:2px 0 0;font-size:9px;line-height:12px;color:#647766;white-space:nowrap}
.is-playing #game .game-actions{position:absolute;z-index:12;top:12px;right:max(16px,env(safe-area-inset-right));display:flex;gap:7px}
.hud-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #fff8df75;border-radius:12px;background:#24493fdd;color:#fff9dd;font:800 21px Outfit,system-ui,sans-serif;box-shadow:0 3px 8px #183e3420}
.is-playing #game .score-hud{position:absolute;left:max(20px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;z-index:12;min-height:62px;padding:5px 14px 5px 5px;border:1px solid #fff4bf60;border-radius:14px;background:#244d43eb;color:#fffce3;box-shadow:0 3px 0 #183a3330;pointer-events:none}
.score-emblem{display:grid;place-items:center;width:50px;height:50px;border:3px solid #f8dc7d;border-radius:50%;background:#e5b54d;color:#fff5be;font-size:33px;text-shadow:0 2px #c28d33}
.score-hud>div:not(.combo-hud){display:flex;flex-wrap:wrap;align-items:baseline;column-gap:5px;min-width:70px}
.score-hud small{display:none}
.score-hud #score{font:900 34px/.95 Outfit,system-ui,sans-serif;letter-spacing:-.8px;display:block;width:100%;text-shadow:0 2px #163c32}
.score-goal{display:flex;gap:9px;align-items:center;line-height:21px}
#service-stars{color:#f3d16f;letter-spacing:1px;font-size:16px;white-space:nowrap}
.target-label{font-size:10px;color:#c5d5b9;white-space:nowrap}.target-label b{font-weight:600}
.is-playing #game .combo-hud{display:none;align-items:center;gap:5px;min-height:0;margin:0 0 0 3px;padding:4px 0 4px 10px;border:0;border-left:1px solid #d5e0b93b;background:transparent;border-radius:0;color:#ffe8a4;font-size:11px}
.is-playing #game .combo-hud.combo-active{display:flex}.is-playing #game .combo-hud>strong{font-size:18px}.is-playing #game .combo-hud>b{padding:3px 5px;background:#f4c660;color:#6b461b;font-size:13px}
.is-playing #game .timer-hud{position:absolute;right:max(20px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:12;display:flex;align-items:center;gap:9px;padding:9px 13px 10px;border:1px solid #fff4bf60;border-radius:14px;background:#244d43eb;color:#fffce3;min-width:144px;box-shadow:0 3px 0 #183a3330;pointer-events:none}
.timer-hud>span{font-size:36px;color:#e3ddba;line-height:1}.timer-hud>div{flex:1}.timer-hud small{display:none}.timer-hud #timer{font:900 33px/1 Outfit,system-ui,sans-serif;letter-spacing:-.7px}.timer-track{display:block;height:4px;margin-top:6px;border-radius:3px;background:#182f2c88;overflow:hidden}.timer-track i{height:100%;width:100%;display:block;background:#c6d475;transition:width .2s}.timer-track i.danger-time{background:#ef9c65}
.is-playing #game .game-guidance{position:absolute;z-index:11;bottom:19px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;max-width:calc(100% - 510px);pointer-events:none}
.is-playing #game .context-hint{position:static;transform:none;width:auto;max-width:100%;padding:5px 11px;border:0;border-radius:18px;background:#284e3ee0;color:#f5f3d8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:17px;min-height:0;text-align:center}
.is-playing #game .dash-status{position:static;width:auto;max-width:100%;padding:2px 7px;border:0;border-radius:4px;background:transparent;color:#244b3a;font-size:9px;line-height:13px;letter-spacing:.7px}.is-playing #game .dash-status.ready{background:#f8e9b6b0;color:#35553c}
.is-playing #game .touch-controls{display:none}
.is-playing #game .pause-screen{inset:0;z-index:25;gap:14px;background:#e6eedeea;border-radius:18px;margin:12px 5%;max-height:100%;overflow-y:auto}
#service-menu-dialog{max-width:590px;max-height:90dvh;overflow-y:auto}#service-menu-dialog h3{font:700 22px Outfit,system-ui,sans-serif;margin:12px 0 4px}#service-menu-dialog #you{margin:8px 0;font-size:12px}#service-menu-dialog #service-layout{margin:8px 0;font-size:13px}#service-menu-dialog #menu-context{padding:10px 12px;border-radius:8px;background:#e6eddc;font-size:13px}.service-menu-links{display:grid;grid-template-columns:1fr 1fr;gap:9px}.service-menu-links>button{min-height:44px}.service-menu-links>.primary{grid-column:1/-1}.service-details{margin-top:20px}.service-details>summary{cursor:pointer;font-size:14px;font-weight:700;padding:10px 0}.service-details .dish-cycle{display:flex;margin:8px 0;gap:13px}.service-details .dish-stock{display:flex;text-align:left;flex:1 1 45%;align-items:center}.service-details .dish-stock>span{display:block}.service-details .dish-stock>div{display:grid;grid-template-columns:1fr auto;min-width:95px;gap:5px}.service-details .dish-stock small{font-size:12px;line-height:17px;white-space:normal}.service-details .dish-stock strong{font-size:18px}.service-details .dish-cycle>p{display:block}.service-details .sink-track{grid-column:1/-1;width:100%}#service-menu-dialog .game-bottom{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;font-size:11px}#service-menu-note{font-size:11px}#service-menu-dialog>#quit{margin-top:12px;min-height:44px;width:100%}.level-layout{display:block;font-weight:700;color:#5d7359;margin-top:2px}
@media(max-width:900px),(pointer:coarse){
 .is-playing .topbar{display:none}
 .is-playing #game{--hud-top:126px;--hud-bottom:192px}
 .is-playing #game .service-panel{left:max(10px,env(safe-area-inset-left));right:112px;top:max(10px,env(safe-area-inset-top));height:106px}
 .is-playing #game .orders{height:108px;gap:6px}
 .is-playing #game .orders .ticket{flex-basis:94px;min-width:94px!important;max-width:94px;width:94px;height:103px;min-height:103px;padding:7px 3px 3px}
 .is-playing #game .ticket .ticket-dish{height:41px;flex-basis:41px;width:62px}.is-playing #game .ticket strong{font-size:9px;line-height:13px;min-height:13px}.is-playing #game .ticket .ingredient-chip>img{width:22px;height:22px}.is-playing #game .ticket .ingredient-chip{flex-basis:22px;height:24px}.is-playing #game .ticket .ingredients{height:25px;min-height:25px;gap:2px}.is-playing #game .ticket .ticket-instruction{font-size:9px;margin-top:1px}
 .is-playing #game .game-actions{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));gap:7px}
 .is-playing #game .score-hud{left:max(12px,env(safe-area-inset-left));bottom:126px;gap:6px;padding:5px 8px 5px 5px;min-height:56px}.score-emblem{width:40px;height:40px;font-size:27px}.score-hud #score{font-size:29px}.score-goal{gap:5px;line-height:17px}#service-stars{font-size:14px}.target-label{font-size:9px}
 .is-playing #game .combo-hud{position:absolute;top:-20px;right:4px;padding:0;border:0;gap:4px}.is-playing #game .combo-hud>strong{font-size:13px}.is-playing #game .combo-hud>b{font-size:11px;padding:1px 4px}
 .is-playing #game .timer-hud{right:max(12px,env(safe-area-inset-right));bottom:126px;min-width:122px;padding:8px 10px;gap:7px}.timer-hud #timer{font-size:29px}.timer-hud>span{font-size:30px}
 .is-playing #game .game-guidance{bottom:193px;max-width:calc(100% - 24px);gap:3px}.is-playing #game .context-hint{font-size:10px;max-width:100%;padding:4px 9px}.is-playing #game .dash-status{font-size:8px;line-height:12px}
 .is-playing #game .touch-controls{position:absolute;inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:flex;justify-content:space-between;align-items:flex-end;gap:12px;height:96px;margin:0;z-index:15;pointer-events:none}
 .is-playing #game .dpad{display:grid;grid-template-columns:repeat(3,44px);gap:4px;pointer-events:auto}.is-playing #game .dpad button{width:44px;height:44px;margin:0;border:1px solid #fff9d898;border-radius:11px;background:#e5edcfde;color:#375d49;font-size:16px;touch-action:none;user-select:none;box-shadow:0 2px 0 #38564733}
 .is-playing #game .touch-actions{display:flex;align-items:flex-end;gap:7px;pointer-events:auto;padding-bottom:7px}
 .is-playing #game #touch-run,.is-playing #game #touch-action,.is-playing #game #touch-work{width:54px;height:54px;border-radius:50%;font-size:10px;line-height:1.2;border:1px solid #fff4c285;box-shadow:0 3px 0 #1d443640;touch-action:none;user-select:none}.is-playing #game #touch-action{background:#e5824f;color:#fffde3}.is-playing #game #touch-work{background:#326e60;color:#fffde3}
}
@media(max-width:390px){.is-playing #game .touch-actions{gap:5px}.is-playing #game #touch-run,.is-playing #game #touch-action,.is-playing #game #touch-work{width:49px;height:49px;font-size:9px}.is-playing #game .service-panel{right:110px}.is-playing #game .score-hud{gap:4px}.target-label{display:none}}
@media(max-width:900px) and (orientation:landscape),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 .is-playing #game{--hud-top:54px;--hud-bottom:55px}
 .is-playing #game .service-panel{height:87px;right:auto;width:min(43vw,calc(100% - 126px));top:8px}.is-playing #game .orders{height:87px;gap:6px}
 .is-playing #game .orders .ticket{height:84px;min-height:84px;flex-basis:88px;min-width:88px!important;max-width:88px;width:88px;padding:6px 3px 2px}.is-playing #game .ticket .ticket-dish{height:29px;flex-basis:29px;width:50px;margin-top:-1px;margin-bottom:-2px}.is-playing #game .ticket .ingredients{height:23px;min-height:23px}.is-playing #game .ticket .ingredient-chip{height:22px}.is-playing #game .ticket .ingredient-chip>img{height:21px;width:21px}.is-playing #game .ticket .ticket-instruction{font-size:8px;line-height:10px;min-height:10px}
 .is-playing #game .score-hud{left:max(170px,calc(env(safe-area-inset-left) + 158px));bottom:10px;min-height:49px;padding:3px 8px 3px 4px}.score-emblem{width:35px;height:35px;font-size:23px}.score-hud #score{font-size:26px}#service-stars{font-size:12px}.score-goal{line-height:15px}.target-label{display:none}
 .is-playing #game .timer-hud{right:max(193px,calc(env(safe-area-inset-right) + 181px));bottom:10px;min-width:108px;padding:6px 8px;gap:5px}.timer-hud #timer{font-size:26px}.timer-hud>span{font-size:26px}.timer-track{margin-top:4px;height:3px}
 .is-playing #game .game-guidance{bottom:9px;max-width:calc(100% - 620px);gap:1px}.is-playing #game .context-hint{font-size:9px;line-height:13px;padding:3px 6px}.is-playing #game .dash-status{font-size:8px;line-height:10px;letter-spacing:0}
 .is-playing #game .touch-controls{height:92px;bottom:9px}.is-playing #game .pause-screen{margin:2px 10%;padding:8px;gap:8px}.is-playing #game .pause-screen>.eyebrow,.is-playing #game .pause-screen>p{display:none}.is-playing #game .pause-screen>h2{font-size:22px}.is-playing #game .pause-screen>button{min-height:38px;padding:8px 13px}
}
@media(max-width:650px) and (orientation:landscape){.is-playing #game .game-guidance{display:none}.is-playing #game .score-hud{left:153px}.is-playing #game .timer-hud{right:179px}.is-playing #game .score-emblem,.is-playing #game .timer-hud>span{display:none}.is-playing #game .timer-hud{min-width:76px}.is-playing #game #touch-run,.is-playing #game #touch-action,.is-playing #game #touch-work{width:49px;height:49px}.is-playing #game .dpad{grid-template-columns:repeat(3,42px)}.is-playing #game .dpad button{width:42px}}

.action-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:12px 0}.action-stats section{padding:12px;background:#e8eddf;border-radius:8px}.action-stats dl{display:grid;grid-template-columns:1fr auto;gap:4px;font-size:12px}.action-stats dd{margin:0;font-weight:800}.is-playing #game .touch-controls{display:flex;position:absolute;bottom:12px;right:12px;left:auto;z-index:15}.is-playing #game .dpad{display:none}.is-playing #game .touch-actions{display:flex;gap:7px}.is-playing #game .touch-actions button{width:54px;height:54px;border-radius:50%;font-size:10px}@media(min-width:901px) and (pointer:fine){.is-playing #game .timer-hud{right:202px;bottom:14px}}.is-playing #game #arena{cursor:crosshair}

#statistics-dialog{max-width:980px;max-height:92dvh;overflow-y:auto}#statistics-dialog h3{margin:18px 0 12px;font-size:18px}#statistics-dialog summary{cursor:pointer;padding:14px 0;font-weight:700;font-size:14px}#statistics-dialog details{border-bottom:1px solid #d5decc}.statistics-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.statistics-toolbar button{min-height:44px}.statistics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.stats-group{background:#edf1e4;padding:14px 16px;border-radius:10px;margin:12px 0}.stats-group dl,.history-entry>dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;font-size:14px;line-height:1.5}.stats-group dd,.history-entry dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere}.history-entry{padding:4px 10px}.history-entry summary{line-height:1.7}.history-filters{display:flex;gap:12px;flex-wrap:wrap}.history-filters label{display:flex;flex:1;flex-direction:column;gap:7px;font-size:14px}.history-filters select{min-height:44px;border:1px solid #bdc9b5;border-radius:7px;padding:8px;background:white;color:#244639}#statistics-state,#statistics-legacy,.statistics-note,#history-position{font-size:13px;line-height:1.6}#statistics-signin.hidden{display:none}#result-history{margin:10px 0;min-height:44px}@media(max-width:600px){#statistics-dialog{padding:25px 16px}.stats-group dl,.history-entry>dl{font-size:13px;gap:8px}.history-entry{padding:0}.statistics-grid{grid-template-columns:1fr}}

.is-playing #game .ticket .ingredients{height:34px;min-height:34px;gap:4px}.is-playing #game .ticket .ingredient-chip{flex:0 1 32px;height:34px}.is-playing #game .ticket .ingredient-chip>img{width:28px;height:26px}.is-playing #game .ticket .ingredient-chip small{left:50%;right:auto;transform:translateX(-50%);bottom:0;min-width:16px;font:800 8px/11px system-ui;letter-spacing:0;padding:0 2px;background:#d7e8ce;color:#244c31;white-space:nowrap}.is-playing #game .ingredient-chip[data-preparation=grill] small{background:#ffdfba;color:#7e3b1b}.is-playing #game .ingredient-chip[data-preparation=pot] small{background:#d6e9ee;color:#285268}.is-playing #game .ingredient-chip[data-preparation=plate] small{background:#ece9d2;color:#55503a}.is-playing #game .ticket .ticket-instruction{font-size:8px;line-height:10px;margin-top:1px}@media(orientation:landscape) and (max-height:600px){.is-playing #game .ticket .ingredients{height:27px;min-height:27px}.is-playing #game .ticket .ingredient-chip{height:27px}.is-playing #game .ticket .ingredient-chip>img{width:24px;height:20px}}

#wardrobe-dialog{max-width:880px;max-height:92dvh;overflow-y:auto}.wardrobe-body{display:grid;grid-template-columns:220px 1fr;gap:24px}.chef-mirror{background:radial-gradient(#fff4d8,#bdcfc0);border-radius:16px;text-align:center;padding:12px;align-self:start;position:sticky;top:0}.chef-mirror canvas{width:180px;height:210px;max-width:100%}.chef-mirror p{font-size:13px;font-weight:700}.wardrobe-options h3{margin:12px 0;font-size:15px}.cosmetic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cosmetic-choice{min-height:48px;padding:8px;border:1px solid #becab6;border-radius:8px;background:#fffdf1;color:#38513e;text-align:left;font-size:13px}.cosmetic-choice:disabled{opacity:.55;cursor:not-allowed}.cosmetic-choice[aria-pressed=true]{border:2px solid #397c67;background:#e4eedc;font-weight:800}.color-grid{display:flex;flex-wrap:wrap;gap:8px}.color-choice{width:44px;height:44px;border:2px solid #fff9e8;border-radius:50%;box-shadow:0 0 0 1px #8b9b84}.color-choice[aria-pressed=true]{outline:3px solid #316d5a;outline-offset:2px}.wardrobe-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.wardrobe-actions button{min-height:44px}#wardrobe-state{font-size:14px;line-height:1.6}.avatar-portrait{width:72px;height:84px;object-fit:contain}.world-story{margin:18px 0;padding:16px;background:#edf0e3;border:1px solid #ccd7be;border-radius:12px}.world-story h3{font:800 21px Outfit,system-ui;margin:6px 0 12px}.world-story p{font-size:13px;line-height:1.7}.world-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.world-card{border:1px solid #c5d0ba;border-left:4px solid var(--world-color);border-radius:7px;padding:9px 7px;background:#fffdf3;color:#38543f;text-align:left;font-size:12px;min-height:44px}.world-card[aria-pressed=true]{background:#dae6ce;font-weight:800}.world-levels{display:grid;gap:5px;margin:12px 0}.world-level{border:1px solid transparent;border-radius:6px;background:#ffffff8c;padding:9px;text-align:left;font-size:12px;color:#496548;min-height:40px}.world-level[aria-current=step]{border-color:#5b8b68;background:#fff6d8;font-weight:800}#story-dialog{max-width:620px}#story-dialog p{font-size:16px;line-height:1.8}.story-brief{display:flex;gap:16px;padding:14px 18px;background:#edf0df;border-radius:12px;margin:16px 0}.story-brief>span{font-size:30px;color:#b28335}#story-dialog>button:not(.close){margin:5px;min-height:44px}.result-story{font-style:italic;line-height:1.7}.invitation-screen{max-width:720px;margin:40px auto;padding:16px}.invitation-card{padding:36px;background:#fffdf4;border:1px solid #d5dfc9;border-radius:22px;box-shadow:0 16px 50px #28493c18}.invitation-card h1{font:800 36px/1.1 Outfit,system-ui;margin:18px 0}.invitation-card h2{font-size:20px;margin-top:24px}.invitation-card p{line-height:1.7;font-size:14px}.invitation-code{display:inline-block;font:800 22px monospace;letter-spacing:5px;background:#e4edda;border-radius:9px;padding:12px 16px;color:#34634c}.invitation-card>label{display:block;font-weight:700;margin:22px 0 9px}.invitation-card input{width:100%;padding:14px;border:1px solid #bdc9b2;border-radius:9px;font-size:17px;color:#244638}.invitation-card>.primary,.invitation-card>.secondary{display:block;width:100%;margin:12px 0;min-height:48px}.invitation-links{display:flex;gap:10px;margin-top:22px}.invitation-links>button{flex:1;min-height:44px}#invite-status{min-height:48px;background:#eff2e7;padding:12px;border-radius:8px}@media(max-width:600px){.wardrobe-body{grid-template-columns:1fr;gap:14px}.chef-mirror{position:static;display:flex;align-items:center;gap:10px}.chef-mirror canvas{width:115px;height:140px}.chef-mirror p{flex:1}.invitation-screen{margin:12px auto}.invitation-card{padding:24px 18px}.invitation-card h1{font-size:29px}#wardrobe-dialog{padding:25px 16px}.topbar nav{gap:4px}.topbar .icon-button{min-width:36px}}

.is-invitation .topbar nav{display:none}.world-story>.secondary{margin:4px 5px 0 0;min-height:44px}

.invitation-card h1{letter-spacing:-.7px}.is-playing #game .ticket .ingredient-chip>img{width:100%;object-fit:contain}

@media(max-width:700px){.topbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;height:auto;padding:12px 16px}.topbar .brand{align-self:center}.topbar nav{display:flex;flex-wrap:wrap;justify-content:center;max-width:100%;width:100%;min-width:0;gap:7px}.topbar .icon-button{width:44px;height:44px;min-width:44px}.topbar #account{flex-basis:100%;max-width:300px;min-height:44px;margin:2px auto}.is-invitation .topbar nav{display:none}}
