/*
 * La carta digital. Los colores vienen de menu-themes.css (una temática a la
 * vez); aquí solo hay forma. Todo se lee con el pulgar: objetivos de 44 px,
 * una portada corta y un panel por categoría en vez de doce pantallas.
 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  background: var(--body-bg);
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.gp-panel-open { overflow: hidden; }
.gp-hidden { display: none !important; }
[hidden] { display: none !important; }

.gp-menu { position: relative; z-index: 1; min-height: 100vh; padding-bottom: 96px; }

/* ========== Barra superior ========== */
.gp-menu-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--body-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.gp-brand-logo { display: block; width: auto; height: 32px; max-width: 150px; object-fit: contain; }
html.is-dark .gp-brand-logo { filter: brightness(0) invert(1); opacity: .92; }

/* ========== Portada: saludo + buscador ========== */
.gp-hero {
  position: relative; overflow: hidden;
  margin: 12px 14px 0; padding: 22px 20px 18px;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--hero-a), var(--hero-b));
  color: var(--hero-ink);
  box-shadow: 0 16px 40px var(--shadow);
}
.gp-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gp-hero > * { position: relative; z-index: 1; }
.gp-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.gp-hero-kicker span { font-size: 13px; }
.gp-hero h1 {
  margin: 0; font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(28px, 8.4vw, 36px); line-height: 1.02; letter-spacing: -.02em;
  text-wrap: balance;
}
.gp-hero h1 em { font-style: italic; color: var(--accent-light); }
.gp-hero-sub { margin: 9px 0 0; font-size: 14px; line-height: 1.45; opacity: .82; max-width: 34ch; }
.gp-hero-anim { animation: gp-rise .6s cubic-bezier(.16, 1, .3, 1) both; }
.gp-hero-anim:nth-child(2) { animation-delay: .06s; }
.gp-hero-anim:nth-child(3) { animation-delay: .12s; }
.gp-hero-anim:nth-child(4) { animation-delay: .18s; }
@keyframes gp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.gp-search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 0 14px; height: 50px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--hero-ink); transition: background .2s, border-color .2s;
}
.gp-search:focus-within { background: rgba(255, 255, 255, 0.22); border-color: var(--accent-light); }
.gp-search svg { flex: none; width: 18px; height: 18px; opacity: .8; }
.gp-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0;
  color: inherit; font: 16px "DM Sans", sans-serif; /* 16px: iOS no hace zoom */
}
.gp-search input::placeholder { color: inherit; opacity: .62; }

/* Chips de categorías dentro del hero: se deslizan con el pulgar. */
.gp-hero-chips {
  display: flex; gap: 8px; margin: 12px -20px 0; padding: 0 20px 2px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 20px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.gp-hero-chips::-webkit-scrollbar { display: none; }
.gp-hero-chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.26);
  color: inherit; font: 600 13px "DM Sans", sans-serif; white-space: nowrap; cursor: pointer;
  transition: background .15s;
}
.gp-hero-chip:active { background: rgba(255, 255, 255, 0.3); }
.gp-hero-chip span { font-size: 14px; }

