/* ===== Kitty Cafe Tycoon — base + intro styles ===== */

:root {
  --cream:   #fff6e9;
  --peach:   #ffd9b3;
  --caramel: #c98a5a;
  --cocoa:   #6b4226;
  --pink:    #ffb6c1;
  --mint:    #b8e0d2;
  --ink:     #3a2a1e;
  --kitchen-w: 420px;   /* cafe kitchen width — keep in sync with KITCHEN_W in game.js */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "Segoe UI", "Comic Sans MS", system-ui, sans-serif;
  color: var(--ink);
  overflow: hidden;
}

body {
  background: radial-gradient(circle at 50% 0%, var(--peach), var(--cream) 60%);
}

#game { height: 100vh; width: 100vw; position: relative; }

.scene {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.hidden { display: none !important; }

/* ----- Pause overlay ----- */
.pause-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 26, 16, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  backdrop-filter: blur(2px);
}
.pause-card {
  background: var(--cream);
  border: 6px solid var(--caramel);
  border-radius: 20px;
  padding: 28px 40px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.pause-emoji { font-size: 54px; }
.pause-card h2 { color: var(--cocoa); margin: 6px 0 16px; font-size: 28px; }
.pause-card button {
  font-size: 18px; font-weight: 800;
  color: #fff; background: var(--pink);
  border: 3px solid #fff; border-radius: 14px;
  padding: 10px 24px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
}
.pause-card button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.12); }
.pause-actions { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
#pause-save-btn { background: var(--mint); color: var(--cocoa); }
#pause-home-btn { background: var(--caramel); }

/* ===== Backdrop ===== */
.cafe-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0;
  text-align: center;
  padding-top: 70px;
}

.cafe-sign {
  display: inline-block;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--cocoa);
  background: var(--cream);
  border: 5px solid var(--caramel);
  border-radius: 18px;
  padding: 10px 30px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

.bunting {
  position: absolute;
  top: 28px; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
}
.bunting span {
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 28px solid var(--pink);
}
.bunting span:nth-child(even) { border-top-color: var(--mint); }

/* ===== Stage + Chef cat (pure CSS) ===== */
.stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  z-index: 2;
}

.chef {
  position: relative;
  width: 220px;
  margin-bottom: 12px;
  transform-origin: bottom center;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}

.chef-hat {
  width: 132px; height: 84px;
  background: #fff;
  border: 3px solid #e6e1d8;
  border-radius: 46% 46% 12px 12px;
  margin: 0 auto -14px;
  position: relative;
  z-index: 3;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.04);
}
.chef-hat::after {
  /* puffy top of the toque */
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 38px;
  background: #fff;
  border: 3px solid #e6e1d8;
  border-radius: 50%;
  z-index: -1;
}
.chef-hat::before {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 22px;
  background: #fff;
  border: 3px solid #e6e1d8;
  border-radius: 10px;
}

.chef-face {
  position: relative;
  width: 170px; height: 150px;
  margin: 0 auto;
  background: var(--peach);
  border: 3px solid var(--caramel);
  border-radius: 46% 46% 48% 48%;
  z-index: 2;
}

.ear {
  position: absolute;
  top: -18px;           /* tips poke just above the hat brim */
  z-index: 4;           /* above the hat (z-index 3) */
  width: 0; height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 46px solid var(--peach);
  filter: drop-shadow(0 2px 0 var(--caramel));
}
.ear-left  { left: 40px;  transform: rotate(-12deg); }
.ear-right { right: 40px; transform: rotate(12deg); }
.ear::after {
  content: "";
  position: absolute;
  left: -14px; top: 14px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid var(--pink);
}

.eyes {
  position: absolute;
  top: 56px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
}
.eye {
  width: 16px; height: 20px;
  background: var(--ink);
  border-radius: 50%;
  animation: blink 4s infinite;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96%           { transform: scaleY(0.1); }
}

.muzzle { position: absolute; top: 84px; left: 0; right: 0; text-align: center; }
.nose {
  display: inline-block;
  width: 14px; height: 10px;
  background: var(--pink);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}
.whiskers {
  position: absolute;
  top: 6px;
  width: 50px; height: 2px;
  background: rgba(58, 42, 30, 0.4);
}
.whiskers-left  { right: 58%; box-shadow: 0 8px rgba(58,42,30,0.4); }
.whiskers-right { left: 58%;  box-shadow: 0 8px rgba(58,42,30,0.4); }

.chef-body {
  position: relative;
  width: 150px; height: 90px;
  margin: -10px auto 0;
  background: #fff;
  border: 3px solid #e6e1d8;
  border-radius: 40% 40% 30% 30%;
  z-index: 1;
}
.apron {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 70px;
  background: var(--mint);
  border-radius: 12px 12px 18px 18px;
}
.apron::before {
  content: "🐟";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
}

