.recipe-counter-art { position:absolute; inset:0; width:100%; height:100%; z-index:3; pointer-events:none; image-rendering:pixelated; }
.scenery .recipe-counter-art--lit { z-index:auto; }
.recipe-counter-input { position:absolute; inset:var(--counter-edge,46%) 0 0; z-index:4; touch-action:none; overscroll-behavior:contain; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; cursor:grab; }
.recipe-counter-input.holding { cursor:grabbing; }
.recipe-counter-input:focus-visible { outline:2px dashed #f5d591; outline-offset:-3px; }
.has-recipe-counter :is(#wok-input,#wok-zone) {display:none}
.has-recipe-counter[data-time="afternoon"] > .recipe-counter-art { filter:brightness(.99) }
.has-recipe-counter[data-time="dusk"] > .recipe-counter-art { filter:brightness(.95) }
.has-recipe-counter[data-time="evening"] > .recipe-counter-art { filter:brightness(.91) }

/* The native page stays still while a shift is open. Short screens can
   scroll the game from the space around the cooking surface and controls. */
@media (pointer:coarse), (max-width:740px), (max-height:550px) and (max-width:1100px) {
  html:has(> body.is-playing) { overflow:hidden; overscroll-behavior:none; }
  body.is-playing { position:fixed; inset:0; overflow:hidden; overscroll-behavior:none; }
  body.is-playing > .shell {
    height:100%; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
  }
}

/* The strip sits outside the gesture surface so a finger never covers the result. */
.motion-meter {display:none}
.is-playing .motion-meter:not([hidden]) {
  display:grid; grid-template-columns:auto minmax(42px,1fr) 4ch; align-items:center;
  gap:clamp(6px,2vw,14px); min-height:29px; padding:4px 10px;
  border-bottom:1px solid #647458; background:#1d342d; color:#fff0c9;
  font:700 clamp(12px,1.5vw,14px)/1.2 var(--mono); pointer-events:none;
}
.motion-track {height:10px;border:1px solid #9fa987;background:#101f1c;overflow:hidden;}
.motion-fill {display:block;height:100%;background:#83d098;transform:scaleX(0);transform-origin:left;}
.motion-value {text-align:right;font-variant-numeric:tabular-nums;}
.motion-done .motion-fill {background:#ffcf7b;}
