/* ============================================================================
 * pulido.css — capa de acabado profesional (se carga DESPUÉS de styles.css)
 * ----------------------------------------------------------------------------
 * - Tipografía: Inter para el texto y Sora para los títulos y las cifras.
 * - Movimiento: una sola familia de curvas y duraciones, sin rebotes ni brillos
 *   infinitos; las animaciones solo usan opacity y transform (fluidas a 60/120 Hz).
 * - Fondo: los orbes de luz dejan de usar filter: blur(140px) animado (lo más
 *   caro de la página) y pasan a degradados radiales.
 * - Celular: se corrigen los desbordes horizontales.
 * Para volver al diseño anterior alcanza con quitar el <link> de este archivo.
 * ==========================================================================*/

:root {
  --font-geist: "Inter", "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;

  --line: #1c2637;
  --line-strong: #2c3a54;
  --surface: #0f1520;
  --surface-2: #121a27;
  --text-2: #a3b0c4;
  --text-3: #6f7e96;
  --focus: #60a5fa;
}

/* ---------------------------------------------------------------------------
 * 1. TIPOGRAFÍA
 * -------------------------------------------------------------------------*/
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-geist);
  font-feature-settings: "cv11", "ss01", "ss03";
  font-optical-sizing: auto;
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

input, select, textarea, button, kbd {
  font-family: inherit;
}

kbd, code, pre, .kbd-badge {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(96, 165, 250, 0.32);
  color: #fff;
}

/* Títulos y cifras: Sora */
.hero-giant-title,
.hero-heading,
.home-section-title,
.why-title-h2,
.board-title-h1,
.cta-card-heading,
.waitlist-title-h1,
.docs-v2-main-title,
.docs-v2-section-h2,
.stat-number,
.podium-player-name,
.podium-rank-tag,
.row-player-name,
.row-pos-num,
.modal-player-name,
.how-card-title,
.why-item-title,
.home-cta-card-big h2,
.home-cta-card-big h3 {
  font-family: var(--font-display);
}

.hero-giant-title {
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
  margin-bottom: 16px;
}

.hero-giant-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}

.home-section-title,
.why-title-h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-section-subtitle,
.why-subtitle-p,
.board-subtitle-p,
.waitlist-subtitle-p {
  font-size: 14.5px;
  color: var(--text-3);
  text-wrap: pretty;
}

.board-title-h1 {
  letter-spacing: -0.03em;
  font-weight: 700;
}

.stat-number {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-name,
.why-item-title,
.how-card-title {
  letter-spacing: -0.015em;
}

.why-item-desc,
.how-card-desc,
.stat-sub {
  color: var(--text-3);
  text-wrap: pretty;
}

.row-player-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.podium-player-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Rótulos en mayúsculas: más aire */
.server-ip-kicker {
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* Números alineados en columnas (rankings, conteos, paginación) */
.stat-number,
.pts-parenthesis,
.podium-points-tag,
.row-pos-num,
.gamemode-count,
.home-region-count,
.tier-col-count,
.pager-info-text,
.btn-pager,
.point-val {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
 * 2. TÍTULOS: degradado sobrio y FIJO (sin destellos ni saltos al pasar el mouse)
 * -------------------------------------------------------------------------*/
.hero-heading strong,
.board-title-h1,
.why-title-h2,
.cta-card-heading,
.waitlist-title-h1,
.docs-v2-main-title,
.docs-v2-section-h2 {
  background: linear-gradient(180deg, #ffffff 20%, #b7c4d8 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
  cursor: auto;
}

.home-stat-box .stat-number {
  background: linear-gradient(180deg, #ffffff 15%, #93b4e6 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: none;
}

.hero-heading:hover strong,
.board-title-h1:hover,
.why-title-h2:hover,
.cta-card-heading:hover,
.waitlist-title-h1:hover,
.docs-v2-main-title:hover,
.docs-v2-section-h2:hover,
.home-stat-box:hover .stat-number {
  filter: none;
  transform: none;
}

.board-subtitle-p:hover,
.why-subtitle-p:hover,
.waitlist-subtitle-p:hover {
  color: var(--text-3);
  text-shadow: none;
}

/* ---------------------------------------------------------------------------
 * 3. FONDO: luces ambientales sin blur animado
 * -------------------------------------------------------------------------*/
/* Fijos: el desplazamiento era casi imperceptible y costaba ~60 ms de CPU por segundo */
.glow-orb {
  filter: none;
  animation: none !important;
}

.glow-top-left {
  width: 64rem;
  height: 64rem;
  top: -30rem;
  left: -26rem;
  background: radial-gradient(closest-side, rgba(232, 186, 58, 0.11), rgba(232, 186, 58, 0.04) 55%, transparent);
}

.glow-bottom-right {
  width: 60rem;
  height: 60rem;
  top: 6rem;
  right: -24rem;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.11), rgba(59, 130, 246, 0.035) 55%, transparent);
}

.glow-center-blue {
  width: 56rem;
  height: 56rem;
  bottom: -14rem;
  left: 18%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.07), transparent);
}

.ambient-canvas {
  opacity: 0.85;
}

/* ---------------------------------------------------------------------------
 * 4. CABECERA
 * -------------------------------------------------------------------------*/
.site-header {
  background: rgba(13, 18, 27, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(11, 15, 21, 0.9);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -16px rgba(0, 0, 0, 0.85);
}

.nav-item {
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav-search-container {
  border-width: 1px;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.nav-search-container:focus-within {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

/* ---------------------------------------------------------------------------
 * 5. BOTONES
 * -------------------------------------------------------------------------*/
.btn-hero-white,
.btn-hero-dark,
.btn-discord-queue-glow {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.btn-hero-white {
  background: linear-gradient(180deg, #ffffff 0%, #e9eef6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -10px rgba(255, 255, 255, 0.35);
}

.btn-hero-white:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 30px -12px rgba(255, 255, 255, 0.45);
}

.btn-hero-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-hero-dark:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-discord-queue-glow {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px -10px rgba(88, 101, 242, 0.7);
}

.btn-discord-queue-glow:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px -10px rgba(88, 101, 242, 0.85);
}

/* Al apretar: hundirse apenas, rápido (antes 0.96 con !important) */
button:active,
.btn-hero-white:active,
.btn-hero-dark:active,
.btn-discord-blurple:active,
.copy-ip-btn:active,
.region-pill-btn:active {
  transform: scale(0.975) !important;
  transition: transform 90ms var(--ease-out) !important;
}

/* El brillo que barría el botón cada 5 s: ahora solo una pasada al pasar el mouse */
.btn-shimmer::after {
  animation: none;
  left: -60%;
  transform: translate3d(0, 0, 0) rotate(25deg);
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.btn-shimmer:hover::after {
  animation: ehSweep 0.9s var(--ease-out) 1;
}

@keyframes ehSweep {
  0% { transform: translate3d(0, 0, 0) rotate(25deg); opacity: 1; }
  100% { transform: translate3d(420%, 0, 0) rotate(25deg); opacity: 0; }
}

/* Onda al hacer clic: más tenue */
.ripple-circle {
  background: rgba(255, 255, 255, 0.12);
  animation: ehRipple 0.55s var(--ease-out) forwards;
}

@keyframes ehRipple {
  to { transform: scale(3.2); opacity: 0; }
}

/* ---------------------------------------------------------------------------
 * 6. TARJETAS: mismo lenguaje en todas (borde, luz superior, elevación corta)
 * -------------------------------------------------------------------------*/
.home-hero-card,
.home-stat-box,
.why-card-item,
.home-podium-card,
.home-gamemode-card,
.home-region-card,
.home-how-card,
.home-cta-card-big,
.rankings-main-board,
.tier-col-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 1px 2px rgba(0, 0, 0, 0.3);
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}

.home-hero-card {
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(96, 165, 250, 0.08), transparent 60%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.home-hero-card:hover {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

/* El aura del hero ya no "respira" (animaba un filter: blur en bucle) */
.home-hero-card::after {
  animation: none;
  opacity: 0.4;
}

.home-stat-box:hover,
.why-card-item:hover,
.home-gamemode-card:hover,
.home-region-card:hover,
.home-how-card:hover,
.home-podium-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 32px -18px rgba(0, 0, 0, 0.85);
}

.home-podium-card.rank-1 {
  transform: translateY(-8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -22px rgba(240, 184, 87, 0.45);
}

.home-podium-card.rank-1:hover {
  transform: translateY(-10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 44px -20px rgba(240, 184, 87, 0.55);
}

.tier-col-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 36px -20px rgba(0, 0, 0, 0.9);
}

.tier-col-card:hover .tier-col-badge-pill {
  transform: none;
  box-shadow: none;
}

/* La luz que sigue al mouse: más sutil */
.spotlight-card::after {
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(96, 165, 250, 0.06), transparent 70%);
}

/* ---------------------------------------------------------------------------
 * 7. RANKINGS: filas, insignias de tier, chips
 * -------------------------------------------------------------------------*/
.player-table-row {
  border-width: 1px;
  animation: ehRowIn 0.36s var(--ease-out) both;
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Refresco en segundo plano (llegan datos nuevos): sin volver a animar la entrada */
.player-table-row.is-quiet,
.tier-col-card.is-quiet {
  animation: none;
}

@keyframes ehRowIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: none; }
}

.player-table-row:hover {
  transform: translateY(-1px);
  background: rgba(148, 163, 184, 0.09);
  border-color: var(--line-strong);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.9);
}

.player-table-row:active {
  transform: scale(0.995);
}

.player-table-row:hover .row-player-name {
  color: #dbe7f7;
  transform: none;
  text-shadow: none;
}

.row-player-name {
  transition: color var(--dur) var(--ease-out);
}

.minecraft-bust-3d,
.skin-avatar-square,
.row-skin-bust {
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease-out);
}

.player-table-row:hover .minecraft-bust-3d,
.player-table-row:hover .skin-avatar-square,
.tier-player-chip:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.tier-badge-slot {
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}

.tier-badge-slot:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}

.tier-player-board-item {
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}

.tier-player-board-item:hover {
  transform: translateX(2px);
  background: rgba(148, 163, 184, 0.1);
}

.tier-player-board-item .board-item-avatar {
  transition: transform var(--dur) var(--ease-out);
}

.tier-player-board-item:hover .board-item-avatar {
  transform: scale(1.06);
  box-shadow: none;
}

.tier-player-board-item:hover .board-item-name {
  color: #dbe7f7;
  text-shadow: none;
}

.tier-column {
  animation-name: ehRowIn;
  animation-duration: 0.42s;
  animation-timing-function: var(--ease-out);
}

.tier-col-card {
  animation-duration: 0.42s;
  animation-timing-function: var(--ease-out);
}

.region-chip-btn {
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}

.region-chip-btn:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.region-chip-btn:hover .dot {
  transform: none;
  box-shadow: none;
}

/* Las pestañas de modos ya no se inclinan en 3D */
.rankings-tab-item {
  transform: none;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.rankings-tab-item img,
.rankings-tab-item svg {
  transition: transform var(--dur) var(--ease-out);
}

.rankings-tab-item:hover img,
.rankings-tab-item:hover svg {
  transform: translateY(-1px);
}

.btn-pager {
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

/* Todos los modos en UNA fila: hasta 9 (con LTMs) × 40 px + 8 × 2 px = 376 px + 20 de relleno
   (antes la columna dejaba 320 útiles y la mitad de las filas se partía en dos) */
@media (min-width: 1025px) {
  .row-tiers-cell,
  .header-col-tiers {
    width: 396px;
  }
}

/* ---------------------------------------------------------------------------
 * 8. CAMBIO DE VISTA, APARICIÓN AL BAJAR, MODALES, FAQ
 * -------------------------------------------------------------------------*/
.page-view.is-entering {
  animation: ehViewIn 0.38s var(--ease-out) both;
}

@keyframes ehViewIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}

/* Aparición al bajar: recorridos cortos y sin blur (el blur animado traba) */
/* Transición COMPLETA: si no, la de las tarjetas (sección 6) pisaba la opacidad.
   Al terminar, app.js quita estas clases y cada tarjeta vuelve a su transición rápida. */
.sr, .sr-left, .sr-right, .sr-scale, .sr-blur {
  transition:
    opacity 0.6s var(--ease-out) var(--sr-delay, 0s),
    transform 0.6s var(--ease-out) var(--sr-delay, 0s);
}

.sr { transform: translate3d(0, 16px, 0); }
.sr-left { transform: translate3d(-18px, 0, 0); }
.sr-right { transform: translate3d(18px, 0, 0); }
.sr-scale { transform: translate3d(0, 10px, 0) scale(0.98); }
.sr-blur { filter: none; transform: translate3d(0, 12px, 0); }

.sr.is-visible, .sr-left.is-visible, .sr-right.is-visible,
.sr-scale.is-visible, .sr-blur.is-visible {
  transform: none;
  filter: none;
}

.dialog-backdrop {
  animation: ehFade 0.24s var(--ease-out) both;
}

.dialog-card {
  border-width: 1px;
  animation: ehDialogIn 0.3s var(--ease-out) both;
}

@keyframes ehFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ehDialogIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* FAQ: se abre y se cierra deslizando (en navegadores sin interpolate-size, se abre directo) */
.faq-content-drawer {
  display: block;
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  padding-bottom: 0;
  interpolate-size: allow-keywords;
  transition:
    height 0.34s var(--ease-out),
    padding-bottom 0.34s var(--ease-out),
    opacity 0.24s var(--ease-out),
    visibility 0s linear 0.34s;
}

.faq-entry.is-open .faq-content-drawer {
  height: auto;
  opacity: 1;
  visibility: visible;
  padding-bottom: 20px;
  transition:
    height 0.34s var(--ease-out),
    padding-bottom 0.34s var(--ease-out),
    opacity 0.3s var(--ease-out) 0.06s,
    visibility 0s;
}

.faq-arrow-svg {
  transition: transform 0.3s var(--ease-out);
}

/* ---------------------------------------------------------------------------
 * 9. FOCO, BARRAS DE DESPLAZAMIENTO
 * -------------------------------------------------------------------------*/
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

html {
  scrollbar-color: #26324a transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #26324a;
  border-radius: 999px;
  border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
  background: #33425f;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------------------------------------------------------------------------
 * 10. CELULAR: sin desbordes a lo ancho
 * -------------------------------------------------------------------------*/
@media (max-width: 640px) {
  .page-wrapper {
    padding: 0 12px;
  }

  .nav-content {
    padding: 0 10px 0 12px;
    gap: 8px;
  }

  .nav-logo-box {
    flex-shrink: 0;
  }

  .nav-brand-logo-img {
    width: 118px;
    height: auto;
  }

  .nav-right-actions {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
  }

  .nav-search-container {
    min-width: 0;
    flex: 1;
    max-width: 180px;
  }

  .nav-search-container input {
    width: 100%;
    min-width: 0;
  }

  .nav-search-container .kbd-badge {
    display: none;
  }

  .home-hero-card {
    padding: 36px 18px 28px;
  }

  .hero-giant-subtitle {
    font-size: 15px;
  }

  .home-stats-4-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-stat-box {
    padding: 18px 10px;
  }

  .stat-number {
    font-size: 28px;
  }

  .rankings-subnav-right {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .rankings-server-box {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .toolbar-right-selects {
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
  }

  .toolbar-right-selects > * {
    flex: 1 1 140px;
    min-width: 0;
  }
}

/* ---------------------------------------------------------------------------
 * 11. MOVIMIENTO REDUCIDO
 * -------------------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .ambient-canvas {
    display: none;
  }
}

/* ===========================================================================
 * 12. ENCABEZADO — como mctiers.gg (íconos de 24 px, activo en blanco sin fondo)
 * =========================================================================*/
.nav-links-list {
  gap: 18px;
}

.nav-item,
.nav-item:hover,
.nav-item.is-active {
  background: none;
}

.nav-item {
  gap: 9px;
  padding: 6px 2px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #a3acb9;
}

.nav-item:hover {
  color: #f1f5f9;
}

.nav-item.is-active {
  color: #ffffff;
  font-weight: 600;
}

/* Íconos en <img> (como mctiers.gg): se ven también abriendo el archivo directo */
.nav-ico {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
  opacity: 0.62;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}

.nav-item:hover .nav-ico,
.nav-item.is-active .nav-ico,
.nav-dropdown-item.is-open .nav-ico {
  opacity: 1;
}

.why-ico,
.cta-icon-discord .nav-ico,
.wl-join .nav-ico,
.cta-ico {
  opacity: 1;
}

.gm-ico {
  opacity: 0.7;
}

.nav-item .nav-icon {
  width: 22px;
  height: 22px;
  transition: transform var(--dur) var(--ease-out);
}

.nav-item:hover .nav-ico,
.nav-item:hover .nav-icon {
  transform: translateY(-1px);
}

.nav-caret-svg {
  transition: transform var(--dur) var(--ease-out);
}

.nav-search-container {
  height: 40px;
  width: 274px;
  padding: 0 10px 0 14px;
  background: #161e29;
  border-color: transparent;
}

.nav-search-container input {
  flex: 1;
  width: auto;
  min-width: 0;
  font-size: 15px;
}

.nav-search-svg {
  width: 18px;
  height: 18px;
}

/* ---- Selector de idioma ---- */
.lang-picker {
  position: relative;
  flex: none;
}

.lang-picker-btn {
  height: 40px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  opacity: 0.9;
  transition: opacity 0.1s ease, transform var(--dur) var(--ease-out);
}

.lang-picker-btn:hover,
.lang-picker-btn[aria-expanded="true"] {
  opacity: 1;
}

.lang-flag {
  display: inline-flex;
  flex: none;
}

.lang-flag svg {
  display: block;
  width: 26px;
  height: 17.33px;
  border-radius: 3px;
}

.lang-flag-sm svg {
  width: 22px;
  height: 14.67px;
}

.lang-picker-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 8px;
  background: #121822;
  border: 2px solid rgba(203, 213, 225, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75);
  z-index: 140;
  transform-origin: top right;
}

.lang-picker-pop[hidden] {
  display: none;
}

.lang-picker-pop.is-open {
  animation: ehPopIn 0.16s var(--ease-out) both;
}

.lang-picker-pop.is-closing {
  animation: ehPopOut 0.12s ease-in both;
}

@keyframes ehPopIn {
  from { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@keyframes ehPopOut {
  to { opacity: 0; transform: scale(0.95); }
}

.lang-picker-title {
  padding: 4px 8px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #99a1af;
}

.lang-picker-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  text-align: left;
  color: #99a1af;
  transition: background-color 75ms ease, color 75ms ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  color: #f9fafb;
  background: #1e2939;
}

.lang-option.is-current {
  color: #f9fafb;
  background: #1e2939;
  font-weight: 600;
}

.lang-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-option-check {
  margin-left: auto;
  display: flex;
}

@media (max-width: 1180px) {
  .nav-links-list { gap: 10px; }
  .nav-item { font-size: 15.5px; }
  .nav-search-container { width: 220px; }
}

@media (max-width: 640px) {
  .lang-picker-pop {
    position: fixed;
    top: 92px;
    left: 12px;
    right: 12px;
    width: auto;
    transform-origin: top center;
  }
}

/* ===========================================================================
 * 13. PERFIL DEL JUGADOR — como mctiers.gg
 * =========================================================================*/
:root {
  --placement-1: #e5ba43;
  --placement-2: #808c9c;
  --placement-3: #b56326;
}

.dialog-card.profile-card-inner {
  width: 100%;
  max-width: 512px;
  padding: 32px 40px;
  border: 0;
  border-radius: 24px;
  background: #121822;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}

.pp-close.dialog-close-button {
  top: 32px;
  right: 40px;
  width: 48px;
  height: 48px;
  border: 0;
  background: #1e2939;
  color: #f9fafb;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.pp-close.dialog-close-button:hover {
  background: #263345;
}

.pp-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  text-align: center;
}

.pp-frame {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  overflow: hidden;
  border: 2px solid var(--frame, var(--placement-other));
  border-radius: 999px;
  background: #1e293b;
}

.pp-frame img {
  width: 95px;
  height: 95px;
  object-fit: contain;
}

.pp-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #cbd5e1;
  word-break: break-word;
}

.pp-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 20%, transparent);
}

.pp-title img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pp-region {
  font-size: 20px;
  font-weight: 700;
  color: #99a1af;
}

.pp-links {
  display: flex;
  gap: 8px;
}

.pp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  font-size: 14px;
  color: #99a1af;
  background: #1e2939;
  transition: color 0.1s ease, background-color 0.1s ease;
}

.pp-link:hover {
  color: #f9fafb;
  background: #232f41;
}

.pp-link-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 4px;
  border-right: 2px solid #222a38;
}

.pp-link-logo img {
  border-radius: 3px;
}

.pp-link-txt {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pp-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 4px;
}

.pp-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-label {
  font-family: var(--font-geist);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #99a1af;
}

.pp-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  border: 2px solid rgba(98, 116, 142, 0.25);
  border-radius: 10px;
  background: #161e29;
}

