:root {
  --bg: #0f0d0a;
  --bg-alt: #1d1810;
  --bg-card: #16130f;
  --gold: #c9a24a;
  --gold-bright: #d8b25a;
  --cream: #e8d9b5;
  --muted: #b9a77f;
  --muted-2: #a8977a;
  --line: #8a7240;
  --danger: #e8b4b4;
  --ok: #b8d4a8;
  --font-display: "Limelight", serif;
  --font-head: "Cinzel", serif;
  --font-ui: "Josefin Sans", sans-serif;
  --font-body: "Cormorant Garamond", serif;
  --header-h: 4.25rem;
  --sidebar-w: 15rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.5;
  min-height: 100vh;
}
[lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="en"]:not(html) { display: revert !important; }

a { color: var(--gold-bright); }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--gold-bright); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}
.btn-ghost:hover { background: var(--gold-bright); color: var(--bg); }
.btn-block { width: 100%; }

.topbar {
  min-height: var(--header-h);
  height: auto;
  border-bottom: 1px solid rgba(201,162,74,0.28);
  background: rgba(15,13,10,0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-sizing: border-box;
}
.brand {
  font-family: var(--font-display);
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  flex-shrink: 0;
  padding: 0.25rem 0;
  line-height: 1.2;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}
/* Uniform top-bar controls */
.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(201,162,74,0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(26,22,17,0.95), rgba(15,13,10,0.95));
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(201,162,74,0.1), 0 0 10px rgba(201,162,74,0.06);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.topbar-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(201,162,74,0.1);
}
.topbar-btn .tb-ico {
  font-size: 0.85rem;
  line-height: 1;
  color: var(--gold-bright);
  opacity: 0.9;
}
.topbar-btn .tb-label { line-height: 1; }
.topbar-btn.wallet-chip .wallet-bal {
  font-family: Cinzel, serif;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.topbar-user.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.7rem 0 0.35rem;
  border: 1px solid rgba(201,162,74,0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(26,22,17,0.95), rgba(15,13,10,0.95));
  max-width: 10rem;
  box-sizing: border-box;
  flex-shrink: 1;
  min-width: 0;
}
.topbar-user.user-chip .avatar {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}
.topbar-user.user-chip > span:not(.avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  height: 2.35rem;
  border: 1px solid rgba(201,162,74,0.55);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26,22,17,0.95), rgba(15,13,10,0.95));
  box-shadow: inset 0 0 0 1px rgba(201,162,74,0.12), 0 0 12px rgba(201,162,74,0.08);
  flex-shrink: 0;
  box-sizing: border-box;
}
.lang-switch .lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 0 0.75rem;
  min-width: 2.4rem;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch .lang-btn + .lang-btn {
  border-left: 1px solid rgba(201,162,74,0.35);
}
.lang-switch .lang-btn[aria-pressed="true"] {
  color: #0f0d0a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold, #c9a24a));
  text-shadow: none;
}
.lang-switch .lang-btn:hover:not([aria-pressed="true"]) {
  color: var(--gold-bright);
  background: rgba(201,162,74,0.1);
}
.topbar-overflow {
  position: relative;
  flex-shrink: 0;
}
.topbar-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 10.5rem;
  border: 1px solid rgba(201,162,74,0.55);
  background: #16130f;
  padding: 0.3rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  z-index: 60;
}
.topbar-more-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
}
.topbar-more-item:hover {
  background: rgba(201,162,74,0.12);
  color: var(--gold-bright);
}
.topbar-show-narrow { display: none; }

/* ≤1024: collapse photo/card into More */
@media (max-width: 1024px) {
  .topbar { padding: 0.55rem 0.9rem; gap: 0.65rem; }
  .topbar-hide-narrow { display: none !important; }
  .topbar-show-narrow:not(.hidden) { display: block; }
  .topbar-btn .tb-label { /* keep short labels */ }
  .wallet-chip .wallet-label { display: none; }
}

