/* LIZZYLANDIA · cuenta de jugador e invitados (docs/CUENTAS.md) y el menú ☰: la portada de entrada,
   «Elegí cómo jugar», la confirmación del pago, el festejo, las hojas deslizables (menú, «Activá tu
   cuenta», «Cómo se juega»), la píldora del invitado, los candados del HUD y el cartel del holograma.
   Mismos tokens que lizzy.css (rosa, oro, crema) más el violeta de la marca. Celular primero; las
   animaciones son sólo de transform y opacidad, y con «reducir movimiento» quedan quietas. */
:root {
  --violet: #9b6bff;
  --violet-2: #c9a6ff;
  --holo: #86ecff;
  --brand-grad: linear-gradient(135deg, #ffd0e4, #ff5c9d 35%, #c9a6ff 68%, #f6d896);
  --glass-tint: linear-gradient(160deg, rgba(255, 135, 189, 0.2), rgba(155, 107, 255, 0.14) 48%, rgba(227, 183, 99, 0.12));
}

/* ---------- pantallas de la portada (fondo animado) ---------- */
.screen.portal { display: flex; flex-direction: column; align-items: center; background: #14081a; isolation: isolate; }
.portal-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 50% 112%, rgba(255, 92, 157, 0.34), transparent 60%),
    radial-gradient(900px 620px at -6% -4%, rgba(155, 107, 255, 0.32), transparent 62%),
    radial-gradient(760px 560px at 106% 6%, rgba(227, 183, 99, 0.22), transparent 60%),
    linear-gradient(180deg, #2b1131 0%, #190a1f 52%, #100d12 100%);
}
.portal-bg .glow { position: absolute; display: block; width: 72vmax; height: 72vmax; border-radius: 50%; will-change: transform; }
.portal-bg .glow.a { left: -26vmax; top: -30vmax; background: radial-gradient(circle, rgba(255, 135, 189, 0.42), rgba(255, 135, 189, 0) 64%); animation: glow-a 19s ease-in-out infinite alternate; }
.portal-bg .glow.b { right: -30vmax; bottom: -34vmax; background: radial-gradient(circle, rgba(155, 107, 255, 0.4), rgba(155, 107, 255, 0) 64%); animation: glow-b 23s ease-in-out infinite alternate; }
.portal-bg .glow.c { left: 34%; top: 30%; width: 48vmax; height: 48vmax; background: radial-gradient(circle, rgba(246, 216, 150, 0.22), rgba(246, 216, 150, 0) 64%); animation: glow-c 27s ease-in-out infinite alternate; }
.portal-bg .veil { position: absolute; inset: 0; display: block; background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(10, 4, 12, 0.45) 100%); }
@keyframes glow-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.1); } }
@keyframes glow-b { to { transform: translate3d(-12vmax, -9vmax, 0) scale(1.08); } }
@keyframes glow-c { to { transform: translate3d(-18vmax, 8vmax, 0) scale(0.9); } }
.portal-bg .float {
  position: absolute; left: var(--x); bottom: -8vh; font-size: var(--s); line-height: 1; opacity: 0; will-change: transform, opacity;
  filter: drop-shadow(0 0 10px rgba(255, 135, 189, 0.55)); animation: float-up var(--d) linear var(--delay) infinite;
}
.portal-bg .float.star { color: var(--gold-2); filter: drop-shadow(0 0 8px rgba(246, 216, 150, 0.8)); }
@keyframes float-up {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: var(--o); }
  80% { opacity: var(--o); }
  100% { transform: translate3d(var(--sway), -118vh, 0) rotate(var(--rot)); opacity: 0; }
}
.portal-bg .confetti { position: absolute; top: -5vh; left: var(--x); width: 9px; height: 15px; border-radius: 2px; background: var(--c); will-change: transform; animation: confetti-fall var(--d) linear var(--delay) infinite; }
@keyframes confetti-fall { to { transform: translate3d(var(--sway), 112vh, 0) rotate(var(--rot)); } }

