/* Hot Dog Empire: "neon night market" theme. Dark glass HUD, ketchup-red and mustard neon, cyan tech accents. */
:root {
  color-scheme: dark;
  --bg: #090b12;
  --bg-2: #0e1120;
  --surface: rgba(20, 24, 38, 0.78);
  --surface-solid: #121626;
  --surface-2: #1a1f31;
  --surface-3: #252b42;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #eef1ff;
  --ink-2: #98a1bf;
  --red: #ff3d5a;
  --red-d: #ff7088;
  --mustard: #ffd23f;
  --gold: #ffc53d;
  --cyan: #29e7d1;
  --violet: #8b5cf6;
  --green: #22d3a6;
  --good: #3ee08f;
  --bad: #ff4d6d;
  --card: var(--surface-2);
  --panel: var(--surface-solid);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-s: 0 2px 8px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --neon-line: linear-gradient(90deg, transparent, var(--red) 25%, var(--mustard) 75%, transparent);
  --font-h: 'Chakra Petch', 'Space Grotesk', system-ui, sans-serif;
  --font-b: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --topbar-h: 58px;
  --panel-w: 360px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-b);
  color: var(--ink);
  background: radial-gradient(ellipse at 20% 0%, rgba(255, 61, 90, 0.08), transparent 50%), var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-h); margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: 0.2px; }
