/* ==========================================================================
   Suya Master: Lagos Night Grill - Premium Design System & Styles
   Designed for all desktop browsers and mobile touchscreens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-dark: #0a0b0e;
  --bg-card: rgba(18, 21, 28, 0.88);
  --bg-card-hover: rgba(26, 31, 42, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 109, 0, 0.4);

  /* Lagos Night & Suya Palette */
  --ember-primary: #ff5722;
  --ember-glow: #ff7043;
  --ember-gold: #ffab00;
  --suya-yaji: #d32f2f;
  --naija-green: #008751;
  --naija-green-light: #00c853;
  --suya-onion: #9c27b0;
  --suya-cabbage: #2e7d32;
  --charcoal: #121417;

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --glow-ember: 0 0 20px rgba(255, 87, 34, 0.4);
  --glow-gold: 0 0 20px rgba(255, 171, 0, 0.5);
  --glow-green: 0 0 16px rgba(0, 200, 83, 0.4);

  /* Layout */
  --max-width: 1040px;
}

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

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: #f0f2f5;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  touch-action: manipulation;
}

/* Background Scene with Warm Lagos Night Street Ambiance */
.game-backdrop {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(10, 11, 14, 0.82) 0%, rgba(10, 11, 14, 0.95) 100%),
                    url('assets/lagos_suya_night.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: -2;
}

.ambient-particles {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 85%, rgba(255, 87, 34, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* App Wrapper */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 24px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ==========================================================================
   TOP BAR & HUD
   ========================================================================== */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ember-gold);
  object-fit: cover;
  box-shadow: var(--glow-gold);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffc107, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.hud-stats-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hud-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
}

.hud-naira-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.hud-timer-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffb74d;
}

.hud-combo-badge {
  background: linear-gradient(135deg, #ff9800, #f44336);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: var(--glow-ember);
}

.hud-strikes-container {
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.hud-controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-icon:hover, .btn-icon:active {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Current Venue Banner */
.venue-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.22), rgba(0, 135, 81, 0.18));
  border: 1px solid rgba(255, 109, 0, 0.35);
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 12px;
}

.venue-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.venue-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--naija-green);
  color: #fff;
  border-radius: 6px;
  text-transform: uppercase;
}

.venue-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffecd2;
}

.venue-target-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffc107;
}

/* ==========================================================================
   CUSTOMER QUEUE (THE COUNTER)
   ========================================================================== */
.customers-section {
  margin-bottom: 14px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  margin-bottom: 6px;
}

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

.customer-spot {
  position: relative;
  min-height: 185px;
  border-radius: 16px;
  transition: all 0.25s ease;
}

.customer-spot.vacant {
  background: rgba(18, 21, 28, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vacant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}

.bench-icon {
  font-size: 1.5rem;
  opacity: 0.4;
}

.customer-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
  animation: customerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes customerSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.patience-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.patience-fill {
  height: 100%;
  width: 100%;
  background: #00e676;
  border-radius: 4px;
  transition: width 0.1s linear, background-color 0.3s ease;
}

.cust-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cust-avatar-img, .cust-avatar-svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  background: #1e2330;
}

.cust-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cust-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cust-title {
  font-size: 0.68rem;
  color: #ffab00;
  font-weight: 600;
}

.order-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: auto;
}

.order-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

.pill-meat {
  background: rgba(229, 57, 53, 0.25);
  color: #ff8a80;
  border: 1px solid rgba(229, 57, 53, 0.35);
}

.pill-yaji {
  background: rgba(255, 152, 0, 0.22);
  color: #ffd54f;
  border: 1px solid rgba(255, 152, 0, 0.35);
}

.pill-onion {
  background: rgba(156, 39, 176, 0.25);
  color: #ce93d8;
  border: 1px solid rgba(156, 39, 176, 0.35);
}

.pill-cabbage {
  background: rgba(76, 175, 80, 0.25);
  color: #a5d6a7;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.pill-drink {
  background: rgba(33, 150, 243, 0.25);
  color: #90caf9;
  border: 1px solid rgba(33, 150, 243, 0.35);
}