.pp-position {
  height: 48px;
}

/* Crece con el número (antes medía 96 px fijos y un puesto de 4-5 cifras se cortaba) */
.pp-place {
  position: relative;
  flex: none;
  width: auto;
  min-width: 96px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 8px 30px 8px 10px;
  overflow: hidden;
}

.pp-place-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pp-place-num {
  position: relative;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #fff;
  filter: drop-shadow(0 3px 1px #232323);
}

.pp-place-info {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pp-place-info strong {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.pp-place-pts {
  font-size: 20px;
  font-weight: 500;
  color: #90a1b9;
}

.pp-tiers {
  padding: 8px;
  flex-wrap: nowrap;
}

.pp-empty {
  padding: 10px 6px;
  font-size: 14px;
  color: #99a1af;
}

/* Entrada en cascada de lo de adentro, y salida */
#playerProfileModal .pp-head > *,
#playerProfileModal .pp-block {
  animation: ehRowIn 0.42s var(--ease-out) both;
}

#playerProfileModal .pp-head > :nth-child(2) { animation-delay: 0.03s; }
#playerProfileModal .pp-head > :nth-child(3) { animation-delay: 0.06s; }
#playerProfileModal .pp-head > :nth-child(4) { animation-delay: 0.09s; }
#playerProfileModal .pp-head > :nth-child(5) { animation-delay: 0.12s; }
#playerProfileModal .pp-block:nth-child(1) { animation-delay: 0.15s; }
#playerProfileModal .pp-block:nth-child(2) { animation-delay: 0.19s; }

.dialog-modal.is-closing .dialog-backdrop {
  animation: ehFadeOut 0.18s ease-in both;
}

.dialog-modal.is-closing .dialog-card {
  animation: ehDialogOut 0.18s ease-in both;
}

@keyframes ehFadeOut {
  to { opacity: 0; }
}

@keyframes ehDialogOut {
  to { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.97); }
}

@media (max-width: 640px) {
  .dialog-card.profile-card-inner {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .pp-close.dialog-close-button {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .pp-links {
    flex-direction: column;
    align-items: center;
  }

  .pp-place-num { font-size: 30px; }
  .pp-place-info strong { font-size: 20px; }
  .pp-place-pts { font-size: 14px; }
}

/* ===========================================================================
 * 14. RANKING GENERAL — filas como mctiers.gg
 *     80 px, borde 2 px, se corre 16 px a la izquierda al pasar el mouse,
 *     región sobre su franja y casillas vacías punteadas.
 * =========================================================================*/
.player-entries-list {
  gap: 0;
}

.player-table-row {
  min-height: 80px;
  margin: 8px 0;
  border: 2px solid #18202a;
  border-radius: 14px;
  background: rgba(30, 41, 57, 0.2);
  box-shadow: none;
  transition:
    transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.1s ease,
    border-color 0.15s ease;
}

@media (min-width: 640px) {
  .player-table-row:hover {
    transform: translateX(-16px);
  }
  .player-table-row:active {
    transform: translateX(-16px) scale(0.99);
  }
}

.player-table-row:hover {
  background: #1e2939;
  border-color: #18202a;
  box-shadow: none;
}

.player-table-row:hover .row-player-name {
  color: #cad5e2;
}

.row-placement-box {
  width: 160px;
  max-width: 160px;
  border-radius: 2px;
}

.row-pos-num {
  font-size: 36px;
  font-weight: 800;
}

.row-skin-bust {
  right: 28px;
  bottom: auto;
  width: 60px;
  height: 60px;
  image-rendering: auto;
  filter: drop-shadow(-4px -2px 1px rgba(0, 0, 0, 0.47));
  transition: transform 0.25s var(--ease-out);
}

.player-table-row:hover .row-skin-bust {
  transform: translateY(-2px) scale(1.06);
}

.row-info-col {
  width: 288px;
  padding-left: 8px;
}

.row-player-name {
  font-size: 24px;
  color: #cad5e2;
}

.row-title-sub {
  gap: 4px;
  font-size: 15px;
  font-weight: 400;
  color: #90a1b9;
}

.row-title-sub .title-badge-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.row-title-sub .pts-parenthesis {
  color: #45556c;
}

/* Región: insignia sobre una franja apenas más clara, de alto completo */
.row-region-cell {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 8px;
  padding: 0 16px;
  background: rgba(49, 65, 88, 0.1);
}

.row-region-cell .row-region-badge {
  margin-left: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 800;
}

.row-tiers-flex {
  gap: 2px;
}

/* En escritorio, todos los tiers en una fila; en pantallas chicas pueden bajar de renglón */
@media (min-width: 1025px) {
  .row-tiers-flex { flex-wrap: nowrap; }
}

/* Tier retirado: borde y cápsula grises, pero el texto con el color de su tier */
.tier-badge-slot.is-retired-tier .tier-icon-circle {
  filter: none;
  border-color: var(--placement-other);
}

.tier-badge-slot.is-retired-tier .tier-label-capsule {
  background: var(--placement-other);
  color: var(--tier-text-col, var(--muted-foreground));
}

/* Casilla vacía */
.tier-badge-slot.is-empty {
  cursor: default;
}

.tier-badge-slot.is-empty:hover {
  transform: none;
  box-shadow: none;
}

.tier-badge-slot.is-empty .tier-icon-circle {
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(98, 116, 142, 0.5);
}

.tier-badge-slot.is-empty .tier-label-capsule {
  bottom: 2px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 116, 142, 0.1);
  color: #99a1af;
  font-size: 14px;
  font-weight: 400;
}

/* Encabezado de columnas: tenue, como la referencia */
.header-col-pos,
.header-col-player,
.header-col-region,
.header-col-tiers {
  color: #2f3a4b;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .row-region-cell {
    display: none;
  }
}

/* Las entradas animadas usan fill-mode "backwards": con "both" la animación terminada
   seguía mandando sobre transform y el movimiento al pasar el mouse no se veía. */
.player-table-row,
.tier-col-card,
.tier-column {
  animation-fill-mode: backwards;
}

/* ===========================================================================
 * 15. TABLERO POR MODO — como mctiers.gg/rankings/pot
 * =========================================================================*/
.tier-board-5col-grid {
  gap: 8px;
}

.tier-col-card.tb-col,
.tier-col-card.tb-col:hover {
  padding: 0;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.tb-col[data-t="1"] { --th: #41361b; --thf: #f0b857; }
.tb-col[data-t="2"] { --th: #343843; --thf: #a9b1b9; }
.tb-col[data-t="3"] { --th: #352620; --thf: #d59161; }
.tb-col[data-t="4"],
.tb-col[data-t="5"] { --th: #161e2a; --thf: #b1c0cc; }

.tb-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px 12px 0 0;
  background: var(--th);
  color: var(--thf);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tb-head img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tb-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.tier-player-board-item.tb-row {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 0 2px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #161e2a;
  cursor: pointer;
  transform: none;
  transition: all 0.1s cubic-bezier(0, 0.8, 0.2, 0.4);
}

.tier-player-board-item.tb-row.is-ht { background: #263244; }
.tier-player-board-item.tb-row.is-lt:hover { background: #263242; transform: none; }
.tier-player-board-item.tb-row.is-ht:hover { background: #3e4f68; transform: none; }

.tb-reg {
  flex: none;
  width: 2px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 2px solid var(--rf);
  background: var(--rb);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tb-reg strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--rf);
  opacity: 0;
  transition: opacity 0.1s ease;
}

.tb-row:hover .tb-reg,
.tb-row:focus-visible .tb-reg { width: 40px; }
.tb-row:hover .tb-reg strong,
.tb-row:focus-visible .tb-reg strong { opacity: 1; }

.tb-reg[data-r="NA"] { --rb: var(--na); --rf: var(--na-foreground); }
.tb-reg[data-r="EU"] { --rb: var(--eu); --rf: var(--eu-foreground); }
.tb-reg[data-r="SA"] { --rb: var(--sa); --rf: var(--sa-foreground); }
.tb-reg[data-r="AS"] { --rb: var(--as); --rf: var(--as-foreground); }
.tb-reg[data-r="AU"] { --rb: var(--au); --rf: var(--au-foreground); }
.tb-reg[data-r="ME"] { --rb: var(--me); --rf: var(--me-foreground); }

.tier-player-board-item .tb-skin,
.tier-player-board-item:hover .tb-skin {
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: none;
  transform: none;
}

.tb-name,
.tier-player-board-item:hover .tb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  color: #f9fafb;
  text-shadow: none;
}

.tb-ret {
  flex: none;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #90a1b9;
  background: rgba(98, 116, 142, 0.18);
}

.tb-peak {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.7);
}

.tb-chev {
  flex: none;
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  color: #3d526f;
  transition: color 0.1s ease;
}

.tb-row.is-lt .tb-chev { color: #253449; }
.tb-row.is-ht:hover .tb-chev { color: #637998; }
.tb-row.is-lt:hover .tb-chev { color: #374d6c; }

.tb-empty {
  padding: 16px 8px;
  text-align: center;
  font-size: 13px;
  color: #99a1af;
  background: #161e2a;
  margin-top: 2px;
}

/* ===========================================================================
 * 16. WAITLIST — como mctier.es/waitlist
 * =========================================================================*/
.wl-page {
  max-width: 1320px;
  margin: 24px auto 56px;
}

.wl-shell {
  padding: 34px;
  border: 1px solid #18202a;
  border-radius: 14px;
  background: #121822;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.wl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.wl-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.wl-sub {
  margin-top: 6px;
  font-size: 14.5px;
  color: #90a1b9;
}

.wl-sub strong {
  color: #e2e8f0;
  font-weight: 700;
}

.wl-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wl-server {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-server-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.wl-server-controls {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.wl-region-pills {
  border-radius: 999px;
}

.wl-region-pills .region-pill-btn {
  border-radius: 999px;
  padding: 3px 14px;
}

.wl-domain {
  padding: 4px 8px;
  font-family: var(--font-geist);
  font-size: 12.5px;
  font-weight: 700;
}

.wl-join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -10px rgba(88, 101, 242, 0.8);
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.wl-join .nav-ico {
  width: 20px;
  height: 20px;
}

.wl-join:hover {
  background: #4f5bd5;
  transform: translateY(-1px);
}

.wl-card {
  margin-bottom: 16px;
  border: 2px solid #1c2533;
  border-radius: 12px;
  background: #151c27;
}

/* Testers */
.wl-duty {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.wl-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #1a2230;
}

.wl-tab {
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #90a1b9;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.wl-tab:hover {
  color: #e2e8f0;
}

.wl-tab.is-active {
  color: #fff;
  background: #22304a;
  border-color: #33466a;
}

.wl-duty-body > * {
  animation: ehRowIn 0.32s var(--ease-out) backwards;
}

.wl-lead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wl-lead-skin {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(-3px -2px 1px rgba(0, 0, 0, 0.4));
}

.wl-lead-info {
  display: grid;
  gap: 4px;
}

.wl-onduty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b8def;
}

.wl-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b8def;
  animation: wlPulse 2s ease-out infinite;
}

@keyframes wlPulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 141, 239, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(91, 141, 239, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 141, 239, 0); }
}

.wl-lead-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.wl-also {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.wl-also-lbl {
  font-size: 12.5px;
  color: #90a1b9;
}

.wl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: #1b2433;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.wl-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.wl-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.wl-tester {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1a2230;
}

.wl-tester img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.wl-tester-info {
  display: grid;
  min-width: 0;
}

.wl-tester-info strong {
  font-size: 14px;
  color: #fff;
}

.wl-tester-info .wl-muted {
  font-size: 12px;
}

.wl-tester .wl-status {
  margin-left: auto;
}

.wl-muted {
  color: #90a1b9;
}

.wl-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 46px;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wl-clock svg {
  color: #90a1b9;
}

.wl-clock-utc {
  padding-left: 8px;
  border-left: 1px solid #263042;
  font-weight: 500;
  color: #2f3a4b;
}

/* Contadores */
.wl-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-color: #2b3648;
  font-size: 14px;
  color: #90a1b9;
}

.wl-strip strong {
  color: #fff;
}

.wl-strip-counts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wl-strip-test {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5b8def;
}

/* Pruebas en curso */
.wl-recent {
  padding: 14px 16px 8px;
  border-color: #2b3648;
}

.wl-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #90a1b9;
}

.wl-recent-list {
  list-style: none;
}

.wl-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.wl-recent-skin {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wl-recent-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wl-recent-info strong {
  font-size: 15px;
  color: #fff;
}

.wl-recent-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}

.wl-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #1f2938;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.wl-arena {
  font-weight: 700;
  color: #34d399;
}

.wl-recent-time {
  margin-left: auto;
  font-size: 13px;
  color: #90a1b9;
  white-space: nowrap;
}

.wl-recent-empty {
  padding: 8px 0 10px;
  font-size: 14px;
}

/* Cola: misma familia que las filas del ranking */
.wl-head-row,
.wl-row {
  display: grid;
  grid-template-columns: 140px minmax(180px, 1.5fr) 110px 140px minmax(150px, 1.4fr) 80px;
  align-items: center;
  column-gap: 12px;
}

.wl-head-row {
  margin-top: 22px;
  padding: 0 10px 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f3a4b;
}

.wl-head-row > span:first-child {
  padding-left: 8px;
}

.wl-eta-h,
.wl-cell-eta {
  text-align: right;
}

.wl-row {
  min-height: 70px;
  margin-top: 8px;
  padding-right: 10px;
  border: 2px solid #18202a;
  border-radius: 12px;
  background: rgba(30, 41, 57, 0.2);
  cursor: pointer;
  animation: ehRowIn 0.36s var(--ease-out) backwards;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.1s ease;
}

.wl-row:hover {
  background: #1e2939;
}

@media (min-width: 640px) {
  .wl-row:hover { transform: translateX(-12px); }
  .wl-row:active { transform: translateX(-12px) scale(0.99); }
}

.wl-place {
  position: relative;
  height: 66px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.wl-place-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wl-place-num {
  position: absolute;
  left: 10px;
  bottom: 6px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #fff;
  filter: drop-shadow(0 3px 1px #232323);
}

.wl-place-skin {
  position: absolute;
  right: 20px;
  top: 6px;
  z-index: 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(-4px -2px 1px rgba(0, 0, 0, 0.47));
  transition: transform 0.25s var(--ease-out);
}

.wl-row:hover .wl-place-skin {
  transform: translateY(-2px) scale(1.06);
}

.wl-player {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wl-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #cad5e2;
}

.wl-player-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #90a1b9;
}

.wl-player-sub img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wl-cell-region .wl-region {
  width: 36px;
  height: 36px;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.wl-cell-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}

.wl-cell-mode img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.wl-cell-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wl-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.wl-status.is-waiting {
  background: rgba(245, 184, 61, 0.14);
  color: #f5b83d;
}

.wl-status.is-testing {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
}

.wl-status.is-free {
  background: rgba(144, 161, 185, 0.12);
  color: #90a1b9;
}

.wl-by {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.wl-cell-eta {
  font-size: 14px;
  font-weight: 600;
  color: #90a1b9;
  font-variant-numeric: tabular-nums;
}

.wl-empty {
  padding: 40px 16px;
  text-align: center;
  color: #90a1b9;
}

@media (max-width: 1024px) {
  .wl-head-row,
  .wl-row {
    grid-template-columns: 120px minmax(150px, 1fr) 60px 120px 110px 70px;
  }
}

@media (max-width: 860px) {
  .wl-shell { padding: 20px 14px; }
  .wl-top { flex-direction: column; }
  .wl-top-right { justify-content: flex-start; }
  .wl-duty { flex-direction: column; }
  .wl-clock { margin-top: 0; }
  .wl-head-row { display: none; }
  .wl-row {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    grid-template-areas:
      "place player region"
      "place mode status";
    row-gap: 4px;
    padding: 6px 10px 6px 0;
  }
  .wl-place { grid-area: place; height: 100%; min-height: 62px; }
  .wl-player { grid-area: player; }
  .wl-cell-region { grid-area: region; justify-self: end; }
  .wl-cell-mode { grid-area: mode; font-size: 13px; }
  .wl-cell-status { grid-area: status; justify-self: end; }
  .wl-cell-eta { display: none; }
  .wl-by { display: none; }
  .wl-place-skin { right: 10px; }
}

/* ===========================================================================
 * 17. INICIO — como mctier.es (hero a todo el ancho, secciones de 1048 px)
 * =========================================================================*/
.home-hero-card {
  max-width: none;
  margin: 10px 0 64px;
  padding: 50px 32px 58px;
  border: 2px solid #18202a;
  border-radius: 14px;
  background: #121822;
  box-shadow: none;
}

.home-hero-card:hover {
  border-color: #18202a;
  box-shadow: none;
}

.home-hero-card::after {
  display: none;
}

.hero-top-pill {
  gap: 8px;
  padding: 5px 14px 5px 8px;
  border: 0;
  background: #1a2233;
  color: #cbd5e1;
  font-size: 13px;
}

.pill-server-img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.hero-giant-title {
  font-size: clamp(34px, 5.6vw, 62px);
  letter-spacing: -0.04em;
}

.hero-title-soft {
  color: #cbd5e1;
}

.hero-giant-subtitle {
  max-width: 660px;
  font-size: 17px;
  color: #a3b0c2;
}

.server-ip-kicker {
  color: #cbd5e1;
}

.server-ip-controls-row {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.region-pills-group {
  gap: 2px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #1a2233;
}

.region-pill-btn {
  padding: 5px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  color: #90a1b9;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.region-pill-btn.is-active {
  background: #1d2d4f;
  border-color: #3a558a;
  color: #e2e8f0;
  box-shadow: none;
}

.server-domain-copy-pill {
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #1a2233;
  font-family: var(--font-geist);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.server-domain-copy-pill svg {
  opacity: 0.25;
  transition: opacity var(--dur) var(--ease-out);
}

.server-domain-copy-pill:hover {
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

.server-domain-copy-pill:hover svg {
  opacity: 1;
}

.btn-hero-white,
.btn-hero-white:hover {
  background: #e5e7eb;
  color: #111827;
  box-shadow: none;
}

.btn-hero-white:hover {
  background: #f3f4f6;
}

.btn-hero-dark {
  border: 0;
  background: #1e2939;
  font-weight: 700;
  box-shadow: none;
}

.btn-hero-dark:hover {
  background: #263345;
}

.hero-live-subpill {
  gap: 8px;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid #263248;
  border-radius: 999px;
  background: #1a2233;
  font-size: 13px;
  color: #a3b0c2;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.hero-live-subpill:hover {
  border-color: #33466a;
  color: #cbd5e1;
}

.hero-live-subpill strong {
  color: #4f8cf7;
}

.hero-live-subpill .live-dot-pulse {
  background: #3b82f6;
  box-shadow: none;
  animation: wlPulse 2s ease-out infinite;
}

/* Anchos de las secciones */
.home-stats-4-row,
.home-why-section,
.home-section-block,
.home-cta-cards-stack {
  max-width: 1048px;
}

.home-section-block,
.home-why-section {
  margin-bottom: 64px;
}

.home-section-header,
.why-header-text {
  margin-bottom: 28px;
}

.home-section-title,
.why-title-h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.home-section-subtitle,
.why-subtitle-p {
  font-size: 16px;
  color: #90a1b9;
}

/* Tarjetas del inicio: borde de 2 px más claro, fondo apenas más claro */
.home-stat-box,
.why-card-item,
.home-gamemode-card,
.home-region-card,
.home-how-card,
.home-podium-card {
  border: 2px solid #2a3446;
  border-radius: 10px;
  background: #161e29;
  box-shadow: none;
}

.home-stat-box:hover,
.why-card-item:hover,
.home-gamemode-card:hover,
.home-region-card:hover,
.home-how-card:hover,
.home-podium-card:hover {
  border-color: #3a4a63;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}

.home-stats-4-row {
  gap: 13px;
  margin-bottom: 64px;
}

.home-stat-box {
  padding: 24px 16px;
}

.stat-number {
  font-size: 36px;
}

.why-cards-4-grid {
  gap: 13px;
}

.why-card-item {
  padding: 26px 18px;
}

.why-icon-bubble {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #10161d;
}

.why-icon-bubble img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.why-ico {
  width: 18px;
  height: 18px;
  color: #fff;
}

.why-item-desc {
  color: #a3b0c2;
}

/* Modos */
.home-gamemode-card {
  padding: 14px 16px 16px;
}

.home-gamemode-card .gamemode-icon-wrap {
  border-radius: 8px;
  background: #10161d;
}

.gamemode-label {
  font-size: 17px;
}

.gm-ico {
  width: 15px;
  height: 15px;
  color: #cbd5e1;
}

.home-region-card {
  border-radius: 10px;
}

/* CTA */
.home-cta-cards-stack {
  gap: 64px;
}

.home-cta-card-big {
  padding: 46px 32px 48px;
  border: 2px solid #1a2230;
  border-radius: 16px;
  background: #121822;
  box-shadow: none;
}

.home-cta-card-big:hover {
  transform: none;
  border-color: #222c3c;
  box-shadow: none;
}

.home-cta-card-big.cta-featured {
  border-color: #33466a;
  background: linear-gradient(180deg, #1b2740 0%, #141c2a 55%, #131a26 100%);
}

.home-cta-card-big.cta-featured:hover {
  border-color: #3d5482;
}

.cta-card-icon-circle {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.cta-icon-square {
  border: 2px solid #3c5b94;
  border-radius: 12px;
  background: #1e3155;
}

.cta-icon-square img {
  width: 32px;
  height: 32px;
}

.cta-icon-discord {
  width: 76px;
  height: 76px;
  border: 2px solid #222b3a;
  border-radius: 50%;
  background: #0d1219;
}

.cta-icon-discord .nav-ico {
  width: 40px;
  height: 40px;
  color: #fff;
}

.cta-card-text {
  color: #a3b0c2;
}

.cta-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #182131;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.cta-badge-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.cta-ico {
  width: 16px;
  height: 16px;
  color: #e2e8f0;
}

.btn-discord-blurple {
  border-radius: 6px;
  background: #2563eb;
  box-shadow: none;
}

.btn-discord-blurple:hover {
  background: #1d4ed8;
}

@media (max-width: 640px) {
  .home-hero-card { padding: 36px 16px 40px; margin-bottom: 40px; }
  .home-section-block,
  .home-why-section,
  .home-stats-4-row { margin-bottom: 44px; }
  .home-cta-cards-stack { gap: 32px; }
  .server-ip-controls-row { flex-wrap: wrap; justify-content: center; }
}

/* ===========================================================================
 * 18. API DOCS — armadas desde la especificación OpenAPI (docs.js)
 * =========================================================================*/
.docs-tree-group-header {
  width: 100%;
  border-radius: 6px;
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.docs-tree-group-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.docs-tree-group .group-caret {
  transition: transform var(--dur) var(--ease-out);
}

.docs-tree-group.is-open .group-caret {
  transform: rotate(90deg);
}

.docs-tree-group .docs-tree-sublist {
  display: none;
}

.docs-tree-group.is-open .docs-tree-sublist {
  display: flex;
  animation: ehRowIn 0.24s var(--ease-out) backwards;
}

.docs-sublink {
  gap: 8px;
}

.docs-sublink > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.http-mini-badge.model,
.http-op-tag.model {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

button.operation-row {
  width: 100%;
  text-align: left;
}

.doc-params {
  margin-bottom: 18px;
}

.doc-params:empty {
  display: none;
}

.doc-params .responses-title {
  margin: 14px 0 8px;
}

.doc-param,
.doc-prop {
  padding: 10px 0;
  border-top: 1px solid #1c2533;
}

.doc-param:last-child,
.doc-prop:last-child {
  border-bottom: 1px solid #1c2533;
}

.doc-param-head,
.doc-prop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-param-name,
.doc-prop > code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.doc-param-type {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #90a1b9;
}

.doc-param-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #64748b;
}

.doc-param-req {
  font-size: 11.5px;
  font-weight: 700;
  color: #f59e0b;
}

.doc-param-desc {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}

.doc-param-desc code,
.endpoint-description-p code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #1a2233;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cbd5e1;
}

.doc-props {
  margin-top: 8px;
}

details.doc-resp {
  display: block;
  padding: 0;
}

details.doc-resp > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color var(--dur-fast) var(--ease-out);
}

details.doc-resp > summary::-webkit-details-marker {
  display: none;
}

details.doc-resp > summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

details.doc-resp .resp-plus-toggle {
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}

details.doc-resp[open] .resp-plus-toggle {
  transform: rotate(45deg);
}

.doc-resp-body {
  padding: 4px 14px 12px 36px;
  animation: ehRowIn 0.26s var(--ease-out) backwards;
}

.badge-4xx {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-2xx {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-5xx {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.doc-ms {
  font-size: 11px;
  color: #64748b;
}

.runner-code-area .runner-line {
  white-space: pre;
}

.docs-v2-endpoint-workspace.is-swapping .endpoint-info-col,
.docs-v2-endpoint-workspace.is-swapping .endpoint-console-col {
  animation: ehRowIn 0.32s var(--ease-out) backwards;
}

.docs-v2-endpoint-workspace.is-swapping .endpoint-console-col {
  animation-delay: 0.05s;
}

.client-lib-tab {
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.docs-v2-searchbox .search-icon-svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #64748b;
}

/* El fragmento de código se desplaza a lo ancho en vez de cortarse */
.runner-code-area {
  overflow-x: auto;
}

.runner-code-area .runner-line {
  width: max-content;
  min-width: 100%;
}

.runner-lineno {
  flex: none;
  user-select: none;
}

/* ===========================================================================
 * 19. AJUSTES DE CELULAR para las piezas nuevas
 * =========================================================================*/
/* El perfil no se estira con la fila de tiers: la fila se desplaza adentro */
.dialog-card.profile-card-inner,
.pp-body,
.pp-block,
.pp-box {
  min-width: 0;
}

@media (max-width: 640px) {
  .nav-brand-logo-img {
    width: 100px;
  }

  .nav-right-actions {
    gap: 6px;
  }

  .nav-search-container {
    min-width: 104px;
    padding: 0 10px;
  }

  .lang-picker-btn {
    padding: 0 4px;
  }

  .toolbar-right-selects > .custom-select-box {
    flex: 1 1 0;
    min-width: 0;
  }

  .toolbar-right-selects .custom-select-box select {
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
  }
}

/* ===========================================================================
 * 20. PLANO COMO mctier.es / mctiers.gg (pedido del dueño, oct 2026)
 *     Sin luces de fondo, partículas, brillos que siguen al mouse, ondas,
 *     destellos ni títulos con degradado. Ranking con el formato de mctiers.gg.
 * =========================================================================*/
.ambient-glow,
.ambient-canvas {
  display: none !important;
}

.home-hero-card::after {
  display: none !important;
  animation: none !important;
}

.hero-heading strong,
.board-title-h1,
.why-title-h2,
.cta-card-heading,
.waitlist-title-h1,
.docs-v2-main-title,
.docs-v2-section-h2,
.home-stat-box .stat-number {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
}

.hero-heading strong,
.home-stat-box .stat-number,
.why-title-h2,
.cta-card-heading,
.waitlist-title-h1,
.docs-v2-main-title,
.docs-v2-section-h2 {
  color: #f1f5f9;
}

/* --- Menú de arriba: píldora que se desliza detrás del ítem bajo el mouse --- */
.nav-links-list {
  position: relative;
}

.nav-links-list > li {
  position: relative;
  z-index: 1;
}

.nav-links-list > li.nav-dropdown-item {
  z-index: 3;
}

.nav-hover-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 8px;
  background: rgba(30, 41, 57, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s var(--ease-out), width 0.24s var(--ease-out), height 0.24s var(--ease-out), opacity 0.16s ease;
}

.nav-hover-pill.is-on {
  opacity: 1;
}

.nav-hover-pill.no-anim {
  transition: opacity 0.16s ease;
}

@media (hover: hover) {
  .nav-links-list .nav-item,
  .nav-links-list .nav-item:hover,
  .nav-dropdown-item.is-open .nav-dropdown-trigger {
    background: transparent;
  }
}

/* --- Discords: igual que mctiers.gg --- */
.nav-dropdown-item.is-open .nav-dropdown-trigger {
  color: #f9fafb;
}

.nav-dropdown-item.is-open .nav-caret-svg {
  transform: rotate(180deg);
}

.discords-dropdown-popup {
  top: calc(100% + 6px);
  left: 0;
  width: 450px;
  padding: 8px;
  border: 2px solid rgba(203, 213, 225, 0.1);
  border-radius: 10px;
  background: #121822;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(0.94);
  transform-origin: top left;
  transition: opacity 0.14s ease, transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
}

/* Puente invisible sobre el hueco: bajar el mouse al menú no lo cierra */
.discords-dropdown-popup::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

/* Solo lo abre el JS (is-open): el :hover de CSS dejaba un hueco que lo cerraba */
.nav-dropdown-item:hover:not(.is-open) .discords-dropdown-popup {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(0.94);
}

.nav-dropdown-item.is-open .discords-dropdown-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.14s ease, transform 0.22s var(--ease-out), visibility 0s;
}

.discords-2col-grid,
.discords-col {
  gap: 0;
}

.discord-item-pill {
  gap: 12px;
  padding: 4px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #99a1af;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.075s ease, color 0.075s ease;
}

.discord-item-pill:hover,
.discord-item-pill:focus-visible {
  background: #1e2939;
  color: #f9fafb;
  border-color: transparent;
  transform: none;
}

.dc-ico {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #222a38;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  transition: border-color 0.1s ease;
}

.discord-item-pill .dc-ico img {
  width: 24px;
  height: 24px;
  transform: none;
  transition: transform 0.1s ease;
}

.discord-item-pill:hover .dc-ico {
  border-color: #99a1af;
}

.discord-item-pill:hover .dc-ico img {
  transform: scale(1.25);
}

/* Al abrir, los Discords aparecen en cascada (fila por fila) */
.nav-dropdown-item.is-open .discord-item-pill {
  animation: dcItemIn 0.22s var(--ease-out) backwards;
}

.nav-dropdown-item.is-open .discord-item-pill:nth-child(2) { animation-delay: 0.03s; }
.nav-dropdown-item.is-open .discord-item-pill:nth-child(3) { animation-delay: 0.06s; }
.nav-dropdown-item.is-open .discord-item-pill:nth-child(4) { animation-delay: 0.09s; }

@keyframes dcItemIn {
  from { opacity: 0; transform: translateY(-4px); }
}

/* --- RANKINGS: formato de mctiers.gg --- */
#rankingsView .rankings-board-wrapper {
  margin-top: 84px;
}

#rankingsView .rankings-main-board {
  padding: 8px 32px 32px;
  border: 2px solid #18202a;
  border-radius: 12px;
  border-top-left-radius: 0;
  background: #121822;
  box-shadow: none;
}

#rankingsView .rankings-tabs-scroller {
  left: -2px;
  bottom: 100%;
  width: calc(100% + 4px);
  gap: 4px;
  padding-top: 10px;
}

#rankingsView .rankings-tabs-scroller > a {
  display: block;
  flex: none;
  border-radius: 24px 24px 0 0;
}

#rankingsView .rankings-tab-item {
  width: 112px;
  gap: 0;
  padding: 4px 8px 2px;
  border: 2px solid #18202a;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: transparent;
  color: rgba(153, 161, 175, 0.4);
  box-shadow: none;
  transform: none;
  overflow: hidden;
  will-change: auto;
  transition: background-color 0.1s ease, color 0.1s ease, transform 0.14s var(--ease-out);
}

#rankingsView .rankings-tab-item::before,
#rankingsView .rankings-tab-item::after {
  display: none;
}

#rankingsView .rankings-tab-item img {
  width: 30px;
  height: 30px;
  filter: none;
  transform: none;
  transition: transform 0.18s var(--ease-out);
}

#rankingsView .rankings-tab-item strong {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: inherit;
  text-shadow: none;
}

@media (hover: hover) {
  #rankingsView .rankings-tab-item:hover {
    background: rgba(30, 41, 57, 0.5);
    color: #f9fafb;
    border-color: #18202a;
    transform: none;
    box-shadow: none;
  }

  #rankingsView .rankings-tab-item:hover img {
    transform: translateY(-2px) scale(1.08);
    filter: none;
  }

  #rankingsView .rankings-tab-item:hover strong {
    letter-spacing: 0;
    text-shadow: none;
  }
}

/* Al hacer clic: se hunde un poco (como los botones de mctiers.gg) */
#rankingsView .rankings-tabs-scroller > a:active .rankings-tab-item {
  background: rgba(30, 41, 57, 0.2);
  transform: scale(0.95) !important;
}

