.cooking-game[hidden]{display:none!important}.cooking-game{height:100%;min-height:0;min-width:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;padding:10px;background:#f6f1e3;color:#173d31;overflow:hidden;position:relative}.cooking-game *{box-sizing:border-box}.cook-progress{display:flex;justify-content:center;gap:5px;margin:0;padding:0;list-style:none}.cook-progress li{display:flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:4px 10px;border-radius:12px;background:#e6e9dc;font-size:12px;font-weight:800;white-space:nowrap}.cook-progress li[aria-current=step]{background:#ffb22f;color:#173d31;box-shadow:0 2px 0 #ba7b20}.cook-progress li.completed{background:#d3e7c7}.cook-message{margin:0!important;text-align:center;line-height:1.3;min-height:28px;font-weight:800;color:#174f3d!important;font-size:clamp(14px,2vw,19px)}.cook-body{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:12px;min-height:0}.cook-viewport{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;background:#e5dbc4;border-radius:22px;overflow:hidden}.cook-scene{position:relative;flex:none;overflow:hidden;border-radius:18px;isolation:isolate;touch-action:none;max-width:100%;max-height:100%}.cook-art{display:block;width:100%;height:100%;pointer-events:none}.cook-target{position:absolute;left:36%;top:62%;width:29%;height:34%;border:3px dashed #fff5be!important;border-radius:40%;background:#ffffff08!important;color:#174f3d;touch-action:none;min-width:44px;min-height:44px;padding:0!important;box-shadow:0 0 0 3px #174f3d44;transform:none!important;cursor:pointer}.cook-target:focus-visible{outline:4px solid #ffb22f!important;outline-offset:3px}.cook-target span{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:20px;background:#fff9e9e8;padding:3px 9px;font-size:12px;font-weight:800}.cook-target.selected{border-color:#ffb22f!important;background:#ffb22f30!important}.cook-target.drop-hover{box-shadow:0 0 0 6px #ffb22f}.cook-slot{position:absolute;top:71%;left:39%;width:12%;height:24%;min-width:44px;min-height:44px;transform:translate(-50%,-15%)!important;border-radius:50%;padding:0!important;background:transparent!important;border:2px dashed #fff2c9!important;cursor:pointer;touch-action:none}.cook-slot[data-slot="1"]{left:53%}.cook-slot[data-slot="2"]{left:67%}.cook-slot[aria-pressed=true]{border:4px solid #ffb22f!important}.cook-slot span{position:absolute;inset:auto 0 0;background:#fff8e6d9;border-radius:20px;font-size:12px;color:#174f3d;font-weight:800}.cook-tools{min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:20px;background:#fffaf0;border:1px solid #d6decb;overscroll-behavior:contain}.cook-tools h2{font-size:20px!important;letter-spacing:-.4px;margin:0 0 4px}.cook-tools p{margin:0;font-size:13px;line-height:1.4}.cook-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cooking-game button{font:800 14px/1.2 'Nunito',sans-serif;cursor:pointer;border:2px solid #cbd7be;border-radius:13px;background:#fffdf4;color:#174f3d;min-height:46px;padding:9px;touch-action:manipulation}.cooking-game button:hover{background:#f8edcd;transform:none}.cooking-game button[aria-pressed=true]{background:#fff0bb;border-color:#d77a15;box-shadow:inset 0 0 0 2px #ffb22f}.cooking-game button:disabled{cursor:default;opacity:.45}.cook-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;position:relative;touch-action:none!important;user-select:none}.cook-item canvas{width:65px;height:60px;object-fit:contain;max-width:100%;pointer-events:none}.cook-item span{font-size:12px}.cook-primary{background:#174f3d!important;color:white!important;border-color:#174f3d!important;min-height:48px!important}.cook-secondary{background:#f3e6c2!important}.cook-controls{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}.cook-controls button{flex:1;font-size:12px}.cook-swatches{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}.cooking-game .cook-swatch{width:46px;height:46px;min-width:46px;border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #9cae93;font-size:0}.cook-decoration{width:100%;aspect-ratio:1;max-height:180px;object-fit:contain;background:#eee2c8;border-radius:18px;touch-action:none;cursor:crosshair}.cook-meter{height:15px;border-radius:10px;background:#e4e7d8;overflow:hidden}.cook-meter>i{display:block;height:100%;background:#df8c27;transition:width .15s}.cook-busy .cook-scene{cursor:wait}.cook-pause{position:absolute;inset:0;z-index:10;background:#173d318c;display:grid;place-items:center;padding:20px}.cook-pause[hidden]{display:none!important}.cook-pause-card{padding:24px;max-width:420px;text-align:center;border-radius:24px;background:#fffaf0;box-shadow:0 10px 40px #0003}.cook-pause-card h2{font-size:27px}.cook-pause-card button{margin:5px}.cook-ghost{position:fixed;z-index:2147483647;width:90px;height:90px;pointer-events:none;filter:drop-shadow(0 8px 5px #0004);transform:translate(-50%,-50%)}.cook-launch{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:center;text-align:left}.cook-launch>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}.cook-launch .launch-cover-button{width:100%}.cook-launch .launch-cover-button img{width:100%;height:auto}.play-dialog:has(.cooking-game) .play-header{flex-wrap:nowrap;min-height:54px;padding:5px 12px}.play-dialog:has(.cooking-game) .play-header>div{flex-wrap:nowrap}.play-dialog:has(.cooking-game) .play-header button{min-width:44px;min-height:44px}.play-dialog:has(.cooking-game) .play-header strong{font-size:15px;white-space:nowrap}.play-dialog:has(.cooking-game) .screen-status:empty{display:none}.play-dialog:has(.cooking-game) .play-content{padding:0;min-height:0;overflow:hidden}.play-dialog:has(.cooking-game) .explorer-settings{z-index:30}
@media(max-aspect-ratio:1/1){.cook-body{grid-template-columns:1fr;grid-template-rows:minmax(110px,1fr) auto;gap:7px}.cook-tools{max-height:46vh;overflow:auto;gap:6px;padding:8px}.cook-choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.cook-item canvas{height:46px}.cook-item{padding:5px!important}.cook-item span{font-size:10px}.cook-tools h2{font-size:17px!important}.cook-controls{margin-top:0}.cook-decoration{max-height:170px;width:auto;align-self:center}.cook-swatches{flex-wrap:nowrap}.cook-progress li{padding:3px 7px;font-size:11px}.cook-progress li span{display:none}.cook-tools .cook-help{display:none}.cook-launch{grid-template-columns:1fr}.play-dialog:has(.cooking-game) .play-header strong{display:none}.cooking-game{gap:5px;padding:6px}.cook-target span{font-size:10px;padding:2px 4px}.cook-tools:has(.cook-decoration){display:grid;grid-template-columns:1fr 1fr}.cook-tools:has(.cook-decoration)>h2,.cook-tools:has(.cook-decoration)>.cook-controls{grid-column:1/-1}.cook-tools:has(.cook-decoration) .cook-decoration{grid-row:2/5;width:100%;max-height:150px}.cook-tools:has(.cook-decoration) .cook-swatches{flex-wrap:wrap}.cook-tools:has(.cook-decoration) .cook-choices{grid-template-columns:repeat(3,1fr)}}
@media(min-aspect-ratio:1/1) and (max-height:550px){.cook-body{grid-template-columns:minmax(0,1fr) 190px;gap:5px}.cooking-game{padding:4px;gap:4px}.cook-progress li{min-height:28px;padding:2px 7px}.cook-progress li span{display:none}.cook-message{min-height:20px;font-size:14px}.cook-tools{padding:6px;gap:5px}.cook-tools h2{font-size:17px!important}.cook-item canvas{height:42px}.cook-item{padding:3px!important;min-height:68px!important}.cook-item span{font-size:10px}.cook-help{display:none}.cook-decoration{max-height:100px}.cook-swatches{gap:4px}.cooking-game .cook-swatch{height:44px;width:44px;min-width:44px}.cook-controls button{font-size:11px;padding:5px}.play-dialog:has(.cooking-game) .play-header{min-height:48px}.play-dialog:has(.cooking-game) .play-header strong{display:none}}
@media(prefers-reduced-motion:reduce){.cook-meter>i{transition:none}}
/* Short landscape screens reserve every control before fitting the scene. */
@media(min-aspect-ratio:1/1) and (max-height:550px){
 .cook-body{grid-template-columns:minmax(0,1fr) 260px}.cook-tools{gap:4px;overflow:hidden}.cook-tools h2{display:none}.cook-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.cook-item{min-height:60px!important}.cook-item canvas{height:36px}.cook-controls{margin-top:auto}.cook-tools:has(.cook-decoration){display:grid;grid-template-columns:1fr 1fr;grid-template-rows:94px 46px 48px 46px;gap:4px;align-content:center}.cook-tools:has(.cook-decoration) .cook-decoration{grid-column:1;grid-row:1;width:94px;height:94px;max-height:94px;justify-self:center}.cook-tools:has(.cook-decoration) .cook-swatches{grid-column:2;grid-row:1;display:grid;grid-template-columns:44px 44px;gap:4px;align-content:center;justify-content:center}.cook-tools:has(.cook-decoration) .cook-choices{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr))}.cook-tools:has(.cook-decoration) .cook-primary{grid-column:1/-1;grid-row:3}.cook-tools:has(.cook-decoration) .cook-controls{grid-column:1/-1;grid-row:4;margin-top:0}.cook-tools:has(.cook-decoration) button{font-size:11px;padding:5px;min-height:44px}
}
.cook-launch,.cook-launch [data-play-game]{scroll-margin-top:160px}