/* ≤640 / ~390 mobile — icon-first, no overlap */
@media (max-width: 640px) {
  .topbar {
    padding: 0.45rem 0.5rem;
    gap: 0.4rem;
    flex-wrap: nowrap;
    min-height: 3.4rem;
  }
  .brand {
    font-size: 0;
    letter-spacing: 0;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(201,162,74,0.55);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .brand::after {
    content: "BC";
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--gold-bright);
    font-family: var(--font-display);
  }
  .topbar-actions {
    gap: 0.3rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }
  .topbar-btn {
    height: 2rem;
    min-height: 2rem;
    width: 2rem;
    min-width: 2rem;
    padding: 0;
    font-size: 0.6rem;
  }
  .topbar-btn .tb-label { display: none; }
  .topbar-btn .tb-ico { margin: 0; }
  .wallet-chip.topbar-btn {
    width: auto;
    min-width: 0;
    padding: 0 0.55rem;
  }
  .wallet-chip .wallet-label { display: none; }
  .wallet-chip .wallet-bal { font-size: 0.72rem; }
  .lang-switch {
    height: 2rem;
    flex-shrink: 0;
  }
  .lang-switch .lang-btn {
    padding: 0 0.42rem;
    min-width: 1.85rem;
    font-size: 0.58rem;
  }
  /* Avatar moves into More on phone to free space */
  .topbar-user.user-chip { display: none !important; }
  .topbar-hide-narrow { display: none !important; }
  .topbar-show-narrow:not(.hidden) { display: block; }
}

.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 2rem;
}
.auth-card {
  width: min(26rem, 100%);
  border: 1px solid rgba(201,162,74,0.5);
  background: linear-gradient(180deg, #1a1611, #120f0c);
  padding: 1.8rem 1.3rem 1.5rem;
  position: relative;
}
.auth-card h1 {
  font-family: var(--font-head);
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1.15rem;
  text-align: center;
  margin: 0 0 0.4rem;
}
.auth-card .lede {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
}
.tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1rem;
}
.tabs button {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(201,162,74,0.35);
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.65rem;
  cursor: pointer;
}
.tabs button.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
}
label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  background: #0f0d0a;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.65rem 0.75rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-status {
  min-height: 1.3em;
  text-align: center;
  font-style: italic;
  margin: 0.7rem 0 0;
  color: var(--muted);
}
.form-status.is-err { color: var(--danger); }
.form-status.is-ok { color: var(--ok); }
.fine {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.95rem;
  margin: 0.9rem 0 0;
}