h2 { font-size: 1.45rem; }
h3 { font-size: 0.95rem; margin-top: 1.1em; color: var(--ink-2); text-transform: uppercase; letter-spacing: 1.2px; }
h3 small { font-weight: 500; text-transform: none; letter-spacing: 0; }
p { margin: 0.4em 0 0.8em; line-height: 1.45; }
kbd {
  font-family: var(--font-h); font-size: 0.6rem; padding: 0 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: inherit; opacity: 0.8; margin-left: 2px;
}
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; display: block; }

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 0.6em 1.1em; font-family: var(--font-h); font-weight: 700; letter-spacing: 0.3px;
  background: var(--surface-3); color: var(--ink); line-height: 1.15;
  transition: transform 0.08s, filter 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.primary {
  background: linear-gradient(135deg, #ff3d5a, #ff7a45); color: #fff; border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 22px rgba(255, 61, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.gold { background: linear-gradient(135deg, #ffd23f, #ff9f1c); color: #1a1200; border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 6px 20px rgba(255, 190, 40, 0.3); }
.btn.ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.btn.ghost:hover { border-color: rgba(255, 61, 90, 0.6); box-shadow: 0 0 14px rgba(255, 61, 90, 0.2); }
.btn.big { font-size: 1.08rem; padding: 0.75em 1.4em; }
.btn.small { font-size: 0.85rem; padding: 0.45em 0.8em; }
.btn.tiny { font-size: 0.78rem; padding: 0.35em 0.6em; border-radius: 8px; }
.btn.tiny, .btn.buy { background: rgba(34, 211, 166, 0.14); color: var(--good); border-color: rgba(62, 224, 143, 0.45); }
.btn.buy { font-size: 0.78rem; min-width: 84px; text-align: center; }
.btn.buy b { font-size: 0.95rem; }
.btn.buy.gold { background: rgba(255, 210, 63, 0.14); color: var(--mustard); border-color: rgba(255, 210, 63, 0.5); }
.btn.cant, .btn.tiny.cant { background: rgba(255, 255, 255, 0.04); color: var(--ink-2); border-color: var(--line); }
.btn.loading { opacity: 0.7; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--mustard); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mini-btn {
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-3); color: var(--ink); padding: 3px 8px; font-size: 0.72rem; font-weight: 700;
}
.mini-btn.danger { background: rgba(255, 77, 109, 0.16); border-color: rgba(255, 77, 109, 0.4); }
.mini-btn.pass-btn { background: rgba(62, 224, 143, 0.16); border-color: rgba(62, 224, 143, 0.45); color: #0f5132; }
.mini-btn:disabled { opacity: 0.45; }

.row { display: flex; align-items: center; gap: 0.5rem; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; }
.gap { gap: 0.6rem; }
.top-gap { margin-top: 1rem; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--ink-2); }
.fine { font-size: 0.78rem; color: var(--ink-2); }
.small { font-size: 0.82rem; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.grow { flex: 1; min-width: 0; }

/* ---------- title screen: neon sign over a synthwave grid ---------- */
.title-screen {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; overflow: auto;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 61, 90, 0.28), transparent 55%),
    radial-gradient(ellipse at 85% 95%, rgba(41, 231, 209, 0.16), transparent 50%),
    linear-gradient(180deg, #07080e 0%, #120a1e 58%, #07080e 100%);
}
.grid-floor {
  position: fixed; left: -50%; right: -50%; bottom: -8%; height: 52%; pointer-events: none; overflow: hidden;
  transform: perspective(380px) rotateX(62deg); transform-origin: 50% 0;
  -webkit-mask: linear-gradient(transparent, #000 35%); mask: linear-gradient(transparent, #000 35%);
}
/* The grid slides one cell with a transform (composited) rather than animating background-position (a full repaint). */
.grid-floor i {
  position: absolute; left: 0; right: 0; top: -64px; bottom: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 61, 90, 0.38) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 61, 90, 0.38) 0 1px, transparent 1px 64px);
  animation: gridrun 2.4s linear infinite;
}
.title-screen::after {
  content: ''; position: fixed; left: 0; right: 0; bottom: 44%; height: 2px; pointer-events: none;
  background: var(--neon-line); box-shadow: 0 0 24px 4px rgba(255, 61, 90, 0.45);
}
@keyframes gridrun { to { transform: translateY(64px); } }
.title-card {
  position: relative; z-index: 1; background: rgba(12, 14, 26, 0.86); border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); padding: 30px 28px;
  max-width: 470px; width: 100%; text-align: center;
}
.title-card::before { content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 2px; background: var(--neon-line); }
.title-card h1 {
  font-size: clamp(2.3rem, 8vw, 3.6rem); text-transform: uppercase; letter-spacing: 1px; margin: 0; color: #fff; line-height: 1;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--red), 0 0 26px var(--red), 0 0 48px rgba(255, 61, 90, 0.55);
}
.title-card h1 span { display: block; color: #fff6d6; text-shadow: 0 0 2px #fff, 0 0 10px var(--mustard), 0 0 26px #ffb703, 0 0 46px rgba(255, 183, 3, 0.5); animation: neonflicker 6s infinite; }
@keyframes neonflicker { 0%, 92%, 96%, 100% { opacity: 1; } 93%, 95% { opacity: 0.55; } }
.beta-badge {
  display: inline-block; margin: 12px 0 0; padding: 3px 12px; border-radius: 6px; border: 1px solid rgba(41, 231, 209, 0.55); color: var(--cyan);
  background: rgba(41, 231, 209, 0.08); font-family: var(--font-h); font-size: 0.8rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  box-shadow: 0 0 16px rgba(41, 231, 209, 0.25);
}
.beta-note { margin-bottom: 0; }
.beta-note a { color: var(--cyan); font-weight: 700; }
.tagline { color: var(--ink-2); font-size: 1.02rem; }
.logo-dog { width: 200px; max-width: 64%; margin: 0 auto 10px; animation: bob 2.4s ease-in-out infinite; }
.logo-svg { width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(255, 61, 90, 0.45)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.title-buttons { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 10px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* ---------- app layout & HUD ---------- */
#app { height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: relative; height: var(--topbar-h); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px; background: rgba(9, 11, 18, 0.94); border-bottom: 1px solid var(--line); z-index: 5;
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--neon-line); opacity: 0.7; }
.tb-left, .tb-mid, .tb-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-logo { font-family: var(--font-h); font-size: 1.05rem; white-space: nowrap; display: flex; gap: 6px; align-items: center; text-transform: uppercase; letter-spacing: 0.8px; }
.tb-logo b { color: #fff; text-shadow: 0 0 10px rgba(255, 61, 90, 0.8); }
.tb-logo b span { color: var(--mustard); text-shadow: 0 0 10px rgba(255, 183, 3, 0.7); }
.tb-beta { font-style: normal; font-size: 0.6rem; letter-spacing: 1.5px; color: var(--cyan); border: 1px solid rgba(41, 231, 209, 0.5); border-radius: 4px; padding: 0 5px; }
.tb-loc { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 10px; padding: 6px 10px; font-weight: 700; white-space: nowrap; }
.tb-loc small { color: var(--ink-2); font-weight: 600; margin-left: 4px; }
.tb-clock { display: flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.dayring {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(var(--mustard) calc(var(--p) * 360deg), rgba(255, 255, 255, 0.12) 0);
  mask: radial-gradient(circle, transparent 6px, #000 7px); -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px);
  filter: drop-shadow(0 0 4px rgba(255, 210, 63, 0.6));
}
.tb-cash {
  font-family: var(--font-h); font-weight: 700; font-size: 1.3rem; letter-spacing: 1px; color: var(--good); background: #04120b;
  border: 1px solid rgba(62, 224, 143, 0.35); padding: 1px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 0 10px rgba(62, 224, 143, 0.75); box-shadow: inset 0 0 14px rgba(62, 224, 143, 0.12);
}
.tb-chip { font-size: 0.76rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tb-chip.boost { color: var(--mustard); border-color: rgba(255, 210, 63, 0.4); }
.tb-buns {
  display: flex; align-items: center; gap: 4px; background: rgba(255, 210, 63, 0.07); border: 1px solid rgba(255, 210, 63, 0.4); border-radius: 999px;
  padding: 3px 5px 3px 10px; font-weight: 700; color: var(--mustard); font-family: var(--font-h);
}
.tb-buns .plus { background: var(--mustard); color: #1a1200; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 0.9rem; }
.gb-icon { width: 22px; height: 16px; vertical-align: -3px; }
.gb-icon.inline { width: 20px; height: 15px; margin-right: 2px; }
.tb-btn {
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); border-radius: 10px; width: 40px; height: 40px;
  display: grid; place-items: center; transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.tb-btn:hover { border-color: rgba(255, 61, 90, 0.6); color: #fff; box-shadow: 0 0 14px rgba(255, 61, 90, 0.25); }
.tb-me { border: 2px solid var(--line-2); background: var(--surface-3); border-radius: 50%; width: 42px; height: 42px; padding: 0; overflow: hidden; position: relative; }
.tb-me:hover { border-color: var(--red); }
.tb-me.member { border-color: var(--mustard); box-shadow: 0 0 12px rgba(255, 210, 63, 0.5); }
.tb-me .avatar { width: 100%; height: 100%; }
.tb-me .dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; background: var(--red); border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 8px var(--red); }
.panel-toggle { display: none; }

.main { flex: 1; display: flex; min-height: 0; }
.scene-root { flex: 1; min-width: 0; display: flex; }
.panel-wrap { width: var(--panel-w); flex: none; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; position: relative; }
.panel-close { display: none; }

/* ---------- scene: looking out of a neon-lit food truck ---------- */
.scene {
  flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; user-select: none; -webkit-user-select: none;
  background: color-mix(in srgb, var(--cart) 14%, #07080e);
  --pillar: clamp(18px, 6vw, 78px);
  --led: var(--awn-a);
}

/* The serving window: street outside, framed by the LED canopy, truck walls and the glass counter. */
.window { flex: 1; min-height: 240px; position: relative; overflow: hidden; }
.street {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.08) 72.2%, transparent 74%),
    linear-gradient(180deg, var(--sky1), var(--sky2) 62%, var(--ground) 62.2%, color-mix(in srgb, var(--ground) 80%, #000) 100%);
}
.scenery { position: absolute; left: 0; right: 0; bottom: 38%; width: 100%; height: 58%; opacity: 0.9; }
.awning-in {
  position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 4;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #1c2133, #0d0f18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}
.awning-in::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--awn-a) 0 44px, var(--awn-b) 44px 88px);
  box-shadow: 0 0 10px var(--led), 0 4px 26px color-mix(in srgb, var(--led) 60%, transparent);
}
.awning-sign {
  position: absolute; left: 50%; top: 9px; transform: translateX(-50%); font-family: var(--font-h); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 2px 14px; border-radius: 6px; font-size: 0.82rem; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis;
  color: #fff; border: 1px solid color-mix(in srgb, var(--led) 70%, transparent); background: rgba(0, 0, 0, 0.35);
  text-shadow: 0 0 6px var(--led), 0 0 16px var(--led); box-shadow: 0 0 14px color-mix(in srgb, var(--led) 40%, transparent), inset 0 0 10px color-mix(in srgb, var(--led) 25%, transparent);
}
.pillar {
  position: absolute; top: 0; bottom: 0; width: var(--pillar); z-index: 3; display: flex; flex-direction: column; align-items: center; padding-top: 58px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 38px),
    linear-gradient(90deg, #07080e, color-mix(in srgb, var(--cart) 22%, #161a28) 70%, color-mix(in srgb, var(--cart) 30%, #2a3047));
}
.pillar::after {
  content: ''; position: absolute; top: 46px; bottom: 0; right: 0; width: 3px;
  background: var(--led); box-shadow: 0 0 8px var(--led), 0 0 18px color-mix(in srgb, var(--led) 60%, transparent);
}
.pillar.left { left: 0; box-shadow: 8px 0 18px rgba(0, 0, 0, 0.45); }
.pillar.right { right: 0; transform: scaleX(-1); box-shadow: 8px 0 18px rgba(0, 0, 0, 0.45); }
.pillar.right > * { transform: scaleX(-1); }
.menu-board {
  width: calc(100% - 12px); background: #03050b; border: 1px solid rgba(41, 231, 209, 0.45); border-radius: 6px; color: #cffff8; padding: 4px 3px;
  font-family: var(--font-h); font-size: 0.62rem; font-weight: 600; text-align: center; line-height: 1.55;
  box-shadow: 0 0 12px rgba(41, 231, 209, 0.25), inset 0 0 10px rgba(41, 231, 209, 0.12); text-shadow: 0 0 6px rgba(41, 231, 209, 0.6);
}
.menu-board b { display: block; color: var(--mustard); font-size: 0.68rem; letter-spacing: 1.5px; text-shadow: 0 0 6px rgba(255, 210, 63, 0.7); }
.board-streak { display: block; margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(41, 231, 209, 0.3); color: #ffb36b; text-shadow: 0 0 6px rgba(255, 140, 50, 0.7); }
.board-streak em { display: block; font-style: normal; font-size: 0.56rem; color: var(--mustard); line-height: 1.3; }
.board-streak.hot { animation: soft-blink 2.4s ease-in-out infinite alternate; }
.chip.streak { display: none; border-color: rgba(255, 140, 50, 0.6); color: #ffb36b; }
.open-sign {
  width: calc(100% - 12px); border-radius: 6px; padding: 4px 2px; text-align: center; font-family: var(--font-h); font-weight: 700; font-size: 0.72rem; letter-spacing: 1.5px;
  background: #03050b; color: #52ff9a; text-shadow: 0 0 6px #52ff9a, 0 0 14px #52ff9a; border: 1px solid rgba(82, 255, 154, 0.45); box-shadow: 0 0 12px rgba(82, 255, 154, 0.25);
}
.open-sign { cursor: pointer; font-family: var(--font-h); transition: transform 0.1s, filter 0.15s; }
.open-sign:hover { filter: brightness(1.25); transform: scale(1.04); }
.open-sign.closed { color: #ff5a6e; text-shadow: 0 0 6px #ff5a6e, 0 0 14px #ff5a6e; border-color: rgba(255, 90, 110, 0.45); box-shadow: 0 0 12px rgba(255, 90, 110, 0.25); }
.ledge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 2;
  background: linear-gradient(180deg, #dfe6ff 0 2px, #7d88a8 2px, #3a4260 45%, #171b2a);
  clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.35);
}
/* The pass: finished orders wait on the ledge, between you and the line. */
.pass {
  position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); z-index: 4; display: flex; gap: 6px; pointer-events: none;
}
.pass-item {
  pointer-events: auto; width: 76px; height: 38px; border: 0; border-radius: 8px; padding: 2px 4px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f8f9fa, #c9cfd6); box-shadow: 0 3px 0 #6c757d, 0 6px 10px rgba(0, 0, 0, 0.4); animation: popin 0.2s;
}
.pass-item .hotdog { width: 62%; height: auto; }
.pass-item .food.mini { width: 18%; height: auto; }
.pass-item:hover { transform: translateY(-2px); }
.pass-item.empty { background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.18); box-shadow: none; animation: none; pointer-events: none; }
.ledge::before {
  content: ''; position: absolute; left: 2%; right: 2%; top: 0; height: 2px;
  background: var(--led); box-shadow: 0 0 10px var(--led), 0 0 22px var(--led);
}
.chips { position: absolute; top: 54px; left: calc(var(--pillar) + 8px); display: flex; flex-wrap: wrap; gap: 6px; z-index: 5; }
.chip {
  background: rgba(9, 11, 18, 0.86); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 0.78rem;
  border: 1px solid var(--line-2);
}
.chip.rush { border-color: var(--mustard); color: var(--mustard); animation: soft-blink 2.4s ease-in-out infinite alternate; }
.chip.alert { border-color: var(--bad); color: #ffb3c1; animation: soft-blink 1.8s ease-in-out infinite alternate; box-shadow: 0 0 12px rgba(255, 77, 109, 0.4); }
.chip.special { border-color: rgba(41, 231, 209, 0.6); }
.chip.champ { border-color: var(--mustard); box-shadow: 0 0 12px rgba(255, 210, 63, 0.4); }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* Customers stand behind the counter. The line ends a little above the bottom so only their chests dip below the
   ledge; each figure then scales to the height that's left under its order bubble, so faces stay in view. */
.queue {
  position: absolute; left: calc(var(--pillar) + 6px); right: calc(var(--pillar) + 6px); bottom: 24px; top: 52px;
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; align-items: stretch;
}
.cust {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-height: 0;
  cursor: pointer;
}
.cust.empty { cursor: default; }
.cust:not(.empty):not(.paid) { animation: walkin 0.4s ease-out; }
@keyframes walkin { from { transform: translateX(40px); opacity: 0; } }
.cust-body { flex: 0 1 clamp(150px, 25vh, 270px); min-height: 0; width: 100%; position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; }
.cust-body .avatar { display: block; height: 100%; width: auto; max-width: 100%; }
.bubble {
  flex: none; background: rgba(14, 17, 29, 0.92); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
  padding: 5px 6px 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); width: min(100%, 160px);
  position: relative; z-index: 3; margin-bottom: 7px; transition: box-shadow 0.15s, transform 0.15s;
}
.bubble::after {
  content: ''; position: absolute; bottom: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg);
  background: rgb(14, 17, 29); border-right: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.bubble-food { display: flex; align-items: center; justify-content: center; gap: 2px; }
.bubble-food .hotdog { width: 62%; height: auto; }
.food.mini { width: 18%; height: auto; }
.tchips { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 2px; }
.tchip {
  font-size: clamp(0.55rem, 0.9vw, 0.66rem); font-weight: 700; padding: 0 5px; border-radius: 4px; line-height: 1.5; color: #fff;
  background: color-mix(in srgb, var(--c) 30%, #0e111d); border: 1px solid var(--c); white-space: nowrap;
}
.tchip.plain { --c: #8a93b0; }
.patience { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.patience i { display: block; height: 100%; border-radius: 99px; transform-origin: 0 50%; transition: transform 0.2s linear, background 0.3s; box-shadow: 0 0 6px currentColor; }
.cust.match .bubble { border-color: var(--good); box-shadow: 0 0 0 1px var(--good), 0 0 22px rgba(62, 224, 143, 0.6); transform: translateY(-3px); }
.cust.complain .bubble { animation: shake 0.3s 2; border-color: var(--bad); }
/* Orders for two or three: one compact row per hot dog, checked off as each is handed over. */
.bubble.multi { width: min(100%, 176px); }
.item { position: relative; border-radius: 6px; transition: background 0.15s; }
.item + .item { border-top: 1px dashed rgba(255, 255, 255, 0.16); margin-top: 3px; padding-top: 3px; }
.bubble.multi .item { display: grid; grid-template-columns: 52% 1fr; align-items: center; gap: 3px; }
.bubble.multi .bubble-food .hotdog { width: 66%; }
.bubble.multi .food.mini { width: 17%; }
.bubble.multi .tchips { justify-content: flex-start; margin-top: 0; }
.bubble.multi .item.hit { background: rgba(62, 224, 143, 0.16); box-shadow: 0 0 0 1px rgba(62, 224, 143, 0.5); }
.item.done { opacity: 0.32; }
.item.done::after {
  content: '✓'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--good);
  text-shadow: 0 0 6px rgba(62, 224, 143, 0.8);
}

/* Patience alerts: yellow when getting eager, red when about to walk out. */
.alert-badge {
  position: absolute; top: -10px; right: -8px; z-index: 4; width: 24px; height: 24px; border-radius: 6px; display: none; transform: rotate(45deg);
  place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 0.9rem; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.alert-badge::before { display: block; transform: rotate(-45deg); }
.cust.warn .alert-badge, .cust.danger .alert-badge { display: grid; }
.cust.warn .alert-badge { background: var(--mustard); color: #1a1200; box-shadow: 0 0 12px rgba(255, 210, 63, 0.6); }
.cust.warn .alert-badge::before { content: '!'; }
.cust.warn:not(.match) .bubble { border-color: var(--mustard); box-shadow: 0 0 0 1px var(--mustard), 0 8px 22px rgba(0, 0, 0, 0.45); }
.cust.danger .alert-badge { background: var(--bad); animation: soft-blink 1.6s ease-in-out infinite alternate; box-shadow: 0 0 14px var(--bad); }
.cust.danger .alert-badge::before { content: '!!'; font-size: 0.75rem; }
/* About to walk out: a slow red glow that breathes around the bubble (opacity only, so it's cheap to animate). */
.cust.danger:not(.match) .bubble { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad), 0 8px 22px rgba(0, 0, 0, 0.45); }
.cust.danger:not(.match) .bubble::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 22px 2px rgba(255, 77, 109, 0.75); animation: soft-glow 1.6s ease-in-out infinite alternate;
}
@keyframes soft-glow { from { opacity: 0.15; } }
@keyframes soft-blink { from { opacity: 0.6; } }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.kind-badge {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--font-h); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 1px; padding: 1px 6px; border-radius: 4px; color: #fff;
}
.kind-badge.critic { background: var(--violet); box-shadow: 0 0 10px rgba(139, 92, 246, 0.6); }
.kind-badge.judge { background: var(--gold); color: #1a1200; box-shadow: 0 0 10px rgba(255, 197, 61, 0.6); }
.cust.critic .bubble { border-color: var(--violet); }
.cust.judge .bubble { border-color: var(--gold); }
.cust.paid { justify-content: flex-end; }
.money-pile {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; border-radius: 12px; padding: 6px 10px; margin-bottom: 26px;
  background: rgba(4, 18, 11, 0.9); border: 1px solid rgba(62, 224, 143, 0.5); box-shadow: 0 0 18px rgba(62, 224, 143, 0.35);
  animation: popin 0.25s; font-weight: 700;
}
.money-pile .coins { width: 54px; }
.money-pile b { color: var(--good); font-family: var(--font-h); text-shadow: 0 0 8px rgba(62, 224, 143, 0.7); }
.money-pile .rate { color: var(--mustard); font-size: 0.7rem; letter-spacing: -1px; }
.cust.paid:hover .money-pile { transform: scale(1.06); }
@keyframes popin { from { transform: scale(0.4); opacity: 0; } }

/* Countertop in front of you, tilted away for a first-person feel. */
.counter { flex: none; position: relative; perspective: 1100px; padding: 10px 10px 0; }
.counter::after {
  content: ''; display: block; height: 16px; margin: 0 -10px;
  background: linear-gradient(180deg, #2a3047, #0b0d14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.kitchen {
  display: grid; gap: 10px; padding: 12px 12px 14px; border-radius: 22px 22px 0 0;
  grid-template-columns: 1.25fr 1fr 1.65fr 1.15fr 0.95fr;
  transform: rotateX(14deg); transform-origin: 50% 100%;
  background:
    linear-gradient(rgba(41, 231, 209, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(41, 231, 209, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, #232839, #10131c);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--led) 70%, transparent), 0 -2px 18px color-mix(in srgb, var(--led) 35%, transparent), 0 -4px 20px rgba(0, 0, 0, 0.45);
}
/* ---------- kitchen stations: gunmetal equipment with LED status plates ---------- */
.station {
  position: relative; border-radius: 12px; padding: 6px 7px 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2d3347, #1a1e2c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 0 #07080d, 0 10px 18px rgba(0, 0, 0, 0.45);
}
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 24px; }
.plate {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 700; font-size: 0.68rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--cyan); white-space: nowrap; padding: 2px 8px; border-radius: 5px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(41, 231, 209, 0.35); text-shadow: 0 0 8px rgba(41, 231, 209, 0.65);
}
.plate::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.st-grill .plate, .st-fry .plate { color: #ffb36b; border-color: rgba(255, 140, 50, 0.45); text-shadow: 0 0 8px rgba(255, 140, 50, 0.7); }
.st-grill .plate::before, .st-fry .plate::before { background: #ff8c32; box-shadow: 0 0 6px #ff8c32; }

/* Grill: cast-iron grate over glowing coals, with control knobs. */
.grill-wrap { position: relative; flex: 1; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; padding: 4px; background: #0d0f11; box-shadow: inset 0 0 0 2px #6c757d, inset 0 3px 8px rgba(0, 0, 0, 0.8); }
.flames {
  position: absolute; inset: 4px; display: flex; justify-content: space-around; align-items: flex-end; border-radius: 5px;
  background:
    radial-gradient(circle at 12% 86%, #ff7b00 0 3px, transparent 5px),
    radial-gradient(circle at 30% 72%, #ffb703 0 2px, transparent 4px),
    radial-gradient(circle at 47% 90%, #e85d04 0 3px, transparent 6px),
    radial-gradient(circle at 64% 76%, #ff9e00 0 2.5px, transparent 5px),
    radial-gradient(circle at 83% 88%, #f48c06 0 3px, transparent 6px),
    radial-gradient(circle at 22% 40%, #9d0208 0 2px, transparent 4px),
    radial-gradient(circle at 74% 34%, #9d0208 0 2px, transparent 4px),
    radial-gradient(ellipse at 50% 125%, rgba(255, 100, 0, 0.8), rgba(130, 25, 0, 0.45) 55%, transparent 85%),
    #160c08;
}
.flames i {
  width: 22%; height: 75%; border-radius: 50% 50% 40% 40%; opacity: 0.55;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 210, 110, 0.9), rgba(255, 110, 20, 0.55) 40%, rgba(220, 40, 0, 0.12) 58%, transparent 70%);
  animation: flicker 0.6s ease-in-out infinite alternate; transform-origin: 50% 100%;
}
.flames i:nth-child(2) { animation-delay: -0.2s; animation-duration: 0.5s; }
.flames i:nth-child(3) { animation-delay: -0.4s; animation-duration: 0.7s; }
.flames i:nth-child(4) { animation-delay: -0.1s; }
@keyframes flicker { to { transform: scaleY(0.75) scaleX(1.08); opacity: 0.35; } }
.grill {
  position: relative; flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; gap: 4px; padding: 3px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #111316 6px 7px, #73787e 7px 8.5px, #2b2e33 8.5px 10.5px, transparent 10.5px 12px);
  box-shadow: inset 0 0 0 2px #3d4248;
}
.grill-slot {
  position: relative; border: 0; border-radius: 6px; height: 56px; background: transparent; color: #fff; padding: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden;
}
.grill-slot .lbl { font-size: 0.6rem; font-weight: 800; background: rgba(0, 0, 0, 0.6); padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.grill-slot.empty .lbl { color: rgba(255, 255, 255, 0.8); }
.grill-slot.empty:hover { background: rgba(255, 150, 40, 0.14); }
.grill-slot .frank { width: 94%; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7)); }
.grill-slot.raw .frank, .grill-slot.perfect .frank { animation: sizzle 0.22s steps(2) infinite; }
@keyframes sizzle { 50% { transform: translateY(0.6px); } }
.grill-slot.perfect { box-shadow: inset 0 0 0 2px #52b788; }
.grill-slot.perfect::after, .fryer.perfect::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 2px #95d5b2, inset 0 0 12px #52b788, 0 0 12px #52b788; animation: glow 0.8s infinite alternate;
}
.grill-slot.over { box-shadow: inset 0 0 0 2px #f4a261; }
.grill-slot.burnt { box-shadow: inset 0 0 0 2px var(--bad); }
@keyframes glow { to { opacity: 1; } }
.smoke { position: absolute; top: -4px; left: 50%; width: 30px; height: 30px; pointer-events: none; }
.grill-slot.over .smoke, .grill-slot.burnt .smoke { background: radial-gradient(circle, rgba(220, 220, 220, 0.8), transparent 70%); animation: smoke 1.2s infinite; }
.grill-slot.burnt .smoke { background: radial-gradient(circle, rgba(60, 60, 60, 0.9), transparent 70%); }
@keyframes smoke { from { transform: translate(-50%, 20px) scale(0.5); opacity: 1; } to { transform: translate(-50%, -10px) scale(1.4); opacity: 0; } }
.steam { position: absolute; top: -2px; left: 0; right: 0; height: 30px; pointer-events: none; }
.steam i {
  position: absolute; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 20%, transparent 70%);
  animation: steam 1.8s ease-out infinite;
}
.steam i:first-child { left: 30%; }
.steam i:last-child { left: 60%; animation-delay: -0.9s; }
@keyframes steam { from { transform: translateY(14px) scale(0.6); opacity: 0.8; } to { transform: translateY(-16px) scale(1.6); opacity: 0; } }
.knobs { display: flex; align-items: center; gap: 8px; padding: 0 3px; }
.knobs i {
  position: relative; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #f8f9fa, #868e96 60%, #343a40); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.knobs i::after { content: ''; position: absolute; left: 6px; top: 1px; width: 2px; height: 6px; background: #212529; border-radius: 1px; transform-origin: 1px 6px; transform: rotate(50deg); }
.knobs i:nth-child(2)::after { transform: rotate(-30deg); }
.knobs .pilot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #ff6b00; box-shadow: 0 0 6px 2px rgba(255, 120, 0, 0.7); }

/* Warmer: steam-table pan under a heat lamp, behind a glass sneeze guard. */
.warmer-unit {
  position: relative; flex: 1; display: flex; flex-direction: column; border-radius: 8px; padding: 13px 5px 5px; overflow: hidden;
  background: linear-gradient(180deg, #2b2f33, #41474d); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
.warmer-unit::before {
  content: ''; position: absolute; inset: 9px 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 150, 40, 0.4), rgba(255, 150, 40, 0.06) 75%);
}
.heat-lamp { position: absolute; top: 0; left: 0; right: 0; height: 9px; background: linear-gradient(180deg, #6c757d, #2b2f33); display: flex; justify-content: space-around; align-items: flex-end; }
.heat-lamp i {
  width: 36%; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #ff7b00, #ffd166, #ff7b00);
  box-shadow: 0 2px 18px 8px rgba(255, 140, 0, 0.5); animation: lamp 2.4s ease-in-out infinite alternate;
}
@keyframes lamp { from { opacity: 0.8; } }
.warmer {
  position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; padding: 6px 5px; border-radius: 6px;
  background: linear-gradient(180deg, #8e979f, #d5dade 30%, #aeb5bc);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.6), 0 0 0 2px #dee2e6;
}
.warm-dog { border: 0; background: transparent; border-radius: 6px; height: 28px; padding: 0 1px; display: grid; place-items: center; }
.warm-dog .frank { width: 100%; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.warm-dog.empty { background: rgba(0, 0, 0, 0.07); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25); }
.warm-dog.raw { box-shadow: 0 0 0 2px #f4a261; }
.warm-dog.over { box-shadow: 0 0 0 2px #9c6644; }
.warm-dog:not(.empty):hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.05); }
.sneeze-guard {
  position: absolute; left: 3px; right: 3px; top: 9px; height: 42%; pointer-events: none; border-radius: 0 0 3px 3px;
  background:
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.3) 36%, transparent 44%, transparent 60%, rgba(255, 255, 255, 0.18) 64%, transparent 68%),
    rgba(200, 230, 255, 0.08);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}

/* Prep: maple cutting board, paper boat and a rail of condiment bottles and insert pans. */
.prep {
  position: relative; min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 6px 20px 6px 10px; border-radius: 14px;
  background:
    repeating-linear-gradient(177deg, rgba(120, 70, 20, 0.1) 0 2px, transparent 2px 7px, rgba(120, 70, 20, 0.06) 7px 8px, transparent 8px 15px),
    radial-gradient(ellipse at 30% 35%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #ebc896, #d4a466);
  box-shadow: 0 3px 0 #a8743a, 0 6px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.prep::before {
  content: ''; position: absolute; top: 50%; right: 6px; width: 7px; height: 24px; margin-top: -12px; border-radius: 4px;
  background: linear-gradient(90deg, #8f969d, #c8ced4); box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.45);
}
.prep-empty { text-align: center; color: #7f5539; font-size: 0.76rem; font-weight: 800; }
.prep-empty .hotdog { width: 46%; opacity: 0.22; display: block; margin: 0 auto; }
.prep-items { display: flex; align-items: center; justify-content: center; gap: 6px; }
.boat { position: relative; display: flex; justify-content: center; width: min(66%, 210px); padding: 0 4px 3px; }
.boat::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; opacity: 0.95;
  background: repeating-conic-gradient(#e63946 0 25%, #fff 0 50%) 0 0 / 10px 10px;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
}
.boat .hotdog.big { position: relative; width: 100%; height: auto; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25)); }
.hotdog.big { width: min(70%, 200px); height: auto; }
.prep-sides { display: flex; gap: 2px; }
.food.mid { width: 34px; height: auto; }
.prep-nodog { color: #7f5539; font-size: 0.75rem; font-weight: 800; }
.prep-foot { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 800; }
.prep-foot .serve-tip { flex: 1; color: #1b5e3b; }
.q { padding: 0 6px; border-radius: 6px; text-transform: capitalize; }
.q.perfect { background: #d8f3dc; color: var(--good); }
.q.raw { background: #ffe5d9; color: #c44536; }
.q.over { background: #ede0d4; color: #7f5539; }
.toppings {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 4px; padding: 5px; border-radius: 8px;
  background: linear-gradient(180deg, #5c636a, #3d4349); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55);
}
.top-btn {
  position: relative; border: 0; border-radius: 7px; padding: 4px 2px 3px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: linear-gradient(180deg, #f8f9fa, #ced4da); box-shadow: 0 2px 0 #05060a; font-size: 0.62rem; font-weight: 700; color: #1d2433;
  transition: transform 0.08s;
}
.top-btn .cond { height: 22px; width: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); }
.top-btn .top-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-btn kbd { position: absolute; top: 2px; right: 2px; font-size: 0.52rem; padding: 0 3px; }
.top-btn.on { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c) 35%, #fff)); box-shadow: 0 0 0 2px var(--c), 0 3px 0 #212529; transform: translateY(-2px); }
.top-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #212529; }

/* Fryer: oil vat with a wire basket that drops in, plus a fry dump station under a heat lamp. */
.fry-row { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: 6px; flex: 1; }
.fryer {
  position: relative; border: 0; width: 100%; border-radius: 8px; padding: 5px; color: #fff;
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  background: linear-gradient(180deg, #5d6479, #3a4052); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}
.vat { position: relative; height: 78px; border-radius: 6px; overflow: hidden; background: #1b1e21; box-shadow: inset 0 0 0 3px #495057, inset 0 4px 8px rgba(0, 0, 0, 0.7); }
.vat .oil { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 36px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #b8781a, #7a4d08); }
.vat .basket { position: absolute; left: 50%; bottom: 7px; width: min(92%, 128px); transform: translateX(-50%); transition: transform 0.3s ease; }
.vat .basket-svg { display: block; width: 100%; height: auto; }
.fryer.empty .vat .basket { transform: translate(-50%, -22px); }
.vat .oil-top {
  position: absolute; left: 3px; right: 3px; bottom: 3px; height: 24px; border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, rgba(235, 175, 60, 0.72), rgba(150, 95, 15, 0.92)); border-top: 1.5px solid rgba(255, 230, 160, 0.85);
}
.vat .bubbles { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 24px; pointer-events: none; }
.fryer:not(.empty) .bubbles {
  background-image: radial-gradient(circle, rgba(255, 245, 210, 0.85) 0 1.6px, transparent 2.4px), radial-gradient(circle, rgba(255, 245, 210, 0.6) 0 1.2px, transparent 2px);
  background-size: 14px 12px, 10px 9px; background-position: 0 0, 5px 4px; animation: oil 0.9s linear infinite;
}
@keyframes oil { to { background-position: 0 -12px, 5px -5px; } }
.fryer.burnt .vat::after { content: ''; position: absolute; left: 30%; top: 0; width: 40%; height: 60%; background: radial-gradient(circle, rgba(60, 60, 60, 0.85), transparent 70%); animation: smoke 1.2s infinite; }
.fryer-panel { display: flex; align-items: center; gap: 5px; background: #2b2f33; border-radius: 5px; padding: 2px 5px; }
.fryer-panel .dial { width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, #868e96 60%, #343a40); }
.fryer-panel .lbl { flex: 1; font-size: 0.62rem; font-weight: 800; text-align: center; white-space: nowrap; }
.fryer-panel .light { width: 7px; height: 7px; border-radius: 50%; background: #495057; flex: none; }
.fryer.raw .light { background: #ffb703; box-shadow: 0 0 6px #ffb703; }
.fryer.perfect .light { background: #52b788; box-shadow: 0 0 6px #52b788; }
.fryer.over .light, .fryer.burnt .light { background: #e63946; box-shadow: 0 0 6px #e63946; }
.fryer.perfect { box-shadow: inset 0 0 0 3px #52b788; }
.fryer.over { box-shadow: inset 0 0 0 3px #f4a261; }
.fryer.burnt { box-shadow: inset 0 0 0 3px var(--bad); }
.fryer .dbar { width: 100%; margin: 0; background: rgba(0, 0, 0, 0.3); }
.fries-holder {
  position: relative; border: 0; width: 100%; min-height: 118px; border-radius: 8px; padding: 12px 4px 4px; overflow: hidden; color: #212529;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; font-size: 0.72rem;
  background: linear-gradient(180deg, rgba(255, 150, 40, 0.38), transparent 50%), linear-gradient(180deg, #dee2e6, #9aa1a9);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35);
}
.fries-holder::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 5px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #ff7b00, #ffd166, #ff7b00); box-shadow: 0 0 12px 4px rgba(255, 140, 0, 0.45);
}
.fries-holder.none { opacity: 0.6; }
.fries-holder.taken { box-shadow: inset 0 0 0 2px var(--green), inset 0 3px 8px rgba(0, 0, 0, 0.35); }
.fries-holder .lbl { font-size: 0.64rem; font-weight: 800; }
.dbar { position: relative; width: 90%; height: 5px; background: rgba(255, 255, 255, 0.25); border-radius: 9px; margin-top: 2px; overflow: hidden; }
.dbar i { position: absolute; inset: 0; background: #ffd166; border-radius: 9px; transform-origin: 0 50%; transform: scaleX(0); }
.dbar .win { position: absolute; top: 0; bottom: 0; left: calc(0.85 / 1.65 * 100%); width: calc(0.45 / 1.65 * 100%); background: rgba(82, 183, 136, 0.55); }
.stock-line { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 600; color: var(--ink-2); flex-wrap: wrap; }
.stock-line b { color: var(--ink); font-family: var(--font-h); }
.stock-line .low { color: var(--bad); animation: soft-blink 2s ease-in-out infinite alternate; }
.stock-line .auto { font-size: 0.64rem; background: rgba(62, 224, 143, 0.12); border: 1px solid rgba(62, 224, 143, 0.35); color: var(--good); padding: 0 6px; border-radius: 5px; }

/* Drinks: soda fountain and a sanitizer bottle for cleaning. */
#soda, #clean { display: flex; }
.soda-btn { border: 0; width: 100%; border-radius: 8px; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.soda-btn .fountain { width: 100%; max-width: 132px; height: auto; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25)); }
.soda-btn .lbl { color: var(--ink); }
.soda-btn.on .lbl { color: var(--good); }
.soda-btn.locked { opacity: 0.55; filter: grayscale(1); }
.soda-btn .lbl, .clean-btn .lbl { font-size: 0.68rem; font-weight: 800; }
.clean-btn {
  border: 0; width: 100%; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--ink);
}
.clean-btn:hover { border-color: rgba(41, 231, 209, 0.45); }
.clean-btn .spray-bottle { width: 44px; height: auto; display: block; }
.clean-btn.pulse .sponge { animation: scrub 0.25s; }
@keyframes scrub { 25% { transform: rotate(-12deg) translateX(-3px); } 75% { transform: rotate(12deg) translateX(3px); } }
.clean-btn small { font-size: 0.64rem; color: var(--ink-2); font-weight: 700; }
.meter { width: 90%; height: 5px; background: rgba(255, 255, 255, 0.1); border-radius: 9px; overflow: hidden; }
.meter i { display: block; height: 100%; box-shadow: 0 0 8px currentColor; }

/* Your hands resting on the counter. */
.hand { position: absolute; bottom: -44px; width: 78px; z-index: 3; pointer-events: none; filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, 0.35)); }
.hand.left { left: calc(var(--pillar) - 34px); transform: rotate(14deg); }
.hand.right { right: calc(var(--pillar) - 34px); transform: scaleX(-1) rotate(14deg); }

/* Pause / closed overlays */
.overlay { position: absolute; z-index: 8; display: grid; place-items: center; padding: 16px; }
.overlay.paused { inset: 0; background: rgba(5, 6, 12, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.overlay.closed { left: 0; right: 0; top: 0; bottom: 0; background: rgba(5, 6, 12, 0.45); }
.overlay-card {
  position: relative; background: rgba(14, 17, 29, 0.92); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 22px;
  box-shadow: var(--shadow); text-align: center; max-width: 420px; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.overlay-card::before { content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px; background: var(--neon-line); }
.overlay-card h2 { margin: 0; }
.overlay-card p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); border: 0; background: none; }
.switch-row i { width: 36px; height: 20px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background 0.2s; flex: none; }
.switch-row i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.switch-row.on i { background: var(--green); box-shadow: 0 0 10px rgba(34, 211, 166, 0.5); }
.switch-row.on i::after { left: 18px; }
.tb-btn.pause.on { background: rgba(255, 61, 90, 0.16); border-color: var(--red); color: #fff; }
.staff-badge { display: inline-flex; }
.staff-mini {
  display: inline-flex; align-items: center; gap: 3px; background: rgba(62, 224, 143, 0.12); border: 1px solid rgba(62, 224, 143, 0.4); border-radius: 999px;
  padding: 1px 8px 1px 1px; font-family: var(--font-b); font-size: 0.68rem; font-weight: 700; color: var(--good);
}
.staff-mini .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); }
.staff-badge.busy .staff-mini .avatar { animation: hop 0.3s; }
button.staff-mini { cursor: pointer; }
button.staff-mini:hover { border-color: var(--good); }
.staff-mini.off { color: var(--ink-2); background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(255, 255, 255, 0.3); }
.staff-mini.off .avatar { filter: grayscale(1); opacity: 0.55; }
@keyframes hop { 50% { transform: translateY(-4px); } }
.hire-chip { border: 1px dashed rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.25); border-radius: 999px; font-size: 0.66rem; font-weight: 700; padding: 2px 8px; color: var(--ink-2); white-space: nowrap; }
.hire-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.cashier-badge { margin-top: auto; align-self: flex-start; }
.cashier-badge:empty { display: none; }

.hint {
  position: absolute; left: 50%; top: 88px; transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  background: rgba(9, 11, 18, 0.9); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 0.84rem; white-space: nowrap;
  border: 1px solid rgba(41, 231, 209, 0.5); box-shadow: 0 0 16px rgba(41, 231, 209, 0.25);
  transition: opacity 0.25s, transform 0.25s; z-index: 5; max-width: 80%; overflow: hidden; text-overflow: ellipsis;
}
.hint.show { opacity: 0.96; transform: translate(-50%, 0); }

/* ---------- side panel ---------- */
.panel { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tabs button {
  border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 7px 2px 6px; font-weight: 600; font-size: 0.74rem;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-2); letter-spacing: 0.3px;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: rgba(255, 61, 90, 0.1); border-color: rgba(255, 61, 90, 0.45); color: #fff; box-shadow: inset 0 -2px 0 var(--red), 0 0 14px rgba(255, 61, 90, 0.15); }
.tabs button.on .ic { color: var(--red-d); filter: drop-shadow(0 0 4px rgba(255, 61, 90, 0.7)); }
.panel-goal { padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.goal-title { font-family: var(--font-h); font-weight: 700; font-size: 0.92rem; margin-bottom: 3px; letter-spacing: 0.3px; }
.goal-title em { color: var(--good); font-style: normal; font-size: 0.8rem; }
.goal-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--ink-2); }
.goal-row b { color: var(--ink); display: flex; align-items: center; gap: 4px; font-family: var(--font-h); }
.bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; margin: 4px 0 5px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--good)); border-radius: 99px; transition: width 0.3s; box-shadow: 0 0 10px rgba(41, 231, 209, 0.6); }
.panel-body { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.note { font-size: 0.84rem; background: rgba(255, 210, 63, 0.07); border: 1px solid rgba(255, 210, 63, 0.25); border-radius: 12px; padding: 8px 10px; }
.note.small { font-size: 0.78rem; }
.card {
  display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
  margin-bottom: 8px; text-align: left; width: 100%; transition: border-color 0.15s;
}
.card:hover { border-color: var(--line-2); }
.card-title { font-family: var(--font-h); font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-title small { color: var(--ink-2); font-weight: 500; font-family: var(--font-b); }
.card-desc { font-size: 0.8rem; color: var(--ink-2); }
.card-meta { font-size: 0.74rem; color: var(--ink-2); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-meta.gold { color: var(--mustard); font-weight: 700; }
.ico { font-size: 1.4rem; width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); }
.ico.big { font-size: 1.8rem; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 10px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.pips i.on { background: var(--cyan); box-shadow: 0 0 6px rgba(41, 231, 209, 0.7); }
.maxed { font-size: 0.72rem; font-weight: 700; color: var(--good); padding: 0 6px; letter-spacing: 0.5px; }
.staff-card .staff-av { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; font-size: 1.5rem; align-self: flex-start; }
.staff-card .staff-av .avatar { width: 100%; height: 100%; }
.staff-card .staff-av.empty { background: rgba(255, 255, 255, 0.03); border-style: dashed; }
.staff-card .switch-row { margin: 4px 0 2px; padding: 0; }
.staff-card.off .staff-av { filter: grayscale(1); opacity: 0.6; }
.stat-row { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; margin: 3px 0; }
.stat-row > span:first-child { width: 78px; font-weight: 600; }
.stat-row .pips { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-card { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; font-size: 0.8rem; }
.mini-card small { display: block; color: var(--ink-2); font-size: 0.68rem; }
.mini-card.owned { border-color: rgba(62, 224, 143, 0.35); background: rgba(62, 224, 143, 0.06); }
.swatch { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 0.9rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.tick { color: var(--good); font-weight: 700; }
.price-row { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; font-size: 0.85rem; }
.price-row input[type=range] { width: 100%; accent-color: var(--red); }
.note-card { flex-direction: column; align-items: stretch; font-size: 0.82rem; gap: 2px; }
.loc-card.active { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 18px rgba(255, 61, 90, 0.25); }
.loc-card.locked { opacity: 0.55; filter: grayscale(0.6); }
.loc-btn { flex: none; }
.here { font-size: 0.7rem; font-weight: 700; color: var(--red-d); white-space: nowrap; letter-spacing: 0.5px; }
.badge { font-size: 0.66rem; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line); }
.badge.ok { background: rgba(62, 224, 143, 0.12); border-color: rgba(62, 224, 143, 0.4); color: var(--good); }
.badge.gold { background: rgba(255, 210, 63, 0.12); border-color: rgba(255, 210, 63, 0.45); color: var(--mustard); font-size: 0.8rem; padding: 3px 10px; }
.champ-card { background: linear-gradient(135deg, rgba(255, 210, 63, 0.14), var(--surface-2)); border-color: rgba(255, 210, 63, 0.35); }
.champ-card.won { box-shadow: 0 0 0 1px var(--mustard), 0 0 18px rgba(255, 210, 63, 0.35); }

.stars { display: inline-flex; letter-spacing: -1px; font-size: 1rem; line-height: 1; }
.star { background: linear-gradient(90deg, var(--mustard) var(--fill), rgba(255, 255, 255, 0.18) var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- modals ---------- */
#modal-root { position: relative; z-index: 50; }
.modal-wrap {
  position: fixed; inset: 0; background: rgba(3, 4, 10, 0.66); display: grid; place-items: center; padding: 16px;
  animation: fadein 0.15s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-wrap.closing { animation: fadeout 0.16s forwards; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
.modal {
  background: linear-gradient(180deg, #171b2d, #10131f); border: 1px solid var(--line-2); border-radius: 20px; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); width: min(560px, 100%); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; position: relative; animation: rise 0.2s ease-out;
}
.modal::before { content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 2px; background: var(--neon-line); z-index: 1; }
.modal.small { width: min(440px, 100%); }
.modal.wide { width: min(820px, 100%); }
@keyframes rise { from { transform: translateY(16px) scale(0.98); } }
.modal-body { padding: 22px 22px 20px; overflow-y: auto; }
.modal-x {
  position: absolute; top: 10px; right: 12px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink);
  width: 34px; height: 34px; border-radius: 10px; font-size: 1.2rem; line-height: 1; z-index: 2;
}
.modal-x:hover { border-color: var(--red); }

.form { display: flex; flex-direction: column; gap: 10px; }
.form label, .creator-controls label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.84rem; }
.form label small { color: var(--ink-2); font-weight: 500; }
.form input, .form select, .creator-controls input, .admin-row input, .select-row select {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-weight: 500; background: #0b0e18; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .creator-controls input:focus, .admin-row input:focus, .select-row select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 61, 90, 0.18);
}
.loc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loc-fields label:first-child { grid-column: 1 / -1; }
.err { color: var(--bad); font-weight: 600; font-size: 0.85rem; min-height: 1em; margin: 0; }
.switch { text-align: center; font-size: 0.9rem; margin-top: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }

.creator { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.creator-preview {
  border-radius: 16px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 85%, rgba(41, 231, 209, 0.22), transparent 55%),
    linear-gradient(rgba(41, 231, 209, 0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(41, 231, 209, 0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    #0b0e18;
}
.creator-preview .avatar { width: 100%; max-width: 190px; height: auto; }
.creator-controls { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ctl > span { display: block; font-weight: 600; font-size: 0.72rem; color: var(--ink-2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1.2px; }
.seg { display: inline-flex; background: #0b0e18; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg.wrap { flex-wrap: wrap; }
.seg button { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 0.82rem; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface-3); color: #fff; border-color: rgba(255, 61, 90, 0.5); box-shadow: 0 0 10px rgba(255, 61, 90, 0.2); }
.wide-seg { display: flex; width: 100%; flex-wrap: wrap; margin-bottom: 8px; }
.wide-seg button { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.small-seg { margin-bottom: 10px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--line-2); }
.sw.on { box-shadow: 0 0 0 2px var(--red), 0 0 12px rgba(255, 61, 90, 0.6); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.item { position: relative; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.item:hover { border-color: var(--line-2); }
.item.equipped { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 14px rgba(255, 61, 90, 0.3); }
.item.locked .item-prev { opacity: 0.85; }
.item.member { background: linear-gradient(180deg, rgba(255, 210, 63, 0.1), var(--surface-2)); }
.item-prev { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; }
.item-prev .avatar { width: 100%; height: 100%; }
.cart-sw { width: 56px; height: 34px; border-radius: 6px; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.25); }
.item-name { font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.15; }
.item-price { font-size: 0.68rem; font-weight: 700; color: var(--good); font-family: var(--font-h); }
.item.locked .item-price { color: var(--mustard); }
.item.soon .item-prev { opacity: 0.6; }
.soon-tag {
  position: absolute; top: 4px; right: 4px; background: var(--mustard); color: #1a1200; font-family: var(--font-h); font-size: 0.54rem; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.6px;
}

.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.profile-av { width: 76px; height: 76px; border-radius: 18px; background: var(--surface-3); border: 1px solid var(--line-2); flex: none; }
.profile-head h2 { margin: 0; }
.profile-look { position: relative; border: 0; padding: 0; background: none; border-radius: 18px; flex: none; }
.profile-look span {
  position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 0.8rem;
}
.profile-look:hover .profile-av { border-color: var(--red); box-shadow: 0 0 14px rgba(255, 61, 90, 0.35); }
.wardrobe-btn { margin-top: 6px; }
.gold-name { color: var(--mustard); text-shadow: 0 0 10px rgba(255, 210, 63, 0.45); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.stat-grid > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.stat-grid small { color: var(--ink-2); font-weight: 600; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-grid b { font-family: var(--font-h); font-size: 1.05rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.perks { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }

.lb { display: flex; flex-direction: column; gap: 4px; max-height: 56vh; overflow-y: auto; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.lb-row.me { border-color: var(--mustard); box-shadow: 0 0 14px rgba(255, 210, 63, 0.2); }
.lb-row.top1 { background: linear-gradient(90deg, rgba(255, 210, 63, 0.16), var(--surface-2)); }
.rank { width: 38px; font-family: var(--font-h); font-weight: 700; text-align: center; font-size: 1rem; }
.lb-av { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; background: var(--surface-3); flex: none; }
.lb-av .avatar { width: 100%; height: 100%; }
.lb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-name small { color: var(--ink-2); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-val { font-family: var(--font-h); font-weight: 700; color: var(--good); font-size: 1.05rem; text-shadow: 0 0 8px rgba(62, 224, 143, 0.5); }
.lb-sep { text-align: center; color: var(--ink-2); }

.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-right: 36px; flex-wrap: wrap; }
.wallet { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-family: var(--font-h); }
.test-banner { background: rgba(255, 210, 63, 0.08); border: 1px dashed rgba(255, 210, 63, 0.6); border-radius: 12px; padding: 8px 12px; font-size: 0.82rem; font-weight: 600; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pack {
  position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 210, 63, 0.08), var(--surface-2)); border-radius: 16px;
  padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.pack:hover { transform: translateY(-3px); border-color: rgba(255, 210, 63, 0.5); box-shadow: 0 0 22px rgba(255, 210, 63, 0.2); }
.pack-icon { font-size: 2rem; }
.pack-icon .gb-icon { width: 54px; height: 40px; filter: drop-shadow(0 0 10px rgba(255, 210, 63, 0.5)); }
.pack-name { font-family: var(--font-h); }
.pack-amt { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; color: var(--mustard); }
.pack small { color: var(--ink-2); font-size: 0.72rem; text-align: center; }
.pack .btn { margin-top: 6px; pointer-events: none; }
.pack-tag { position: absolute; top: -9px; right: 10px; background: var(--red); color: #fff; font-family: var(--font-h); font-size: 0.66rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; box-shadow: 0 0 12px rgba(255, 61, 90, 0.6); }
.pack.preview { cursor: default; }
.pack.preview:hover { transform: none; border-color: var(--line); box-shadow: none; }
.btn.soon { background: rgba(255, 255, 255, 0.04); color: var(--ink-2); border-color: var(--line); box-shadow: none; cursor: default; font-size: 0.78rem; }
.btn.soon.big { width: 100%; }
.launch-banner {
  position: relative; display: flex; flex-direction: column; gap: 2px; margin: 10px 0; padding: 10px 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 61, 90, 0.16), rgba(139, 92, 246, 0.16)); border: 1px solid var(--line-2); font-size: 0.82rem; line-height: 1.35;
}
.launch-banner b { color: var(--mustard); font-family: var(--font-h); font-size: 1rem; text-shadow: 0 0 10px rgba(255, 210, 63, 0.5); }
.club { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.club-hero {
  text-align: center; color: #fff; border-radius: 16px; padding: 16px; border: 1px solid rgba(255, 210, 63, 0.35);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 210, 63, 0.25), transparent 70%), linear-gradient(135deg, #1b1430, #121626);
}
.club-hero h3 { color: var(--mustard); margin: 0; font-size: 1.4rem; text-transform: none; letter-spacing: 0.5px; text-shadow: 0 0 14px rgba(255, 210, 63, 0.5); }
.club-hero p { margin: 0; opacity: 0.85; }
.crown { font-size: 2.2rem; }
.style-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.checkout-line { display: flex; justify-content: space-between; font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }

.brief-head { display: flex; flex-direction: column; gap: 2px; }
.brief-day { font-family: var(--font-h); font-weight: 700; color: var(--red-d); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
.forecast { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.forecast.special { border-color: rgba(255, 210, 63, 0.35); background: rgba(255, 210, 63, 0.06); }
.big-ico { font-size: 2rem; }
.champ-banner { background: rgba(255, 210, 63, 0.1); border: 1px solid rgba(255, 210, 63, 0.5); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font-size: 0.9rem; box-shadow: 0 0 18px rgba(255, 210, 63, 0.15); }
.champ-banner.won { animation: pulse 1s 3; }
.goal-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 600; }
.goal-box.ok { background: rgba(62, 224, 143, 0.1); border-color: rgba(62, 224, 143, 0.4); color: var(--good); }
.goal-mini { font-size: 0.85rem; margin-top: 4px; }
.big-money { font-family: var(--font-h); font-weight: 700; font-size: 2.6rem; color: var(--good); text-align: center; margin: 10px 0; text-shadow: 0 0 18px rgba(62, 224, 143, 0.6); }
.trophy { font-size: 4.5rem; animation: bob 1.5s infinite; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card.choice { flex-direction: column; align-items: flex-start; cursor: pointer; }
.card.choice:hover { border-color: var(--red); }
.card.choice span { font-size: 0.85rem; color: var(--ink-2); }

.gift-head { text-align: center; }
.gift-ico { font-size: 3rem; display: block; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(255, 210, 63, 0.5)); }
.gift-head h2 { margin: 6px 0 0; }
.gift-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.gift-row { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(62, 224, 143, 0.08); border: 1px solid rgba(62, 224, 143, 0.35); }
.gift-row b { font-family: var(--font-h); font-size: 1.4rem; color: var(--good); text-shadow: 0 0 10px rgba(62, 224, 143, 0.5); }
.gift-row span { color: var(--ink-2); font-size: 0.86rem; text-align: center; }

.keys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px 22px; }
.keys-grid h3 { margin-bottom: 0.4em; }
.key-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 0.88rem; }
kbd.key {
  flex: none; min-width: 52px; text-align: center; font-size: 0.78rem; padding: 3px 8px; margin: 0; opacity: 1; border-radius: 6px;
  background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); color: var(--ink);
}
.plate kbd { color: inherit; border-color: currentColor; opacity: 0.75; font-size: 0.55rem; padding: 0 3px; }
.money-pile kbd { margin-top: 2px; }
.keys-link { margin-top: 4px; font-size: 0.82rem; }
@media (hover: none) { .keys-link { display: none; } }

/* Item shop */
.coll-seg button { font-size: 0.8rem; }
.coll-blurb { text-align: center; color: var(--ink-2); font-size: 0.84rem; margin: 2px 0 6px; }
.slot-head { margin: 0.9em 0 0.4em; }
.shop-items { max-height: none; overflow: visible; }
.item-goal { font-size: 0.6rem; color: var(--ink-2); text-align: center; line-height: 1.15; }
.item.coll-prestige { background: linear-gradient(180deg, rgba(185, 242, 255, 0.08), var(--surface-2)); }
.item.coll-prestige .item-price { color: #b9f2ff; }
.item.coll-goal.locked .item-prev { filter: grayscale(0.85) brightness(0.8); }
.item.coll-goal.owned { border-color: rgba(62, 224, 143, 0.45); }
.item.coll-halloween { background: linear-gradient(180deg, rgba(255, 122, 26, 0.1), var(--surface-2)); }
.jet-flame { animation: jetflame 0.12s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes jetflame { to { transform: scaleY(0.75); } }

/* Friends & profiles */
.tb-friends { position: relative; }
.tb-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 0.66rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 10px var(--red); border: 2px solid var(--bg);
}
.lb-row[data-player], .pl-row, .feed-row:not(.static) { cursor: pointer; }
.lb-row[data-player]:hover { border-color: var(--line-2); }
.pl-list, .feed { display: flex; flex-direction: column; gap: 6px; }
.pl-row, .feed-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.pl-row:hover, .feed-row:not(.static):hover { border-color: var(--line-2); }
.pl-row .btn { flex: none; min-width: 92px; }
.feed-row.new { border-color: rgba(255, 61, 90, 0.55); box-shadow: 0 0 12px rgba(255, 61, 90, 0.18); }
.feed-text { flex: 1; min-width: 0; font-size: 0.88rem; line-height: 1.35; }
.feed-text small { display: block; color: var(--ink-2); font-size: 0.72rem; }
.empty-social { text-align: center; padding: 18px 8px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.find-input { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: #0b0e18; color: var(--ink); margin-bottom: 10px; }
.find-input:focus { outline: none; border-color: var(--red); }
.social-body h3 { margin-top: 1em; }
.pp-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.pp-av {
  width: 140px; flex: none; border-radius: 16px; border: 1px solid var(--line); padding: 6px;
  background: radial-gradient(ellipse at 50% 85%, rgba(41, 231, 209, 0.2), transparent 60%), #0b0e18;
}
.pp-av .avatar { width: 100%; height: auto; display: block; }
.pp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pp-info h2 { margin: 0; }
.pp-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-counts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-2); }
.pp-counts b { color: var(--ink); font-family: var(--font-h); }
.link-plain { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.link-plain:hover { color: var(--ink); text-decoration: underline; }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.pp-stands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pp-stand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); opacity: 0.4; filter: grayscale(1); text-align: center; }
.pp-stand span { font-size: 1.5rem; }
.pp-stand small { font-size: 0.66rem; color: var(--ink-2); line-height: 1.15; }
.pp-stand.owned { opacity: 1; filter: none; }
.pp-stand.done { border-color: rgba(62, 224, 143, 0.5); box-shadow: 0 0 12px rgba(62, 224, 143, 0.15); }
.pp-stand i { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 0.9rem; }
.pp-gear { display: flex; gap: 6px; flex-wrap: wrap; }
.gear-chip { font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); }
.gear-chip.coll-prestige { border-color: rgba(185, 242, 255, 0.5); color: #b9f2ff; }
.gear-chip.coll-goal { border-color: rgba(62, 224, 143, 0.45); color: var(--good); }
.gear-chip.coll-halloween { border-color: rgba(255, 122, 26, 0.5); color: #ffb36b; }
.gear-chip.coll-club { border-color: rgba(255, 210, 63, 0.5); color: var(--mustard); }
@media (max-width: 520px) {
  .pp-head { flex-direction: column; align-items: center; text-align: center; }
  .pp-av { width: 120px; }
  .pp-badges, .pp-counts, .pp-actions { justify-content: center; }
  .pp-stands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-row .btn { min-width: 0; }
}
@media (max-width: 420px) { .tb-friends { display: none; } } /* Friends (with its badge) is in the main menu */

/* ---------- toasts & floaties ---------- */
.toasts { position: fixed; top: calc(var(--topbar-h) + 8px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(560px, calc(100% - 24px)); }
.toast {
  background: rgba(14, 17, 29, 0.94); color: var(--ink); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 12px; font-weight: 600; font-size: 0.88rem;
  box-shadow: var(--shadow); animation: drop 0.25s ease-out; transition: opacity 0.3s, transform 0.3s; text-align: center;
}
.toast.good { border-color: rgba(62, 224, 143, 0.6); box-shadow: 0 0 18px rgba(62, 224, 143, 0.25), var(--shadow); }
.toast.bad { border-color: rgba(255, 77, 109, 0.65); box-shadow: 0 0 18px rgba(255, 77, 109, 0.25), var(--shadow); }
.toast.event { border-color: rgba(255, 210, 63, 0.65); box-shadow: 0 0 18px rgba(255, 210, 63, 0.25), var(--shadow); }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
.floaty {
  position: fixed; z-index: 40; pointer-events: none; transform: translate(-50%, 0); font-family: var(--font-h); font-size: 1.05rem; font-weight: 700;
  animation: floatup 1.1s ease-out forwards; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.7);
}
.floaty.good { color: var(--good); }
.floaty.bad { color: var(--bad); }
.floaty.cash { color: #5dffa5; font-size: 1.3rem; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 12px rgba(62, 224, 143, 0.8); }
@keyframes floatup { to { transform: translate(-50%, -50px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --panel-w: 320px; }
  .kitchen { grid-template-columns: 1.25fr 1fr 1.6fr; }
  .st-fry { grid-column: span 2; }
  .tb-logo b, .tb-beta { display: none; }
  /* The kitchen wraps to two rows here, so give the street a fixed share and let the kitchen scroll below it. */
  .scene-root { overflow-y: auto; }
  .scene { min-height: auto; }
  .window { flex: none; height: clamp(290px, 44dvh, 400px); }
}

@media (max-width: 900px) {
  :root { --topbar-h: 54px; }
  .tb-btn.panel-toggle { display: grid; }
  .panel-wrap {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: min(78dvh, 640px); z-index: 30; border-radius: 22px 22px 0 0;
    border: 1px solid var(--line-2); border-bottom: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55); transform: translateY(105%); transition: transform 0.25s ease;
  }
  body.panel-open .panel-wrap { transform: none; }
  .panel-close { display: block; position: absolute; top: 8px; right: 10px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink); width: 32px; height: 32px; border-radius: 10px; font-size: 1.2rem; z-index: 2; }
  .tabs { padding-right: 48px; }
  .tb-clock { display: none; }
  .tb-chip { display: none; }
  .tb-loc small { display: none; }
  .tb-btn[data-tb="styles"] { display: none; }
  .kitchen { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 6px; transform: rotateX(6deg); }
  .counter { padding: 6px 4px 0; }
  .hand { display: none; }
  .menu-board, .open-sign { display: none; }
  .st-prep { grid-column: 1 / -1; order: -1; }
  .st-fry { grid-column: auto; }
  .st-warmer { order: 0; }
  .grill-slot { height: 48px; }
  .creator { grid-template-columns: 1fr; }
  .creator-preview .avatar { max-width: 130px; }
}

@media (max-width: 900px) {
  .scene-root { overflow-y: auto; }
  .scene { min-height: auto; }
  .window { flex: none; height: clamp(260px, 38dvh, 340px); }
  .scene { --pillar: 14px; }
  .awning-in { height: 38px; }
  .awning-sign { top: 6px; font-size: 0.72rem; }
  .pillar::after { top: 38px; }
  .chips { top: 44px; }
  .queue { top: 70px; bottom: 8px; gap: 4px; }
  .cust-body { flex-basis: 120px; }
  .ledge { height: 22px; }
  .pass { bottom: 2px; gap: 4px; }
  .pass-item { width: 54px; height: 30px; }
  .pass:not(.has) { display: none; }
  .chip.streak { display: block; }
  .money-pile { margin-bottom: 12px; }
  .bubble { padding: 3px 4px 4px; border-radius: 10px; }
  .hint { top: 74px; font-size: 0.74rem; padding: 5px 10px; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 16px); }
  .prep { min-height: 76px; }
  .hotdog.big { width: min(55%, 170px); }
  .warmer { min-height: 70px; }
}

@media (max-width: 520px) {
  .tb-logo { padding: 2px; } /* just the 🌭: it opens the main menu */
  .tb-trophy, .tb-music { display: none; } /* in the main menu (Leaderboards; Settings → Jukebox) so the bar fits a phone */
  .tb-loc .loc-name { display: none; }
  .tb-buns { padding: 3px 4px 3px 8px; }
  .tb-me { width: 38px; height: 38px; }
  .tb-loc { padding: 6px 8px; font-size: 0.85rem; }
  .tb-cash { font-size: 1.02rem; padding: 1px 8px; }
  .tb-rating { display: none; }
  .tb-btn { width: 36px; height: 36px; }
  .topbar { padding: 0 8px; gap: 4px; }
  .tchip { display: none; }
  .tchips .tchip:nth-child(-n+3) { display: inline; }
  .loc-fields { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 18px 16px; }
  .grid2 { grid-template-columns: 1fr; }
}

/* Reduced motion: follows the device setting unless the player overrides it in Settings. */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

/* ---------- admin tools ---------- */
.admin-box { margin-top: 14px; border: 1px dashed rgba(255, 210, 63, 0.5); border-radius: 14px; padding: 4px 12px 10px; background: rgba(255, 210, 63, 0.04); display: flex; flex-direction: column; gap: 8px; }
.admin-box h3 { margin-top: 0.6em; color: var(--mustard); }
.admin-row { display: flex; align-items: flex-end; gap: 8px; }
.admin-row label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.85rem; }
.admin-row input { padding: 8px 10px; }
.store-switch { border-top: 1px solid var(--line); padding-top: 8px; }
.store-switch .fine { margin: 2px 0 0 24px; }
.row.wrap { flex-wrap: wrap; }

/* ---------- living street: sky, weather, people, lighting ---------- */
.window::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.28); }
.sun {
  position: absolute; top: 58px; right: 16%; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0 35%, #ffd166 36% 52%, rgba(255, 209, 102, 0.35) 53%, transparent 70%);
  transition: background 2s, transform 2s;
}
.w-sunny .sun::after {
  content: ''; position: absolute; inset: -60px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 236, 160, 0.28) 0 6deg, transparent 6deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: spin 40s linear infinite;
}
.dusk .sun { transform: translateY(70px); background: radial-gradient(circle, #ffe0b0 0 35%, #ff8c42 36% 52%, rgba(255, 120, 60, 0.35) 53%, transparent 70%); }
.night .sun { transform: translate(-40vw, -10px) scale(0.7); background: radial-gradient(circle, #f8f9fa 0 45%, rgba(248, 249, 250, 0.25) 46%, transparent 70%); }
.night .sun::after { display: none; }
.w-rain .sun, .w-cloudy .sun { opacity: 0.35; }
@keyframes spin { to { transform: rotate(360deg); } }

.clouds { position: absolute; inset: 0 0 50% 0; pointer-events: none; container-type: inline-size; }
.cloud {
  position: absolute; width: 130px; height: 38px; border-radius: 40px; background: #fff; opacity: 0.9;
  animation: drift var(--d, 90s) linear infinite; animation-delay: var(--dl, 0s); left: -160px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.05);
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 60px; height: 60px; top: -30px; left: 18px; }
.cloud::after { width: 46px; height: 46px; top: -20px; left: 64px; }
.cloud.c1 { top: 70px; --d: 95s; --dl: -20s; }
.cloud.c2 { top: 110px; --d: 130s; --dl: -75s; transform: scale(0.7); opacity: 0.75; }
.cloud.c3 { top: 85px; --d: 110s; --dl: -50s; transform: scale(0.85); }
.w-rain .cloud, .w-cloudy .cloud { background: #ced4da; }
.night .cloud { background: #6c6f8a; opacity: 0.5; }
@keyframes drift { to { translate: calc(105cqw + 160px) 0; } }

.sidewalk {
  position: absolute; left: 0; right: 0; top: 62%; height: 9%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 60px), linear-gradient(180deg, #d5d8dc, #b9bec4);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
.loc-park .sidewalk { background: linear-gradient(180deg, #e9d8a6, #d4b483); }
.loc-beach .sidewalk { background: repeating-linear-gradient(90deg, #a47148 0 26px, #8d5f3c 26px 28px); }
.walkers { position: absolute; left: 0; right: 0; top: 47%; height: 22%; pointer-events: none; container-type: inline-size; }
.walker { position: absolute; bottom: var(--lane); height: 100%; aspect-ratio: 2 / 3; animation: stroll var(--dur) linear infinite; animation-delay: var(--delay); left: -60px; }
.walker.rtl { animation-name: stroll-back; }
.walker-in { height: 100%; animation: step 0.55s ease-in-out infinite; }
.walker-in .avatar { height: 100%; width: auto; }
@keyframes stroll { from { translate: 0 0; } to { translate: calc(100cqw + 80px) 0; } }
@keyframes stroll-back { from { translate: calc(100cqw + 80px) 0; } to { translate: 0 0; } }
@keyframes step { 50% { transform: translateY(-3px) rotate(1.5deg); } }

.tint { position: absolute; inset: 0; pointer-events: none; transition: background 3s linear; mix-blend-mode: multiply; }
.night .win { fill: #ffd166; opacity: 0.95; }
.dusk .win { opacity: 0.8; }
.lamp { transition: filter 2s; }
.night .lamp, .dusk .lamp { fill: #ffe066; filter: drop-shadow(0 0 6px #ffd166) drop-shadow(0 0 14px #ffb703); }
.waves { animation: waves 4s ease-in-out infinite alternate; }
@keyframes waves { to { transform: translateX(-30px); } }
.spray { animation: spray 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes spray { to { transform: scaleY(1.15); opacity: 0.75; } }
.flag { animation: flap 0.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes flap { to { transform: scaleX(0.85) skewY(4deg); } }

.weather { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.w-rain .weather { overflow: hidden; background: linear-gradient(rgba(40, 60, 90, 0.22), rgba(40, 60, 90, 0.1)); }
.w-rain .weather::before, .w-rain .weather::after { content: ''; position: absolute; left: 0; right: -40px; bottom: 0; }
.w-rain .weather::before {
  top: -180px; background: repeating-linear-gradient(103deg, transparent 0 22px, rgba(220, 235, 255, 0.55) 22px 23px, transparent 23px 47px) 0 0 / 120px 180px;
  animation: rain 0.45s linear infinite;
}
.w-rain .weather::after {
  top: -220px; background: repeating-linear-gradient(97deg, transparent 0 31px, rgba(220, 235, 255, 0.35) 31px 32px, transparent 32px 70px) 0 0 / 160px 220px;
  animation: rain-far 0.45s linear infinite;
}
@keyframes rain { to { transform: translate(-40px, 180px); } }
@keyframes rain-far { to { transform: translate(-40px, 220px); } }
.w-heat .weather { background: linear-gradient(180deg, rgba(255, 140, 0, 0.18), transparent 60%); animation: shimmer 2.5s ease-in-out infinite alternate; }
@keyframes shimmer { to { opacity: 0.55; } }
.w-cloudy .weather { background: linear-gradient(rgba(110, 120, 140, 0.15), transparent); }
.bunting { position: absolute; top: 44px; left: 0; right: 0; height: 34px; z-index: 3; pointer-events: none; }
.bunting svg { width: 100%; height: 100%; display: block; }

/* ---------- characters: breathing & blinking ---------- */
.avatar .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.cust:nth-child(2n) .avatar .eyes { animation-delay: -1.9s; animation-duration: 6.3s; }
.cust:nth-child(3n) .avatar .eyes { animation-delay: -3.4s; animation-duration: 4.8s; }
.cust-body > .avatar { transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
.cust:nth-child(2n) .cust-body > .avatar { animation-duration: 3.9s; }
@keyframes breathe { 50% { transform: scaleY(1.018) translateY(-1px); } }
/* Tiny figures (passers-by, staff badges) skip blinking and cosmetic effects: too small to see, but each one repaints its SVG. */
.walker-in .avatar *, .staff-mini .avatar * { animation: none !important; }

/* While the scene is covered (paused, main menu, a modal), freeze its animations so nothing repaints underneath. */
body.scene-still .scene-root *, body.scene-still .scene-root *::before, body.scene-still .scene-root *::after { animation-play-state: paused !important; }
body.in-menu #app { visibility: hidden; }


@media (max-width: 900px) {
  .walkers { top: 50%; }
  .sun { width: 50px; height: 50px; top: 48px; }
  .bunting { top: 38px; height: 24px; }
}
body.reduce-motion .walker, body.reduce-motion .cloud { animation: none !important; left: var(--x); }
.cloud.c1 { --x: 12%; } .cloud.c2 { --x: 48%; } .cloud.c3 { --x: 70%; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.select-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; margin-top: 6px; }
.select-row select { width: auto; padding: 6px 10px; }

/* ---------- phones: customers stay in view while you cook ---------- */
/* Keyboard hints mean nothing on touch screens. */
@media (hover: none) { kbd { display: none; } }
.tb-mid > *, .tb-right > * { flex: none; }

@media (max-width: 900px) {
  /* The street sticks to the top; the kitchen scrolls beneath it if it doesn't fit. */
  .window { position: sticky; top: 0; z-index: 6; height: clamp(220px, 31dvh, 310px); }
  .tb-clock { display: flex; font-size: 0; gap: 0; } /* day-progress ring only */
  .counter { padding: 4px 4px 0; perspective: none; }
  .counter::after { height: 8px; margin: 0 -4px; }
  .kitchen { transform: none; gap: 5px; padding: 6px 5px 8px; border-radius: 14px 14px 0 0; }
  .station { padding: 4px 5px 6px; gap: 4px; border-radius: 10px; }
  .st-head { min-height: 20px; }
  .plate { font-size: 0.6rem; padding: 1px 6px; letter-spacing: 1.2px; }
  .knobs { display: none; }
  .grill-slot { height: 42px; }
  .grill-slot .lbl { font-size: 0.55rem; }
  .prep { min-height: 0; padding: 4px 18px 4px 8px; }
  .prep-empty .hotdog { width: 32%; }
  .boat { width: min(42%, 160px); }
  .boat .hotdog.big { width: 100%; }
  .prep-foot { font-size: 0.64rem; }
  .toppings { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; }
  .top-btn { padding: 3px 1px 2px; font-size: 0.56rem; }
  .top-btn .cond { height: 16px; }
  .warmer-unit { padding: 11px 4px 4px; }
  .warmer { min-height: 0; padding: 4px; gap: 3px; }
  .fry-row { align-items: stretch; }
  .vat { height: 58px; }
  .vat .oil { height: 28px; }
  .vat .oil-top, .vat .bubbles { height: 19px; }
  .fryer.empty .vat .basket { transform: translate(-50%, -16px); }
  .fryer-panel { padding: 1px 4px; }
  .fries-holder { min-height: 0; padding: 8px 2px 3px; }
  .soda-btn .fountain { max-width: 80px; }
  .clean-btn { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1px 6px; padding: 3px 6px; text-align: left; }
  .clean-btn .sponge { grid-row: span 3; }
  .clean-btn .spray-bottle { width: 24px; }
  .clean-btn .meter { width: 100%; }
  .stock-line { font-size: 0.62rem; }
  .mini-btn { padding: 5px 9px; }
  .hire-chip { padding: 4px 8px; }
}

@media (max-width: 420px) {
  .tb-loc { display: none; } /* stands are one tap away in the Manage panel */
  .tb-btn { width: 34px; height: 34px; }
  .tb-me { width: 36px; height: 36px; }
  .tb-mid, .tb-right { gap: 5px; }
  .tb-buns .plus { display: none; }
  .tb-buns { padding: 3px 8px; }
}

/* Phones held sideways: street on the left, kitchen on the right. */
@media (max-width: 950px) and (orientation: landscape) and (max-height: 500px) {
  :root { --topbar-h: 48px; }
  .topbar { height: var(--topbar-h); }
  .scene-root { overflow: hidden; }
  .scene { flex-direction: row; min-height: 0; }
  .window { position: relative; flex: 0 0 44%; height: auto; }
  .counter { flex: 1; min-width: 0; overflow-y: auto; padding: 4px; }
  .counter::after { display: none; }
  .kitchen { border-radius: 12px; }
  .awning-in { height: 34px; }
  .pillar::after { top: 34px; }
  .chips { top: 40px; }
  .queue { top: 64px; }
  .cust-body { flex-basis: 120px; }
  .bubble-food .hotdog { width: 56%; }
}

/* Phone pop-ups: tabs wrap into a grid, cards go two-up, and action rows stack with the main action on top. */
@media (max-width: 520px) {
  .wide-seg button { flex: 1 1 calc(50% - 3px); }
  .pack-grid, .style-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack { padding: 14px 8px 10px; }
  .modal-body .row.between { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .modal-body .row.between > .btn { width: 100%; }
  .modal-body .row.between.small { flex-direction: row; }
  .modal { max-height: calc(100dvh - 20px); }
  .modal-wrap { padding: 10px; }
}

/* ---------- 🎃 Hallo-Weenie event (October) ---------- */
.scene.ev-halloween { --led: #ff7a1a; }
.ev-halloween .spooky-sky {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(180deg, rgba(88, 40, 140, 0.45), rgba(255, 120, 40, 0.2) 55%, transparent 75%);
}
.ev-halloween .kitchen {
  background:
    linear-gradient(rgba(255, 122, 26, 0.06) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(255, 122, 26, 0.06) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, #2a2238, #120f1c);
}
.ev-halloween .plate { color: #ffb36b; border-color: rgba(255, 140, 50, 0.45); text-shadow: 0 0 8px rgba(255, 140, 50, 0.7); }
.ev-halloween .plate::before { background: #ff8c32; box-shadow: 0 0 6px #ff8c32; }
.ev-halloween .menu-board b::after { content: ' 🎃'; }

/* Bats flap across the sky. */
.bats { position: absolute; inset: 0 0 45% 0; pointer-events: none; overflow: hidden; container-type: inline-size; }
.bats .bat { position: absolute; width: 34px; left: -50px; animation: batfly 14s linear infinite, flap 0.25s ease-in-out infinite alternate; }
.bats .bat:nth-child(1) { top: 26%; animation-delay: -2s, 0s; }
.bats .bat:nth-child(2) { top: 40%; width: 24px; animation-duration: 19s, 0.2s; animation-delay: -9s, -0.1s; }
.bats .bat:nth-child(3) { top: 18%; width: 28px; animation-duration: 16s, 0.3s; animation-delay: -13s, -0.05s; }
.bats .bat:nth-child(4) { top: 33%; width: 20px; animation-duration: 22s, 0.22s; animation-delay: -5s, -0.15s; }
@keyframes batfly { 0% { translate: 0 0; } 25% { translate: calc(25cqw + 25px) -14px; } 50% { translate: calc(50cqw + 50px) 8px; } 75% { translate: calc(75cqw + 75px) -6px; } 100% { translate: calc(100cqw + 100px) 0; } }
@keyframes flap { to { scale: 1 0.55; } }
body.reduce-motion .bats .bat { animation: none !important; left: 20%; }
body.reduce-motion .bats .bat:nth-child(2) { left: 62%; }
body.reduce-motion .bats .bat:nth-child(3) { left: 78%; }
body.reduce-motion .bats .bat:nth-child(4) { left: 40%; }

/* Cobwebs in the window corners and glowing jack-o'-lanterns on the counter. */
.cobweb { position: absolute; z-index: 4; width: 64px; top: 46px; pointer-events: none; }
.cobweb.web-left { left: var(--pillar); }
.cobweb.web-right { right: var(--pillar); transform: scaleX(-1); }
.jacks { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; pointer-events: none; }
.jack { position: absolute; bottom: 0; width: 52px; filter: drop-shadow(0 0 12px rgba(255, 140, 30, 0.75)); }
.jack.jack-left { left: calc(var(--pillar) + 52px); }
.jack.jack-right { right: calc(var(--pillar) + 52px); width: 42px; }
.jack-face { animation: candle 1.8s ease-in-out infinite alternate; }
@keyframes candle { 0%, 40% { fill: #ffd43b; } 55% { fill: #ffb703; } 70%, 100% { fill: #fff3bf; } }
@media (max-width: 900px) {
  .cobweb { width: 42px; top: 38px; }
  .jack { width: 34px; }
  .jack.jack-right { width: 28px; }
  .jacks { bottom: 6px; }
  .jack.jack-left { left: calc(var(--pillar) + 6px); }
  .jack.jack-right { right: calc(var(--pillar) + 6px); }
}

/* Title screen: orange-and-purple grid, bats and a jack-o'-lantern next to the logo. */
.title-screen.ev-halloween {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 122, 26, 0.3), transparent 55%),
    radial-gradient(ellipse at 85% 95%, rgba(131, 56, 236, 0.22), transparent 50%),
    linear-gradient(180deg, #08060e 0%, #1a0c22 58%, #08060e 100%);
}
.title-screen.ev-halloween::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 122, 26, 0.4) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(131, 56, 236, 0.45) 0 1px, transparent 1px 64px);
}
.title-screen.ev-halloween::after { background: linear-gradient(90deg, transparent, #ff7a1a 25%, #8338ec 75%, transparent); box-shadow: 0 0 24px 4px rgba(255, 122, 26, 0.45); }
.title-bats { position: fixed; inset: 0 0 55% 0; pointer-events: none; overflow: hidden; container-type: inline-size; }
.title-bats .bat { position: absolute; width: 46px; left: -60px; animation: batfly 12s linear infinite, flap 0.25s ease-in-out infinite alternate; }
.title-bats .bat:nth-child(1) { top: 20%; }
.title-bats .bat:nth-child(2) { top: 45%; width: 32px; animation-duration: 17s, 0.2s; animation-delay: -7s, 0s; }
.title-bats .bat:nth-child(3) { top: 10%; width: 38px; animation-duration: 15s, 0.3s; animation-delay: -11s, 0s; }
.title-bats .bat path { fill: #0a0610; }
.logo-dog { position: relative; }
.logo-jack { position: absolute; right: -14%; bottom: -8%; width: 34%; filter: drop-shadow(0 0 14px rgba(255, 140, 30, 0.8)); }
.event-badge {
  display: flex; flex-direction: column; gap: 1px; margin: 12px auto 0; padding: 6px 12px; border-radius: 10px; max-width: 340px;
  background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.5); color: #ffd8b0; font-size: 0.82rem;
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.25);
}
.event-badge b { font-family: var(--font-h); color: #ff9a3c; letter-spacing: 0.5px; text-shadow: 0 0 8px rgba(255, 122, 26, 0.6); }
.soon-tag.limited { background: #ff7a1a; color: #1a0c00; }
.item-tags { position: absolute; top: 4px; right: 4px; left: 4px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; pointer-events: none; }
.item-tags .soon-tag { position: static; }

/* ---------- levels ---------- */
.lv-badge {
  display: inline-grid; place-items: center; flex: none; min-width: 26px; height: 26px; padding: 0 4px;
  font-family: var(--font-h); font-weight: 700; font-size: 0.82rem; color: #0b0e18;
  background: linear-gradient(135deg, var(--cyan), #7af5e6); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  filter: drop-shadow(0 0 6px rgba(41, 231, 209, 0.55));
}
.lv-badge.sm { min-width: 22px; height: 20px; font-size: 0.7rem; margin-right: 6px; vertical-align: middle; }
.lv-badge.xl { min-width: 84px; height: 74px; font-size: 2.1rem; }
.lv-bar { display: block; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--mustard)); box-shadow: 0 0 8px var(--cyan); border-radius: inherit; }
.lv-bar.big { height: 10px; margin: 8px 0 6px; }
.tb-level { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 2px 4px; cursor: pointer; }
.tb-level .lv-bar { width: 34px; }
.tb-level:hover .lv-badge { filter: drop-shadow(0 0 10px rgba(41, 231, 209, 0.9)); }
.lv-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.lv-hero-txt { flex: 1; min-width: 0; }
.lv-hero-txt small { color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; }
.lv-hero-txt h2 { margin: 0; }
.xp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; }
.xp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.xp-row span { display: flex; flex-direction: column; font-weight: 600; }
.xp-row small { color: var(--ink-2); font-weight: 500; font-size: 0.72rem; }
.xp-row b { font-family: var(--font-h); color: var(--cyan); white-space: nowrap; }
.lv-titles { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-title { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 600; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); opacity: 0.5; }
.lv-title.got { opacity: 1; border-color: rgba(41, 231, 209, 0.45); }
.lv-title:not(.got) .lv-badge { filter: grayscale(1); }
.badge.lv { display: inline-flex; align-items: center; font-size: 0.78rem; padding: 2px 9px 2px 4px; color: var(--cyan); border-color: rgba(41, 231, 209, 0.4); }
.badge.lv .lv-badge.sm { margin-right: 5px; }
.lb-name > span { display: flex; align-items: center; min-width: 0; }
.lb-val small { display: block; font-size: 0.68rem; color: var(--ink-2); text-shadow: none; text-align: right; font-weight: 600; }
.stat-btn { background: var(--surface-2); border: 1px solid rgba(41, 231, 209, 0.4); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; text-align: left; color: inherit; cursor: pointer; }
.stat-btn:hover { border-color: var(--cyan); box-shadow: 0 0 10px rgba(41, 231, 209, 0.3); }
.item.coll-level .item-price { color: var(--cyan); }
@media (max-width: 600px) {
  .lv-hero { gap: 12px; }
  .lv-badge.xl { min-width: 64px; height: 56px; font-size: 1.6rem; }
  .tb-level .lv-bar { width: 26px; }
  .tb-level .lv-badge { min-width: 22px; height: 22px; font-size: 0.72rem; }
}

/* ---------- site announcement (set from the admin dashboard) ---------- */
.announce {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: 66px; width: min(680px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: rgba(14, 17, 30, 0.94); border: 1px solid rgba(41, 231, 209, 0.55); box-shadow: 0 0 22px rgba(41, 231, 209, 0.25), var(--shadow);
  font-weight: 600; font-size: 0.9rem;
}
.announce.event { border-color: rgba(255, 210, 63, 0.6); box-shadow: 0 0 22px rgba(255, 210, 63, 0.25), var(--shadow); }
.announce.warning { border-color: rgba(255, 61, 90, 0.65); box-shadow: 0 0 22px rgba(255, 61, 90, 0.25), var(--shadow); }
.announce-ic { font-size: 1.2rem; }
.announce-txt { flex: 1; min-width: 0; line-height: 1.35; }
.announce-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.tb-chip.boost.xp { color: var(--cyan); border-color: rgba(41, 231, 209, 0.45); }
@media (max-width: 600px) { .announce { top: 58px; font-size: 0.82rem; } }

/* ---------- animated cosmetics (effects drawn by avatar.js) ---------- */
.fx-twinkle, .fx-flicker, .fx-rise, .fx-float, .fx-fall, .fx-batloop, .fx-scan, .fx-propel, .fx-wag, .fx-flap, .fx-cape { transform-box: fill-box; transform-origin: center; }
.fx-twinkle { animation: fxtwinkle 1.7s ease-in-out infinite; }
@keyframes fxtwinkle { 0%, 100% { transform: scale(0.15) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.fx-rise { animation: fxrise 2.4s ease-out infinite; }
@keyframes fxrise { from { transform: translateY(0) scale(0.6); opacity: 0; } 30% { opacity: 0.85; } to { transform: translateY(-22px) scale(1.4); opacity: 0; } }
.fx-float { animation: fxfloat 3.2s ease-out infinite; }
@keyframes fxfloat { from { transform: translateY(0) scale(0.4); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-46px) scale(1.1); opacity: 0; } }
.fx-flicker { transform-origin: 50% 100%; animation: fxflicker 0.32s ease-in-out infinite alternate; }
@keyframes fxflicker { from { transform: scale(1, 1); } to { transform: scale(0.86, 1.14) skewX(4deg); } }
.fx-fall { animation: fxfall 3.6s linear infinite; }
@keyframes fxfall { from { transform: translateY(-6px) rotate(-30deg); opacity: 0; } 10%, 85% { opacity: 1; } to { transform: translateY(150px) rotate(250deg); opacity: 0; } }
.fx-batloop { animation: fxbat 2.6s ease-in-out infinite; }
@keyframes fxbat { 0%, 100% { transform: translate(0, 0) scaleY(1); } 25% { transform: translate(7px, -6px) scaleY(0.5); } 50% { transform: translate(0, -11px) scaleY(1); } 75% { transform: translate(-7px, -4px) scaleY(0.5); } }
.fx-flash { animation: fxflash 1.9s steps(1) infinite; }
@keyframes fxflash { 0%, 8%, 16% { opacity: 1; } 4%, 12%, 20%, 100% { opacity: 0; } }
.fx-pulse { animation: fxpulse 2.2s ease-in-out infinite; }
@keyframes fxpulse { 50% { opacity: 0.4; } }
.fx-neon { animation: fxneon 1.6s ease-in-out infinite; }
@keyframes fxneon { 0%, 100% { opacity: 1; } 45% { opacity: 0.35; } 50% { opacity: 0.95; } 55% { opacity: 0.4; } }
.fx-spin-slow { animation: spin 16s linear infinite; }
.fx-propel { animation: fxpropel 0.35s linear infinite; }
@keyframes fxpropel { 50% { transform: scaleX(-1); } }
.fx-scan { animation: fxscan 1.4s ease-in-out infinite alternate; }
@keyframes fxscan { to { transform: translateX(25px); } }
.fx-led { animation: fxled 1.8s linear infinite; }
@keyframes fxled { 0%, 100% { fill: #57cc4f; } 33% { fill: #29e7d1; } 66% { fill: #ff3d5a; } }
.fx-wag { transform-origin: 0% 100%; animation: fxwag 0.28s ease-in-out infinite alternate; }
@keyframes fxwag { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.fx-flap { transform-origin: 100% 100%; animation: fxflap 0.3s ease-in-out infinite alternate; }
@keyframes fxflap { to { transform: rotate(-24deg) scaleY(0.8); } }
.fx-cape { transform-origin: 50% 0%; animation: fxcape 2.6s ease-in-out infinite; }
@keyframes fxcape { 50% { transform: skewX(3.5deg) scaleX(1.04); } }

/* ---------- animated cart skins (awning in the scene, swatches in the shop) ---------- */
.cart-sw[class*='awn-fx-'] { position: relative; overflow: hidden; }
.awn-fx-flames::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 24px; pointer-events: none; transform-origin: bottom; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 9px 17px at 50% 100%, #fff3bf, #ffd23f 28%, #ff7a1a 55%, transparent 72%) 0 100% / 26px 24px repeat-x,
    radial-gradient(ellipse 7px 12px at 50% 100%, #ffd23f, #ff3d1a 50%, transparent 72%) 13px 100% / 26px 18px repeat-x;
  animation: awnflames 0.45s ease-in-out infinite alternate;
}
@keyframes awnflames { from { transform: scaleY(0.75); opacity: 0.8; } to { transform: scaleY(1.1); opacity: 1; background-position: 5px 100%, 18px 100%; } }
.awn-fx-neon::after, .cart-sw.awn-fx-neon { animation: awnneon 1.6s ease-in-out infinite; }
.awn-fx-neon .awning-sign { animation: awnneon-sign 1.6s ease-in-out infinite; }
@keyframes awnneon { 50% { filter: brightness(1.6) saturate(1.3); box-shadow: 0 0 22px var(--led, #ff00a8), 0 6px 46px var(--led, #ff00a8); } }
@keyframes awnneon-sign { 50% { text-shadow: 0 0 10px var(--led), 0 0 28px var(--led), 0 0 44px var(--led); } }
.awn-fx-neon.awn-cycle::after, .cart-sw.awn-cycle { animation: awnneon 1.6s ease-in-out infinite, hue 6s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.awn-fx-stars::before {
  content: ''; position: absolute; inset: 0 0 4px; pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 8% 30%, #fff, transparent), radial-gradient(1.1px 1.1px at 21% 72%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 36% 22%, #cdb4ff, transparent), radial-gradient(1.1px 1.1px at 52% 62%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 67% 34%, #fff, transparent), radial-gradient(1.1px 1.1px at 80% 76%, #a5d8ff, transparent),
    radial-gradient(1.6px 1.6px at 93% 24%, #fff, transparent), linear-gradient(90deg, rgba(114, 9, 183, 0.35), rgba(58, 12, 163, 0.35));
  animation: awnstars 2.2s ease-in-out infinite alternate;
}
@keyframes awnstars { to { opacity: 0.45; } }
.awn-fx-shine::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%) -60% 0 / 45% 100% no-repeat;
  animation: awnshine 3.4s ease-in-out infinite;
}
@keyframes awnshine { 0% { background-position: -60% 0; } 55%, 100% { background-position: 170% 0; } }
.awn-fx-bats::before { content: '🦇 \00a0 \00a0 🦇 \00a0 \00a0 \00a0 🦇'; position: absolute; top: 3px; left: -40%; white-space: pre; font-size: 13px; pointer-events: none; animation: awnbats 9s linear infinite; }
.cart-sw.awn-fx-bats::before { font-size: 9px; top: 1px; }
@keyframes awnbats { to { left: 100%; } }

/* ---------- item tiles: rarity, tags, deals ---------- */
.item { --rar: #9aa4c0; transition: transform 0.12s ease, border-color 0.12s ease; cursor: pointer; }
.item.rar-rare { --rar: #3aa0ff; }
.item.rar-epic { --rar: #b56bff; }
.item.rar-legendary { --rar: #ffb020; }
.item.rar-mythic { --rar: #ff3d7f; }
.item:not(.equipped) { border-color: color-mix(in srgb, var(--rar) 40%, transparent); }
.item:not(.equipped):hover { border-color: var(--rar); box-shadow: 0 0 14px color-mix(in srgb, var(--rar) 35%, transparent); transform: translateY(-2px); }
.item::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--rar); box-shadow: 0 0 8px var(--rar); opacity: 0.85; }
.item.rar-legendary, .item.rar-mythic { background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--rar) 20%, transparent), var(--surface-2) 72%); }
.item.rar-mythic .item-prev { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rar) 60%, transparent)); }
.item-rar { font-family: var(--font-h); font-size: 0.54rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--rar); }
.item-anim { position: absolute; top: 4px; left: 5px; font-size: 0.72rem; filter: drop-shadow(0 0 4px rgba(255, 210, 63, 0.7)); pointer-events: none; }
.soon-tag.deal { background: var(--red); color: #fff; }
.soon-tag.new { background: var(--cyan); color: #04201c; }
.item-price s, .price-was { color: var(--ink-2); font-weight: 500; margin-right: 3px; }
.track-art { width: 56px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

/* Today's deals strip */
.deals { margin: 4px 0 12px; padding: 10px; border-radius: 14px; border: 1px solid rgba(255, 61, 90, 0.4); background: linear-gradient(135deg, rgba(255, 61, 90, 0.1), rgba(255, 210, 63, 0.06)); }
.deals-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.deals-head b { font-family: var(--font-h); font-size: 1rem; letter-spacing: 0.5px; }
.deals-head small { color: var(--ink-2); font-weight: 600; }
.deals .items { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; }

/* ---------- item detail / try-on ---------- */
.try { display: grid; grid-template-columns: minmax(170px, 230px) 1fr; gap: 18px; align-items: center; }
.try-stage {
  --rar: #9aa4c0; position: relative; border-radius: 18px; aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rar) 30%, transparent), transparent 65%), linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--rar) 55%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--rar) 25%, transparent);
}
.try-stage.rar-rare { --rar: #3aa0ff; }
.try-stage.rar-epic { --rar: #b56bff; }
.try-stage.rar-legendary { --rar: #ffb020; }
.try-stage.rar-mythic { --rar: #ff3d7f; }
.try-stage .avatar { width: 92%; height: 92%; }
.try-stage .cart-sw { position: absolute; left: 10%; right: 10%; top: 7%; width: auto; height: 22%; border-radius: 10px; }
.try-stage .cart-sw + .avatar { margin-top: 32%; height: 68%; }
.try-stage .track-art { width: 70%; height: auto; aspect-ratio: 1; font-size: 3.4rem; border-radius: 18px; }
.try-info h2 { margin: 2px 0 4px; }
.try-rar { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.try-rar span { font-family: var(--font-h); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); }
.try-rar .rar { color: var(--rar); border-color: color-mix(in srgb, var(--rar) 60%, transparent); background: color-mix(in srgb, var(--rar) 12%, transparent); }
.try-desc { color: var(--ink); opacity: 0.9; line-height: 1.45; margin: 8px 0 12px; }
.try-price { font-family: var(--font-h); font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.try-price .off { font-size: 0.75rem; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 6px; }
.try-goal .lv-bar { margin: 6px 0 4px; }
.try-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.try.celebrate .try-stage { animation: celebrate 0.9s ease; }
@keyframes celebrate { 30% { transform: scale(1.06); box-shadow: 0 0 60px var(--rar); } }
@media (max-width: 560px) { .try { grid-template-columns: 1fr; } .try-stage { max-width: 220px; margin: 0 auto; width: 100%; } }

/* ---------- music: jukebox and shop cards ---------- */
.tb-btn.tb-music.on { color: var(--cyan); border-color: rgba(41, 231, 209, 0.6); box-shadow: 0 0 12px rgba(41, 231, 209, 0.3); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq.off i { animation: none; transform: scaleY(0.3); }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.jb-now { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.jb-now .track-art { width: 72px; height: 72px; font-size: 2rem; flex: none; border-radius: 14px; }
.jb-now-txt { flex: 1; min-width: 0; }
.jb-now-txt b { display: block; font-family: var(--font-h); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-now-txt small { color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.jb-ctl { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.jb-ctl .btn { min-width: 52px; font-size: 1.1rem; }
.jb-vol { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.jb-vol input { width: 100%; accent-color: var(--red); }
.tracks { display: flex; flex-direction: column; gap: 6px; }
.track-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; color: inherit; width: 100%; font: inherit; cursor: pointer; }
.track-row.on { border-color: rgba(41, 231, 209, 0.6); box-shadow: 0 0 12px rgba(41, 231, 209, 0.18); }
.track-row .track-art { width: 42px; height: 42px; font-size: 1.1rem; flex: none; }
.track-row .tr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track-row .tr-txt b { font-size: 0.92rem; }
.track-row .tr-txt small { color: var(--ink-2); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .tr-btns { display: flex; gap: 6px; align-items: center; flex: none; }
.track-row.locked .track-art { filter: saturate(0.5) brightness(0.8); }
.track-row .tr-price { font-family: var(--font-h); font-size: 0.78rem; font-weight: 700; color: var(--mustard); }

/* ---------- main menu (hub) ---------- */
.hub { z-index: 50; }
.modal-wrap { z-index: 55; } /* modals (profile, settings…) open on top of the menu */
.hub-card { max-width: 560px; text-align: left; }
.hub-logo { text-align: center; font-size: 1.6rem; margin: 0 0 14px; }
.hub-me { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.hub-me b { font-size: 1.1rem; }
.hub-av { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--surface-3); }
.hub-lv { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 0.86rem; margin: 2px 0; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 12px; }
.hub-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 14px; min-height: 108px;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.hub-tile:hover, .hub-tile:focus-visible { transform: translateY(-2px); border-color: var(--mustard); background: var(--surface-3); outline: none; }
.hub-tile b { font-family: var(--font-h); font-size: 1.08rem; }
.hub-tile small { color: var(--ink-2); font-size: 0.8rem; }
.hub-ic { font-size: 1.5rem; line-height: 1; margin-bottom: 6px; }
.hub-tile.play { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(255, 61, 90, 0.28), rgba(255, 183, 3, 0.16)); border-color: rgba(255, 61, 90, 0.6); }
.hub-tile.play .hub-ic { margin: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.1rem; }
.hub-tile.play small { margin-left: auto; text-align: right; }
.soon { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 2px 7px; border-radius: 6px; background: rgba(41, 231, 209, 0.16); color: var(--cyan); border: 1px solid rgba(41, 231, 209, 0.4); }
h2 .soon { position: static; vertical-align: middle; margin-left: 6px; }
.hub-links { margin-top: 4px; }
button.tb-logo { background: none; border: 0; color: inherit; cursor: pointer; border-radius: 8px; padding: 2px 4px; }
button.tb-logo:hover, button.tb-logo:focus-visible { background: rgba(255, 255, 255, 0.06); }
.events-hero { padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(41, 231, 209, 0.14), rgba(139, 92, 246, 0.14)); border: 1px solid var(--line-2); margin-bottom: 12px; }
.events-hero b { font-family: var(--font-h); font-size: 1.2rem; }
.events-hero p { margin: 6px 0 0; }
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.events-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.events-grid span { font-size: 1.3rem; }
.events-grid small { color: var(--ink-2); }
@media (max-width: 520px) {
  .hub-grid, .events-grid { grid-template-columns: 1fr; }
  .hub-tile { min-height: 0; }
  .hub-tile.play small { margin-left: 0; text-align: left; }
  .hub-tile.play { flex-wrap: wrap; }
}
.tb-badge.inline { position: static; display: inline-grid; vertical-align: middle; margin-left: 4px; }
