/* ============================================================
   BRAAI MASTER RSA — stylesheet (no-scroll layout)
   Palette: charcoal night, ember fire, braai gold, wood, SA leaf/brick
   ============================================================ */

:root {
  --charcoal: #221812;
  --charcoal-2: #2e2019;
  --ember: #ff6a1a;
  --ember-dark: #c2450c;
  --gold: #e8b23d;
  --wood: #9a6a35;
  --wood-dark: #5c3a1a;
  --cream: #f6ead4;
  --cream-dim: #d9c9ac;
  --leaf: #4a9a56;
  --brick: #c1402f;
  --smoke: #7a6a5c;

  --font-display: 'Courier New', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 9px;
  --border-thick: 2px solid #1a1210;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--charcoal);
  font-family: var(--font-body);
  color: var(--cream);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

img { image-rendering: pixelated; image-rendering: crisp-edges; }

#game-root {
  max-width: 520px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,106,26,0.16), transparent 55%),
    linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  position: relative;
  overflow-y: auto;   /* safety net only — layout is sized to avoid needing it */
  overflow-x: hidden;
  padding-bottom: 4px;
}

/* ---------- header: title + HUD combined, compact ---------- */
.header-block {
  flex: 0 0 auto;
  border-bottom: var(--border-thick);
  background: var(--charcoal-2);
}

.title-strip {
  text-align: center;
  padding: 4px 8px 0;
}
.title-strip h1 {
  font-family: var(--font-display);
  font-size: clamp(14px, 4vw, 17px);
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--ember);
  text-shadow: 1px 1px 0 #1a1210;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 6px;
  padding: 3px 8px 5px;
  font-family: var(--font-display);
  font-size: 11.5px;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  min-width: 0;
}

.hud-money { color: var(--gold); font-weight: bold; }
.hud-stars { letter-spacing: 1px; color: var(--gold); }
.hud-day {
  color: var(--cream-dim);
  font-size: 10.5px;
  flex: 1 1 auto;
  min-width: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-time { color: var(--cream); font-weight: bold; }

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

.icon-btn {
  background: var(--wood-dark);
  border: 2px solid #1a1210;
  color: var(--cream);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.icon-btn:active { transform: translateY(1px); }
#lang-btn { width: auto; min-width: 26px; padding: 0 5px; font-family: var(--font-display); font-size: 10.5px; }

/* ---------- customer zone ---------- */
.customer-zone {
  flex: 0 0 auto;
  padding: 6px 10px 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.customer-face {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4));
  transition: transform 0.15s ease;
}
.customer-face.bump { animation: facebump 0.35s ease; }
@keyframes facebump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25) rotate(-4deg); }
  100% { transform: scale(1); }
}

.speech-bubble {
  position: relative;
  background: var(--cream);
  color: #2a1d12;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11.5px;
  line-height: 1.28;
  flex: 1;
  min-width: 0;
  border: 2px solid #1a1210;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 10px;
  border-width: 7px 8px 7px 0;
  border-style: solid;
  border-color: transparent #1a1210 transparent transparent;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  left: -5.5px;
  top: 11px;
  border-width: 6px 7px 6px 0;
  border-style: solid;
  border-color: transparent var(--cream) transparent transparent;
}
.speech-bubble .order-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: bold;
  color: #fff;
  background: var(--ember-dark);
  border: 1.5px solid #1a1210;
  border-radius: 6px;
  padding: 4px 6px;
  margin-top: 5px;
  line-height: 1.4;
}

/* ---------- take-order button (pauses patience until pressed) ---------- */
.take-order-wrap {
  flex: 0 0 auto;
  padding: 0 10px 6px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease;
}
.take-order-wrap.show { max-height: 60px; }
.take-order-btn {
  width: 100%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 2px solid #1a1210;
  background: var(--gold);
  color: #1a1210;
  cursor: pointer;
  box-shadow: 0 2px 0 #a67a1f;
  animation: orderPulse 1s infinite ease-in-out;
}
.take-order-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #a67a1f; }
@keyframes orderPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.patience-bar {
  height: 4px;
  border-radius: 3px;
  background: #1a1210;
  margin-top: 4px;
  overflow: hidden;
}
.patience-bar-fill {
  height: 100%;
  background: var(--leaf);
  width: 100%;
  transition: width 0.3s linear, background 0.3s linear;
}

/* ---------- kitchen: grill + board side by side ---------- */
.kitchen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 8px;
  margin: 4px 10px;
  background: var(--charcoal-2);
  border: var(--border-thick);
  border-radius: var(--radius);
  padding: 8px;
}