#rankingsView .rankings-tab-item.is-active {
  background: rgba(30, 41, 57, 0.5);
  color: #f9fafb;
  border-color: #18202a;
  box-shadow: none;
  transform: none;
}

#rankingsView .rankings-tab-item.is-active img {
  transform: none;
  filter: none;
}

#rankingsView .rankings-tab-item-active-line {
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ffffff;
  box-shadow: none;
  animation: rkLineIn 0.26s var(--ease-out) backwards;
}

@keyframes rkLineIn {
  from { opacity: 0; transform: scaleX(0.4); }
}

#rankingsView .rankings-tabs-scroller > a:focus-visible {
  outline: none;
}

#rankingsView .rankings-tabs-scroller > a:focus-visible .rankings-tab-item {
  color: #f9fafb;
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.6);
}

/* Encabezado: título a la izquierda, Information + Server IP a la derecha */
#rankingsView .rankings-board-header {
  align-items: center;
  margin: 0 0 16px;
  padding-top: 8px;
  gap: 16px;
}

#rankingsView .board-header-left {
  min-width: 0;
  margin-right: auto;
}

#rankingsView .board-title-h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e2e8f0;
}

#rankingsView .board-subtitle-p {
  margin-top: 0;
  font-size: 14px;
  color: #99a1af;
}

