/* ═══════════════════════════════════════════════════════════════
   CHEF ROLE - COOKING INTERFACE
   ═══════════════════════════════════════════════════════════════ */

#screen-game {
  padding: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  /* display: flex is set by .screen.active, don't override here */
  flex-direction: column;
}

#game-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.chef-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   TICKET BAR - Orders at the top
   ═══════════════════════════════════════════════════════════════ */

.ticket-bar {
  background: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
  padding: 12px;
  border-bottom: 3px solid var(--color-primary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ticket-bar::-webkit-scrollbar {
  display: none;
}

.tickets-container {
  display: flex;
  gap: 10px;
}

.ticket {
  flex-shrink: 0;
  width: 140px;
  padding: 12px;
  background: linear-gradient(135deg, #fffef0 0%, #fff8dc 100%);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--color-accent-green);
  box-shadow: var(--shadow-md);
  position: relative;
  animation: ticketSlide 0.4s var(--transition-normal);
}

@keyframes ticketSlide {
  from {
    opacity: 0;
    transform: translateX(-20px) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

.ticket.urgent {
  border-left-color: var(--color-primary);
  animation: ticketUrgent 1s ease-in-out infinite;
}

.ticket.critical {
  border-left-color: #dc2626;
  animation: ticketCritical 0.5s ease-in-out infinite;
}

@keyframes ticketUrgent {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-md), 0 0 20px rgba(255,107,53,0.5);
  }
}

@keyframes ticketCritical {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.ticket-table {
  font-family: 'Fredoka One', cursive;
  font-size: 0.875rem;
  color: var(--color-bg-dark);
  margin-bottom: 4px;
}

.ticket-items {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ticket-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-bg-dark);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.ticket-timer::before {
  content: '⏱️';
}

/* ═══════════════════════════════════════════════════════════════
   STATION VIEW - Main cooking area
   ═══════════════════════════════════════════════════════════════ */

.station-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.station-display {
  width: calc(100% - 20px);
  max-width: 95vw;
  height: calc(100% - 20px);
  min-height: 200px;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.3),
    0 8px 32px rgba(0,0,0,0.4);
  border: 4px solid var(--color-secondary-dark);
}

/* No Station View */
.no-station-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2a2a3a 0%, #1a1a2a 100%);
  gap: 20px;
}

.no-station-icon {
  font-size: 5rem;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

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

.no-station-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0 20px;
}

.no-station-msg {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.no-ingredients {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  grid-column: 1 / -1;
}

/* Selected Items Display */
.selected-items-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.selected-item {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--color-accent-yellow);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: itemSelected 0.3s ease-out;
}

@keyframes itemSelected {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.selected-item-icon {
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-item-name {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Station Canvas - Uses actual game images as background */
.station-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Prep Station Overlay - Matches Unity Prep_Base.prefab */
.prep-overlay {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cutting Board Background */
.cutting-board-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

.cutting-board-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 2;
}

.food-placement {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 3;
}

.tool-foreground {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 4;
}

/* Station Food Items - 80% of container (cutting board) */
.station-food-item {
  animation: itemPlace 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: 80%;
}

/* Food items stacking in bowl - all centered on same spot */
.food-placement.stacking .station-food-item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Stack multiple ingredients - all in same position, layered by z-index */
.food-placement.stacking .station-food-item:nth-child(1) {
  z-index: 1;
}

.food-placement.stacking .station-food-item:nth-child(2) {
  z-index: 2;
}

.food-placement.stacking .station-food-item:nth-child(3) {
  z-index: 3;
}

.food-placement.stacking .station-food-item:nth-child(4) {
  z-index: 4;
}

/* Ready to mix - flash animation when valid combination detected */
.food-placement.ready-to-mix {
  animation: bowlReadyFlash 0.5s ease-out;
}

@keyframes bowlReadyFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0);
  }
  50% {
    box-shadow: 0 0 30px 10px rgba(78, 205, 196, 0.6);
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

.station-food-icon {
  font-size: 12rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.station-food-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.7));
}

/* Station Tools - Much bigger to match Unity */
.station-tool {
  animation: toolPlace 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.station-tool-icon {
  font-size: clamp(3rem, 15vw, 10rem);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.station-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.7));
}

@keyframes itemPlace {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes toolPlace {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Grill Station Overlay - Matches Unity Grill_Base.prefab */
.grill-overlay {
  width: 100%;
  height: 100%;
  position: relative;
}

.grill-overlay .food-placement {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(50%, 200px);
  height: min(50%, 200px);
}

.grill-overlay .tool-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(60%, 250px);
  height: min(60%, 250px);
  pointer-events: none;
}

/* Fryer Station Overlay - Matches Unity Fryer_Base.prefab */
.fryer-overlay {
  width: 100%;
  height: 100%;
  position: relative;
}

.fryer-oil-layer {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(70%, 280px);
  height: min(25%, 120px);
  background: linear-gradient(180deg, #daa520 0%, #8b4513 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0.8;
}

.fryer-basket {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(65%, 260px);
  height: min(30%, 140px);
  transition: transform 0.3s ease;
}

.fryer-basket.up {
  transform: translateX(-50%) translateY(-60px);
}

.fryer-basket .basket-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, #666 0%, #444 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.fryer-basket .food-placement {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fryer-basket .basket-front {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, #555 0%, #333 100%);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.fryer-foreground {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 160px;
  pointer-events: none;
}

.fryer-controls {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.fryer-control-btn {
  padding: 10px 16px;
  background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.fryer-control-btn.drain {
  background: linear-gradient(180deg, #744210 0%, #553c15 100%);
}

.fryer-control-btn.refill {
  background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
}

.oil-quality-bar {
  width: 200px;
  height: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius-full);
  margin-top: 10px;
  overflow: hidden;
}

.oil-fill {
  height: 100%;
  background: linear-gradient(90deg, #daa520, #cd853f);
  transition: width 0.3s ease;
}

/* Grill Item Styles */
.grill-item-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.grill-item-content.cooking {
  animation: itemCooking 1s ease-in-out infinite;
}

@keyframes itemCooking {
  0%, 100% { box-shadow: inset 0 0 10px rgba(255,107,53,0.3); }
  50% { box-shadow: inset 0 0 20px rgba(255,107,53,0.6); }
}

.item-sprite {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.doneness-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.doneness-badge.raw { background: #ff6b6b; color: white; }
.doneness-badge.rare { background: #ff4757; color: white; }
.doneness-badge.medium-rare { background: #ff6348; color: white; }
.doneness-badge.medium { background: #ff9f43; color: white; }
.doneness-badge.medium-well { background: #feca57; color: #333; }
.doneness-badge.well-done { background: #d4a574; color: white; }
.doneness-badge.burnt { background: #2f3542; color: #aaa; }

.cook-progress-bar {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-green), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* Stove Item Styles */
.vessel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vessel-item .item-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.empty-vessel {
  font-size: 2rem;
  opacity: 0.5;
}

.stir-alert {
  padding: 2px 8px;
  background: #ff4757;
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  animation: stirAlertPulse 0.5s ease-in-out infinite;
}

.burn-progress {
  width: 80%;
  height: 4px;
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.burn-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9f43, #ff4757);
  border-radius: var(--radius-full);
}

.burner.has-item {
  border-style: solid;
  border-color: var(--color-accent-yellow);
  box-shadow: inset 0 0 15px rgba(255,159,67,0.3);
}

/* Stove Station Overlay - Matches Unity Stove_Base.prefab */
.stove-overlay {
  width: 100%;
  height: 100%;
  position: relative;
}

.stove-overlay .tool-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(55%, 220px);
  height: min(55%, 220px);
  pointer-events: none;
}

.stove-overlay .food-placement {
  position: absolute;
  top: 55%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: min(40%, 150px);
  height: min(40%, 150px);
}

.stove-burners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  max-width: 300px;
}

.burner {
  aspect-ratio: 1;
  background: rgba(0,0,0,0.3);
  border: 3px dashed rgba(255,255,255,0.2);
  border-radius: 50%;
}

/* Oven Station Overlay - Matches Unity Oven_Base.prefab */
.oven-overlay {
  width: 100%;
  height: 100%;
  position: relative;
}

.rack-and-food {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70%, 280px);
  height: min(50%, 180px);
}

.oven-rack {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, #888 0%, #555 100%);
  border-radius: var(--radius-sm);
}

.rack-and-food .food-placement {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(60%, 180px);
  height: min(40%, 100px);
}

.oven-overlay .tool-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(50%, 200px);
  height: min(50%, 200px);
  pointer-events: none;
}

.oven-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(65%, 260px);
  height: min(45%, 160px);
  background: linear-gradient(135deg, rgba(200,220,255,0.3) 0%, rgba(150,180,220,0.2) 100%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.oven-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(75%, 300px);
  height: min(55%, 200px);
  background: rgba(60, 40, 20, 0.9);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.oven-cover.open {
  opacity: 0;
  pointer-events: none;
}

.oven-window {
  width: min(60%, 200px);
  height: min(45%, 150px);
  background: rgba(0,0,0,0.5);
  border: 4px solid #555;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

/* Basket and Rack Items */
.basket-item, .rack-item {
  font-size: clamp(1rem, 8vw, 2rem);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.fryer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding: 10px;
}

.oven-rack {
  width: min(55%, 180px);
  height: 20px;
  background: linear-gradient(180deg, #666 0%, #444 100%);
  border-radius: var(--radius-sm);
}

.oven-door-handle {
  margin-top: 15px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.6);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONTROLS - Station tabs, tool buttons, and ingredient grid
   ═══════════════════════════════════════════════════════════════ */

.controls {
  background: var(--color-bg-darker);
  border-top: 3px solid var(--color-bg-card);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  max-height: 35vh;
  overflow: hidden;
}

/* Station Tabs */
.station-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--color-bg-dark);
  flex-shrink: 0;
  min-height: 44px;
}

.station-tabs::-webkit-scrollbar {
  display: none;
}

.station-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--color-bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-family: 'Fredoka One', cursive;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.station-tab.active {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary-light);
  box-shadow: 0 0 15px rgba(78,205,196,0.4);
  transform: scale(1.05);
}

.station-tab:active {
  transform: scale(0.98);
}

.station-tab-count {
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 2px;
}

/* Tool Buttons */
.tool-buttons {
  display: flex;
  gap: 8px;
  padding: 10px;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--color-bg-card);
}

.tool-btn {
  padding: 10px 16px;
  background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
  border: 3px solid transparent;
  border-radius: var(--radius-full);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-btn .tool-icon {
  font-size: 1rem;
}

.tool-btn .tool-name {
  white-space: nowrap;
}

.tool-btn:hover {
  transform: scale(1.02);
}

.tool-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.tool-btn.selected {
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  border-color: var(--color-secondary-light);
  box-shadow: 0 0 15px rgba(78,205,196,0.4);
}

.tool-btn.highlighted {
  border-color: var(--color-accent-green);
  background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
  animation: toolPulse 1s ease-in-out infinite;
}

@keyframes toolPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 187, 79, 0.4); }
  50% { box-shadow: 0 0 15px rgba(0, 187, 79, 0.8); }
}

.tool-btn.compatible {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #ff8c42 0%, #ff6b35 100%);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
  animation: compatiblePulse 1.5s ease-in-out infinite;
}

@keyframes compatiblePulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 15px rgba(255, 107, 53, 0.7); transform: scale(1.02); }
}

.tool-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ingredient Grid - Horizontal scroll with mouse wheel */
.ingredient-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 15px;
  max-height: 160px;
  min-height: 120px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--color-bg-dark);
  flex-shrink: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.ingredient-grid::-webkit-scrollbar {
  height: 6px;
}

.ingredient-grid::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
  border-radius: 3px;
}

.ingredient-grid::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 3px;
}

.ingredient-cell {
  flex: 0 0 auto;
  width: 80px;
  height: 120px;
  background: var(--color-bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.ingredient-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.ingredient-cell:active {
  transform: scale(0.95);
}

/* Ingredient states */
.ingredient-cell.selected {
  border-color: var(--color-secondary);
  background: var(--color-secondary-dark);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
  z-index: 10;
}

.ingredient-cell.highlighted {
  border-color: var(--color-accent-green);
  box-shadow: 0 0 8px rgba(0, 187, 79, 0.4);
  animation: ingredientGlow 1s ease-in-out infinite;
}

@keyframes ingredientGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 187, 79, 0.4); }
  50% { box-shadow: 0 0 12px rgba(0, 187, 79, 0.6); }
}