/* Customer Speech Bubble */
.speech-bubble {
  position: absolute;
  top: -32px;
  left: 10px;
  right: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
  text-align: center;
  animation: popBubble 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

@keyframes popBubble {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Angry Customer Speech Bubble (Burnt meat complaint in Nigerian pidgin) */
.speech-bubble.angry-bubble {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid #f87171 !important;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.7) !important;
  animation: angryBubbleShake 0.35s ease-in-out infinite alternate !important;
  font-weight: 800;
}

.speech-bubble.angry-bubble::after {
  border-top-color: #dc2626 !important;
}

@keyframes angryBubbleShake {
  0% { transform: scale(1) translateX(0); }
  50% { transform: scale(1.04) translateX(-3px); }
  100% { transform: scale(1.04) translateX(3px); }
}

/* Mai Suya (Aboki Chef) Interaction Bar - Premium Lagos Market Stall */
.aboki-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #1f1005 0%, #2c1608 50%, #150902 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(251, 191, 36, 0.15);
}

.aboki-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aboki-avatar-mini {
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.25));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fbbf24;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.aboki-info {
  display: flex;
  flex-direction: column;
}

.aboki-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #fef08a;
  letter-spacing: 0.02em;
}

.aboki-status-sub {
  font-size: 0.64rem;
  color: #f59e0b;
  font-weight: 600;
}

.aboki-speech-bubble {
  background: #fffbeb;
  color: #451a03;
  border: 1.5px solid #fde68a;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 12px;
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 250px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  animation: abokiPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  word-break: break-word;
}

.aboki-speech-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 7px 6px 0;
  border-style: solid;
  border-color: transparent #fffbeb transparent transparent;
}

@keyframes abokiPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Floating animated feedback */
.floating-toast {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  animation: floatUp 1.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  80% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -45px) scale(1.15); }
}

/* ==========================================================================
   CHARCOAL GRILL SECTION
   ========================================================================== */
.grill-section {
  background: linear-gradient(180deg, #181c24 0%, #121419 100%);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 12px;
  box-shadow: inset 0 0 40px rgba(255, 60, 0, 0.15), var(--shadow-sm);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.grill-mesh-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 14px),
                    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 14px);
  pointer-events: none;
}

.grill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.grill-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grill-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ff9800;
  text-transform: uppercase;
}

.ember-badge {
  font-size: 0.65rem;
  background: rgba(255, 61, 0, 0.25);
  color: #ffab40;
  border: 1px solid rgba(255, 61, 0, 0.4);
  padding: 2px 6px;
  border-radius: 10px;
  animation: emberPulse 2s infinite alternate;
}

@keyframes emberPulse {
  from { opacity: 0.7; box-shadow: 0 0 5px rgba(255, 87, 34, 0.2); }
  to { opacity: 1; box-shadow: 0 0 12px rgba(255, 87, 34, 0.7); }
}

/* Raw Meat Buttons Bar (The Meat Trays) */
.meat-dispensers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.btn-meat-raw {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #fff;
}

