:root {
  color-scheme: light;
  font-family: ui-rounded, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #492832;
  --muted: #684d52;
  --cream: #fffaf1;
  --peach: #fce9dc;
  --line: #d9b3a6;
  --berry: #8f3d55;
  --leaf: #58703b;
  --sage: #dfe7ca;
  --shadow: 0 4px 9px #8855451f;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; color: var(--ink); background: radial-gradient(ellipse at top, #fff8ec, #eadfd1 78%); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
button:disabled { cursor: default; }
img { display: block; object-fit: contain; }
h1, h2, p { margin: 0; }
.shop-app { display: flex; flex-direction: column; min-height: 100dvh; max-width: 980px; margin: 0 auto; background: #fff8ec; box-shadow: 0 0 48px #72543c30; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: max(7px, env(safe-area-inset-top)) 12px 8px; min-height: 57px; background: #fffaf1; border-bottom: 1px solid #dfc5b5; }
.wordmark { display: flex; align-items: center; gap: 5px; color: var(--ink); font-size: 1.23rem; line-height: 1; font-weight: 850; text-decoration: none; white-space: nowrap; }
.wordmark img { width: 38px; height: 38px; padding: 1px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.wallet, .pause-button, .clock { background: linear-gradient(155deg, #fffaf0, #fce6d6); border: 1.5px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 #fffdf6; }
.wallet { display: flex; align-items: center; gap: 5px; padding: 3px 9px; min-width: 56px; min-height: 33px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.coin { display: inline-grid; place-content: center; width: 19px; height: 19px; flex: none; border-radius: 50%; border: 1px solid #bf8540; box-shadow: inset 0 0 0 1px #ffe8a7; color: #976022; background: linear-gradient(#ffe3a2, #efb964); font-size: .72rem; }
.pause-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; }
.pause-button span { width: 14px; height: 16px; border: solid var(--ink); border-width: 0 4px; border-radius: 3px; }
.sound-button { min-width: 44px; min-height: 44px; padding: 0 5px; border-radius: 13px; border: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: .875rem; font-weight: 800; }
.sound-button[data-muted="true"] { text-decoration: line-through; background: #f1e5db; }
.primary, .quiet { min-height: 45px; padding: 6px 15px; border-radius: 14px; font-weight: 800; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.primary { color: #fff8f3; border: 1.5px solid #a45064; background: linear-gradient(180deg, #b85873, #8f3d55); box-shadow: 0 3px 0 #753045, 0 6px 14px #8f3d5533, inset 0 1px 0 #ffd0d985; }
.primary:hover:not(:disabled) { filter: brightness(1.04); }
.primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #753045; }
.primary:disabled { color: #654b58; background: #f2e5e9; border-color: #cfb4bd; box-shadow: none; }
.quiet { background: linear-gradient(180deg, #fffcf6, #f7e4d5); border: 1.5px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 #fff; }
.quiet:hover:not(:disabled) { background: linear-gradient(180deg, #fffdf9, #fbead9); }
.wide { width: min(100%, 340px); }
.hero, .closing-scene { background: #faead7 url('./art/diner/food-truck-landscape.webp') center / cover no-repeat; }
.hero { width: 100%; object-fit: cover; aspect-ratio: 1672 / 941; }
.rotate-hint { display: none; }
@media (orientation: portrait) and (max-width: 650px) {
  .rotate-hint { display: block; margin: 9px 0 0; color: #68504c; font-size: .875rem; }
}
@media (min-width: 660px) {
  .lobby { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(300px, 1fr); align-items: center; gap: 6px; padding: 12px 12px 0; }
  .lobby .hero { height: 100%; border-radius: 18px; border: 2px solid #e7c9b6; box-shadow: 0 6px 20px #88554524; }
}
.lobby-content { padding: 15px 14px 10px; text-align: center; }
.lobby h1, .settlement h1 { font-size: clamp(1.85rem, 7vw, 2.43rem); letter-spacing: .02em; line-height: 1.2; }
#lobby-day { color: var(--muted); font-size: .99rem; margin: 6px 0 13px; font-weight: 700; }
.day-picker { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.day-button { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #fffdf8, #fae9dc); border: 1.5px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 #fff; font-weight: 850; transition: transform .12s ease, border-color .12s ease; }
.day-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #c28e7d; }
.day-button[data-complete="true"] { border-color: #96a874; background: linear-gradient(180deg, #f1f6e5, #dfe9cb); color: #475b2e; }
.day-button:disabled { background: #f2e5dd; color: #9c8482; box-shadow: none; }
.equipment { margin: 13px 12px max(13px, env(safe-area-inset-bottom)); padding: 12px; background: #fffdf7; border: 1.5px solid #e2c4b3; border-radius: 20px; box-shadow: 0 5px 14px #8855451a; }
.equipment h2 { font-size: 1.02rem; margin: 1px 2px 9px; color: #5b373d; }
.upgrade-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.upgrade {
  min-width: 0;
  padding: 7px 6px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #fffcf6, #fbe8db);
  border: 1.5px solid #dfb9a8;
  border-radius: 15px;
  box-shadow: 0 2px 6px #88554514, inset 0 1px 0 #fff;
  transition: transform .12s ease, border-color .12s ease;
}
.upgrade:hover:not(:disabled) { transform: translateY(-1px); border-color: #c38a7a; }
.upgrade img { width: 58px; height: 47px; filter: drop-shadow(0 2px 3px #8a564026); }
.upgrade-info { display: grid; line-height: 1.3; gap: 2px; justify-items: center; text-align: center; font-size: .83rem; }
.upgrade-info strong { font-size: .94rem; }
.upgrade .price { color: #844e18; font-weight: 820; }
.upgrade[data-owned="true"] { border-color: #9aab78; background: linear-gradient(180deg, #f3f7e8, #e6edd5); }
.upgrade[data-owned="true"] .price { color: #4a6232; }

.shop-app[data-screen="game"] {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  min-height: 100dvh;
  max-width: none;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: var(--safe-top) env(safe-area-inset-right, 0px) var(--safe-bottom) env(safe-area-inset-left, 0px);
  background: #34271f;
}
.shop-app[data-screen="game"] .topbar { display: none; }
.game {
  width: min(100%, calc((100dvh - var(--safe-top) - var(--safe-bottom)) * 16 / 9));
  aspect-ratio: 16 / 9;
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  background: #f6e5c9 url('./art/diner/food-truck-gameplay.webp') center / 100% 100% no-repeat;
  box-shadow: 0 0 48px #1b110c88;
}
.shift-heading {
  position: absolute;
  z-index: 5;
  top: 1.8%;
  left: 2.6%;
  right: 2.6%;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1cqw, 10px);
  pointer-events: none;
}
.shift-title, .clock, .game .sound-button, .game .pause-button {
  border: 1.5px solid #d5a382;
  background: linear-gradient(180deg, #fffdf8f7, #fcecdcf5);
  box-shadow: 0 3px 8px #5c311c2e, inset 0 1px 0 #ffffffd9;
}
.shift-title {
  display: flex;
  align-items: baseline;
  gap: 4px clamp(6px, 1.1cqw, 12px);
  flex-wrap: wrap;
  padding: 4px clamp(8px, 1.25cqw, 14px);
  border-radius: 99px;
  white-space: nowrap;
}
.shift-title > span { color: #8c4d4a; font-size: clamp(.68rem, 1.45cqw, .88rem); font-weight: 800; }
.shift-title h1 { font-size: clamp(.75rem, 1.85cqw, 1.04rem); font-weight: 850; color: #4d282e; }
.shift-stats { display: flex; gap: 8px; color: #6d4743; font-size: clamp(.68rem, 1.45cqw, .88rem); font-weight: 760; padding-left: 6px; border-left: 1px solid #e1beaa; }
.clock { margin-left: auto; display: flex; align-items: baseline; gap: 3px; padding: 4px 11px; border-radius: 99px; font-size: clamp(.68rem, 1.5cqw, .88rem); color: #6b433f; font-weight: 750; white-space: nowrap; }
.clock strong { font-size: clamp(.92rem, 2.55cqw, 1.42rem); line-height: 1; font-variant-numeric: tabular-nums; color: #4d262f; }
.clock[data-low="true"] { color: #8d2640; background: linear-gradient(180deg, #fff5f5, #ffdbe0); border-color: #c76278; }
.clock[data-low="true"] strong { color: #9c1f3c; }
.game .top-actions { gap: clamp(4px, .7cqw, 8px); pointer-events: auto; }
.game .sound-button, .game .pause-button { width: clamp(34px, 5.2cqw, 42px); height: clamp(34px, 5.2cqw, 42px); min-width: 0; min-height: 0; padding: 0; border-radius: 50%; font-size: clamp(.65rem, 1.35cqw, .82rem); }
.service-window, .workbench, .stations { position: absolute; inset: 0; pointer-events: none; }
.window-queue {
  position: absolute;
  left: 6.8%;
  width: 19.5%;
  top: 15%;
  bottom: 61.5%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
}
.queue-guest { width: 48%; height: 80%; object-position: center bottom; margin-right: -18%; filter: saturate(.88) drop-shadow(0 3px 4px #754e3438); transition: transform .25s ease; }
.queue-guest:first-child:not(:last-child) { width: 42%; height: 68%; transform: translateY(-6%); opacity: .92; }
.queue-guest:nth-last-child(2) { width: 45%; height: 75%; transform: translateY(-3%); }
.queue-count {
  position: absolute;
  left: 8%;
  top: 37.6%;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid #d7b194;
  color: #6a4232;
  background: #fff8ece8;
  box-shadow: 0 2px 4px #6b412824;
  font-size: clamp(.62rem, 1.3cqw, .8rem);
  font-weight: 800;
  white-space: nowrap;
}
.orders {
  position: absolute;
  left: 27%;
  right: 36.8%;
  top: 11.5%;
  bottom: 58.6%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5%;
}
.orders.single { left: 32.5%; right: 37.2%; }
.guest-card {
  flex: 1 1 0;
  isolation: isolate;
  min-width: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2px, .6cqw, 7px);
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  background: transparent;
  pointer-events: auto;
  transition: transform .18s ease, filter .18s ease;
}
.guest-card[data-selected="false"] { opacity: .93; }
.guest-card[data-selected="true"] { transform: translateY(-2%); }
.guest-identity {
  position: relative;
  flex: 1 1 58%;
  min-width: 0;
  height: 92%;
  display: grid;
  place-items: end center;
}
.orders.single .guest-identity { flex: 0 1 64%; height: 96%; }
.avatar {
  width: 100%;
  height: 100%;
  object-position: center bottom;
  filter: drop-shadow(0 4px 5px #6b432b3d);
}
.guest-card[data-selected="true"] .avatar {
  filter: drop-shadow(0 5px 8px #b5656b44);
}
.guest-spark {
  display: none;
  position: absolute;
  top: 22%;
  right: 2%;
  width: clamp(14px, 2.2cqw, 26px);
  height: clamp(14px, 2.2cqw, 26px);
  pointer-events: none;
}
.orders.single .guest-spark { top: 2%; right: 4%; }
.guest-card[data-selected="true"] .guest-spark {
  display: block;
  background:
    radial-gradient(closest-side, #e67683 85%, transparent 100%) 16% 12% / 26% 62% no-repeat,
    radial-gradient(closest-side, #e67683 85%, transparent 100%) 56% 24% / 26% 58% no-repeat,
    radial-gradient(closest-side, #e67683 85%, transparent 100%) 82% 58% / 50% 24% no-repeat;
  transform: rotate(12deg);
}
.order-board {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, .35cqw, 4px);
  padding: clamp(5px, .85cqw, 10px) clamp(4px, .65cqw, 8px) clamp(4px, .6cqw, 7px);
  margin-bottom: 1%;
  border-radius: clamp(7px, 1cqw, 12px);
  border: 2px solid #c99a74;
  background: linear-gradient(180deg, #fffdf7, #fdf2df);
  box-shadow: 0 4px 10px #6d412830, inset 0 1px 0 #ffffff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.orders.single .order-board {
  transform: rotate(2.5deg);
  padding: clamp(6px, 1cqw, 12px) clamp(6px, .9cqw, 11px) clamp(5px, .7cqw, 8px);
}
.order-board::before {
  content: "";
  position: absolute;
  top: clamp(-5px, -.65cqw, -3px);
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: clamp(6px, .9cqw, 10px);
  border-radius: 4px 4px 3px 3px;
  border: 1.5px solid #96877b;
  background: linear-gradient(180deg, #e7dfd6, #bdb2a7);
  box-shadow: 0 1px 2px #583a2833;
}
.guest-card[data-selected="true"] .order-board {
  border-color: #7d9b58;
  box-shadow: 0 0 0 2px #b6cc92, 0 5px 12px #5c492d38, inset 0 1px 0 #ffffff;
}
.guest-person {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  color: #5b3430;
  white-space: nowrap;
}
.guest-person strong {
  font-size: clamp(.6rem, 1.25cqw, .78rem);
  font-weight: 850;
  line-height: 1.1;
}
.selected-order {
  padding: 1px 4px;
  border-radius: 99px;
  color: #365028;
  border: 1px solid #95ad72;
  background: #e3edd0;
  font-size: clamp(.54rem, 1.05cqw, .68rem);
  font-weight: 850;
  line-height: 1.1;
}
.guest-alert {
  display: none;
  position: absolute;
  top: 2%;
  left: 4%;
  padding: 2px 6px;
  border-radius: 99px;
  border: 1.5px solid #c9687a;
  background: #fff0f0;
  color: #982542;
  font-size: clamp(.6rem, 1.3cqw, .8rem);
  font-weight: 850;
  box-shadow: 0 2px 4px #7b2d3b2b;
}
.guest-card[data-urgent="true"] { animation: table-tap .25s ease-out; }
.guest-card[data-urgent="true"] .guest-alert { display: block; }
@keyframes table-tap { 33% { transform: translateX(-2px); } 68% { transform: translateX(2px); } }
.order-dishes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, .35cqw, 4px);
}
.order-dish {
  position: relative;
  display: block;
  width: clamp(18px, 3.2cqw, 36px);
  min-width: 0;
}
.orders.single .order-dish { width: clamp(22px, 3.9cqw, 44px); }
.order-dish img { width: 100%; aspect-ratio: 1; filter: drop-shadow(0 1px 2px #7a4b302b); }
.order-dish[data-packed="true"] img { opacity: .42; filter: grayscale(.25); }
.order-dish[data-packed="true"]::after {
  content: "✓";
  position: absolute;
  top: -2px;
  right: -3px;
  width: clamp(12px, 1.6cqw, 18px);
  height: clamp(12px, 1.6cqw, 18px);
  display: grid;
  place-items: center;
  background: #6c9149;
  color: #fffdf6;
  border: 1.5px solid #fffdf6;
  border-radius: 50%;
  font-size: clamp(.52rem, .95cqw, .68rem);
  font-weight: 900;
}
.patience {
  width: 100%;
  min-width: clamp(28px, 4.2cqw, 48px);
  height: clamp(4px, .55cqw, 6px);
  border-radius: 99px;
  background: #ebd8c2;
  overflow: hidden;
  box-shadow: inset 0 1px 1px #8c654830;
}
.patience > span { display: block; height: 100%; background: linear-gradient(90deg, #7ea457, #618642); border-radius: inherit; transition: width .12s linear; }
.patience > span[data-low="true"] { background: linear-gradient(90deg, #dc6476, #b93652); }
.empty-seat { display: none; }
.handoff {
  position: absolute;
  display: grid;
  place-items: center;
  left: 62.9%;
  width: 25.6%;
  top: 31.3%;
  height: 9.2%;
  border-radius: 9% / 31%;
  pointer-events: auto;
  transition: box-shadow .18s ease, transform .18s ease;
}
.handoff button {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #7ca152b8, #5c7f38cc);
  color: #fffdf4;
  text-shadow: 0 1px 3px #283f18c7;
  font-weight: 850;
  font-size: clamp(.72rem, 1.9cqw, 1.06rem);
  letter-spacing: .04em;
  transition: background .18s ease, transform .14s ease;
}
.handoff button:disabled { background: transparent; color: #52613db8; text-shadow: 0 1px 0 #f7f4d894; pointer-events: none; }
.handoff[data-ready="true"] {
  outline: 2.5px solid #759a4b;
  outline-offset: -2px;
  box-shadow: 0 0 0 4px #d6e8b899, 0 4px 12px #4c6c2d3b;
}
.handoff.receive, .guest-card.receive .order-board { outline: 3px solid #567d39; outline-offset: 2px; }
.tray {
  position: absolute;
  left: 34.4%;
  width: 40.8%;
  top: 70.8%;
  height: 19%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.9% 1.35% 1.1%;
  border-radius: 7%;
}
.tray-head {
  position: absolute;
  right: 2.8%;
  top: -9%;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid #d4adc7;
  color: #5d304e;
  background: #fff6faef;
  box-shadow: 0 2px 4px #6b3d5924;
  font-size: clamp(.6rem, 1.35cqw, .82rem);
  font-weight: 820;
  pointer-events: none;
}
.tray-dishes { width: 100%; height: 100%; display: grid; grid-template-columns: 1.16fr 1fr .83fr; grid-template-rows: minmax(0, 1fr); gap: 3%; touch-action: none; }
.tray[data-ready="true"] .tray-dishes { cursor: grab; }
.tray-dish { position: relative; min-width: 0; border-radius: 11% / 22%; transition: background .15s ease; }
.tray-dish img { position: absolute; inset: 5% 10%; width: 80%; height: 90%; opacity: .24; }
.tray-dish[data-packed="true"] img { opacity: 1; filter: drop-shadow(0 4px 4px #65404d66); }
.tray-dish[data-drop="true"] { outline: 2px solid #5f8642; background: #e9f3cf80; }
.tray-dish[data-drop="true"] img { opacity: .66; }
.message {
  position: absolute;
  z-index: 3;
  inset: auto 15% 1.3%;
  width: fit-content;
  max-width: 70%;
  margin-inline: auto;
  padding: 4px clamp(10px, 1.5cqw, 16px);
  border-radius: 99px;
  border: 1px solid #a88267;
  color: #fff9ef;
  background: linear-gradient(180deg, #6d4c3be8, #53382be8);
  box-shadow: 0 3px 8px #26191042, inset 0 1px 0 #ffffff24;
  font-size: clamp(.66rem, 1.65cqw, .92rem);
  line-height: 1.25;
  font-weight: 760;
  text-align: center;
  text-wrap: balance;
}
.station {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 13% / 16%;
  background: transparent;
  touch-action: none;
  pointer-events: auto;
  cursor: grab;
}
.station, .tray-dishes { -webkit-touch-callout: none; user-select: none; }
.station[data-dragging] { cursor: grabbing; }
.station[data-kind="burger"] { left: 1.4%; width: 32.2%; top: 46.4%; height: 44.7%; }
.station[data-kind="fries"] { left: 38.8%; width: 22.2%; top: 43.2%; height: 25.8%; }
.station[data-kind="cola"], .soda-unavailable { left: 78.8%; width: 18.5%; top: 41%; height: 48%; }
.station-target { position: absolute; inset: 0; pointer-events: none; border-radius: 10% / 17%; }
.station[data-kind="burger"] .station-target { inset: 3% 5% 54% 5%; }
.station-target[data-drop="true"] { outline: 2px dashed #fff5c8; outline-offset: -3px; background: #d4e4a324; }
.station-piece, .pan-meat { position: absolute; pointer-events: none; }
.station-piece { z-index: 1; filter: drop-shadow(0 3px 3px #744f3654); }
.pan-meat { left: 14%; width: 36%; top: 31%; height: 65%; }
.station-target > .cooking-fx { inset: -32% 45% 6% 8%; z-index: 2; overflow: visible; }
.station[data-kind="fries"] .cooking-fx { inset: 2% 9% 36%; }
.station[data-kind="burger"] .station-piece { left: 6%; top: 67%; width: 36%; height: 25%; opacity: 0; }
.station[data-kind="burger"][data-phase="assemble"] .station-piece { left: 46%; width: 46%; }
.station[data-kind="burger"][data-phase="ready"] .station-piece { left: 18%; top: 9%; width: 42%; height: 36%; opacity: 1; }
.station[data-kind="fries"] .station-piece {
  width: 82%;
  height: 70%;
  left: 9%;
  top: 2%;
  transform: translateY(var(--pulled, 0px));
  filter: var(--fry-filter, saturate(1)) drop-shadow(0 4px 4px #744f3652);
  transition: top .18s ease-out;
}
.station[data-kind="fries"][data-phase="cooking"] .station-piece,
.station[data-kind="fries"][data-phase="lift"] .station-piece { top: 13%; clip-path: inset(0 0 22% 0); }
.station[data-kind="fries"][data-phase="ready"] .station-piece { width: 48%; height: 64%; left: 27%; top: 8%; }
.station[data-kind="fries"][data-dragging] .station-piece { transition: none; clip-path: none; }
.station[data-kind="cola"] .station-piece { width: 46%; height: 48%; left: 32%; top: 40%; }
.station[data-dragging="pack"] .station-piece { opacity: .38; }
.station-stock, .station-action, .soda-unavailable {
  position: absolute;
  z-index: 3;
  border: 1.5px solid #cfa384;
  border-radius: 99px;
  padding: 2px clamp(6px, 1cqw, 10px);
  color: #5b3a2e;
  background: linear-gradient(180deg, #fffdf8f2, #fbeadcf0);
  box-shadow: 0 2px 5px #57331f2e, inset 0 1px 0 #ffffff;
  white-space: nowrap;
  font-size: clamp(.62rem, 1.45cqw, .86rem);
  line-height: 1.25;
  font-weight: 830;
  pointer-events: none;
}
.station-action { left: 50%; bottom: 4%; transform: translateX(-50%); }
.station[data-kind="burger"] .station-action { top: 6%; bottom: auto; left: auto; right: 7%; transform: none; }
.station[data-kind="fries"] .station-action { bottom: 3%; left: 60%; }
.station[data-phase="cooking"] .station-action { color: #6c421e; border-color: #c79a6c; background: linear-gradient(180deg, #fff7e2, #ffe5b8); }
.station[data-phase="ready"] .station-action, .station[data-phase="assemble"] .station-action, .station[data-phase="lift"] .station-action { color: #315228; border-color: #84a168; background: linear-gradient(180deg, #f3f9e8, #ddebc9); }
.station-stock { right: 4%; top: 8%; color: #304c2a; border-color: #7f9b66; background: #e8f1d8; }
.station-meter { position: absolute; z-index: 2; left: 22%; bottom: -2%; width: 56%; height: clamp(4px, .6cqw, 6px); border-radius: 99px; background: #fff0d4; overflow: hidden; visibility: hidden; box-shadow: 0 1px 3px #5c3a2033; }
.station[data-kind="burger"] .station-meter { top: 44%; bottom: auto; }
.station[data-phase="cooking"] .station-meter { visibility: visible; }
.station-meter > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #7ea457, #5e8440); }
.soda-unavailable { left: 88%; top: auto; bottom: 11.5%; width: auto; height: auto; transform: translateX(-50%); }
.pour-stream { position: absolute; z-index: 2; width: 2.2%; height: 19%; top: 39%; left: 53.3%; border-radius: 3px; background: repeating-linear-gradient(#e7ba77 0 4px, #8e482b 4px 8px); background-size: 100% 8px; opacity: 0; }
.station[data-kind="cola"][data-phase="cooking"]:not([data-flow="paused"]) .pour-stream { opacity: .95; animation: pouring .26s linear infinite; }
.cup-view {
  position: absolute;
  top: 52.5%;
  left: 35%;
  width: 39%;
  height: 31%;
  overflow: hidden;
  border: 2px solid #fff4e6;
  border-top-width: 3px;
  border-radius: 16% 16% 24% 24% / 8% 8% 22% 22%;
  clip-path: polygon(2% 0, 98% 0, 86% 100%, 14% 100%);
  background:
    linear-gradient(90deg, #7a423638 0%, #fffaf238 34%, #ffffff10 62%, #6e362c44 100%),
    repeating-linear-gradient(90deg, #f9e6d8 0 18%, #de8e8a 18% 36%);
  box-shadow: inset 0 5px 6px #78422a40, inset 0 -4px 6px #5d2f2438;
  filter: drop-shadow(0 4px 3px #4b2b1f48);
}
.cup-view::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 10%;
  border-radius: 50%;
  background: #fff4e8;
  opacity: .75;
}
.station[data-kind="cola"][data-phase="ready"] .cup-view { display: none; }
.cup-liquid {
  position: absolute;
  inset: 10% 6% 4%;
  border-radius: 14% 14% 20% 20%;
  background: linear-gradient(180deg, #c97f4a 0%, #8b4222 18%, #632b17 100%);
  transform: scaleY(0);
  transform-origin: center bottom;
}
@keyframes pouring { to { background-position: 0 8px; } }
.shop-app:has(#pause-dialog[open]) .pour-stream { animation-play-state: paused; }
@container (max-width: 550px) {
  .shift-stats #takings, .shift-title h1, .selected-order { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (orientation: portrait) and (max-width: 650px) {
  .rotate-game { margin: 10px 8px 0; color: #fff4e3; }
}
.food-ghost { position: fixed; z-index: 20; display: flex; pointer-events: none; width: 65px; height: 65px; transform: translate(-50%, -77%); filter: drop-shadow(0 6px 4px #8550403a); }
.food-ghost img { flex: 1; min-width: 0; max-width: 100%; height: 100%; }
.food-ghost.tray-ghost { align-items: center; width: 122px; height: 57px; padding: 5px 7px; border-radius: 16px; border: 2px solid #c096b3; background: linear-gradient(150deg, #f9e9f4, #ddbad5); }
.feedback-effects { position: fixed; inset: 0; z-index: 21; pointer-events: none; overflow: hidden; }
.fx-flight { position: absolute; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; filter: drop-shadow(0 5px 4px #85504033); }
.fx-flight img { flex: 1; min-width: 0; height: 100%; }
.fx-tray { width: 113px; height: 47px; margin: -23px 0 0 -56px; padding: 3px 5px; border-radius: 14px; border: 2px solid #c096b3; background: #f6e4ef; }
.fx-receipt { position: absolute; display: flex; align-items: center; gap: 3px; width: 86px; height: 45px; margin: -50px 0 0 -37px; transform-origin: 42% 80%; }
.fx-receipt img { width: 49px; height: 43px; filter: drop-shadow(0 1px 2px #fff5e9); }
.fx-earn { color: #6f4a13; border-radius: 12px; background: #ffe8b5; border: 1px solid #d9ab69; padding: 2px 6px; margin-left: -3px; font-weight: 900; font-size: .9rem; white-space: nowrap; }
.fx-oil-drop { position: absolute; width: 5px; height: 8px; border-radius: 65% 65% 70% 70%; background: linear-gradient(#ffe2a6, #d98f50); }
.settlement { text-align: center; margin: 0 12px; }
.closing-scene { display: grid; place-items: end center; border: 1px solid var(--line); border-radius: 19px; margin-bottom: 12px; height: clamp(144px, 30dvh, 244px); }
.closing-scene img { height: 80%; width: 53%; object-position: bottom; }
#result-text { margin: 8px auto 13px; color: var(--muted); max-width: 27ch; line-height: 1.52; }
.result-actions, .dialog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
dialog { width: min(92%, 378px); color: var(--ink); background: var(--cream); border: 2px solid var(--line); border-radius: 22px; box-shadow: 0 10px 36px #7d4a4b3d; }
dialog h2 { text-align: center; margin-bottom: 12px; }
dialog::backdrop { background: #5731367f; }
@media (max-width: 350px) {
  .upgrade-info { font-size: .78rem; }
  .wallet { min-width: 47px; }
  .wordmark { font-size: 1.12rem; }
}
@media (min-width: 660px) {
  .upgrade { grid-template-columns: auto 1fr; justify-items: start; padding: 8px 12px; }
  .upgrade-info { justify-items: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .station[data-kind="cola"][data-phase="cooking"] .pour-stream, .guest-card[data-urgent="true"] { animation: none; }
  .station[data-kind="fries"] .station-piece { transition: none; }
}