.kitchen-col {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.station-label {
  font-family: var(--font-display);
  font-size: 9.5px;
  color: var(--smoke);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  align-self: center;
}

.grill-surface {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 0;
}

.grill-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 22px;
  justify-content: center;
}
#grill-status-text {
  font-family: var(--font-display);
  font-size: 9.5px;
  color: var(--smoke);
  text-align: center;
  line-height: 1.25;
}
.grill-status.cooking #grill-status-text { color: var(--gold); font-weight: bold; }
.grill-progress {
  width: 10px;
  height: 84%;
  align-self: center;
  border-radius: 5px;
  background: #1a1210;
  overflow: hidden;
  display: none;
  flex-direction: column-reverse; /* fill grows upward from the bottom, like a thermometer */
  flex-shrink: 0;
}
.grill-progress.cooking { display: flex; }
.grill-progress-fill {
  width: 100%;
  height: 0%;
  background: var(--gold);
  transition: height 0.12s linear, background 0.15s linear;
}

.braai-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.braai-stack {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.braai-stack .grill-icon-img {
  width: 58%;
  max-width: 160px;
  height: auto;
  opacity: 0.95;
}
.grill-meat-img {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 53%;
  height: 53%;
  object-fit: contain;
  display: none;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}
.grill-meat-img.show { display: block; }
.grill-meat-img.sizzle { animation: sizzlewiggle 0.5s infinite ease-in-out; }
@keyframes sizzlewiggle {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-1.5px) rotate(1deg); }
}

.big-btn {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 2px solid #1a1210;
  background: var(--ember);
  color: #1a1210;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ember-dark);
  width: 100%;
  margin-top: 4px;
  flex-shrink: 0;
}
.big-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ember-dark); }
.big-btn:disabled {
  background: #4a3f36;
  color: var(--smoke);
  box-shadow: 0 2px 0 #2a231d;
  cursor: not-allowed;
}
.big-btn.serve { background: var(--gold); box-shadow: 0 2px 0 #a67a1f; }
.big-btn.serve:disabled { background: #4a3f36; box-shadow: 0 2px 0 #2a231d; }

.board-surface {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 0;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px;
  background-image: url('../assets/images/wooden_board.png');
  background-size: cover;
  background-position: center;
  border: 2px solid #1a1210;
}
.plated-item {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.plated-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}
.plated-item .tag {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  font-family: var(--font-display);
  padding: 1px 2px;
  border-radius: 3px;
  white-space: nowrap;
  color: #fff;
}
.tag.perfect { background: var(--leaf); }
.tag.ok { background: var(--gold); color: #1a1210; }
.tag.bad { background: var(--brick); }

.board-empty-hint {
  font-size: 10px;
  color: #fff2de;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  text-align: center;
  padding: 0 4px;
}

/* ---------- meat tray ---------- */
.section-title {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--smoke);
  letter-spacing: 0.5px;
  margin: 2px 10px 1px;
}

.tray {
  flex: 0 0 auto;
}
.tray-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 10px 3px;
}
.meat-card {
  flex-shrink: 0;
  width: 58px;
  background: var(--charcoal-2);
  border: 2px solid #1a1210;
  border-radius: 7px;
  padding: 4px 3px 3px;
  text-align: center;
  cursor: pointer;
}
.meat-card:active { transform: translateY(1px); }
.meat-card.disabled { opacity: 0.3; pointer-events: none; }
.meat-card.done { opacity: 0.5; }
.meat-card img { width: 34px; height: 34px; object-fit: contain; }
.meat-card .meat-name {
  font-size: 8px;
  color: var(--cream-dim);
  margin-top: 1px;
  line-height: 1.1;
  min-height: 18px;
}
.meat-card .meat-price {
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--gold);
}
.meat-card .meat-stock {
  font-family: var(--font-display);
  font-size: 7.5px;
  color: var(--cream-dim);
  margin-top: 1px;
}
.meat-card.out .meat-stock { color: var(--brick); }

/* ---------- drinks (inline SVG bottle icons, no image assets) ---------- */
.drink-card .drink-icon,
.plated-drink .drink-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto;
}
.drink-card .drink-icon img,
.plated-drink .drink-icon img,
.buy-swatch.drink-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}
.plated-drink { display: flex; flex-direction: column; align-items: center; }
.plated-drink .drink-icon { width: 30px; height: 30px; }
.buy-swatch.drink-icon {
  border-radius: 4px;
  border: none;
  background: transparent;
}

