/* ============================================================
   Juegos de fiesta — hoja de estilo unica
   Movil primero. Oscuro siempre: se juega de noche.
   ============================================================ */

:root {
  --fondo: #0b0a14;
  --fondo-2: #131120;
  --superficie: rgba(255, 255, 255, 0.045);
  --superficie-2: rgba(255, 255, 255, 0.08);
  --borde: rgba(255, 255, 255, 0.1);
  --borde-fuerte: rgba(255, 255, 255, 0.2);
  --texto: #f4f2ff;
  --tenue: #a39fbd;
  --tenue-2: #726e8c;

  --acento: #7c5cff;
  --acento-2: #b18cff;
  --acento-sombra: rgba(124, 92, 255, 0.45);

  --bien: #3ddc97;
  --mal: #ff5c7a;
  --oro: #ffc93c;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --sombra: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  --ancho: 640px;
  --gap: 14px;
}

body[data-tema='impostor'] {
  --acento: #9d6bff;
  --acento-2: #c4a3ff;
  --acento-sombra: rgba(157, 107, 255, 0.45);
}
body[data-tema='probable'] {
  --acento: #ff6b9d;
  --acento-2: #ffa8c5;
  --acento-sombra: rgba(255, 107, 157, 0.45);
}
body[data-tema='cien'] {
  --acento: #2fd3a5;
  --acento-2: #8af0d3;
  --acento-sombra: rgba(47, 211, 165, 0.4);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Un display explicito le gana al display:none implicito de [hidden]. */
[hidden] { display: none !important; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Mancha de color al fondo: cambia con el juego activo. */
.halo {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 50% at 50% -10%, var(--acento-sombra) 0%, transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(124, 92, 255, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--fondo) 0%, var(--fondo-2) 100%);
  transition: background 0.6s ease;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

/* ------------------------------------------------------------- barra --- */

.barra {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(11, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde);
}

.barra-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  font-size: 18px;
  flex: 0 0 auto;
}
.barra-btn:active { transform: scale(0.94); }

.barra-codigo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 17px;
}
.barra-codigo-et {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--tenue-2);
  font-weight: 700;
}

.barra-jugadores {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}
.barra-jugadores span {
  font-size: 19px;
  filter: grayscale(1) opacity(0.35);
  transition: filter 0.25s;
}
.barra-jugadores span.on { filter: none; }

/* ---------------------------------------------------------- contenedor --- */

main {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.pila { display: grid; gap: var(--gap); }
.centrado { text-align: center; }

.tenue { color: var(--tenue); }
.mini { font-size: 13px; }
.et {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tenue-2);
}

.tarjeta {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--r-l);
  padding: 20px;
}

/* ------------------------------------------------------------ botones --- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--r-m);
  background: var(--superficie-2);
  border: 1px solid var(--borde);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.12s, background 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primario {
  background: linear-gradient(135deg, var(--acento), var(--acento-2));
  border-color: transparent;
  color: #14101f;
  box-shadow: 0 12px 28px -12px var(--acento-sombra);
}
.btn-fantasma { background: transparent; }
.btn-peligro { color: var(--mal); border-color: rgba(255, 92, 122, 0.3); }
.btn-chico { padding: 11px 16px; font-size: 14px; width: auto; }

.fila { display: flex; gap: 10px; }
.fila > * { flex: 1; }

/* ------------------------------------------------------------ campos --- */

.campo {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--r-m);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--borde);
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo:focus {
  border-color: var(--acento);
  box-shadow: 0 0 0 4px var(--acento-sombra);
}
.campo::placeholder { color: var(--tenue-2); }

.campo-codigo {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  padding-left: 0.4em;
}

/* ------------------------------------------------------------- inicio --- */

