/* Catfe Rio. Mobile first (390x844, down to 360 wide). One palette (art.js PAL): terracotta, teal, sunny
   yellow, chili red and lime on cream, with a warm brown ink. Light from the top left. The stations are DOM
   and SVG; animation is CSS (transforms and opacity only) and calms down under prefers-reduced-motion. */
:root {
  --font: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --ink: #4a2a1e; --ink-soft: #7a4a32;
  --terra: #e0663d; --terra-d: #b84a2a; --terra-l: #f39a6b;
  --teal: #2bb3a3; --teal-d: #1d8578; --teal-l: #7fd8cc;
  --sun: #ffc93c; --sun-d: #f09a1a; --sun-l: #ffe28a;
  --cream: #fff4e2; --cream-d: #f3dfc0;
  --chili: #e23d3d; --lime: #8cc63f; --lime-d: #5f9a2a; --pink: #ff8fab;
  --steel: #d5dce3; --steel-d: #9aa6b2;
  --good: #3fae5a; --gold: #f5b81c; --bad: #d8452f;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { touch-action: manipulation; box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--terra); color: var(--ink); font-family: var(--font); overflow: hidden; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
img { -webkit-user-drag: none; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- the title screen's colors and art ---------- */
#mm, .sg-sheet {
  --sg-bg: radial-gradient(130% 70% at 50% 0%, #ffe3a8 0%, #ffbf7a 30%, #f08a55 62%, #c9532f 100%);
  --sg-ink: #4a2a1e; --sg-ink-soft: #7a4a32;
  --sg-title: #fff8e8; --sg-title-shadow: 0 3px 0 #c9532f, 0 6px 0 #7a2e18, 0 10px 18px rgba(80, 30, 10, 0.35);
  --sg-accent: #2bb3a3; --sg-accent-ink: #fff;
  --sg-card: rgba(255, 248, 236, 0.95); --sg-card-ink: #4a2a1e; --sg-line: rgba(224, 102, 61, 0.45);
  --sg-sheet-bg: #fff8ec; --sg-sheet-ink: #4a2a1e;
  --sg-font: var(--font);
}
#mm .sg-play { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -5px 0 rgba(10, 60, 50, 0.35), 0 5px 0 #146b60; }
.title-art { position: relative; width: min(340px, 100%); height: 176px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  background: linear-gradient(#fff3dc, #ffe2b6 70%); box-shadow: 0 8px 22px rgba(90, 30, 10, 0.3), inset 0 0 0 3px rgba(255, 255, 255, 0.5); }
.ta-papel { position: absolute; left: -6px; right: -6px; top: -4px; }
.ta-crew { position: absolute; left: 0; right: 0; bottom: 34px; height: 130px; }
.ta-cat { position: absolute; bottom: 0; width: 112px; }
.ta-cat.c1 { left: 6px; width: 100px; }
.ta-cat.c2 { left: 50%; transform: translateX(-50%); width: 120px; bottom: -2px; }
.ta-cat.c3 { right: 4px; width: 112px; }
.ta-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(#e2a874 0 8px, var(--terra) 8px); box-shadow: inset 0 3px 0 #c98d5a; }
.ta-counter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(90deg, var(--teal) 0 18px, var(--sun) 18px 36px); opacity: 0.85; }
.ta-food { position: absolute; bottom: 22px; width: 50px; animation: bob 2.4s ease-in-out infinite; }
.ta-food.f1 { left: 26%; } .ta-food.f2 { left: 46%; animation-delay: -0.8s; } .ta-food.f3 { left: 64%; animation-delay: -1.6s; }
.ta-sign { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 2; font: 800 13px/1 var(--font); color: #fff; letter-spacing: 1px; text-shadow: 0 2px 0 var(--terra-d); }

/* ---------- the play screen ---------- */
.play { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--cream); overflow: hidden; }
.play[hidden] { display: none; }
.hud { flex: none; display: flex; align-items: center; gap: 8px; padding: var(--sg-corner-top) 8px 6px var(--sg-corner-left); background: linear-gradient(var(--terra), var(--terra-d)); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); z-index: 5; }
.hud-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.hud-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; }
.hud-btn:active { transform: translateY(1px); }
.hud-day { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.05; }
.hud-day b { font: 800 19px/1.05 var(--font); white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.hud-day small { font: 700 13px/1.15 var(--font); opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-day small.two { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; } /* Rush Hour: the twists get a line of their own */
.hud-stats { flex: none; display: flex; align-items: center; gap: 6px; }
.hud-coins, .hud-score { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font: 800 16px/1.1 var(--font); }
.hud-coins { align-items: center; }
.hud-score small { font-size: 12px; opacity: 0.85; }
.coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c0, var(--sun) 45%, var(--sun-d)); box-shadow: inset 0 -2px 0 rgba(150, 80, 0, 0.35); vertical-align: middle; }
.hud-strikes { display: inline-flex; gap: 3px; }
.hud-strikes i { width: 14px; height: 14px; background: var(--pink); clip-path: path("M7 13 C3 10 0 7.5 0 4.5 A3.5 3.5 0 0 1 7 3 A3.5 3.5 0 0 1 14 4.5 C14 7.5 11 10 7 13Z"); }
.hud-strikes i.gone { background: rgba(0, 0, 0, 0.3); }

/* the ticket rail */
.rail { flex: none; height: 70px; display: flex; gap: 6px; align-items: center; padding: 6px 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: repeating-linear-gradient(90deg, #8a5a3b 0 2px, #a06c48 2px 40px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15); z-index: 4; }
.rail::-webkit-scrollbar { display: none; }
.rail-empty { margin: 0 auto; color: #fff6e6; font: 700 14px/1.2 var(--font); opacity: 0.85; }
.tk { position: relative; flex: none; width: 70px; height: 58px; border: 0; padding: 0; border-radius: 4px 4px 10px 10px; background: #fffdf6; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); transform-origin: 50% 0; }
.tk::before { content: ""; position: absolute; left: 50%; top: -7px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--steel-d); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
.tk.new { animation: tkdrop 0.45s cubic-bezier(.2, 1.6, .5, 1); }
.tk.on { background: #fff6c8; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 3px var(--teal); transform: translateY(2px); }
.tk.ready { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 3px var(--gold); animation: glow 1.1s ease-in-out infinite; }
.tk.jay .tk-face { box-shadow: 0 0 0 2px var(--pink); }
.tk-face { position: absolute; left: 4px; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: #ffe9cf; }
.tk-item { position: absolute; right: 2px; top: 2px; width: 34px; height: 34px; }
.tk-drink { position: absolute; right: -4px; bottom: 6px; width: 16px; }
.tk-pips { position: absolute; left: 6px; bottom: 9px; display: flex; gap: 3px; }
.tk-pips i { width: 9px; height: 9px; border-radius: 50%; background: #e3d6c2; }
.tk-pips i.half { background: var(--sun); }
.tk-pips i.done { background: var(--good); }
.tk-wait { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 4px; border-radius: 2px; background: #eadfcf; overflow: hidden; }
.tk-wait i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--good); border-radius: 2px; }
.tk.late .tk-wait i { background: var(--bad); }

/* the stations slide side by side */
.stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.track { position: absolute; inset: 0; width: 400%; display: flex; transition: transform 0.34s cubic-bezier(.3, .8, .3, 1); will-change: transform; }
.track.instant { transition: none; }
.station { position: relative; width: 25%; height: 100%; overflow: hidden; }

/* ---------- ORDER ---------- */
.st-order { background: linear-gradient(#ffe9c8 0 58%, #f7d9ae 58%); --fiesta: var(--sun); }
.wall { position: absolute; left: 0; right: 0; top: 0; height: 64%; background:
  radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5), transparent 40%),
  repeating-linear-gradient(0deg, transparent 0 46px, rgba(224, 102, 61, 0.12) 46px 48px),
  linear-gradient(#ffeccd, #ffdcae); }
.wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(90deg, var(--teal) 0 22px, var(--fiesta) 22px 44px, var(--terra) 44px 66px); opacity: 0.9; }
.papel { position: absolute; left: -4px; right: -4px; top: -2px; }
.papel .flag { transform-origin: 50% 0; animation: flutter 3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.33s); transform-box: fill-box; }
.menuboard { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: min(62%, 240px); padding: 4px 8px 6px; border-radius: 10px; background: #3b3a36; border: 4px solid #a06c48; color: #fff; text-align: center; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15); }
.menuboard b { font: 800 14px/1 var(--font); letter-spacing: 2px; color: var(--sun-l); }
.mb-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 2px; }
.mb-items span { width: 30px; height: 30px; }
#decor { position: absolute; left: 4px; right: 4px; top: 128px; display: flex; justify-content: space-between; pointer-events: none; }
.deco { width: 52px; height: 52px; }
.deco-lights { position: absolute; left: 10%; right: 10%; top: -84px; width: auto; height: 30px; }
.deco-lights svg { width: 100%; height: 100%; }
.door { position: absolute; left: 0; top: 30%; width: 64px; height: 38%; border-radius: 30px 30px 0 0; background: linear-gradient(90deg, #8a5a3b, #a87a52); box-shadow: inset 0 0 0 5px #6a4029; }
.door i { position: absolute; inset: 14px 12px 10px; border-radius: 22px 22px 0 0; background: linear-gradient(#bfeaf2, #8fd3e0); box-shadow: inset 0 0 0 3px #6a4029; }
.queue { position: absolute; left: 4px; bottom: calc(36% + 4px); display: flex; flex-direction: column-reverse; gap: 0; z-index: 2; }
.q-cust { width: 46px; height: 46px; margin-top: -14px; animation: queuebob 2.6s ease-in-out infinite; }
.q-cust:nth-child(2) { animation-delay: -0.9s; } .q-cust:nth-child(3) { animation-delay: -1.7s; }
.q-face { width: 100%; height: 100%; border-radius: 50%; background: #fff4e2; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.q-more { font: 800 13px/1 var(--font); color: var(--ink); text-align: center; }
.spot, .pickup { position: absolute; left: 22%; bottom: calc(36% - 6px); width: min(46%, 190px); height: 52%; z-index: 2; transition: transform 0.35s ease, opacity 0.35s; }
.spot.aside { transform: translateX(-34%) scale(0.86); opacity: 0.55; }
.pickup { z-index: 3; pointer-events: none; }
.cust { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.cust-hop { width: 100%; transform-origin: 50% 100%; animation: idle 2.8s ease-in-out infinite; }
.cust img { width: 100%; display: block; }
.cust-name { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: -6px; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); font: 800 13px/1.3 var(--font); white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1); }
.cust.walk-in { animation: walkin 0.9s cubic-bezier(.3, .7, .4, 1) both; }
.cust.walk-in .cust-hop { animation: hop 0.3s ease-in-out 3; }
.cust.serve-in { animation: servein 0.6s cubic-bezier(.3, .7, .4, 1) both; }
.cust.serve-in .cust-hop { animation: hop 0.3s ease-in-out 2; }
.cust.leave-right { animation: leaveright 0.55s ease-in both; }
.cust.leave-left { animation: leaveleft 0.55s ease-in both; }
.cust.talk .cust-hop { animation: talk 0.35s ease-in-out 4; }
.cust.dance .cust-hop { animation: dance 0.5s ease-in-out 4; }
.cust.grump .cust-hop { animation: grump 0.12s linear 6; filter: saturate(0.7) brightness(0.92); }
.grump-cloud { position: absolute; left: 62%; top: -6%; width: 54px; height: 34px; border-radius: 50%; background: #6b6470; box-shadow: -16px 6px 0 -4px #6b6470, 14px 8px 0 -6px #6b6470; animation: cloud 1.6s ease-out both; }
.grump-cloud::after { content: ""; position: absolute; left: 18px; top: 26px; width: 4px; height: 14px; background: var(--sun); transform: skewX(-20deg); box-shadow: 10px 2px 0 var(--sun); }
.staff-slot { position: absolute; z-index: 1; }
.staff-slot.honey { right: 0; bottom: calc(36% - 18px); width: min(34%, 140px); }
.counter { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 4; }
.counter-top { height: 16px; background: linear-gradient(#f0bc86, #d99a62); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); border-radius: 4px 4px 0 0; }
.counter-front { position: absolute; left: 0; right: 0; top: 16px; bottom: 0; background:
  repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.06) 46px 48px),
  linear-gradient(var(--terra), var(--terra-d)); }
.counter-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background:
  conic-gradient(from 45deg at 50% 50%, var(--teal) 0 25%, #fff4e2 0 50%, var(--teal) 0 75%, #fff4e2 0) 0 0 / 26px 26px; opacity: 0.9; }
.sign { position: absolute; left: 50%; top: 10%; transform: translateX(-50%) rotate(-2deg); padding: 2px 14px 4px; border-radius: 12px; background: var(--sun); color: var(--terra-d); font: 800 18px/1.1 var(--font); letter-spacing: 1px; box-shadow: 0 3px 0 var(--sun-d); white-space: nowrap; }
.bubble { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 6; padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1), 0 10px 24px rgba(90, 30, 10, 0.2); }
.bubble::after { content: ""; position: absolute; left: 30%; bottom: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.pop-in { animation: popin 0.35s cubic-bezier(.2, 1.6, .5, 1); }
.bubble .hello { margin: 0 0 6px; font: 800 17px/1.2 var(--font); }
.b-order { display: flex; gap: 8px; align-items: center; }
.b-ico { flex: none; width: 48px; height: 48px; }
.b-order b { display: block; font: 800 15px/1.15 var(--font); text-transform: capitalize; }
.b-order small { display: block; font: 600 13px/1.2 var(--font); color: var(--ink-soft); }
.b-order em { display: inline-block; margin-top: 3px; padding: 0 8px; border-radius: 999px; background: #ffe0ea; color: #b8305a; font: 800 12px/1.5 var(--font); font-style: normal; }
.big-btn { display: block; min-height: 54px; padding: 8px 22px; border: 0; border-radius: 18px; background: linear-gradient(var(--teal), var(--teal-d)); color: #fff; font: 800 20px/1.1 var(--font); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 5px 0 #146b60, 0 8px 16px rgba(20, 60, 50, 0.25); }
.big-btn:active, .big-btn.down { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 2px 0 #146b60; }
.big-btn:disabled { filter: grayscale(0.7); opacity: 0.6; }
.big-btn.take { position: absolute; left: 50%; bottom: max(14px, 9%); transform: translateX(-50%); z-index: 6; animation: nudge 1.6s ease-in-out infinite; white-space: nowrap; }
.big-btn.take:active { transform: translateX(-50%) translateY(3px); }
.big-btn.serve { background: linear-gradient(var(--sun), var(--sun-d)); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 5px 0 #b86a0a, 0 8px 16px rgba(120, 60, 0, 0.25); animation: nudge 1.4s ease-in-out infinite; }
.served-food { position: absolute; left: 36%; bottom: -18px; width: 66px; z-index: 5; animation: slidefood 0.5s cubic-bezier(.3, 1.4, .5, 1) both; }
.scorecard { position: absolute; right: 8px; top: 8px; z-index: 7; width: min(60%, 230px); padding: 8px 10px 8px; border-radius: 16px; background: rgba(255, 253, 246, 0.97); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1), 0 10px 22px rgba(90, 30, 10, 0.25); }
.scorecard.show { animation: popin 0.4s cubic-bezier(.2, 1.5, .5, 1) 0.4s both; }
.sc-say { margin: 0 0 4px; font: 700 14px/1.2 var(--font); }
.sc-total { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sc-total b { font: 800 30px/1 var(--font); }
.sc-total small { font: 800 13px/1.3 var(--font); color: var(--good); }
.sc-total small.jay { color: #c43a6a; }
.sc-total.love b { color: var(--good); } .sc-total.happy b { color: var(--teal-d); } .sc-total.meh b { color: var(--sun-d); } .sc-total.grumpy b { color: var(--bad); }
.sc-row { display: grid; grid-template-columns: 44px 1fr 26px; align-items: center; gap: 6px; font: 700 12px/1.5 var(--font); }
.sc-row i { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--c, var(--good)) var(--v), #eadfcf var(--v)); }
.sc-row i.hi { --c: var(--good); } .sc-row i.mid { --c: var(--sun-d); } .sc-row i.lo { --c: var(--bad); }
.sc-row em { font-style: normal; text-align: right; }
.sc-pay { margin: 4px 0 0; font: 800 13px/1.2 var(--font); color: var(--ink-soft); }

/* a station that is off screen stops its looping animations */
.station.off *, .station.off *::before, .station.off *::after { animation-play-state: paused !important; }

/* ---------- the staff cats ---------- */
.staff { width: 100%; height: auto; overflow: visible; }
.staff .staff-head { transform-box: fill-box; transform-origin: 50% 90%; animation: headbob 3.2s ease-in-out infinite; }
.staff-mac .staff-head { animation-duration: 3.8s; } .staff-honey .staff-head { animation-delay: -1.2s; }
.staff .lids ellipse { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: blink 4.6s infinite; }
.staff-honey .lids ellipse { animation-delay: -2.1s; } .staff-mac .lids ellipse { animation-delay: -3.3s; animation-duration: 5.4s; }
.staff .paw-in { transform-box: fill-box; transform-origin: 50% 80%; transition: transform 0.15s; }
.staff .staff-body { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
.staff.flip .paw-r .paw-in { animation: flip 0.42s ease-out; }
.staff.press .paw-in { animation: pressdown 0.5s ease-in-out; }
.staff.scoop .paw-r .paw-in { animation: scoop 0.38s ease-out; }
.staff.scoop .paw-l .paw-in { animation: scoop 0.38s ease-out 0.06s; }
.staff.write .paw-r .paw-in { animation: write 0.22s ease-in-out 4; }
.staff.pour .paw-r .paw-in { animation: pour 0.6s ease-in-out infinite; }
.staff.cheer .paw-in { animation: cheer 0.6s ease-out; }

/* ---------- GRILL ---------- */
.st-grill { display: flex; flex-direction: column; background: linear-gradient(#cfd8de 0 32%, #e9eef1 32%); }
.st-grill::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32%; background:
  linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px) 0 0 / 34px 34px,
  linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px) 0 0 / 34px 34px; }
.hood { position: absolute; left: 6%; right: 6%; top: -6px; height: 30px; border-radius: 0 0 18px 18px; background: linear-gradient(#b7c1cb, #8f9aa5); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12); }
.staff-slot.kento { position: relative; flex: none; align-self: center; width: min(40%, 150px); height: clamp(64px, 15vh, 120px); margin-top: 6px; z-index: 1; }
.staff-slot.kento .staff { position: absolute; left: 0; bottom: -70%; }
.grill { position: relative; z-index: 2; flex: none; margin: 0 8px; padding: 10px 8px 8px; border-radius: 16px; display: grid; grid-template-columns: repeat(var(--slots, 2), 1fr); gap: 8px;
  background: linear-gradient(#4a4a50, #2e2e33); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.12), 0 6px 0 #1e1e22, 0 10px 16px rgba(0, 0, 0, 0.2); }
.slot { position: relative; min-height: 112px; border: 0; border-radius: 12px; padding: 4px 4px 22px; background: repeating-linear-gradient(90deg, #3c3c42 0 10px, #333338 10px 14px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot.empty::after { content: "Empty"; color: rgba(255, 255, 255, 0.35); font: 700 13px/1 var(--font); }
.slot .gauge { display: none; }
.slot.full .gauge { display: block; }
.slot-meat { width: 100%; max-width: 110px; animation: sizzlemeat 0.5s ease-in-out infinite alternate; }
.slot-num { position: absolute; top: 4px; right: 6px; font: 800 14px/1 var(--font); color: #fff; text-shadow: 0 1px 0 #000; }
.slot[data-zone="top"], .slot[data-zone="perfect"] { box-shadow: inset 0 0 0 3px var(--good), 0 0 14px rgba(80, 220, 120, 0.55); }
.slot[data-zone="perfect"] { box-shadow: inset 0 0 0 3px var(--gold), 0 0 16px rgba(255, 200, 40, 0.7); }
.slot[data-zone="perfect"] .slot-num { color: var(--sun-l); }
.slot[data-zone="burnt"] .slot-meat { animation: none; }
.slot[data-zone="burnt"] { box-shadow: inset 0 0 0 3px var(--bad); }
.gauge { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 12px; border-radius: 6px; overflow: visible; background: #222; }
.gauge .z { position: absolute; top: 0; bottom: 0; }
.gauge .z.g-raw { background: #d98c8c; border-radius: 6px 0 0 6px; }
.gauge .z.g-ok { background: #f2a23c; }
.gauge .z.g-top { background: #4cc46a; }
.gauge .z.g-perf { background: #ffd23f; top: 2px; bottom: 2px; border-radius: 3px; }
.gauge .z.g-burnt { background: #3a2a26; border-radius: 0 6px 6px 0; }
.needle { position: absolute; left: 0; top: -5px; will-change: transform; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px #1e1e22; }
.steam { position: absolute; left: 0; right: 0; top: -10px; height: 40px; pointer-events: none; }
.steam i { position: absolute; bottom: 0; width: 10px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); filter: blur(2px); opacity: 0; animation: steam 1.8s ease-out infinite; }
.steam i:nth-child(1) { left: 30%; } .steam i:nth-child(2) { left: 50%; animation-delay: -0.6s; } .steam i:nth-child(3) { left: 68%; animation-delay: -1.2s; }
.slot.empty .steam, .slot.empty .sizzle { display: none; }
.slot[data-zone="raw"] .steam i { animation-duration: 2.6s; }
.sizzle { position: absolute; inset: 20px 8px 26px; pointer-events: none; }
.sizzle i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff6c0; opacity: 0; animation: spit 0.9s ease-out infinite; }
.sizzle i:nth-child(1) { left: 10%; top: 40%; } .sizzle i:nth-child(2) { left: 80%; top: 30%; animation-delay: -0.3s; } .sizzle i:nth-child(3) { left: 40%; top: 70%; animation-delay: -0.55s; } .sizzle i:nth-child(4) { left: 65%; top: 60%; animation-delay: -0.75s; }
.needs { flex: none; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 8px 10px 2px; font: 700 13px/1.3 var(--font); }
.needs-k { color: var(--ink-soft); }
.need { padding: 1px 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--terra-l); font-weight: 800; }
.need em { font-style: normal; color: #c43a6a; }
.pan { flex: none; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 4px 8px 0; padding: 6px 8px; border-radius: 12px; background: linear-gradient(#c9d1d9, #aab5c0); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); font: 700 13px/1.2 var(--font); min-height: 36px; }
.pan-k { color: #4a5560; }
.pan-none { color: #6a7580; font-weight: 600; }
.pan-m { display: inline-flex; gap: 3px; align-items: center; }
.pan-m b { margin-right: 2px; }
.pan-m i { min-width: 28px; padding: 1px 4px; border-radius: 8px; text-align: center; font-style: normal; font-weight: 800; background: #fff; }
.pz-perfect { background: #ffe58a !important; box-shadow: inset 0 0 0 2px var(--gold); }
.pz-top { background: #d6f5dc !important; }
.pz-under, .pz-over { background: #ffe0c0 !important; }
.raws { flex: 1 1 auto; min-height: 0; display: flex; gap: 6px; align-items: flex-end; justify-content: center; padding: 8px 8px 10px; }
.raw { flex: 1 1 0; max-width: 92px; min-height: 64px; border: 0; padding: 4px 2px 2px; border-radius: 14px; background: #fff; box-shadow: 0 4px 0 #d8c4a8; display: flex; flex-direction: column; align-items: center; }
.raw:active { transform: translateY(3px); box-shadow: 0 1px 0 #d8c4a8; }
.raw-pic { width: 100%; max-width: 70px; }
.raw-name { font: 800 12px/1.1 var(--font); }

/* ---------- BUILD ---------- */
.st-build { display: flex; flex-direction: column; background: linear-gradient(#ffe9c8, #f6d7ac); }
.build-top { position: relative; flex: none; padding: 6px 8px 0; }
.staff-slot.mac { position: absolute; right: 2px; top: -10px; width: min(26%, 100px); z-index: 0; }
.board-wrap { position: relative; z-index: 1; width: min(100%, 340px, calc((100vh - 470px) * 1.62)); min-width: 220px; margin: 0 auto; }
.board { position: relative; width: 100%; aspect-ratio: 260 / 160; }
.board.nudge { animation: shake 0.4s; }
.board-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board-msg { position: absolute; left: 10%; right: 10%; top: 38%; margin: 0; text-align: center; font: 800 16px/1.2 var(--font); color: #fff; text-shadow: 0 2px 0 rgba(120, 60, 20, 0.5); }
.scoops { position: absolute; inset: 0; }
.sc { position: absolute; width: 21%; transform: translate(-50%, -50%); pointer-events: none; }
.sc-meat { width: 30%; }
.item-pick { position: absolute; inset: 6% 4%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-content: center; }
.item-btn { width: calc(25% - 6px); min-width: 64px; min-height: 64px; border: 0; padding: 2px; border-radius: 14px; background: #fffdf6; box-shadow: 0 4px 0 #c98d5a; display: flex; flex-direction: column; align-items: center; animation: popin 0.3s cubic-bezier(.2, 1.5, .5, 1) both; }
.item-btn:nth-child(2) { animation-delay: 0.04s; } .item-btn:nth-child(3) { animation-delay: 0.08s; } .item-btn:nth-child(4) { animation-delay: 0.12s; }
.item-btn span { width: 40px; height: 40px; }
.item-btn b { font: 800 12px/1.1 var(--font); }
.item-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c98d5a; }
.swap-item { position: absolute; left: 6px; top: 4px; min-height: 30px; border: 0; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font: 800 13px/1 var(--font); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); }
.want { flex: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 4px; align-items: center; }
.w-head { display: inline-flex; align-items: center; gap: 4px; padding-right: 4px; font: 800 14px/1 var(--font); }
.w-head b.bad { color: var(--bad); text-decoration: line-through; }
.w-face { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.w-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; background: #fff; box-shadow: inset 4px 0 0 var(--c, #ccc), 0 1px 0 rgba(0, 0, 0, 0.1); font: 800 12px/1.4 var(--font); }
.w-chip b { margin-right: 2px; }
.w-chip i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c9b89a; }
.w-chip i.f { background: var(--good); box-shadow: none; }
.w-chip i.x { background: var(--bad); }
.w-chip.ok { background: #e6f7e9; }
.w-chip.over { background: #fff0d6; }
.w-chip.wrong { background: #ffe1dc; color: var(--bad); }
.w-chip.fiesta { box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--sun); }
.w-chip em { font-style: normal; font-size: 11px; color: #c43a6a; }
.w-chip small { font-weight: 700; color: var(--ink-soft); }
.bins { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 4px 8px; align-content: start; -webkit-overflow-scrolling: touch; }
.bin { position: relative; min-height: 58px; border: 0; padding: 2px 2px 1px; border-radius: 12px; background: #fffdf6; box-shadow: 0 3px 0 #d8c4a8; display: flex; flex-direction: column; align-items: center; }
.bin:active { transform: translateY(2px); box-shadow: 0 1px 0 #d8c4a8; }
.bin-pic { width: 100%; max-width: 72px; }
.bin-name { font: 800 11.5px/1.1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bin-n { position: absolute; top: 2px; right: 4px; min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--terra); color: #fff; font: 800 12px/1.5 var(--font); font-style: normal; }
.bin-meat.empty { opacity: 0.55; }
.bin-meat.empty .bin-n { background: #a89a8a; }
.bin-fiesta { box-shadow: 0 3px 0 #d8c4a8, inset 0 0 0 3px var(--sun); }
.build-acts { flex: none; display: flex; gap: 8px; padding: 6px 8px 8px; }
.btn { min-height: 46px; border: 0; padding: 6px 16px; border-radius: 14px; font: 800 16px/1.1 var(--font); }
.btn.ghost { flex: 0 0 auto; background: #fff; color: var(--ink); box-shadow: 0 3px 0 #d8c4a8; }
.btn.go { flex: 1 1 auto; background: linear-gradient(var(--teal), var(--teal-d)); color: #fff; box-shadow: 0 4px 0 #146b60; }
.btn:disabled { opacity: 0.45; }
.btn:active:not(:disabled) { transform: translateY(2px); }

/* ---------- FINISH ---------- */
.st-finish { display: flex; flex-direction: column; background: linear-gradient(#ffe6d0, #f4d0a8); }
.devices { flex: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px 8px 0; }
.dev { position: relative; min-height: 104px; border: 0; padding: 4px 6px 22px; border-radius: 16px; background: linear-gradient(#e3e8ec, #b9c3cc); box-shadow: 0 4px 0 #8f9aa5; display: flex; flex-direction: column; align-items: center; }
.dev-oven { background: linear-gradient(#5a4a44, #3a2e2a); color: #fff; box-shadow: 0 4px 0 #241c19; }
.dev-name { font: 800 13px/1 var(--font); align-self: flex-start; }
.dev-body { position: relative; width: 74px; height: 56px; margin-top: 2px; }
.dev-food { position: absolute; inset: 0; transition: filter 0.2s; }
.dev-lid { position: absolute; left: -6px; right: -6px; top: -4px; height: 16px; border-radius: 8px; background: linear-gradient(#a8b2bc, #7e8a96); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); transform-origin: 90% 50%; transform: rotate(-24deg) translateY(-10px); transition: transform 0.3s; }
.dev-press.busy .dev-lid { transform: none; animation: presspuff 1.2s ease-in-out infinite; }
.dev-oven .dev-lid { display: none; }
.dev-oven .dev-body { border-radius: 10px; background: radial-gradient(#ff9a3c, #b8452f); box-shadow: inset 0 0 0 4px #241c19; }
.dev-oven.free .dev-body { background: #241c19; }
.dev .steam { top: 6px; }
.dev.free .steam { display: none; }
.dev.free .gauge { display: none; }
.dev-face { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.dev[data-zone="top"] { box-shadow: 0 4px 0 #8f9aa5, inset 0 0 0 3px var(--good); }
.dev[data-zone="perfect"] { box-shadow: 0 4px 0 #8f9aa5, inset 0 0 0 3px var(--gold), 0 0 14px rgba(255, 200, 40, 0.6); }
.dev[data-zone="burnt"] { box-shadow: 0 4px 0 #8f9aa5, inset 0 0 0 3px var(--bad); }
.work { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 10px 10px; }
.work-empty { flex: 1; display: grid; place-items: center; text-align: center; font: 700 16px/1.3 var(--font); color: var(--ink-soft); padding: 20px; }
.work-head { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 800 15px/1.2 var(--font); }
.work-steps { margin-left: auto; display: flex; gap: 4px; }
.work-steps i { padding: 0 8px; border-radius: 999px; background: #fff; font: 800 12px/1.6 var(--font); font-style: normal; color: var(--ink-soft); }
.work-steps i.now { background: var(--sun); color: var(--ink); }
.work-steps i.done { background: var(--good); color: #fff; }
.work-tip { margin: 0; text-align: center; font: 700 14px/1.3 var(--font); color: var(--ink-soft); }
.preview { position: relative; width: min(72%, 260px); aspect-ratio: 260 / 160; transition: transform 0.4s; }
.preview.wrapping.fold1 { transform: none; }
.preview.wrapping.fold2 { animation: rollup 0.42s ease-in forwards; }
.plate { width: 120px; height: 120px; display: grid; place-items: center; position: relative; border-radius: 50%; background: radial-gradient(#fff 55%, #e9e2d6 56% 62%, #fff 63%); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1); }
.plate > svg { width: 84px; height: 84px; }
.plate.ready { animation: plateup 0.5s cubic-bezier(.2, 1.6, .5, 1); }
.plate.dim { opacity: 0.5; }
.plate-cup { position: absolute; right: -16px; bottom: 0; width: 40px; }
.meter { position: relative; width: min(86%, 300px); height: 26px; border-radius: 13px; background: #f3dfc0; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.12); }
.meter .sweet { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--good); }
.meter .marker { position: absolute; top: -6px; width: 8px; height: 38px; margin-left: -4px; border-radius: 4px; background: var(--ink); }
.big-btn.hold { background: linear-gradient(var(--terra), var(--terra-d)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 5px 0 #8a2e18; touch-action: none; }
.pour-vis { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.pour-vis.fill { width: 110px; height: 130px; }
.pour-vis.fill svg { width: 82px; }
.pour-vis.fill .fountain { position: absolute; top: -6px; left: 50%; width: 50px; height: 18px; margin-left: -25px; border-radius: 6px; background: var(--steel-d); }
.pour-vis .preview { width: min(60vw, 230px); }
.glaze { position: absolute; left: 12%; right: 22%; top: 18%; bottom: 18%; border-radius: 40%; pointer-events: none; }
.glaze.sauce { background: radial-gradient(#d2362f 40%, rgba(210, 54, 47, 0.6) 70%, transparent 72%); }
.glaze.dress { background: repeating-linear-gradient(60deg, transparent 0 10px, rgba(160, 210, 110, 0.9) 10px 13px); }
.gauge-v { position: relative; width: 22px; height: 110px; border-radius: 11px; background: #f3dfc0; overflow: hidden; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.12); }
.gauge-v .fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(var(--chili), #a82424); }
.gauge-v .line { position: absolute; left: -2px; right: -2px; height: 3px; background: var(--ink); }

/* ---------- tabs, coach, intro ---------- */
.tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 6px calc(var(--safe-b) + 6px); background: linear-gradient(#5a3424, #3e2218); z-index: 5; }
.tab { position: relative; min-height: 54px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: #ffe9cf; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.tab-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tab-name { font: 800 13px/1 var(--font); }
.tab.on { background: linear-gradient(var(--sun), var(--sun-d)); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.tab.alert:not(.on) { animation: tabalert 0.9s ease-in-out infinite; }
.badge { position: absolute; top: 3px; right: 10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--chili); color: #fff; font: 800 12px/20px var(--font); font-style: normal; text-align: center; }
.coach { position: relative; flex: none; margin: 0; z-index: 6; display: flex; border-radius: 0 !important; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 16px; background: rgba(255, 253, 246, 0.97); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 8px 18px rgba(90, 30, 10, 0.2); pointer-events: none; }
.coach.bump { animation: coachin 0.35s cubic-bezier(.2, 1.5, .5, 1); }
.coach-face { flex: none; width: 40px; height: 40px; }
.coach-face img { width: 100%; height: 100%; }
.coach p { margin: 0; font: 700 14px/1.25 var(--font); }
.st-build .coach-pad { height: 0; }
.intro { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(74, 42, 30, 0.45); }
.intro[hidden] { display: none; }
.intro-card { width: min(100%, 360px); padding: 18px 18px 16px; border-radius: 22px; background: #fff8ec; text-align: center; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12), 0 18px 40px rgba(60, 20, 10, 0.35); animation: popin 0.4s cubic-bezier(.2, 1.5, .5, 1); }
.intro-card h2 { margin: 0; font: 800 34px/1 var(--font); color: var(--terra-d); }
.intro-card > p { margin: 8px 0; font: 700 15px/1.3 var(--font); }
.intro-card .big-btn { margin: 12px auto 0; }
.fiesta-tag { margin: 8px 0; padding: 6px 10px; border-radius: 12px; background: #fff0c8; background: color-mix(in srgb, var(--f, var(--sun)) 30%, #fff); font: 700 14px/1.3 var(--font); }
.intro-note { font: 700 13px/1.3 var(--font); color: var(--ink-soft); }
.intro-faces { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.intro-faces figure { margin: 0; text-align: center; width: 58px; }
.intro-faces figcaption { font: 800 11px/1.15 var(--font); margin-top: 1px; overflow-wrap: break-word; } /* two-word names take two lines */
.intro-faces img { width: 40px; height: 40px; animation: queuebob 2.4s ease-in-out infinite; }
.intro-faces img:nth-child(2n) { animation-delay: -1.1s; }

/* ---------- effects ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.pop { position: fixed; transform: translate(-50%, 0); padding: 2px 10px; border-radius: 999px; background: #fff; font: 800 15px/1.3 var(--font); white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12); animation: popup 1.3s ease-out forwards; }
.pop.good { color: var(--good); } .pop.gold { background: var(--sun); color: var(--ink); } .pop.meh { color: var(--sun-d); } .pop.bad { color: #fff; background: var(--bad); }
.float-heart, .float-star { position: fixed; width: 22px; height: 22px; animation: floatup 1.6s ease-out forwards; }
.float-heart { background: #ff5d8f; clip-path: path("M11 20 C5 15 0 11 0 6.5 A5.5 5.5 0 0 1 11 4 A5.5 5.5 0 0 1 22 6.5 C22 11 17 15 11 20Z"); }
.float-star { background: var(--sun); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.coin-fly { position: fixed; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c0, var(--sun) 45%, var(--sun-d)); }
.smoke { position: fixed; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: rgba(70, 60, 60, 0.6); animation: smoke 1.1s ease-out forwards; }
.spark { position: fixed; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 8px var(--sun); animation: spark 0.7s ease-out forwards; }
.ghost-meat { position: fixed; width: 60px; }
.banner { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%); padding: 10px 22px 12px; border-radius: 20px; background: linear-gradient(#fff6d8, #ffd98a); color: var(--ink); box-shadow: 0 6px 0 var(--terra-d), 0 14px 30px rgba(60, 20, 10, 0.35); text-align: center; min-width: 240px; animation: banner 2.7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.banner b { display: block; font: 800 30px/1 var(--font); }
.banner small { display: block; margin-top: 4px; font: 700 14px/1.25 var(--font); color: var(--ink-soft); }
.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 130px); z-index: 70; transform: translate(-50%, -10px); max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 14px; background: rgba(74, 42, 30, 0.94); color: #fff; font: 700 14px/1.3 var(--font); text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sheets: results, book, shop, trophies ---------- */
.cf-sheet { width: min(420px, calc(100% - 20px)); max-height: calc(100% - 30px); padding: 0; border: 0; border-radius: 22px; background: #fff8ec; color: var(--ink); box-shadow: 0 18px 50px rgba(60, 20, 10, 0.4); }
.cf-sheet::backdrop { background: rgba(74, 42, 30, 0.5); }
.res { padding: 16px 16px 14px; text-align: center; }
.res h2 { margin: 0; font: 800 28px/1.1 var(--font); color: var(--terra-d); }
.res-stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.res-stars i { width: 40px; height: 40px; background: #e9dccb; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.res-stars i.on { background: var(--sun); animation: starin 0.45s cubic-bezier(.2, 1.8, .5, 1) both; animation-delay: calc(var(--i) * 0.18s + 0.2s); }
.res-stats { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 8px 0; text-align: left; font: 700 15px/1.35 var(--font); }
.res-stats dt { color: var(--ink-soft); }
.res-stats dd { margin: 0; font-weight: 800; text-align: right; }
.res-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 6px 0; }
.res-c { position: relative; width: 48px; display: flex; flex-direction: column; align-items: center; font: 800 12px/1.1 var(--font); }
.res-c img { width: 40px; height: 40px; }
.res-c.love b { color: var(--good); } .res-c.meh b { color: var(--sun-d); } .res-c.grumpy b { color: var(--bad); }
.res-c em { position: absolute; top: 0; right: 0; color: #ff5d8f; font-style: normal; }
.res-rank { margin: 8px 0; text-align: left; font: 700 14px/1.3 var(--font); }
.xpbar { height: 12px; margin: 4px 0; border-radius: 6px; background: #eadfcf; overflow: hidden; }
.xpbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--lime)); animation: grow 0.9s ease-out; }
.res-unlocks { margin: 8px 0; padding: 8px 10px; border-radius: 16px; background: linear-gradient(#fff2c8, #ffe08a); text-align: left; animation: popin 0.5s cubic-bezier(.2, 1.5, .5, 1) 0.3s both; }
.ru-head { margin: 0 0 4px; font: 800 18px/1.2 var(--font); color: var(--terra-d); text-align: center; }
.ru { display: flex; align-items: center; gap: 8px; margin: 3px 0; font: 700 14px/1.25 var(--font); }
.ru-ico { flex: none; width: 44px; height: 36px; display: grid; place-items: center; }
.ru-ico svg, .ru-ico img { max-width: 44px; max-height: 36px; }
.ru-ico.star { background: var(--sun); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 30px; height: 30px; }
.res-next { margin: 8px 0; font: 700 14px/1.3 var(--font); color: var(--ink-soft); }
.res-ach p { margin: 4px 0; font: 600 14px/1.3 var(--font); }
.res .stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
/* the buttons stay in reach while the card scrolls under them on a short phone */
.res .stack .pair { display: flex; gap: 8px; }
.res .stack .pair > .btn { flex: 1 1 0; min-width: 0; }
#results .res > .stack { position: sticky; bottom: 0; z-index: 2; margin: 12px -16px -14px; padding: 12px 16px 14px; background: linear-gradient(rgba(255, 248, 236, 0), #fff8ec 12px); }
.btn.primary { background: linear-gradient(var(--teal), var(--teal-d)); color: #fff; box-shadow: 0 4px 0 #146b60; min-height: 50px; font-size: 18px; }
.btn.secondary { background: #fff; color: var(--ink); box-shadow: 0 3px 0 #d8c4a8; }
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk { padding: 6px 4px 8px; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08); }
.bk-pic { position: relative; width: 64px; height: 64px; margin: 0 auto; }
.bk-pic img { width: 100%; height: 100%; }
.bk:not(.met) .bk-pic img { filter: brightness(0) opacity(0.25); }
.bk.fav { background: #fff6d0; box-shadow: inset 0 0 0 2px var(--sun); }
.bk-star { position: absolute; right: -4px; top: -2px; width: 22px; height: 22px; background: var(--sun); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.bk b { display: block; font: 800 14px/1.2 var(--font); }
.bk small { display: block; font: 600 12px/1.2 var(--font); color: var(--ink-soft); }
.bk p { margin: 4px 0 0; font: 600 12px/1.25 var(--font); }
.bk-note { margin: 0 0 8px; font: 600 14px/1.3 var(--font); color: var(--ink-soft); }
.shop-coins { margin: 0 0 8px; font: 700 16px/1.3 var(--font); }
.sh { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0e2cc; }
.sh-pic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.sh-pic svg { max-width: 56px; max-height: 60px; }
.sh-txt { flex: 1 1 auto; min-width: 0; }
.sh-txt b { display: block; font: 800 15px/1.2 var(--font); }
.sh-txt small { display: block; font: 600 12px/1.2 var(--font); color: var(--ink-soft); }
.sh .btn { flex: none; min-width: 84px; min-height: 44px; }
.trophies { list-style: none; margin: 10px 0 0; padding: 0; }
.trophies li { padding: 6px 10px; margin: 4px 0; border-radius: 12px; background: #fff; font: 600 14px/1.3 var(--font); color: var(--ink-soft); }
.trophies li b { display: block; color: #a89a8a; font-weight: 800; }
.trophies li.got { background: #fff3c8; color: var(--ink); }
.trophies li.got b { color: var(--terra-d); }
.decor .deco svg, .sh-pic.decor svg { width: 100%; height: 100%; }
.deco-pinata .swing { transform-box: fill-box; transform-origin: 50% 0; animation: swing 2.6s ease-in-out infinite; }
.bulb { animation: twinkle 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.27s); }
.eq .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: eq 0.7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.17s); }
.fish { animation: fish 4s ease-in-out infinite; }

/* ---------- keyframes ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes idle { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3px) scale(1.01, 0.99); } }
@keyframes headbob { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-1.6deg) translateY(1.5px); } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 0.99); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes flip { 0% { transform: translate(0, 0) rotate(0); } 40% { transform: translate(-10px, -26px) rotate(-30deg); } 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pressdown { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(14px) scale(1.08, 0.9); } }
@keyframes scoop { 0% { transform: translate(0, 0) rotate(0); } 45% { transform: translate(-18px, 14px) rotate(20deg); } 100% { transform: translate(0, 0) rotate(0); } }
@keyframes write { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-4px, 2px) rotate(-8deg); } }
@keyframes pour { 0%, 100% { transform: rotate(-30deg) translateY(-8px); } 50% { transform: rotate(-38deg) translateY(-10px); } }
@keyframes cheer { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-30px) rotate(-10deg); } }
@keyframes walkin { from { transform: translateX(-140%); } to { transform: translateX(0); } }
@keyframes servein { from { transform: translateX(150%); } to { transform: translateX(0); } }
@keyframes leaveright { to { transform: translateX(180%); opacity: 0.4; } }
@keyframes leaveleft { to { transform: translateX(-180%); opacity: 0.4; } }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes talk { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97) translateY(1px); } }
@keyframes dance { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-7deg) translateY(-10px); } 75% { transform: rotate(7deg) translateY(-10px); } }
@keyframes grump { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes cloud { 0% { transform: scale(0.2); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(1) translateY(-10px); opacity: 0; } }
@keyframes queuebob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes flutter { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
@keyframes popin { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes tkdrop { 0% { transform: translateY(-60px) rotate(-8deg); } 70% { transform: translateY(4px) rotate(2deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }
@keyframes nudge { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.04); } }
.big-btn.serve { animation-name: nudge2; }
@keyframes nudge2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes slidefood { from { transform: translateX(120px) scale(0.6); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes steam { 0% { transform: translateY(10px) scale(0.6); opacity: 0; } 30% { opacity: 0.8; } 100% { transform: translateY(-22px) scale(1.4); opacity: 0; } }
@keyframes spit { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(6px, -16px); opacity: 0; } }
@keyframes sizzlemeat { from { transform: translateY(0) scale(1); } to { transform: translateY(-1px) scale(1.015, 0.99); } }
@keyframes presspuff { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes plateup { 0% { transform: scale(0.5) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes tabalert { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 201, 60, 0); } 50% { box-shadow: inset 0 0 0 3px rgba(255, 201, 60, 0.95); } }
@keyframes coachin { 0% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes popup { 0% { transform: translate(-50%, 6px) scale(0.6); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 30% { transform: translate(-50%, -4px) scale(1); } 100% { transform: translate(-50%, -44px); opacity: 0; } }
@keyframes floatup { 0% { transform: translate(0, 0) scale(0.4); opacity: 0; } 15% { opacity: 1; transform: translate(0, -10px) scale(1.1); } 100% { transform: translate(var(--dx), -110px) scale(0.8) rotate(12deg); opacity: 0; } }
@keyframes smoke { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: translate(0, -60px) scale(2); opacity: 0; } }
@keyframes spark { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; } }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(0.96); } }
@keyframes starin { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes grow { from { transform: scaleX(0); transform-origin: 0 50%; } to { transform: scaleX(1); transform-origin: 0 50%; } }
@keyframes swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
@keyframes fish { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-14px); } }

@media (max-height: 700px) {
  .slot { min-height: 96px; }
  .menuboard { top: 46px; }
  .decor { top: 112px; }
  .rail { height: 64px; }
  .tk { height: 52px; width: 64px; }
  .tk-face { width: 26px; height: 26px; }
  .tk-item { width: 30px; height: 30px; }
  .tab { min-height: 48px; }
  .dev { min-height: 92px; }
}
@media (max-width: 370px) {
  .hud-day b { font-size: 17px; }
  .bin-name { font-size: 11px; }
  .w-chip { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .track { transition: none; }
  .staff .lids ellipse { animation: none; }
  .pop, .float-heart, .float-star, .banner { animation-duration: 1.2s !important; }
}

.coach[hidden] { display: none; }
.coach { padding: 4px 10px 4px 6px; background: #fffdf6; box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.06); min-height: 48px; }
.coach-face { width: 38px; height: 38px; }
.coach p { font-size: 13.5px; }

/* the grill: the meat buttons sit right under the grill */
.st-grill .raws { flex: none; order: 3; align-items: stretch; padding: 8px 8px 0; }
.st-grill .needs { order: 4; }
.st-grill .pan-row { order: 5; }
.st-grill .grill { order: 2; }
.st-grill .staff-slot.kento { order: 1; }
.raw { min-height: 70px; }
.slot { min-height: clamp(100px, 19vh, 150px); }

/* the finish station: Kento by the press and oven */
.fin-top { position: relative; flex: none; padding: 6px 8px 0; display: flex; align-items: flex-end; gap: 4px; }
.staff-slot.kento2 { position: relative; flex: none; width: min(24%, 96px); align-self: flex-end; margin-bottom: -6px; }
.fin-top .devices { flex: 1 1 auto; padding: 0; }
.devices.few { grid-template-columns: repeat(2, 1fr); }
.dev { min-height: 0; padding: 4px 4px 20px; background: linear-gradient(#eef2f5, #cfd8de); box-shadow: 0 4px 0 #9aa6b2; color: var(--ink); }
.dev-oven { background: linear-gradient(#eef2f5, #cfd8de); color: var(--ink); box-shadow: 0 4px 0 #9aa6b2; }
.dev-body { position: relative; width: 100%; max-width: 150px; height: auto; aspect-ratio: 160 / 100; margin-top: 0; }
.dev-body > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dev-oven .dev-body { background: none; box-shadow: none; border-radius: 0; }
.dev-oven.free .dev-body { background: none; }
.dev-oven.free .oven-glow { fill: #3a2a26; }
.dev-oven.busy .oven-glow { animation: ovenglow 1.2s ease-in-out infinite alternate; }
.dev-oven .dev-food { position: absolute; left: 30%; top: 34%; width: 40%; height: 46%; inset: auto; }
.dev-oven .dev-food svg { width: 100%; height: 100%; }
.dev-slab { position: absolute; left: 15%; right: 15%; top: 49%; height: 8%; border-radius: 4px; background: #f8ecc8; display: none; box-shadow: inset 0 -2px 0 rgba(120, 60, 0, 0.25); }
.dev-slab i { position: absolute; top: 20%; width: 8%; height: 50%; border-radius: 50%; background: #ffd23f; }
.dev-slab i:first-child { left: -4%; } .dev-slab i:last-child { right: -4%; }
.dev-press.busy .dev-slab { display: block; animation: puffslab 1.1s ease-in-out infinite; }
.press-lid { transform-box: view-box; transform-origin: 18px 48px; transform: rotate(-30deg); transition: transform 0.3s cubic-bezier(.3, 1.4, .5, 1); }
.dev-press.busy .press-lid { transform: rotate(0); animation: presslid 1.1s ease-in-out infinite; }
.dev-lid { display: none; }
.dev .steam { top: -6px; }
.dev-face { top: 2px; right: 2px; }
@keyframes ovenglow { from { fill: #ff8a3c; } to { fill: #ffb05a; } }
@keyframes puffslab { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.5); } }
@keyframes presslid { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
.mb-items span { width: 42px; height: 42px; }
.menuboard { padding: 2px 8px 4px; }

/* small phones: smaller pans on the line, a smaller board */
@media (max-height: 700px) {
  .bin { min-height: 0; padding-top: 1px; }
  .bin-pic { max-width: 52px; }
  .board-wrap { width: min(100%, 300px, calc((100vh - 500px) * 1.62)); }
  .raw { min-height: 60px; }
  .raw-pic { max-width: 56px; }
}
/* tall phones: a bigger grill */
@media (min-height: 760px) {
  .slot { min-height: 168px; }
  .slot-meat { max-width: 132px; }
  .staff-slot.kento { width: min(46%, 172px); height: clamp(70px, 15vh, 134px); }
}
/* Kento's paws rest on the grill's edge (they flip with him) */
.grill-paws { position: absolute; left: 50%; top: -34px; width: min(46%, 172px); transform: translateX(-50%); z-index: 3; pointer-events: none; }
@media (max-height: 759px) { .grill-paws { width: min(40%, 150px); top: -30px; } }
.grill-paws svg { width: 100%; height: auto; overflow: visible; }
.grill-paws .paw-in { transform-box: fill-box; transform-origin: 50% 80%; }
.grill-paws.flip .paw-r .paw-in { animation: flip 0.42s ease-out; }
.grill-paws.flip .paw-l .paw-in { animation: pressdown 0.42s ease-out; }

.staff.wave .paw-l .paw-in { animation: wavepaw 0.9s ease-in-out; }
@keyframes wavepaw { 0%, 100% { transform: translate(0, 0) rotate(0); } 20% { transform: translate(6px, -34px) rotate(-18deg); } 40% { transform: translate(6px, -34px) rotate(14deg); } 60% { transform: translate(6px, -34px) rotate(-18deg); } 80% { transform: translate(6px, -30px) rotate(10deg); } }

/* the warming pan, with the pieces in it */
.pan { min-height: 64px; background: linear-gradient(#d5dce3, #aab5c0); }
.pan-m { gap: 2px; }
.pan-p { position: relative; display: inline-block; width: 50px; background: none !important; box-shadow: none !important; }
.pan-p svg { width: 100%; }
.pan-p i { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); min-width: 26px; padding: 0 4px; border-radius: 8px; background: #fff; font: 800 11px/1.4 var(--font); font-style: normal; text-align: center; }
.pan-p.pz-perfect i { background: #ffe58a; box-shadow: inset 0 0 0 2px var(--gold); }
.pan-p.pz-top i { background: #d6f5dc; }
.pan-p.pz-under i, .pan-p.pz-over i { background: #ffe0c0; }

.bin-name, .raw-name { line-height: 1.4; }
.bin { padding-bottom: 2px; }
.devices { grid-template-columns: repeat(var(--n, 2), 1fr); }
.st-finish.many .staff-slot.kento2 { display: none; }
.st-finish.many .dev-name { font-size: 11px; }
.st-finish.many .dev { padding: 3px 3px 18px; }
.st-finish.many .dev-face { width: 20px; height: 20px; }
.bk p { font-size: 11.5px; }

/* the line: fixed rows so nothing collapses, five pans across on a phone */
.bins { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); grid-auto-rows: 64px; gap: 5px; }
.bin { min-height: 0; height: 64px; padding: 3px 2px 1px; justify-content: flex-start; }
.bin-pic { height: 40px; width: 100%; max-width: none; display: flex; justify-content: center; }
.bin-pic svg { height: 100%; width: auto; }
.bin-name { font-size: 11.5px; }
@media (max-height: 700px) {
  .bins { grid-auto-rows: 58px; }
  .bin { height: 58px; }
  .bin-pic { height: 35px; max-width: none; }
  .board-wrap { width: min(100%, 290px, calc((100vh - 520px) * 1.62)); min-width: 190px; }
}

/* picking the item: big buttons where the pans go */
.item-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); grid-auto-rows: 92px; gap: 8px; padding: 6px 8px; align-content: start; }
.item-grid .item-btn { width: auto; min-width: 0; min-height: 0; height: 92px; border-radius: 16px; justify-content: center; gap: 2px; }
.item-grid .item-btn span { width: 54px; height: 54px; }
.item-grid .item-btn b { font-size: 14px; line-height: 1.2; }
.board.picking .board-svg { filter: saturate(0.9); }

/* the burrito: flaps fold in, then it rolls up */
.preview .flap { position: absolute; top: 14%; bottom: 14%; width: 36%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fdf1d2, #f3d9a0); box-shadow: inset 0 0 0 3px #e2c48a, 0 3px 6px rgba(120, 70, 20, 0.2); transform: scaleX(0); transition: transform 0.35s cubic-bezier(.3, 1.5, .5, 1); z-index: 2; }
.preview .flap.l { left: 9%; transform-origin: 0 50%; }
.preview .flap.r { right: 9%; transform-origin: 100% 50%; }
.preview.fold1 .flap, .preview.fold2 .flap { transform: scaleX(1); }
@keyframes rollup { 0% { transform: none; } 45% { transform: scaleY(0.42) translateY(30%); border-radius: 40%; } 100% { transform: scale(0.55, 0.3) rotate(-14deg) translateY(40%); opacity: 0; } }

/* decorations from the shop, each in its own spot (the container makes no stacking context, so each one sits
   in front of or behind the counter and the customers as it should) */
#decor { position: absolute; inset: 0; top: 0; left: 0; right: 0; display: block; pointer-events: none; }
.deco { position: absolute; width: 50px; height: 50px; z-index: 1; }
.deco svg { width: 100%; height: 100%; }
.deco-lights { left: 64px; right: 0; top: calc(64% - 150px); width: auto; height: 26px; z-index: 0; }
.deco-plant { left: 4px; top: 64px; }
.deco-pinata { left: 4px; top: 118px; }
.deco-gold { left: 6px; top: 172px; width: 44px; height: 44px; }
.deco-ristra { right: 4px; top: 60px; }
.deco-guitar { right: 2px; top: 116px; }
.deco-fishtank { right: 4px; top: 170px; }
.deco-mural { left: 50%; top: 34px; width: min(78%, 300px); height: 120px; transform: translateX(-50%); z-index: 0; }
.deco-mural svg { width: 100%; height: 100%; }
.menuboard { z-index: 1; }
.deco-cactus { left: 6px; bottom: calc(36% + 10px); z-index: 3; width: 44px; height: 44px; }
.deco-neon { left: 6px; bottom: calc(36% - 70px); z-index: 5; width: 64px; height: 64px; }
.deco-jukebox { left: 8px; bottom: 6%; z-index: 5; width: 56px; height: 56px; }
.deco-cattree { right: 6px; bottom: calc(36% - 70px); z-index: 5; width: 56px; height: 56px; }
.deco-fountain { right: 8px; bottom: 6%; z-index: 5; width: 56px; height: 56px; }
@media (max-height: 700px) {
  .deco { width: 40px; height: 40px; }
  .deco-plant { top: 54px; } .deco-pinata { top: 96px; } .deco-gold { top: 138px; width: 36px; height: 36px; }
  .deco-ristra { top: 52px; } .deco-guitar { top: 94px; } .deco-fishtank { top: 136px; }
  .deco-neon, .deco-cattree { bottom: calc(36% - 54px); width: 48px; height: 48px; }
  .deco-jukebox, .deco-fountain { width: 46px; height: 46px; bottom: 4%; }
}

.new-tag { display: inline-block; margin: 0 0 4px; padding: 1px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 800 12px/1.5 var(--font); animation: popin 0.4s cubic-bezier(.2, 1.6, .5, 1) 0.2s both; }

/* tails swish */
.staff .tail { transform-box: fill-box; transform-origin: 10% 95%; animation: swish 2.4s ease-in-out infinite; }
.staff-honey .tail { animation-duration: 2.9s; animation-delay: -0.7s; }
.staff-mac .tail { animation-duration: 3.4s; animation-delay: -1.5s; }
.staff.cheer .tail { animation: swish 0.4s ease-in-out 3; }
@keyframes swish { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }

.tk.vip { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 3px #b07cf0; }
.tk.vip::after { content: "VIP"; position: absolute; right: 2px; bottom: 7px; padding: 0 4px; border-radius: 6px; background: #8a4fd8; color: #fff; font: 800 12px/1.3 var(--font); }
.sc-vip { margin: 4px 0 0; font: 800 13px/1.2 var(--font); color: #8a4fd8; }
.res-tomorrow { margin: 6px 0; padding: 6px 10px; border-radius: 12px; background: #fff; font: 600 14px/1.3 var(--font); text-align: left; }
/* the grill: the meat trays sit at the bottom like a cooler; the grill fills the middle */
.st-grill .raws { order: 9; margin-top: auto; padding: 6px 8px 10px; }
.st-grill .grill { flex: 0 1 auto; }
@media (min-height: 760px) { .slot { min-height: 190px; } .slot-meat { max-width: 140px; } }

.sh-pic .fan { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 1.4s linear infinite; }
.sh-pic .glow { animation: twinkle 1.8s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* what the grill owes each ticket */
.needs { gap: 6px; padding: 8px 8px 2px; align-content: flex-start; }
.need-card { display: inline-flex; align-items: center; gap: 6px; min-width: calc(50% - 3px); flex: 1 1 calc(50% - 3px); padding: 4px 8px 4px 4px; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), inset 4px 0 0 #c9b89a; }
.need-card img { width: 34px; height: 34px; flex: none; }
.need-card b { display: block; font: 800 14px/1.15 var(--font); }
.need-card small { display: block; font: 700 12px/1.2 var(--font); color: var(--ink-soft); }
.need-card.start { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), inset 4px 0 0 var(--chili); animation: needpulse 1.4s ease-in-out infinite; }
.need-card.cooking { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), inset 4px 0 0 var(--sun-d); }
.need-card.ready { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), inset 4px 0 0 var(--good); }
.need-card.jay small { color: #c43a6a; }
@keyframes needpulse { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
@media (max-height: 700px) { .need-card img { width: 28px; height: 28px; } .need-card b { font-size: 13px; } }

/* the back shelf fills a tall phone's spare room above the meat trays (hidden when there's no room) */
.grill-shelf { order: 8; flex: 1 1 0; min-height: 0; container-type: size; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding: 4px 16px 0; }
.grill-shelf svg { width: min(100%, 360px); height: auto; flex: none; }
/* never shrink the shelf (its jar labels would drop under 11px): it shows whole or not at all */
@container (max-height: 106px) { .grill-shelf svg { display: none; } }
@container (min-width: 340px) and (max-height: 116px) { .grill-shelf svg { display: none; } }
.shelf .utensil { transform-box: fill-box; transform-origin: 50% 0; animation: swing 3.2s ease-in-out infinite; }
.shelf .u2 { animation-delay: -1.4s; animation-duration: 3.8s; }
@media (max-height: 759px) { .grill-shelf { display: none; } }

/* juice */
.door i { transform-origin: 0 50%; transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1); }
.door.open i { transform: perspective(220px) rotateY(-62deg); }
.crumb { position: fixed; width: 6px; height: 6px; margin: -3px; border-radius: 2px; animation: crumb 0.6s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes crumb { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 60% { transform: translate(calc(var(--dx) * 0.8), var(--dy)) scale(0.9); opacity: 1; } 100% { transform: translate(var(--dx), 14px) scale(0.5); opacity: 0; } }
.steam-burst { position: fixed; width: 22px; height: 30px; margin: -15px -11px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); filter: blur(3px); animation: steamburst 1s ease-out forwards; }
@keyframes steamburst { 0% { transform: translateY(0) scale(0.5); opacity: 0.9; } 100% { transform: translateY(-70px) scale(1.8); opacity: 0; } }
.confetti { position: fixed; top: -20px; width: 8px; height: 13px; border-radius: 2px; animation: confetti 2s cubic-bezier(.25, .5, .5, 1) forwards; z-index: 80; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: 0.9; } }
.hud-score.pulse { animation: hudpulse 0.5s cubic-bezier(.2, 1.6, .5, 1); }
@keyframes hudpulse { 0% { transform: scale(1); } 40% { transform: scale(1.22); background: rgba(255, 201, 60, 0.6); } 100% { transform: scale(1); } }
.badge.bump { animation: badgebump 0.45s cubic-bezier(.2, 1.8, .5, 1); }
@keyframes badgebump { 0% { transform: scale(0.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.walkout { position: fixed; width: 56px; height: 56px; margin-left: -28px; animation: walkout 1.6s ease-in forwards; z-index: 70; }
.wo-face { width: 100%; height: 100%; border-radius: 50%; filter: saturate(0.6); animation: grump 0.12s linear 8; }
.wo-cloud { position: absolute; left: 30px; top: -16px; width: 34px; height: 22px; border-radius: 50%; background: #6b6470; box-shadow: -10px 4px 0 -3px #6b6470, 9px 5px 0 -4px #6b6470; }
@keyframes walkout { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 20% { transform: translate(0, -10px) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-90px, -30px) scale(0.7); opacity: 0; } }
/* the title screen: the cats busy themselves now and then */
.title-art .staff-kento .paw-r .paw-in { animation: idleflip 4.2s ease-in-out infinite; }
.title-art .staff-honey .paw-r .paw-in { animation: idlewrite 5.1s ease-in-out infinite; }
.title-art .staff-mac .paw-r .paw-in { animation: idlescoop 4.7s ease-in-out infinite 1.3s; }
@keyframes idleflip { 0%, 82%, 100% { transform: none; } 88% { transform: translate(-10px, -26px) rotate(-30deg); } 94% { transform: translate(-4px, -8px) rotate(-8deg); } }
@keyframes idlewrite { 0%, 70%, 100% { transform: none; } 74%, 82%, 90% { transform: translate(-4px, 2px) rotate(-8deg); } 78%, 86% { transform: translate(2px, 0) rotate(4deg); } }
@keyframes idlescoop { 0%, 80%, 100% { transform: none; } 88% { transform: translate(-18px, 14px) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .confetti, .crumb, .steam-burst, .walkout { display: none; } }

.res-ach p { display: flex; flex-direction: column; padding: 4px 10px; border-radius: 12px; background: #fff3c8; }
.res-ach small { font: 600 13px/1.3 var(--font); color: var(--ink-soft); }
#results { overflow-x: hidden; }

.tk-usual { position: absolute; right: 4px; bottom: 8px; font: 800 12px/1 var(--font); color: #c43a6a; letter-spacing: 0.2px; white-space: nowrap; }
.tk.vip .tk-usual { display: none; }

.staff.oops .staff-head { animation: oops 0.5s ease-in-out; }
@keyframes oops { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-4deg); } }

/* the coach points: a pulsing ring on what to tap */
.coach-target { position: relative; z-index: 3; animation: coachring 1.1s ease-in-out infinite !important; }
@keyframes coachring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.95), 0 3px 0 rgba(0, 0, 0, 0.15); } 50% { box-shadow: 0 0 0 7px rgba(255, 201, 60, 0.55), 0 3px 0 rgba(0, 0, 0, 0.15); } }
.big-btn.take.coach-target { animation: coachring 1.1s ease-in-out infinite !important; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .coach-target { animation: none !important; box-shadow: 0 0 0 5px rgba(255, 201, 60, 0.9) !important; } }
/* scoops sit on the food with a soft shadow */
.sc svg { filter: drop-shadow(0 2px 1px rgba(90, 50, 20, 0.28)); }

.res-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 6px 0; text-align: left; }
.res-parts span { display: grid; grid-template-columns: 46px 1fr 28px; align-items: center; gap: 6px; font: 700 13px/1.4 var(--font); }
.res-parts i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--c, var(--good)) var(--v), #eadfcf var(--v)); }
.res-parts i.hi { --c: var(--good); } .res-parts i.mid { --c: var(--sun-d); } .res-parts i.lo { --c: var(--bad); }
.res-parts em { font-style: normal; text-align: right; }
.res-tip { grid-column: 1 / -1; margin: 2px 0 0; font: 600 13px/1.3 var(--font); color: var(--ink-soft); }

/* nobody at the counter: Honey wipes it down */
.staff.wiping .paw-r .paw-in { animation: wipe 1.6s ease-in-out infinite; }
.staff.wiping .paw-r .tool { opacity: 0; }
@keyframes wipe { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-26px, 4px) rotate(-6deg); } 50% { transform: translate(-6px, 6px); } 75% { transform: translate(-30px, 3px) rotate(-4deg); } }

.board-svg.drop-in { animation: dropin 0.45s cubic-bezier(.2, 1.5, .5, 1); }
@keyframes dropin { 0% { transform: translateY(-40px) scale(0.85); opacity: 0; } 70% { transform: translateY(4px) scale(1.03, 0.97); opacity: 1; } 100% { transform: none; } }
.tk.late:not(.on) { animation: latewiggle 3s ease-in-out infinite; }
@keyframes latewiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-4deg); } 94% { transform: rotate(4deg); } 97% { transform: rotate(-2deg); } }

.sc-notes { margin: 4px 0 0; padding: 3px 8px; border-radius: 10px; background: #fff0d6; font: 700 12px/1.3 var(--font); color: #9a4a1e; }

.sh-head { margin: 12px 0 2px; font: 800 13px/1.2 var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--terra-d); }
.bk-head { margin: 0 0 6px; font: 700 15px/1.3 var(--font); }

.ta-fiesta { position: absolute; right: 8px; top: 44px; z-index: 3; padding: 2px 10px; border-radius: 999px; background: var(--f); color: var(--ink); font: 800 12px/1.5 var(--font); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); animation: bob 2.2s ease-in-out infinite; }

/* short phones: the grill station packs tighter so the meat trays always show */
@media (max-height: 700px) {
  .staff-slot.kento { height: 74px; }
  .grill { padding: 8px 6px 6px; }
  .slot { min-height: 88px; }
  .slot-meat { max-width: 84px; }
  .needs { padding: 4px 8px 0; gap: 4px; }
  .need-card { padding: 2px 6px 2px 3px; }
  .pan { min-height: 40px; padding: 3px 8px; margin-top: 3px; }
  .pan-p { width: 38px; }
  .st-grill .raws { padding: 4px 8px 6px; }
  .raw { min-height: 54px; padding-top: 2px; }
  .raw-pic { max-width: 50px; }
}

.howto p { margin: 0 0 10px; font: 600 15px/1.4 var(--font); }

.tk.inspector { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 3px #4a6fa8; }
.tk.inspector::after { content: "Inspector"; position: absolute; right: 2px; bottom: 7px; padding: 0 4px; border-radius: 6px; background: #4a6fa8; color: #fff; font: 800 12px/1.3 var(--font); }
/* tickets with a tag are wider so the 12px tag clears the order pips */
.tk.jay, .tk.vip, .tk.inspector { width: 100px; }
.tk.inspector .tk-usual { display: none; }

.intro-lb { display: block; margin: 10px auto 0; }

.slot-meat.flipping { animation: meatflip 0.5s cubic-bezier(.3, .6, .4, 1); }
@keyframes meatflip { 0% { transform: none; } 40% { transform: translateY(-34px) rotateX(180deg) scale(1.05); } 80% { transform: translateY(2px) rotateX(360deg) scale(1.08, 0.92); } 100% { transform: none; } }

/* Rush Hour perk pick */
.perk-card .perk-ask { margin: 10px 0 6px; }
.perk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perk { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 150px; padding: 10px 8px 12px; border: 0; border-radius: 18px; background: linear-gradient(#fff, #ffeccc); color: var(--ink); box-shadow: 0 5px 0 var(--sun-d, #f09a1a), 0 8px 16px rgba(60, 20, 10, 0.18); font-family: var(--font); cursor: pointer; animation: perkin 0.5s cubic-bezier(.2, 1.5, .5, 1) both; }
.perk:nth-child(2) { animation-delay: 0.12s; }
.perk b { font: 800 17px/1.1 var(--font); color: var(--terra-d); }
.perk small { font: 600 13px/1.25 var(--font); color: var(--ink-soft, #7a4a32); }
.perk-pic { width: 64px; height: 64px; }
.perk-pic svg { width: 100%; height: 100%; }
.perk:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sun-d, #f09a1a); }
.perk.chosen { animation: perkpick 0.42s ease-out forwards; background: linear-gradient(#fffbe8, #ffe08a); }
.perk-card.done .perk:not(.chosen) { opacity: 0.35; transform: scale(0.94); transition: 0.25s; }
.perk-have { margin: 10px 0 0; font: 600 12px/1.3 var(--font); color: var(--ink-soft, #7a4a32); }
.perk-art .beat { transform-origin: 40px 44px; animation: beat 1s ease-in-out infinite; }
.perk-art .flick { transform-origin: 40px 72px; animation: flick 0.9s ease-in-out infinite alternate; }
.perk-art .coin-drop { animation: coindrop 1.5s ease-in-out infinite; }
.perk-art .steam { animation: steamup 1.6s ease-in-out infinite; }
@keyframes perkin { 0% { transform: translateY(24px) scale(0.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes perkpick { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-2deg); } 100% { transform: scale(1.04); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(0.97); } 45% { transform: scale(1.08); } }
@keyframes flick { 0% { transform: scale(1, 1) skewX(-3deg); } 100% { transform: scale(0.95, 1.08) skewX(3deg); } }
@keyframes coindrop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes steamup { 0% { transform: translateY(4px); opacity: 0; } 50% { opacity: 0.9; } 100% { transform: translateY(-6px); opacity: 0; } }
@media (max-width: 370px) { .perk { min-height: 136px; padding: 8px 6px 10px; } .perk b { font-size: 15px; } .perk small { font-size: 12px; } .perk-pic { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .perk, .perk.chosen, .perk-art * { animation: none !important; } }

/* the crew at the top of the results */
.res-crew { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 84px; margin: 14px 0 4px; }
.res-crew .rc-cat { width: 78px; height: 84px; margin: 0 -6px; transform-origin: 50% 100%; animation: popin 0.4s cubic-bezier(.2, 1.5, .5, 1) both; }
.res-crew .rc-cat svg { width: 100%; height: 100%; }
.res-crew .rc1 { width: 88px; height: 92px; z-index: 1; }
.res-crew .rc-say { position: absolute; right: 2px; top: -6px; padding: 2px 8px; border-radius: 10px 10px 10px 2px; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1); font: 800 12px/1.4 var(--font); color: var(--terra-d); animation: popin 0.35s cubic-bezier(.2, 1.5, .5, 1) 0.9s both; }
.res-crew.s3 .rc-cat { animation: popin 0.4s cubic-bezier(.2, 1.5, .5, 1) both, crewhop 0.7s ease-in-out 0.5s infinite; }
.res-crew.s3 .rc1 { animation-delay: 0s, 0.85s; }
.res-crew.s3 .rc2 { animation-delay: 0s, 0.68s; }
.res-crew.s2 .rc-cat { animation: popin 0.4s cubic-bezier(.2, 1.5, .5, 1) both, crewsway 1.6s ease-in-out 0.5s infinite; }
.res-crew.s2 .rc1 { animation-delay: 0s, 0.9s; }
.res-crew.s1 .rc-cat, .res-crew.s0 .rc-cat { animation: popin 0.4s cubic-bezier(.2, 1.5, .5, 1) both, crewslump 3s ease-in-out 0.5s infinite; filter: saturate(0.85); }
@keyframes crewhop { 0%, 100% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(0) scale(1.06, 0.92); } 50% { transform: translateY(-14px) scale(0.96, 1.05) rotate(-4deg); } 80% { transform: translateY(0) scale(1.04, 0.95); } }
@keyframes crewsway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes crewslump { 0%, 100% { transform: translateY(2px) scale(1, 0.97) rotate(0); } 50% { transform: translateY(5px) scale(1.02, 0.93) rotate(2deg); } }
@media (max-height: 700px) { .res-crew { height: 66px; } .res-crew .rc-cat { width: 62px; height: 66px; } .res-crew .rc1 { width: 70px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .res-crew .rc-cat, .res-crew .rc-say { animation: none !important; } }

/* the customer eats: three bites */
.served-food svg { display: block; transition: transform 0.16s cubic-bezier(.3, 1.8, .5, 1); transform-origin: 50% 70%; }
.served-food[data-bite="1"] svg { transform: scale(0.8, 0.74) rotate(-8deg); }
.served-food[data-bite="2"] svg { transform: scale(0.56, 0.5) rotate(6deg); }
.served-food[data-bite="3"] svg { transform: scale(0); transition-duration: 0.22s; }
.served-food.pushed svg { transform: translateX(-26px) rotate(-14deg); transition: transform 0.4s ease-out 0.2s; }
.cust.munch .cust-hop img { animation: munch 0.24s ease-in-out; transform-origin: 50% 100%; }
@keyframes munch { 0%, 100% { transform: none; } 50% { transform: translateY(4px) scale(1.03, 0.95); } }

/* customers still in line show it when they're getting fed up */
.cust[data-wait="1"]::before, .cust[data-wait="2"]::before, .q-cust[data-wait="1"]::before, .q-cust[data-wait="2"]::before { content: ""; position: absolute; z-index: 3; pointer-events: none; }
.cust[data-wait="1"]::before { left: 72%; top: 13%; width: 17px; height: 24px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 62%, #fff 0 2.5px, transparent 3.5px), #4fa8ec; clip-path: polygon(50% 0, 100% 62%, 92% 88%, 50% 100%, 8% 88%, 0 62%); animation: sweat 1.4s ease-in infinite; }
.cust[data-wait="2"]::before { left: 70%; top: 8%; width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23e23d3d' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M3 9 Q9 9 9 3'/%3E%3Cpath d='M15 3 Q15 9 21 9'/%3E%3Cpath d='M21 15 Q15 15 15 21'/%3E%3Cpath d='M9 21 Q9 15 3 15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; animation: fumes 0.5s ease-in-out infinite alternate; }
.cust[data-wait="2"] .cust-hop { animation: tapfoot 0.5s ease-in-out infinite; }
.q-cust { position: relative; }
.q-cust[data-wait="1"]::before { right: -2px; top: 0; width: 8px; height: 11px; border-radius: 50%; background: #7fc8f8; animation: sweat 1.4s ease-in infinite; }
.q-cust[data-wait="2"] .q-face { box-shadow: 0 0 0 3px #e23d3d, 0 2px 0 rgba(0, 0, 0, 0.15); }
.q-cust[data-wait="2"] { animation: tapfoot 0.5s ease-in-out infinite; }
@keyframes sweat { 0% { transform: translateY(-4px) scale(0.6); opacity: 0; } 25% { opacity: 1; transform: translateY(0) scale(1); } 100% { transform: translateY(16px) scale(0.9); opacity: 0; } }
@keyframes fumes { 0% { transform: scale(0.85) rotate(-10deg); } 100% { transform: scale(1.1) rotate(10deg); } }
@keyframes tapfoot { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2.5deg) translateY(-2px); } 60% { transform: rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .cust[data-wait]::before, .q-cust[data-wait]::before, .cust[data-wait="2"] .cust-hop, .q-cust[data-wait="2"] { animation: none !important; } }

/* 360x640: the Build station and the Take order button fit, and a list that scrolls fades at its edge */
.bins.more, .item-grid.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }
@media (max-height: 700px) {
  .big-btn.take { bottom: 6px; min-height: 48px; padding: 6px 22px; font-size: 19px; }
  .build-top { padding-top: 2px; }
  .board-wrap { width: min(100%, 250px, calc((100vh - 520px) * 1.62)); min-width: 170px; }
  .want { padding: 3px 8px 2px; gap: 3px; }
  .bins { grid-auto-rows: 52px; gap: 4px; padding: 3px 8px; }
  .bin { height: 52px; padding-top: 2px; }
  .bin-pic { height: 30px; }
  .bin-name { font-size: 11px; line-height: 1.25; }
  .build-acts { padding: 4px 8px 6px; }
  .btn { min-height: 44px; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); grid-auto-rows: 72px; gap: 6px; padding: 4px 8px; }
  .item-grid .item-btn { height: 72px; }
  .item-grid .item-btn span { width: 38px; height: 38px; }
  .item-grid .item-btn b { font-size: 12.5px; }
  .tk-face { width: 28px; height: 28px; }
  .tk-item { width: 32px; height: 32px; }
  .tk-pips i { width: 10px; height: 10px; }
}
.swap-item::before { content: ""; position: absolute; inset: -8px -4px; }
.res-stats dt { white-space: nowrap; }
.res-stats dd.long { grid-column: 1 / -1; text-align: left; font-size: 13px; font-weight: 700; margin: -2px 0 4px; }
.res-stats dt:has(+ dd.long) { grid-column: 1 / -1; }

/* the trash bin: tap it, then tap food on the grill or in the pan to throw it away */
.pan-row { flex: none; display: flex; align-items: stretch; gap: 6px; margin: 4px 8px 0; }
.pan-row .pan { flex: 1 1 auto; min-width: 0; margin: 0; }
.trash { flex: none; width: 60px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; border: 0; border-radius: 12px; background: linear-gradient(#e6ebef, #c3ccd4); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 2px 0 rgba(0, 0, 0, 0.12); color: #3d4650; font: 800 12px/1 var(--font); cursor: pointer; }
.trash-pic { display: block; width: 34px; height: 34px; }
.trash-pic svg, .trash-pic img { display: block; width: 100%; height: 100%; }
.trash.on { background: linear-gradient(#ffd2c4, #f29a80); color: #6b1d0c; box-shadow: 0 0 0 3px #e2552f, 0 2px 0 rgba(0, 0, 0, 0.12); }
.trash.on .trash-pic { animation: binwob 0.5s ease-in-out infinite alternate; }
.trash.gulp .trash-pic { animation: bingulp 0.35s ease-out; }
@keyframes binwob { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes bingulp { 0% { transform: scale(1); } 40% { transform: scale(1.2, 0.85); } 100% { transform: scale(1); } }
.pan-p { border: 0; padding: 0; font: inherit; cursor: pointer; }
.st-grill.tossing .slot.full, .st-grill.tossing .pan-p { outline: 3px dashed #e2552f; outline-offset: 2px; border-radius: 10px; }
.st-grill.tossing .slot.full { animation: tosswig 0.4s ease-in-out infinite alternate; }
@keyframes tosswig { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.work-head .w-toss { margin-left: auto; flex: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 0; border-radius: 12px; background: #eef1f4; color: #3d4650; font: 800 13px/1 var(--font); cursor: pointer; }
.work-head .w-toss svg, .work-head .w-toss img { width: 26px; height: 26px; }
.work-head .w-toss.sure { background: #f29a80; color: #6b1d0c; box-shadow: 0 0 0 3px #e2552f; }
@media (prefers-reduced-motion: reduce) {
  .trash.on .trash-pic, .trash.gulp .trash-pic, .st-grill.tossing .slot.full { animation: none; }
}

/* ---------- painted station backdrops (Codex, see ART.md); the code-drawn walls step aside ---------- */
.st-order { background: url(assets/bg-order.webp) center bottom / cover no-repeat, linear-gradient(#ffe9c8 0 58%, #f7d9ae 58%); }
.st-order .wall { background: none; }
.st-order .wall::after, .st-order .door { display: none; }
.st-grill { background: url(assets/bg-grill.webp) center top / cover no-repeat, linear-gradient(#cfd8de 0 32%, #e9eef1 32%); }
.st-grill::before, .st-grill .hood { display: none; }
.st-build { background: url(assets/bg-build.webp) center top / cover no-repeat, linear-gradient(#ffe9c8, #f6d7ac); }
.st-finish { background: url(assets/bg-finish.webp) center top / cover no-repeat, linear-gradient(#ffe6d0, #f4d0a8); }
.needs-k, .pan-none { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.st-build .build-acts { background: linear-gradient(rgba(255, 246, 230, 0), rgba(255, 246, 230, 0.92) 30%); }
.work-empty p, .work-tip { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75); }
.work-empty p { background: rgba(255, 246, 230, 0.85); border-radius: 14px; padding: 10px 14px; }
/* over the painted cafe: the crew stands behind their own counter, no box or bunting of its own */
.sg-scened .title-art { background: none; box-shadow: none; border: 0; overflow: visible; }
.sg-scened .title-art .ta-papel { display: none; }

/* ---------- cooking juice (2026-11-29): looks only, never timing ---------- */
/* the grill's steam follows the doneness: thin while raw, full white in the good band, grey smoke past 120 */
.slot[data-zone="under"] .steam i { animation-duration: 2.1s; }
.slot[data-zone="top"] .steam i, .slot[data-zone="perfect"] .steam i { width: 13px; background: rgba(255, 255, 255, 0.75); animation-duration: 1.35s; }
.slot[data-zone="top"] .sizzle i, .slot[data-zone="perfect"] .sizzle i { animation-duration: 0.6s; }
.slot[data-zone="over"] .steam i { width: 14px; background: rgba(205, 198, 192, 0.75); animation-duration: 1.2s; }
.slot[data-zone="burnt"] .steam i { width: 20px; height: 32px; background: rgba(150, 140, 140, 0.85); filter: blur(3px); animation-duration: 1s; }
.slot[data-zone="burnt"] .sizzle i { background: #ff8a3a; animation-duration: 0.45s; }
.slot[data-zone="burnt"] .slot-meat { filter: saturate(0.8); }

/* a scoop lands: a ring of its colour spreads on the board */
.splat { position: absolute; width: 18%; aspect-ratio: 1.6; border: 3px solid; border-radius: 50%; transform: translate(-50%, -30%) scale(0.3); opacity: 0.8; pointer-events: none; animation: splat 0.5s ease-out forwards; }
@keyframes splat { to { transform: translate(-50%, -30%) scale(1.25); opacity: 0; } }

/* the press slams and the oven door thumps */
.dev-press.slam .press-lid { animation: lidslam 0.42s cubic-bezier(.6, 0, .4, 1.4) both; }
.dev.slam .dev-body { animation: devthump 0.5s ease-out; }
.dev-oven.slam .oven-glow { animation: ovenflare 0.6s ease-out; }
@keyframes lidslam { 0% { transform: rotate(-34deg); } 55% { transform: rotate(3deg); } 75% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
@keyframes devthump { 0%, 40% { transform: none; } 55% { transform: scale(1.05, 0.9); } 75% { transform: scale(0.98, 1.03); } 100% { transform: none; } }
@keyframes ovenflare { 0% { fill: #ffe08a; } 100% { fill: inherit; } }

/* the tip jar on the order counter */
.tipjar { position: absolute; left: 3%; bottom: calc(36% - 4px); width: 54px; z-index: 5; pointer-events: none; transform-origin: 50% 100%; }
.tipjar svg { display: block; width: 100%; }
.tipjar.jig { animation: jig 0.3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jig { 0% { transform: none; } 35% { transform: scale(1.08, 0.9) rotate(-3deg); } 70% { transform: scale(0.97, 1.05) rotate(2deg); } 100% { transform: none; } }
.hud-coins.pulse { animation: hudpulse 0.5s cubic-bezier(.2, 1.6, .5, 1); }

/* the customer's reaction bubble */
.emote { position: absolute; left: 58%; top: -2%; width: 58px; z-index: 3; transform-origin: 20% 100%; animation: emote 2.1s cubic-bezier(.2, 1.6, .5, 1) both; }
.emote svg { display: block; width: 100%; }
@keyframes emote { 0% { transform: scale(0.2) translateY(20px); opacity: 0; } 14% { transform: scale(1.15, 0.9); opacity: 1; } 24% { transform: scale(0.96, 1.05); } 32%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.9) translateY(-8px); opacity: 0; } }

/* the grade lands like a rubber stamp, the card takes the hit */
.sc-total { position: relative; }
.scorecard.show { animation: popin 0.4s cubic-bezier(.2, 1.5, .5, 1) 0.4s both, cardhit 0.22s ease-out 1.05s; }
.scorecard.show .sc-total b { display: inline-block; animation: stampin 0.3s cubic-bezier(.55, 0, .85, .4) 0.75s both; }
@keyframes stampin { 0% { transform: scale(2.8) rotate(-14deg); opacity: 0; } 80% { transform: scale(0.94) rotate(-3deg); opacity: 1; } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }
@keyframes cardhit { 0% { transform: none; } 30% { transform: translateY(3px) scale(1.015, 0.98); } 60% { transform: translateY(-1px); } 100% { transform: none; } }
.sc-stamp { position: relative; display: inline-block; align-self: center; margin-left: 4px; padding: 1px 8px; border: 3px double #d79a10; border-radius: 8px; color: #c27c00; font: 800 15px/1.2 var(--font); font-style: normal; letter-spacing: 1px; text-transform: uppercase; transform: rotate(9deg); background: rgba(255, 246, 200, 0.6); animation: stampin2 0.28s cubic-bezier(.55, 0, .85, .4) 1.2s both; }
@keyframes stampin2 { 0% { transform: scale(2.6) rotate(20deg); opacity: 0; } 80% { transform: scale(0.95) rotate(9deg); opacity: 1; } 100% { transform: scale(1) rotate(9deg); opacity: 1; } }

/* the perfect ticket: light fans out behind the customer and a gold ring bursts off the plate */
.rays { position: absolute; left: 50%; top: 42%; width: 340px; height: 340px; margin: -170px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 214, 80, 0.5) 0 10deg, rgba(255, 214, 80, 0) 10deg 24deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
  animation: rays 1.8s ease-out forwards; }
@keyframes rays { 0% { transform: scale(0.3) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.1) rotate(50deg); opacity: 0; } }
.gold-ring { position: fixed; width: 40px; height: 40px; margin: -20px; border: 5px solid var(--gold, #ffc93c); border-radius: 50%; pointer-events: none; animation: goldring 0.8s ease-out forwards; }
@keyframes goldring { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(4); opacity: 0; border-width: 1px; } }
.pickup.glow { filter: drop-shadow(0 0 14px rgba(255, 200, 40, 0.9)); }

@media (prefers-reduced-motion: reduce) {
  .splat, .rays, .gold-ring { display: none; }
  .dev.slam .dev-body, .dev-press.slam .press-lid, .tipjar.jig, .hud-coins.pulse { animation: none !important; }
  .emote { animation: none; }
  .scorecard.show { animation: none; }
  .scorecard.show .sc-total b, .sc-stamp { animation: none; transform: rotate(-3deg); }
  .sc-stamp { transform: rotate(9deg); }
}
