:root {
  --ink: #432613;
  --ink-soft: #6f4528;
  --cream: #fbf1dc;
  --cream-card: #fff8ea;
  --amber: #f59c2f;
  --amber-deep: #d9761c;
  --amber-light: #ffe7b0;
  --red-dot: #ef4438;
  --green-bar: #2ea86f;
  --orange-bar: #ee8236;
  --red-bar: #e3483f;
  --font-main: 'Fredoka', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  background: #2f2014;
  color: var(--ink);
}

.stage-backdrop {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 224, 168, 0.2), transparent 60%),
    linear-gradient(180deg, #3c2919 0%, #24170e 100%);
}

.game-shell {
  position: relative;
  width: min(100vw, calc(100vh * 686 / 1140));
  height: min(100vh, calc(100vw * 1140 / 686));
  max-width: 520px;
  max-height: 920px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  background: #f3e4c5;
}

@media (min-width: 600px) {
  .game-shell {
    border-radius: 22px;
    border: 4px solid #4e311a;
  }
}

/* Scene Layer */
.scene-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

/* Warm Lantern Glows */
.lantern-glow {
  position: absolute;
  top: 19%;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 120, 0.48) 0%, rgba(255, 190, 80, 0.16) 48%, transparent 72%);
  pointer-events: none;
  animation: lanternPulse 3.4s ease-in-out infinite;
}

.lantern-glow-left {
  left: 4%;
}

.lantern-glow-right {
  right: -2.5%;
  animation-delay: 1.5s;
}

@keyframes lanternPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Steam Particles */
.steam-cluster {
  position: absolute;
  pointer-events: none;
  width: 14%;
  height: 10%;
}

.steam-steamer {
  left: 24.5%;
  top: 22.5%;
}

.steam-soymilk {
  left: 73%;
  top: 23.5%;
}

.steam-wisp {
  position: absolute;
  bottom: 0;
  left: 35%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
  animation: steamRise 2.8s ease-out infinite;
}

.steam-wisp.delay-1 {
  left: 52%;
  animation-delay: 0.9s;
  width: 18px;
  height: 18px;
}

.steam-wisp.delay-2 {
  left: 20%;
  animation-delay: 1.8s;
  width: 26px;
  height: 26px;
}

@keyframes steamRise {
  0% { transform: translateY(8px) scale(0.6); opacity: 0; }
  25% { opacity: 0.75; }
  100% { transform: translateY(-48px) translateX(8px) scale(1.7); opacity: 0; }
}

/* Staff Actors */
.staff-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36.8%;
  overflow: hidden;
  pointer-events: none;
}

.staff-actor {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: bottom center;
  animation: gentleBob 2.6s ease-in-out infinite;
}

.staff-actor img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 2px rgba(55, 30, 12, 0.22));
}

.staff-grandpa {
  left: 36.2%;
  top: 54.5%;
  width: 15.2%;
}

.staff-young-chef {
  left: 55.2%;
  top: 57%;
  width: 16.5%;
  animation-delay: 0.7s;
}

.staff-actor.is-cooking {
  animation: cookShake 0.35s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes cookShake {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-2deg); }
  75% { transform: translateY(-1px) rotate(2deg); }
}

/* Countertop Stock Badges */
.counter-prop-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.counter-badge {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid #e7a035;
  background: #fff9eb;
  box-shadow: 0 3px 6px rgba(60, 30, 10, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform 0.14s ease, opacity 0.2s ease;
}

.counter-badge:active {
  transform: translate(-50%, -50%) scale(0.92);
}

.counter-badge-steamer {
  left: 30.8%;
  top: 29.6%;
}

.counter-badge-soymilk {
  left: 82.8%;
  top: 32.4%;
}

.counter-badge.is-empty {
  opacity: 0.55;
  border-color: #a68b72;
}

.badge-icon-wrap {
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.badge-count-pill {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #472814;
  color: #fff5df;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1.5px solid #f7cf86;
  line-height: 1.15;
}

.griddle-sizzle-fx {
  position: absolute;
  left: 58%;
  top: 34.5%;
  width: 42px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.griddle-sizzle-fx.active {
  opacity: 1;
}

.sizzle-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd15c;
  animation: sparkPop 0.5s ease-out infinite;
}

.sizzle-spark:nth-child(2) {
  left: 24px;
  animation-delay: 0.25s;
}

@keyframes sparkPop {
  0% { transform: translateY(0) scale(0.6); opacity: 1; }
  100% { transform: translateY(-16px) scale(1.3); opacity: 0; }
}

/* Top HUD */
.top-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  pointer-events: none;
}

.top-hud > * {
  pointer-events: auto;
}

.money-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(61, 39, 22, 0.92), rgba(38, 23, 12, 0.94));
  border: 2px solid #8a6035;
  box-shadow: 0 4px 10px rgba(32, 16, 6, 0.35), inset 0 1px 0 rgba(255, 224, 168, 0.25);
  cursor: pointer;
  transition: transform 0.12s;
}