/* ===== Dialogue box ===== */
.dialogue {
  position: relative;
  z-index: 5;
  width: min(720px, 92vw);
  margin-bottom: 40px;
  background: var(--cream);
  border: 4px solid var(--caramel);
  border-radius: 20px;
  padding: 22px 26px 16px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.dialogue-name {
  position: absolute;
  top: -20px; left: 24px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  border: 3px solid #fff;
}

.dialogue-text {
  min-height: 80px;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.5;
}

.dialogue-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.advance-hint {
  font-size: 13px;
  color: var(--caramel);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.skip-btn {
  background: none;
  border: none;
  color: var(--caramel);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.skip-btn:hover { text-decoration: underline; }

/* ===== Start button ===== */
.start-btn {
  position: absolute;
  bottom: 56px;
  z-index: 6;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: var(--pink);
  border: 4px solid #fff;
  border-radius: 18px;
  padding: 16px 38px;
  cursor: pointer;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
  animation: bounce 1.4s ease-in-out infinite;
}
.start-btn:hover { filter: brightness(1.05); }
.start-btn:active { transform: translateY(4px); box-shadow: 0 4px 0 rgba(0,0,0,0.15); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ===== Flip-to-open door sign ===== */
.open-sign {
  position: absolute;
  top: 34%;
  left: 50%;
  margin-left: -110px;
  width: 220px;
  z-index: 60;
  cursor: pointer;
  text-align: center;
  perspective: 800px;
  transform-origin: top center;
  animation: signSwing 3s ease-in-out infinite;
}
@keyframes signSwing {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

.sign-rope {
  width: 4px; height: 30px;
  margin: 0 auto;
  background: #8a6a4a;
}

.sign-board {
  width: 220px;
  padding: 22px 16px;
  border-radius: 18px;
  border: 6px solid #fff;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease;
  transform-style: preserve-3d;
}
.sign-board b { font-size: 26px; letter-spacing: 1px; }

.open-sign.closed .sign-board { background: #d9534f; }   /* red */
.open-sign.open   .sign-board { background: #5cb85c; }   /* green */

.open-sign.flipping .sign-board { animation: flipBoard 1s ease; }
@keyframes flipBoard {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.sign-hint {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
  animation: pulse 1.2s ease-in-out infinite;
}
.open-sign.open .sign-hint,
.open-sign.flipping .sign-hint { visibility: hidden; }

/* =====================================================================
   CAFE SCENE
   ===================================================================== */
#cafe-scene {
  justify-content: flex-start;
  background:
    linear-gradient(180deg, var(--peach) 0%, var(--cream) 35%),
    var(--cream);
}

/* ----- HUD ----- */
.hud {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: var(--cream);
  border-bottom: 4px solid var(--caramel);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--cocoa);
  background: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  border: 2px solid var(--peach);
}
.hud-icon { font-size: 20px; }

/* Coin texture (assets/coin.svg) — drops in wherever the old 🪙 emoji was. */
.coin {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  margin: 0 1px;
  background: url("../assets/coin.svg") center / contain no-repeat;
}
.hud-icon.coin { width: 22px; height: 22px; }

/* More emoji-replacing textures (sized to 1em like .coin). */
.beans, .potted {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.beans  { background-image: url("../assets/beans.svg"); margin: 0 1px; }
.potted { background-image: url("../assets/plant.svg"); }

/* Shift label + clock + day time bar */
.shift-label {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--pink);
  border-radius: 8px;
  padding: 2px 8px;
}
.day-clock { font-size: 13px; color: var(--caramel); font-weight: 700; }

.hud-time {
  flex: 1;
  max-width: 200px;
  height: 12px;
  background: #eadfce;
  border-radius: 7px;
  overflow: hidden;
  opacity: 0.35;
}
.hud-time.active { opacity: 1; }
.hud-time-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd27a, #ff7b54);
  transition: width 0.4s linear;
}

.happiness-bar {
  display: inline-block;
  width: 110px; height: 14px;
  background: #eadfce;
  border-radius: 8px;
  overflow: hidden;
}
.happiness-fill {
  display: block;
  height: 100%;
  width: 70%;
  background: var(--mint);
  transition: width 0.3s ease, background 0.3s ease;
}

.shop-btn {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border: 3px solid #fff;
  border-radius: 12px;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}
.shop-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.12); }

/* ----- The room: wall + floor ----- */
.room {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wall {
  position: relative;
  height: 34%;
  min-height: 130px;
  /* soft polka-dot wallpaper */
  background-color: #f7d9c4;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 3px, transparent 4px);
  background-size: 34px 34px;
  border-bottom: 10px solid #d9b08c;  /* chair rail */
}

.cafe-sign-sm {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  color: var(--cocoa);
  background: var(--cream);
  border: 3px solid var(--caramel);
  border-radius: 12px;
  padding: 4px 18px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
}

.window {
  position: absolute;
  top: 22px; left: 6%;
  width: 110px; height: 80px;
  background: linear-gradient(180deg, #cdeafd, #eaf7ff);
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
  overflow: hidden;
  transition: background 1.5s linear;   /* sky shifts as the day passes */
}
.window::before {  /* mullions */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff, #fff) center / 6px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 6px no-repeat;
}
.window-sun { position: absolute; top: 6px; right: 8px; font-size: 22px; }

.wall-shelf {
  position: absolute;
  top: 40px; right: 6%;
  display: flex;
  gap: 10px;
  font-size: 24px;
  padding: 6px 12px 0;
  border-bottom: 6px solid #c98a5a;
  border-radius: 4px;
}

.door {
  position: absolute;
  bottom: -16px; right: 34%;       /* the host stand and velvet ropes are placed around it */
  font-size: 78px;
  text-align: center;
  line-height: 1;
}
/* Swinging door: the leaf turns on its hinge to reveal a warm doorway behind it. */
.doorway {
  position: absolute; left: 14%; right: 14%; top: 6%; bottom: 20px;
  background: linear-gradient(#ffe6b0, #e8b878);
  border-radius: 4px 4px 0 0;
}
.door-leaf {
  position: relative; z-index: 2; display: inline-block;
  transform-origin: 12% 50%;
  transition: transform 0.3s ease;
}
.door.open .door-leaf { transform: perspective(180px) rotateY(-68deg); }
.door-guest {                      /* a guest appearing in the open doorway */
  position: absolute; left: 50%; bottom: 20px; z-index: 1;
  transform: translateX(-50%);
  font-size: 38px; line-height: 1;
  animation: ghostIn 0.45s ease-out;
}
@keyframes ghostIn { from { opacity: 0; } to { opacity: 1; } }
.door-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--cocoa);
}

.floor {
  position: relative;
  flex: 1;
  /* wood planks */
  background: repeating-linear-gradient(0deg, #e8c9a0 0 26px, #e0bd90 26px 52px);
  overflow: hidden;
}

/* ----- Kitchen corner (decorative) ----- */
.kitchen-counter {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-right: 4px dashed rgba(201,138,90,0.5);
}
.counter-top {
  position: absolute;
  top: 50%;
  width: 100%; height: 10px;
  background: #c98a5a;
}
.appliance {
  position: relative;
  font-size: 40px;
  z-index: 1;
  text-align: center;
}
.appliance-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cocoa);
}
.oven-graphic.cooking { animation: sizzle 0.6s ease-in-out infinite; }
@keyframes sizzle {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50%      { transform: rotate(4deg) scale(1.08); }
}

/* ----- Tables ----- */
/* Tables are scattered randomly across the floor (positioned in JS). */
.tables {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Bistro table graphic */
.bistro-table { display: flex; flex-direction: column; align-items: center; margin-top: 2px; }
.bistro-top {
  width: 56px; height: 14px;
  background: #c98a5a;
  border: 2px solid #8a6a4a;
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}
.bistro-leg { width: 8px; height: 20px; background: #8a6a4a; border-radius: 0 0 3px 3px; }

.table {
  position: absolute;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}
.table-top {
  font-size: 40px;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.08));
}
.seat {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ----- Customers ----- */
.customer {
  position: relative;
  cursor: pointer;
  text-align: center;
  animation: arrive 0.4s ease;
  transition: transform 0.2s ease, opacity 0.5s ease;
}
.customer:hover { transform: scale(1.1); }
@keyframes arrive {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.customer-face { font-size: 44px; }

.order-bubble {
  position: absolute;
  top: -34px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid var(--caramel);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 22px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}
.order-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
}

.patience {
  width: 60px; height: 12px;
  margin: 0 auto 4px;
  background: #f3ece0;
  border: 2px solid var(--cocoa);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}
.patience-fill {
  height: 100%;
  width: 100%;
  background: var(--mint);
  border-radius: 4px;
  transition: width 0.1s linear, background 0.2s linear;
}
/* Pulse the bar once it runs low so it's hard to miss. */
.patience-fill.low { animation: patience-pulse 0.7s ease-in-out infinite; }
@keyframes patience-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Urgent "!" that pops above an impatient customer until they're served. */
.alert-mark {
  position: absolute;
  top: -66px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 18px; font-weight: 900;
  color: #fff;
  background: #ff4d4d;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
  z-index: 6;
  pointer-events: none;
  animation: alert-bounce 0.6s ease-in-out infinite;
}
@keyframes alert-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

.customer.served { transform: scale(1.15); opacity: 0; }
.customer.angry  { opacity: 0; transform: translateX(20px); }

/* ----- Cats ----- */
.cats-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cat {
  position: absolute;
  top: 0; left: 0;
  font-size: 40px;
  cursor: pointer;
  pointer-events: auto;
  transition: left 0.7s linear, top 0.7s linear;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.08));
}
.cat.sad { filter: drop-shadow(0 4px 0 rgba(0,0,0,0.08)) grayscale(0.4); opacity: 0.85; }
.cat.happy { animation: catHop 0.5s ease; }
@keyframes catHop {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
.cat-body { display: inline-block; }   /* flips with travel direction */

/* ----- Cat rarities ----- */
/* Drawn cats — sized like an emoji so they fit anywhere a cat shows. */
.cat-tex {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em;
  background: center / contain no-repeat;
}
/* Piskee Berrys: drawn purple berries with a soft, pulsing glow (sized like an emoji). */
.berry {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em;
  background: url("../assets/piskee-berry.svg") center / contain no-repeat;
  animation: berryGlow 1.8s ease-in-out infinite;
}
@keyframes berryGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(190, 110, 255, 0.7)); }
  50%      { filter: drop-shadow(0 0 6px rgba(205, 125, 255, 1)); }
}
.cat-tex.tabby   { background-image: url("../assets/cat-common.svg"); }
.cat-tex.white   { background-image: url("../assets/cat-white.svg"); }
.cat-tex.black   { background-image: url("../assets/cat-black.svg"); }
.cat-tex.calico  { background-image: url("../assets/cat-calico.svg"); }
.cat-tex.rainbow { background-image: url("../assets/cat-rainbow.svg"); animation: rainbowShift 3s linear infinite; }
@keyframes rainbowShift { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
/* Sweet Treats Carrier cats */
.cat-tex.cupcake  { background-image: url("../assets/cat-cupcake.svg"); }
.cat-tex.cake     { background-image: url("../assets/cat-cake.svg"); }
.cat-tex.poptart  { background-image: url("../assets/cat-poptart.svg"); }
.cat-tex.lollipop { background-image: url("../assets/cat-lollipop.svg"); }
.cat-tex.cinnamon { background-image: url("../assets/cat-cinnamon.svg"); animation: goldShine 2.2s ease-in-out infinite; }
/* Halloween Carrier cats (October) */
.cat-tex.ghost   { background-image: url("../assets/cat-ghost.svg"); animation: ghostFloat 2.4s ease-in-out infinite; }
.cat-tex.spider  { background-image: url("../assets/cat-spider.svg"); }
.cat-tex.zombie  { background-image: url("../assets/cat-zombie.svg"); }
.cat-tex.vampire { background-image: url("../assets/cat-vampire.svg"); }
.cat-tex.ghoul   { background-image: url("../assets/cat-ghoul.svg"); animation: ghostFloat 2.4s ease-in-out infinite, ghoulGlow 1.6s ease-in-out infinite; }
@keyframes ghostFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.08em); } }
@keyframes ghoulGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(80, 255, 110, 0.7)); }
  50%      { filter: drop-shadow(0 0 9px rgba(110, 255, 130, 1)); }
}
@keyframes goldShine {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 200, 60, 0)); }
  50%      { filter: brightness(1.15) drop-shadow(0 0 4px rgba(255, 200, 60, 0.9)); }
}
/* Legendary and GOD cats glow a little as they roam. */
.cat.r-legendary .cat-body { filter: drop-shadow(0 0 5px rgba(255, 190, 60, 0.9)); }
.cat.r-god .cat-body       { filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.95)); }