.rk-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#rankingsView .btn-info-dialog,
.rk-filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: #1e2939;
  color: #f9fafb;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

#rankingsView .btn-info-dialog:hover,
.rk-filter-btn:hover {
  background: rgba(30, 41, 57, 0.8);
  transform: none;
}

#rankingsView .btn-info-dialog:active,
.rk-filter-btn:active {
  transform: scale(0.95);
}

.rk-filter-btn.is-active {
  background: #2a3649;
}

.rk-filter-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border: 2px solid #121822;
  border-radius: 50%;
  background: #3b82f6;
}

.rk-filter-dot[hidden] {
  display: none;
}

.rk-server {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rk-server-trophy {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.rk-server-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #99a1af;
}

.rk-server-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rk-ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #1e2939;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 600;
}

.rk-copy {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.2;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.rk-ip-pill:hover .rk-copy,
.rk-copy:focus-visible {
  opacity: 1;
}

.rk-discord {
  display: flex;
  padding: 4px;
  border-radius: 6px;
  background: #2563eb;
  color: #bfdbfe;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.rk-discord:hover {
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
}

.rk-discord:active {
  transform: scale(0.92);
}

/* Filtros plegables (se abren con el botón Filters) */
.rk-toolbar-fold {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-out);
}

.rk-toolbar-fold > .rankings-filter-toolbar {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.28s;
}

