:root {
  --accent: #C9943A;
  --accent-light: #F0BC68;
  --brand-primary: #0B2318;
  --body-bg: #F7F5F0;
  --surface: #FFFFFF;
  --border-subtle: #E8E3DB;
  --text-primary: #1C1A17;
  --text-muted: #7A7060;
}

body {
  background: var(--body-bg);
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.gp-hidden { display: none !important; }

/* ========== Cover ========== */
.gp-cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 28px 30px;
  color: #fff;
  overflow: hidden;
}
.gp-cover-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--brand-primary) url('https://images.unsplash.com/photo-1572116469696-31de0f17cc34?w=900&q=80') center/cover;
}
.gp-cover-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,35,24,0.55) 0%, rgba(11,35,24,0.92) 100%);
}
.gp-cover-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
}
.gp-brand {
  font-family: "Fraunces", serif; font-size: 28px; font-weight: 500; letter-spacing: 0.02em;
}
.gp-brand em { color: var(--accent-light); font-style: italic; }
.gp-cover-divider { width: 38px; height: 1.5px; background: var(--accent); margin: 12px 0 16px; }
.gp-tagline {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 18px; color: rgba(255,255,255,0.85);
  line-height: 1.4; max-width: 240px;
}
.gp-cover-bottom { text-align: center; }
.gp-cta {
  display: inline-block; padding: 14px 36px;
  background: var(--accent); color: var(--text-primary);
  border-radius: 999px; border: 0;
  font-family: "DM Sans", sans-serif; font-weight: 600;
  letter-spacing: 0.05em; font-size: 13px;
  cursor: pointer;
}
.gp-cta:hover { background: var(--accent-light); }

/* ========== Menu chrome ========== */
.gp-menu { padding-bottom: 40px; min-height: 100vh; }
.gp-menu-top {
  background: var(--body-bg); padding: 14px 20px 0;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
}
.gp-menu-topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gp-menu .gp-brand { font-size: 18px; }
.gp-menu .gp-brand em { color: var(--accent); }
.gp-menu-topbar .gp-brand-logo { display: block; width: auto; height: 34px; max-width: 160px; object-fit: contain; }

.gp-cat-nav {
  display: flex; gap: 18px; padding: 14px 0 0;
  overflow-x: auto; scrollbar-width: none;
}
.gp-cat-nav::-webkit-scrollbar { display: none; }
.gp-cat-nav-item {
  font-family: "Fraunces", serif; font-style: italic; font-size: 14px;
  color: var(--text-muted); padding-bottom: 12px;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.gp-cat-nav-item.active { color: var(--text-primary); border-bottom-color: var(--accent); font-weight: 500; }

/* ========== Categories & items ========== */
.gp-cat-header { padding: 28px 28px 6px; text-align: center; }
.gp-ornament { color: var(--accent); font-size: 16px; letter-spacing: 10px; padding-left: 10px; }
.gp-cat-header h3 {
  font-family: "Fraunces", serif; font-size: 24px;
  margin: 4px 0 2px; font-weight: 500; font-style: italic;
}
.gp-cat-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 10px 0 4px;
}
.gp-cat-divider::before, .gp-cat-divider::after {
  content: ''; flex: 0 0 40px; border-bottom: 1px solid var(--accent);
}
.gp-cat-divider::before { margin-right: 10px; }
.gp-cat-divider::after { margin-left: 10px; }
.gp-cat-mark { color: var(--accent); font-size: 12px; }