.portada {
  padding: 26px 0 8px;
  text-align: center;
}
.portada h1 {
  font-size: clamp(40px, 13vw, 60px);
  font-weight: 900;
  background: linear-gradient(120deg, #fff 10%, var(--acento-2) 60%, var(--acento) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.portada p { margin: 10px auto 0; max-width: 30ch; color: var(--tenue); }

.emojis-portada {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 30px;
  margin-bottom: 6px;
}
.emojis-portada span { animation: flota 3.4s ease-in-out infinite; }
.emojis-portada span:nth-child(2) { animation-delay: 0.35s; }
.emojis-portada span:nth-child(3) { animation-delay: 0.7s; }
@keyframes flota {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.avatares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
}
.avatar-op {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.avatar-op[aria-pressed='true'] {
  border-color: var(--acento);
  background: var(--acento-sombra);
  transform: scale(1.06);
}

/* -------------------------------------------------------------- lobby --- */

.codigo-grande {
  display: block;
  width: 100%;
  text-align: center;
  padding: 18px;
  border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px dashed var(--borde-fuerte);
}
.codigo-grande b {
  display: block;
  font-size: clamp(44px, 15vw, 64px);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-indent: 0.16em;
  background: linear-gradient(120deg, #fff, var(--acento-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jugadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.jug {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 12px 6px 10px;
  border-radius: var(--r-m);
  background: var(--superficie);
  border: 1px solid var(--borde);
  transition: border-color 0.2s, opacity 0.2s, transform 0.15s;
}
.jug-emoji { font-size: 28px; line-height: 1.2; }
.jug-nombre {
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jug-puntos { font-size: 11px; color: var(--tenue); font-weight: 700; }
.jug.off { opacity: 0.38; }
.jug.yo { border-color: var(--acento); }
.jug .corona {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 15px;
  transform: rotate(14deg);
}
.jug .listo {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 13px;
}
.jug-expulsar {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
  display: none;
}
body.host .jug:not(.yo) .jug-expulsar { display: block; }

/* tarjetas de juego del lobby */
.juego-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--r-l);
  background: var(--superficie);
  border: 1px solid var(--borde);
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.juego-card:active { transform: scale(0.985); }
.juego-card[aria-expanded='true'] { border-color: var(--acento); background: var(--superficie-2); }
.juego-card .ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}
.juego-card h3 { font-size: 17px; }
.juego-card p { margin: 3px 0 0; font-size: 13px; color: var(--tenue); line-height: 1.35; }
.juego-card .flecha { color: var(--tenue-2); font-size: 20px; }

.ajustes {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-top: -6px;
  border-radius: 0 0 var(--r-l) var(--r-l);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--borde);
  border-top: 0;
  animation: abrir 0.22s ease;
}
@keyframes abrir {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.ajuste { display: grid; gap: 7px; }
.ajuste > .et { margin-bottom: -2px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* Con muchas opciones (las 20 categorías del impostor) la lista empujaba el
   botón de empezar fuera de la pantalla. Se le da alto fijo y scroll propio:
   el morph del DOM conserva el nodo, así que la posición del scroll sobrevive
   a los repintados mientras el anfitrión elige. */
.chips-lista {
  max-height: 186px;
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--r-m);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--borde);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.chips-lista::-webkit-scrollbar { width: 5px; }
.chips-lista::-webkit-scrollbar-thumb {
  background: var(--borde-fuerte);
  border-radius: 3px;
}
.chip {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] {
  background: var(--acento);
  border-color: transparent;
  color: #16121f;
  font-weight: 800;
}

/* -------------------------------------------------------- cabecera juego --- */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.cabecera .et { color: var(--acento-2); }

.reloj {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-weight: 800;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  background:
    conic-gradient(var(--acento) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  position: relative;
}
.reloj::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--fondo-2);
}
.reloj span { position: relative; }
.reloj.urgente { animation: latir 1s ease-in-out infinite; color: var(--mal); }
@keyframes latir {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

.pregunta {
  font-size: clamp(23px, 6.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ------------------------------------------------------------ impostor --- */

.carta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px;
  border-radius: var(--r-xl);
  text-align: center;
  background: linear-gradient(165deg, rgba(157, 107, 255, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--borde-fuerte);
  overflow: hidden;
  user-select: none;
}
.carta.tapada { cursor: pointer; }
.carta.tapada::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 12px, transparent 12px 24px);
}
.carta-tapa { display: grid; gap: 10px; justify-items: center; position: relative; z-index: 1; }
.carta-tapa .ojo { font-size: 54px; }

.carta-palabra {
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.carta-impostor {
  background: linear-gradient(165deg, rgba(255, 92, 122, 0.22), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 92, 122, 0.45);
}
.carta-impostor .carta-palabra { color: #ff8fa3; }

.turnos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.turnos::-webkit-scrollbar { display: none; }
.turno {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--superficie);
  border: 1px solid transparent;
  font-size: 11px;
  color: var(--tenue);
  min-width: 60px;
}
.turno .em { font-size: 21px; }
.turno.activo {
  border-color: var(--acento);
  background: var(--acento-sombra);
  color: var(--texto);
}
.turno.hecho { opacity: 0.5; }

.pistas { display: grid; gap: 8px; }
.pista {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-m);
  background: var(--superficie);
  border: 1px solid var(--borde);
  animation: entrar 0.3s ease;
}
.pista .em { font-size: 21px; }
.pista b { font-size: 17px; }
.pista .quien { font-size: 12px; color: var(--tenue); margin-left: auto; }
@keyframes entrar {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- votar / grid --- */

.votos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.voto-op {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 16px 8px;
  border-radius: var(--r-m);
  background: var(--superficie);
  border: 1px solid var(--borde);
  transition: transform 0.14s, border-color 0.2s, background 0.2s;
}
.voto-op:active { transform: scale(0.96); }
.voto-op .em { font-size: 30px; }
.voto-op .nom { font-size: 13px; font-weight: 700; }
.voto-op[aria-pressed='true'] {
  border-color: var(--acento);
  background: var(--acento-sombra);
}
.voto-op:disabled { opacity: 0.35; }
.voto-op .marca { font-size: 11px; color: var(--acento-2); font-weight: 700; min-height: 15px; }

/* barras de resultados */
.barras { display: grid; gap: 10px; }
.barra-fila {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
}
.barra-fila .em { font-size: 24px; }
.barra-pista {
  position: relative;
  height: 34px;
  border-radius: 10px;
  background: var(--superficie);
  overflow: hidden;
}
.barra-relleno {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--acento), var(--acento-2));
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.barra-texto {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13.5px;
  color: #1a1424;
  mix-blend-mode: normal;
}
.barra-fila.cero .barra-texto { color: var(--tenue); }
.barra-votantes { font-size: 15px; letter-spacing: -2px; }

/* --------------------------------------------------------------- cien --- */

.panel-cien { display: grid; gap: 8px; }
.casilla {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--r-m);
  background: var(--superficie);
  border: 1px solid var(--borde);
  min-height: 54px;
  transition: background 0.3s, border-color 0.3s;
}
.casilla .num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  color: var(--tenue);
}
.casilla .txt { font-weight: 700; font-size: 16px; }
.casilla .pts {
  font-weight: 900;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--acento-2);
}
.casilla.oculta .txt {
  display: flex;
  gap: 5px;
}
.casilla.oculta .txt i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
}
.casilla.revelada {
  background: linear-gradient(90deg, var(--acento-sombra), var(--superficie));
  border-color: var(--acento);
  animation: destello 0.55s ease;
}
.casilla.perdida { opacity: 0.55; }
.casilla .por { font-size: 17px; }
@keyframes destello {
  0% { transform: scale(0.97); box-shadow: 0 0 0 0 var(--acento-sombra); }
  60% { box-shadow: 0 0 0 12px transparent; }
  100% { transform: scale(1); }
}