.rk-toolbar-fold.is-open {
  grid-template-rows: 1fr;
}

.rk-toolbar-fold.is-open > .rankings-filter-toolbar {
  padding: 2px 2px 18px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease 0.06s, visibility 0s;
}

@media (max-width: 1024px) {
  #rankingsView .rankings-board-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rk-head-right {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  #rankingsView .rankings-board-wrapper {
    margin-top: 76px;
  }

  #rankingsView .rankings-main-board {
    padding: 8px 14px 18px;
  }

  #rankingsView .board-title-h1 {
    font-size: 20px;
  }

  #rankingsView .rankings-tab-item {
    width: 92px;
  }

  #rankingsView .rankings-tab-item strong {
    font-size: 13.5px;
  }

  .rk-server-trophy {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-hover-pill,
  .discords-dropdown-popup,
  .rk-toolbar-fold,
  .rk-toolbar-fold > .rankings-filter-toolbar {
    transition: none !important;
  }

  .nav-dropdown-item.is-open .discord-item-pill,
  #rankingsView .rankings-tab-item-active-line {
    animation: none !important;
  }
}

/* ===========================================================================
 * 21. LTMs "llegan pronto" + tablero por tiers que carga por partes
 * =========================================================================*/
.ltm-soon {
  padding: 22px 16px 88px;
  text-align: center;
  animation: ehFade 0.28s var(--ease-out) backwards;
}

.ltm-soon[hidden] {
  display: none;
}

.ltm-soon-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
}

.ltm-soon-text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  color: #99a1af;
}

/* En LTMs no hay nada que filtrar */
#rankingsView.is-ltm .rk-filter-btn,
#rankingsView.is-ltm .rk-toolbar-fold {
  display: none;
}

#rankingsView.is-ltm .board-subtitle-p[hidden] {
  display: none;
}

/* Marcador debajo del tablero: avisa que vienen más filas */
.tb-more {
  height: 1px;
}

.tb-more.has-more {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tb-more.has-more::before,
.tb-more.has-more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a4a62;
  animation: tbDot 0.9s ease-in-out infinite alternate;
}

.tb-more.has-more::after {
  animation-delay: 0.3s;
}

@keyframes tbDot {
  from { opacity: 0.3; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

/* Filas del tablero: el navegador solo aplica estilos donde hace falta (menos trabajo al pasar el mouse) */
.tier-player-board-item.tb-row {
  contain: layout paint;
}

@media (prefers-reduced-motion: reduce) {
  .tb-more.has-more::before,
  .tb-more.has-more::after,
  .ltm-soon {
    animation: none;
  }
}

/* ===========================================================================
 * 22. PERFIL DEL JUGADOR (#player/<nombre>) + aviso simple al pasar el mouse
 *     Medidas de mctiers.gg/player: ancho 896, tarjetas con borde de 2 px.
 * =========================================================================*/
.pf-page {
  width: 100%;
  max-width: 896px;
  margin: 32px auto 0;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pf-page > * {
  animation: ehRowIn 0.32s var(--ease-out) backwards;
}

.pf-page > *:nth-child(2) { animation-delay: 0.04s; }
.pf-page > *:nth-child(3) { animation-delay: 0.08s; }
.pf-page > *:nth-child(4) { animation-delay: 0.12s; }
.pf-page > *:nth-child(5) { animation-delay: 0.16s; }

.pf-card {
  border: 2px solid #18202a;
  border-radius: 12px;
  background: #121822;
}

.pf-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.pf-skin {
  width: 112px;
  height: 112px;
  flex: none;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.pf-head-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pf-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: #f9fafb;
}

.pf-title {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.pf-title:hover {
  filter: brightness(1.15);
}

.pf-muted {
  color: #99a1af;
}

.pf-desc {
  margin: 0;
  line-height: 1.65;
  color: #99a1af;
}

.pf-table-wrap {
  overflow: hidden;
}

.pf-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pf-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #18202a;
  font-size: 14px;
  font-weight: 500;
  color: #99a1af;
}

.pf-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(24, 32, 42, 0.5);
}

.pf-table tbody tr:last-child td {
  border-bottom: 0;
}

.pf-table tbody tr {
  transition: background-color 0.12s ease;
}

.pf-table tbody tr:hover {
  background: rgba(30, 41, 57, 0.35);
}

.pf-right,
.pf-pts {
  text-align: right;
}

.pf-pts {
  font-weight: 600;
  color: #f9fafb;
}

.pf-mode {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #f9fafb;
}

.pf-mode:hover span {
  text-decoration: underline;
}

.pf-mode img {
  transition: transform 0.15s var(--ease-out);
}

.pf-mode:hover img {
  transform: scale(1.12);
}

.pf-tier-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pf-tier {
  display: inline-block;
  min-width: 48px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
}

.pf-tier-sm {
  min-width: 40px;
  font-size: 13px;
}

.pf-retired {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #99a1af;
}

.pf-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-section p {
  margin: 0;
}

.pf-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #f9fafb;
}

.pf-strong {
  font-weight: 600;
  color: #f9fafb;
}

.pf-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s ease;
}

.pf-link:hover {
  color: #f9fafb;
}

.pf-learn {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  color: #99a1af;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-missing {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pf-missing-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #f9fafb;
}