.money-pill:active {
  transform: scale(0.97);
}

.money-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd875, #df8825);
  border: 2px solid #593314;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.money-icon-circle svg {
  width: 100%;
  height: 100%;
}

.money-value {
  font-size: 19px;
  font-weight: 800;
  color: #ffe39a;
  line-height: 1.05;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.income-rate {
  font-size: 11px;
  font-weight: 600;
  color: #f3d5a5;
  line-height: 1.15;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid #72270f;
  color: #fffdf5;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(70, 28, 10, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.12s, filter 0.15s;
}

.pill-btn:active {
  transform: translateY(2px);
}

.attract-btn {
  background: linear-gradient(180deg, #ff7e4a 0%, #e14d28 100%);
  border-color: #7c230f;
}

.boost-btn {
  background: linear-gradient(180deg, #ffbe3b 0%, #f3851d 100%);
  border-color: #824007;
  min-width: 62px;
  justify-content: center;
}

.boost-btn.is-active {
  animation: boostGlow 1s ease-in-out infinite;
}

@keyframes boostGlow {
  0%, 100% { box-shadow: 0 0 0 2px #ffe678, 0 4px 12px rgba(255, 168, 30, 0.6); }
  50% { box-shadow: 0 0 0 4px #fff3a1, 0 4px 18px rgba(255, 188, 50, 0.9); }
}

.attract-cooldown-bar,
.boost-timer-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: rgba(110, 20, 8, 0.72);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.15s linear;
}

.btn-icon-svg {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-svg svg {
  width: 100%;
  height: 100%;
}

.round-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #8a6035;
  background: linear-gradient(180deg, #4b311d 0%, #2f1d10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(32, 16, 6, 0.35);
}

.round-icon-btn:active {
  transform: scale(0.92);
}

/* Side Menu Tiles */
.side-menu {
  position: absolute;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 25;
}

.side-menu-left {
  left: 8px;
}

.side-menu-right {
  right: 8px;
}

.side-tile-btn {
  position: relative;
  width: 46px;
  height: 48px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #fffdf7 0%, #f7e6c4 100%);
  box-shadow: 0 3px 0 rgba(67, 38, 19, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform 0.12s;
}

.side-tile-btn:active {
  transform: translateY(2px);
}

.side-tile-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-tile-icon svg {
  width: 100%;
  height: 100%;
}

.side-tile-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.red-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-dot);
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.red-dot.hidden {
  display: none;
}

/* VIP Banner on Awning */
.vip-banner {
  position: absolute;
  top: 13.6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  max-width: 78%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(180deg, #fff4cb 0%, #f5d388 100%);
  box-shadow: 0 4px 10px rgba(60, 28, 10, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  animation: bannerFloat 2.4s ease-in-out infinite;
}

.vip-banner.hidden {
  display: none;
}

@keyframes bannerFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-2px); }
}

.vip-sparkle {
  font-size: 14px;
}

/* Customers Layer */
.customers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 18;
}

.customer-slot {
  position: absolute;
  top: 34.2%;
  width: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  transform: translateX(-50%);
  transition: left 0.45s ease, opacity 0.3s ease;
}

.customer-slot.slot-0 { left: 27.5%; }
.customer-slot.slot-1 { left: 50%; }
.customer-slot.slot-2 { left: 72.5%; }

.order-bubble {
  position: relative;
  min-width: 78px;
  background: #fffdf8;
  border: 2.4px solid var(--ink);
  border-radius: 14px;
  padding: 4px 7px 7px;
  box-shadow: 0 4px 10px rgba(55, 26, 8, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.14s;
  z-index: 4;
}

.order-bubble:hover {
  transform: translateY(-2px);
}

.order-bubble.is-urgent {
  border-color: #d94138;
}

.order-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--ink);
}

.order-bubble.is-urgent::after {
  border-top-color: #d94138;
}

.order-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: opacity 0.2s, transform 0.2s;
}

.order-item.is-done {
  opacity: 0.32;
  transform: scale(0.88);
  text-decoration: line-through;
}

.order-item-icon {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item-icon svg {
  width: 100%;
  height: 100%;
}

.order-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
}

.order-item-tag svg {
  width: 12px;
  height: 12px;
}

.order-item-tag.tag-no-scallion {
  color: #dc4848;
}

.order-item-tag.tag-scallion {
  color: #46923d;
}

.order-item-tag.tag-salty {
  color: #c74728;
}

.order-item-tag.tag-sweet {
  color: #b46a18;
}

.patience-track {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 4px;
  border-radius: 99px;
  background: #eadbc3;
  overflow: hidden;
}

.patience-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--green-bar);
  transition: width 0.25s linear, background-color 0.25s;
}

