/* Functional additions to Lena's counter. Inks and art remain in counter/. */
[hidden] { display: none !important; }
.page-head { gap: 12px; }
.wordmark { font-size: 23px; flex-shrink: 0; }
.night-picker button { padding: 0 9px; }
.rush-controls { display: flex; gap: 6px; }
.rush-controls button { padding: 4px 9px; font-size: 12px; font-weight: 750; }
button:disabled { cursor: default; opacity: .55; }
.screen-wrap { min-width: 560px; }
.screen { overflow: auto; }
.hud { padding: 0 2%; gap: 8px; }
.rush-label { font-size: max(11px, 1.65cqw); }
.showtime { flex-shrink: 0; }
.showtime span, .tips { font-size: max(10px, 1cqw); letter-spacing: 0; }
.showtime strong { font-size: max(24px, 3cqw); font-variant-numeric: tabular-nums; }
.tips { max-width: 29%; text-align: right; }
.queue > button { background: var(--clear); color: var(--ink); border: 0; padding: 0; min-width: 48px; min-height: 48px; text-align: center; }
.queue > button:disabled { opacity: 1; }
.queue > button:focus-visible { outline-offset: 0; }
.queue .character { left: 0; }
.guest-number { position: absolute; bottom: 0; left: 50%; translate: -50% 0; z-index: 2; background: var(--surface); color: var(--ink); padding: 2px 5px; border: 1px solid var(--line); font-size: max(10px, 1cqw); white-space: nowrap; }
.order-items > .order-part { width: 100%; height: 100%; position: relative; display: block; }
.order-items.combo > .order-part { width: 50%; }
.order-part > svg { width: 100%; height: 100%; }
.fulfilled > svg { opacity: .4; }
.portion-check { position: absolute; bottom: 0; left: 0; background: var(--ink); color: var(--surface); font-size: max(16px, 2cqw); font-weight: 900; line-height: 1; padding: 2px; border-radius: 50%; }
.tray { grid-template-columns: 1fr 1fr; gap: 5px; padding: 2px; clip-path: none; overflow: visible; }
.prep-item { background: var(--surface); color: var(--ink); padding: 2px; position: relative; min-width: 48px; min-height: 48px; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed var(--muted); }
.prep-item[aria-pressed="true"] { border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--accent-tap); }
.prep-item svg { height: 62%; width: 80%; }
.prep-item .prep-label { display: block; font-size: max(10px, .95cqw); line-height: 1.1; font-weight: 800; }
.prep-item progress { width: 90%; height: 7px; accent-color: var(--patience-ok); }
.station.prep-station h2 { font-size: max(10px, 1.6cqw); }
.tray-caption { font-size: max(8px, .68cqw); }
.ingredients > div > span { font-size: max(10px, 1cqw); }
.play-instruction { font-size: max(8px, .88cqw); letter-spacing: 0; }
.screen-caption { min-height: 31px; padding-top: 7px; font-size: 12px; line-height: 1.3; letter-spacing: 0; }
.rush-guide { max-width: 900px; margin: 0 auto; padding: 20px max(24px, var(--safe-right)) max(24px, var(--safe-bottom)) max(24px, var(--safe-left)); font-size: 15px; line-height: 1.6; }
.rush-guide h1 { font: 34px/1.1 var(--display); margin: 0 0 12px; }
.rush-guide ol { padding-left: 22px; }
.rush-guide li { margin-bottom: 8px; }
.results { border-top: 2px solid var(--ink); }
.results button { padding: 8px 24px; }
.rotate-hint { padding: max(24px, var(--safe-top)) max(24px, var(--safe-right)) max(24px, var(--safe-bottom)) max(24px, var(--safe-left)); }
.rotate-hint:not([hidden]) { display: flex; }
@media (max-width: 760px) {
  .wordmark { display: none; }
  .page-head { padding-left: max(12px, var(--safe-left)); padding-right: max(12px, var(--safe-right)); }
}
@media (max-height: 480px) and (orientation: landscape) {
  .screen { min-height: 0; }
  .screen-wrap { width: min(1080px, calc(100vw - max(20px, var(--safe-left)) - max(20px, var(--safe-right))), calc((100svh - 100px - var(--safe-top) - var(--safe-bottom)) * 16 / 9)); }
  .play-band { max-height: max(272px, calc(100svh - 100px - var(--safe-top) - var(--safe-bottom))); }
  .wordmark { display: none; }
  .page-head { justify-content: space-between; }
}
@media (orientation: portrait) {
  .page-head { flex-wrap: wrap; height: auto; }
  .rush-controls { width: 100%; flex-wrap: wrap; }
  .rush-controls button { flex: 1; }
  .screen { justify-content: start; }
  .screen-wrap { width: 560px; }
  .night-picker { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  button:active { translate: none; }
}