.ingredient-cell.dimmed {
  opacity: 0.4;
}

/* Compatible ingredients - can be combined with selected */
.ingredient-cell.compatible {
  border-color: var(--color-accent-yellow);
  background: linear-gradient(135deg, rgba(255, 206, 84, 0.2) 0%, var(--color-bg-card) 100%);
  box-shadow: 0 0 8px rgba(255, 206, 84, 0.4);
  animation: compatibleGlow 1.5s ease-in-out infinite;
}

@keyframes compatibleGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 206, 84, 0.4); }
  50% { box-shadow: 0 0 15px rgba(255, 206, 84, 0.7); }
}

.ingredient-cell .emoji {
  font-size: 1.75rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.ingredient-cell .name {
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.ingredient-cell.selected .name {
  color: white;
}

.ingredient-cell.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.ingredient-cell.out-of-stock {
  opacity: 0.4;
  filter: grayscale(100%);
}

.ingredient-cell .stock {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--color-text-primary);
  background: var(--color-bg-darker);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* Ingredient is in the bowl - green highlight */
.ingredient-cell.in-bowl {
  border-color: var(--color-accent-green);
  background: linear-gradient(135deg, rgba(0, 187, 79, 0.2) 0%, var(--color-bg-card) 100%);
  box-shadow: 0 0 10px rgba(0, 187, 79, 0.4);
}

/* Selected ingredients in bowl - stronger green */
.ingredient-cell.selected.in-bowl {
  border-color: var(--color-accent-green);
  background: linear-gradient(135deg, rgba(0, 187, 79, 0.35) 0%, rgba(0, 187, 79, 0.15) 100%);
  box-shadow: 0 0 15px rgba(0, 187, 79, 0.6);
  transform: scale(1.1);
  z-index: 10;
}

/* Ingredient locked in bowl - greyed out, can't click */
.ingredient-cell.bowl-locked {
  opacity: 0.6;
  pointer-events: none;
  border-color: var(--color-text-muted);
  background: var(--color-bg-darker);
  filter: grayscale(50%);
}

/* Tool-compatible ingredients - can be used with selected tool */
.ingredient-cell.tool-compatible {
  border-color: var(--color-accent-cyan);
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25) 0%, var(--color-bg-card) 100%);
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
  animation: toolCompatibleGlow 1.5s ease-in-out infinite;
}

