/* style.css — Shisha Lounge UI (minimalist brass-on-dark overlays) */

:root {
  --brass: #c9962b;
  --brass-hi: #f0c46a;
  --ink: #e9d7b0;
  --panel: rgba(20, 10, 6, 0.72);
  --panel-line: rgba(201, 150, 43, 0.35);
}

* { box-sizing: border-box; }

.lounge-page, body, #game-container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #050302;
  overflow: hidden;
}

.lounge-page {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  touch-action: none;
}

#lounge-canvas {
  position: absolute;
  display: block;
  cursor: pointer;
}

/* ------- Top HUD ------- */
#hud {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 10;
  max-width: 92vw;
}

#hud-title {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brass-hi);
  white-space: nowrap;
}

#hud-status {
  font-size: 14px;
  opacity: 0.92;
}

.hud-btn, #name-input {
  background: rgba(201, 150, 43, 0.12);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
.hud-btn:hover { background: rgba(201, 150, 43, 0.28); }
#name-input { width: 120px; cursor: text; }
#voice-mute-hud.muted {
  background: rgba(181, 83, 59, 0.35);
  border-color: #b5533b;
  color: #ffd0c2;
}

#hud-mode {
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
}

/* ------- Prominent bottom-right control dock ------- */
#controls-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 16;
}
.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 76px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(40, 22, 10, 0.94), rgba(22, 11, 6, 0.94));
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s, border-color 0.15s;
}
.dock-btn:hover {
  background: rgba(201, 150, 43, 0.32);
  border-color: var(--brass-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}
.dock-btn .dock-ic { font-size: 24px; line-height: 1; }
.dock-btn .dock-label { font-size: 11px; letter-spacing: 0.5px; opacity: 0.9; }
#voice-mute-hud.muted,
#mute-btn.muted {
  background: linear-gradient(180deg, rgba(181, 83, 59, 0.5), rgba(120, 45, 30, 0.55));
  border-color: #b5533b;
  color: #ffd0c2;
}
#stand-btn.dock-btn {
  background: linear-gradient(180deg, rgba(201, 150, 43, 0.4), rgba(140, 100, 30, 0.5));
  border-color: var(--brass-hi);
  color: var(--brass-hi);
}

/* ------- Chat overlay (prominent, social-first) -------
   Docked bottom-right, sitting just above the control dock. */
#chat {
  position: fixed;
  right: 18px;
  bottom: 116px;
  width: 340px;
  max-width: 34vw;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  overflow: hidden;
  /* Gentle translucency + blur keeps the lounge visible behind it. */
  background: linear-gradient(180deg, rgba(18, 9, 5, 0.35) 0%, rgba(14, 7, 4, 0.62) 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: max-height 0.28s ease;
}

#chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--panel-line);
  background: rgba(201, 150, 43, 0.10);
}
#chat-title-txt {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brass-hi);
  font-size: 14px;
  flex: 1;
}
#chat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5ad17a;
  box-shadow: 0 0 8px #5ad17a;
}
#chat-toggle {
  color: var(--ink);
  opacity: 0.7;
  font-size: 16px;
  transition: transform 0.25s ease;
}
#chat.collapsed #chat-toggle { transform: rotate(180deg); }
#chat.collapsed #chat-log,
#chat.collapsed #chat-form { display: none; }

#chat-log {
  height: 30vh;
  min-height: 160px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-line) transparent;
}
#chat-log::-webkit-scrollbar { width: 7px; }
#chat-log::-webkit-scrollbar-thumb { background: var(--panel-line); border-radius: 4px; }

#chat-empty {
  opacity: 0.4;
  font-style: italic;
  font-size: 14px;
  padding: 6px 0;
}

.chat-line {
  margin: 5px 0;
  word-break: break-word;
  animation: chatIn 0.22s ease;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-name { font-weight: 700; }

#chat-form {
  display: flex;
  border-top: 1px solid var(--panel-line);
  overflow: hidden;
}
#chat-input {
  flex: 1;
  background: rgba(10, 5, 3, 0.6);
  border: none;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
#chat-input:focus { background: rgba(10, 5, 3, 0.85); }
#chat-input::placeholder { color: rgba(233, 215, 176, 0.4); }

#chat-send {
  background: rgba(201, 150, 43, 0.28);
  color: var(--brass-hi);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}
#chat-send:hover { background: rgba(201, 150, 43, 0.5); }

@media (max-width: 900px) {
  #chat { width: 300px; max-width: 46vw; }
  #chat-log { font-size: 14px; }
}

/* ------- Theme switcher ------- */
/* Panel columns are plain stacks — they do NOT scroll as one unit, so each
   panel keeps its own boundaries (and its own inner scroll where needed). */