.gp-items { padding: 8px 28px 28px; }
.gp-item { padding: 14px 0; }
.gp-item-row { display: flex; align-items: baseline; gap: 4px; }
.gp-item-name { font-family: "Fraunces", serif; font-size: 15.5px; font-weight: 500; }
.gp-item-promo {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary, #0B2318);
  background: var(--accent);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.gp-leader {
  flex: 1; border-bottom: 1.5px dotted var(--accent);
  transform: translateY(-3px); margin: 0 4px;
}
.gp-item-price { font-family: "Fraunces", serif; font-size: 14px; font-weight: 500; }
.gp-item-price-was {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.82em;
  margin-right: 7px;
  opacity: 0.8;
}
.gp-item-price-now { color: var(--accent); font-weight: 600; }
.gp-item-desc {
  font-size: 11px; color: var(--text-muted);
  margin-top: 3px; font-style: italic;
}

.gp-empty-cat {
  padding: 60px 28px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
}

.gp-cat-coming-soon {
  padding: 28px 24px;
  margin: 8px 0 16px;
  text-align: center;
  border: 1px dashed rgba(201, 148, 58, 0.35);
  border-radius: 10px;
  background: rgba(201, 148, 58, 0.05);
}
.gp-cat-coming-soon .gp-coming-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 6px;
}
.gp-cat-coming-soon p {
  margin: 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Social links ========== */
.gp-social {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 18px;
}
.gp-social a {
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}
.gp-social a:hover { transform: translateY(-2px); }

.gp-social-dark a  { color: rgba(255,255,255,0.35); }
.gp-social-dark a:hover { color: rgba(255,255,255,0.85); }

.gp-social-light a { color: var(--text-muted); }
.gp-social-light a:hover { color: var(--accent); }

.gp-menu-footer {
  text-align: center; padding: 28px 28px 36px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}
.gp-menu-footer-brand {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 14px; color: var(--text-muted); margin-bottom: 4px;
}

/* ========== Unavailable ========== */
.gp-unavailable {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px;
  text-align: center;
}
.gp-unavailable-card {
  max-width: 380px;
}
.gp-unavailable-icon {
  font-size: 36px; color: var(--accent);
  letter-spacing: 8px; margin-bottom: 18px;
}
.gp-unavailable h1 {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 26px; font-weight: 500; margin: 0 0 12px;
}
.gp-unavailable p {
  color: var(--text-muted); font-size: 14px; line-height: 1.55;
}

/* ========== Dock flotante (canción · chat · mesero) ========== */
/* Sustituye al botón único de la esquina. La gente ya venía usando el
   flotante de "Pedir canción", así que los tres viven en el mismo lugar. */
.gp-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex; justify-content: center; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(247,245,240,0.97) 55%, rgba(247,245,240,0));
  pointer-events: none;
}
.gp-dock-btn {
  pointer-events: auto;
  flex: 1 1 0; min-width: 0; max-width: 170px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 10px;
  background: var(--brand-primary);
  color: var(--accent-light);
  text-decoration: none; border: 0;
  border-radius: 999px;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22), 0 0 0 1px rgba(240,188,104,0.28);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.gp-dock-btn:active { transform: translateY(1px); }
.gp-dock-btn .gp-dock-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--accent); color: var(--brand-primary);
  border-radius: 50%; font-size: 12px;
}
.gp-dock-btn .gp-dock-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Aviso de que hay algo nuevo en el chat */
.gp-dock-btn .gp-dock-dot {
  position: absolute; top: 6px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #E24C4C; box-shadow: 0 0 0 2px var(--brand-primary);
}
.gp-dock-btn { position: relative; }
.gp-menu-footer { padding-bottom: 92px !important; }

@media (max-width: 359px) {
  .gp-dock-btn { font-size: 12px; padding: 10px 8px; gap: 5px; }
}