.btn-meat-raw:hover, .btn-meat-raw:active {
  background: var(--bg-card-hover);
  border-color: var(--ember-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.meat-raw-icon {
  font-size: 1.3rem;
}

.meat-raw-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.meat-raw-name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.meat-raw-sub {
  font-size: 0.65rem;
  color: #94a3b8;
}

/* Grill Slots Grid */
.grill-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.grill-slot {
  background: rgba(12, 14, 18, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.grill-slot:hover {
  border-color: var(--ember-gold);
}

.grill-slot.status-cooking {
  border-style: solid;
  border-color: rgba(255, 152, 0, 0.6);
  background: rgba(255, 87, 34, 0.1);
}

.grill-slot.status-ready {
  border-style: solid;
  border-color: #00e676;
  background: rgba(0, 230, 118, 0.12);
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.4);
  animation: readyBlink 1s infinite alternate;
}

@keyframes readyBlink {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

.grill-slot.status-burnt {
  border-style: solid;
  border-color: #ff1744;
  background: rgba(255, 23, 68, 0.15);
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.5);
}

.empty-wireframe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
  gap: 4px;
}

.empty-wireframe .plus-icon {
  font-size: 1.2rem;
  font-weight: 700;
}

.empty-wireframe .slot-label {
  font-size: 0.68rem;
  font-weight: 600;
}

/* Skewer Visual inside Grill */
.skewer-render {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.skewer-stick {
  width: 4px;
  height: 48px;
  background: #c29958;
  border-radius: 2px;
  position: absolute;
  top: -4px;
  z-index: 1;
}

.skewer-meat {
  width: 90%;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.meat-emoji {
  font-size: 1.1rem;
}

.meat-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.cook-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.cook-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.08s linear;
}

/* Powerups Bar beside/below Grill */
.grill-powerups-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.btn-powerup {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 7px 10px;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.btn-powerup:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-powerup:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.btn-powerup.glow-turbo {
  background: linear-gradient(90deg, #ff5722, #ff9800);
  color: #fff;
  border-color: #ffab00;
  box-shadow: var(--glow-gold);
  animation: turboPulse 0.4s infinite alternate;
}

@keyframes turboPulse {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

/* ==========================================================================
   PREPARATION & WRAPPING STATION (THE SUYA NEWSPAPER)
   ========================================================================== */
.prep-section {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.prep-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.prep-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffecd2;
}

.prep-tab-selector {
  display: flex;
  gap: 6px;
}

.prep-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.prep-tab.active {
  background: var(--ember-primary);
  color: #fff;
  border-color: var(--ember-glow);
}

/* Authentic Nigerian Vintage Newspaper Wrapping Station */
.newspaper-wrap-board {
  background: #fdfbf5;
  background-image: 
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 1px, transparent 1px, transparent 14px),
    linear-gradient(135deg, #fefdf9 0%, #f6f0e2 60%, #ebdcc4 100%);
  border: 2px solid #4a3b2c;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 110px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 0 35px rgba(180, 140, 90, 0.18);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  overflow: hidden;
}

.newspaper-wrap-board.folding {
  transform: scale(0.82) rotate(-4deg) translateY(-30px);
  opacity: 0.15;
}

.newspaper-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #1a140e;
  border-bottom: 2px solid #1a140e;
  padding: 3px 0;
  margin-bottom: 5px;
}

.paper-name {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #1a140e;
  text-transform: uppercase;
}

.paper-meta {
  font-family: monospace;
  font-size: 0.56rem;
  color: #6b5742;
  font-weight: 700;
}

.newspaper-headline {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: #2e2216;
  border-bottom: 1px solid rgba(74, 59, 44, 0.25);
  padding-bottom: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.board-skewers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.empty-board-msg {
  color: #71644f;
  font-size: 0.75rem;
  font-family: Georgia, serif;
  font-style: italic;
  text-align: center;
  width: 100%;
  margin: auto;
}

/* Sliced meat items on the newsprint */
.prep-skewer-item {
  background: rgba(43, 29, 14, 0.88);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: skewerDropSlice 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes skewerDropSlice {
  0% { transform: scale(0.7) translateY(-10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.prep-skewer-item:hover {
  background: rgba(60, 36, 16, 0.95);
}

/* Newspaper Garnishes Layer (Sliced Onions, Cabbage & Yaji Dust) */
.newspaper-garnishes-layer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.garnish-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.garnish-yaji {
  background: #dc2626;
  color: #fff;
}

.garnish-onion {
  background: #7e22ce;
  color: #fff;
}

.garnish-cabbage {
  background: #15803d;
  color: #fff;
}

.garnish-drink {
  background: #0284c7;
  color: #fff;
}

/* Knife Slash Animation Effect */
.knife-slash-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 10;
  font-size: 2.2rem;
}

.knife-slash-effect.active {
  animation: knifeFlash 0.35s ease-out forwards;
}

@keyframes knifeFlash {
  0% { opacity: 1; transform: scale(0.6) rotate(-25deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(10deg); }
  100% { opacity: 0; transform: scale(1.4) rotate(35deg); }
}

/* Seasoning & Condiment Controls */
.prep-controls-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.prep-action-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.prep-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.prep-action-btn.active {
  background: rgba(255, 171, 0, 0.2);
  border-color: var(--ember-gold);
  color: #ffc107;
  box-shadow: 0 0 10px rgba(255, 171, 0, 0.25);
}

/* Chilled Drinks Fridge Selector */
.drink-selector-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.drink-row-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.drink-choice-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px 8px;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.drink-choice-btn.selected {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* Final Action Bar (Wrap & Serve vs Clear) */
.prep-final-actions {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 8px;
}

.btn-serve-wrap {
  background: linear-gradient(90deg, #008751, #00c853);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  box-shadow: var(--glow-green);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-serve-wrap:hover, .btn-serve-wrap:active {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-clear-board {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ef4444;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-clear-board:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 100;
  animation: fadeIn 0.25s ease;
  box-sizing: border-box;
}

.modal-overlay.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-window {
  background: #141720;
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 20px 16px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(255, 87, 34, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  margin: auto;
}

.modal-header-hero {
  text-align: center;
  margin-bottom: 18px;
}

.modal-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--ember-gold);
  object-fit: cover;
  box-shadow: var(--glow-gold);
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ffc107, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.modal-subtitle {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Start Screen Buttons */
.modal-menu-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-menu-primary {
  background: linear-gradient(90deg, #ff5722, #ff9800);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--glow-ember);
  transition: all 0.15s ease;
}

.btn-menu-primary:hover, .btn-menu-primary:active {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-menu-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.btn-menu-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Upgrades Shop Grid */
.shop-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.shop-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-item-icon {
  font-size: 1.6rem;
}

.shop-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.shop-item-desc {
  font-size: 0.72rem;
  color: #94a3b8;
}

.btn-buy-upgrade {
  background: var(--naija-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-buy-upgrade:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #64748b;
  cursor: not-allowed;
}

/* Stats Summary Box in Results */
.stats-summary-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.stat-metric {
  display: flex;
  flex-direction: column;
}

.stat-metric-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #4ade80;
}

.stat-metric-lbl {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast {
  background: #1e293b;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-left: 4px solid #38bdf8;
  animation: slideToast 0.25s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-gold {
  border-left-color: #ffc107;
  background: #272115;
  color: #ffecd2;
}

.toast-danger {
  border-left-color: #ef4444;
  background: #2b1719;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MOBILE & RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 680px) {
  .app-container {
    padding: 6px 8px 18px;
    max-width: 100vw;
  }

  /* Responsive Top Header: Compact 2-row grid layout */
  .top-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand controls"
      "stats stats";
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .brand-section {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-text h1 {
    font-size: 0.95rem;
  }

  .brand-tagline {
    display: none;
  }

  .brand-logo-mini {
    width: 32px;
    height: 32px;
  }

  .hud-controls-group {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .hud-stats-group {
    grid-area: stats;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
    gap: 6px;
  }

  .hud-stat-box {
    align-items: center;
  }

  .hud-stat-label {
    font-size: 0.58rem;
  }

  .hud-naira-value {
    font-size: 0.95rem;
  }

  .hud-timer-value {
    font-size: 0.88rem;
  }

  .hud-combo-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .hud-strikes-container {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  /* Modal Mobile Fitting */
  .modal-overlay {
    padding: 8px;
  }

  .modal-window {
    padding: 16px 12px;
    max-width: min(440px, calc(100vw - 20px));
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
  }

  .modal-logo-img {
    width: 72px;
    height: 72px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .btn-menu-primary, .btn-menu-secondary {
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  .stats-summary-box {
    padding: 8px;
    gap: 4px;
  }

  .stat-metric-val {
    font-size: 0.95rem;
  }

  /* Customer Spot Responsive */
  .customer-queue-grid {
    gap: 6px;
  }

  .customer-spot {
    min-height: 155px;
  }

  .customer-card {
    padding: 6px;
  }

  .cust-header {
    gap: 6px;
    margin-bottom: 4px;
  }

  .cust-avatar-img, .cust-avatar-svg {
    width: 30px;
    height: 30px;
  }

  .cust-name {
    font-size: 0.68rem;
  }

  .cust-title {
    font-size: 0.58rem;
  }

  .order-box {
    padding: 4px 6px;
  }

  .pill {
    font-size: 0.58rem;
    padding: 1px 4px;
    gap: 2px;
  }

  .speech-bubble {
    font-size: 0.62rem;
    padding: 3px 6px;
    top: -26px;
  }

  /* Raw Meat Dispensers on Mobile */
  .meat-dispensers {
    gap: 6px;
    margin-bottom: 8px;
  }

  .btn-meat-raw {
    padding: 6px 4px;
    flex-direction: column;
    text-align: center;
    gap: 2px;
  }

  .meat-raw-icon {
    font-size: 1.1rem;
  }

  .meat-raw-name {
    font-size: 0.68rem;
  }

  .meat-raw-sub {
    font-size: 0.58rem;
  }

  /* Grill Slots */
  .grill-slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .grill-slot {
    min-height: 78px;
    padding: 4px;
  }

  .skewer-stick {
    height: 34px;
  }

  .skewer-meat {
    height: 32px;
  }

  .meat-title {
    font-size: 0.62rem;
  }

  .grill-powerups-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .btn-powerup {
    padding: 6px 8px;
    font-size: 0.68rem;
    white-space: normal;
  }

  /* Prep Station on Mobile */
  .newspaper-wrap-board {
    min-height: 64px;
    padding: 6px;
  }

  .prep-skewer-item {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .prep-controls-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .prep-action-btn {
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .prep-final-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .btn-serve-wrap {
    padding: 11px;
    font-size: 0.88rem;
  }

  .btn-clear-board {
    padding: 8px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   GRILL SIZZLE SOUND CONTROLS & LEADERBOARD STYLING
   ========================================================================== */

/* Sizzle Sound Toggle in HUD */
.btn-icon.sizzle-muted {
  position: relative;
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

.btn-icon.sizzle-muted::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #ef4444;
  transform: rotate(-45deg);
  box-shadow: 0 0 4px #000;
  pointer-events: none;
}

/* Sound Pills on Start Screen */
.menu-sound-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 10px 0 14px 0;
  width: 100%;
  box-sizing: border-box;
}

.btn-sound-pill {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #e2e8f0;
  padding: 6px 2px;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.btn-sound-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-sound-pill.sound-off {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Leaderboard Modal */
.leaderboard-modal-window {
  max-width: 520px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.leaderboard-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.leaderboard-tabs .tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-tabs .tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0f00;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.leaderboard-container {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 4px;
  margin-bottom: 14px;
}

.leaderboard-container::-webkit-scrollbar {
  width: 5px;
}

.leaderboard-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.leaderboard-loading, .leaderboard-empty {
  text-align: center;
  padding: 30px 10px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  transition: background 0.15s ease;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.leaderboard-row.rank-1 {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.leaderboard-row.rank-2 {
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(203, 213, 225, 0.35);
}

.leaderboard-row.rank-3 {
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(180, 83, 9, 0.35);
}

.lb-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.rank-1 .lb-rank-badge {
  background: #f59e0b;
  color: #1f1200;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rank-2 .lb-rank-badge {
  background: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.4);
}

.rank-3 .lb-rank-badge {
  background: #b45309;
  color: #fff;
  box-shadow: 0 0 10px rgba(180, 83, 9, 0.4);
}

.lb-name-group {
  display: flex;
  flex-direction: column;
}

.lb-player-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #f8fafc;
}

.lb-meta {
  font-size: 0.68rem;
  color: #94a3b8;
}

.lb-score-group {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lb-score-naira {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #4ade80;
}

.lb-packs-sub {
  font-size: 0.68rem;
  color: #cbd5e1;
}

/* Score Submission Form on Game Over & Night Complete */
.leaderboard-submit-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 12px 0;
  text-align: left;
}

.submit-label {
  display: block;
  font-size: 0.74rem;
  color: #fbbf24;
  margin-bottom: 6px;
  font-weight: 600;
}

.submit-input-group {
  display: flex;
  gap: 8px;
}

.submit-name-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.submit-name-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.btn-submit-score {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #1f1200;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
  white-space: nowrap;
}

.btn-submit-score:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-submit-score:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.submit-status-msg {
  font-size: 0.72rem;
  margin-top: 6px;
  min-height: 16px;
  font-weight: 600;
}

.submit-status-msg.success {
  color: #4ade80;
}

.submit-status-msg.error {
  color: #f87171;
}

/* ==========================================================================
   Live Lagos Rivals Ticker Bar (In-Game Activity & What Others Are Selling)
   ========================================================================== */
.rivals-ticker-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(28, 16, 5, 0.95) 0%, rgba(42, 22, 7, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.rivals-ticker-bar:hover {
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.rivals-live-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 6px;
  padding: 2px 5px;
  font-weight: 800;
  font-size: 0.60rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pulsing-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseLive 1.2s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseLive {
  0% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

.rivals-ticker-content {
  flex: 1;
  min-width: 0;
  color: #fef08a;
  font-size: 0.70rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}

.btn-view-standings {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #1a0e00;
  font-weight: 800;
  font-size: 0.60rem;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.1s ease;
}

.btn-view-standings:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   Chef Alias Profile Card (Start Screen)
   ========================================================================== */
.chef-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(35, 20, 8, 0.85) 0%, rgba(20, 10, 4, 0.85) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 8px 10px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  width: 100%;
}

.chef-avatar-badge {
  font-size: 1.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.chef-profile-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chef-input-label {
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fbbf24;
  text-transform: uppercase;
}

.chef-name-field-wrap {
  display: flex;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.start-chef-name-input {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  background: rgba(10, 6, 2, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  color: #fff;
  font-size: 0.80rem;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.start-chef-name-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.btn-chef-save {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #1a0e00;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}

.btn-chef-save:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   In-Game Live Leaderboard Modal & Rivals Dashboard
   ========================================================================== */
.in-game-rivals-window {
  max-width: 380px !important;
  background: linear-gradient(180deg, #1f1205 0%, #120a02 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
  border-radius: 18px !important;
  padding: 16px 18px !important;
}

.rivals-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.rivals-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rivals-online-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.live-active-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

.live-time-tag {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-left: 6px;
}

.rivals-modal-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.04em;
  margin: 0;
}

.btn-close-rivals {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-close-rivals:hover {
  color: #fff;
}

.player-rank-highlight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.player-rank-avatar {
  font-size: 1.8rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-rank-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.player-rank-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-rank-chef-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.player-rank-badge {
  background: #f59e0b;
  color: #1a0e00;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.player-rank-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
}

.player-rank-bank {
  color: #4ade80;
  font-weight: 700;
}

.player-rank-gap {
  color: #fbbf24;
  font-style: italic;
  font-size: 0.64rem;
}

/* Active Chefs Online Section (Real-Time MySQL Presence) */
.active-chefs-online-section {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.active-chefs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.active-chefs-title {
  font-size: 0.66rem;
  font-weight: 800;
  color: #a7f3d0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-chefs-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  padding: 1px 6px;
  border-radius: 999px;
}

.active-chefs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.active-chef-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.68rem;
  color: #f1f5f9;
}

.active-chef-chip.is-you {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef3c7;
  font-weight: 700;
}

.active-chef-chip .chip-dot {
  font-size: 0.5rem;
}

.active-chef-chip .chip-seen {
  font-size: 0.58rem;
  color: #94a3b8;
  margin-left: 2px;
}

/* Hall of Fame Online Status */
.lb-live-online-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.3);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 4px;
}

/* Patience countdown timer badge on customer card */
.patience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.patience-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.patience-countdown {
  font-size: 0.65rem;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.02em;
}

.rivals-standings-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.rival-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.74rem;
  transition: all 0.15s ease;
}

.rival-list-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.rival-list-row.is-current-player {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
}

.rival-col-rank {
  font-size: 0.85rem;
  font-weight: 800;
  width: 28px;
  text-align: center;
}

.rival-col-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0 8px;
}

.rival-chef-title {
  color: #f1f5f9;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rival-venue-sub {
  color: #94a3b8;
  font-size: 0.62rem;
}

.rival-col-score {
  font-weight: 800;
  color: #f59e0b;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.rival-loading-text {
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 16px 0;
}

/* ==========================================================================
   Lagos Hall of Fame Leaderboard Submission Card (Game Over & Night Complete)
   ========================================================================== */
.chef-submit-card {
  background: linear-gradient(135deg, rgba(32, 17, 6, 0.95) 0%, rgba(18, 9, 3, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(251, 191, 36, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
}

.chef-submit-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chef-submit-badge {
  font-family: var(--font-display, sans-serif);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fbbf24;
  text-transform: uppercase;
}

.chef-submit-sub {
  font-size: 0.68rem;
  color: #cbd5e1;
}

.chef-submit-input-row {
  display: flex;
  align-items: center;
  background: rgba(8, 5, 2, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 4px 10px;
  gap: 8px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.chef-submit-input-row:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.chef-input-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chef-record-input {
  flex: 1 1 0;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-family: var(--font-main, sans-serif);
  font-size: 0.92rem !important;
  font-weight: 700;
  padding: 6px 0 !important;
  -webkit-appearance: none;
  box-shadow: none !important;
}

.chef-record-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.btn-submit-record-cta {
  width: 100%;
  background: linear-gradient(90deg, #ff5722 0%, #ff9800 100%);
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  color: #ffffff;
  font-family: var(--font-display, sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-appearance: none;
}

.btn-submit-record-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-submit-record-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mesh Sizzle Button */
.btn-mesh-sizzle {
  background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.4);
  color: #ffb74d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.btn-mesh-sizzle:hover {
  background: rgba(255, 87, 34, 0.25);
  border-color: #ff5722;
}

.btn-mesh-sizzle.sizzle-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #94a3b8;
}