/* ---------- spice palette (colored swatches, no images) ---------- */
.spice-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 10px 3px;
}
.spice-swatch {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #1a1210;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.spice-swatch.selected {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.spice-swatch.disabled { opacity: 0.35; pointer-events: none; }
.spice-swatch .needed-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
  border: 1.5px solid #1a1210;
}
.spice-swatch .stock-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  font-family: var(--font-display);
  background: #1a1210;
  color: #fff;
  padding: 0 3px;
  border-radius: 4px;
  line-height: 1.3;
}
.spice-swatch.out .stock-badge { background: var(--brick); }

/* ---------- toast / floating money ---------- */
.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 260;
  max-width: 520px;
  margin: 0 auto;
}
.floater {
  position: absolute;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 15px;
  animation: floatup 1.1s ease-out forwards;
}
.floater.good { color: var(--leaf); }
.floater.bad { color: var(--brick); }
@keyframes floatup {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); }
}

.spice-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  animation: spicepop 0.6s ease-out forwards;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
@keyframes spicepop {
  0% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.4); }
}

/* ---------- shift-end modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 4, 0.82);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--charcoal-2);
  border: var(--border-thick);
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: 0 8px 0 #0f0a07;
}
.modal-title {
  font-family: var(--font-display);
  text-align: center;
  color: var(--gold);
  margin: 0 0 10px;
  font-size: 17px;
  text-shadow: 1px 1px 0 #1a1210;
}
.shift-stats { display: flex; flex-direction: column; gap: 5px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--charcoal);
  border: 1.5px solid #1a1210;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12px;
}
.stat-row b { color: var(--gold); font-family: var(--font-display); }
.stat-row.new-unlock { background: var(--wood-dark); border-color: var(--gold); }
.stat-row.new-unlock b { color: #fff; }
.buy-section { margin-top: 6px; }
.buy-money {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  margin: 2px 0 6px;
}
.buy-list { display: flex; flex-direction: column; gap: 6px; }
.buy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--charcoal);
  border: 1.5px solid #1a1210;
  border-radius: 7px;
  padding: 5px 8px;
}
.buy-row img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.buy-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #1a1210;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.buy-info { flex: 1; min-width: 0; }
.buy-name { font-size: 11.5px; color: var(--cream); }
.buy-sub { font-size: 9.5px; color: var(--cream-dim); margin-top: 1px; }
.buy-btn {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  border: 2px solid #1a1210;
  background: var(--leaf);
  color: #10240f;
  cursor: pointer;
  box-shadow: 0 2px 0 #2d6034;
  flex-shrink: 0;
}
.buy-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #2d6034; }
.next-shift-btn { margin-top: 14px; font-size: 12px; padding: 10px; }

/* ---------- random event modal ---------- */
.event-card { max-width: 360px; border-color: var(--brick, #c1402f); }
.event-text {
  font-size: 13px;
  color: var(--cream);
  text-align: center;
  line-height: 1.4;
  margin: 4px 0 10px;
}
.event-cost {
  font-family: var(--font-display);
  text-align: center;
  color: var(--brick, #c1402f);
  font-size: 14px;
  margin: 0 0 14px;
}
.event-continue-btn { font-size: 12px; padding: 10px; }

/* ---------- cook session modal (focused per-item cooking + ASMR flip) ---------- */
.cook-card {
  max-width: 300px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cook-dots {
  display: flex;
  gap: 9px;
  margin-bottom: 2px;
}
.cook-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4a3f36;
  border: 1.5px solid #1a1210;
  transition: background 0.15s linear;
}
.cook-dot.done { background: var(--leaf); }
.cook-dot.current { background: var(--gold); animation: dotpulse 0.7s ease-in-out infinite; }
.cook-dot.burnt-dot { background: var(--brick); animation: dotpulse 0.5s ease-in-out infinite; }
@keyframes dotpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.cook-clock {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 2px 0 6px;
  flex-shrink: 0;
}
.cook-clock-crown {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 8px;
  background: #4a3f36;
  border: 1.5px solid #1a1210;
  border-radius: 2px 2px 0 0;
  transform: translateX(-50%);
  z-index: 2;
}
.cook-clock-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0%, rgba(255,255,255,0.14) 0%);
  border: 2px solid #1a1210;
}
.cook-clock-face {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--wood-dark);
}
.cook-clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 30px;
  background: #1a1210;
  border-radius: 2px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  transition: transform 0.12s linear;
  z-index: 1;
}
.cook-clock-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a1210;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.cook-pan-wrap {
  position: relative;
  width: 175px;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 480px;
}
.cook-stove {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 42%;
  background: linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
  border: var(--border-thick);
  border-radius: 6px;
}
.cook-pan {
  position: relative;
  width: 150px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 32%, #3a3230 0%, #16110d 72%);
  border: 3px solid #0c0906;
  box-shadow: 0 6px 0 #0a0705, inset 0 -6px 10px rgba(0,0,0,0.5);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cook-pan.shake { animation: panshake 0.35s ease-in-out; }
@keyframes panshake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-1.5deg); }
  75% { transform: translateX(3px) rotate(1.5deg); }
}
.cook-pan-handle {
  position: absolute;
  right: -32px;
  top: 50%;
  width: 38px;
  height: 11px;
  background: #4a4038;
  border: 2px solid #0c0906;
  border-radius: 6px;
  transform: translateY(-50%);
}
.cook-meat-img {
  width: 58%;
  max-width: 84px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.55));
  animation: sizzlewiggle 0.5s infinite ease-in-out;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.cook-meat-img.flip { animation: meatflip 0.5s ease-in-out; }