/* Rarity colours, used on chips, labels and the reveal. */
.r-common    { --rc: #b08968; }
.r-uncommon  { --rc: #4caf7d; }
.r-rare      { --rc: #3d8bfd; }
.r-legendary { --rc: #ff9f1c; }
.r-god       { --rc: #c86bfa; }
.odds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.odds-chip {
  font-size: 10px; font-weight: 800; color: #fff;
  background: var(--rc); border-radius: 8px; padding: 1px 6px;
}
.odds-chip.r-god, .carrier-overlay.r-god .carrier-rarity {
  background: linear-gradient(90deg, #ff5c7a, #ffa23a, #ffe14d, #5fd38d, #4fa8ff, #b072ff);
}
.carrier-icon {
  display: inline-block; width: 1.3em; height: 1.05em; vertical-align: middle;
  background: url("../assets/carrier.svg") center / contain no-repeat;
}
.carrier-card { border-color: #ffb8cb; background: linear-gradient(135deg, #fff, #fff0f5); }
.carrier-card.art-sweet { border-color: #8fdcc4; background: linear-gradient(135deg, #fff, #e6faf3); }
.carrier-icon.art-sweet, .carrier-box.art-sweet { background-image: url("../assets/carrier-sweet.svg"); }
.carrier-card.art-halloween { border-color: #ff9d3c; background: linear-gradient(135deg, #fff7ee, #f3e8ff); }
.carrier-icon.art-halloween, .carrier-box.art-halloween { background-image: url("../assets/carrier-halloween.svg"); }
.season-tag {                      /* "🎃 October only · 17 days left!" */
  display: inline-block; margin-bottom: 3px;
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #ff8a1c, #8a4fd1); border-radius: 8px; padding: 1px 8px;
}
.book-h small { font-size: 11px; color: #a0522d; font-weight: 700; margin-left: 6px; }
.rarity-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #cfe3ea; margin: 0 2px 8px;
}
.cat-bonus-line { font-size: 13px; color: #fff; margin: 4px 2px 6px; }
.cat-bonus-line b { color: #ffe066; }
.roster-chip.r-uncommon, .roster-chip.r-rare, .roster-chip.r-legendary, .roster-chip.r-god {
  border-color: var(--rc);
}
.cat-panel-rarity {
  display: inline-block; margin: -4px 0 8px;
  font-size: 11px; font-weight: 800; color: #fff;
  background: var(--rc, #b08968); border-radius: 8px; padding: 1px 8px;
}
.cat-panel-rarity.r-god {
  background: linear-gradient(90deg, #ff5c7a, #ffa23a, #ffe14d, #5fd38d, #4fa8ff, #b072ff);
}
.toast-bonus { font-size: 14px; color: #c86bfa; }

/* ----- My Booklet (📖): leather cover, lined pages, a ribbon bookmark ----- */
.book-overlay {
  position: fixed; inset: 0; z-index: 165;
  display: flex; align-items: center; justify-content: center;
  background: rgba(40, 26, 16, 0.55);
}
.book-overlay.hidden { display: none; }
.book {
  position: relative;
  width: min(660px, 94vw); max-height: 86vh;
  display: flex; flex-direction: column;
  background: #fffaf0;
  border: 10px solid #8b5a3c; border-radius: 12px 18px 18px 12px;
  box-shadow: inset 16px 0 0 #f1e2c6, 0 16px 40px rgba(0, 0, 0, 0.4);   /* spine shading */
  padding: 16px 20px 18px 34px;
  animation: popIn 0.2s ease;
}
.book::before {                    /* ribbon bookmark */
  content: ""; position: absolute; top: -10px; right: 46px;
  width: 16px; height: 58px; background: #e0508a;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.book-close {
  position: absolute; top: 8px; right: 10px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: #ff6b6b; color: #fff; font-weight: 900; cursor: pointer;
}
.book-title { text-align: center; font-size: 22px; font-weight: 900; color: var(--cocoa); }
.book-tabs { display: flex; justify-content: center; gap: 6px; margin: 10px 0 8px; }
.book-tabs button {
  background: #f3e3c8; border: 2px solid #d9b991; border-radius: 10px;
  padding: 6px 14px; font-weight: 800; font-family: inherit; color: var(--cocoa); cursor: pointer;
}
.book-tabs button.active { background: var(--pink); border-color: #e88aa0; color: #fff; }
.book-page {
  overflow-y: auto; padding: 2px 6px 4px 2px;
  background-image: repeating-linear-gradient(transparent 0 27px, #f0e2cc 27px 28px);   /* lined paper */
}
.book-sub { text-align: center; font-size: 14px; color: var(--cocoa); margin: 2px 0 6px; }
.book-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; color: var(--cocoa); margin: 12px 0 6px;
  border-bottom: 2px dashed #e0c9a6;
}
.book-h span { font-size: 12px; color: var(--caramel); }
.book-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.book-cat {
  background: #fff; border: 3px solid var(--rc); border-radius: 12px;
  padding: 8px 4px 6px; text-align: center;
}
.book-cat-art { font-size: 50px; line-height: 1; }
.book-cat-name { font-size: 12px; font-weight: 800; color: var(--cocoa); margin: 4px 0 3px; }
.book-cat-info { font-size: 10px; line-height: 1.35; color: #8a6a55; margin-top: 4px; }
.book-cat.unknown { border-color: #e2dbd2; background: #f7f3ee; }
.book-cat.unknown .cat-tex { filter: brightness(0); opacity: 0.25; animation: none; }   /* mystery silhouette */
.book-room {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid #e8d5b7; border-radius: 12px;
  padding: 8px 12px; margin-bottom: 6px;
}
.book-room.locked { opacity: 0.6; }
.book-room-icon { font-size: 28px; }
.book-room-text { flex: 1; color: var(--ink); line-height: 1.3; }
.book-room-text small { color: #8a6a55; }
.book-room-state { font-size: 13px; font-weight: 800; color: var(--cocoa); white-space: nowrap; }
.book-row { display: flex; align-items: center; gap: 8px; padding: 3px 2px; font-size: 13px; color: var(--ink); }
.book-row.dim { opacity: 0.55; }
.book-row .bk-name { flex: 1; }
.book-row .bk-lvl { font-size: 12px; font-weight: 800; color: var(--cocoa); min-width: 40px; text-align: right; }
.pips { display: flex; gap: 3px; }
.pip { width: 10px; height: 10px; border-radius: 50%; background: #eadfce; border: 1px solid #cdb79a; }
.pip.on { background: #6cc49a; border-color: #3f9a6f; }

/* ----- Mystery carrier reveal ----- */
.carrier-overlay {
  position: fixed; inset: 0; z-index: 170;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(40, 26, 36, 0.72);
}
.carrier-overlay.hidden { display: none; }
.carrier-stage { position: relative; width: 320px; height: 260px; }
.carrier-rays {                    /* spinning light burst behind the new cat */
  position: absolute; left: 50%; top: 50%;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--rc) 0 12deg, transparent 12deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%);
          mask: radial-gradient(circle, #000 20%, transparent 68%);
  opacity: 0; transform: scale(0.3);
}
.carrier-overlay.revealed .carrier-rays {
  opacity: 0.85; transform: scale(1);
  transition: opacity 0.4s ease, transform 0.5s ease;
  animation: raysSpin 6s linear infinite;
}
.carrier-overlay.r-god.revealed .carrier-rays {
  background: repeating-conic-gradient(#ff5c7a 0 10deg, #ffe14d 10deg 20deg, #5fd38d 20deg 30deg, #4fa8ff 30deg 40deg, #b072ff 40deg 50deg, transparent 50deg 60deg);
}
@keyframes raysSpin { to { rotate: 360deg; } }
.carrier-box {
  position: absolute; left: 50%; top: 50%;
  width: 200px; height: 160px; margin: -80px 0 0 -100px;
  background: url("../assets/carrier.svg") center / contain no-repeat;
}
.carrier-box.pop       { animation: carrierPop 0.45s ease-out; }
.carrier-box.hop-left  { animation: hopLeft 0.5s ease-in-out forwards; }
.carrier-box.hop-right { animation: hopRight 0.5s ease-in-out forwards; }
.carrier-box.opened    { animation: carrierPoof 0.45s ease-in forwards; }
@keyframes carrierPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes hopLeft {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(-45px, -55px) rotate(-10deg); }
  100% { transform: translate(-70px, 0) rotate(-3deg); }
}
@keyframes hopRight {
  0%   { transform: translate(-70px, 0) rotate(-3deg); }
  45%  { transform: translate(0, -65px) rotate(9deg); }
  100% { transform: translate(70px, 0) rotate(3deg); }
}
@keyframes carrierPoof {
  0%   { transform: translate(70px, 0) scale(1); opacity: 1; }
  40%  { transform: translate(35px, 0) scale(1.15, 0.85); opacity: 1; }
  100% { transform: translate(0, 30px) scale(0.4); opacity: 0; }
}
.carrier-cat {
  position: absolute; left: 50%; top: 50%;
  font-size: 130px; line-height: 1;
  transform: translate(-50%, -50%);
  animation: catPopOut 0.6s cubic-bezier(.2, 1.6, .4, 1);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
}
.carrier-cat.hidden { display: none; }
@keyframes catPopOut {
  0%   { transform: translate(-50%, -10%) scale(0.2); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.carrier-result { text-align: center; color: #fff; margin-top: 6px; animation: popIn 0.25s ease; }
.carrier-result.hidden { display: none; }
.carrier-rarity {
  display: inline-block; font-size: 28px; font-weight: 900; letter-spacing: 2px;
  color: #fff; background: var(--rc); border-radius: 14px; padding: 2px 18px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.25);
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}
.carrier-name  { font-size: 22px; font-weight: 800; margin-top: 10px; }
.carrier-bonus { font-size: 15px; margin-top: 4px; color: #ffe9a8; }
.carrier-ok {
  margin-top: 14px;
  font-size: 18px; font-weight: 800; color: #fff;
  background: var(--pink); border: none; border-radius: 14px;
  padding: 10px 28px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}
.carrier-ok:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.cat-alert {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  filter: none;
}
.cat-alert.show { opacity: 1; animation: catAlertBob 1s ease-in-out infinite; }
@keyframes catAlertBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}

/* Buyer tag colour */
.staff-buyer .staff-tag { background: #4a8fa3; }

/* ----- Toasts ----- */
/* Above every overlay (terminals blur what's behind them, so a lower toast looked fuzzy). */
.toast-layer { position: fixed; inset: 0; pointer-events: none; z-index: 10000; }
.toast {
  position: absolute;
  transform: translate(-50%, 0);
  font-weight: 800;
  font-size: 18px;
  color: var(--cocoa);
  background: var(--cream);
  border: 3px solid var(--caramel);
  border-radius: 14px;
  padding: 4px 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  animation: floatUp 1.1s ease forwards;
  white-space: nowrap;
}
@keyframes floatUp {
  from { transform: translate(-50%, 0); opacity: 1; }
  to   { transform: translate(-50%, -60px); opacity: 0; }
}

/* =====================================================================
   KITCHEN CONTROL PANEL
   ===================================================================== */
.kitchen-panel {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cocoa);
  border-top: 5px solid var(--caramel);
  z-index: 12;
  overflow-x: auto;
}

.kp-section {
  background: var(--cream);
  border-radius: 14px;
  padding: 8px 12px 10px;
  min-width: 140px;
  flex: 1;
}
.kp-section.kp-oven { flex: 1.4; }

.kp-section h3 {
  font-size: 13px;
  color: var(--cocoa);
  margin-bottom: 6px;
  text-align: center;
}

.kp-body { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Supplier ingredient buttons */
.ing-btn, .recipe-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid var(--peach);
  border-radius: 10px;
  padding: 5px 8px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.15;
  transition: transform 0.1s ease;
}
.ing-btn:hover, .recipe-btn:not(.disabled):hover { transform: translateY(-2px); }
.ing-btn:active { transform: translateY(1px); }
.ing-emoji { font-size: 22px; }
.ing-name { font-size: 11px; font-weight: 700; color: var(--cocoa); }
.ing-cost { font-size: 11px; color: var(--caramel); font-weight: 700; }

/* Pantry + ready chips */
.pantry-chip, .ready-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border: 2px solid var(--peach);
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 20px;
}
.pantry-chip.empty { opacity: 0.4; }
.chip-count { font-size: 13px; font-weight: 800; color: var(--cocoa); }
.ready-empty, .oven-idle {
  font-size: 12px;
  color: var(--caramel);
  font-style: italic;
}

/* Recipe buttons */
.recipe-emoji { font-size: 22px; }
.recipe-name { font-size: 11px; font-weight: 700; color: var(--cocoa); }
.recipe-needs { font-size: 11px; color: var(--caramel); }
.recipe-btn.disabled { opacity: 0.45; cursor: not-allowed; border-color: #ddd; }

/* Oven slots */
.oven-slots { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.oven-slot {
  min-width: 78px;
  background: #fff;
  border: 2px solid var(--peach);
  border-radius: 10px;
  padding: 5px 8px;
  text-align: center;
}
.oven-slot.busy { border-color: #ff7b54; }
.slot-top { font-size: 14px; font-weight: 700; color: var(--cocoa); margin-bottom: 4px; }
.slot-idle { font-size: 12px; font-weight: 700; color: var(--caramel); line-height: 1.2; }
.slot-idle span { font-size: 11px; font-style: italic; opacity: 0.8; }
.bake-bar {
  width: 100%; height: 9px;
  background: #eadfce;
  border-radius: 6px;
  overflow: hidden;
}
.bake-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb347, #ff7b54);
  transition: width 0.2s linear;
}
.recipe-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.kp-hint { font-weight: 400; font-size: 10px; color: var(--caramel); }

/* Computer-appliance is clickable */
.computer-appliance { cursor: pointer; transition: transform 0.15s ease; }
.computer-appliance:hover { transform: scale(1.12); }

/* =====================================================================
   ORDER TERMINAL (computer overlay)
   ===================================================================== */
.computer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 26, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}

.computer {
  width: min(560px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #2b3a42;
  border: 6px solid #1d272d;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: popIn 0.18s ease;
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.computer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1d272d;
  color: #b8e0d2;
  font-weight: 800;
  font-size: 16px;
}
.computer-close {
  background: #ff6b6b;
  color: #fff;
  border: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}

.computer-tabs { display: flex; flex-wrap: wrap; background: #243139; }
.ctab {
  flex: 1 1 auto;
  padding: 9px 6px;
  background: none;
  border: none;
  color: #8fb3ae;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.ctab.active { color: #fff; border-bottom-color: var(--mint); background: #2b3a42; }

/* Area switcher inside the Order PC (jump between Cafe / Drive-Thru / VIP terminals) */
.term-areas { display: flex; gap: 6px; padding: 8px 10px; background: #1b262c; flex-wrap: wrap; }
.term-area-btn {
  flex: 1 1 auto; padding: 7px 8px; border-radius: 9px;
  border: 1px solid #34474f; background: #243139; color: #b9d3ce;
  font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer;
}
.term-area-btn:hover { background: #2b3a42; }
.term-area-btn.active { background: var(--mint); color: #173b34; border-color: var(--mint); }
.term-area-btn.locked { opacity: 0.5; cursor: not-allowed; }
.ctab.locked { opacity: 0.4; cursor: not-allowed; }
.ctab.locked::after { content: " 🔒"; }

.computer-screen {
  padding: 14px;
  overflow-y: auto;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px),
    #2b3a42;
}
.ctab-panel { display: flex; flex-direction: column; gap: 10px; }

.shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
}
.shop-emoji { font-size: 34px; }
.shop-info { flex: 1; }
.shop-name { font-weight: 800; color: var(--cocoa); font-size: 15px; }
.shop-sub { font-size: 12px; color: var(--caramel); }
.shop-sub.next { color: #2c8a6b; }
.shop-sub.maxed { color: #c0392b; font-weight: 700; }
.lvl-tag {
  font-size: 11px;
  background: var(--mint);
  color: var(--cocoa);
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 4px;
}
.shop-actions { display: flex; flex-direction: column; gap: 6px; }
.buy-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.buy-btn:hover:not(:disabled) { filter: brightness(1.05); }
.buy-btn:active:not(:disabled) { transform: translateY(2px); }
.buy-btn.disabled, .buy-btn:disabled {
  background: #b6a99c;
  cursor: not-allowed;
}

.computer-footer {
  padding: 10px 16px;
  background: #1d272d;
  color: #ffd27a;
  font-weight: 800;
  text-align: right;
}

/* =====================================================================
   EXTRA CAFE DECORATIONS
   ===================================================================== */
/* Hanging pendant lamps */
.lamp {
  position: absolute;
  top: 0;
  width: 2px; height: 30px;
  background: #8a6a4a;
}
.lamp::after {
  content: "";
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 20px;
  background: radial-gradient(circle at 50% 30%, #fff3c4, #ffcf5c);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 18px 6px rgba(255, 207, 92, 0.5);
}
.lamp-1 { left: 30%; }
.lamp-2 { left: 70%; }

.framed-art {
  position: absolute;
  top: 30px; left: 24%;
  font-size: 30px;
  background: #fff;
  border: 4px solid #b5895f;
  border-radius: 4px;
  padding: 2px 4px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}
.wall-clock {
  position: absolute;
  top: 30px; right: 22%;
  font-size: 30px;
}

/* Floor rugs */
.rug {
  position: absolute;
  background:
    radial-gradient(ellipse at center, rgba(255,182,193,0.55) 0 60%, rgba(184,224,210,0.55) 60% 100%);
  border: 4px dashed rgba(255,255,255,0.5);
  border-radius: 50%;
  z-index: 0;
}
.rug-main  { bottom: 12px; left: calc(var(--kitchen-w) + 22px); right: 40px; height: 150px; }
.rug-small { top: 46px; right: 14%; width: 130px; height: 70px; }   /* under the host stand (placed in JS) */

.plant {
  position: absolute;
  bottom: 8px;
  font-size: 40px;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.08));
  z-index: 1;
}
.plant-right { right: 12px; }

/* ----- Kitchen (left side): tiled cooking line + pick-up counter ----- */
.kitchen-zone {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--kitchen-w);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
/* Behind the counter: checkered tiles, stoves against the wall, each chef beside their stove.
   Bottom padding = room for the plates sitting up on the counter. */
.kitchen-back {
  background: repeating-conic-gradient(#fbf7f1 0 25%, #e9dfd2 0 50%) 0 0 / 28px 28px;
  border-right: 4px solid #d9b08c;
  padding: 16px 0 24px;
}
/* Four stations (stove on the left, its chef's spot on the right). The hoods on the wall use
   the same layout so each one lines up over its stove. */
.stove-line, .kitchen-hoods { display: flex; justify-content: space-between; padding: 0 6px; }
.station { position: relative; width: 84px; }
.station::before {                 /* floor mat under the stove + chef, so they read as a pair */
  content: ""; position: absolute; left: -4px; right: -2px; top: 54px; height: 22px;
  border-radius: 10px;
  background: rgba(107, 66, 38, 0.18);
}

/* A stove: backguard with knobs, cooktop, oven door. Lights up while cooking. */
.stove { position: relative; width: 54px; text-align: center; }
.stove-pot {                       /* the dish sizzling on top (only while busy) */
  position: absolute; left: 0; right: 0; top: -16px;
  font-size: 20px; line-height: 1;
  display: none;
}
.stove.busy .stove-pot { display: block; animation: sizzle 0.6s ease-in-out infinite; }
.stove.busy .stove-pot::before, .stove.busy .stove-pot::after {   /* steam puffs */
  content: ""; position: absolute; top: -6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  animation: steam 1.4s ease-out infinite;
}
.stove.busy .stove-pot::before { left: 16px; }
.stove.busy .stove-pot::after  { left: 34px; animation-delay: 0.7s; }
@keyframes steam {
  from { transform: translateY(0) scale(0.6); opacity: 0.9; }
  to   { transform: translateY(-14px) scale(1.3); opacity: 0; }
}
.stove-back {
  height: 11px;
  display: flex; justify-content: center; align-items: center; gap: 7px;
  background: #cfd6db;
  border: 2px solid #9aa5ad; border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.stove-back i { width: 5px; height: 5px; border-radius: 50%; background: #5d6a73; }
.stove-cooktop { height: 6px; background: #3d4449; }
.stove.busy .stove-cooktop {       /* two glowing burners */
  background: linear-gradient(90deg, #3d4449 8%, #ff6a3d 14% 40%, #3d4449 46% 54%, #ff6a3d 60% 86%, #3d4449 92%);
  animation: glow 0.8s ease-in-out infinite alternate;
}
.stove-body {
  height: 46px;
  padding: 5px 6px 6px;
  background: linear-gradient(#f4f6f7, #d9dee1);
  border: 2px solid #9aa5ad; border-top: none;
  border-radius: 0 0 6px 6px;
}
.stove-door {
  position: relative;
  height: 100%;
  padding: 7px 5px 4px;
  background: #e9edef;
  border: 2px solid #9aa5ad;
  border-radius: 4px;
}
.stove-door::before {              /* door handle */
  content: ""; position: absolute; top: 2px; left: 22%; right: 22%;
  height: 3px; border-radius: 2px; background: #9aa5ad;
}
.stove-window { height: 100%; border-radius: 3px; background: #4a3f3a; }
.stove.busy .stove-window {
  background: radial-gradient(circle at 50% 70%, #ffd27a, #ff7b54 60%, #9c3b1f);
  animation: glow 1s ease-in-out infinite alternate;
}
@keyframes glow { from { filter: brightness(0.9); } to { filter: brightness(1.25); } }
.stove-label { font-size: 10px; font-weight: 800; color: var(--cocoa); margin-top: 2px; }
/* Cooking progress: a clear outlined track under every stove you own, filling up while it cooks. */
.stove .bake-bar {
  height: 9px; margin-top: 3px;
  background: #fff;
  border: 2px solid #9c6b43;
  border-radius: 6px;
}
.stove.locked .bake-bar { visibility: hidden; }
.stove.locked { cursor: pointer; opacity: 0.4; filter: grayscale(1); }
.stove.locked:hover { opacity: 0.65; }
.stove.locked .stove-label { color: var(--caramel); }

/* Range hoods on the tiled wall, lined up over the stoves (same flex layout as .stove-line). */
.kitchen-backsplash {
  position: absolute; left: 0; bottom: 0;
  width: var(--kitchen-w); height: 42%; min-height: 54px;
  background-color: #fdfbf7;
  background-image:
    linear-gradient(#e6dccf 2px, transparent 2px),
    linear-gradient(90deg, #e6dccf 2px, transparent 2px);
  background-size: 28px 14px;
  border-right: 4px solid #d9b08c;
}
.kitchen-hoods { height: 100%; align-items: stretch; }
.hood { position: relative; width: 84px; }   /* same width as a .station; drawn over the stove part */
.hood::before {                    /* duct (short, so it stays clear of the window) */
  content: ""; position: absolute; top: 45%; bottom: 14px; left: 27px;
  width: 14px; transform: translateX(-50%);
  background: linear-gradient(90deg, #b9c2c8, #e4e8eb, #b9c2c8);
}
.hood::after {                     /* canopy */
  content: ""; position: absolute; bottom: 0; left: 0; width: 54px;
  height: 18px;
  background: linear-gradient(#e4e8eb, #aeb8bf);
  clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
}

/* Pick-up counter: a marble countertop over wooden cabinets. Finished dishes sit on it on
   plates until a server grabs them. */
.pass-counter { position: relative; padding: 0 6px; }
.pass-top {                        /* the countertop surface the plates sit on */
  position: relative;
  height: 16px;
  background: linear-gradient(#fefcf9, #e9e1d7);
  border: 2px solid #d3c7b9; border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.pass-edge {                       /* front edge of the top, overhanging the cabinets */
  height: 7px;
  background: linear-gradient(#e0d6ca, #c2b4a4);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  position: relative; z-index: 1;
}
.pass-base {                       /* cabinet doors + dark kick plate */
  display: flex; gap: 3px;
  height: 34px; margin: 0 6px;
  padding: 4px 4px 3px;
  background: #b07a4f;
  border-bottom: 5px solid #6e4a2e;
}
.pass-base i {
  position: relative; flex: 1;
  background: linear-gradient(#d39a68, #c48655);
  border: 2px solid #a8703f; border-radius: 3px;
}
.pass-base i::after {              /* knob (pairs of doors open toward each other) */
  content: ""; position: absolute; top: 5px; right: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: #6e4a2e;
}
.pass-base i:nth-child(even)::after { right: auto; left: 4px; }
.pass-plates {
  /* plates stand on the countertop, lined up toward the dining-room end (by the bell)
     where servers come to grab them */
  position: absolute; left: 8px; right: 34px; bottom: 3px; z-index: 1;
  height: 26px;
  display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px;
}
.plate { position: relative; width: 30px; height: 26px; }
.plate::after {                    /* the plate itself */
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 7px; border-radius: 50%;
  background: #fff; border: 1px solid #d8cfc4;
}
.plate-dish {
  position: absolute; bottom: 3px; left: 0; right: 0; z-index: 1;
  text-align: center; font-size: 19px; line-height: 1;
}
.plate.new { animation: platePop 0.35s ease-out; }
@keyframes platePop {
  from { transform: translateY(-14px) scale(0.6); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.plate-more { align-self: center; font-size: 11px; font-weight: 800; color: var(--cocoa); }
.pass-bell { position: absolute; right: 10px; bottom: 3px; z-index: 1; font-size: 17px; line-height: 1; }

/* A server carrying a dish from the counter to a guest: the actual dish, on a plate, in hand. */
.carry {
  position: absolute; top: 10px; right: -20px;
  width: 30px; text-align: center;
  font-size: 22px; line-height: 1;
  animation: platePop 0.25s ease-out;
}
.carry::after {
  content: ""; display: block;
  height: 6px; margin: -3px 1px 0;
  border-radius: 50%; background: #fff; border: 1px solid #d8cfc4;
}

/* A served dish on the guest's table, slowly eaten up. */
.bistro-top { position: relative; }
.table-dish {
  position: absolute; left: 50%; bottom: 3px; z-index: 1;
  width: 42px; margin-left: -21px;
  text-align: center; line-height: 1;
}
.table-dish::after {               /* the plate */
  content: ""; display: block;
  height: 8px; margin: -4px 2px 0;
  border-radius: 50%; background: #fff; border: 1px solid #d8cfc4;
}
.table-food {
  display: inline-block; font-size: 32px;
  transform-origin: 50% 100%;
  animation: eaten linear forwards;   /* duration set in JS (EAT_MS) */
}
@keyframes eaten {
  from { transform: scale(1); }
  to   { transform: scale(0.55); opacity: 0.75; }
}
.customer.eating .patience { visibility: hidden; }
.customer.eating .order-bubble { animation: think 0.9s ease-in-out infinite; }
/* A chef whose stove hasn't been bought yet just waits by it. */
.staff.no-stove::before {
  content: "💤"; position: absolute; top: -10px; right: -8px; font-size: 16px;
}

/* ----- Computer desk ----- */
.computer-desk {
  align-self: flex-start;
  margin: auto 0 10px 8px;         /* far-left corner, out of the servers' way */
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.computer-desk:hover { transform: scale(1.06); }
.desk-pc { font-size: 30px; line-height: 1; }
.desk-surface {
  width: 76px; height: 9px;
  margin: -4px auto 0;
  background: #9c6b43;
  border-radius: 4px;
}
.desk-legs {
  width: 62px; height: 18px;
  margin: 0 auto;
  border-left: 6px solid #7c5333;
  border-right: 6px solid #7c5333;
}
.desk-label { font-size: 11px; font-weight: 700; color: var(--cocoa); }

/* ----- Host stand (by the door) ----- */
.host-desk {
  position: absolute;
  top: 44px; right: 19%;           /* JS (placeHostStand) moves it to just left of the door;
                                      level with the line, leaving room for the countdown above */
  width: 56px; text-align: center;
  z-index: 1; pointer-events: none;
}
.host-desk.hidden { display: none; }
.host-bell { font-size: 22px; line-height: 1; margin-bottom: -2px; }
.host-desk-top {
  width: 52px; height: 9px; margin: 0 auto;
  background: #9c6b43; border-radius: 4px;
}
.host-desk-legs {
  width: 42px; height: 16px; margin: 0 auto;
  border-left: 6px solid #7c5333; border-right: 6px solid #7c5333;
}
.host-desk-label { font-size: 11px; font-weight: 700; color: var(--cocoa); }

/* ----- Cat trees ----- */
.cat-tree {
  position: absolute;
  width: 44px;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}
.cat-tree-1 { right: 16px; bottom: 16px; }
.cat-tree-2 { left: calc(var(--kitchen-w) + 14px); top: 8px; }
.tree-cat { font-size: 24px; line-height: 1; }
.tree-platform {
  width: 40px; height: 10px;
  margin: -2px auto 0;
  background: #caa472;
  border: 2px solid #a87f54;
  border-radius: 6px;
}
.tree-post { width: 12px; height: 80px; margin: 0 auto; background: #b5895f; }
.tree-base {
  width: 46px; height: 12px;
  margin: 0 auto;
  background: #a87f54;
  border-radius: 6px;
}

/* ----- Waiting customers (need to be seated) ----- */
.waiting-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.customer.waiting {
  position: absolute;
  z-index: 2;                      /* in line: in front of the back rope (1), behind the front rope (3) */
  width: 44px;
  pointer-events: auto;
  animation: none;
  transition: left 0.9s ease-in-out, top 0.9s ease-in-out;
}
/* On their way in from the door: no bubble or patience bar until they're in line. */
.customer.waiting.arriving .order-bubble,
.customer.waiting.arriving .patience { visibility: hidden; }
.customer.waiting.walking .customer-face { animation: walkBob 0.5s ease-in-out infinite; }
.customer.waiting.behind { z-index: 0; }   /* walking along the wall behind the ropes */

/* The host's check-in countdown, floating over her head. */
.checkin-timer {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #fff; border: 2px solid var(--caramel); border-radius: 10px;
  padding: 2px 6px 4px;
  font-size: 13px; font-weight: 800; color: var(--cocoa); white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}
.ct-bar { width: 38px; height: 5px; border-radius: 3px; background: #eadfce; overflow: hidden; }
.ct-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8fd3b4, #4caf7d); }

/* ----- Velvet-rope waiting area (brass posts, red ropes, red carpet) ----- */
.queue-pen { position: absolute; top: 40px; height: 100px; pointer-events: none; }
.q-carpet {
  position: absolute; left: 6px; right: 6px; top: 58px; height: 44px; z-index: 1;
  background: linear-gradient(#b3122e, #8f0e25);
  border: 3px solid #e2b34a;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #8f0e25, inset 0 0 0 5px rgba(226,179,74,0.6);
}
.q-row { position: absolute; display: flex; align-items: flex-start; }
.q-back  { left: 0; right: 0; top: 2px; height: 36px; z-index: 1; }
.q-front { left: -10px; right: -10px; top: 62px; height: 40px; z-index: 3; }   /* nearer, so a bit wider */
.q-post {                          /* brass stanchion: ball on top, round base */
  position: relative; flex: none;
  width: 6px; height: 100%;
  background: linear-gradient(90deg, #a8770b, #ffe08a, #a8770b);
  border-radius: 3px;
}
.q-post::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c4, #e2b34a 55%, #a8770b);
}
.q-post::after {
  content: ""; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 7px; border-radius: 50%;
  background: linear-gradient(#ffe08a, #a8770b);
}
.q-gate { flex: none; width: 66px; }   /* opening in front of the first spot (the exit) */
.q-rope {                          /* sagging red velvet rope between two posts */
  flex: 1; height: 16px; margin: 1px -2px 0;
  border: 5px solid #c0132f; border-top: none;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.18));
}
.order-bubble.seat-bubble { border-color: #4a8fa3; }

/* ----- Drive-thru lanes (stacked; buy more to serve more cars) ----- */
.dt-lanes {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
}
.dt-lane {
  position: relative;
  height: 80px;
  background: repeating-linear-gradient(90deg, #5b5b5b 0 28px, #676767 28px 56px);
  border-top: 5px dashed #ffd27a;
}
.dt-lane-tag {
  position: absolute; top: 3px; left: 8px;
  font-size: 10px; font-weight: 800; color: #fff; opacity: 0.75;
}
/* Three drive-thru window signs on the wall */
.dt-windows {
  position: absolute;
  left: 50%; bottom: 8px;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
.dt-win {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: var(--cocoa);
  background: #fff;
  border: 3px solid var(--peach);
  padding: 5px 12px;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}
.dt-win-ico { font-size: 18px; }
.dt-win b {
  min-width: 20px; text-align: center;
  background: var(--cocoa); color: #fff;
  border-radius: 8px; padding: 0 5px; font-size: 13px;
}
.dt-win.win-order { border-color: #5aa9d6; }
.dt-win.win-pay   { border-color: #e0b341; }
.dt-win.win-food  { border-color: #6cc46a; }

.car {
  position: absolute;
  bottom: 2px;
  width: 72px;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  transition: left 1s ease;
}
.car .order-bubble { top: -42px; font-size: 20px; }
.car .patience { width: 46px; }
.car-emoji { font-size: 40px; filter: drop-shadow(0 3px 0 rgba(0,0,0,0.12)); }

/* Which window the car is at, by colour + a step label */
.car-step {
  font-size: 10px; font-weight: 800; color: #fff;
  border-radius: 6px; padding: 1px 5px; margin: 0 auto 2px;
  display: inline-block; white-space: nowrap;
}
.car-order  .car-step { background: #5aa9d6; }
.car-pay    .car-step { background: #e0b341; }
.car-pickup .car-step { background: #6cc46a; }
.car-emoji  { transition: filter 0.2s; }
.car-order  .car-emoji { filter: drop-shadow(0 0 0 #5aa9d6) drop-shadow(0 3px 0 rgba(0,0,0,0.12)); }

/* =====================================================================
   NAVIGABLE AREAS (Cafe + rooms)
   ===================================================================== */
.area-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 22px;
  background: var(--cream);
  border-bottom: 3px solid var(--peach);
  z-index: 9;
}
.nav-btn {
  font-size: 14px;
  font-weight: 800;
  color: var(--cocoa);
  background: #fff;
  border: 2px solid var(--peach);
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
}
.nav-btn:hover { background: var(--peach); }
.nav-btn.active { color: #fff; background: var(--pink); border-color: #fff; }

.area-title {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  font-weight: 800; font-size: 15px;
  color: var(--cocoa);
  background: rgba(255,255,255,0.78);
  padding: 4px 14px;
  border-radius: 10px;
  z-index: 5;
  white-space: nowrap;
}
.area-coming {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  font-size: 30px; font-weight: 900;
  color: var(--cocoa);
}
.area-coming span { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--caramel); }

/* Per-room wall & floor tints */
.lounge-wall  { background: linear-gradient(180deg, #e7d7f0, #f3ebf8); }
.lounge-floor { background: repeating-linear-gradient(0deg, #ead9c4 0 26px, #e2cfb6 26px 52px); }
.dt-wall      { background: linear-gradient(180deg, #cfe0ef, #eef4fa); }
.dt-floor     { background: #cdd2d6; }
.garden-wall  { background: linear-gradient(180deg, #bfe6c4, #e6f6e8); }
.garden-floor { background: repeating-linear-gradient(0deg, #cdeccb 0 26px, #c2e6c0 26px 52px); }
.vip-wall     { background: linear-gradient(180deg, #3a2f4f, #5a4a78); }
.vip-wall .cafe-sign-sm { color: #ffe9a8; }
.vip-floor    { background: repeating-linear-gradient(0deg, #efe2c0 0 26px, #e8d8ad 26px 52px); }

/* ----- Lounge furniture ----- */
.area-shop-btn {
  position: absolute;
  top: 8px; right: 14px;
  font-size: 14px; font-weight: 800;
  color: #fff; background: var(--pink);
  border: 3px solid #fff; border-radius: 12px;
  padding: 8px 14px; cursor: pointer;
  z-index: 7;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
}
.area-shop-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.12); }
.furniture-layer { position: absolute; inset: 0; pointer-events: none; }
.lounge-item { position: absolute; font-size: 42px; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.1)); }
.lounge-wall .lounge-item { font-size: 30px; }

.area-shop {
  position: absolute;
  top: 52px; right: 14px;
  width: 290px; max-height: 78%;
  background: var(--cream);
  border: 4px solid var(--caramel);
  border-radius: 14px;
  z-index: 12;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.area-shop-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 800; color: var(--cocoa);
  padding: 10px 14px;
  border-bottom: 2px solid var(--peach);
}
.area-shop-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--cocoa); }
.area-shop-list { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }

/* ----- Garden Room ----- */
.garden-deco { position: absolute; font-size: 26px; }
.garden-deco-1 { top: 16%; left: 12%; }
.garden-deco-2 { top: 30%; right: 16%; font-size: 30px; }
.garden-deco-3 { top: 18%; right: 34%; font-size: 20px; }

.garden-toolbar {
  position: absolute;
  top: 8px; right: 14px;
  display: flex; gap: 8px;
  z-index: 7;
}
.garden-toolbar .area-shop-btn { position: static; top: auto; right: auto; box-shadow: 0 4px 0 rgba(0,0,0,0.12); }
.garden-btn2 { background: var(--caramel); }

.garden-crops-wrap {
  position: absolute;
  top: 46px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.85);
  border: 3px solid #8fc98a;
  border-radius: 14px;
  padding: 8px 14px;
  z-index: 6;
}
.garden-crops-label { font-size: 13px; font-weight: 800; color: var(--cocoa); }
.garden-crops { display: flex; gap: 8px; }
.crop-chip { background: #eaf7e7; border-color: #b7dcb1; }

.garden-plots {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(560px, 80%);
}
.plot {
  height: 96px;
  background: #8a6243;
  border: 4px solid #6f4d34;
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.12);
  transition: transform 0.1s;
}
.plot:hover { transform: translateY(-2px); }
.plot.empty { background: #9b7355; }
.plot.ready { background: #7fbf6f; border-color: #5d9b50; animation: plotReady 1s ease-in-out infinite; }
@keyframes plotReady { 0%,100% { box-shadow: inset 0 -6px 0 rgba(0,0,0,0.12), 0 0 0 0 rgba(125,191,111,0.6); } 50% { box-shadow: inset 0 -6px 0 rgba(0,0,0,0.12), 0 0 0 6px rgba(125,191,111,0); } }
.plot-dirt { font-size: 26px; opacity: 0.8; }
.plot-crop { font-size: 34px; }
.plot-crop.sprout { font-size: 26px; }
.plot-label { font-size: 12px; font-weight: 800; color: #fff; }
.plot-label.harvest { color: #fff; }
.plot.empty .plot-label { color: #f3e6d8; }
.grow-bar { width: 64%; height: 7px; background: rgba(255,255,255,0.45); border-radius: 4px; overflow: hidden; }
.grow-fill { height: 100%; background: var(--mint); transition: width 0.3s linear; }

/* Special recipe bake buttons stand out a touch in the kitchen panel. */
.recipe-btn.special { border-color: #e0b341; box-shadow: 0 3px 0 #c9991f; }

/* ----- VIP Suite ----- */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparkle {
  position: absolute;
  color: #ffe9a8;
  text-shadow: 0 0 6px rgba(255, 233, 168, 0.85);
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

.vip-chandelier {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  filter: drop-shadow(0 0 8px rgba(255, 233, 168, 0.9));
}
.vip-rope { position: absolute; bottom: 14px; font-size: 22px; opacity: 0.8; }
.vip-rope-left  { left: 8%; }
.vip-rope-right { right: 8%; }

.vip-booths {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 38px;
  z-index: 9;
}
.vip-booth { display: flex; flex-direction: column; align-items: center; }
.vip-seat {
  position: relative;
  width: 92px; height: 120px;
  display: flex; align-items: flex-end; justify-content: center;
}
.vip-sofa { font-size: 46px; margin-top: -4px; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.18)); }
.vip-booth-tag { font-size: 11px; font-weight: 800; color: #ffe9a8; margin-top: 2px; }

.vip-guest {
  position: relative;
  text-align: center;
  cursor: pointer;
  animation: arrive 0.4s ease;
  transition: opacity 0.6s ease, transform 0.4s ease;
}
.vip-guest:hover { transform: scale(1.08); }
.vip-guest.leaving { opacity: 0; transform: translateY(12px); }
.vip-guest.angry .vip-face { filter: grayscale(0.5); }
.vip-face { font-size: 40px; }
.vip-crown {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  z-index: 1;
}
.vip-guest .order-bubble { top: -36px; }
.vip-order { display: flex; gap: 4px; align-items: center; }
.vip-dish { position: relative; font-size: 18px; }
.vip-dish.done { opacity: 0.4; }
.vip-dish b { position: absolute; right: -5px; bottom: -5px; font-size: 11px; color: #2f9c46; }

/* VIP's own kitchen strip — sits along the top so it never covers the booths */
.vip-kitchen {
  position: absolute;
  left: 50%; top: 40px;
  transform: translateX(-50%);
  display: flex; flex-wrap: wrap; gap: 10px;
  width: 94%; max-width: 940px;
  padding: 10px 12px;
  background: #4a3a5e;
  border: 4px solid var(--caramel);
  border-radius: 14px;
  z-index: 8;
}
.vip-crew {
  position: absolute;
  left: 3%; bottom: 18px;
  display: flex; gap: 12px;
  z-index: 9;
}

/* ----- Garden beds (one per crop, buyable slots) ----- */
.garden-beds {
  position: absolute;
  top: 92px; left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  width: min(640px, 90%);
}
.garden-bed {
  background: rgba(255,255,255,0.72);
  border: 3px solid #8fc98a;
  border-radius: 14px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.bed-head { font-size: 13px; font-weight: 800; color: var(--cocoa); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bed-sub { font-size: 10px; font-weight: 700; color: var(--caramel); }
.bed-slots { display: flex; gap: 6px; flex-wrap: wrap; }
.bed-slots .plot { width: 52px; height: 56px; }
.bed-slots .plot-crop { font-size: 24px; }
.bed-slots .plot-crop.sprout { font-size: 18px; }
.bed-slots .plot-dirt { font-size: 18px; }
.bed-slots .plot-label { font-size: 9px; }
.bed-slots .grow-bar { width: 80%; height: 5px; }
.bed-slot-btn {
  align-self: flex-start;
  font-size: 11px; font-weight: 800;
  color: #fff; background: var(--caramel);
  border: 2px solid #fff; border-radius: 8px;
  padding: 3px 9px; cursor: pointer;
}
.bed-slot-btn.disabled { opacity: 0.5; cursor: default; }

/* ----- Drive-thru boxing station ----- */
.boxing-station {
  position: absolute;
  top: 46px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.85);
  border: 3px solid var(--caramel);
  border-radius: 14px;
  padding: 12px 16px;
  z-index: 6;
}
.box-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 150px; }
.box-col h4 { font-size: 13px; color: var(--cocoa); }
.box-arrow { font-size: 24px; }
.box-tray { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 42px; align-items: center; }
.box-empty { font-size: 11px; color: var(--caramel); font-weight: 700; max-width: 150px; text-align: center; }
.box-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 20px; font-weight: 800; color: var(--cocoa);
  background: #fff; border: 2px solid var(--caramel);
  border-radius: 10px; padding: 4px 8px; cursor: pointer;
}
.box-chip:hover { background: #fff3d8; }
.box-chip.boxed { cursor: default; background: #fff3d8; }
.box-do { font-size: 13px; }

/* Wobble used by the working Boxer. */
@keyframes dtCook { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* ----- Drive-thru kitchen (mirrors the cafe kitchen panel) ----- */
.dt-kitchen {
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  width: 92%; max-width: 900px;
  padding: 10px 12px;
  background: var(--cocoa);
  border: 4px solid var(--caramel);
  border-radius: 14px;
  z-index: 6;
  overflow-x: auto;
}
.dt-buy-btn {
  font-size: 11px; font-weight: 800;
  color: #fff; background: var(--pink);
  border: 2px solid #fff; border-radius: 8px;
  padding: 2px 7px; margin-left: 4px; cursor: pointer;
}
.ready-chip.clickable { cursor: pointer; font-family: inherit; }
.ready-chip.clickable:hover { background: #fff3d8; }

/* The hireable Boxer who stands by the line */
.dt-boxer-worker {
  position: absolute;
  bottom: 104px; right: 6%;
  display: flex; flex-direction: column; align-items: center;
  z-index: 6;
}
.dt-worker-emoji { font-size: 42px; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.12)); }
.dt-worker-tag {
  font-size: 11px; font-weight: 800; color: var(--cocoa);
  background: var(--mint); border-radius: 6px; padding: 1px 7px;
}
.dt-boxer-worker.working .dt-worker-emoji { animation: dtCook 0.4s ease-in-out infinite; }

/* The hired Chef / Server / Buyer crew, standing along the line */
.dt-crew {
  position: absolute;
  bottom: 104px; left: 4%;
  display: flex; gap: 12px;
  z-index: 6;
}
.dt-crew-member { display: flex; flex-direction: column; align-items: center; }
.dt-crew-emoji { font-size: 34px; filter: drop-shadow(0 3px 0 rgba(0,0,0,0.12)); transition: transform 0.2s; }
.dt-crew-tag {
  font-size: 10px; font-weight: 800; color: var(--cocoa);
  background: var(--mint); border-radius: 6px; padding: 1px 6px;
}
.dt-crew-member.active .dt-crew-emoji { animation: dtCook 0.5s ease-in-out infinite; }

/* ----- Walking customers ----- */
.walkers-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.walker {
  position: absolute;
  font-size: 42px;
  transition: left 1.35s ease, top 1.35s ease;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.08));
}

/* =====================================================================
   CHEF WHISKERS' TUTORIAL TIP
   ===================================================================== */
.chef-tip {
  position: fixed;
  top: 118px; left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(620px, 92vw);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 4px solid var(--caramel);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
  animation: tipPop 0.3s ease;
}
.chef-tip-face { font-size: 30px; }
#chef-tip-text { font-size: 15px; font-weight: 600; color: var(--ink); }
@keyframes tipPop {
  from { transform: translateX(-50%) translateY(-12px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* =====================================================================
   END-OF-DAY SUMMARY
   ===================================================================== */
.day-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 26, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 140;
  backdrop-filter: blur(2px);
}
.day-summary {
  width: min(420px, 92vw);
  background: var(--cream);
  border: 6px solid var(--caramel);
  border-radius: 20px;
  padding: 26px 28px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: popIn 0.2s ease;
}
.day-summary h2 { color: var(--cocoa); margin-bottom: 16px; font-size: 26px; }
.summary-row {
  font-size: 18px;
  color: var(--ink);
  margin: 8px 0;
}
.summary-row b { color: var(--cocoa); }
.summary-note {
  font-size: 14px;
  color: var(--caramel);
  margin: 16px 0;
  line-height: 1.5;
}
.summary-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#day-continue-btn, #day-save-btn, #day-newgame-btn {
  background: var(--pink);
  color: #fff;
  border: 4px solid #fff;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
}
#day-save-btn { background: #4a8fa3; }
#day-newgame-btn { background: #b06fb0; }
#day-continue-btn:hover, #day-save-btn:hover, #day-newgame-btn:hover { filter: brightness(1.05); }
#day-continue-btn:active, #day-save-btn:active, #day-newgame-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,0.15); }

/* =====================================================================
   CAT INTERACTION PANEL
   ===================================================================== */
.cat-panel {
  position: fixed;
  width: 200px;
  z-index: 130;
  background: var(--cream);
  border: 4px solid var(--caramel);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.cat-panel-close {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border: none;
  border-radius: 50%;
  background: #ff6b6b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.cat-panel-head { font-size: 18px; font-weight: 800; color: var(--cocoa); margin-bottom: 10px; }
.cat-stat { margin-bottom: 8px; }
.cat-stat label { display: block; font-size: 12px; font-weight: 700; color: var(--caramel); margin-bottom: 3px; }
.cbar { width: 100%; height: 12px; background: #eadfce; border-radius: 7px; overflow: hidden; }
.cbar-fill { height: 100%; width: 50%; background: var(--mint); transition: width 0.3s ease, background 0.3s ease; }
.cbar-fill.hunger { background: #ffb37a; }
.cat-panel-actions { display: flex; gap: 8px; margin-top: 10px; }
.cat-panel-actions button {
  flex: 1;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.cat-panel-actions button:hover { filter: brightness(1.05); }
.cat-sell-btn {
  width: 100%; margin-top: 8px;
  background: none; border: 2px dashed #d9a7a7; border-radius: 10px;
  color: #b86b6b; font-size: 12px; font-weight: 800; font-family: inherit;
  padding: 5px 0; cursor: pointer;
}
.cat-sell-btn:hover { background: #fff0f0; }
.cat-panel-actions button:active { transform: translateY(2px); }

/* ----- Wall clipboard + its report panel ----- */
.wall-clipboard {
  position: absolute;
  top: 74px; left: 41%;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.12s;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.12));
}
.wall-clipboard:hover { transform: scale(1.12) rotate(-3deg); }

.clipboard-panel {
  position: fixed;
  top: 90px; left: 50%;
  transform: translateX(-50%);
  width: 280px;
  z-index: 130;
  background: var(--cream);
  border: 4px solid var(--caramel);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.3);
}
.clipboard-head { font-weight: 900; color: var(--cocoa); font-size: 18px; text-align: center; margin-bottom: 6px; }
.clipboard-happy { text-align: center; font-size: 14px; color: var(--cocoa); margin-bottom: 10px; }
.clipboard-cats { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.clip-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px; align-items: center;
  background: #fff;
  border: 2px solid var(--peach);
  border-radius: 10px;
  padding: 5px 9px;
  font-size: 13px; font-weight: 700; color: var(--cocoa);
}
.clip-stat { font-size: 12px; }
.clip-empty { font-size: 13px; color: var(--caramel); text-align: center; padding: 8px; }

/* =====================================================================
   CHEF WHISKERS' TOUR
   ===================================================================== */
.tour-layer { position: fixed; inset: 0; z-index: 110; pointer-events: none; }

.guide {
  position: fixed;
  width: 64px;
  text-align: center;
  z-index: 111;
  pointer-events: none;
  transition: left 0.8s ease, top 0.8s ease;
  animation: bob 3s ease-in-out infinite;
}
.guide-hat {
  width: 34px; height: 20px;
  margin: 0 auto -8px;
  background: #fff;
  border: 2px solid #e6e1d8;
  border-radius: 50% 50% 8px 8px;
  position: relative;
  z-index: 1;
}
.guide-face { font-size: 46px; line-height: 1; }

.tour-bubble {
  position: fixed;
  width: 270px;
  z-index: 112;
  pointer-events: auto;
  background: var(--cream);
  border: 4px solid var(--caramel);
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
}
.tour-bubble::before {
  content: "Chef Whiskers";
  position: absolute;
  top: -16px; left: 16px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 12px;
  border-radius: 10px;
  border: 2px solid #fff;
}
.tour-bubble p { font-size: 15px; line-height: 1.45; color: var(--ink); margin-bottom: 10px; }
#tour-next {
  display: block;
  margin-left: auto;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 7px 16px;
  font-weight: 800;
  cursor: pointer;
}
#tour-next:hover { filter: brightness(1.05); }
#tour-next:active { transform: translateY(2px); }
.tour-actions { display: flex; align-items: center; gap: 8px; }
#tour-skip {
  background: none; border: none; padding: 4px 2px;
  color: var(--caramel); font-size: 12px; font-weight: 700; font-family: inherit;
  text-decoration: underline; cursor: pointer;
}
#tour-skip:hover { color: var(--cocoa); }

/* =====================================================================
   CATS / DECOR / ROOMS shop extras
   ===================================================================== */
.roster { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.roster-chip {
  background: var(--cream);
  border: 2px solid var(--peach);
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cocoa);
}
.rooms-note {
  font-size: 13px;
  color: #b8e0d2;
  text-align: center;
  margin-bottom: 4px;
}
.rooms-note b { color: #fff; }

/* Bought furniture sitting in the room */
.bought-decor {
  position: absolute;
  font-size: 36px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.08));
}
.bought-decor.wall { font-size: 28px; z-index: 0; }
/* Textured decor (SVG icons) carry their own art — no wrapper shadow box. */
.bought-decor.tex-decor, .lounge-item.tex-decor { filter: none; }

/* Room plaques that appear on the wall as you expand — click to enter */
.room-banner {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  background: var(--mint);
  color: var(--cocoa);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border: 2px solid #fff;
  border-radius: 8px;
  z-index: 8;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}
.room-banner:hover { transform: translateX(-50%) scale(1.08); background: #cde7db; }
.room-banner:active { transform: translateX(-50%) translateY(2px); }

/* =====================================================================
   STAFF (servers & chefs)
   ===================================================================== */
.staff-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.staff {
  position: absolute;
  width: 40px;
  text-align: center;
  transition: left 0.85s ease, top 0.85s ease;
}
.staff-emoji {
  font-size: 34px;
  display: block;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.1));
}
.staff-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--caramel);
  border-radius: 8px;
  padding: 0 6px;
  white-space: nowrap;
}
.staff-chef .staff-tag { background: #ff7b54; }
.staff.cooking .staff-emoji { animation: sizzle 0.6s ease-in-out infinite; }
.staff.walking .staff-emoji { animation: walkBob 0.5s ease-in-out infinite; }   /* a little step bounce */
@keyframes walkBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(3deg); }
}

/* Customer "thinking / wants to order" bubble */
.order-bubble.thinking {
  background: #fff;
  animation: think 1.2s ease-in-out infinite;
}
@keyframes think {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}

/* =====================================================================
   THIEF RAIDS (day 20+, every 10 days)
   ===================================================================== */
.thief {
  position: absolute;
  text-align: center;
  cursor: pointer;
  z-index: 8;
  animation: arrive 0.4s ease;
  transition: opacity 0.6s ease, transform 0.3s ease;
}
.thief:hover { transform: scale(1.1); }
.thief-face { font-size: 46px; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.2)); }
.thief-img { width: 60px; height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.18)); }
.thief-rope {
  position: absolute;
  left: 50%; top: 46%;
  transform: translateX(-50%);
  width: 56px; height: auto;
  pointer-events: none;
  z-index: 2;
  animation: ropePop 0.25s ease;
}
@keyframes ropePop {
  from { transform: translateX(-50%) scale(0.4); opacity: 0; }
  to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}
.thief-bubble { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 22px; }
.thief.tied { animation: thiefShake 0.4s ease-in-out infinite; }
.thief.leaving { opacity: 0; transform: scale(0.7); }
@keyframes thiefShake {
  0%,100% { transform: translateX(-1px) rotate(-3deg); }
  50%     { transform: translateX(1px) rotate(3deg); }
}

.thief-alert {
  position: absolute;
  top: 64px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: #d63b3b; color: #fff;
  font-weight: 900; font-size: 15px;
  padding: 10px 18px;
  border: 3px solid #fff; border-radius: 14px;
  z-index: 130;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: thiefFlash 0.8s ease-in-out infinite;
}
@keyframes thiefFlash {
  0%,100% { background: #d63b3b; }
  50%     { background: #ff6b6b; }
}
.thief-alert button {
  font-size: 13px; font-weight: 800;
  color: #d63b3b; background: #fff;
  border: none; border-radius: 8px;
  padding: 5px 10px; cursor: pointer;
}

.thief-phone-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 160;
}
.phone {
  width: 264px;
  background: #2c2c3a;
  border: 6px solid #15151e;
  border-radius: 28px;
  padding: 18px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.phone-top { text-align: center; color: #fff; font-weight: 900; font-size: 18px; margin-bottom: 10px; }
.phone-display {
  height: 42px;
  background: #b8e6b0;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 26px; font-weight: 900;
  letter-spacing: 6px;
  text-align: center; line-height: 42px;
  color: #1d3a18;
  overflow: hidden; white-space: nowrap;
}
.phone-display.wrong { color: #d63b3b; font-size: 16px; letter-spacing: 1px; }
.phone-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.phone-key {
  font-size: 22px; font-weight: 900;
  color: #fff; background: #44445a;
  border: none; border-radius: 50%;
  height: 56px; cursor: pointer;
  transition: background 0.1s, transform 0.1s;
}
.phone-key:hover { background: #5a5a78; }
.phone-key:active { transform: scale(0.92); background: #6cc46a; }

/* =====================================================================
   HOME MENU + SAVE SLOTS
   ===================================================================== */
.menu-scene {
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 55%, #ffe3c9 100%);
}
.menu-bunting {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-around;
  padding: 0 8px;
}
.menu-bunting span {
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 24px solid var(--pink);
}
.menu-bunting span:nth-child(2n) { border-top-color: var(--mint); }
.menu-bunting span:nth-child(3n) { border-top-color: #ffd27a; }

.menu-card {
  position: relative;
  background: rgba(255,255,255,0.88);
  border: 4px solid #fff;
  border-radius: 24px;
  padding: 28px 34px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.15);
  max-width: 90%;
}
.menu-title { font-size: 40px; color: var(--cocoa); margin: 0; text-shadow: 0 2px 0 #fff; }
.menu-tagline { font-size: 20px; font-weight: 800; color: var(--pink); margin: 2px 0 10px; }
.menu-cats { font-size: 38px; margin-bottom: 18px; }
.menu-h2 { font-size: 26px; color: var(--cocoa); margin: 0 0 16px; }

.menu-buttons { display: flex; flex-direction: column; gap: 12px; min-width: 230px; }
.menu-btn {
  font-size: 18px; font-weight: 800;
  color: #fff; background: var(--pink);
  border: 3px solid #fff; border-radius: 14px;
  padding: 12px 18px; cursor: pointer;
  box-shadow: 0 5px 0 rgba(0,0,0,0.12);
  transition: transform 0.08s, filter 0.1s;
}
.menu-btn:hover { filter: brightness(1.06); }
.menu-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,0.12); }
.menu-btn.danger { background: #d63b3b; }

.menu-back {
  margin-top: 16px;
  font-size: 14px; font-weight: 800;
  color: var(--cocoa); background: #fff;
  border: 2px solid var(--peach); border-radius: 10px;
  padding: 8px 16px; cursor: pointer;
}

.slot-list { display: flex; flex-direction: column; gap: 12px; min-width: 300px; }
.slot-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 3px solid var(--peach);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
}
.slot-card.filled { border-color: var(--mint); }
.slot-num { font-weight: 900; color: var(--cocoa); font-size: 14px; }
.slot-info { font-size: 14px; font-weight: 700; color: var(--caramel); }
.slot-actions { display: flex; gap: 6px; }
.slot-play {
  font-size: 14px; font-weight: 800;
  color: #fff; background: var(--pink);
  border: none; border-radius: 10px;
  padding: 8px 12px; cursor: pointer;
}
.slot-play:hover { filter: brightness(1.06); }
.slot-del {
  font-size: 14px; background: #ffe0e0; color: #d63b3b;
  border: none; border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.settings-body, .credits-body { font-size: 15px; color: var(--cocoa); line-height: 1.7; }
.settings-note { font-size: 13px; color: var(--caramel); }
.settings-body .menu-btn { margin-top: 12px; }
.settings-slider {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--cocoa);
}
.settings-slider label { white-space: nowrap; }
.settings-slider input[type="range"] {
  flex: 1; accent-color: #e58fb0; cursor: pointer;
}

/* Centered confirm dialog */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(40, 26, 20, 0.55);
}
.confirm-overlay.hidden { display: none; }
.confirm-card {
  background: var(--cream, #fff7ec); border-radius: 18px;
  padding: 26px 30px; max-width: 340px; width: 86%;
  text-align: center; box-shadow: 0 14px 40px rgba(0,0,0,0.3);
  animation: confirm-pop 0.18s ease-out;
}
@keyframes confirm-pop { from { transform: scale(0.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-emoji { font-size: 40px; margin-bottom: 6px; }
.confirm-msg { font-size: 16px; color: var(--cocoa, #5a3d2b); line-height: 1.5; margin: 0 0 18px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions .menu-btn { margin-top: 0; flex: 1; }

/* Secret / cheat menu */
.secret-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 18, 36, 0.6);
}
.secret-overlay.hidden { display: none; }
.secret-card {
  background: linear-gradient(160deg, #3a2b4f, #2a2036); color: #f3e9ff;
  border: 2px solid #7d5fa8; border-radius: 18px;
  padding: 24px 26px; max-width: 340px; width: 86%; text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  animation: confirm-pop 0.18s ease-out;
}
.secret-emoji { font-size: 38px; }
.secret-title { margin: 4px 0 16px; font-size: 22px; }
.secret-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,0.07); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px; font-size: 15px;
}
.secret-row button {
  background: #7d5fa8; color: #fff; border: none; border-radius: 10px;
  padding: 7px 12px; cursor: pointer; font-weight: 700; white-space: nowrap;
}
.secret-row button:hover { filter: brightness(1.1); }
.secret-day-btns { display: flex; gap: 6px; }
.secret-row select {
  background: #7d5fa8; color: #fff; border: none; border-radius: 10px;
  padding: 7px 10px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.secret-row select option { background: #fff; color: #2a2036; }
.secret-card .menu-btn { margin-top: 0; margin-bottom: 12px; width: 100%; }
.secret-card .menu-back { color: #cbb8e6; }