/* ========== Resultados del buscador ========== */
.gp-search-results { padding: 12px 14px 0; display: grid; gap: 8px; }
.gp-search-empty { margin: 8px 6px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.gp-hit {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 14px; min-height: 56px; border-radius: 14px; text-align: left;
  border: 1px solid var(--border-subtle); background: var(--surface); color: var(--text-primary);
  font: inherit; cursor: pointer;
}
.gp-hit:active { border-color: var(--accent); }
.gp-hit-main { display: grid; gap: 2px; min-width: 0; }
.gp-hit-main b { font-family: "Fraunces", serif; font-weight: 500; font-size: 15px; }
.gp-hit-main small { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-hit-price { flex: none; font-family: "Fraunces", serif; font-weight: 600; color: var(--accent); }

/* ========== Secciones de la portada ========== */
.gp-section { margin-top: 22px; }
.gp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 18px 10px; }
.gp-section-head h2 { margin: 0; font-family: "Fraunces", serif; font-weight: 500; font-style: italic; font-size: 19px; }
.gp-section-head small { font-size: 11.5px; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

/* Tira horizontal de destacados: se desliza con el pulgar. */
.gp-strip {
  display: flex; gap: 10px; padding: 2px 14px 6px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 14px; scrollbar-width: none;
}
.gp-strip::-webkit-scrollbar { display: none; }
.gp-card {
  flex: 0 0 168px; scroll-snap-align: start;
  display: grid; gap: 6px; align-content: space-between;
  min-height: 120px; padding: 14px 14px 12px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--border-subtle); color: var(--text-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  font: inherit; cursor: pointer;
}
.gp-card:active { transform: scale(.985); }
.gp-card small { font-size: 10.5px; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.gp-card b {
  font-family: "Fraunces", serif; font-weight: 500; font-size: 15px; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-card-price { display: flex; align-items: baseline; gap: 6px; font-family: "Fraunces", serif; font-weight: 600; color: var(--accent); }
.gp-card-price s { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.gp-card--promo { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-subtle)); background: linear-gradient(160deg, var(--glow), var(--surface) 60%); }
.gp-card-rank {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-primary); color: var(--on-brand); font-size: 11px; font-weight: 700;
}

/* Las categorías como tarjetas: dos por fila, una lectura. */
.gp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.gp-cat-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  min-height: 78px; padding: 14px 12px 12px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--border-subtle); color: var(--text-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  font: inherit; cursor: pointer; text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.gp-cat-card:active { transform: scale(.985); border-color: var(--accent); }
.gp-cat-card .gp-cat-glyph {
  grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glow); font-size: 20px;
}
.gp-cat-card b { font-family: "Fraunces", serif; font-weight: 500; font-size: 15px; line-height: 1.15; }
.gp-cat-card small { font-size: 11.5px; color: var(--text-muted); }
.gp-cat-card.is-soon { opacity: .55; }
.gp-cat-card--wide { grid-column: 1 / -1; }

/* ========== El panel de una categoría ========== */
.gp-panel {
  position: fixed; inset: 0; z-index: 65;
  display: flex; flex-direction: column;
  background: var(--body-bg);
  animation: gp-panel-in .28s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes gp-panel-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.gp-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px;
  background: var(--body-bg); border-bottom: 1px solid var(--border-subtle);
}
.gp-panel-back {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-subtle);
  background: var(--surface); color: var(--text-primary); font-size: 18px; cursor: pointer;
}
.gp-panel-title { flex: 1; min-width: 0; margin: 0; font-family: "Fraunces", serif; font-style: italic; font-weight: 500; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-panel-tabs {
  display: flex; gap: 6px; padding: 8px 14px 10px; overflow-x: auto; scrollbar-width: none;
  background: var(--body-bg); border-bottom: 1px solid var(--border-subtle);
}
.gp-panel-tabs::-webkit-scrollbar { display: none; }
.gp-panel-tab {
  flex: none; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border-subtle);
  background: var(--surface); color: var(--text-muted); font: 600 12.5px "DM Sans", sans-serif; cursor: pointer;
  white-space: nowrap;
}
.gp-panel-tab.is-on { background: var(--brand-primary); color: var(--on-brand); border-color: var(--brand-primary); }
.gp-panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 110px; }

/* ========== Los productos ========== */
.gp-cat-header { padding: 18px 20px 4px; }
.gp-cat-header h3 { margin: 0; font-family: "Fraunces", serif; font-size: 24px; font-weight: 500; font-style: italic; }
.gp-cat-header p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted); }
.gp-items { padding: 6px 20px 24px; }
.gp-item { padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.gp-item:last-child { border-bottom: 0; }
.gp-item-row { display: flex; align-items: baseline; gap: 6px; }
.gp-item-name { font-family: "Fraunces", serif; font-size: 16px; font-weight: 500; line-height: 1.2; }
.gp-item-promo {
  display: inline-block; margin-left: 8px; padding: 1px 8px; vertical-align: middle; white-space: nowrap;
  font: 700 10px "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-primary); background: var(--accent-light); border-radius: 999px;
}
.gp-leader { flex: 1; border-bottom: 1.5px dotted var(--accent); transform: translateY(-4px); margin: 0 4px; opacity: .6; }
.gp-item-price { font-family: "Fraunces", serif; font-size: 15px; font-weight: 600; white-space: nowrap; }
.gp-item-price-was { text-decoration: line-through; color: var(--text-muted); font-size: .8em; margin-right: 6px; font-weight: 400; }
.gp-item-price-now { color: var(--accent); }
.gp-item-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
.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 color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 12px; background: var(--glow);
}
.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 auto; color: var(--text-muted); font-style: italic; font-size: 13.5px; line-height: 1.5; max-width: 360px; }