@keyframes toolCompatibleGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.5); }
  50% { box-shadow: 0 0 15px rgba(78, 205, 196, 0.8); }
}

/* Tool-incompatible ingredients - cannot be used with selected tool */
.ingredient-cell.tool-incompatible {
  opacity: 0.4;
  filter: grayscale(60%);
  border-color: var(--color-text-muted);
}

/* Mixing/Combining Result Display */
.station-food-item.result-item {
  animation: resultPop 0.5s ease-out;
  position: relative;
  z-index: 100;
}

.station-food-item.result-item .station-food-icon {
  font-size: 14rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.7));
  z-index: 101;
}

@keyframes resultPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.result-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-green);
  background: var(--color-bg-darker);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent-green);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ═══════════════════════════════════════════════════════════════
   COOKING FEEDBACK
   ═══════════════════════════════════════════════════════════════ */

.cooking-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--color-bg-darker);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.cooking-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-green), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.gesture-feedback {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 40px;
  background: var(--color-accent-yellow);
  color: var(--color-bg-dark);
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: feedbackPop 0.5s var(--transition-normal);
  pointer-events: none;
  z-index: 100;
}

@keyframes feedbackPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Circular Progress Indicator */
.circular-progress {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 6;
}

.progress-ring-fill {
  fill: none;
  stroke: #4ECDC4;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-icon {
  position: absolute;
  font-size: 28px;
  z-index: 2;
}