@media (max-width: 640px) {
  .pf-page {
    margin-top: 20px;
    gap: 24px;
  }

  .pf-head {
    gap: 16px;
    padding: 20px;
  }

  .pf-skin {
    width: 80px;
    height: 80px;
  }

  .pf-name {
    font-size: 24px;
  }

  .pf-hide-sm {
    display: none;
  }

  .pf-table th,
  .pf-table td {
    padding: 10px 12px;
  }
}

/* Aviso simple (como mctiers.gg): título grande y una línea chica */
.mctiers-tooltip.is-simple {
  min-width: 0;
  padding: 6px 12px 7px;
  border-width: 1px;
  border-radius: 8px;
  background: #0b0f15;
  text-align: center;
}

.mctiers-tooltip.is-simple .hint-t {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #f9fafb;
}

.mctiers-tooltip.is-simple .hint-s {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #cbd5e1;
}

.mctiers-tooltip.is-simple .hint-s:empty {
  display: none;
}

/* En la ventana del jugador, lo que tiene aviso muestra que se puede señalar */
.pp-title[data-hint],
.pp-place[data-hint],
.pp-tiers [data-hint] {
  cursor: default;
}

.pp-tiers [data-hint] {
  transition: transform 0.14s var(--ease-out);
}

.pp-tiers [data-hint]:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .pf-page > * {
    animation: none;
  }
}

/* ===========================================================================
 * 23. WAITLIST igual a mctier.es/waitlist (oct 2026)
 *     Medidas y colores copiados de su hoja de estilos; fuente Geist.
 * =========================================================================*/
#waitlistView {
  --wq-blue: #5b8def;
  --wq-yellow: #e5ba43;
  --wq-muted: #99a1af;
  --wq-dim: #222a38;
  --wq-accent: #1e2939;
  --wq-border: #18202a;
  --wq-fg: #f9fafb;
  font-family: Geist, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#waitlistView h1,
#waitlistView h2,
#waitlistView h3,
#waitlistView strong,
#waitlistView button {
  font-family: inherit;
}

.wq-card {
  position: relative;
  width: 100%;
  max-width: 1352px;
  margin: 48px auto 32px;
  padding: 24px 32px 8px;
  border: 2px solid var(--wq-border);
  border-radius: 12px;
  background: #121822;
}

.wq-muted {
  margin: 0;
  color: var(--wq-muted);
  font-size: 14px;
}

/* Cabecera */
.wq-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.wq-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--wq-fg);
}

.wq-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--wq-muted);
}

.wq-sub strong {
  color: var(--wq-fg);
}

.wq-sub em {
  font-style: italic;
}

.wq-head-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wq-server {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wq-server-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.wq-server-label {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--wq-muted);
}

.wq-server-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wq-server-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--wq-accent);
  color: var(--wq-fg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.wq-copy {
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.2;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wq-server-badge:hover .wq-copy,
.wq-copy:focus-visible {
  opacity: 1;
}

/* Selectores con píldora que se desliza (NA/EU y On Duty / All Testers) */
.wq-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--wq-border);
  border-radius: 999px;
  background: var(--wq-dim);
}

.wq-server .wq-toggle {
  margin-bottom: 5px;
}

.wq-toggle-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 0;
  border: 1px solid rgba(91, 141, 239, 0.45);
  border-radius: 999px;
  background: rgba(91, 141, 239, 0.16);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.wq-toggle-pill.no-anim {
  transition: none;
}

#waitlistView .wq-toggle-btn {
  position: relative;
  z-index: 1;
  padding: 5px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--wq-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s ease;
}

#waitlistView .wq-toggle-btn:hover,
#waitlistView .wq-toggle-btn.is-active {
  background: transparent;
  color: var(--wq-fg);
}

/* Join Queue */
.wq-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wq-join:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.35);
}

.wq-join:active {
  transform: translateY(0) scale(0.98);
}

.wq-join-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Testers de turno */
.wq-duty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 16px 20px;
  border: 2px solid var(--wq-border);
  border-radius: 14px;
  background: #121822;
}

.wq-duty-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wq-duty-body.is-swapping > * {
  animation: wqIn 0.28s var(--ease-out) backwards;
}

.wq-duty-tester {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wq-duty-skin {
  flex-shrink: 0;
  border-radius: 10px;
}

.wq-duty-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wq-duty-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wq-blue);
}

.wq-duty-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--wq-fg);
}

.wq-duty-tip {
  display: inline-flex;
  color: var(--wq-muted);
  cursor: help;
}

.wq-duty-tip:hover {
  color: var(--wq-fg);
}

.wq-duty-others {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--wq-muted);
}

.wq-duty-other {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 3px;
  border: 1px solid var(--wq-border);
  border-radius: 999px;
  background: rgba(30, 41, 57, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: var(--wq-muted);
  cursor: default;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wq-duty-other:hover {
  background: rgba(30, 41, 57, 0.55);
  border-color: rgba(91, 141, 239, 0.4);
  color: var(--wq-fg);
}

.wq-duty-other-skin {
  flex-shrink: 0;
  border-radius: 50%;
}

.wq-testers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wq-testers-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wq-tester-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wq-tester-region {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wq-tester-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.wq-tester-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  border: 1px solid var(--wq-border);
  border-radius: 999px;
  background: rgba(30, 41, 57, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: var(--wq-muted);
  cursor: help;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wq-tester-chip:hover {
  background: rgba(30, 41, 57, 0.55);
  border-color: rgba(91, 141, 239, 0.4);
  color: var(--wq-fg);
}

.wq-tester-chip.duty {
  border-color: rgba(91, 141, 239, 0.55);
  background: rgba(91, 141, 239, 0.14);
  color: #9db9f2;
}

.wq-tester-chip-skin {
  flex-shrink: 0;
  border-radius: 6px;
}

.wq-tester-chip-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reloj */
.wq-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--wq-muted);
}

.wq-clock-utc {
  padding-left: 8px;
  border-left: 1px solid var(--wq-border);
  font-size: 12px;
  color: var(--wq-dim);
}

/* Punto azul que late */
.wq-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  display: inline-block;
  border-radius: 50%;
  background: var(--wq-blue);
  animation: wqPulse 1.2s ease-in-out infinite;
}

@keyframes wqPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Contadores */
.wq-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 2px solid rgba(98, 116, 142, 0.4);
  border-radius: 10px;
  background: #18202c;
  font-size: 14px;
  color: var(--wq-muted);
}

.wq-summary strong {
  color: var(--wq-fg);
}

.wq-summary-test {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wq-blue);
}

.wq-summary-test strong {
  color: var(--wq-blue);
}

.wq-summary-last {
  margin-left: auto;
}

/* En test ahora (con el formato de "Recent tier results") */
.wq-results {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 2px solid rgba(98, 116, 142, 0.4);
  border-radius: 10px;
  background: #18202c;
}

.wq-results-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--wq-muted);
}

.wq-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  animation: wqIn 0.3s var(--ease-out) backwards;
}

.wq-result:nth-child(2) { animation-delay: 0.04s; }
.wq-result:nth-child(3) { animation-delay: 0.08s; }
.wq-result:nth-child(4) { animation-delay: 0.12s; }
.wq-result:nth-child(n+5) { animation-delay: 0.16s; }

.wq-result + .wq-result {
  border-top: 1px solid rgba(24, 32, 42, 0.7);
}

.wq-result-skin {
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.wq-result-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wq-result-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wq-fg);
}

.wq-result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--wq-muted);
}

.wq-result-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--wq-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--wq-fg);
  white-space: nowrap;
}

.wq-result-arena {
  font-weight: 700;
  color: var(--wq-blue);
}

.wq-result-by {
  opacity: 0.85;
}

.wq-result-time {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--wq-muted);
}

/* Encabezado de la tabla */
.wq-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(153, 161, 175, 0.4);
}

.wq-h-rank { width: 140px; padding-left: 8px; flex-shrink: 0; }
.wq-h-player { width: 240px; flex-shrink: 0; text-align: left; }
.wq-h-region { width: 84px; flex-shrink: 0; text-align: center; }
.wq-h-mode { width: 140px; flex-shrink: 0; text-align: center; }
.wq-h-status { width: 130px; flex-shrink: 0; text-align: center; }
.wq-h-since { width: 90px; flex-shrink: 0; margin-left: auto; text-align: right; }

/* Filas */
.wq-rows {
  padding-bottom: 16px;
}

.wq-row {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  padding: 0 8px 0 0;
  border: 2px solid var(--wq-border);
  border-radius: 12px;
  background: rgba(30, 41, 57, 0.25);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  animation: wqRowIn 0.35s var(--ease-out) backwards;
}

.wq-row:hover {
  background: var(--wq-accent);
  transform: translateX(-16px);
}

.wq-row:focus-visible {
  outline: none;
  border-color: rgba(148, 163, 184, 0.6);
}

.wq-row.testing {
  border-color: rgba(91, 141, 239, 0.55);
}

.wq-row.testing:hover {
  border-color: rgba(91, 141, 239, 0.8);
}