/* ========== Panel deslizante ========== */
.gp-sheet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(11,35,24,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.gp-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.gp-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; flex-direction: column;
  max-height: 82vh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  transform: translateY(101%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.gp-sheet.is-open { transform: translateY(0); }
.gp-sheet-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.gp-sheet-title {
  flex: 1; min-width: 0;
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 18px; color: var(--text-primary);
}
.gp-sheet-sub {
  display: block; font-family: "DM Sans", sans-serif; font-style: normal;
  font-size: 11.5px; color: var(--text-muted); margin-top: 2px;
}
.gp-sheet-close {
  flex-shrink: 0; width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: var(--body-bg); color: var(--text-muted);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.gp-sheet-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.gp-sheet-foot {
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
}

/* ========== Chat ========== */
.gp-chat-msg { margin-bottom: 12px; }
.gp-chat-who {
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
}
.gp-chat-when { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.gp-chat-body {
  font-family: "DM Sans", sans-serif; font-size: 14.5px;
  color: var(--text-primary); line-height: 1.45;
  margin-top: 2px; word-break: break-word;
}
.gp-chat-msg.is-mine .gp-chat-who { color: var(--brand-primary); }
.gp-chat-empty {
  text-align: center; color: var(--text-muted);
  font-size: 13.5px; padding: 26px 10px; line-height: 1.5;
}
.gp-chat-form { display: flex; gap: 8px; align-items: center; }
.gp-input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle); border-radius: 999px;
  background: var(--body-bg); color: var(--text-primary);
  font-family: "DM Sans", sans-serif; font-size: 15px; /* 15px+: iOS no hace zoom */
  outline: none;
}
.gp-input:focus { border-color: var(--accent); }
.gp-send {
  flex-shrink: 0; width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: var(--brand-primary); color: var(--accent-light);
  font-size: 16px; cursor: pointer;
}
.gp-send:disabled { opacity: 0.45; }
.gp-note {
  font-family: "DM Sans", sans-serif; font-size: 12px;
  margin-top: 8px; text-align: center; min-height: 16px;
}
.gp-note.is-error { color: #A32B2B; }
.gp-note.is-ok { color: #1A5C35; }

/* ========== Llamar al mesero ========== */
.gp-call-lead {
  font-family: "DM Sans", sans-serif; font-size: 14px;
  color: var(--text-muted); line-height: 1.5; margin-bottom: 14px;
}
.gp-call-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.gp-chip {
  border: 1px solid var(--border-subtle); background: var(--body-bg);
  color: var(--text-muted); border-radius: 999px;
  padding: 6px 13px; font-family: "DM Sans", sans-serif; font-size: 13px;
  cursor: pointer;
}
.gp-chip:active { border-color: var(--accent); color: var(--text-primary); }
.gp-btn-primary {
  width: 100%; margin-top: 16px; padding: 13px;
  border: 0; border-radius: 999px;
  background: var(--brand-primary); color: var(--accent-light);
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer;
}
.gp-btn-primary:disabled { opacity: 0.5; }
.gp-call-done { text-align: center; padding: 22px 10px; }
.gp-call-done-ico {
  font-size: 34px; color: var(--accent); margin-bottom: 10px;
}
.gp-call-done h4 {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: 20px; margin: 0 0 6px; color: var(--text-primary);
}
.gp-call-done p {
  font-family: "DM Sans", sans-serif; font-size: 14px;
  color: var(--text-muted); margin: 0; line-height: 1.5;
}

/* ========== Pill de perfil / Perla Coins (topbar) ========== */
/* Antes vivía en el hub; ahora es el único acceso al perfil desde la carta. */
.gp-menu-profile {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--border-subtle); border-radius: 999px;
  background: var(--surface); color: var(--text-primary);
  text-decoration: none;
  font-family: "DM Sans", sans-serif; font-size: 12.5px; font-weight: 600;
  transition: border-color .15s;
}
.gp-menu-profile:active { border-color: var(--accent); }
.gp-menu-profile-ico { color: var(--accent); font-size: 13px; }
.gp-menu-profile-txt small { color: var(--text-muted); font-weight: 500; }

/* ========== Banner de juego activo ========== */
/* Reemplaza la acción "Juega y gana" que estaba en el hub. Solo aparece cuando
   la sede tiene un juego corriendo. */
.gp-game-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 20px 0;
  padding: 12px 15px;
  border: 1px solid rgba(201, 148, 58, 0.4); border-radius: 14px;
  background: linear-gradient(120deg, rgba(201,148,58,0.16), rgba(201,148,58,0.05));
  text-decoration: none; color: var(--text-primary);
  transition: transform .15s;
}
.gp-game-banner:active { transform: scale(0.99); }
.gp-game-banner-ico {
  flex-shrink: 0; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--brand-primary);
  color: var(--accent-light); font-size: 16px;
}
.gp-game-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gp-game-banner-txt b { font-family: "Fraunces", serif; font-weight: 600; font-size: 15px; }
.gp-game-banner-txt small {
  color: var(--text-muted); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gp-game-banner-arrow { flex-shrink: 0; color: var(--accent); font-size: 18px; }

/* ========== Popup de identidad (sobre la carta) ========== */
/* La carta ya está pintada detrás; este popup no es una pantalla previa. En
   móvil sube como una hoja desde abajo (sensación de "ya estás dentro"); en
   pantallas anchas queda centrado. */
.gp-id-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 14px;
}
@media (min-width: 480px) { .gp-id-overlay { align-items: center; } }
.gp-id-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 20, 13, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: opacity .25s;
}
.gp-id-card {
  position: relative; width: 100%; max-width: 440px;
  background: linear-gradient(160deg, #0f2e1a, #0b2318);
  color: #fff;
  border: 1px solid rgba(240, 188, 104, 0.28);
  border-radius: 22px;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: gp-id-in .42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gp-id-in {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.gp-id-overlay.is-closing { pointer-events: none; }
.gp-id-overlay.is-closing .gp-id-backdrop { opacity: 0; }
.gp-id-overlay.is-closing .gp-id-card {
  opacity: 0; transform: translateY(18px) scale(0.98);
  transition: opacity .25s, transform .25s;
}
.gp-id-close {
  position: absolute; top: 13px; right: 13px;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.gp-id-kicker {
  margin: 0 0 10px; color: var(--accent-light);
  font-size: 10px; letter-spacing: 0.14em; font-weight: 700;
}
.gp-id-card h2 {
  margin: 0; font-family: "Fraunces", serif; font-weight: 600;
  font-size: 30px; line-height: 1.02; letter-spacing: -0.03em;
}
.gp-id-card h2 em { color: var(--accent-light); font-style: italic; }
.gp-id-copy {
  margin: 12px 0 18px; color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px; line-height: 1.5;
}
.gp-id-form { display: grid; gap: 10px; }
.gp-id-form input {
  width: 100%; height: 52px; box-sizing: border-box;
  border: 1px solid rgba(240, 188, 104, 0.4); border-radius: 12px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  padding: 0 15px; font: 15px "DM Sans", sans-serif; outline: 0;
}
.gp-id-form input::placeholder { color: rgba(255, 255, 255, 0.44); }
.gp-id-form input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(240, 188, 104, 0.14);
}
.gp-id-error { margin: 0; color: #ffb5a5; font-size: 12px; line-height: 1.4; }
.gp-id-primary {
  height: 53px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--brand-primary);
  font: 700 14.5px "DM Sans", sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.gp-id-primary span { font-size: 19px; }
.gp-id-primary:disabled { opacity: 0.6; }
.gp-id-skip {
  height: 42px; border: 0; background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 600 12.5px "DM Sans", sans-serif; cursor: pointer;
}
.gp-id-skip:active { color: var(--accent-light); }

/* ========== Hoja de perfil (sobre la carta) ========== */
/* Reusa .gp-sheet (superficie clara). Aquí van solo los extras del formulario. */
.gp-coin-chip {
  display: flex; gap: 12px; align-items: center;
  padding: 13px; margin-bottom: 4px;
  border: 1px solid rgba(201, 148, 58, 0.3); border-radius: 12px;
  background: rgba(201, 148, 58, 0.08);
}
.gp-coin-chip > span { flex-shrink: 0; color: var(--accent); font-size: 22px; }
.gp-coin-chip b { display: block; font-family: "Fraunces", serif; font-size: 15px; }
.gp-coin-chip small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }

.gp-field-label {
  display: block; margin: 14px 0 6px;
  font-family: "DM Sans", sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-primary);
}
.gp-field-label small { color: var(--text-muted); font-weight: 500; }
.gp-pf-field {
  display: block; width: 100%; box-sizing: border-box;
  height: 48px; padding: 0 14px;
  border: 1px solid var(--border-subtle); border-radius: 12px;
  background: var(--body-bg); color: var(--text-primary);
  font: 15px "DM Sans", sans-serif; outline: 0; /* 15px+: iOS no hace zoom */
}
.gp-pf-field:focus { border-color: var(--accent); }
.gp-consent-row {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 16px 0 4px;
  font-size: 11.5px; line-height: 1.45; color: var(--text-muted);
}
.gp-consent-row input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }
.gp-consent-row a { color: var(--accent); }
.gp-pf-save { margin-top: 18px; }

/* ========== Gente de esta noche ========== */
.gp-social-lead {
  font-family: "DM Sans", sans-serif; font-size: 14.5px;
  color: var(--text-primary); line-height: 1.5; margin: 6px 0 16px;
}
.gp-social-fine {
  font-family: "DM Sans", sans-serif; font-size: 12px;
  color: var(--text-muted); text-align: center; margin-top: 10px;
}
.gp-social-section {
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em;
  margin: 16px 0 8px;
}
.gp-social-section:first-child { margin-top: 4px; }
.gp-social-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--border-subtle);
}
.gp-social-row:last-child { border-bottom: 0; }
.gp-social-row.gp-social-muted { opacity: 0.6; }
.gp-social-name {
  font-family: "DM Sans", sans-serif; font-size: 14.5px; font-weight: 500;
  color: var(--text-primary); min-width: 0; word-break: break-word;
}
.gp-social-wait {
  font-family: "DM Sans", sans-serif; font-size: 12px; color: var(--text-muted);
  flex-shrink: 0;
}
.gp-social-actions { display: flex; gap: 6px; flex-shrink: 0; }
.gp-social-greet, .gp-social-open, .gp-social-yes, .gp-social-no {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px;
  font-family: "DM Sans", sans-serif; font-size: 12.5px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border-subtle);
  background: var(--body-bg); color: var(--text-primary);
}
.gp-social-greet, .gp-social-open, .gp-social-yes {
  background: var(--brand-primary); color: var(--accent-light); border-color: transparent;
}
.gp-social-unread {
  display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 6px;
  border-radius: 999px; background: var(--accent); color: #14261C;
  font-size: 11px; font-weight: 700; text-align: center;
}
.gp-social-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.gp-social-back {
  border: 0; background: none; cursor: pointer; padding: 0;
  font-family: "DM Sans", sans-serif; font-size: 13.5px; color: var(--text-muted);
}
.gp-social-chat-name {
  font-family: "DM Sans", sans-serif; font-size: 14.5px; font-weight: 600;
  color: var(--text-primary);
}
.gp-dm { margin-bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; }
.gp-dm.is-mine { align-items: flex-end; }
.gp-dm-body {
  max-width: 80%; padding: 9px 13px; border-radius: 16px;
  background: var(--body-bg); color: var(--text-primary);
  font-family: "DM Sans", sans-serif; font-size: 14.5px; line-height: 1.45;
  word-break: break-word;
}
.gp-dm.is-mine .gp-dm-body { background: var(--brand-primary); color: #F7F5F0; }
.gp-dm-at {
  font-family: "DM Sans", sans-serif; font-size: 10.5px;
  color: var(--text-muted); margin-top: 3px;
}
/* Bloquear se ve, pero no compite con enviar: quien lo necesita lo encuentra. */
.gp-social-block {
  display: block; width: 100%; margin-top: 8px; padding: 8px;
  border: 0; background: none; cursor: pointer;
  font-family: "DM Sans", sans-serif; font-size: 12px; color: var(--text-muted);
  text-decoration: underline;
}

/* Un nombre al que se puede saludar se ve tocable, pero sin gritar: el chat
   sigue siendo lo principal. */
.gp-chat-who.is-greetable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.gp-chat-who.is-greetable::after {
  content: " ✦";
  font-size: 9px;
  vertical-align: super;
}

/* Barra de conversaciones privadas, sobre el chat de la sala. */
.gp-dm-bar {
  display: flex; gap: 6px; align-items: center;
  padding: 9px 14px; overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--body-bg);
  -webkit-overflow-scrolling: touch;
}
.gp-dm-bar::-webkit-scrollbar { display: none; }
.gp-dm-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-subtle); background: var(--surface);
  font-family: "DM Sans", sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-primary); cursor: pointer;
}
.gp-dm-chip.is-request {
  cursor: default; background: var(--surface);
  border-color: var(--accent); gap: 8px;
}
.gp-dm-chip.is-waiting { cursor: default; opacity: 0.6; font-weight: 500; }

/* `display: block` en una regla propia gana al `hidden` del navegador, que solo
   aplica `display: none` desde la hoja de usuario. Sin esto, un elemento con el
   atributo puesto se sigue viendo. */
.gp-social-block[hidden],
.gp-dm-bar[hidden] { display: none; }