#right-panels,
#left-panels {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 276px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 32px);
  z-index: 20;
  pointer-events: none;   /* let clicks fall through the column gaps to the lounge */
}
#right-panels > *,
#left-panels > * { pointer-events: auto; }
#left-panels {
  right: auto;
  left: 16px;
}
#theme-panel,
#shisha-panel,
#flavour-panel,
#voice-panel {
  width: 100%;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  z-index: 10;
}
#theme-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
#theme-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
}
#theme-name {
  font-weight: 800;
  color: var(--brass-hi);
  font-size: 14px;
  flex: 1;
}
#theme-cd {
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
}
/* Red/green status light replacing the old "ready to switch" text. */
.cd-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  opacity: 1;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.cd-light.green {
  background: radial-gradient(circle at 35% 30%, #b6ffcf, #21c463 70%);
  box-shadow: 0 0 8px rgba(45, 220, 120, 0.85), inset 0 0 2px rgba(0, 0, 0, 0.4);
}
.cd-light.red {
  background: radial-gradient(circle at 35% 30%, #ffb3b3, #d63636 70%);
  box-shadow: 0 0 8px rgba(230, 70, 70, 0.85), inset 0 0 2px rgba(0, 0, 0, 0.4);
}
#theme-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.theme-btn:hover:not(:disabled) { background: rgba(201, 150, 43, 0.25); transform: translateX(2px); }
.theme-btn.active {
  background: rgba(201, 150, 43, 0.3);
  border-color: var(--brass-hi);
  color: var(--brass-hi);
}
.theme-btn:disabled { cursor: default; opacity: 0.55; }
.theme-btn.active:disabled { opacity: 1; }

/* ------- Shisha design panel (left column) ------- */
#shisha-head,
#flavour-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
#shisha-label,
#flavour-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
}
#shisha-name,
#flavour-name {
  font-weight: 800;
  color: var(--brass-hi);
  font-size: 14px;
  flex: 1;
  min-width: 0;
}
#shisha-cd {
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
}
#shisha-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Own capped vertical scroll so the 8 designs stay inside the Shisha box. */
  max-height: 24vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-line) transparent;
}
#shisha-btns::-webkit-scrollbar { width: 6px; }
#shisha-btns::-webkit-scrollbar-thumb { background: var(--panel-line); border-radius: 4px; }
.shisha-btn { display: flex; align-items: center; gap: 8px; }
.sh-ic { font-size: 16px; line-height: 1; }

/* ------- Flavours picker (categories -> blends) ------- */
#flavour-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.flav-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 9px;
  padding: 11px 8px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.flav-cat .fc-ic { font-size: 21px; line-height: 1; }
.flav-cat:hover:not(:disabled) { background: rgba(201, 150, 43, 0.22); }
.flav-cat.open {
  background: rgba(201, 150, 43, 0.3);
  border-color: var(--brass-hi);
  color: var(--brass-hi);
}
.flav-cat:disabled { cursor: default; opacity: 0.5; }

/* The blend list has its OWN capped vertical scroll (never horizontal), so a
   long category stays inside the Flavours box instead of merging with the
   Shisha box or pushing the guide off-screen. */
#flavour-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 26vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-line) transparent;
}
#flavour-list:empty { margin-top: 0; }
#flavour-list::-webkit-scrollbar { width: 6px; }
#flavour-list::-webkit-scrollbar-thumb { background: var(--panel-line); border-radius: 4px; }
.flav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.flav-btn:hover:not(:disabled) { background: rgba(201, 150, 43, 0.2); transform: translateX(2px); }
.flav-btn.active {
  background: rgba(201, 150, 43, 0.3);
  border-color: var(--brass-hi);
  color: var(--brass-hi);
}
.flav-btn:disabled { cursor: default; opacity: 0.55; }
.flav-btn.active:disabled { opacity: 1; }
.flav-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 6px currentColor, inset 0 0 2px rgba(0, 0, 0, 0.4);
}
#flavour-note {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 8px;
  line-height: 1.35;
}
#flavour-note:empty { margin-top: 0; }

/* ------- Concise how-to-play guide (bottom of left column) ------- */
#guide-panel {
  width: 100%;
  padding: 13px 15px 11px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
#guide-head {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 9px;
}
#guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#guide-list li {
  font-size: 12.5px;
  line-height: 1.35;
  opacity: 0.92;
}

/* ------- Voice chat panel ------- */
#voice-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
#voice-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  flex: 1;
}
#voice-status {
  font-size: 11px;
  opacity: 0.75;
  color: var(--brass-hi);
  white-space: nowrap;
}
.voice-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.voice-btn:hover:not(:disabled) { background: rgba(201, 150, 43, 0.25); }
.voice-btn.joined {
  background: rgba(90, 209, 122, 0.2);
  border-color: #5ad17a;
  color: #b8f2c6;
}
.voice-btn:disabled { opacity: 0.45; cursor: default; }

#voice-controls {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voice-btn.small { padding: 7px 10px; font-size: 12px; }
.voice-btn.small.active {
  background: rgba(201, 150, 43, 0.28);
  border-color: var(--brass-hi);
  color: var(--brass-hi);
}
#voice-vol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
#voice-vol {
  flex: 1;
  accent-color: var(--brass);
  cursor: pointer;
}
#voice-vol:disabled { opacity: 0.45; cursor: default; }