@keyframes wqRowIn {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes wqIn {
  from { opacity: 0; transform: translateY(-3px); }
}

.wq-rank {
  position: relative;
  width: 140px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  overflow: clip;
  border-radius: 10px 0 0 10px;
}

.wq-rank-shimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wq-rank-num {
  position: absolute;
  left: 8px;
  bottom: 4px;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  filter: drop-shadow(0 3px 1px #232323);
}

.wq-rank-skin {
  position: absolute;
  right: 20px;
  border-radius: 6px;
  filter: drop-shadow(-4px -2px 1px rgba(0, 0, 0, 0.47));
  image-rendering: pixelated;
  transition: transform 0.15s ease;
}

.wq-row:hover .wq-rank-skin {
  transform: scale(1.06);
}

.wq-info {
  width: 240px;
  min-width: 0;
  flex-shrink: 0;
}

.wq-name {
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  color: #cbd5e1;
}

.wq-ach {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

.wq-ach img {
  flex-shrink: 0;
  border-radius: 4px;
}

.wq-region {
  width: 84px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.wq-region-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
}

.wq-mode {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wq-mode img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.wq-mode span {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.wq-status {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.wq-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.wq-status-badge.waiting {
  background: rgba(229, 186, 67, 0.15);
  color: var(--wq-yellow);
}

.wq-status-badge.test {
  background: rgba(91, 141, 239, 0.18);
  color: var(--wq-blue);
}

.wq-status-testby {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--wq-muted);
}

.wq-status-region {
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.wq-since {
  width: 90px;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--wq-muted);
}

.wq-since-live {
  font-weight: 700;
  color: var(--wq-blue);
}

.wq-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--wq-muted);
}

/* Celular (los mismos cortes que mctier.es) */
@media (max-width: 900px) {
  .wq-clock-utc,
  .wq-h-region,
  .wq-region {
    display: none;
  }

  .wq-duty {
    flex-direction: column;
    align-items: flex-start;
  }

  .wq-duty-main {
    width: 100%;
  }

  .wq-clock {
    align-self: flex-end;
  }

  .wq-tester-chip-name {
    max-width: 90px;
  }

  .wq-card {
    margin-top: 32px;
    padding: 24px 16px 8px;
  }
}

@media (max-width: 600px) {
  .wq-h-mode,
  .wq-mode {
    display: none;
  }

  .wq-summary-last {
    margin-left: 0;
  }

  .wq-card {
    padding: 20px 12px 8px;
  }

  .wq-h-rank,
  .wq-rank {
    width: 104px;
  }

  .wq-h-player,
  .wq-info {
    width: auto;
    flex: 1;
  }

  .wq-h-status,
  .wq-status {
    width: auto;
  }

  .wq-h-since,
  .wq-since {
    width: 64px;
  }

  .wq-rank-skin {
    right: 8px;
    width: 44px;
    height: 44px;
  }

  .wq-rank-num {
    font-size: 26px;
  }

  .wq-name {
    font-size: 17px;
  }

  .wq-ach span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wq-row:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wq-row,
  .wq-result,
  .wq-duty-body.is-swapping > *,
  .wq-dot {
    animation: none;
  }

  .wq-toggle-pill {
    transition: none;
  }
}

/* ===========================================================================
 * 24. CAMBIO DE IDIOMA: transición, bandera que gira, aviso y espera
 * =========================================================================*/
/* El contenido se desvanece antes de traducirse… */
html.lang-out .page-view,
html.lang-out .nav-links-list,
html.lang-out .site-footer {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(6px);
  transition: opacity 0.19s ease, filter 0.19s ease, transform 0.19s ease;
}

/* …y vuelve a aparecer ya traducido */
html.lang-in .page-view,
html.lang-in .nav-links-list,
html.lang-in .site-footer {
  animation: langIn 0.42s var(--ease-out) both;
}

html.lang-in .nav-links-list {
  animation-delay: 0.04s;
}

@keyframes langIn {
  from { opacity: 0; filter: blur(3px); transform: translateY(-6px); }
  to { opacity: 1; filter: none; transform: none; }
}

/* Botón del idioma: la bandera late mientras carga y gira al cambiar */
.lang-picker-btn {
  position: relative;
  perspective: 300px;
}

.lang-picker-btn.is-switching .lang-flag {
  animation: flagWait 0.5s ease-in-out infinite alternate;
}

@keyframes flagWait {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.86); opacity: 0.55; }
}

.lang-flag.is-flip {
  animation: flagFlip 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes flagFlip {
  0% { transform: rotateY(90deg) scale(0.8); opacity: 0.2; }
  100% { transform: none; opacity: 1; }
}

/* Barra de espera: se vacía en el tiempo que falta para poder cambiar otra vez */
.lang-picker-btn::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #5b8def;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.lang-picker-btn.is-cooldown {
  cursor: progress;
}

.lang-picker-btn.is-cooldown::after {
  opacity: 1;
  animation: langCooldown var(--cooldown, 1200ms) linear forwards;
}

@keyframes langCooldown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.lang-picker-btn.is-cooldown + .lang-picker-pop .lang-option {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Si se intenta cambiar durante la espera, el botón "dice que no" */
.lang-picker-btn.is-nudge {
  animation: langNudge 0.36s ease;
}

@keyframes langNudge {
  20% { transform: translateX(-3px); }
  45% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
  100% { transform: none; }
}

/* Aviso con el idioma elegido */
.lang-toast {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 2px solid #1e2939;
  border-radius: 999px;
  background: #121822;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  color: #f9fafb;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.lang-toast .lang-flag {
  display: inline-flex;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 3px;
}

.lang-toast .lang-flag svg {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .lang-picker-btn.is-switching .lang-flag,
  .lang-flag.is-flip,
  .lang-picker-btn.is-nudge,
  html.lang-in .page-view,
  html.lang-in .nav-links-list,
  html.lang-in .site-footer {
    animation: none;
  }

  .lang-toast {
    transition: opacity 0.2s ease;
    transform: translate(-50%, 0);
  }
}

/* Puestos de 4 o más cifras: un poco más chicos para que entren enteros */
.pp-place-num.is-long {
  font-size: 30px;
}

@media (max-width: 640px) {
  .pp-place-num.is-long {
    font-size: 25px;
  }
}

/* WaitList: IP del servidor y "Join Queue" a la derecha del título (como mctier.es en pantallas anchas) */
.wq-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.wq-title-wrap {
  min-width: 0;
  flex: 1 1 420px;
}

.wq-head-right {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .wq-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wq-title-wrap {
    flex-basis: auto;
  }
}

/* ===========================================================================
 * 25. INICIO igual a mctier.es: animaciones, formato y tamaños
 *     (valores sacados de su hoja de estilos y medidos cuadro por cuadro)
 * =========================================================================*/

/* --- Entradas (las pone applyHomeMotion en app.js) --- */
#homeView .mo {
  opacity: 0;
  transform: translateY(var(--mo-y, 16px));
}

/* Mientras se prepara, salta al punto de partida (sin la transición propia de la tarjeta) */
#homeView .mo:not(.mo-in) {
  transition: none !important;
}

#homeView .mo.mo-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) var(--mo-d, 0s), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) var(--mo-d, 0s);
}

/* El podio lleva su propia posición: la entrada no debe pisarla */
#homeView .home-podium-card.mo {
  transform: translateY(calc(var(--mo-y, 16px) + var(--pod-y, 0px)));
}

#homeView .home-podium-card.mo.mo-in {
  transform: translateY(var(--pod-y, 0px));
}

/* --- Portada --- */
.home-hero-card {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 56px;
  border: 2px solid #18202a;
  border-radius: 12px;
  background: #121822;
}

/* Luz suave arriba al centro, como mctier.es */
.home-hero-card::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 720px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 132, 163, 0.14), transparent);
  pointer-events: none;
}

.home-hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-top-pill {
  padding: 6px 14px 6px 10px;
  border: 1px solid #18202a;
  border-radius: 999px;
  background: #1e2939;
  color: #99a1af;
  font-size: 13px;
  font-weight: 600;
}

.hero-giant-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.hero-title-soft {
  color: #cbd5e1;
}

.hero-giant-subtitle {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.55;
  color: #99a1af;
}

.hero-cta-buttons-row {
  gap: 12px;
}

.home-hero-card .btn-hero-white,
.home-hero-card .btn-hero-dark,
.home-cta-card-big .btn-hero-white,
.home-cta-card-big .btn-hero-dark {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.home-hero-card .btn-hero-white,
.home-cta-card-big .btn-hero-white {
  background: #e5e7eb;
  color: #101828;
}

.home-hero-card .btn-hero-white:hover,
.home-cta-card-big .btn-hero-white:hover {
  background: rgba(229, 231, 235, 0.85);
  transform: none;
}

.home-hero-card .btn-hero-dark,
.home-cta-card-big .btn-hero-dark {
  border: 2px solid #18202a;
  background: #1e2939;
  color: #f9fafb;
}

.home-hero-card .btn-hero-dark:hover,
.home-cta-card-big .btn-hero-dark:hover {
  background: rgba(30, 41, 57, 0.8);
  transform: none;
}

.hero-live-subpill {
  margin-top: 6px;
  padding: 8px 16px;
  border: 1px solid #18202a;
  border-radius: 999px;
  background: #1e2939;
  font-size: 13px;
  color: #99a1af;
}

.hero-live-subpill a,
.hero-live-subpill strong {
  color: #5b8def;
  font-weight: 600;
  transition: color 0.15s ease;
}

.hero-live-subpill a:hover {
  color: #93c5fd;
}

/* Punto que late (1,8 s) */
.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #5b8def;
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.18);
  animation: heroDotPulse 1.8s ease-in-out infinite;
}

@keyframes heroDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* --- Secciones --- */
.home-stats-4-row,
.home-section-block,
.home-why-section {
  max-width: 1048px;
}

.home-stats-4-row {
  gap: 12px;
  margin-top: 64px;
}

.home-section-block,
.home-why-section {
  margin-top: 64px;
}

.home-section-title,
.why-title-h2 {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-section-subtitle,
.why-subtitle-p {
  margin-bottom: 28px;
  font-size: 16px;
  color: #99a1af;
}

/* Tarjetas de mctier.es: fondo #18202c, borde gris azulado; al pasar el mouse suben 2 px */
.home-stat-box,
.why-card-item,
.home-gamemode-card,
.home-region-card {
  border: 2px solid rgba(98, 116, 142, 0.45);
  border-radius: 10px;
  background: #18202c;
  box-shadow: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-stat-box:hover,
.why-card-item:hover,
.home-gamemode-card:hover,
.home-region-card:hover {
  border-color: rgba(98, 116, 142, 0.75);
  background: #18202c;
  box-shadow: none;
  transform: translateY(-2px);
}

.home-stat-box {
  padding: 20px 16px;
}

.home-stat-box .stat-number {
  font-size: 34px;
  font-weight: 800;
}

.home-stat-box .stat-name {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
}

.home-stat-box .stat-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #99a1af;
}

/* Por qué MCTIERS */
.why-cards-4-grid {
  gap: 12px;
}

.why-card-item {
  padding: 20px 16px;
}

.why-icon-bubble {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 2px solid #222a38;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.why-item-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}

.why-item-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #99a1af;
}

/* Podio: tarjetas iguales, color del puesto y el destello de rayas cada 2 s */
.home-top-podium-row {
  max-width: 900px;
  gap: 16px;
}

.home-podium-card {
  overflow: hidden;
  padding: 24px 16px 20px;
  border: 2px solid #18202a;
  border-radius: 12px;
  background: rgba(30, 41, 57, 0.55);
  box-shadow: none;
  transform: translateY(var(--pod-y, 0px));
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.home-podium-card > * {
  position: relative;
  z-index: 2;
}

.home-podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.home-podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 16px, rgba(255, 255, 255, 0.2) 16px 26px, transparent 26px 42px);
  transform: translateX(-130%);
  animation: podiumSweep 2s cubic-bezier(0.9, 0, 0.1, 1) infinite;
}

@keyframes podiumSweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

