/* The scene is a progressive enhancement; the original cup stays playable. */
.coffee-machine .coffee-stage{display:grid;grid-template-columns:minmax(0,1fr) 136px;align-items:stretch;max-width:none;min-height:0;margin:0;padding:0;border-bottom:3px solid var(--ink)}
.coffee-view{position:relative;aspect-ratio:3/2;min-width:0;overflow:hidden;contain:layout paint;background:var(--blue);scroll-margin-top:90px}
#coffee-canvas,#coffee-view>svg{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none}
#coffee-view>[hidden]{display:none!important}
.coffee-machine .coffee-readout{align-self:stretch;justify-content:center;gap:14px;margin:0;padding:22px 12px;background:var(--paper);border-left:3px solid var(--ink)}
.coffee-machine .coffee-readout #coffee-fill{font-size:34px;white-space:nowrap}
.coffee-gauge{position:relative;width:36px;height:150px;border:3px solid var(--ink);background:var(--yellow);overflow:visible}
#coffee-gauge-fill{position:absolute;bottom:0;left:0;right:0;height:0;background:var(--coffee)}
#coffee-gauge-target{position:absolute;left:-9px;right:-9px;height:12%;bottom:64%;border-block:3px solid var(--ink);background:rgba(255,255,255,.4)}
.coffee-machine .coffee-renderer-note{margin:0;padding:14px 20px 18px;text-align:center;font-size:10px;font-weight:bold;letter-spacing:.08em;text-transform:uppercase}
.coffee-machine[data-renderer=fallback] .coffee-renderer-note{letter-spacing:0;text-transform:none;font-size:12px}
.coffee-machine .coffee-status{min-height:72px}
@media(max-width:1000px){.coffee-machine .coffee-stage{grid-template-columns:minmax(0,1fr) 104px}.coffee-view{aspect-ratio:5/4}.coffee-gauge{height:130px}.coffee-machine .coffee-readout #coffee-fill{font-size:26px}}
@media(max-width:600px){.coffee-machine .coffee-stage{display:block}.coffee-view{aspect-ratio:6/5}.coffee-machine .coffee-readout{flex-direction:row;flex-wrap:wrap;gap:14px;border-left:0;border-top:3px solid var(--ink);padding:16px 12px}.coffee-gauge{height:60px;width:25px;margin-right:6px}.coffee-machine .coffee-readout #coffee-fill{font-size:32px}.coffee-machine #coffee-aim{padding:0;border:0;font-size:9px}.coffee-machine .coffee-renderer-note{font-size:9px;padding:14px 12px}}
@media(prefers-reduced-motion:reduce){.coffee-view *{animation:none;transition:none}}