/* ------- Per-peer voice controls ------- */
#voice-peers-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#voice-peers-list:empty { margin-top: 0; }
.voice-peer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-line);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.voice-peer.speaking {
  border-color: #5ad17a;
  box-shadow: 0 0 10px rgba(90, 209, 122, 0.45);
}
.vp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
.voice-peer.speaking .vp-dot { box-shadow: 0 0 7px #5ad17a; }
.vp-name {
  flex: 1;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.vp-mute {
  flex: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.vp-mute:hover { background: rgba(201, 150, 43, 0.25); }
.vp-mute.muted {
  background: rgba(181, 83, 59, 0.3);
  border-color: #b5533b;
}
.vp-vol {
  flex: none;
  width: 62px;
  accent-color: var(--brass);
  cursor: pointer;
}
#voice-note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.7;
  color: #f2c98a;
  min-height: 0;
}
#voice-note:empty { margin-top: 0; }

/* ------- Floating emoji button + picker ------- */
#emoji-btn {
  position: fixed;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--panel-line);
  background: rgba(20, 10, 6, 0.85);
  font-size: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s, background 0.15s;
}
#emoji-btn:hover { background: rgba(201, 150, 43, 0.35); transform: translate(-50%, -50%) scale(1.08); }

#emoji-panel {
  position: fixed;
  transform: translate(-50%, -100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
  background: rgba(16, 8, 5, 0.94);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  z-index: 13;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
#emoji-panel.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 8px));
}
.emoji-choice {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 24px;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
}
.emoji-choice:hover { background: rgba(201, 150, 43, 0.35); transform: scale(1.15); }

/* ------- Smoke-style picker (bottom-center) ------- */
#smoke-bar {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  /* Above the chat and the card table, both of which are drawn over the room.
     This used to be 14, which put it under everything the casino layer adds. */
  z-index: 82;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#smoke-bar.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
}
#smoke-bar-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass-hi);
  opacity: 0.85;
}
#smoke-bar-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.smoke-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 72px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.14s, transform 0.1s, border-color 0.14s;
}
.smoke-choice:hover { background: rgba(201, 150, 43, 0.25); transform: translateY(-2px); }
.smoke-choice .sc-icon { font-size: 22px; line-height: 1; }
.smoke-choice .sc-label { font-size: 11px; font-weight: 600; white-space: nowrap; }
.smoke-choice.active {
  background: rgba(201, 150, 43, 0.32);
  border-color: var(--brass-hi);
  color: var(--brass-hi);
  box-shadow: 0 0 12px rgba(240, 196, 106, 0.35);
}

/* ------- Exhale extras: aim knob + Pro/Amateur skill toggle ------- */
#smoke-extra {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--panel-line);
}
#smoke-knob-wrap,
#smoke-skill-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.smoke-extra-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass-hi);
  opacity: 0.75;
}
#smoke-knob {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: grab;
  background: radial-gradient(circle at 40% 35%, #3a3226, #17130d 75%);
  border: 2px solid var(--panel-line);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  touch-action: none;
}
#smoke-knob:active { cursor: grabbing; }
#smoke-knob-dial {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 196, 106, 0.28);
}
#smoke-knob-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--brass-hi);
  box-shadow: 0 0 8px rgba(240, 196, 106, 0.9);
  transform-origin: center center;
  transform: rotate(0rad) translateY(-20px);
}
.smoke-skill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  color: #0e2417;
  background: linear-gradient(180deg, #7be6a6, #21c463);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(45, 220, 120, 0.4);
  transition: background 0.16s, box-shadow 0.16s, transform 0.1s;
  white-space: nowrap;
}
.smoke-skill:hover { transform: translateY(-1px); }
.smoke-skill .skill-icon { font-size: 16px; line-height: 1; }
.smoke-skill.amateur {
  color: #2a1608;
  background: linear-gradient(180deg, #ffd48a, #e79a2b);
  box-shadow: 0 0 12px rgba(231, 154, 43, 0.45);
}

/* ------- Now-smoking status bar (top-center) -------
   Persistent readout of the current shisha + flavour; also flashes
   brief social announcements before returning to the readout. */
#status-bar {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 86vw;
  padding: 11px 24px;
  background: linear-gradient(180deg, rgba(40, 22, 10, 0.92), rgba(24, 12, 6, 0.92));
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 15;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
#status-bar #status-shisha,
#status-bar #status-flavour {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#status-shisha-txt { color: var(--brass-hi); }
#status-flavour-txt { color: #ffd0e0; }
#status-bar .sb-ic { font-size: 17px; line-height: 1; }
#status-bar .sb-sep { opacity: 0.4; }
/* When flashing an announcement, the whole bar shows a single message. */
#status-bar.announce {
  color: var(--brass-hi);
  border-color: var(--brass-hi);
  box-shadow: 0 6px 22px rgba(240, 196, 106, 0.35);
}
#status-bar.announce #status-shisha,
#status-bar.announce .sb-sep,
#status-bar.announce #status-flavour { display: none; }
#status-announce { display: none; }
#status-bar.announce #status-announce {
  display: inline-flex;
  align-items: center;
}