.progress-text {
  position: absolute;
  bottom: 8px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Progress Ring for Timed Actions */
.progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--color-bg-card);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

/* Combo Counter */
.combo-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: comboBounce 0.5s var(--transition-normal);
}

@keyframes comboBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.combo-count {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: var(--color-accent-yellow);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.combo-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   STATION OVERVIEW PANEL
   ═══════════════════════════════════════════════════════════════ */

.station-overview {
  background: var(--color-bg-card);
  padding: 16px;
  border-bottom: 3px solid var(--color-bg-darker);
}

.station-overview h3 {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
  text-align: center;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.station-card {
  background: var(--color-bg-dark);
  border: 2px solid var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.station-card.current {
  border-color: var(--color-accent-green);
  background: rgba(0, 187, 79, 0.2);
  box-shadow: 0 0 10px rgba(0, 187, 79, 0.3);
}

.station-card.target {
  border-color: var(--color-accent-yellow);
  animation: pulse 1.5s infinite;
}

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

.station-card .station-icon {
  font-size: 1.5rem;
}

.station-card .station-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.station-card .station-status {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.station-status.here {
  background: var(--color-accent-green);
  color: white;
}

.station-status.walking {
  background: var(--color-accent-yellow);
  color: var(--color-bg-dark);
  animation: pulse 1s infinite;
}

.station-status.occupied {
  background: var(--color-primary);
  color: white;
}

.station-status.available {
  background: var(--color-bg-card);
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   MOVEMENT INDICATOR
   ═══════════════════════════════════════════════════════════════ */

.movement-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bg-card);
  padding: 20px 30px;
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-accent-yellow);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 50;
}

.movement-indicator.visible {
  opacity: 1;
}

.walking-animation {
  font-size: 3rem;
}

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

.movement-indicator span {
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   STATION LOCKED OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.station-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.locked-message {
  background: var(--color-bg-card);
  padding: 20px 30px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.locked-message small {
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Walking indicator shown in the locked overlay */
.walking-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.walking-animation-large {
  font-size: 4rem;
  animation: walkBounce 0.3s ease-in-out infinite alternate;
  display: inline-block;
  transform-origin: bottom center;
}

@keyframes walkBounce {
  0% { 
    transform: translateY(0); 
  }
  100% { 
    transform: translateY(-12px); 
  }
}

@keyframes walkingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.station-view.locked .station-display {
  filter: blur(4px);
}

/* Disabled states */
.tool-buttons.disabled .tool-btn,
.ingredient-grid.disabled .ingredient-cell {
  opacity: 0.5;
  pointer-events: none;
}

.station-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   NUMBERED TICKETS - New ticket design
   ═══════════════════════════════════════════════════════════════ */

.ticket-numbered {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 3px solid transparent;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all var(--transition-fast);
}

.ticket-numbered:active {
  transform: scale(0.95);
}

.ticket-numbered.selected {
  border-color: var(--color-accent-green);
  box-shadow: 0 0 15px rgba(0, 187, 79, 0.5);
  transform: scale(1.1);
}

.ticket-numbered.urgent {
  border-left-color: var(--color-primary);
  animation: ticketUrgent 1s ease-in-out infinite;
}

.ticket-numbered.critical {
  border-color: #dc2626;
  animation: ticketCritical 0.5s ease-in-out infinite;
}

.ticket-numbered .ticket-number {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--color-bg-dark);
  line-height: 1;
}

.ticket-numbered .ticket-table-small {
  font-size: 0.625rem;
  color: #666;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   TICKET POPUP - Long press popup
   ═══════════════════════════════════════════════════════════════ */

.ticket-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 20px;
}

.ticket-popup-content {
  background: linear-gradient(135deg, #fffef0 0%, #fff8dc 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  min-width: 200px;
  max-width: 300px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-accent-yellow);
}

.ticket-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(0,0,0,0.2);
}

.ticket-popup-number {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--color-primary);
}

.ticket-popup-table {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-bg-dark);
}

.ticket-popup-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.popup-item .item-icon {
  font-size: 1.5rem;
}

.popup-item .item-name {
  font-weight: 600;
  color: var(--color-bg-dark);
}

/* Station tab counts */
.station-tab-count {
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 4px;
}

.station-tab {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   ADVANCED STATION STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   GRILL STATION - Doneness and Progress
   ═══════════════════════════════════════════════════════════════ */

.grill-station {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.grill-surface {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  position: relative;
}

.grill-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    rgba(255,100,50,0.15) 8px,
    rgba(255,100,50,0.15) 10px
  );
  pointer-events: none;
}

.grill-item {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: var(--radius-md);
  border: 3px solid #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.grill-item.cooking::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,107,53,0.4) 0%, transparent 70%);
  animation: heatPulse 1s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.grill-item .item-sprite {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  z-index: 1;
}

.doneness-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
  animation: badgePop 0.3s var(--transition-normal);
}

@keyframes badgePop {
  0% { transform: translateX(-50%) scale(0); }
  50% { transform: translateX(-50%) scale(1.2); }
  100% { transform: translateX(-50%) scale(1); }
}

.doneness-badge.raw { background: #ff6b6b; color: white; }
.doneness-badge.rare { background: #ff4757; color: white; }
.doneness-badge.medium-rare { background: #ff6348; color: white; }
.doneness-badge.medium { background: #ff9f43; color: white; }
.doneness-badge.medium-well { background: #feca57; color: #333; }
.doneness-badge.well-done { background: #d4a574; color: white; }
.doneness-badge.burnt { background: #2f3542; color: #aaa; }

.cook-progress-bar {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 6px;
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-green), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.doneness-notification {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  animation: notificationSlide 2s ease-in-out forwards;
}

@keyframes notificationSlide {
  0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.doneness-label {
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
}

.doneness-label.rare { background: #ff4757; color: white; }
.doneness-label.medium-rare { background: #ff6348; color: white; }
.doneness-label.medium { background: #ff9f43; color: white; }
.doneness-label.medium-well { background: #feca57; color: #333; }
.doneness-label.well-done { background: #d4a574; color: white; }

/* ═══════════════════════════════════════════════════════════════
   STOVE STATION - Vessels and Stirring
   ═══════════════════════════════════════════════════════════════ */

.stove-station {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stove-surface {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stove-burner {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 4px dashed #555;
  aspect-ratio: 1;
}

.burner-coil {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: #444;
  transition: all var(--transition-normal);
}

.burner-coil.hot {
  background: radial-gradient(circle at center, #ff6b35 0%, #ff4757 50%, #c44569 100%);
  box-shadow: 0 0 30px rgba(255,107,53,0.5);
  animation: burnerGlow 1s ease-in-out infinite;
}

@keyframes burnerGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,53,0.4); }
  50% { box-shadow: 0 0 40px rgba(255,107,53,0.7); }
}

.vessel-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vessel-item .item-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.empty-vessel {
  font-size: 3rem;
  opacity: 0.5;
}

.stir-alert {
  padding: 6px 12px;
  background: #ff4757;
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  animation: stirAlertPulse 0.5s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255,71,87,0.5);
}

@keyframes stirAlertPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.stir-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: stirPromptShake 0.5s ease-in-out infinite;
  z-index: 100;
}

@keyframes stirPromptShake {
  0%, 100% { transform: translate(-50%, -50%) translateX(0); }
  25% { transform: translate(-50%, -50%) translateX(-5px); }
  75% { transform: translate(-50%, -50%) translateX(5px); }
}

.burn-progress {
  width: 80%;
  height: 8px;
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.burn-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9f43, #ff4757);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   OVEN STATION - Door and Rack
   ═══════════════════════════════════════════════════════════════ */

.oven-station {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.oven-container {
  width: 100%;
  max-width: 280px;
  position: relative;
}

.oven-door {
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
  border-radius: var(--radius-lg);
  padding: 15px;
  border: 4px solid #555;
  transition: transform var(--transition-normal);
  transform-origin: bottom;
}

.oven-container.door-open .oven-door {
  transform: perspective(500px) rotateX(-45deg);
}

.oven-window {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #333;
  position: relative;
  overflow: hidden;
}

.oven-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,150,50,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.oven-container.door-open .oven-window::before {
  background: none;
}

.door-handle {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
}

.oven-rack {
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 60px;
  background: linear-gradient(180deg, #666 0%, #444 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid #555;
  transition: all var(--transition-normal);
}

.oven-rack.rack-top { bottom: 120px; }
.oven-rack.rack-middle { bottom: 60px; }
.oven-rack.rack-bottom { bottom: 0; }

.rack-item {
  font-size: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   FRYER STATION - Basket and Oil Quality
   ═══════════════════════════════════════════════════════════════ */

.fryer-station {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.fryer-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
}

.fryer-oil {
  width: 200px;
  height: 140px;
  background: linear-gradient(
    180deg,
    #daa520 0%,
    #cd853f 50%,
    #8b4513 100%
  );
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.4);
  transition: filter var(--transition-normal);
}

.fryer-oil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.3) 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.2) 3px, transparent 3px),
    radial-gradient(circle at 80% 90%, rgba(255,255,255,0.3) 2px, transparent 2px);
  animation: oilBubble 0.5s ease-in-out infinite;
}

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

.oil-quality-indicator {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.oil-percent {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.oil-darkness-bar {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.darkness-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.fryer-basket {
  position: absolute;
  left: 50%;
  width: 180px;
  height: 80px;
  background: linear-gradient(180deg, #777 0%, #555 100%);
  border-radius: var(--radius-md);
  border: 4px solid #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
  transform: translateX(-50%);
  z-index: 10;
}

.fryer-basket.up {
  top: 60px;
}

.fryer-basket.down {
  top: 120px;
}

.basket-contents {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5px;
}

.basket-item {
  font-size: 1.5rem;
}

.basket-handle {
  position: absolute;
  top: -20px;
  font-size: 1.5rem;
}

.fryer-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.fryer-btn {
  padding: 8px 12px;
  background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fryer-btn:hover {
  transform: scale(1.05);
}

.fryer-btn:active {
  transform: scale(0.95);
}

.fryer-btn.drain {
  background: linear-gradient(180deg, #744210 0%, #553c15 100%);
}

.fryer-btn.refill {
  background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
}

.fryer-btn.toggle {
  background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
}

/* ═══════════════════════════════════════════════════════════════
   PREP STATION - Mixing Bowl
   ═══════════════════════════════════════════════════════════════ */

.prep-station {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mixing-bowl {
  width: 180px;
  height: 120px;
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: 4px solid #a0aec0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bowl-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding: 10px;
  font-size: 1.5rem;
}

.mix-progress-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mix-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent-green));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   PARTICLE SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  border: 2px solid rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════════════════════
   GESTURE CANVAS OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.gesture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ═══════════════════════════════════════════════════════════════
   STATION OCCUPANCY INDICATORS
   ═══════════════════════════════════════════════════════════════ */

.station-indicator {
  position: relative;
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

.status-dot.idle {
  background: #4CAF50;
  box-shadow: 0 0 4px #4CAF50;
}

.status-dot.active {
  background: #FFC107;
  box-shadow: 0 0 4px #FFC107;
  animation: pulse-yellow 1.5s infinite;
}

.status-dot.danger {
  background: #F44336;
  box-shadow: 0 0 4px #F44336;
  animation: pulse-red 0.8s infinite;
}

@keyframes pulse-yellow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.occupant-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: rotate 3s linear infinite;
}

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

.station-tab.occupied {
  opacity: 0.7;
}

.station-tab.occupied:hover {
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   STATION REQUEST DIALOG
   ═══════════════════════════════════════════════════════════════ */

.station-request-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.request-content {
  background: var(--color-bg-card);
  padding: 24px 32px;
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-primary);
  text-align: center;
  max-width: 300px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.request-content h3 {
  color: var(--color-accent-yellow);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.request-content p {
  margin-bottom: 8px;
  color: var(--color-text);
}

.request-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.request-buttons button {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: 'Fredoka One', cursive;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-request {
  background: var(--color-accent-green);
  border: 2px solid var(--color-accent-green);
  color: white;
}

.btn-request:hover {
  background: #3db894;
  transform: translateY(-2px);
}

.btn-cancel {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn-cancel:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   INGREDIENT QUALITY INDICATORS
   ═══════════════════════════════════════════════════════════════ */

/* Food grid item quality borders */
.ingredient-cell {
  /* Ensure border is visible */
  border: 3px solid transparent;
  transition: all 0.2s ease;
}

/* Budget - Simple/basic border */
.ingredient-cell.quality-budget {
  border-color: #8b7355;
  background: linear-gradient(135deg, #f5f0eb 0%, #e8e0d5 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Standard - Clean normal border */
.ingredient-cell.quality-standard {
  border-color: #4ecdc4;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9f9 100%);
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.2);
}

/* Gourmet - Fancy decorative border */
.ingredient-cell.quality-gourmet {
  border-color: #d4af37;
  background: linear-gradient(135deg, #fffef5 0%, #fdf8e3 100%);
  box-shadow: 
    0 2px 8px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

/* Gourmet corner accents */
.ingredient-cell.quality-gourmet::before,
.ingredient-cell.quality-gourmet::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #d4af37;
}

.ingredient-cell.quality-gourmet::before {
  top: 2px;
  left: 2px;
  border-right: none;
  border-bottom: none;
}

.ingredient-cell.quality-gourmet::after {
  bottom: 2px;
  right: 2px;
  border-left: none;
  border-top: none;
}

/* ═══════════════════════════════════════════════════════════════
   UNDO BUTTON - Easy mode only
   ═══════════════════════════════════════════════════════════════ */

.undo-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent-yellow);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: 'Fredoka One', cursive;
  font-size: 0.875rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.undo-btn:hover {
  background: var(--color-accent-yellow);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.undo-btn:active {
  transform: translateY(0);
}

.undo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-bg-card);
  color: var(--color-text-muted);
}

