/* =========================================================================
 * מטגנת הזהב — style.css
 * במה 1280x720 שמוקטנת לחלון. סגנון חם, קריקטורי ומעוגל.
 * מחלקות לשימוש חוזר בתחנות: .btn (+ .btn-primary/.btn-secondary/.btn-danger/
 * .btn-small/.btn-big/.btn-icon), .panel, .panel-title, .chip, .muted, .center,
 * .station-toolbar, .meter (ראו README-מפתחים.md)
 * ========================================================================= */

:root {
  --cocoa: #5a2d0c;
  --cocoa-2: #7a4518;
  --gold: #f6c445;
  --gold-2: #e0a42a;
  --gold-3: #a7781a;
  --cream: #fff8ec;
  --cream-2: #fff1dc;
  --paper-line: #e8c79a;
  --pink: #ff6fa1;
  --teal: #3c9d9b;
  --good: #3fae5b;
  --mid: #f0a020;
  --bad: #e0402f;
  --shadow: 0 6px 18px rgba(90, 45, 12, 0.18);
  --font: "Rubik", "Assistant", "Heebo", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #2b1709;
  font-family: var(--font);
  color: var(--cocoa);
  -webkit-user-select: none; user-select: none;
}
#viewport { position: fixed; inset: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #4a2812 0%, #24130a 75%); }
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 720px;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #fbe9cf;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}
svg { overflow: visible; }

/* ---------------- כפתורים ---------------- */
.btn {
  font-family: var(--font); font-weight: 800; font-size: 18px;
  border: none; border-radius: 999px; padding: 10px 22px;
  cursor: pointer; color: var(--cocoa);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1.1; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); }
