/* Keep the lesson at the edge. Only buttons capture input; text leaves looking/placing available. */
#burger-guide{position:fixed;left:calc(18px + var(--safe-left));top:calc(92px + var(--safe-top));width:234px;max-width:calc(100vw - var(--safe-left) - var(--safe-right) - 24px);padding:6px 10px 9px;background:#f8f1dfe8;color:#294e43;border:0;border-left:2px solid #839b70;border-radius:0 5px 5px 0;box-shadow:0 2px 9px #233c2912;pointer-events:none;animation:guide-in .22s ease-out;z-index:12;transition:opacity .18s,visibility .18s}
.guide-heading{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap}.guide-heading small{font-size:10px;letter-spacing:.04em}.guide-heading span{margin-left:auto;font-variant-numeric:tabular-nums;color:#67725f}
#burger-guide button{pointer-events:auto;cursor:pointer;font:inherit;font-size:11px;min-height:32px;border:0;border-radius:4px;transition:transform .15s,background .15s}
#burger-guide .guide-toggle{height:32px;padding:0 7px;background:transparent;color:#315747}
#burger-guide .guide-look{display:flex;align-items:center;justify-content:center;gap:3px;flex:0 0 66px;min-width:66px;height:34px;padding:0 4px;background:#315747;color:#fff8e6}
#burger-guide .guide-look b{font-size:10px;font-weight:600}
#burger-guide .guide-look svg{width:16px;height:16px}
#burger-guide>strong{display:block;font-size:14px;line-height:1.4;margin:1px 0 0;font-weight:600}
#burger-guide .guide-cue{display:block;margin-top:3px;font-size:11px;line-height:1.45;color:#526a58}
.guide-details{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .18s ease,opacity .15s,visibility .18s}
.guide-details-inner{overflow:hidden;min-height:0}
#burger-guide.expanded .guide-details{grid-template-rows:1fr;opacity:1;visibility:visible}
.guide-track{display:flex;gap:4px;margin:9px 0 7px}.guide-track i{height:2px;flex:1;background:#ded8c7;border-radius:2px;transition:background .2s}.guide-track i.done{background:#51715c}
#burger-guide p{font-size:12px;line-height:1.55;margin:0 0 5px;color:#596452}
#burger-guide [data-skip]{padding:0 6px;background:transparent;color:#6f7562}
#burger-guide button:hover{background:#e1e7d3}#burger-guide .guide-look:hover{background:#416b55}#burger-guide button:active{transform:scale(.96)}#burger-guide button:disabled{opacity:.55}#burger-guide button:focus-visible{outline:2px solid #51715c;outline-offset:2px}
body.touch-controls #burger-guide{left:var(--left);top:calc(var(--top) + 68px);width:218px}
body.order-expanded :is(#burger-guide,#guide-target){visibility:hidden;opacity:0}
#guide-target{position:fixed;left:0;top:0;z-index:10;pointer-events:none}#guide-target:after{content:'';display:block;width:34px;height:34px;margin:-17px;border:2px solid #fff5c5;border-radius:50%;box-shadow:0 0 0 4px #36554180;animation:guide-breathe 1.6s ease-in-out infinite}
.kitchen-guide-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.kitchen-guide-actions button{padding:9px 13px;border:1px solid #bfc8b4;border-radius:5px;background:#eef1df;color:#315747;cursor:pointer;transition:transform .15s}.kitchen-guide-actions button:active{transform:scale(.97)}
#recipe-discovered{position:fixed;bottom:84px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:460px;width:max-content;padding:13px 18px;color:#f7efd7;background:#294e43;border:1px solid #adbe95;border-radius:7px;box-shadow:0 5px 20px #192a2926;z-index:15;cursor:pointer;animation:guide-in .25s ease-out}#recipe-discovered svg{width:25px;height:25px;flex-shrink:0}#recipe-discovered span{display:grid;gap:4px;text-align:left}#recipe-discovered b{font-size:15px}#recipe-discovered small{font-size:11px;line-height:1.6}#recipe-discovered:active{transform:translateX(-50%) scale(.98)}
.experiment-recipes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.experiment-recipes article{padding:14px;background:#f9f1db;border:1px solid #d7c8a7;border-radius:5px;animation:guide-in .2s ease-out}.experiment-recipes h4{margin:6px 0;color:#305342}.experiment-recipes small,.experiment-recipes span{font-size:11px;color:#80745d;line-height:1.6}.experiment-recipes p{font-size:12px}.recipe-swatches{display:flex;gap:2px;height:12px;margin:10px 0}.recipe-swatches i{flex:1;max-width:20px;background:#bd925b;border-radius:2px}.recipe-swatches [data-food=cheese]{background:#e5b947}.recipe-swatches [data-food=tomato]{background:#be6044}.recipe-swatches [data-food=onion]{background:#cbb6c5}.recipe-swatches [data-food=cookedPatty]{background:#835f3e}.recipe-swatches [data-food=lettuce],.recipe-swatches [data-food=cucumber]{background:#8f9c58}.recipe-swatches [data-food=iceCream]{background:#f0d9ba}
#burger-guide[hidden],#guide-target[hidden],#recipe-discovered[hidden]{display:none}.paused #recipe-discovered,.shopping #recipe-discovered,.inspecting #recipe-discovered{display:none}
@keyframes guide-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes guide-breathe{50%{scale:1.12;opacity:.7}}
@media(max-height:500px){#burger-guide{left:calc(10px + var(--safe-left));top:calc(76px + var(--safe-top));width:218px;padding:4px 8px 7px}#burger-guide>strong{font-size:13px}#burger-guide p{font-size:11px;line-height:1.5}#recipe-discovered{bottom:18px;max-width:340px}}
@media(prefers-reduced-motion:reduce){#burger-guide,#recipe-discovered,.experiment-recipes article,#guide-target:after{animation:none}#burger-guide,.guide-details,.guide-track i,#burger-guide button,.kitchen-guide-actions button{transition:none}}

/* Context actions use the existing controls; no floating inventory grid. */
body.touch-controls #holding.with-item{display:flex;flex-wrap:wrap;justify-content:center}
body.touch-controls #holding #return-tip{display:inline-flex;min-height:34px;padding:5px 9px;color:#264b3a;background:#faf4e4;text-shadow:none;pointer-events:auto}
#return-tip.hidden,#release-food.hidden{display:none}

body.touch-controls #touch-actions{width:168px;height:96px}
body.touch-controls #touch-actions #touch-alt{left:0;top:auto;bottom:4px;width:62px;height:64px}

/* One stable thumb target with a readable action, rather than several unlabeled glyphs. */
body.touch-controls #touch-actions{width:184px;height:102px}
body.touch-controls #touch-actions #touch-action{width:112px;height:98px;gap:2px;padding:7px 6px 9px;transition:background .16s,border-color .16s,opacity .16s,transform .12s}
body.touch-controls #touch-action .primary-glyph svg{width:28px;height:28px}
body.touch-controls #touch-action .context-glyph{display:none}
body.touch-controls #touch-action .action-label{display:block;font-size:13px;font-weight:650;line-height:1.25;max-width:100%;overflow-wrap:anywhere}
body.touch-controls #touch-action #touch-cook-status{display:block;max-width:100%;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}
body.touch-controls #touch-action #touch-cook-status:empty{display:none}
body.touch-controls #touch-action #touch-action-quantity{top:5px;right:5px;bottom:auto;font-size:10px}
body.touch-controls #touch-action:disabled{opacity:.55;cursor:default}
body.touch-controls #touch-action[data-food=ready].has-cook-progress #touch-cook-status{font-weight:750;color:#fff1bb}
body.touch-controls #touch-action[data-food=burnt].has-cook-progress #touch-cook-status{font-weight:750;color:#ffd2ac}
body.touch-controls #open-button:is(.needs-open,.next-shift) .open-label{display:block;font-size:13px;font-weight:650}
body.touch-controls #open-button:is(.needs-open,.next-shift) .shift-count{display:none}
#reticle:after{content:'';position:absolute;inset:-5px;border:1px solid #fff6d5;border-radius:50%;opacity:0;transform:scale(.7);transition:opacity .12s,transform .12s;pointer-events:none}
#reticle.has-target:after{opacity:.8;transform:scale(1)}
@media(max-height:350px){
 body.touch-controls #touch-actions{width:174px;height:88px}
 body.touch-controls #touch-actions #touch-action{width:104px;height:86px;padding:5px 4px 9px;gap:1px}
 body.touch-controls #touch-action .primary-glyph svg{width:23px;height:23px}
 body.touch-controls #touch-action .action-label{font-size:12px}
 body.touch-controls #touch-action #touch-cook-status{font-size:10px}
}
@media(prefers-reduced-motion:reduce){#reticle:after,body.touch-controls #touch-actions #touch-action{transition:none}}