.feed { display: grid; gap: 6px; max-height: 180px; overflow-y: auto; }
.feed-it {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13.5px;
  animation: entrar 0.25s ease;
}
.feed-it.si { color: var(--bien); background: rgba(61, 220, 151, 0.1); }
.feed-it.no { color: var(--tenue); }
.feed-it .pt { margin-left: auto; font-weight: 800; }

/* ------------------------------------------------------------ podio --- */

.podio { display: grid; gap: 10px; }
.podio-fila {
  display: grid;
  grid-template-columns: 40px 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-m);
  background: var(--superficie);
  border: 1px solid var(--borde);
}
.podio-fila .pos { font-size: 20px; font-weight: 900; color: var(--tenue-2); text-align: center; }
.podio-fila .em { font-size: 24px; }
.podio-fila .nom { font-weight: 700; }
.podio-fila .pts { font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums; }
.podio-fila.p1 {
  background: linear-gradient(90deg, rgba(255, 201, 60, 0.22), var(--superficie));
  border-color: rgba(255, 201, 60, 0.5);
}
.podio-fila.p1 .pos { color: var(--oro); }

/* ----------------------------------------------------------- veredicto --- */

.veredicto {
  padding: 26px 20px;
  border-radius: var(--r-xl);
  text-align: center;
  border: 1px solid var(--borde-fuerte);
  background: var(--superficie);
}
.veredicto.ganan-tripulantes {
  background: linear-gradient(165deg, rgba(61, 220, 151, 0.18), rgba(255, 255, 255, 0.03));
  border-color: rgba(61, 220, 151, 0.45);
}
.veredicto.ganan-impostores {
  background: linear-gradient(165deg, rgba(255, 92, 122, 0.18), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 92, 122, 0.45);
}
.veredicto .icono { font-size: 46px; line-height: 1; }
.veredicto h2 { font-size: 27px; margin: 10px 0 6px; }
.veredicto .palabra-era {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 800;
  font-size: 18px;
}