.customer-sprite-wrap {
  position: relative;
  width: 52px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: customerIdle 2.2s ease-in-out infinite;
}

.customer-sprite-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 4px rgba(52, 29, 12, 0.28));
}

@keyframes customerIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

/* VIP Critic Foreground Actor */
.vip-critic-actor {
  position: absolute;
  left: 50%;
  top: 39.2%;
  transform: translateX(-50%);
  width: 72px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.vip-critic-actor.hidden {
  display: none;
}

.vip-alert-badge {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe676, #f5b62b);
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: -3px;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(70, 30, 5, 0.35);
  animation: alertBounce 1.1s ease-in-out infinite;
}

.vip-alert-badge::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid #eb5538;
  border-left-color: transparent;
  animation: spinSlow 2.8s linear infinite;
}

@keyframes alertBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.06); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.vip-critic-img {
  width: 50px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 5px 4px rgba(45, 22, 8, 0.32));
}

.vip-ground-ring {
  width: 62px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2.5px solid rgba(246, 186, 62, 0.92);
  background: radial-gradient(circle, rgba(255, 217, 102, 0.35), transparent 72%);
  animation: ringPulse 1.6s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Courtyard Diners */
.diners-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.diner-actor {
  position: absolute;
  width: 44px;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

.diner-actor img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 3px rgba(50, 26, 10, 0.25));
}

.diner-heart {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  animation: heartFloat 1.5s ease-in-out infinite;
}

@keyframes heartFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

/* Sleeping Cat */
.cat-actor {
  position: absolute;
  left: 7.5%;
  top: 76.8%;
  width: 15.8%;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 19;
  padding: 0;
  transition: transform 0.2s;
}

.cat-actor:active {
  transform: scale(1.08);
}

.cat-actor img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 4px rgba(55, 30, 12, 0.28));
  animation: catBreathe 3.2s ease-in-out infinite;
}

@keyframes catBreathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.03, 0.97); }
}

.cat-zzz {
  position: absolute;
  top: -6px;
  right: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #6b4528;
  opacity: 0.78;
  animation: zzzFloat 2.4s ease-in-out infinite;
}

@keyframes zzzFloat {
  0% { transform: translate(0, 4px) scale(0.8); opacity: 0; }
  45% { opacity: 0.85; }
  100% { transform: translate(8px, -10px) scale(1.1); opacity: 0; }
}

/* Ambient Street Walkers */
.street-walkers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.walker-actor {
  position: absolute;
  width: 52px;
  transform: translateX(-50%);
  will-change: left, top;
}

.walker-actor img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 4px rgba(45, 22, 8, 0.28));
  animation: walkStep 0.55s ease-in-out infinite alternate;
}

.walker-actor.facing-left img {
  transform: scaleX(-1);
}

@keyframes walkStep {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-2.5px) rotate(1deg); }
}

.walker-note {
  position: absolute;
  top: -10px;
  right: 0;
  font-size: 15px;
  color: #fff8de;
  text-shadow: 0 1px 3px rgba(60, 30, 10, 0.7);
  animation: noteDrift 1.8s ease-in-out infinite;
}

@keyframes noteDrift {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.7; }
  50% { transform: translateY(-6px) rotate(6deg); opacity: 1; }
}

/* Floating FX Popups */
.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.float-fx {
  position: absolute;
  font-size: 16px;
  font-weight: 900;
  color: #ffde6b;
  text-shadow: 0 2px 0 #5b290c, 0 0 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: floatUpFade 1.15s ease-out forwards;
}

@keyframes floatUpFade {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.75); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -145%) scale(1); }
}

/* Bottom Cooking & Serving Deck */
.bottom-deck {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.seasoning-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 22%;
}