@keyframes meatflip {
  0%   { transform: translateY(0)     rotateX(0deg); }
  35%  { transform: translateY(-22px) rotateX(90deg); }
  60%  { transform: translateY(-26px) rotateX(180deg); }
  100% { transform: translateY(0)     rotateX(360deg); }
}
.cook-steam {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: none;
  z-index: 3;
}
.cook-steam span {
  width: 5px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: steamrise 1.4s ease-in infinite;
}
.cook-steam span:nth-child(2) { animation-delay: 0.35s; }
.cook-steam span:nth-child(3) { animation-delay: 0.7s; }
@keyframes steamrise {
  0% { opacity: 0; transform: translateY(0) scale(0.7); }
  30% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.3); }
}
.cook-fork {
  position: absolute;
  right: -8px;
  bottom: 4px;
  font-size: 30px;
  transform: rotate(35deg);
  cursor: pointer;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.6));
  z-index: 4;
  transition: transform 0.1s ease;
}
.cook-fork:active { transform: rotate(35deg) scale(0.9); }
.cook-fork.poke { animation: forkpoke 0.3s ease-in-out; }
@keyframes forkpoke {
  0% { transform: rotate(35deg) translate(0, 0); }
  40% { transform: rotate(18deg) translate(-9px, -7px); }
  100% { transform: rotate(35deg) translate(0, 0); }
}

.cook-status {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  font-weight: bold;
  min-height: 16px;
  letter-spacing: 0.5px;
}

.cook-spice-label {
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.5px;
  color: var(--smoke);
  margin: 0 0 -3px;
}
.cook-spice-tray { margin: 0; padding: 0; width: 100%; }
.cook-spice-row.spice-row {
  padding: 1px 2px 3px;
  justify-content: center;
  flex-wrap: wrap;
}
.cook-spice-row .spice-swatch { width: 30px; height: 30px; font-size: 12px; }

.cook-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-top: 4px;
}
.cook-reset-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #1a1210;
  background: #3c6ea5;
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 3px 0 #274a72;
  flex-shrink: 0;
}
.cook-reset-btn:active { transform: translateY(2px) rotate(-40deg); box-shadow: 0 1px 0 #274a72; }
.cook-done-btn {
  flex: 1;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 22px;
  border: 2px solid #1a1210;
  background: var(--leaf);
  color: #0f2410;
  cursor: pointer;
  box-shadow: 0 3px 0 #2d6034;
}
.cook-done-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #2d6034; }

/* ---------- start-of-game language picker ---------- */
.lang-card { text-align: center; max-width: 320px; }
.lang-modal-sub {
  font-size: 12.5px;
  color: var(--cream-dim);
  line-height: 1.5;
  margin: 0 0 16px;
}
.lang-choice-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lang-choice-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: bold;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid #1a1210;
  background: var(--ember);
  color: #1a1210;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ember-dark);
}
.lang-choice-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ember-dark); }
.lang-choice-btn.af { background: var(--gold); box-shadow: 0 3px 0 #a67a1f; }
.lang-choice-btn.af:active { box-shadow: 0 1px 0 #a67a1f; }

/* ---------- very short screens: shave a little more ---------- */
@media (max-height: 620px) {
  .customer-face { font-size: 26px; }
  .plated-item { width: 32px; height: 32px; }
  .meat-card { width: 52px; }
  .meat-card img { width: 30px; height: 30px; }
}