/* ---------- portada: banner, «en vivo», tarjeta de ingreso y lo que hay adentro ---------- */
.portal-layout {
  position: relative; width: min(1080px, 100%); margin: auto 0; display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: 'brand' 'tag' 'live' 'card' 'feats'; justify-items: center;
}
.portal-layout > .portal-brand { grid-area: brand; }
.portal-layout > .portal-tagline { grid-area: tag; }
.portal-layout > .portal-live { grid-area: live; }
.portal-layout > .portal-card { grid-area: card; }
.portal-layout > .portal-feats { grid-area: feats; }
.portal-brand { max-width: 100%; }
.portal-brand .brand-logo { width: min(340px, 86vw); }
.portal-brand.small .brand-logo { width: min(300px, 76vw); }
/* un emoji dentro de un texto con degradé: con sus colores (si no, queda como silueta) */
.emo { color: initial; -webkit-text-fill-color: initial; }
.portal-tagline {
  margin: -2px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(18px, 4.6vw, 34px);
  background: linear-gradient(90deg, #ffd0e4, #ff87bd 45%, #f6d896); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portal-live { display: flex; justify-content: center; max-width: 100%; }
.live-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin: 0; padding: 8px 16px; max-width: 100%;
  border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--cream); text-align: center;
  background: rgba(34, 16, 38, 0.72); border: 1px solid rgba(255, 210, 230, 0.24); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.live-badge.on { color: #dcffee; border-color: rgba(127, 227, 180, 0.75); background: linear-gradient(180deg, rgba(22, 70, 50, 0.88), rgba(14, 42, 32, 0.9)); animation: live-badge 2.4s ease-in-out infinite; }
@keyframes live-badge { 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 26px rgba(61, 255, 154, 0.45); } }
.live-badge .fans { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.28); color: var(--pink-2); font-weight: 650; }
.portal-card {
  position: relative; width: 100%; max-width: 440px; padding: 22px 20px 18px; border-radius: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 55%), rgba(38, 16, 40, 0.9);
  border: 1px solid rgba(255, 214, 234, 0.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.portal-card h2 {
  margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 6vw, 30px);
  background: linear-gradient(90deg, #ffe0ee, #ff87bd 55%, #f6d896); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portal-lead { margin: 0 0 4px; color: var(--muted); line-height: 1.45; font-size: 14.5px; }
.portal-lead b { color: var(--pink-2); }
.portal-card .field { margin: 12px 0; }
.portal-card .field input[type='text'], .portal-card .field input[type='password'] { min-height: 50px; font-size: 16px; background: rgba(10, 4, 12, 0.5); border-color: rgba(255, 214, 234, 0.24); }
.portal-card .field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 135, 189, 0.25); }
.portal-card .pass-row .reveal { min-height: 50px; }
.portal-card .check { margin: 10px 0 6px; font-size: 14.5px; }
.portal-go {
  min-height: 54px; font-size: 18px; letter-spacing: 0.02em; color: #3a0f24;
  background: linear-gradient(100deg, #ffd0e4, #ff87bd 30%, #ff5c9d 50%, #ff87bd 70%, #ffd0e4) 0 0 / 220% 100%;
  animation: go-shine 5s ease-in-out infinite;
}
.btn.primary.portal-go:hover { background: linear-gradient(100deg, #ffe0ee, #ff9cc9 30%, #ff6fa9 50%, #ff9cc9 70%, #ffe0ee) 0 0 / 220% 100%; }
@keyframes go-shine { 50% { background-position: 100% 0; } }
.portal-note { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.portal-feats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.portal-feats li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-weight: 650; font-size: 13.5px; color: var(--pink-2);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 214, 234, 0.2);
}
/* botón ocupado: un círculo que gira en lugar del texto */
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(58, 15, 36, 0.25); border-top-color: #3a0f24; animation: spin 0.8s linear infinite; }
@media (min-width: 861px) {
  .portal-layout {
    gap: 14px 56px; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); justify-items: start;
    grid-template-areas: '. card' 'brand card' 'tag card' 'live card' 'feats card' '. card'; grid-template-rows: 1fr auto auto auto auto 1fr;
  }
  .portal-card { grid-row: 1 / -1; align-self: center; padding: 28px 26px 22px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 55%), rgba(36, 14, 38, 0.66); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
  .portal-brand .brand-logo { width: min(540px, 100%); }
  .portal-tagline { text-align: left; }
  .portal-live, .portal-feats { justify-content: flex-start; }
}

/* ---------- «Elegí cómo jugar» ---------- */
.entry-layout { position: relative; width: min(940px, 100%); margin: auto 0; display: grid; justify-items: center; gap: 10px; }
.entry-title {
  margin: 2px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 7vw, 48px); line-height: 1.1;
  background: linear-gradient(90deg, #ffe0ee, #ff87bd 50%, #f6d896); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.entry-sub { margin: 0; text-align: center; color: var(--pink-2); font-weight: 650; }
.entry-note { margin: 0; max-width: 640px; padding: 10px 14px; border-radius: 14px; text-align: center; font-weight: 650; line-height: 1.4; }
.entry-note.warn { color: #ffdbe1; background: rgba(255, 122, 143, 0.14); border: 1px solid rgba(255, 122, 143, 0.55); }
.entry-cards { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 14px; align-items: stretch; }
@media (min-width: 761px) { .entry-cards { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }

/* tarjetas de la oferta (también en la hoja de activación) */
.offer-card {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 18px; border-radius: 26px;
  background: rgba(30, 14, 34, 0.84); border: 1px solid rgba(255, 210, 230, 0.2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}
.offer-card.player {
  border: 1.5px solid transparent;
  background: linear-gradient(170deg, rgba(78, 28, 70, 0.97), rgba(34, 14, 40, 0.97)) padding-box, var(--brand-grad) border-box;
  box-shadow: 0 24px 70px rgba(255, 92, 157, 0.32);
}
.offer-card.player.featured { animation: card-glow 4s ease-in-out infinite; }
@keyframes card-glow { 50% { box-shadow: 0 24px 80px rgba(255, 92, 157, 0.5), 0 0 0 4px rgba(255, 135, 189, 0.08); } }
.offer-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  color: #3a2408; background: linear-gradient(180deg, #ffe6a8, #e3b763); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(227, 183, 99, 0.45);
}
.offer-name { margin: 0; font-family: var(--serif); font-size: 26px; color: var(--cream); }
.offer-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; color: var(--muted); font-weight: 650; }
.offer-price span { white-space: nowrap; }
.offer-price b { font-family: var(--serif); font-size: 42px; line-height: 1.05; color: #fff; text-shadow: 0 0 26px rgba(255, 135, 189, 0.55); font-variant-numeric: tabular-nums; }
.offer-price b.soon, .offer-card.guest .offer-price b { font-size: 30px; color: var(--pink-2); text-shadow: none; }
.offer-price b.soon { color: var(--gold-2); }
.offer-bonus { margin: 0; color: var(--gold-2); font-weight: 750; }
.perks { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; align-items: center; gap: 10px; font-weight: 650; line-height: 1.3; color: var(--cream); }
.perks .pi { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; background: rgba(255, 255, 255, 0.09); }
.perks li.ok .pi { color: #7fe3b4; font-weight: 900; }
.perks li.no { color: var(--muted); }
.perks li.no .pi { color: #ff9aa9; font-weight: 900; }
.offer-go { margin-top: auto; min-height: 54px; font-size: 18px; }
.offer-card .guest-go { margin-top: auto; min-height: 50px; background: rgba(255, 255, 255, 0.08); }
.offer-mp { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.offer-status { margin: 0; text-align: center; font-weight: 700; color: var(--pink-2); }
.offer-status:empty { display: none; }
.offer-status.error { color: var(--danger); }
.offer-soon { margin: auto 0 0; padding: 12px; border-radius: 14px; text-align: center; font-weight: 750; color: var(--gold-2); background: rgba(227, 183, 99, 0.1); border: 1px dashed rgba(227, 183, 99, 0.55); }
.offer-coins { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.4; color: var(--gold-2); background: rgba(227, 183, 99, 0.1); border: 1px solid rgba(227, 183, 99, 0.3); }

/* ---------- confirmando el pago / festejo ---------- */
.check-card, .welcome-card {
  position: relative; margin: auto 0; width: min(480px, 100%); display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 22px 22px; border-radius: 28px;
  background: rgba(32, 14, 36, 0.86); border: 1px solid rgba(255, 210, 230, 0.24); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.check-card .brand-logo { width: min(300px, 76vw); }
.check-card h2 { margin: 0; font-family: var(--serif); font-style: italic; color: var(--pink-2); font-size: 26px; }
.check-status { margin: 0; font-weight: 700; color: var(--cream); }
.check-hint { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.screen.portal.welcome.over { z-index: 45; }
.welcome-card { border: 1.5px solid transparent; background: linear-gradient(170deg, rgba(84, 30, 74, 0.97), rgba(36, 14, 42, 0.97)) padding-box, var(--brand-grad) border-box; animation: welcome-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes welcome-in { from { transform: scale(0.85) translateY(20px); opacity: 0; } }
.welcome-burst { font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 24px rgba(255, 135, 189, 0.7)); animation: burst 1.1s ease-out; }
@keyframes burst { 0% { transform: scale(0.2) rotate(-30deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1); } }
.welcome-card h1 {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 8vw, 44px); line-height: 1.1;
  background: linear-gradient(90deg, #ffe0ee, #ff87bd 50%, #f6d896); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.welcome-card p { margin: 0; color: var(--cream); line-height: 1.45; }
.welcome-bonus { color: var(--gold-2) !important; font-weight: 800; font-size: 18px; }
.welcome-next { color: var(--pink-2) !important; font-weight: 700; margin-top: 4px !important; }
.welcome-card .btn { margin-top: 8px; min-height: 52px; font-size: 17px; }

/* ---------- hojas deslizables (menú, activación, «Cómo se juega») ---------- */
/* entran y salen con animaciones de transform/opacidad: arrancan apenas se dibujan (aunque el mundo
   esté ocupado cargando un modelo) y las corre el compositor */
.sheet-back {
  position: absolute; inset: 0; top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100%); z-index: 32; display: flex;
  background: rgba(12, 6, 14, 0.52); animation: sheet-dim 0.3s ease both;
}
.sheet-back.out { pointer-events: none; animation: sheet-undim 0.24s ease both; }
@keyframes sheet-dim { from { background: rgba(12, 6, 14, 0); } }
@keyframes sheet-undim { to { background: rgba(12, 6, 14, 0); } }
.sheet {
  position: relative; display: flex; flex-direction: column; min-height: 0; color: var(--cream); outline: none;
  background: var(--glass-tint), rgba(28, 12, 30, 0.82); border: 1px solid rgba(255, 214, 234, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.sheet-back.side-auto { justify-content: flex-end; }
.side-auto .sheet { width: min(420px, 100%); height: 100%; border-radius: 28px 0 0 28px; border-right: 0; padding: var(--safe-t) var(--safe-r) var(--safe-b) 0; animation: sheet-in-right 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; }
.side-auto.out .sheet { animation: sheet-out-right 0.24s ease-in both; }
.sheet-back.side-center { align-items: center; justify-content: center; padding: 16px; }
.side-center .sheet { width: min(480px, 100%); max-height: calc(100% - 16px); border-radius: 28px; animation: sheet-in-center 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
.side-center.out .sheet { animation: sheet-out-center 0.22s ease-in both; }
@keyframes sheet-in-right { from { transform: translateX(104%); } }
@keyframes sheet-out-right { to { transform: translateX(104%); } }
@keyframes sheet-in-center { from { transform: translateY(26px) scale(0.96); opacity: 0; } }
@keyframes sheet-out-center { to { transform: translateY(18px) scale(0.97); opacity: 0; } }
@keyframes sheet-in-up { from { transform: translateY(104%); } }
@keyframes sheet-out-down { to { transform: translateY(104%); } }
.sheet-grip { display: none; }
.sheet-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 16px 12px 20px; }
.sheet-head > :first-child { flex: 1; min-width: 0; }
.sheet-title { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--pink-2); }
.sheet-x { flex: none; background: rgba(255, 255, 255, 0.09); }
.sheet-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px 20px 22px; }
@media (max-width: 640px) {
  .sheet-back.side-auto, .sheet-back.side-center { align-items: flex-end; justify-content: stretch; padding: 0; }
  .side-auto .sheet, .side-center .sheet {
    width: 100%; height: auto; max-height: calc(100% - 28px - var(--safe-t)); border-radius: 26px 26px 0 0; border: 1px solid rgba(255, 214, 234, 0.28); border-bottom: 0;
    padding: 0 var(--safe-r) var(--safe-b) var(--safe-l); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: var(--glass-tint), rgba(28, 12, 30, 0.9); animation: sheet-in-up 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .side-auto.out .sheet, .side-center.out .sheet { animation: sheet-out-down 0.24s ease-in both; }
  .sheet-grip { display: block; flex: none; width: 46px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
  .sheet-head { padding: 10px 12px 10px 16px; }
  .sheet-body { padding: 2px 16px 18px; }
}

/* ---------- «Activá tu cuenta» ---------- */
.act-head { display: flex; align-items: center; gap: 12px; }
.act-ico { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; font-size: 26px; background: linear-gradient(160deg, rgba(255, 135, 189, 0.38), rgba(155, 107, 255, 0.32)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px rgba(255, 92, 157, 0.25); }
.act-title { font-size: clamp(19px, 5vw, 22px); }
.act-lead { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.act-loading { margin: 6px 0 12px; color: var(--muted); }
.act-sheet .offer-card { margin-top: 4px; padding: 20px 18px 16px; }
.act-sheet .offer-coins { margin-top: 12px; }
.act-later { margin-top: 12px; background: transparent; border-color: rgba(255, 214, 234, 0.24); }

/* ---------- menú ☰ ---------- */
.menu-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-avatar {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(circle at 30% 25%, #ffd0e4, #ff5c9d 60%, #8a2a5e); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 8px 22px rgba(255, 92, 157, 0.4);
}
.menu-avatar.guest { background: radial-gradient(circle at 30% 25%, #d8faff, #6fd6ff 50%, #7a4bd6); box-shadow: 0 0 0 2px rgba(134, 236, 255, 0.65), 0 0 24px rgba(134, 236, 255, 0.5); }
.menu-avatar.lizzy { background: radial-gradient(circle at 30% 25%, #fff1c8, #e3b763 60%, #8a5a1e); box-shadow: 0 0 0 2px rgba(255, 241, 200, 0.6), 0 8px 22px rgba(227, 183, 99, 0.45); }
.menu-avatar.friend { background: radial-gradient(circle at 30% 25%, #efe4ff, #9b6bff 60%, #4a2a8a); }
.menu-id { min-width: 0; display: grid; gap: 5px; }
.menu-name { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.15; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.menu-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; }
.menu-chip.ok { color: #0f3b26; background: linear-gradient(180deg, #b6f7d6, #47e09a); }
.menu-chip.guest { color: #0e2f3c; background: linear-gradient(180deg, #e0fbff, #86ecff); }
.menu-chip.lizzy { color: #3a2408; background: linear-gradient(180deg, #ffe6a8, #e3b763); }
.menu-chip.friend { color: #fff; background: linear-gradient(180deg, #c9a6ff, #9b6bff); }
.menu-activate { position: relative; min-height: 34px; padding: 4px 14px; }
.menu-activate::after { content: ''; position: absolute; inset: -6px -4px; } /* zona de toque de 44 px */
.menu-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; margin: 0 0 14px; }
.menu-stat { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 214, 234, 0.16); min-width: 0; }
.menu-stat .ico { font-size: 18px; line-height: 1; }
.menu-stat b { font-size: 18px; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.menu-stat small { font-size: 11.5px; color: var(--muted); }
.menu-stat.coins b { color: var(--gold-2); }
.menu-stat.gems b { color: #f6dcff; }
.menu-stat.love b { color: #ffb3d1; }
.menu-stat.rank b { color: var(--gold-2); }
.menu-guest-note { margin: -4px 0 14px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; color: #dcf9ff; background: rgba(134, 236, 255, 0.1); border: 1px solid rgba(134, 236, 255, 0.35); }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.menu-tile {
  position: relative; min-width: 0; min-height: 98px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 12px 6px 10px; border-radius: 20px;
  text-align: center; color: var(--cream); background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 214, 234, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); transition: transform 0.14s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
button.menu-tile:hover, a.menu-tile:hover { background: linear-gradient(180deg, rgba(255, 135, 189, 0.24), rgba(255, 255, 255, 0.05)); border-color: rgba(255, 135, 189, 0.6); box-shadow: 0 8px 22px rgba(255, 92, 157, 0.25); }
button.menu-tile:active, a.menu-tile:active { transform: scale(0.96); }
a.menu-tile { text-decoration: none; }
.menu-tile .ico { font-size: 28px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.menu-tile b { font-size: 14px; line-height: 1.15; }
.menu-tile small { font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.menu-tile .lock { position: absolute; top: 7px; right: 8px; font-size: 13px; line-height: 1; }
.menu-tile.locked { border-color: rgba(134, 236, 255, 0.35); }
.menu-tile.locked .ico { opacity: 0.75; }
.menu-tile.locked small { color: #a9efff; }
.menu-tile.settings-tile[aria-expanded='true'] { border-color: var(--gold); background: linear-gradient(180deg, rgba(227, 183, 99, 0.22), rgba(255, 255, 255, 0.03)); }
.menu-tile.out-tile small { color: var(--muted); }
.menu-tile.car-tile { grid-column: 1 / -1; min-height: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; padding: 12px 14px; text-align: left; }
.menu-tile.car-tile label { cursor: pointer; }
.menu-tile.car-tile select { flex: 1 1 180px; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(255, 214, 234, 0.3); background: rgba(10, 4, 12, 0.55); color: var(--cream); font-weight: 650; }
.menu-settings { margin-top: 14px; padding: 14px; display: grid; gap: 12px; border-radius: 20px; background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 214, 234, 0.16); }
.set-row { display: grid; gap: 8px; }
.set-label { font-weight: 750; font-size: 14px; color: var(--pink-2); }
.set-hint { margin: -6px 0 0; font-size: 12px; color: var(--muted); }
.set-title { margin: 6px 0 -4px; font-family: var(--serif); font-size: 17px; color: var(--pink-2); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 214, 234, 0.14); }
.seg-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 4px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 750; font-size: 13px; line-height: 1.15; transition: background 0.2s ease, color 0.2s ease; }
.seg-btn[aria-pressed='true'] { color: #3a0f24; background: linear-gradient(180deg, #ffd0e4, #ff87bd); box-shadow: 0 4px 14px rgba(255, 92, 157, 0.35); }
.set-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 30px; margin: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 214, 234, 0.28); transition: background 0.2s ease; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.switch:checked { background: linear-gradient(90deg, #ff87bd, #ff5c9d); border-color: transparent; }
.switch:checked::after { transform: translateX(22px); }
.vol-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px; align-items: center; gap: 10px; min-height: 44px; }
.vol-label { font-weight: 700; font-size: 14px; white-space: nowrap; }
.vol-out { text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type='range'].vol { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.vol::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #ff87bd, #e3b763) 0 0 / var(--p, 50%) 100% no-repeat, rgba(255, 255, 255, 0.16); }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid #ff5c9d; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.vol::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); }
.vol::-moz-range-progress { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #ff87bd, #e3b763); }
.vol::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #ff5c9d; }
.vol:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 8px; }
.menu-note { margin: 16px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
@media (max-width: 360px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vol-row { grid-template-columns: 78px minmax(0, 1fr) 42px; gap: 8px; }
}

/* ---------- «Cómo se juega» ---------- */
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 214, 234, 0.16); }
.howto-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 24px; background: linear-gradient(160deg, rgba(255, 135, 189, 0.32), rgba(155, 107, 255, 0.26)); }
.howto b { display: block; margin-bottom: 2px; font-size: 15.5px; color: var(--cream); }
.howto p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- invitado en el HUD ---------- */
.pill.guest-pill {
  position: relative; gap: 7px; cursor: pointer; color: #e6fbff; border-color: rgba(134, 236, 255, 0.75);
  background: linear-gradient(180deg, rgba(30, 62, 86, 0.9), rgba(30, 22, 60, 0.92)); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 16px rgba(134, 236, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.pill.guest-pill:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 24px rgba(134, 236, 255, 0.6); }
.pill.guest-pill:active { transform: scale(0.97); }
.pill.guest-pill::after { content: ''; position: absolute; inset: -5px -2px; } /* zona de toque de 44 px */
.pill.guest-pill .go { padding: 3px 10px; border-radius: 999px; color: #3a0f24; background: linear-gradient(180deg, #ffd0e4, #ff87bd); font-size: 12.5px; font-weight: 800; }
@media (max-width: 640px) {
  .hud-top .pill.guest-pill { padding: 3px 4px 3px 9px; gap: 5px; flex: none; }
  .pill.guest-pill .go { padding: 3px 8px; font-size: 12px; }
}
/* en pantallas muy angostas el resto de las píldoras se esconde (live.css): la del invitado queda */
@media (max-width: 360px) {
  .hud-top .pill.guest-pill:not([hidden]) { display: inline-flex !important; }
  .pill.guest-pill .who { display: none; }
}
.tab-btn .lock { position: absolute; top: -6px; left: -4px; padding: 3px 4px; border-radius: 999px; font-size: 11px; line-height: 1; background: rgba(16, 13, 18, 0.88); border: 1px solid rgba(134, 236, 255, 0.65); box-shadow: 0 0 8px rgba(134, 236, 255, 0.45); }
.tab-btn.locked .ico, .tab-btn.locked .lbl, .tab-btn.locked .lbl-short { opacity: 0.75; }
.hud-bottom .tab-btn.locked.primary { background: linear-gradient(180deg, rgba(255, 208, 228, 0.78), rgba(255, 135, 189, 0.78)); }
.hud-bottom .tab-btn.locked.call { animation: none; }
/* aviso con botón (por ejemplo «Activar»): se puede tocar */
.toast.has-action { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.toast.has-action .toast-text { flex: 1; min-width: 0; }
.toast.has-action .btn { flex: none; }
/* panel del cofre siendo invitado: lo minado y la invitación a no perderlo */
.guest-banner { flex: none; display: flex; align-items: center; gap: 10px; margin: 12px 18px 0; padding: 10px 12px; border-radius: 16px; background: linear-gradient(90deg, rgba(134, 236, 255, 0.14), rgba(255, 135, 189, 0.14)); border: 1px solid rgba(134, 236, 255, 0.45); }
.guest-banner > span { font-size: 20px; }
.guest-banner p { flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; color: #e6fbff; }
/* cartel del holograma del invitado (el propio y el de los demás) */
.name-tag.guest { color: #effdff; border: 1px solid rgba(200, 245, 255, 0.75); background: linear-gradient(90deg, rgba(48, 150, 196, 0.78), rgba(190, 84, 166, 0.78)); box-shadow: 0 0 12px rgba(134, 236, 255, 0.6); }
.name-tag.guest::before { content: '👤 '; }

@media (prefers-reduced-motion: reduce) {
  .portal-bg .float, .portal-bg .confetti { display: none; }
  .portal-bg .glow, .live-badge.on, .offer-card.player.featured, .portal-go { animation: none; }
}