.btn:disabled { cursor: default; filter: grayscale(0.8) opacity(0.55); transform: none; }
.btn-primary {
  background: linear-gradient(#ffe27a, var(--gold) 55%, var(--gold-2));
  box-shadow: 0 4px 0 var(--gold-3), 0 6px 12px rgba(90, 45, 12, 0.25);
  border: 2px solid #fff3b8;
}
.btn-primary:active { box-shadow: 0 1px 0 var(--gold-3), 0 2px 6px rgba(90, 45, 12, 0.25); }
.btn-secondary {
  background: var(--cream); border: 2px solid var(--paper-line);
  box-shadow: 0 4px 0 #d2ad7c, 0 5px 10px rgba(90, 45, 12, 0.15);
}
.btn-secondary:active { box-shadow: 0 1px 0 #d2ad7c; }
.btn-danger {
  background: linear-gradient(#ff8a7a, var(--bad)); color: #fff; border: 2px solid #ffb3a8;
  box-shadow: 0 4px 0 #9e2a1e;
}
.btn-danger:active { box-shadow: 0 1px 0 #9e2a1e; }
.btn-small { font-size: 15px; padding: 6px 14px; }
.btn-big { font-size: 26px; padding: 14px 44px; }
.btn-icon {
  width: 42px; height: 42px; padding: 0; font-size: 20px;
  background: var(--cream); border: 2px solid var(--paper-line); box-shadow: 0 3px 0 #d2ad7c;
}
.btn.is-poor { opacity: 0.6; }

/* ---------------- פאנלים ושבבים ---------------- */
.panel {
  background: var(--cream);
  border: 3px solid var(--paper-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.panel-title { font-size: 20px; font-weight: 900; margin: 0 0 8px; color: var(--cocoa); }
.muted { color: #9a7650; }
.center { text-align: center; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1.5px solid #ecd6b3; border-radius: 999px;
  padding: 1px 8px 1px 4px; font-size: 12.5px; font-weight: 600; line-height: 20px;
  white-space: nowrap;
}
.chip svg { flex: none; }
.chip-many { border-color: var(--pink); }
.chip-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.2); }

/* מד כללי לתחנות: <div class="meter"><i style="width:40%"></i><b class="meter-zone" style="right:30%;width:12%"></b></div> */
.meter { position: relative; height: 18px; border-radius: 999px; background: #f0dfc4; border: 2px solid #d2ad7c; overflow: hidden; }
.meter > i { position: absolute; top: 0; bottom: 0; right: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 999px; }
.meter > .meter-zone { position: absolute; top: 0; bottom: 0; background: rgba(63, 174, 91, 0.35); border-left: 2px solid var(--good); border-right: 2px solid var(--good); }

/* סרגל כלים עליון בתוך תחנה */
.station-toolbar { position: absolute; top: 10px; right: 10px; left: 10px; display: flex; gap: 8px; align-items: center; z-index: 5; }

/* ---------------- HUD ---------------- */
#hud {
  position: absolute; top: 0; left: 0; right: 0; height: 84px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(#8a4f22, #6b3a17);
  border-bottom: 4px solid #4a2610;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 20;
}
.hud-block {
  background: var(--cream); border: 2px solid #f3d8ae; border-radius: 14px;
  padding: 4px 10px; box-shadow: inset 0 -3px 0 rgba(90, 45, 12, 0.12);
  flex: none;
}
.hud-day { width: 116px; text-align: center; line-height: 1.1; }
.hud-day-line { font-size: 16px; font-weight: 700; }
.hud-clock { font-size: 24px; font-weight: 900; letter-spacing: 1px; direction: ltr; }
.hud-day-progress { font-size: 11px; color: #9a7650; min-height: 12px; }
.hud-money { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 900; min-width: 104px; justify-content: center; height: 50px; }
.coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, var(--gold) 55%, var(--gold-3)); border: 2px solid var(--gold-3); display: inline-block; }
.hud-rank { width: 196px; padding: 5px 10px 7px; }
.hud-rank-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rank-badge {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #fff3b0, var(--gold) 60%, var(--gold-2));
  border: 2px solid var(--gold-3); font-weight: 900; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rank-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-bar { position: relative; height: 14px; border-radius: 999px; background: #ecd9bb; overflow: hidden; border: 1.5px solid #d2ad7c; }
.xp-bar i { position: absolute; top: 0; bottom: 0; right: 0; background: linear-gradient(90deg, #ff9ec2, var(--pink)); border-radius: 999px; transition: width 0.6s; }
.xp-bar span { position: absolute; inset: 0; font-size: 10px; font-weight: 700; text-align: center; line-height: 12px; direction: ltr; }
.hud-buttons { display: flex; gap: 6px; align-items: center; flex: none; }
#btn-mute .snd-off { display: none; }
#btn-mute.muted .snd-on { display: none; }
#btn-mute.muted .snd-off { display: inline; }

/* ---------------- מסילת כרטיסים ---------------- */
.ticket-rail {
  flex: 1; height: 74px; position: relative;
  display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px 0;
  overflow: hidden;
  background: linear-gradient(#5a3214, #4a2610);
  border-radius: 12px; box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4);
}
.ticket-rail::before { /* המוט */
  content: ""; position: absolute; top: 4px; left: 6px; right: 6px; height: 5px; border-radius: 3px;
  background: linear-gradient(#d9dde2, #8d959e);
}
.rail-empty { color: #e8c79a; font-size: 14px; margin: auto; opacity: 0.8; }
.ticket-card {
  position: relative; flex: none; width: 66px; height: 64px; margin-top: 2px;
  background: #fffdf7; border: none; border-radius: 4px 4px 8px 8px;
  border-top: 6px solid var(--good);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  font-family: var(--font); color: var(--cocoa); cursor: pointer; padding: 2px 3px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  transition: transform 0.12s;
  transform-origin: 50% 0;
}
.ticket-card::before { /* אטב */
  content: ""; position: absolute; top: -10px; left: 50%; width: 14px; height: 8px; margin-left: -7px;
  background: #b0b7bf; border-radius: 3px; border: 1px solid #7d858e;
}
.ticket-card:hover { transform: rotate(-3deg); }
.ticket-card.active { transform: scale(1.06); box-shadow: 0 0 0 3px var(--gold), 0 4px 10px rgba(0, 0, 0, 0.4); }
.ticket-card.mood-neutral { border-top-color: var(--mid); }
.ticket-card.mood-angry { border-top-color: var(--bad); animation: wiggle 0.6s ease-in-out infinite alternate; }
.tc-num { font-size: 11px; font-weight: 900; line-height: 12px; }
.tc-name { font-size: 11px; font-weight: 600; line-height: 13px; white-space: nowrap; overflow: hidden; max-width: 60px; }
.tc-donuts { display: flex; gap: 1px; height: 20px; }
.tc-donuts svg { opacity: 0.55; }
.tc-donuts svg.has { opacity: 1; filter: drop-shadow(0 0 2px var(--good)); }
.tc-progress { font-size: 10px; color: #9a7650; line-height: 11px; }
@keyframes wiggle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

/* ---------------- אזור משחק ---------------- */
#play { position: absolute; top: 84px; left: 0; right: 0; height: 572px; display: flex; }
.station-root { position: relative; width: 1044px; height: 572px; overflow: hidden; flex: none; background: #fbe9cf; }

/* ---------------- לוח כרטיס פעיל ---------------- */
.ticket-panel {
  width: 236px; height: 572px; flex: none; border-radius: 0; border-width: 0 3px 0 0;
  overflow-y: auto; padding: 8px 8px 12px;
  background: repeating-linear-gradient(#fffdf7 0 23px, #f3e6cf 23px 24px);
}
.ticket-panel::-webkit-scrollbar { width: 6px; }
.ticket-panel::-webkit-scrollbar-thumb { background: #d2ad7c; border-radius: 3px; }
.tp-head { display: flex; align-items: baseline; gap: 6px; padding: 4px 4px 8px; border-bottom: 2px dashed #e0c59c; margin-bottom: 6px; }
.tp-num { font-size: 22px; font-weight: 900; }
.tp-name { font-size: 18px; font-weight: 800; flex: 1; }
.tp-count { font-size: 12px; color: #9a7650; }
.tp-item { background: rgba(255, 255, 255, 0.85); border: 2px solid #eedbbd; border-radius: 12px; padding: 4px 6px 6px; margin-bottom: 8px; }
.tp-item.started { border-color: #bfe0c4; }
.tp-item-title { font-size: 13px; font-weight: 800; }
.tp-thumbs { display: flex; justify-content: space-around; }
.tp-thumb { display: flex; flex-direction: column; align-items: center; }
.tp-thumb small { font-size: 10.5px; color: #9a7650; margin-top: -2px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.tp-chips .chip { font-size: 11.5px; line-height: 18px; padding: 0 6px 0 3px; }
.panel-empty { text-align: center; padding: 60px 10px; }
.panel-empty-icon svg { width: 64px; height: 64px; opacity: 0.7; }
.panel-empty p { margin: 6px 0; font-weight: 700; }

/* ---------------- סרגל תחנות ---------------- */
#station-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 64px;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  background: linear-gradient(#6b3a17, #4a2610);
  border-top: 4px solid #8a4f22; z-index: 20;
}
.station-btn {
  position: relative; height: 50px; min-width: 170px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 20px; font-weight: 800; color: var(--cocoa);
  background: var(--cream); border: 2px solid #f3d8ae; border-radius: 14px;
  box-shadow: 0 4px 0 #3a1d0a; cursor: pointer; transition: transform 0.08s;
}
.station-btn:hover { transform: translateY(-2px); }
.station-btn.active {
  background: linear-gradient(#ffe27a, var(--gold)); border-color: #fff3b8;
  box-shadow: 0 4px 0 var(--gold-3), 0 0 14px rgba(246, 196, 69, 0.6);
}
.station-icon { display: inline-flex; }
.station-icon svg { width: 34px; height: 34px; }
.station-key { position: absolute; bottom: 2px; left: 7px; font-size: 10px; opacity: 0.5; }
.station-badge {
  position: absolute; top: -8px; left: -8px; min-width: 24px; height: 24px; padding: 0 6px;
  background: var(--bad); color: #fff; border-radius: 999px; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.15); } }
/* העובד/ת שבמשמרת — בצד הימני של הסרגל התחתון, מחוץ לאזור הכפתורים */
.shift-worker {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px; pointer-events: none;
  color: var(--cream); white-space: nowrap;
}
.shift-worker .worker-avatar { flex: none; filter: drop-shadow(0 2px 0 #3a1d0a); }
.sw-text { display: flex; flex-direction: column; line-height: 1.15; }
.sw-text small { font-size: 12px; font-weight: 700; opacity: 0.8; }
.sw-text b { font-size: 17px; font-weight: 900; }
/* נדנוד עדין לעובד/ת בתחנת ההזמנות */
.worker-bob { animation: workerBob 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes workerBob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
/* תחנה שמחכה בה עבודה (guide.js) */
.station-btn.attention:not(.active) { border-color: #ffd447; animation: attn 0.9s ease-in-out infinite alternate; }
.station-btn.attention:not(.active)::after {
  content: "כאן!"; position: absolute; top: -12px; right: 10px; font-size: 12px; font-weight: 900;
  background: #ffd447; color: var(--cocoa); border-radius: 999px; padding: 0 8px; line-height: 18px; border: 2px solid #fff;
}
@keyframes attn { from { box-shadow: 0 4px 0 #3a1d0a, 0 0 0 0 rgba(255, 212, 71, 0); } to { box-shadow: 0 4px 0 #3a1d0a, 0 0 0 5px rgba(255, 212, 71, 0.75); } }

/* טיפ הדרכה לתחנה (guide.js) */
.modal-tip { width: 500px; min-width: 0; border-color: #ffd447; background: #fffbe9; }
.modal-tip .modal-title { font-size: 26px; }
.guide-tip-list { margin: 0; padding: 0 22px 0 0; font-size: 18px; line-height: 1.5; }
.guide-tip-list li { margin: 4px 0; }
.modal-tip .modal-buttons { align-items: center; }

/* ---------------- חלונות ---------------- */
#modal-layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.modal-overlay {
  position: absolute; inset: 0; pointer-events: auto;
  background: rgba(40, 20, 5, 0.55);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
.modal {
  position: relative; min-width: 420px; max-width: 900px; max-height: 660px; overflow: auto;
  padding: 18px 26px 20px; border-width: 4px; border-radius: 24px;
  animation: popIn 0.28s cubic-bezier(.2, 1.4, .4, 1);
}
.modal-title { margin: 0 0 10px; text-align: center; font-size: 30px; font-weight: 900; }
.modal-body { font-size: 17px; }
.modal-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.modal-x { position: absolute; top: 10px; left: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--paper-line); background: #fff; cursor: pointer; font-size: 16px; color: var(--cocoa); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* מסך ציון */
.modal-score { width: 760px; }
.score-layout { display: flex; gap: 20px; align-items: center; }
.score-customer { display: flex; flex-direction: column; align-items: center; background: #ffeccc; border-radius: 18px; padding: 10px 10px 6px; }
.score-details { flex: 1; }
.score-donuts { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.score-donut { background: radial-gradient(#ffffff, #f2e2c8); border-radius: 50%; }
.score-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.score-label { width: 64px; font-weight: 800; }
.score-bar .bar { flex: 1; height: 18px; border-radius: 999px; background: #efdfc4; overflow: hidden; border: 2px solid #d9bd94; position: relative; }
.score-bar .bar i { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 999px; background: var(--good); animation: grow 0.7s ease-out; }
.score-bar .bar i.mid { background: var(--mid); }
.score-bar .bar i.bad { background: var(--bad); }
.score-bar b { width: 36px; text-align: center; font-size: 18px; }
.score-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 2px dashed #e0c59c; font-size: 18px; }
.score-total .tip b { color: var(--good); }
.score-total .xp b { color: #d4458a; }
@keyframes grow { from { width: 0 !important; } }
.stars { display: inline-flex; gap: 2px; direction: ltr; }
.star { font-size: 28px; line-height: 1; }
.star.on { color: var(--gold); text-shadow: 0 2px 0 var(--gold-3); }
.star.off { color: #e3d3b8; }
.score-stars .star { font-size: 34px; }

/* סוף יום */
.modal-day { width: 520px; }
.day-summary { display: flex; flex-direction: column; gap: 6px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: #fff; border-radius: 10px; border: 1.5px solid #eedbbd; }
.sum-row b { font-size: 19px; }
.sum-row .star { font-size: 20px; }

/* עליית דרגה */
.modal-rank { width: 600px; text-align: center; }
.rank-badge-big {
  width: 110px; height: 110px; margin: 4px auto 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3b0, var(--gold) 55%, var(--gold-2));
  border: 5px solid var(--gold-3); display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 900; box-shadow: 0 0 30px rgba(246, 196, 69, 0.8);
  animation: spinIn 0.7s ease-out;
}
@keyframes spinIn { from { transform: rotate(-200deg) scale(0.3); } to { transform: none; } }
.rank-title-big { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.unlock-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.unlock-item { width: 118px; background: #fff; border: 2px solid #eedbbd; border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.unlock-item b { font-size: 14px; }
.unlock-item small { font-size: 11px; color: #9a7650; }

/* חנות */
.modal-shop { width: 700px; }
.shop-money { text-align: center; font-size: 20px; margin-bottom: 10px; }
.shop-grid { display: flex; flex-direction: column; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #eedbbd; border-radius: 14px; padding: 2px 12px; }
.shop-icon svg { width: 44px; height: 44px; }
.shop-item.shop-owned { background: #effaf0; border-color: #bfe0c4; }
.shop-item.shop-locked { opacity: 0.55; filter: grayscale(0.7); }
.shop-text { flex: 1; display: flex; flex-direction: column; }
.shop-text b { font-size: 17px; }
.shop-text small { font-size: 13px; color: #8a6a48; }
.shop-action { width: 130px; text-align: center; }
.shop-owned .shop-action span { color: var(--good); font-weight: 800; }
.shop-locked .shop-action span { font-size: 13px; font-weight: 700; }

/* ---------------- הודעות ---------------- */
#toast-layer { position: absolute; top: 96px; left: 0; right: 0; z-index: 60; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast {
  background: var(--cream); border: 3px solid var(--paper-line); border-radius: 999px;
  padding: 8px 22px; font-weight: 800; font-size: 18px; box-shadow: var(--shadow);
  animation: toastIn 0.25s ease-out; transition: opacity 0.4s, transform 0.4s;
}
.toast.out { opacity: 0; transform: translateY(-10px); }
.toast-good { border-color: #8fd19e; }
.toast-warn { border-color: #f5c06a; background: #fff3dc; }
.toast-bad { border-color: #f09a8f; background: #ffe9e5; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } }

#fps { position: absolute; bottom: 70px; left: 6px; z-index: 70; display: none; background: rgba(0,0,0,.6); color: #8f8; font: 12px monospace; padding: 2px 6px; border-radius: 4px; direction: ltr; }

/* ---------------- מסך פתיחה ---------------- */
#title-screen {
  position: absolute; inset: 0; z-index: 40;
  background: radial-gradient(circle at 50% 38%, #fff3d6 0%, #ffd79a 45%, #e99a4f 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s;
}
#title-screen.out { opacity: 0; }
.title-box { position: relative; text-align: center; z-index: 2; }
.title-logo svg { filter: drop-shadow(0 8px 14px rgba(90, 45, 12, 0.35)); animation: logoFloat 3s ease-in-out infinite alternate; }
@keyframes logoFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.title-tag { font-size: 22px; font-weight: 700; margin: 4px 0 18px; }
.title-buttons { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.title-meta { font-size: 16px; font-weight: 700; margin-top: 12px; }
.title-help { font-size: 14px; color: #8a5a2e; margin-top: 18px; }
.confirm-reset { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-weight: 700; }
.title-floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater { position: absolute; animation: floaty 6s ease-in-out infinite alternate; opacity: 0.9; }
.floater.f0 { top: 60px; right: 90px; }
.floater.f1 { top: 420px; right: 140px; animation-delay: -1s; }
.floater.f2 { top: 90px; left: 110px; animation-delay: -2s; }
.floater.f3 { top: 470px; left: 90px; animation-delay: -3s; }
.floater.f4 { top: 560px; left: 520px; animation-delay: -4s; }
.floater.f5 { top: 280px; right: 30px; animation-delay: -5s; transform: scale(0.7); }
@keyframes floaty { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-24px) rotate(8deg); } }

/* ---------------- תחנת הזמנות ---------------- */
.order-scene { position: absolute; inset: 0; }
.order-take { position: absolute; left: 450px; bottom: 34px; min-width: 220px; z-index: 3; }
.order-hint { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); padding: 8px 20px; font-weight: 800; font-size: 18px; z-index: 3; }
.speech-bubble {
  position: absolute; left: 650px; top: 36px; width: 370px; z-index: 4;
  padding: 12px 14px; border-radius: 22px; background: #fff; border-color: #e2cfae;
  animation: popIn 0.25s cubic-bezier(.2, 1.4, .4, 1);
  display: flex; flex-direction: column; gap: 6px;
}
.speech-bubble::before {
  content: ""; position: absolute; left: -22px; top: 150px;
  border: 12px solid transparent; border-right: 22px solid #e2cfae; border-left: 0;
}
.speech-bubble::after {
  content: ""; position: absolute; left: -16px; top: 153px;
  border: 9px solid transparent; border-right: 17px solid #fff; border-left: 0;
}
.speech-bubble .btn { align-self: center; }
.sb-hello { font-size: 20px; font-weight: 900; }
.sb-items { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.sb-item { display: flex; gap: 6px; align-items: center; background: #fff8ec; border-radius: 12px; padding: 4px; }
.sb-item svg { flex: none; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.cust-bob { animation: bob 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.cust-enter { animation: custEnter 0.5s ease-out, bob 2.4s ease-in-out 0.5s infinite alternate; }
@keyframes bob { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-3px) scaleY(1.01); } }
@keyframes custEnter { from { transform: translateX(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.order-decor .bulb { animation: twinkle 1.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }
.order-decor .note { animation: floaty 2s ease-in-out infinite alternate; transform-box: fill-box; }

/* עשן לסופגניה שרופה */
.donut-smoke { animation: smoke 1.6s ease-out infinite; }
@keyframes smoke { from { transform: translateY(0); opacity: 0.55; } to { transform: translateY(-0.5px); opacity: 0; } }

/* ---------------- מציין מקום לתחנות בבנייה ---------------- */
.station-placeholder {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 420px; padding: 30px; text-align: center;
}
.station-placeholder h2 { margin: 6px 0; font-size: 30px; }
.station-placeholder p { margin: 0; font-size: 22px; color: #9a7650; font-weight: 700; }
.ph-icon svg { width: 90px; height: 90px; }
