/* 🏅 Ranking (ranking.js) */
.creador-mini { font-size: 13px; margin-left: 3px; }
/* El creador lleva el logo del juego como avatar en todas partes */
img.creador-mini.logo { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; }
.av-logo { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.avatar:has(.av-logo), .nm-pill .av:has(.av-logo) { padding: 0; overflow: hidden; background: #0d2a5c; }
.rk-reto-logo { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.rk-reto .insignia { vertical-align: -5px; }
/* Sistema Raíces: temporada y mesa de ascenso */
.rk-temporada { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, #0b2a6b, #0b8fb3); color: #fff; font-weight: 800; font-size: 14px; text-align: center; }
.rk-serie { display: flex; gap: 8px; justify-content: center; margin: 8px 0 2px; }
.rk-serie span { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; background: #e8eef2; color: #8a97a0; }
.rk-serie span.g { background: #1f7a2e; color: #fff; } .rk-serie span.p { background: #c62828; color: #fff; }
/* Un ranking por tipo de juego: selector Parejas | Mano a mano */
.rk-modos { display: flex; gap: 6px; margin: 0 0 10px; padding: 4px; background: #e8eef2; border-radius: 999px; }
.rk-modos button { flex: 1; border: 0; border-radius: 999px; padding: 9px 10px; background: transparent; font: 800 14px Nunito, system-ui, sans-serif; color: #44535e; cursor: pointer; }
.rk-modos button.on { background: #0b8fb3; color: #fff; box-shadow: 0 2px 6px rgba(11,143,179,.35); }
.rk-modos.entrada { margin: 6px 0 10px; }
.lvl-tuyo { color: var(--muted); font-weight: 700; font-size: 13px; }
.p-rango { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin-bottom: 8px; }
.p-rango .insignia { grid-row: span 2; }
.p-rango span { color: var(--muted); font-size: 13px; }
.p-temporadas { display: grid; gap: 6px; margin-top: 6px; }
.p-tem { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
@media (max-width: 480px) { #lobby .ltab { font-size: 13px; padding-left: 4px; padding-right: 4px; } #lobby .ltab .ico { display: block; margin: 0; } }
@media (min-width: 1100px) {
  /* Arriba de todo, en la columna de la derecha (encima de Jugadores), justo debajo de la bienvenida */
  #lobby > .install-banner, #lobby > .reclaim-bar, #lobby > .welcome { order: -2; }
  #lobby .lpanel[data-lpanel=ranking] { grid-column: 3; order: -1; }
  #lobby .lpanel[data-lpanel=ranking]::before { content: '🏅 Ranking'; }
}
.rk-panel { display: grid; gap: 12px; }
.rk-card { display: grid; gap: 10px; }
.rk-card h3 { margin: 0; font-size: 16px; font-weight: 900; }
.rk-card h3 small { color: var(--muted); font-weight: 700; font-size: 12px; margin-left: 6px; }
.rk-esc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; align-items: end; }
.rk-e { display: grid; justify-items: center; gap: 2px; opacity: .45; }
.rk-e small { font-size: 8.5px; font-weight: 800; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-e.paso, .rk-e.yo { opacity: 1; }
.rk-e.yo img { outline: 3px solid var(--teal); outline-offset: 1px; }
.rk-e.yo small { color: var(--teal); }
.rk-e .aqui { font-size: 10px; font-weight: 900; color: #fff; background: var(--teal); border-radius: 99px; padding: 1px 6px; }
.rk-falta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.rk-falta span { color: var(--muted); }
.rk-barra { height: 8px; border-radius: 99px; background: #eef1f4; overflow: hidden; }
.rk-barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), #2e8b57); }
.rk-podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; }
.rk-pd { display: grid; justify-items: center; gap: 3px; text-align: center; min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.rk-pd b { font-size: 13px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pd small { font-size: 11px; color: var(--muted); font-weight: 700; }
.rk-pd .base { width: 100%; border-radius: 10px 10px 0 0; color: #fff; font-weight: 900; font-size: 22px; display: grid; place-items: center; }
.rk-pd.p1 .base { height: 64px; background: linear-gradient(180deg, #f6d86b, #e0a92a); }
.rk-pd.p2 .base { height: 46px; background: linear-gradient(180deg, #e8edf0, #9fabb4); }
.rk-pd.p3 .base { height: 34px; background: linear-gradient(180deg, #e2a26b, #b36b33); }
.rk-lista { display: grid; gap: 2px; }
.rk-fila { width: 100%; display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 10px;
  border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rk-fila:hover { background: #f3f6f8; }
.rk-fila .n { font-weight: 900; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rk-fila b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-fila b small { display: block; color: var(--muted); font-weight: 700; font-size: 11px; }
.rk-fila .pts { font-weight: 900; font-variant-numeric: tabular-nums; }
.rk-fila.yo { background: #e3f3f8; outline: 2px solid var(--teal); cursor: default; }
.rk-sep { text-align: center; color: var(--muted); font-weight: 900; letter-spacing: 3px; }
.rk-reto { display: flex; align-items: center; gap: 10px; }
.rk-reto b { display: block; font-size: 17px; font-weight: 900; }
.rk-reto small { color: var(--muted); font-weight: 700; }
.rk-reto-t { margin: 0; font-size: 16px; font-weight: 900; color: #b36b33; }
.rk-reto-b { display: flex; }
.rk-reto-b .pf-btn { margin: 0; }
/* Bienvenida: tu puesto */
.wl-puesto { width: 100%; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.18); border: 0; border-radius: 12px; padding: 8px 10px; color: #fff; font: 800 13px Nunito, sans-serif; cursor: pointer; text-align: left; }
.wl-puesto strong { font-size: 19px; font-weight: 900; }
.wl-puesto .t { display: grid; flex: 1; min-width: 0; }
.wl-puesto small { opacity: .9; font-weight: 700; }
.wl-puesto .ver { background: #fff; color: var(--teal); border-radius: 99px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.welcome .wl-puesto { flex-basis: 100%; }
/* Pantalla de entrada: Top 10 público */
.rk-entrada { max-width: 440px; margin: 14px auto; background: radial-gradient(120% 80% at 50% 0%, #17305e, #0b1020); color: #fff; border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.rk-entrada h3 { margin: 0; font-size: 16px; font-weight: 900; color: #ffd54a; }
.rk-entrada .rk-fila { cursor: default; }
.rk-entrada .rk-fila:hover { background: none; }
.rk-entrada .rk-fila .n, .rk-entrada .rk-fila b small { color: rgba(255,255,255,.65); }
.rk-sub { margin: 0; text-align: center; font-size: 12px; opacity: .85; }
/* Tarjeta del jugador: creador y ⭐ */
.pf-ins { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 2px 9px; margin: 2px 4px 0 0; }
.pf-ins.creador { background: #fff3cd; color: #8a6100; }
.pf-ins.estrella { background: #e3f3f8; color: #0b6f86; }