/* ========== Social links / pie ========== */
.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 .2s, transform .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 20px; margin-top: 26px; border-top: 1px solid var(--border-subtle); }
.gp-menu-footer-brand { font-family: "Fraunces", serif; font-style: italic; font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }

/* ========== Carta no disponible ========== */
.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) ========== */
.gp-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; justify-content: center; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, color-mix(in srgb, var(--body-bg) 97%, transparent) 55%, transparent);
  pointer-events: none;
}
.gp-dock-btn {
  position: relative; pointer-events: auto;
  flex: 1 1 0; min-width: 0; max-width: 170px; min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 10px; border: 0; border-radius: 999px;
  background: var(--brand-primary); color: var(--on-brand); text-decoration: none;
  font: 600 13px "DM Sans", sans-serif;
  box-shadow: 0 8px 22px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--on-brand) 30%, transparent);
  transition: transform .15s, box-shadow .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; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px;
  background: var(--accent); color: var(--brand-primary);
}
.gp-dock-btn .gp-dock-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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);
}
@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: 75; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity .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); color: var(--text-primary);
  border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(101%); transition: transform .26s cubic-bezier(.16, 1, .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; margin: 0; font-family: "Fraunces", serif; font-style: italic; font-size: 18px; font-weight: 500; 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: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); 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: 600 11px "DM Sans", sans-serif; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.gp-chat-when { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.gp-chat-body { font: 14.5px/1.45 "DM Sans", sans-serif; color: var(--text-primary); margin-top: 2px; word-break: break-word; }
.gp-chat-msg.is-mine .gp-chat-who { color: var(--text-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: 12px 14px; min-height: 46px;
  border: 1px solid var(--border-subtle); border-radius: 999px;
  background: var(--surface-2); color: var(--text-primary);
  font: 16px "DM Sans", sans-serif; outline: none;
}
.gp-input::placeholder { color: var(--text-muted); }
.gp-input:focus { border-color: var(--accent); }
.gp-send { flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--brand-primary); color: var(--on-brand); font-size: 16px; cursor: pointer; }
.gp-send:disabled { opacity: .45; }
.gp-note { font: 12px "DM Sans", sans-serif; margin-top: 8px; text-align: center; min-height: 16px; }
.gp-note.is-error { color: #D2493F; }
.gp-note.is-ok { color: #2E9E5B; }

/* ========== Llamar al mesero ========== */
.gp-call-lead { font: 14px/1.5 "DM Sans", sans-serif; color: var(--text-muted); margin: 0 0 14px; }
.gp-call-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.gp-chip { border: 1px solid var(--border-subtle); background: var(--surface-2); color: var(--text-muted); border-radius: 999px; padding: 8px 14px; min-height: 36px; font: 13px "DM Sans", sans-serif; cursor: pointer; }
.gp-chip:active { border-color: var(--accent); color: var(--text-primary); }
.gp-btn-primary { width: 100%; margin-top: 16px; padding: 14px; min-height: 50px; border: 0; border-radius: 999px; background: var(--brand-primary); color: var(--on-brand); font: 600 15px "DM Sans", sans-serif; cursor: pointer; }
.gp-btn-primary:disabled { opacity: .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: 14px/1.5 "DM Sans", sans-serif; color: var(--text-muted); margin: 0; }

/* ========== Pill de perfil / Perla Coins ========== */
.gp-menu-profile {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; min-height: 38px; border: 1px solid var(--border-subtle); border-radius: 999px;
  background: var(--surface); color: var(--text-primary); text-decoration: none;
  font: 600 12.5px "DM Sans", sans-serif; 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 ========== */
.gp-game-banner {
  display: flex; align-items: center; gap: 12px; margin: 14px 14px 0; padding: 12px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 14px;
  background: linear-gradient(120deg, var(--glow), transparent); text-decoration: none; color: var(--text-primary);
  transition: transform .15s;
}
.gp-game-banner:active { transform: scale(.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(--on-brand); 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; }

/* ========== Invitación a calificar la noche ==========
 * Abre la encuesta como hoja, ahí mismo (menu-rating.js). Con alguien en
 * cabina lleva sus estrellas: tocar una ya es calificar. */
.gp-rate-banner {
  margin: 14px 14px 0; padding: 12px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 14px;
  background: linear-gradient(120deg, var(--glow), transparent); color: var(--text-primary);
}
.gp-rate-banner--stage {
  border-color: transparent; color: var(--hero-ink);
  background: linear-gradient(150deg, var(--hero-a), var(--hero-b)); box-shadow: 0 10px 26px var(--shadow);
}
.gp-rate-banner-main {
  display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none;
  transition: transform .15s;
}
.gp-rate-banner-main:active { transform: scale(.99); }
.gp-rate-banner-stars { display: flex; justify-content: space-between; max-width: 300px; margin: 8px 0 -4px 46px; }
.gp-rate-banner-stars .gp-star {
  flex: none; width: 44px; height: 44px; padding: 7px; border: 0; border-radius: 12px;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gp-rate-banner-stars .gp-star svg {
  display: block; width: 100%; height: 100%; fill: transparent;
  stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; stroke-linejoin: round; transition: transform .15s;
}
.gp-rate-banner-stars .gp-star:active svg { transform: scale(.86); fill: var(--accent-light); stroke: var(--accent-light); }
.gp-rate-banner-stars .gp-star:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.gp-rate-banner-ico {
  flex-shrink: 0; width: 42px; height: 42px; overflow: hidden; display: grid; place-items: center; border-radius: 12px;
  background: var(--brand-primary); color: var(--on-brand); font-size: 16px;
}
.gp-rate-banner--stage .gp-rate-banner-ico {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--accent-light); font-family: "Fraunces", serif; font-weight: 600;
}
.gp-rate-banner-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-rate-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gp-rate-banner-txt b { font-family: "Fraunces", serif; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.gp-rate-banner-txt small { font-size: 11.5px; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-rate-banner-go { flex-shrink: 0; color: var(--accent); font-size: 12px; letter-spacing: 1px; }
.gp-rate-banner--stage .gp-rate-banner-go { color: var(--accent-light); }

/* ========== Popup de identidad (sobre la carta) ========== */
.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(0, 0, 0, 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, var(--hero-b), var(--hero-a)); color: var(--hero-ink);
  border: 1px solid color-mix(in srgb, var(--accent-light) 30%, transparent); 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(.16, 1, .3, 1) both;
}
@keyframes gp-id-in { from { opacity: 0; transform: translateY(28px) scale(.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(.98); transition: opacity .25s, transform .25s; }
.gp-id-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1; cursor: pointer; }
.gp-id-kicker { margin: 0 0 10px; color: var(--accent-light); font-size: 10px; letter-spacing: .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: -.03em; }
.gp-id-card h2 em { color: var(--accent-light); font-style: italic; }
.gp-id-copy { margin: 12px 0 18px; opacity: .78; font-size: 13.5px; line-height: 1.5; }
.gp-id-form { display: grid; gap: 10px; }
.gp-id-form input {
  width: 100%; height: 52px; border: 1px solid color-mix(in srgb, var(--accent-light) 40%, transparent); border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); color: inherit; padding: 0 15px; font: 16px "DM Sans", sans-serif; outline: 0;
}
.gp-id-form input::placeholder { color: inherit; opacity: .5; }
.gp-id-form input:focus { border-color: var(--accent-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-light) 18%, transparent); }
.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-light); 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: .6; }
.gp-id-skip { height: 42px; border: 0; background: transparent; color: inherit; opacity: .6; font: 600 12.5px "DM Sans", sans-serif; cursor: pointer; }
.gp-id-skip:active { opacity: 1; }

/* ========== Hoja de perfil ========== */
.gp-coin-chip { display: flex; gap: 12px; align-items: center; padding: 13px; margin-bottom: 4px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 12px; background: var(--glow); }
.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: 600 12.5px "DM Sans", sans-serif; color: var(--text-primary); }
.gp-field-label small { color: var(--text-muted); font-weight: 500; }
.gp-pf-field { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-2); color: var(--text-primary); font: 16px "DM Sans", sans-serif; outline: 0; }
.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: 14.5px/1.5 "DM Sans", sans-serif; color: var(--text-primary); margin: 6px 0 16px; }
.gp-social-fine { font: 12px "DM Sans", sans-serif; color: var(--text-muted); text-align: center; margin-top: 10px; }
.gp-social-section { font: 600 11px "DM Sans", sans-serif; color: var(--accent); text-transform: uppercase; letter-spacing: .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: .6; }
.gp-social-name { font: 500 14.5px "DM Sans", sans-serif; color: var(--text-primary); min-width: 0; word-break: break-word; }
.gp-social-wait { font: 12px "DM Sans", sans-serif; 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: 8px 14px; min-height: 36px; border-radius: 999px; font: 600 12.5px "DM Sans", sans-serif; cursor: pointer;
  border: 1px solid var(--border-subtle); background: var(--surface-2); color: var(--text-primary);
}
.gp-social-greet, .gp-social-open, .gp-social-yes { background: var(--brand-primary); color: var(--on-brand); 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: #fff; 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: 13.5px "DM Sans", sans-serif; color: var(--text-muted); }
.gp-social-chat-name { font: 600 14.5px "DM Sans", sans-serif; 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(--surface-2); color: var(--text-primary); font: 14.5px/1.45 "DM Sans", sans-serif; word-break: break-word; }
.gp-dm.is-mine .gp-dm-body { background: var(--brand-primary); color: var(--on-brand); }
.gp-dm-at { font: 10.5px "DM Sans", sans-serif; color: var(--text-muted); margin-top: 3px; }
.gp-social-block { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 0; background: none; cursor: pointer; font: 12px "DM Sans", sans-serif; color: var(--text-muted); text-decoration: underline; }
.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; }
.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(--surface-2); -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: 7px 12px; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface); font: 600 12.5px "DM Sans", sans-serif; color: var(--text-primary); cursor: pointer; }
.gp-dm-chip.is-request { cursor: default; border-color: var(--accent); gap: 8px; }
.gp-dm-chip.is-waiting { cursor: default; opacity: .6; font-weight: 500; }