/* Raised bowl drop area and tray targets share scene coordinates. */
.cooking-game .cook-target{top:52%;height:44%}.cooking-game .cook-slot{transform:translate(-50%,-50%)!important}.cooking-game .cook-item.cook-next{border:4px solid #d82b35!important;box-shadow:0 0 0 2px #fff4e5,0 0 0 4px #d82b3533;background:#fff4e5}.cook-next::after{content:"↓";position:absolute;right:3px;top:0;color:#bc1424;font-size:22px;font-weight:900}

/* Independent sound levels stay outside the fitted game scene. */
.cook-audio-levels[hidden]{display:none!important}.cook-audio-levels{position:absolute;z-index:60;top:64px;right:12px;width:min(320px,calc(100% - 24px));max-height:calc(100% - 80px);overflow:auto;background:#fffaf0;border:2px solid #bacbad;border-radius:20px;padding:18px;box-shadow:0 10px 35px #173d3140;color:#174f3d}.cook-audio-levels h2{font-size:22px;margin:0 0 12px}.cook-audio-levels label{display:block;font-weight:800;margin:12px 0}.cook-audio-levels output{float:right}.cook-audio-levels input{display:block;width:100%;height:44px;accent-color:#174f3d;cursor:pointer}.cook-audio-levels button{min-height:44px;min-width:44px;border:2px solid #bacbad;border-radius:12px;padding:8px;margin:4px;background:#fffdf4;color:#174f3d;font-weight:800}.cook-audio-levels input:focus-visible,.cook-audio-levels button:focus-visible{outline:3px solid #d77a15;outline-offset:2px}

.cooking-game .cook-table-item{position:absolute;transform:translate(-50%,-50%)!important;min-width:44px;min-height:44px;padding:0!important;border:3px solid transparent!important;border-radius:16px;background:transparent!important;touch-action:none;cursor:grab;z-index:2}.cooking-game .cook-table-item:active{cursor:grabbing}.cooking-game .cook-table-item.cook-next{border-color:#d82b35!important}.cooking-game .cook-table-item[aria-pressed=true]{box-shadow:0 0 0 4px #ffb22f}.cooking-game .cook-table-item:focus-visible{outline:3px solid #d77a15;outline-offset:3px}

/* Full-width kitchen with a compact bottom action dock. */
.cooking-game{grid-template-rows:auto minmax(0,1fr);gap:4px;padding:4px}.cooking-game .cook-message{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);min-height:0;white-space:nowrap}.cooking-game .cook-progress{gap:4px}.cooking-game .cook-progress li{min-height:25px;padding:2px 7px}.cooking-game .cook-progress li span{display:none}.cooking-game .cook-body{grid-row:2;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:4px}.cooking-game .cook-viewport{width:100%;min-height:0;border-radius:16px;background:transparent}.cooking-game .cook-scene{max-height:none;border-radius:16px}.cooking-game .cook-tools{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;padding:4px;background:transparent;border:0;border-radius:0;max-height:none;overflow:visible}.cooking-game .cook-tools>h2,.cooking-game .cook-tools>p,.cooking-game .cook-tools>a{display:none}.cooking-game .cook-tools .cook-controls{display:flex;flex-wrap:nowrap;gap:6px;margin:0}.cooking-game .cook-controls button{flex:none;min-width:70px;min-height:44px;padding:7px;font-size:12px}.cooking-game .cook-tools .cook-choices{display:flex;gap:6px}.cooking-game .cook-tools .cook-meter{width:90px}.cooking-game .cook-tools .cook-primary{min-height:44px!important}.cooking-game .cook-tools:has(.cook-decoration){display:grid;grid-template-columns:90px 94px minmax(0,1fr) 130px;grid-template-rows:46px 46px;gap:5px}.cooking-game .cook-tools:has(.cook-decoration) .cook-decoration{grid-column:1;grid-row:1/3;width:90px;height:90px;max-height:90px;justify-self:center}.cooking-game .cook-tools:has(.cook-decoration) .cook-swatches{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:44px 44px;gap:4px}.cooking-game .cook-tools:has(.cook-decoration) .cook-swatch{width:44px;height:44px;min-width:44px}.cooking-game .cook-tools:has(.cook-decoration) .cook-choices{grid-column:3;grid-row:1;justify-content:center}.cooking-game .cook-tools:has(.cook-decoration) .cook-primary{grid-column:4;grid-row:1}.cooking-game .cook-tools:has(.cook-decoration) .cook-controls{grid-column:3/5;grid-row:2;justify-content:center;margin:0}.cook-guide-pointer[hidden]{display:none!important}.cook-guide-pointer{position:fixed;width:56px;height:64px;z-index:70;pointer-events:none;filter:drop-shadow(0 3px 4px #0005);transform:translate(-10px,-10px)}.cook-guide-pointer svg{width:100%;height:100%}.cook-guide-pointer .guide-ring{opacity:0}.cook-guide-pointer.is-clicking .guide-ring{opacity:1}
@media(max-width:650px){.cooking-game .cook-tools:has(.cook-decoration){grid-template-columns:100px minmax(0,1fr);grid-template-rows:46px 46px 46px 46px}.cooking-game .cook-tools:has(.cook-decoration) .cook-decoration{grid-column:1;grid-row:1/3}.cooking-game .cook-tools:has(.cook-decoration) .cook-swatches{grid-column:2;grid-row:1;display:flex;gap:4px;justify-content:center}.cooking-game .cook-tools:has(.cook-decoration) .cook-choices{grid-column:2;grid-row:2;gap:3px}.cooking-game .cook-tools:has(.cook-decoration) .cook-primary{grid-column:1/3;grid-row:3}.cooking-game .cook-tools:has(.cook-decoration) .cook-controls{grid-column:1/3;grid-row:4}.cooking-game .cook-tools:has(.cook-decoration) button{padding:5px;font-size:11px}.cooking-game .cook-controls button{min-width:66px}}

.cook-guide-pointer.points-up{transform:translate(-10px,-10px) rotate(180deg);transform-origin:10px 10px}

/* Full-size decoration studio; the selected cookie owns the available stage. */
.cooking-game[data-stage="decorate"] .cook-art{visibility:hidden}
.cooking-game[data-stage="decorate"] .cook-scene{background:#f1dfbc}
.cook-editor{position:absolute;inset:0;container-type:size;background:radial-gradient(ellipse,#fff8e8,#ead4aa)}
.cook-editor .cook-cookie-picker{position:absolute;top:8px;left:0;right:0;display:flex;gap:10px;justify-content:center}
.cook-editor .cook-cookie-picker button{min-width:70px;min-height:48px;font-size:20px}
.cook-editor .cook-decoration{position:absolute;left:50%;top:calc(50% + 28px);transform:translate(-50%,-50%);width:min(85cqw,calc(100cqh - 74px),620px);height:auto;max-height:none;aspect-ratio:1;background:#fff8e8;box-shadow:0 6px 30px #654b2520;border:3px solid #fffdf6;border-radius:50%;touch-action:none}
.cooking-game[data-stage="decorate"] .cook-tools{display:flex;flex-wrap:wrap;gap:8px}
.cooking-game[data-stage="decorate"] .cook-tools .cook-swatches{display:flex;gap:8px}
.cooking-game[data-stage="decorate"] .cook-swatch{width:52px;height:52px;min-width:52px}
.cooking-game .cook-confirm{background:#24834e!important;border-color:#166839!important;font-size:18px}
.cook-cool-zone{position:absolute;inset:25% 15% 3%;touch-action:none;cursor:grab}
@media(max-height:550px){.cooking-game[data-stage="decorate"] .cook-tools{gap:4px}.cooking-game[data-stage="decorate"] .cook-swatch{width:44px;height:44px;min-width:44px}.cook-editor .cook-cookie-picker{top:3px}.cook-editor .cook-cookie-picker button{min-height:44px}.cook-editor .cook-decoration{width:min(85cqw,calc(100cqh - 58px),620px);top:calc(50% + 23px)}}

.cooking-game[data-stage="shape"] .cook-art{visibility:hidden}
.cooking-game[data-stage="shape"] .cook-scene{background:#f1dfbc}
.cook-shape-workspace{position:absolute;inset:0;container-type:size;background:radial-gradient(ellipse,#fff8e8,#ead4aa)}
.cook-shape-board{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(96cqw,135cqh,1050px);aspect-ratio:10/7}
.cook-shape-art{width:100%;height:100%;display:block}
.cooking-game .cook-shape-slot{position:absolute;transform:translate(-50%,-50%)!important;width:19%;height:27%;min-width:44px;min-height:44px;border:3px dashed #fff5db;background:#fff8e51a;border-radius:50%;font-size:20px;text-shadow:0 1px 2px white}
.cooking-game .cook-shape-slot[aria-pressed=true]{border-color:#218354;background:#7fc27b30}
