/* =====================================================================
   LOBBY (menú principal) · interfaz v3
   Arriba: tu perfil, novedades/ideas/Discord/donar y monedas. Izquierda: menú. Centro: tu Pokémon.
   Derecha: pase, modo y ¡JUGAR!. Sin cajas de fondo: el mapa se ve detrás.
   ===================================================================== */
#lobby {
  padding: 0;
  align-items: stretch;
  background: radial-gradient(85% 75% at 50% 55%, rgba(8, 12, 32, 0.12), rgba(4, 7, 20, 0.7));
}
.lb {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(11.5rem, 16.5rem) minmax(0, 1fr) minmax(12.5rem, 17.5rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: 'top top top' 'left center right' 'bottom bottom bottom';
  gap: 0.6rem 1.1rem;
  padding: max(0.65rem, var(--sat)) calc(0.9rem + var(--sar)) max(0.3rem, var(--sab)) calc(0.9rem + var(--sal));
}

/* ------------------------------------------------------------------ barra de arriba */
.lb-top { grid-area: top; position: relative; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.profile-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto; /* lo demás, a la derecha */
  min-width: 0;
  max-width: 17rem;
  padding: 0.25rem 0.9rem 0.25rem 0.25rem;
  text-align: left;
  color: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--sh-1);
  transition: filter 0.15s, transform 0.1s;
}
.profile-chip:hover { filter: brightness(1.15); }
.profile-chip:active { transform: scale(0.97); }
.profile-chip > img {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  image-rendering: pixelated;
  background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 0.14rem var(--yel);
}
.profile-chip > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.profile-chip b { font-family: var(--f-disp); font-weight: 400; font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-chip small { display: flex; align-items: center; gap: 0.2rem; font-family: var(--f-disp); font-size: 1.1rem; color: var(--yel); }
.profile-chip small img { width: 1rem; height: 1rem; image-rendering: pixelated; }
.pf-streak { margin-left: 0.35rem; color: #ffb347; }

.lb-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
  text-align: center;
  font-family: var(--f-disp);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--yel);
  letter-spacing: 0.02em;
  text-shadow: 0 0.12rem 0 #2a5bb0, 0.12rem 0 0 #2a5bb0, -0.12rem 0 0 #2a5bb0, 0 -0.12rem 0 #2a5bb0, 0 0.35rem 0 #102a64, 0 0 1.4rem rgba(255, 203, 5, 0.25);
  white-space: nowrap;
}
.lb-title span { color: #fff; margin-left: 0.15em; }
.lb-top-icons { display: none; }

/* novedades, ideas y fallos, Discord y donar: botones pequeños con icono (con texto en pantallas anchas) */
.donate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0 0.55rem;
  flex: none;
  font-family: var(--f-disp);
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  background: var(--glass);
  box-shadow: var(--sh-1);
  transition: filter 0.15s, transform 0.1s;
}
.donate-btn:hover { filter: brightness(1.2); }
.donate-btn:active { transform: scale(0.94); }
.donate-btn span { display: none; white-space: nowrap; }
.donate-btn .pxi { width: 1.45rem; height: 1.45rem; }
.dc-btn { background: linear-gradient(180deg, #6a76ff, #4a55e0); border-color: transparent; }
.dc-btn .dc-logo { width: 1.45rem; height: 1.1rem; flex: none; }
/* «¡Nuevo evento!»: lleva al Discord, donde está el tráiler */
.ev-banner { flex: none; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--r-m); animation: ev-glow 2.4s ease-in-out infinite; transition: transform 0.12s, filter 0.15s; }
.ev-banner img { display: block; width: 100%; height: auto; border-radius: var(--r-m); }
.ev-banner:hover { filter: brightness(1.12); }
.ev-banner:active { transform: scale(0.97); }
@keyframes ev-glow { 50% { box-shadow: 0 0 1rem rgba(255, 140, 40, 0.7); } }
.nt-btn { border-color: rgba(255, 203, 5, 0.5); }
.fb-btn { border-color: rgba(34, 195, 189, 0.5); }
#btn-donate { border-color: rgba(255, 95, 180, 0.55); }
#btn-donate .pxi { animation: heartbeat 1.6s ease-in-out infinite; }
.lb-money { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.lb-money .icon-btn { width: 2.5rem; height: 2.5rem; }
.lb-money .icon-btn .pxi { width: 1.55rem; height: 1.55rem; }

/* ------------------------------------------------------------------ izquierda: menú */
.lb-left { grid-area: left; display: flex; flex-direction: column; gap: 0.45rem; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 0.45rem 0.45rem 0.2rem 0; margin: -0.45rem -0.45rem 0 0; }
.lb-left::-webkit-scrollbar { display: none; }
.lb-menu { display: flex; flex-direction: column; gap: 0.45rem; }
.tile {
  --c: var(--blu);
  --c-rgb: 63, 123, 255;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.3rem 0.75rem 0.3rem 0.32rem;
  font-family: var(--f-disp);
  font-size: 1.45rem;
  line-height: 1;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(var(--c-rgb), 0.45);
  border-radius: var(--r-m);
  background: linear-gradient(90deg, rgba(var(--c-rgb), 0.34), rgba(11, 17, 38, 0.86) 72%);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 0.1rem 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, filter 0.15s, border-color 0.15s;
}
.tile:hover { filter: brightness(1.14); transform: translateX(0.18rem); }
.tile:active { transform: scale(0.97); }
.tile .ib {
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  background-color: var(--c);
  box-shadow: inset 0 -0.16rem 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0.12rem 0.35rem rgba(0, 0, 0, 0.35);
}
.tile .ib .pxi { width: 1.55rem; height: 1.55rem; filter: drop-shadow(0 0.08rem 0 rgba(0, 0, 0, 0.35)); }
.tile .tl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .badge { top: -0.4rem; right: -0.4rem; }
.sec-green { --c: var(--grn); --c-rgb: 52, 207, 108; }
.sec-yellow { --c: #f5b800; --c-rgb: 255, 203, 5; }
.sec-blue { --c: var(--blu); --c-rgb: 63, 123, 255; }
.sec-pink { --c: var(--pnk); --c-rgb: 255, 95, 180; }
.sec-orange { --c: var(--org); --c-rgb: 255, 138, 42; }
.sec-teal { --c: var(--teal); --c-rgb: 34, 195, 189; }
.sec-red { --c: var(--red); --c-rgb: 239, 65, 54; }
.lb-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.tile.icon { justify-content: center; padding: 0; min-height: 3rem; background: linear-gradient(180deg, rgba(var(--c-rgb), 0.3), rgba(11, 17, 38, 0.86)); }
.tile.icon:hover { transform: translateY(-0.15rem); }
.tile.icon .ib { width: 2.2rem; height: 2.2rem; }

/* Poké Ball y Zona Safari: progreso de fichas */
.chest-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  text-align: left;
  color: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  background: var(--glass);
  box-shadow: var(--sh-1);
  transition: transform 0.12s, filter 0.15s;
}
.chest-widget:hover { filter: brightness(1.15); }
.chest-widget:active { transform: scale(0.98); }
#chest-widget { margin-top: auto; }
.cw-ball {
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.25));
}
.cw-ball img { width: 2.3rem; height: 2.3rem; image-rendering: pixelated; }
.cw-badge { top: -0.4rem; right: -0.4rem; }
.cw-info { flex: 1; display: flex; flex-direction: column; gap: 0.28rem; min-width: 0; }
.cw-info b { font-family: var(--f-disp); font-weight: 400; font-size: 1.25rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-info small { font-size: 0.75rem; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-info .bar { height: 0.5rem; }
.chest-widget.ready { border-color: rgba(255, 203, 5, 0.8); background: linear-gradient(90deg, rgba(255, 203, 5, 0.3), rgba(11, 17, 38, 0.86) 75%); box-shadow: 0 0 1rem rgba(255, 203, 5, 0.35), var(--sh-1); }
.chest-widget.ready .cw-ball img { animation: wobble 1.6s ease-in-out infinite; }
.chest-widget.safari-widget.ready { border-color: rgba(52, 207, 108, 0.8); background: linear-gradient(90deg, rgba(52, 207, 108, 0.3), rgba(11, 17, 38, 0.86) 75%); box-shadow: 0 0 1rem rgba(52, 207, 108, 0.35), var(--sh-1); }
.safari-widget .bar i { background: linear-gradient(90deg, #5ae487, #25b45c); }

/* ------------------------------------------------------------------ centro: tu Pokémon */
.lb-center { grid-area: center; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.lb-center::before { /* foco de luz detrás del Pokémon */
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(42rem, 100%);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 220, 120, 0.2), rgba(255, 220, 120, 0.05) 55%, transparent);
  pointer-events: none;
}
.hero-stage { position: relative; width: min(100%, 48rem, calc((100vh - 11.5rem) * 1.88)); flex: none; }
#hero-cv { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.hero-hit { position: absolute; left: 33%; right: 33%; top: 8%; bottom: 0; background: none; border: 0; cursor: pointer; }
.hero-hit:focus { outline: none; }
.lb-center:hover #hero-cv { filter: drop-shadow(0 0 0.9rem rgba(255, 220, 120, 0.3)); }
.hero-plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: -0.5rem;
  max-width: 100%;
  padding: 0.28rem 0.5rem 0.28rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--sh-1);
}
.hero-plate b { font-family: var(--f-disp); font-weight: 400; font-size: 1.7rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-plate > span:not(.hero-mast) { font-family: var(--f-disp); font-size: 1.15rem; line-height: 1; padding: 0.15rem 0.55rem; color: var(--yel-ink); border-radius: 999px; background: var(--yel); white-space: nowrap; }
.hero-plate > span:empty { display: none; }
.hero-mast { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--f-disp); }
.hero-mast em { font-style: normal; font-size: 1.15rem; }
.hero-mast .mast-ic { width: 1.8rem; height: 2.15rem; margin: -0.6rem 0 -0.45rem; filter: drop-shadow(0 0 0.35rem var(--mc, #ffd23a)); }
.lb-center .hint { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--tx-2); opacity: 0.85; }

/* huecos para invitar amigos a los lados */
.party-slots { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pslot {
  position: absolute;
  bottom: 14%;
  width: 21%;
  height: 46%;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.2rem;
  font: inherit;
  color: #fff;
  border: 2px dashed rgba(255, 255, 255, 0.32);
  border-radius: var(--r-l);
  background: rgba(10, 16, 40, 0.38);
  transition: background 0.15s, border-color 0.15s;
}
.pslot.left { left: 3%; }
.pslot.right { right: 3%; }
.pslot:hover { background: rgba(30, 50, 110, 0.55); border-color: rgba(255, 203, 5, 0.7); }
.pslot .plus { font-family: var(--f-disp); font-size: 2.4rem; line-height: 0.9; color: var(--yel); }
.pslot small { font-size: 0.78rem; color: var(--tx-2); }
.pslot.filled { bottom: 6%; width: 30%; height: 88%; justify-content: flex-end; padding: 0; border: 0; background: none; }
.pslot.left.filled { left: 1%; }
.pslot.right.filled { right: 1%; }
.ptag { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100%; padding: 0.15rem 0.7rem 0.2rem; line-height: 1.05; border-radius: var(--r-s); background: var(--glass); border: 1px solid var(--line-2); }
.ptag b { font-family: var(--f-disp); font-weight: 400; font-size: 1.1rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptag small { font-size: 0.72rem; color: var(--tx-2); }
.pslot.filled.ready .ptag { border-color: rgba(52, 207, 108, 0.7); }
.pslot.filled.ready .ptag small { color: #6ff09a; }
.ptag .crown { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); font-style: normal; color: var(--yel); }
#play.waiting { filter: saturate(0.5) brightness(0.85); }

/* aviso de versión nueva */
.update-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 20;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.45rem 0.4rem 1rem;
  font-size: 0.9rem;
  line-height: 1.25;
  color: #fff6c8;
  border: 1px solid rgba(255, 203, 5, 0.7);
  border-radius: 999px;
  background: rgba(16, 22, 52, 0.96);
  box-shadow: var(--sh-2);
  animation: rowIn 0.3s ease-out both;
}
.update-bar span { min-width: 0; }
.update-bar .act { flex: none; border-radius: 999px; }

/* ------------------------------------------------------------------ derecha: vídeo, pase, modo y JUGAR */
.lb-right { grid-area: right; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.55rem; min-height: 0; }
.vid-promo {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(64, 230, 255, 0.55);
  border-radius: var(--r-m);
  background: linear-gradient(120deg, rgba(64, 230, 255, 0.22), rgba(11, 17, 38, 0.88) 55%, rgba(255, 226, 58, 0.16));
  box-shadow: var(--sh-1), 0 0 0.9rem rgba(64, 230, 255, 0.2);
  transition: transform 0.12s, filter 0.15s;
}
.vid-promo:hover { filter: brightness(1.12); }
.vid-promo:active { transform: scale(0.98); }
.vid-promo .vp-img { width: 2.9rem; height: 2.9rem; flex: none; image-rendering: pixelated; filter: drop-shadow(0 0 0.4rem rgba(255, 230, 60, 0.7)); }
.vid-promo .vp-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.vid-promo .vp-txt small { font-size: 0.68rem; font-weight: 800; color: #6fefff; text-transform: uppercase; letter-spacing: 0.04em; }
.vid-promo .vp-txt b { font-family: var(--f-disp); font-weight: 400; font-size: 1.3rem; color: #ffe23a; }
.vid-promo .vp-txt span { font-size: 0.72rem; color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.pass-btn {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.25rem 0.6rem;
  width: 100%;
  padding: 0.45rem 0.8rem 0.5rem 0.45rem;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(154, 98, 255, 0.6);
  border-radius: var(--r-m);
  background: linear-gradient(110deg, rgba(154, 98, 255, 0.42), rgba(255, 95, 180, 0.22) 60%, rgba(11, 17, 38, 0.86));
  box-shadow: var(--sh-1);
  transition: transform 0.12s, filter 0.15s;
}
.pass-btn:hover { filter: brightness(1.12); }
.pass-btn:active { transform: scale(0.98); }
.pass-btn .pb-medal {
  grid-row: 1 / 3;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  font-family: var(--f-disp);
  font-size: 1.45rem;
  color: var(--yel-ink);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6b0, #f8c830 45%, #b07810);
  box-shadow: 0 0 0 0.14rem #2a1050, 0 0.15rem 0.4rem rgba(0, 0, 0, 0.4);
}
.pass-btn .pb-top { display: flex; align-items: baseline; gap: 0.4rem; line-height: 1; min-width: 0; }
.pass-btn .pb-top b { font-family: var(--f-disp); font-weight: 400; font-size: 1.4rem; }
.pass-btn .pb-top small { font-size: 0.75rem; color: #f3dcff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-btn .bar { height: 0.5rem; }
.pass-btn .bar i { background: linear-gradient(90deg, #6ff09a, #25b45c); }
.pass-btn.ready { border-color: var(--yel); box-shadow: 0 0 1rem rgba(255, 203, 5, 0.45), var(--sh-1); animation: ps-wiggle 2.4s infinite; }
@keyframes ps-wiggle { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-1.2deg); } 96% { transform: rotate(1.2deg); } }

.mode-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  text-align: left;
  color: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(31, 45, 102, 0.92), rgba(15, 22, 52, 0.92));
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.12s, filter 0.15s;
}
.mode-card:hover { filter: brightness(1.14); }
.mode-card:active { transform: scale(0.98); }
.mode-card img { width: 3.3rem; height: 3.3rem; flex: none; image-rendering: pixelated; border-radius: var(--r-s); background: rgba(0, 0, 0, 0.25); }
.mode-card span { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.mode-card small { font-size: 0.72rem; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-card small:first-child { text-transform: uppercase; letter-spacing: 0.05em; color: var(--yel); font-weight: 800; }
.mode-card b { font-family: var(--f-disp); font-weight: 400; font-size: 1.55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-card .mode-live { color: #6ff09a !important; }
.lb-right .big { width: 100%; min-height: 4.4rem; font-size: 2.5rem; padding-left: 3.6rem; }
.lb-right .big::before { width: 2.3rem; height: 2.3rem; left: 0.9rem; }

/* ------------------------------------------------------------------ abajo */
.lb-bottom { grid-area: bottom; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-width: 0; }
.lb-bottom .legal { grid-column: 2; grid-row: 1; }
.legal { margin: 0; font-size: 0.72rem; color: var(--tx-3); line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legal a { color: var(--tx-2); }
.by-link { color: var(--yel); font-weight: 800; }

/* ------------------------------------------------------------------ letrero del evento de Halloween */
.hw-banner {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(100%, 34rem);
  margin: 0 0 0.4rem;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 26, 0.75);
  border-radius: var(--r-l);
  background: radial-gradient(ellipse at 50% 130%, rgba(255, 138, 26, 0.45), transparent 60%), linear-gradient(180deg, #24103a 0%, #3a1240 60%, #561a1a 100%);
  box-shadow: 0 0 1rem rgba(255, 138, 26, 0.35), var(--sh-1);
  transition: transform 0.12s, filter 0.15s;
  container-type: inline-size;
}
.hw-banner:hover { transform: translateY(-0.1rem); filter: brightness(1.1); }
.hw-banner:active { transform: scale(0.98); }
.hw-banner.ready { border-color: var(--yel); box-shadow: 0 0 1.4rem rgba(255, 210, 58, 0.55), var(--sh-1); }
.hwb-mid { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; text-align: center; }
.hwb-title { font-family: var(--f-disp); font-weight: 400; font-size: clamp(1.3rem, 6cqi, 2.2rem); line-height: 1; white-space: nowrap; color: #ffa83a; letter-spacing: 0.04em; text-transform: uppercase; text-shadow: 0 0.15rem 0 #3a0a00, 0 0 0.7rem rgba(255, 122, 0, 0.8); }
.hwb-sub { font-size: 0.78rem; color: #e8c8ff; }
.hwb-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.2rem 0.6rem; font-family: var(--f-disp); font-size: 1.05rem; white-space: nowrap; color: #ffe066; }
.hwb-free { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--grn-2); color: #fff; animation: itPulse 1s ease-in-out infinite; }
.hwb-pump, .hwb-gengar { flex: none; width: 2.7rem; height: auto; image-rendering: pixelated; border-radius: var(--r-s); filter: drop-shadow(0 0 0.35rem rgba(255, 140, 30, 0.7)); animation: hwbBob 1.8s ease-in-out infinite; }
.hwb-gengar { animation-delay: 0.9s; }
.hwb-bat { position: absolute; width: 1.4rem; height: 1.4rem; image-rendering: pixelated; pointer-events: none; opacity: 0.85; animation: hwbBat 7s linear infinite; }
.hwb-bat.b1 { top: 0.1rem; }
.hwb-bat.b2 { top: 30%; animation-duration: 9s; animation-delay: -4s; transform: scale(0.8); }
.hwb-bat.b3 { bottom: 0.2rem; animation-duration: 11s; animation-delay: -7s; }
@keyframes hwbBob { 50% { transform: translateY(-0.2rem) rotate(-3deg); } }
@keyframes hwbBat { 0% { left: -2rem; margin-top: 0; } 25% { margin-top: -0.3rem; } 50% { margin-top: 0.25rem; } 75% { margin-top: -0.2rem; } 100% { left: calc(100% + 2rem); margin-top: 0; } }
@container (max-width: 22rem) { .hwb-title { white-space: normal; text-wrap: balance; } }

/* aviso para instalar la app */
#install-tip { grid-column: 1; grid-row: 1; justify-self: start; display: flex; gap: 0.25rem; min-width: 0; }
#install-tip button { min-height: 1.8rem; padding: 0.1rem 0.7rem; font-family: var(--f-disp); font-size: 1rem; line-height: 1; color: #fff; white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass-2); cursor: pointer; }
#install-tip .it-go { border-color: rgba(255, 203, 5, 0.6); animation: itPulse 2s ease-in-out infinite; }
#install-tip .it-x { padding: 0.1rem 0.55rem; }

/* ------------------------------------------------------------------ tamaños */
/* PC y pantallas grandes: título visible y textos en los botones de arriba */
@media (min-width: 1200px) and (min-height: 640px) {
  .lb { grid-template-columns: minmax(14rem, 17.5rem) minmax(0, 1fr) minmax(15rem, 18.5rem); gap: 0.8rem 1.6rem; }
  .tile { min-height: 3.2rem; }
}
@media (min-width: 1380px) and (min-height: 700px) {
  .donate-btn span { display: inline; }
  .donate-btn { padding: 0 0.75rem 0 0.55rem; }
  .dc-btn { padding: 0 0.6rem; }
}
@media (min-width: 2300px) and (min-height: 900px) {
  .lb-title { display: block; }
}
/* móvil en horizontal (pantallas bajas): todo más compacto */
@media (max-height: 520px) {
  .lb { gap: 0.35rem 0.7rem; grid-template-columns: minmax(10.5rem, 13.5rem) minmax(0, 1fr) minmax(11.5rem, 14rem); padding-top: max(0.4rem, var(--sat)); }
  .lb-left { gap: 0.32rem; }
  .lb-menu { gap: 0.32rem; }
  .lb-icons { gap: 0.32rem; }
  .tile { min-height: 2.75rem; font-size: 1.3rem; gap: 0.45rem; }
  .tile .ib { width: 2rem; height: 2rem; }
  .tile .ib .pxi { width: 1.35rem; height: 1.35rem; }
  .tile.icon { min-height: 2.75rem; }
  .tile.icon .ib { width: 1.95rem; height: 1.95rem; }
  .chest-widget { min-height: 3.05rem; padding: 0.25rem 0.6rem 0.25rem 0.25rem; gap: 0.45rem; }
  .cw-ball { width: 2.5rem; height: 2.5rem; }
  .cw-ball img { width: 2rem; height: 2rem; }
  .cw-info b { font-size: 1.1rem; }
  .cw-info { gap: 0.2rem; }
  .hero-stage { width: min(100%, calc((100vh - 8rem) * 1.88)); }
  .hero-plate { margin-top: -0.7rem; padding: 0.2rem 0.4rem 0.2rem 0.8rem; }
  .hero-plate b { font-size: 1.45rem; }
  .lb-center .hint { display: none; }
  .lb-right { gap: 0.4rem; }
  .vid-promo { padding: 0.25rem 0.55rem 0.25rem 0.25rem; }
  .vid-promo .vp-img { width: 2.4rem; height: 2.4rem; }
  .vid-promo .vp-txt span { -webkit-line-clamp: 1; }
  .pass-btn { padding: 0.32rem 0.65rem 0.38rem 0.35rem; }
  .pass-btn .pb-medal { width: 2.2rem; height: 2.2rem; font-size: 1.25rem; }
  .mode-card { padding: 0.3rem 0.65rem 0.3rem 0.3rem; gap: 0.5rem; }
  .mode-card img { width: 2.8rem; height: 2.8rem; }
  .mode-card b { font-size: 1.4rem; }
  .mode-card small:last-child { display: none; }
  .lb-right .big { min-height: 3.6rem; font-size: 2.1rem; }
  .lb-right .big::before { width: 2rem; height: 2rem; }
  .legal .lg-x { display: none; }
  .profile-chip > img { width: 2.25rem; height: 2.25rem; }
  .profile-chip b { font-size: 1.2rem; }
  .donate-btn, .lb-money .icon-btn { height: 2.35rem; min-width: 2.35rem; }
  .lb-money .icon-btn { width: 2.35rem; }
  .pill { min-height: 2.05rem; font-size: 1.15rem; }
  .pslot .plus { font-size: 2rem; }
  /* el letrero del evento, en una sola línea */
  .hw-banner { padding: 0.2rem 0.7rem; gap: 0.5rem; margin-bottom: 0.15rem; width: min(100%, 30rem); }
  .hwb-mid { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 0.6rem; }
  .hwb-title { font-size: 1.35rem; }
  .hwb-sub, .hwb-bat { display: none; }
  .hwb-foot { font-size: 0.95rem; }
  .hwb-pump, .hwb-gengar { width: 1.8rem; }
}
/* móviles estrechos: Discord y Donar fuera de la barra (siguen en Ajustes) */
@media (max-height: 520px) and (max-width: 740px) {
  #btn-discord, #btn-donate { display: none; }
  .lb { grid-template-columns: minmax(9.8rem, 12rem) minmax(0, 1fr) minmax(10.8rem, 12.8rem); }
  .pill { padding-right: 0.55rem; }
}
/* pantallas aún más bajas (Safari con la barra de direcciones): los iconos pequeños suben a la barra de arriba (lo hace lobby.js) */
@media (max-height: 360px) {
  .lb-top-icons { display: flex; gap: 0.3rem; }
  .lb-top-icons .lb-icons { display: flex; gap: 0.3rem; }
  .lb-top-icons .tile.icon { width: 2.35rem; min-height: 2.35rem; height: 2.35rem; }
  .lb-top-icons .tile .ib { width: 1.7rem; height: 1.7rem; }
  .lb-top-icons .tile .ib .pxi { width: 1.2rem; height: 1.2rem; }
  .vid-promo, .ev-banner { display: none; }
  .tile { min-height: 2.5rem; }
}
/* PC en vertical o ventana muy estrecha: una columna con desplazamiento */
@media (max-width: 640px) and (min-height: 521px) {
  #lobby { overflow-y: auto; }
  .lb { height: auto; min-height: 100%; grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: 'top' 'center' 'right' 'left' 'bottom'; }
  .lb > * { min-height: auto; }
  .lb-top { flex-wrap: wrap; }
  .lb-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hw-banner, .hwb-pump, .hwb-gengar, .hwb-bat, #btn-donate .pxi { animation: none; } .hwb-bat { display: none; } }