.quienes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.quien-chip {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--r-m);
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
}
.quien-chip .em { font-size: 26px; }
.quien-chip .sum { color: var(--bien); font-size: 12px; }

/* -------------------------------------------------------------- menu --- */

.menu { position: fixed; inset: 0; z-index: 60; }
.menu-fondo { position: absolute; inset: 0; background: rgba(4, 3, 10, 0.7); backdrop-filter: blur(3px); }
.menu-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--ancho));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--fondo-2);
  border: 1px solid var(--borde);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  animation: subir 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes subir {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}
.menu-titulo { font-size: 15px; color: var(--tenue); margin-bottom: 6px; }
.menu-titulo span { color: var(--texto); letter-spacing: 0.12em; }
.menu-item {
  text-align: left;
  padding: 15px 18px;
  border-radius: var(--r-m);
  background: var(--superficie);
  border: 1px solid var(--borde);
  font-weight: 600;
}
.menu-item-peligro { color: var(--mal); }
.menu-cerrar { padding: 14px; color: var(--tenue); font-weight: 700; }
body:not(.host) .host-solo { display: none; }

/* ------------------------------------------------------------ brindis --- */

.brindis {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
  width: min(92%, 460px);
}
.brindis-it {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(20, 18, 32, 0.95);
  border: 1px solid var(--borde-fuerte);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sombra);
  animation: brindar 0.3s ease;
  text-align: center;
}
.brindis-it.malo { border-color: rgba(255, 92, 122, 0.5); color: #ffb3c0; }
@keyframes brindar {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ varios --- */

.aviso-sala {
  padding: 11px 16px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--borde);
  font-size: 13.5px;
  color: var(--tenue);
  text-align: center;
}

.esperando {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: var(--tenue);
  font-weight: 600;
}
.puntos-anim { display: inline-flex; gap: 3px; }
.puntos-anim i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acento);
  animation: pulso 1.2s ease-in-out infinite;
}
.puntos-anim i:nth-child(2) { animation-delay: 0.18s; }
.puntos-anim i:nth-child(3) { animation-delay: 0.36s; }
@keyframes pulso {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.desconectado {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(6, 5, 12, 0.92);
  text-align: center;
  padding: 24px;
}

hr.sep { border: 0; border-top: 1px solid var(--borde); margin: 4px 0; }

@media (min-width: 560px) {
  main { padding: 26px 20px 48px; }
  .jugadores-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.01ms !important;
  }
}