.seasoning-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff6e1;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(67, 38, 19, 0.25);
  transition: transform 0.12s, background 0.15s;
}

.seasoning-pill:active {
  transform: translateY(1px);
}

.seasoning-pill.active {
  background: linear-gradient(180deg, #ffca63 0%, #f1962a 100%);
  border-color: #6b2c0a;
  box-shadow: 0 2px 0 rgba(88, 35, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.seasoning-pill.scallion-pill.no-scallion {
  background: #ffe8e6;
  border-color: #bd3b3b;
  color: #a12929;
}

.seasoning-pill.hidden-until-active {
  display: none;
}

.seasoning-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
}

.seasoning-icon svg {
  width: 100%;
  height: 100%;
}

.station-dock {
  display: grid;
  grid-template-columns: 1.06fr 1fr 1fr 1fr 1.06fr 0.62fr;
  gap: 5px;
  padding: 6px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #f5ebd4;
  box-shadow: 0 6px 16px rgba(42, 20, 6, 0.35);
}

.station-card {
  position: relative;
  height: 68px;
  border-radius: 11px;
  border: 2px solid #59351a;
  background: #fffdf7;
  padding: 4px 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}

.station-card:active {
  transform: scale(0.95);
}

.station-card.is-ready {
  background: linear-gradient(180deg, #fff5d6 0%, #ffd88c 100%);
  border-color: #df821b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.station-card.is-cooking {
  background: linear-gradient(180deg, #fff9ec 0%, #fce3b1 100%);
  border-color: #d6761d;
}

.station-count-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e9533b;
  border: 1.5px solid #fffdf5;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.station-count-badge.hidden {
  display: none;
}

.station-icon {
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-icon svg {
  width: 100%;
  height: 100%;
}

.station-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 1px;
}

.station-sub {
  font-size: 10px;
  font-weight: 700;
  color: #9e6530;
  line-height: 1.1;
}

.station-card.is-ready .station-sub {
  color: #b54f0c;
  font-weight: 800;
}

.cook-progress-track {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 3px;
  border-radius: 99px;
  background: rgba(110, 62, 26, 0.15);
  overflow: hidden;
  opacity: 0;
}

.station-card.is-cooking .cook-progress-track {
  opacity: 1;
}

.cook-progress-fill {
  width: 0%;
  height: 100%;
  background: #e87224;
  transition: width 0.08s linear;
}

.station-trash {
  background: #f5f2ec;
  border-color: #7c6753;
}

.station-trash .station-icon {
  width: 24px;
  height: 24px;
}

/* Toast Notifications */
.toast-stack {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.toast-msg {
  background: rgba(54, 31, 16, 0.92);
  color: #fff5df;
  border: 1.5px solid #e7b56b;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: toastInOut 2.2s ease forwards;
}

@keyframes toastInOut {
  0% { opacity: 0; transform: translateY(-8px); }
  12% { opacity: 1; transform: translateY(0); }
  82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* Modals */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 19, 8, 0.6);
  backdrop-filter: blur(2px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-height: 76%;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(24, 12, 4, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f5d89e 0%, #e7be72 100%);
  border-bottom: 2.5px solid var(--ink);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
}

.modal-title-icon svg {
  width: 100%;
  height: 100%;
}

.modal-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff7e6;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-row-card {
  background: var(--cream-card);
  border: 2px solid #8a5b33;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-row-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid #8a5b33;
  background: #faecd1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.modal-row-avatar img,
.modal-row-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-row-info {
  flex: 1;
  min-width: 0;
}

.modal-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.level-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: #ffe094;
  border: 1.5px solid #965715;
  color: #6b3508;
  padding: 1px 6px;
  border-radius: 999px;
}

.modal-row-desc {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.35;
}

.modal-action-btn {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 10px;
  border: 2px solid #6b300a;
  background: linear-gradient(180deg, #ffbe4a 0%, #ea821d 100%);
  color: #fffdf8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(70, 30, 8, 0.35);
}

.modal-action-btn:disabled {
  background: #cfc2af;
  border-color: #7c6f60;
  color: #5e5449;
  cursor: not-allowed;
}

.vip-dialog-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 6px;
}

.vip-dialog-hero img {
  width: 92px;
  height: auto;
}

.vip-order-preview {
  display: flex;
  gap: 14px;
  background: #fff4d8;
  border: 2px dashed #b97728;
  border-radius: 14px;
  padding: 10px 18px;
}