.app {
  display: grid;
  grid-template-columns: 1fr;
  height: calc(100vh - var(--header-h));
  min-height: 0;
}
.sidebar {
  border-bottom: 1px solid rgba(201,162,74,0.25);
  background: #120f0c;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 40vh;
  overflow: auto;
}
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.room-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(201,162,74,0.3);
  color: var(--cream);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.room-list button.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201,162,74,0.08);
}
.side-title {
  font-family: var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--gold);
  margin: 0;
}
.online-list { list-style: none; margin: 0; padding: 0; font-size: 1rem; color: var(--muted); }
.online-list li { padding: 0.15rem 0; }
.online-list .dot {
  display: inline-block; width: 0.45rem; height: 0.45rem;
  border-radius: 50%; background: #7dba6a; margin-right: 0.4rem;
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
/* chat-head base overridden by room atmosphere block below */
.chat-head .city { color: var(--muted); font-size: 0.95rem; font-style: italic; }
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}
.msg {
  border: 1px solid rgba(201,162,74,0.22);
  background: #14110d;
  padding: 0.7rem 0.85rem 0.75rem;
  max-width: 42rem;
}
.msg.mine { border-color: rgba(201,162,74,0.45); align-self: flex-end; }
.msg .meta {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.msg .body { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msg .orig {
  margin: 0.45rem 0 0;
  color: var(--muted-2);
  font-style: italic;
  font-size: 1.02rem;
  border-top: 1px dashed rgba(201,162,74,0.25);
  padding-top: 0.4rem;
}
.msg .toggle-orig {
  background: none; border: 0; color: var(--gold);
  font-family: var(--font-ui); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; padding: 0; margin-top: 0.35rem;
}
.composer {
  border-top: 1px solid rgba(201,162,74,0.25);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  background: #120f0c;
}
.composer textarea {
  min-height: 2.8rem;
  max-height: 7rem;
  resize: vertical;
}
.composer .btn { align-self: end; }

.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15,13,10,0.88);
  display: grid; place-items: center;
  padding: 1rem;
}
.modal-card {
  width: min(28rem, 100%);
  border: 1px solid var(--gold);
  background: #16130f;
  padding: 1.5rem 1.2rem;
  text-align: center;
}
.modal-card h2 {
  font-family: var(--font-head);
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.modal-card img {
  width: 100%;
  margin: 0.8rem 0 1rem;
  border: 1px solid rgba(201,162,74,0.4);
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

.user-chip {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (min-width: 860px) {
  .app { grid-template-columns: var(--sidebar-w) 1fr; }
  .sidebar {
    max-height: none;
    border-bottom: 0;
    border-right: 1px solid rgba(201,162,74,0.25);
  }
}

/* —— Profile avatars —— */
.avatar {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: #1a1611;
  color: var(--gold-bright);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-transform: uppercase;
}
.avatar-lg {
  width: 6.5rem;
  height: 6.5rem;
  font-size: 1.8rem;
  border-width: 2px;
  margin: 0 auto;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.msg {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.7rem;
  align-items: start;
}
.msg .avatar { grid-row: 1 / span 3; margin-top: 0.1rem; }
.msg .meta { grid-column: 2; margin-bottom: 0; }
.msg .body { grid-column: 2; }
.msg .toggle-orig, .msg .orig { grid-column: 2; }
.msg.mine { grid-template-columns: 1fr auto; }
.msg.mine .avatar { grid-column: 2; grid-row: 1 / span 3; }
.msg.mine .meta,
.msg.mine .body,
.msg.mine .toggle-orig,
.msg.mine .orig { grid-column: 1; }

.online-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0;
}
.online-list .avatar {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.55rem;
}
.online-list .dot { margin-right: 0; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.user-chip .avatar {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.55rem;
  cursor: pointer;
}

.photo-field input[type="file"] {
  padding: 0.45rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-2);
}
.photo-preview-wrap {
  margin: 1rem 0 0.4rem;
  display: flex;
  justify-content: center;
}

.composer .btn-salud {
  white-space: nowrap;
  padding: 0.85rem 0.9rem;
  letter-spacing: 0.1em;
  min-width: 0;
}
@media (max-width: 420px) {
  .composer .btn-salud {
    padding: 0.85rem 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
}

/* —— Room atmospheres —— */
.app {
  transition: background-color 0.45s ease, color 0.45s ease;
}
.chat {
  transition: background 0.45s ease, box-shadow 0.45s ease;
  position: relative;
}
/* Content must always end fully opaque — atmosphere is backgrounds/glows only. */
.chat .messages,
.chat .chat-head,
.chat .msg,
.chat .room-welcome,
.chat .room-banner-copy,
.chat .avatar {
  opacity: 1;
}
.chat.is-entering .messages,
.chat.is-entering .chat-head {
  animation: roomSlideIn 0.4s ease both;
}
@keyframes roomSlideIn {
  from { opacity: 1; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat.is-entering .messages,
  .chat.is-entering .chat-head {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

.chat-head {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem 1.05rem;
  border-bottom: 1px solid rgba(201,162,74,0.28);
  display: block;
  min-height: 5.2rem;
}
.room-banner-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  transition: opacity 0.45s ease, background 0.45s ease;
}
.room-banner-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}
.room-eyebrow {
  margin: 0 0 0.2rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-head h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  text-shadow: 0 0 18px rgba(216,178,90,0.25);
}
.room-tagline {
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  opacity: 1;
}

.room-welcome {
  align-self: center;
  text-align: center;
  max-width: 28rem;
  width: 100%;
  border: 1px solid rgba(201,162,74,0.45);
  background: rgba(20,16,12,0.88);
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 1;
}
.room-welcome strong {
  display: block;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.room-list button {
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.room-list button .room-btn-sub {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
  margin-top: 0.15rem;
}

/* —— La Barra: warm amber / brass —— */
.app[data-room-theme="bar"] {
  --room-accent: #d8b25a;
  --room-accent-dim: #c9a24a;
  --room-glow: rgba(216,178,90,0.22);
  --room-panel: #1a140c;
  --room-msg: #1c1610;
  --room-msg-border: rgba(216,178,90,0.35);
}
.app[data-room-theme="bar"] .chat {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(216,178,90,0.12), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(180,100,40,0.08), transparent 50%),
    linear-gradient(180deg, #18120b 0%, #120e09 100%);
}
.app[data-room-theme="bar"] .chat-head {
  background:
    linear-gradient(180deg, rgba(40,28,12,0.95), rgba(22,16,10,0.88));
  border-bottom-color: rgba(216,178,90,0.4);
  box-shadow: inset 0 -1px 0 rgba(216,178,90,0.15), 0 8px 24px rgba(0,0,0,0.25);
}
.app[data-room-theme="bar"] .room-banner-art {
  /* Back-bar bottle shelf (pure CSS/SVG) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 120' fill='none'%3E%3Cpath d='M0 98h420' stroke='%23c9a24a' stroke-opacity='.55'/%3E%3Cpath d='M0 102h420' stroke='%238a7240' stroke-opacity='.4'/%3E%3Cg stroke='%23d8b25a' stroke-opacity='.7'%3E%3Crect x='28' y='38' width='18' height='58' rx='2' fill='%23d8b25a' fill-opacity='.12'/%3E%3Crect x='56' y='28' width='14' height='68' rx='2' fill='%23c9a24a' fill-opacity='.16'/%3E%3Crect x='80' y='44' width='20' height='52' rx='3' fill='%23e8d9b5' fill-opacity='.1'/%3E%3Crect x='112' y='22' width='12' height='74' rx='2' fill='%23d8b25a' fill-opacity='.18'/%3E%3Crect x='136' y='40' width='22' height='56' rx='4' fill='%23c9a24a' fill-opacity='.14'/%3E%3Crect x='170' y='30' width='16' height='66' rx='2' fill='%23d8b25a' fill-opacity='.12'/%3E%3Crect x='198' y='48' width='24' height='48' rx='3' fill='%23e8d9b5' fill-opacity='.1'/%3E%3Crect x='234' y='26' width='13' height='70' rx='2' fill='%23c9a24a' fill-opacity='.16'/%3E%3Crect x='258' y='42' width='18' height='54' rx='2' fill='%23d8b25a' fill-opacity='.13'/%3E%3Crect x='288' y='34' width='15' height='62' rx='2' fill='%23e8d9b5' fill-opacity='.11'/%3E%3Crect x='314' y='46' width='22' height='50' rx='4' fill='%23c9a24a' fill-opacity='.15'/%3E%3Crect x='348' y='24' width='12' height='72' rx='2' fill='%23d8b25a' fill-opacity='.17'/%3E%3Crect x='372' y='38' width='20' height='58' rx='3' fill='%23c9a24a' fill-opacity='.12'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center bottom;
  background-size: min(100%, 520px) 88px;
  opacity: 0.7;
}
.app[data-room-theme="bar"] .messages {
  gap: 0.75rem;
}
.app[data-room-theme="bar"] .msg {
  background: var(--room-msg);
  border-color: var(--room-msg-border);
  box-shadow: 0 0 0 1px rgba(216,178,90,0.05), 0 6px 16px rgba(0,0,0,0.2);
}
.app[data-room-theme="bar"] .msg.mine {
  border-color: rgba(216,178,90,0.55);
  background: #241a0e;
}
.app[data-room-theme="bar"] .composer {
  background: linear-gradient(180deg, #16110a, #120e09);
  border-top-color: rgba(216,178,90,0.35);
}
.app[data-room-theme="bar"] .composer .btn-salud {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #1a1208;
  box-shadow: 0 0 16px rgba(216,178,90,0.35);
}
.app[data-room-theme="bar"] .room-list button.is-active {
  border-color: #d8b25a;
  color: #f0d78a;
  background: linear-gradient(90deg, rgba(216,178,90,0.18), rgba(216,178,90,0.05));
  box-shadow: inset 3px 0 0 #d8b25a, 0 0 12px rgba(216,178,90,0.15);
}
.app[data-room-theme="bar"] .sidebar {
  background: #14100b;
  border-color: rgba(216,178,90,0.28);
}


@media (max-width: 859px) {
  .chat-head { min-height: 4.6rem; padding: 0.85rem 0.9rem; }
  .chat-head h2 { font-size: 1.05rem; letter-spacing: 0.1em; }
  .room-tagline { font-size: 0.95rem; }
}

.chat .msg .body { color: var(--cream); opacity: 1; }
.chat .msg .meta { opacity: 1; }

/* —— Per-room presence —— */
.presence-by-room {
  display: grid;
  gap: 0.85rem;
}
.presence-room {
  border: 1px solid rgba(201,162,74,0.28);
  padding: 0.55rem 0.6rem 0.65rem;
  background: rgba(0,0,0,0.18);
}
.presence-room-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.presence-room-name { min-width: 0; }
.presence-count {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.presence-room.theme-bar {
  border-color: rgba(216,178,90,0.45);
  box-shadow: inset 3px 0 0 #d8b25a;
}
.presence-room.theme-bar .presence-room-title { color: #f0d78a; }
.presence-empty {
  font-style: italic;
  color: var(--muted-2);
  font-size: 0.95rem;
  opacity: 1;
}
.room-here {
  margin: 0.45rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
}
.room-system {
  align-self: center;
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 1;
  padding: 0.15rem 0.5rem;
}

/* —— Unified rooms (no per-room atmosphere) —— */
.app[data-room-theme],
.app {
  /* keep base gold look for everything */
}
.chat-head {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(201,162,74,0.28);
  display: block;
  min-height: auto;
  background: #120f0c;
  box-shadow: none;
}
.room-banner-art { display: none !important; }
.room-banner-copy { position: relative; z-index: 1; text-align: left; }
.room-eyebrow {
  margin: 0 0 0.15rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-head h2 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-shadow: none;
}
.room-tagline, .room-welcome { display: none !important; }
.room-here {
  margin: 0.35rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
}
.room-system {
  align-self: center;
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 1;
  padding: 0.15rem 0.5rem;
}

/* Merged room + people list */
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.room-item {
  border: 1px solid rgba(201,162,74,0.3);
  background: rgba(0,0,0,0.15);
  padding: 0;
}
.room-item.is-active {
  border-color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold-bright);
  background: rgba(201,162,74,0.08);
}
.room-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--cream);
  padding: 0.7rem 0.75rem 0.45rem;
  cursor: pointer;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.room-btn.is-active { color: var(--gold-bright); }
.room-btn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.room-btn-name { text-transform: none; letter-spacing: 0.08em; }
.room-people {
  padding: 0 0.65rem 0.55rem 0.75rem;
  margin: 0;
}
.room-people .presence-empty {
  font-style: italic;
  color: var(--muted-2);
  font-size: 0.9rem;
  padding: 0.1rem 0 0.2rem;
}
.presence-count {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* Uniform gold/dark for every room, booth, and Back Room — no lounge pink/burgundy */
.app[data-room-theme="lounge"],
.app[data-room-theme="bar"],
.app[data-room-theme="backroom"],
.app {
  --room-accent: #d8b25a;
  --room-accent-dim: #c9a24a;
  --room-glow: rgba(216,178,90,0.22);
  --room-panel: #1a140c;
  --room-msg: #1c1610;
  --room-msg-border: rgba(216,178,90,0.35);
  --gold: #c9a24a;
  --gold-bright: #e0b86a;
}
.app[data-room-theme="lounge"] .chat,
.app[data-room-theme="bar"] .chat,
.app[data-room-theme="backroom"] .chat,
.chat {
  background: #0f0d0a;
}
.app[data-room-theme="lounge"] .chat-head,
.app[data-room-theme="bar"] .chat-head,
.app[data-room-theme="backroom"] .chat-head,
.chat-head {
  background: #120f0c;
  border-bottom-color: rgba(201,162,74,0.28);
  box-shadow: none;
}
.app[data-room-theme="lounge"] .chat-head h2,
.app[data-room-theme="bar"] .chat-head h2,
.app[data-room-theme="backroom"] .chat-head h2,
.chat-head h2 {
  color: var(--gold-bright);
  text-shadow: none;
}
.app[data-room-theme="lounge"] .room-eyebrow,
.app[data-room-theme="bar"] .room-eyebrow,
.room-eyebrow { color: var(--gold); }
.app[data-room-theme="lounge"] .composer .btn-salud,
.app[data-room-theme="bar"] .composer .btn-salud,
.app[data-room-theme="lounge"] .composer .btn-salud:hover,
.composer .btn-salud,
.composer .btn-salud:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #1a1208;
  box-shadow: none;
}
.app[data-room-theme="lounge"] .composer input,
.app[data-room-theme="lounge"] .composer textarea,
.composer input,
.composer textarea {
  border-color: rgba(201,162,74,0.35);
}
.app[data-room-theme="lounge"] .composer,
.app[data-room-theme="bar"] .composer,
.composer {
  background: linear-gradient(180deg, #16110a, #120e09);
  border-top-color: rgba(201,162,74,0.28);
}
.app[data-room-theme="lounge"] .msg,
.app[data-room-theme="bar"] .msg,
.msg {
  background: var(--room-msg);
  border-color: var(--room-msg-border);
}
.app[data-room-theme="lounge"] .msg.mine,
.app[data-room-theme="bar"] .msg.mine,
.msg.mine {
  border-color: rgba(216,178,90,0.55);
  background: #241a0e;
}
.app[data-room-theme="lounge"] .msg .meta,
.app[data-room-theme="bar"] .msg .meta,
.msg .meta { color: var(--gold); }
.app[data-room-theme="lounge"] .msg .body,
.msg .body { color: var(--cream); }
.app[data-room-theme="lounge"] .sidebar,
.app[data-room-theme="bar"] .sidebar,
.app[data-room-theme="backroom"] .sidebar,
.sidebar {
  background: #120f0c;
  border-color: rgba(201,162,74,0.25);
}
.app[data-room-theme="lounge"] .side-title,
.app[data-room-theme="bar"] .side-title,
.side-title { color: var(--gold); }
.app[data-room-theme="lounge"] .avatar,
.app[data-room-theme="bar"] .avatar,
.avatar { border-color: var(--gold); }
.app[data-room-theme="lounge"] .room-list button.is-active,
.app[data-room-theme="bar"] .room-list button.is-active,
.app[data-room-theme="backroom"] .room-list button.is-active,
.room-list button.is-active {
  border-color: #d8b25a;
  color: #f0d78a;
  background: linear-gradient(90deg, rgba(216,178,90,0.18), rgba(216,178,90,0.05));
  box-shadow: inset 3px 0 0 #d8b25a, 0 0 12px rgba(216,178,90,0.15);
}
.app[data-room-theme="lounge"] .room-here,
.app[data-room-theme="lounge"] .room-system,
.room-here,
.room-system { color: var(--muted); }
.presence-count {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.presence-room.theme-lounge,
.presence-room.theme-bar {
  border-color: rgba(216,178,90,0.45);
  box-shadow: inset 3px 0 0 #d8b25a;
}
.presence-room.theme-lounge .presence-room-title,
.presence-room.theme-bar .presence-room-title { color: #f0d78a; }
.presence-room.theme-lounge .avatar,
.presence-room.theme-bar .avatar { border-color: var(--gold); }
.presence-by-room { display: none !important; }

/* —— Private booths —— */
.dm-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.dm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.dm-item {
  border: 1px solid rgba(201,162,74,0.28);
  background: rgba(0,0,0,0.12);
}
.dm-item.is-active {
  border-color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold-bright);
  background: rgba(201,162,74,0.08);
}
.dm-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  color: var(--cream);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.dm-meta { flex: 1; min-width: 0; }
.dm-name {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.chat-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-shrink: 0;
}
.app.dm-open .chat-head {
  border-bottom-color: rgba(201,162,74,0.45);
}
.app.dm-flash {
  box-shadow: inset 0 0 0 2px rgba(216,178,90,0.55);
  transition: box-shadow 0.3s ease;
}
.person-name {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.person-name.msg-author {
  font-family: var(--font-ui);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.person-menu {
  position: fixed;
  z-index: 90;
  min-width: 10.5rem;
  border: 1px solid var(--gold);
  background: #16130f;
  padding: 0.25rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.person-menu button {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  text-align: left;
}
.person-menu button:hover {
  background: rgba(201,162,74,0.12);
  color: var(--gold-bright);
}
@media (max-width: 859px) {
  .chat-head { flex-direction: column; align-items: stretch; }
  .chat-head-actions { justify-content: flex-start; }
}

/* —— La Trastienda / The Back Room —— */
.app[data-room-theme="backroom"] {
  --room-glow: rgba(212, 175, 55, 0.18);
}
.app[data-room-theme="backroom"] .chat {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,175,55,0.12), transparent 55%),
    linear-gradient(180deg, rgba(18,14,10,0.92), rgba(10,8,6,0.96));
}
.app[data-room-theme="backroom"] .chat-head {
  border-bottom-color: rgba(212,175,55,0.35);
  background: linear-gradient(180deg, rgba(40,30,12,0.55), transparent);
}
.app[data-room-theme="backroom"] .chat-head h2 {
  color: #f0d78c;
  letter-spacing: 0.08em;
}
.app[data-room-theme="backroom"] .room-list button.is-active {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.25);
}

.backroom-panel {
  margin: 0.55rem 0.75rem 0.35rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border: 1px solid rgba(212,175,55,0.38);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(48,36,14,0.55), rgba(18,14,10,0.75));
  box-shadow: inset 0 0 0 1px rgba(255,220,140,0.06), 0 8px 24px rgba(0,0,0,0.35);
}
.backroom-panel.hidden { display: none; }
.backroom-kicker {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,215,140,0.75);
  font-family: "Josefin Sans", sans-serif;
}
.backroom-panel h3 {
  margin: 0.15rem 0 0.25rem;
  font-family: Cinzel, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #f3df9a;
}
.backroom-hint {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
}
.backroom-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.backroom-bulk .btn {
  font-size: 0.62rem;
  padding: 0.35rem 0.65rem;
}
.backroom-chars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .backroom-chars {
    grid-template-columns: 1fr 1fr;
  }
}
.backroom-char {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.7rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
}
.backroom-char .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.45);
  overflow: hidden;
  background: #1a1510;
}
.backroom-char .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.backroom-char-meta {
  min-width: 0;
}
.backroom-char-name {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 0.92rem;
  color: #f0e2b0;
}
.backroom-char-title {
  margin: 0.05rem 0 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}
.backroom-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  grid-column: 1 / -1;
}
.backroom-seg {
  display: inline-flex;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.28);
}
.backroom-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(240,215,140,0.72);
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
}
.backroom-seg button.is-on {
  background: linear-gradient(180deg, rgba(212,175,55,0.55), rgba(160,120,30,0.55));
  color: #1a1208;
  font-weight: 600;
}
.backroom-seg button:focus-visible {
  outline: 2px solid rgba(212,175,55,0.7);
  outline-offset: -2px;
}
@media (max-width: 520px) {
  .backroom-panel { margin: 0.4rem 0.5rem; padding: 0.65rem; }
  .backroom-char .avatar { width: 42px; height: 42px; }
}


/* Back Room: controls only — no chat chrome */
.chat.backroom-no-chat {
  display: flex;
  flex-direction: column;
}
.chat.backroom-no-chat .messages,
.chat.backroom-no-chat .composer {
  display: none !important;
}
.chat.backroom-no-chat .backroom-panel {
  flex: 1 1 auto;
  margin: 0.75rem 1rem 1.25rem;
  overflow: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
}
.chat.backroom-no-chat .backroom-chars {
  flex: 1 1 auto;
  align-content: start;
}
@media (min-width: 900px) {
  .chat.backroom-no-chat .backroom-chars {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Purse / Menu / Drink drain —— */
.wallet-chip {
  /* styled via .topbar-btn.wallet-chip */
}
.wallet-chip .wallet-bal {
  /* styled via .topbar-btn.wallet-chip .wallet-bal */
}
.house-tab-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.wallet-terms {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}
.wallet-topup-note { color: var(--muted); margin: 0.5rem 0; }
.paypal-topup-wrap { margin: 0.75rem 0 0.25rem; min-height: 40px; }
.menu-modal-card { max-width: 36rem; width: min(96vw, 36rem); max-height: 90vh; overflow: auto; }
.menu-body { text-align: left; }
.menu-section-title {
  font-family: Cinzel, serif;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 1rem 0 0.4rem;
  border-bottom: 1px solid rgba(201,162,74,0.3);
  padding-bottom: 0.25rem;
}
.menu-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgba(138,114,64,0.45);
  align-items: center;
}
.menu-item-name { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; color: var(--cream); }
.menu-item-desc { grid-column: 1 / -1; font-style: italic; color: var(--muted); font-size: 0.9rem; margin-top: -0.2rem; }
.menu-item-price { font-family: Cinzel, serif; color: var(--gold-bright); }
.menu-item-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.menu-item-actions .btn { font-size: 0.58rem; padding: 0.3rem 0.55rem; }
.menu-free-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  vertical-align: middle;
}
.tip-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0.75rem 0; }
.drink-glass {
  display: inline-block;
  width: 10px;
  height: 14px;
  margin-left: 0.35rem;
  border: 1px solid var(--gold);
  border-radius: 1px 1px 3px 3px;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.drink-glass > i {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(224,184,106,0.95), rgba(201,162,74,0.75));
  height: 100%;
  transform-origin: bottom;
}
.person-row .drink-glass { margin-left: 0.25rem; }
.msg.is-system {
  align-self: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  font-style: italic;
  color: var(--muted);
  max-width: 90%;
}
.msg.is-system .meta, .msg.is-system .avatar { display: none; }
.msg.is-system .body { color: var(--muted); opacity: 1; }
.btn-tip-mini {
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.support-line {
  margin: 0.35rem 0 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.35;
  text-align: center;
  opacity: 0.92;
}
.leave-tip-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.leave-tip-amt.is-on { outline: 1px solid var(--gold-bright); }

.optional-note {
  margin: 0.2rem 0 0.65rem;
  text-align: center;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(201,162,74,0.85);
}
.optional-note em { font-style: normal; color: var(--gold-bright); }


/* Food drain icon (same 15-min diminish as drink glass) */
.food-bite {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 0.25rem;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 40% 40%;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.food-bite > i {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(210,140,80,0.95), rgba(160,90,40,0.8));
  height: 100%;
}
.person-row .food-bite { margin-left: 0.2rem; }

.person-menu-drink {
  color: var(--gold-bright) !important;
  font-weight: 600;
}
.person-menu-drink:hover {
  background: rgba(201,162,74,0.2) !important;
}

.menu-who-for {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.6rem 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(201,162,74,0.35);
  background: rgba(201,162,74,0.06);
}
.menu-who-for label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.menu-recipient {
  background: #12100c;
  color: var(--cream);
  border: 1px solid rgba(201,162,74,0.45);
  padding: 0.45rem 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.menu-who-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.low-bal-note {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(26rem, calc(100vw - 1.5rem));
  width: 100%;
  background: #16130f;
  border: 1px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.low-bal-note.hidden { display: none; }
.low-bal-text {
  margin: 0;
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.35;
}
.low-bal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.msg-drain-host {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0.25rem;
  vertical-align: middle;
  min-height: 14px;
}
.msg .meta .msg-drain-icon,
.msg .meta .drink-glass,
.msg .meta .food-bite {
  margin-left: 0;
}

/* Compact bilingual room events — muted gold, italic, subtle */
.msg.is-system,
.room-system {
  align-self: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  font-style: italic;
  color: rgba(201, 162, 74, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 92%;
  margin: 0.35rem auto;
  padding: 0.15rem 0.5rem;
}
.msg.is-system .meta,
.msg.is-system .avatar,
.msg.is-system .msg-drain-host { display: none; }
.msg.is-system .body {
  color: rgba(201, 162, 74, 0.85);
  opacity: 1;
  font-style: italic;
  margin: 0;
}
