:root {
  --cream: #fff8ec;
  --cream-deep: #f5ebd6;
  --paper: #fffdf8;
  --terracotta: #c84b31;
  --terracotta-dark: #9f3520;
  --olive: #3d7a47;
  --olive-light: #e6f4e8;
  --gold: #f2b138;
  --gold-soft: #fff2cc;
  --espresso: #4a2c1d;
  --espresso-soft: #7b5846;
  --chalk: #26322b;
  --border: #e2cfa9;
  --shadow: 0 6px 18px rgba(74, 44, 29, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #fffdf7 0%, #f8ebd2 100%);
  color: var(--espresso);
  font-family: "Nunito", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.35;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  user-select: none;
  -webkit-user-select: none;
}

button svg,
.pass-slot svg,
.station-slot svg {
  pointer-events: none;
}

button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 8px 12px 10px;
  gap: 8px;
}

/* HUD */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--chalk);
  color: #fffaf0;
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.hud-left, .hud-right, .hud-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
}

.brand-flag {
  display: inline-flex;
  width: 18px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand-flag span:nth-child(1) { flex: 1; background: #3d7a47; }
.brand-flag span:nth-child(2) { flex: 1; background: #fffdf8; }
.brand-flag span:nth-child(3) { flex: 1; background: #c84b31; }

.hud-pill {
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hud-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f9cf61, #e89f20);
  color: #3f2108;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.coin-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff4cc;
  color: #8f5700;
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 3px 10px rgba(74, 44, 29, 0.16);
}

.btn:active:not(:disabled) {
  filter: brightness(0.97);
}

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

.btn-gold {
  background: linear-gradient(135deg, #f8c64c, #e5991b);
  color: #3f2108;
}

.btn-cream {
  background: #fff4df;
  color: var(--espresso);
}

.btn-terracotta {
  background: linear-gradient(135deg, #d8573c, #b73c23);
  color: #fff;
}

.btn-olive {
  background: linear-gradient(135deg, #478d52, #326a3b);
  color: #fff;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.24);
}

.badge-count {
  background: #2e7d32;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.75rem;
  animation: pulseBadge 1.5s infinite;
}

.badge-soft {
  background: rgba(74, 44, 29, 0.14);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.75rem;
}

/* Main Split Grid */
.stage {
  display: grid;
  grid-template-columns: 49% 51%;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

@media (min-width: 1040px) {
  .app-shell {
    height: 100vh;
    overflow: hidden;
  }
  .stage {
    overflow: hidden;
  }
  .panel {
    overflow-y: auto;
  }
}

@media (max-width: 1039px) {
  .stage {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px dashed var(--border);
  padding-bottom: 6px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--terracotta);
}

.panel-sub {
  margin: 1px 0 0;
  font-size: 0.78rem;
  color: var(--espresso-soft);
}

.pill-tag {
  background: var(--cream-deep);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.btn-link-pill {
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
  color: #6b4100;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Onboarding Banner */
.onboarding-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, #fff5d6, #ffe7b8);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.onboard-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.onboard-step {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--espresso-soft);
}

.onboard-step.active {
  background: var(--terracotta);
  color: #fff;
}

.onboard-step.done {
  background: var(--olive);
  color: #fff;
}

/* Dining Room Tables */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 8px;
}

.table-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.table-card.table-complete {
  border-color: var(--olive);
  background: #edf9ee;
}

.table-card.table-empty {
  justify-content: center;
  align-items: center;
  min-height: 150px;
  border-style: dashed;
  color: var(--espresso-soft);
  text-align: center;
  font-size: 0.85rem;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.table-title {
  font-weight: 800;
  font-size: 0.86rem;
}

.table-sub {
  font-size: 0.73rem;
  color: var(--espresso-soft);
}

.table-progress {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.73rem;
  font-weight: 800;
}

/* Checkered Italian tablecloth strip */
.tablecloth-runner {
  height: 10px;
  border-radius: 6px;
  border: 1px solid rgba(168, 46, 26, 0.25);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(200, 75, 49, 0.35) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(200, 75, 49, 0.35) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(200, 75, 49, 0.35) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(200, 75, 49, 0.35) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.seats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.seats-grid.seats-1 {
  grid-template-columns: 1fr;
}

.guest-seat {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 2px solid #ebd9ba;
  border-radius: 11px;
  padding: 5px 7px;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.guest-seat:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(74, 44, 29, 0.12);
}

.guest-seat.selected {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(200, 75, 49, 0.22);
  background: #fffaf4;
}

.guest-seat.served {
  background: #f3fbf4;
  border-color: #9ed1a6;
}

.guest-seat-info {
  flex: 1;
  min-width: 0;
}

.guest-seat-name {
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-seat-icons {
  font-size: 0.74rem;
  color: var(--espresso-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.patience-track {
  height: 5px;
  background: #efe5d5;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 3px;
}

.patience-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s linear;
}

.patience-good { background: #4caf50; }
.patience-warn { background: #f2b138; }
.patience-low { background: #e53935; }

.seat-quick-serve {
  position: absolute;
  top: -8px;
  right: 4px;
  background: var(--olive);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.seat-star-badge {
  background: var(--gold-soft);
  color: #824d00;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 1px 5px;
}

/* Selected Guest Order Card */
.guest-order-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fff4df 100%);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.order-card-meta {
  flex: 1;
  min-width: 0;
}

.order-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.order-guest-name {
  font-size: 1rem;
  font-weight: 900;
}

.archetype-pill {
  background: var(--cream-deep);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.speech-bubble {
  margin-top: 5px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--espresso);
}

.prefs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1.5px solid transparent;
}

.chip-want {
  background: #eef6ff;
  border-color: #bbd4f2;
  color: #1f4d7a;
}

.chip-loved {
  background: #fff0f4;
  border-color: #f3b8c8;
  color: #8f2247;
}

.chip-avoid {
  background: #fff1ee;
  border-color: #f2b4a8;
  color: #9e2a1b;
}

.chip-match {
  background: var(--olive-light) !important;
  border-color: var(--olive) !important;
  color: #1c5725 !important;
}

.chip-warn {
  background: #ffd9d4 !important;
  border-color: #c62828 !important;
  color: #8e0000 !important;
  animation: shakeWarn 0.35s ease;
}

/* Kitchen Panel */
.prep-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #fff5df, #fffdf8);
  border: 2px solid var(--border);
  border-radius: 13px;
  padding: 7px 10px;
}

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

.prep-dish-name {
  font-weight: 900;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.mini-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 800;
}

.prep-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.prep-price-pill {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--olive);
}

.prep-btn-row {
  display: flex;
  gap: 6px;
}

/* Ingredient Builder */
.ingredient-builder {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.builder-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--espresso-soft);
  margin-bottom: 3px;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 6px;
}

.ing-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
}

.ing-btn:hover {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 2px 7px rgba(74, 44, 29, 0.1);
}

.ing-btn.active {
  background: #fff2d6;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 1.5px rgba(200, 75, 49, 0.25);
}

.ing-text {
  min-width: 0;
  flex: 1;
}

.ing-name {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.18;
  white-space: normal;
}

.ing-meta {
  font-size: 0.68rem;
  color: var(--espresso-soft);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 1px;
}

.tier-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0 5px;
  border-radius: 999px;
  background: #efe2c4;
  color: #6b4300;
}

.tier-badge.tier-3 {
  background: linear-gradient(135deg, #f9d976, #e59a1e);
  color: #3f2108;
}

/* Cooking Line & Serving Pass */
.kitchen-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.sub-section {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 7px 9px;
}

.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.sub-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--espresso-soft);
}

.cooking-stations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 7px;
}

.station-slot {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 11px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 78px;
}

.station-slot.empty {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  color: var(--espresso-soft);
  font-size: 0.76rem;
}

.station-slot.perfetto {
  border-color: var(--gold);
  background: #fffbeb;
  box-shadow: 0 0 0 2px rgba(242, 177, 56, 0.35);
  animation: perfettoGlow 0.9s ease-in-out infinite alternate;
}

.station-slot.overcooked {
  border-color: #c62828;
  background: #fff0ee;
}

.station-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.station-name {
  font-size: 0.77rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-status {
  font-size: 0.71rem;
  font-weight: 800;
}

.cook-meter {
  position: relative;
  height: 9px;
  background: #efe5d5;
  border-radius: 999px;
  overflow: hidden;
}

.cook-zone-gold {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(242, 177, 56, 0.42);
  border-left: 1.5px solid #d48900;
  border-right: 1.5px solid #d48900;
}

.cook-fill {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #e58e26, #3d7a47);
  border-radius: 999px;
}

.station-slot.perfetto .cook-fill {
  background: linear-gradient(90deg, #f2b138, #f7d060);
}

.station-slot.overcooked .cook-fill {
  background: #c62828;
}

.serving-pass {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.pass-slot {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 11px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-height: 92px;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.pass-slot.empty {
  cursor: default;
  border-style: dashed;
  justify-content: center;
  color: var(--espresso-soft);
  font-size: 0.72rem;
}

.pass-slot.selected {
  border-color: var(--olive);
  box-shadow: 0 0 0 2px rgba(61, 122, 71, 0.25);
  background: #f5fbf6;
}

.pass-name {
  font-size: 0.71rem;
  font-weight: 800;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pass-quality {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--cream-deep);
}

.pass-quality.q-perfetto {
  background: var(--gold-soft);
  color: #844e00;
}

.pass-discard {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 0.72rem;
  color: var(--espresso-soft);
  padding: 0 4px;
  border-radius: 4px;
}

.pass-discard:hover {
  background: #ffe2de;
  color: #b71c1c;
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 90;
  pointer-events: none;
}

.toast {
  background: var(--chalk);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--gold);
  animation: toastPop 0.22s ease;
}

.toast.toast-bonus {
  background: linear-gradient(135deg, #3d7a47, #275830);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 25, 17, 0.62);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  background: var(--paper);
  border: 3px solid var(--gold);
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 22px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px dashed var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--terracotta);
}

.tabs-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream-deep);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--espresso);
  user-select: none;
  -webkit-user-select: none;
}

.tab-btn.active {
  background: var(--terracotta);
  color: #fff;
}

/* Progressive Upgrade Sets */
.set-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.set-pill {
  padding: 7px 8px;
  border-radius: 12px;
  background: var(--cream-deep);
  border: 2px solid var(--border);
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--espresso);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.set-pill.active {
  background: #fff5df;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(200, 75, 49, 0.2);
}

.set-pill.completed {
  background: #edf9ee;
  border-color: var(--olive);
}

.set-pill.locked {
  opacity: 0.65;
}

.set-progress-card {
  background: linear-gradient(90deg, #fff5df, #fffdf8);
  border: 2px solid var(--border);
  border-radius: 13px;
  padding: 9px 12px;
  margin-bottom: 10px;
}

.set-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
  font-size: 0.88rem;
}

.set-progress-track {
  height: 8px;
  background: #eadbc0;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 4px;
}

.set-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  border-radius: 999px;
  transition: width 0.25s ease;
}

@media (max-width: 640px) {
  .set-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shop-grid, .recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.shop-card, .recipe-card {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.shop-card.owned {
  background: #edf9ee;
  border-color: #95cb9c;
}

.shop-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 900;
}

.shop-desc {
  font-size: 0.8rem;
  color: var(--espresso-soft);
  flex: 1;
}

.recipe-card.locked {
  opacity: 0.72;
  border-style: dashed;
}

.chalkboard-box {
  background: var(--chalk);
  color: #fffaf0;
  border-radius: 16px;
  padding: 16px;
  border: 3px solid #755338;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-lbl {
  font-size: 0.76rem;
  opacity: 0.9;
}

.title-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.title-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 6px 0;
}

.title-feature {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .title-cards {
    grid-template-columns: 1fr;
  }
  .serving-pass {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes perfettoGlow {
  from { box-shadow: 0 0 0 2px rgba(242, 177, 56, 0.35); }
  to { box-shadow: 0 0 12px 4px rgba(242, 177, 56, 0.7); }
}

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

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

@keyframes shakeWarn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