/* ========== ¿En qué piso estás? ========== */
.gp-floor-overlay { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 18px; }
.gp-floor-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.gp-floor-card {
  position: relative; width: 100%; max-width: 400px; text-align: center;
  background: linear-gradient(160deg, var(--hero-b), var(--hero-a)); color: var(--hero-ink);
  border: 1px solid color-mix(in srgb, var(--accent-light) 30%, transparent); border-radius: 22px;
  padding: 30px 22px calc(26px + env(safe-area-inset-bottom)); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: gp-id-in .42s cubic-bezier(.16, 1, .3, 1) both;
}
.gp-floor-title { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.gp-floor-lead { font-size: .9rem; opacity: .75; margin: 0 0 20px; }
.gp-floor-options { display: flex; flex-direction: column; gap: 11px; }
.gp-floor-btn { min-height: 62px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--accent-light) 40%, transparent); background: rgba(255, 255, 255, 0.1); color: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.gp-floor-btn:active { background: rgba(255, 255, 255, 0.22); }

/* ========== Escritorio: la carta centrada, como un teléfono grande ========== */
@media (min-width: 720px) {
  .gp-menu, .gp-panel-head, .gp-panel-tabs, .gp-panel-body > * { max-width: 680px; margin-left: auto; margin-right: auto; }
  .gp-panel-body > .gp-cat { max-width: 680px; margin: 0 auto; }
  .gp-dock { padding-bottom: 16px; }
  .gp-sheet { left: 50%; right: auto; width: 560px; transform: translate(-50%, 101%); border-radius: 20px 20px 0 0; }
  .gp-sheet.is-open { transform: translate(-50%, 0); }
}