.home-podium-card.rank-1 { --pod-y: -8px; border-color: #e5ba43; box-shadow: none; }
.home-podium-card.rank-2 { border-color: #9aa3b2; }
.home-podium-card.rank-3 { border-color: #b56326; }
.home-podium-card.rank-1::before { background: #efba3c; }
.home-podium-card.rank-2::before { background: #879ea5; }
.home-podium-card.rank-3::before { background: #b56329; }

.home-podium-card:hover,
.home-podium-card.rank-1:hover {
  background: #1e2939;
  box-shadow: none;
  transform: translateY(calc(var(--pod-y, 0px) - 3px));
}

.podium-rank-tag {
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  filter: drop-shadow(0 3px 1px #232323);
}

.home-podium-card.rank-1 .podium-rank-tag,
.home-podium-card.rank-2 .podium-rank-tag,
.home-podium-card.rank-3 .podium-rank-tag {
  color: #fff;
}

.podium-player-name {
  font-size: 20px;
  font-weight: 700;
  color: #cbd5e1;
}

/* Modos */
.home-gamemodes-grid-8 {
  gap: 12px;
}

.home-gamemode-card {
  padding: 14px;
  gap: 10px;
}

.home-gamemode-card .gamemode-icon-wrap {
  width: 44px;
  height: 44px;
  border: 2px solid #222a38;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.home-gamemode-card .gamemode-icon-wrap img {
  width: 24px;
  height: 24px;
}

.home-gamemode-card .gamemode-label {
  font-size: 17px;
  font-weight: 700;
}

.home-gamemode-card .gamemode-bot-row {
  margin-top: 0;
  padding-top: 10px;
  border-top: 2px solid #18202a;
}

/* Regiones */
.home-region-card {
  padding: 16px 12px;
}

.home-region-badge {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
}

.home-region-name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.home-region-count {
  margin-top: 2px;
  font-size: 12px;
  color: #99a1af;
}

/* Cómo funciona */
.home-how-card {
  padding: 24px 20px;
  border: 2px solid #18202a;
  border-radius: 12px;
  background: #121822;
  box-shadow: none;
}

.home-how-card:hover {
  border-color: #18202a;
  box-shadow: none;
  transform: none;
}

.how-card-num-circle {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 2px solid #18202a;
  border-radius: 999px;
  background: #1e2939;
  font-size: 20px;
  font-weight: 800;
  color: #cbd5e1;
}

.how-card-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.how-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #99a1af;
}

/* Puntos y títulos: más angostos (720 px) */
.home-points-card,
.home-titles-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #18202a;
  border-radius: 12px;
  background: #121822;
}

.home-points-card {
  padding: 20px 24px;
}

.home-titles-card {
  padding: 8px 24px;
}

.home-titles-card .home-title-item {
  padding: 14px 0;
  border-bottom: 2px solid #18202a;
}

.home-titles-card .home-title-item:last-child {
  border-bottom: 0;
}

.home-title-item-name {
  font-size: 16px;
  font-weight: 700;
}

.home-title-item-req {
  font-size: 13px;
  color: #99a1af;
}

/* Las tres tarjetas del final */
.home-cta-cards-stack {
  max-width: 1080px;
  gap: 72px;
  margin-top: 72px;
}

.home-cta-card-big {
  padding: 48px 24px;
  border: 2px solid #18202a;
  border-radius: 12px;
  background: #121822;
}

.home-cta-card-big.cta-featured {
  position: relative;
  overflow: hidden;
  border-color: #2f466f;
  border-radius: 16px;
  background: linear-gradient(180deg, #19243b, #121822);
}

.home-cta-card-big.cta-featured::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 560px;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 141, 239, 0.18), transparent);
  pointer-events: none;
}

.home-cta-card-big.cta-featured > * {
  position: relative;
}

.home-cta-card-big .cta-card-heading {
  font-size: 30px;
  font-weight: 800;
}

.home-cta-card-big.cta-featured .cta-card-heading {
  font-size: 32px;
  letter-spacing: -0.01em;
}

.home-cta-card-big .cta-card-text {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  color: #99a1af;
}

.cta-icon-square {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(91, 141, 239, 0.45);
  border-radius: 16px;
  background: rgba(91, 141, 239, 0.18);
}

.cta-icon-discord {
  width: 76px;
  height: 76px;
  border: 2px solid #222a38;
  background: rgba(0, 0, 0, 0.25);
}

.cta-badge-pill {
  padding: 7px 14px;
  border: 1px solid #18202a;
  border-radius: 999px;
  background: rgba(30, 41, 57, 0.4);
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.home-cta-card-big .btn-discord-blurple {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: #2563eb;
  color: #bfdbfe;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.home-cta-card-big .btn-discord-blurple:hover {
  background: rgba(37, 99, 235, 0.9);
  transform: none;
}

/* Celular, con los cortes de mctier.es */
@media (max-width: 900px) {
  .hero-giant-title {
    font-size: 42px;
  }
}

@media (max-width: 600px) {
  .hero-giant-title {
    font-size: 34px;
  }

  .home-hero-card {
    padding: 32px 16px;
  }

  .home-podium-card.rank-1 {
    --pod-y: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homeView .mo {
    opacity: 1;
    transform: none;
  }

  .home-podium-card::after,
  .live-dot-pulse {
    animation: none;
  }
}

/* ===========================================================================
 * 26. SIN SERVIDOR DE MINECRAFT (todavía): sin IP, solo el Discord
 *     Lo prende/apaga SERVER_IP_ENABLED en app.js (clase .no-server-ip en <html>).
 * =========================================================================*/
.no-server-ip-only,
.rk-discord-txt {
  display: none !important;
}

html.no-server-ip span.no-server-ip-only {
  display: inline !important;
}

html.no-server-ip .needs-server-ip,
html.no-server-ip .hero-server-ip-widget,
html.no-server-ip .rk-server-trophy,
html.no-server-ip .rk-server-kicker,
html.no-server-ip .rk-ip-pill,
html.no-server-ip .wq-server,
html.no-server-ip .btn-server-ip,
html.no-server-ip .footer-java-bedrock {
  display: none !important;
}

/* Ranking: el botón de Discord con su texto, del alto de "Information" */
html.no-server-ip .rk-discord {
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

html.no-server-ip .rk-discord svg {
  width: 16px;
  height: 16px;
}

html.no-server-ip .rk-discord-txt {
  display: inline !important;
}

/* Pie de página: Discord en lugar de la IP */
html.no-server-ip .footer-discord-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease;
}

html.no-server-ip .footer-discord-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

html.no-server-ip .footer-discord-cta:active {
  transform: scale(0.97);
}

/* "How it works" queda con dos pasos */
html.no-server-ip .home-how-grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  html.no-server-ip .home-how-grid-3 {
    grid-template-columns: 1fr;
  }
}

html.no-server-ip .footer-discord-cta {
  width: fit-content;
  align-self: flex-start;
}

/* ===========================================================================
 * 27. MENÚ DEL CELULAR (como mctiers.gg): panel desde la derecha
 * =========================================================================*/
/* El menú viejo (lista desplegada bajo la cabecera) ya no se usa */
.nav-links-list.mobile-open {
  display: none !important;
}

html.mnav-lock,
html.mnav-lock body {
  overflow: hidden;
}

.mnav[hidden] {
  display: none;
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 500;
}

.mnav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mnav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(370px, 78vw);
  display: flex;
  flex-direction: column;
  padding: 52px 0 20px;
  border-left: 1px solid #1e2939;
  background: #10161d;
  box-shadow: -24px 0 48px -12px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mnav.is-open .mnav-backdrop { opacity: 1; }
.mnav.is-open .mnav-panel { transform: none; }

.mnav.is-closing .mnav-backdrop { opacity: 0; transition-duration: 0.22s; }
.mnav.is-closing .mnav-panel { transform: translateX(100%); transition: transform 0.26s cubic-bezier(0.4, 0, 1, 1); }

.mnav-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #99a1af;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.mnav-close:hover {
  background: #1e2939;
  color: #f9fafb;
  transform: rotate(90deg);
}

.mnav-links {
  display: flex;
  flex-direction: column;
}

.mnav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  color: #f9fafb;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.mnav-item:hover,
.mnav-item:focus-visible,
.mnav-item.is-active {
  background: #1e2939;
  outline: none;
}

.mnav-ico {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
}

.mnav-discords {
  margin-top: auto;
  padding: 24px 18px 0;
}

.mnav-label {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  color: #99a1af;
}

.mnav-discord-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mnav-discord {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1e2939;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mnav-discord img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.mnav-discord:hover,
.mnav-discord:focus-visible {
  border-color: #99a1af;
  background: #1e2939;
  outline: none;
}

.mnav-discord:hover img {
  transform: scale(1.18);
}

.mnav-discord:active {
  transform: scale(0.94);
}

/* Al abrir: las opciones entran en cascada */
.mnav.is-open .mnav-item,
.mnav.is-open .mnav-discords {
  animation: mnavItemIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.mnav.is-open .mnav-item:nth-child(1) { animation-delay: 0.06s; }
.mnav.is-open .mnav-item:nth-child(2) { animation-delay: 0.1s; }
.mnav.is-open .mnav-item:nth-child(3) { animation-delay: 0.14s; }
.mnav.is-open .mnav-item:nth-child(4) { animation-delay: 0.18s; }
.mnav.is-open .mnav-discords { animation-delay: 0.22s; }

@keyframes mnavItemIn {
  from { opacity: 0; transform: translateX(18px); }
}

/* El botón de las tres rayas */
.mobile-menu-btn {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mobile-menu-btn:active {
  transform: scale(0.92);
}

@media (min-width: 1025px) {
  .mnav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mnav-backdrop,
  .mnav-panel {
    transition: none !important;
  }

  .mnav.is-open .mnav-item,
  .mnav.is-open .mnav-discords {
    animation: none;
  }
}

/* ===========================================================================
 * 28. TARJETA DE LA IP DEL SERVIDOR (mctier.es) + animación al cambiar de región
 *     La IP es la misma en NA y EU: el cambio se confirma con la píldora que se
 *     desliza, la IP que "rueda" hacia el lado del cambio y un brillo que la cruza.
 * =========================================================================*/
.ipx {
  gap: 8px;
}

.ipx .server-ip-kicker {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #8391a7;
}

.ipx-bar {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid #1f2a3c;
  border-radius: 14px;
  background: linear-gradient(180deg, #151d2b 0%, #111827 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 32px -16px rgba(0, 0, 0, 0.7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ipx-bar:hover {
  border-color: #2b3a52;
}

.ipx-bar.ipx-flash {
  animation: ipxFlash 0.75s ease-out;
}

@keyframes ipxFlash {
  0% { border-color: #1f2a3c; }
  25% { border-color: rgba(96, 150, 255, 0.75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 4px rgba(59, 130, 246, 0.12), 0 14px 32px -16px rgba(0, 0, 0, 0.7); }
  100% { border-color: #1f2a3c; }
}

/* NA / EU con píldora que se desliza (dos botones iguales: sin medir nada) */
.ipx-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  border: 1px solid #1a2333;
  border-radius: 10px;
  background: #0b111b;
}

.ipx-toggle .region-pill-btn,
.ipx-toggle .region-pill-btn:hover,
.ipx-toggle .region-pill-btn.is-active {
  position: relative;
  z-index: 1;
  width: 46px;
  padding: 6px 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
}

.ipx-toggle .region-pill-btn {
  color: #6f7e95;
  transition: color 0.25s ease, transform 0.15s ease;
}

.ipx-toggle .region-pill-btn:hover {
  color: #c7d2e3;
}

.ipx-toggle .region-pill-btn.is-active {
  color: #fff;
  transition-delay: 0.06s;
}

.ipx-toggle .region-pill-btn:active {
  transform: scale(0.92);
}

.ipx-toggle .region-pill-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 1px;
}

.ipx-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 7px;
  background: linear-gradient(180deg, #3363c9 0%, #2350ad 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(120, 165, 255, 0.35), 0 6px 16px -6px rgba(59, 130, 246, 0.8);
  transition: left 0.42s cubic-bezier(0.34, 1.32, 0.5, 1);
  pointer-events: none;
}

.ipx-toggle[data-active="EU"] .ipx-pill {
  left: 50%;
}

/* La píldora se estira hacia el lado al que va y vuelve */
.ipx-toggle.ipx-go-r .ipx-pill { animation: ipxStretchR 0.42s cubic-bezier(0.34, 1.2, 0.5, 1); }
.ipx-toggle.ipx-go-l .ipx-pill { animation: ipxStretchL 0.42s cubic-bezier(0.34, 1.2, 0.5, 1); }

@keyframes ipxStretchR {
  0% { transform: scaleX(1); transform-origin: 0 50%; }
  35% { transform: scaleX(1.32) scaleY(0.9); transform-origin: 0 50%; }
  100% { transform: scaleX(1); transform-origin: 100% 50%; }
}

@keyframes ipxStretchL {
  0% { transform: scaleX(1); transform-origin: 100% 50%; }
  35% { transform: scaleX(1.32) scaleY(0.9); transform-origin: 100% 50%; }
  100% { transform: scaleX(1); transform-origin: 0 50%; }
}

.ipx-sep {
  width: 1px;
  height: 22px;
  background: #222d40;
}

/* La IP */
.ipx-copy,
.ipx-copy:hover {
  position: relative;
  overflow: hidden;
  gap: 9px;
  padding: 7px 12px 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  transform: none;
  font-family: var(--font-geist, Geist, system-ui, sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8fafc;
}

.ipx-copy {
  transition: background-color 0.2s ease;
}

.ipx-copy:hover {
  background: #1a2335;
}

.ipx-copy:active {
  background: #1f2a40;
}

.ipx-copy:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 1px;
}

.ipx-roll {
  display: inline-flex;
  overflow: hidden;
  padding: 0 2px;
  margin: 0 -2px;
}

.ipx-roll > span {
  display: inline-block;
  will-change: transform;
}

/* Brillo que cruza la IP al cambiar de región */
.ipx-copy::after,
.ipx-swp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(147, 197, 253, 0.32) 50%, transparent 75%);
  transform: translateX(-130%);
  pointer-events: none;
}

.ipx-copy.ipx-sweep::after,
.ipx-swp.ipx-sweep::after {
  animation: ipxSweep 0.75s cubic-bezier(0.3, 0.6, 0.3, 1) 0.08s;
}

.ipx-swp {
  position: relative;
  overflow: hidden;
}

@keyframes ipxSweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

/* Ícono de copiar → tilde verde (todos los botones de copiar la IP) */
.ipx-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
}

.ipx-ico > svg {
  grid-area: 1 / 1;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.5, 0.5, 1);
}

.ipx-copy .ipx-ico-copy {
  opacity: 0.4;
}

.ipx-copy:hover .ipx-ico-copy {
  opacity: 1;
}

.ipx-ico-ok {
  color: #4ade80;
  opacity: 0;
  transform: scale(0.4) rotate(-35deg);
}

.copy-ip-btn.is-copied {
  opacity: 1 !important;
}

.copy-ip-btn.is-copied .ipx-ico-copy {
  opacity: 0 !important;
  transform: scale(0.4) rotate(35deg);
}

.copy-ip-btn.is-copied .ipx-ico-ok {
  opacity: 1;
  transform: none;
}

/* Renglón de abajo: la región elegida */
.ipx-sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #7c8aa0;
}

.ipx-sub > svg {
  color: #5f7ff0;
  flex: none;
}

.ipx-region {
  color: #d5deeb;
  font-weight: 600;
}

.ipx-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #475569;
}

@media (max-width: 480px) {
  .ipx-toggle .region-pill-btn,
  .ipx-toggle .region-pill-btn:hover,
  .ipx-toggle .region-pill-btn.is-active {
    width: 42px;
  }

  .ipx-copy,
  .ipx-copy:hover {
    font-size: 15px;
  }

  .ipx-sub {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipx-pill,
  .ipx-ico > svg {
    transition: none;
  }

  .ipx-toggle .ipx-pill,
  .ipx-bar.ipx-flash,
  .ipx-copy::after,
  .ipx-swp::after {
    animation: none !important;
  }
}
