/* Ranking v3 — escenario con podio (1, 2, 3 o N jugadores) + lista de cristal. Solo clases .rk-* */

.rk-wrap {
  --rk-gold: linear-gradient(160deg, #FFE7A3 0%, #FFC94A 38%, #F29A1E 100%);
  --rk-silver: linear-gradient(160deg, #F4F7FB 0%, #C9D3E3 45%, #8C9AB3 100%);
  --rk-bronze: linear-gradient(160deg, #FFD3AE 0%, #E39A63 45%, #A85A2A 100%);
  --rk-gold-glow: 0 18px 48px -12px rgba(255, 181, 71, 0.65);
  --rk-silver-glow: 0 16px 40px -14px rgba(160, 180, 210, 0.55);
  --rk-bronze-glow: 0 16px 40px -14px rgba(217, 142, 79, 0.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 12px;
}

/* Arriba siempre (no centrado en vertical por el shell): al cambiar de pestaña o llegar los datos, la
   cabecera y los controles no se mueven. */
body[data-screen="ranking"] main#app > .rk-wrap { margin-top: 0; }

/* Solo para lectores de pantalla */
.rk-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Cabecera ------------------------------------------------------------- */
.rk-hero { display: flex; align-items: center; gap: 14px; padding: 6px 2px 0; }
.rk-hero-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #3A2300;
  background: var(--rk-gold);
  box-shadow: var(--glow-gold, var(--rk-gold-glow));
}
.rk-hero-title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.rk-hero-sub { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.rk-ic { display: inline-grid; place-items: center; line-height: 0; }

/* --- Controles ------------------------------------------------------------ */
.rk-controls { display: flex; flex-direction: column; gap: 10px; }
/* Móvil y tableta: Global|Amigos y Hoy|Ayer en dos mitades iguales; sin día, el ámbito a lo ancho. */
.rk-subcontrols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 10px; }
.rk-subcontrols:has(> .rk-day[hidden]) > .rk-seg-small { grid-column: 1 / -1; }
.rk-subcontrols .rk-seg-small { width: 100%; min-width: 0; }
.rk-day { display: flex; min-width: 0; }
.rk-day > .rk-seg-small { flex: 1 1 auto; }
.rk-day[hidden] { display: none; }
.rk-seg .rk-seg-item { min-height: 44px; font-size: 15px; }
.rk-seg-small { width: auto; flex: none; }
.rk-seg-small .rk-seg-item { flex: 1 1 0; padding: 0 12px; font-size: 14px; min-width: 0; }
.rk-seg .rk-seg-item:focus-visible {
  outline: 2px solid var(--brand-2, var(--accent));
  outline-offset: 2px;
  border-radius: var(--radius-pill, 999px);
}

/* --- Cuerpo y tablero ----------------------------------------------------- */
/* Alto reservado (≈ lo que queda de pantalla): los estados (vacío, error, amigos) se centran dentro y
   el esqueleto → datos no mueve nada de lo de arriba. */
.rk-body { display: flex; flex-direction: column; gap: 14px; min-height: max(280px, calc(100dvh - 360px - var(--tabbar-h) - var(--tabbar-gap))); }
.rk-body > .rk-state { margin-block: auto; }
.rk-board { display: flex; flex-direction: column; gap: 14px; }
.rk-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Escenario del podio: panel de cristal con luz dorada desde abajo */
.rk-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 14px 0;
  border-radius: var(--radius-2xl, 28px);
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(255, 181, 71, 0.16), transparent 60%),
    var(--glass, var(--surface));
  border: 1px solid var(--glass-border, var(--separator));
  -webkit-backdrop-filter: blur(var(--blur, 20px)) saturate(160%);
  backdrop-filter: blur(var(--blur, 20px)) saturate(160%);
  overflow: hidden;
}
.rk-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-chip { color: var(--ink-2); font-weight: 600; }
.rk-chip .rk-ic { color: var(--brand-2, var(--accent)); }

/* --- Podio ---------------------------------------------------------------- */
.rk-podium {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 10px;
}
.rk-pod-col {
  --rk-h: 96px;
  --rk-grad: var(--rk-silver);
  --rk-glow: var(--rk-silver-glow);
  --rk-delay: 120ms;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.rk-pod-col[data-place="1"] { --rk-h: 132px; --rk-grad: var(--rk-gold); --rk-glow: var(--rk-gold-glow); --rk-delay: 300ms; }
.rk-pod-col[data-place="3"] { --rk-h: 76px; --rk-grad: var(--rk-bronze); --rk-glow: var(--rk-bronze-glow); --rk-delay: 0ms; }
.rk-pod-vis { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; min-width: 0; }

.rk-pod-avatar {
  position: relative;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 50%;
  background: var(--rk-grad);
  box-shadow: var(--rk-glow);
  margin-bottom: 6px;
  animation: rk-pop 700ms var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)) both;
  animation-delay: calc(var(--rk-delay) + 380ms);
}
.rk-pod-avatar .avatar { display: block; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }
.rk-crown {
  position: absolute;
  top: -24px;
  left: 50%;
  translate: -50% 0;
  color: #FFC94A;
  filter: drop-shadow(0 4px 10px rgba(255, 181, 71, 0.7));
  animation: rk-crown 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}
.rk-pod-medal {
  position: absolute;
  bottom: -6px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rk-grad);
  color: #2A1A08;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 2px var(--bg);
}
.rk-pod-name {
  max-width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rk-pod-score { display: inline-flex; align-items: baseline; gap: 2px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rk-pod-score b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.rk-pod-col[data-place="1"] .rk-pod-score b { font-size: 24px; }
.rk-pod-sub { font-size: 12px; color: var(--ink-2); max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rk-pod-base {
  position: relative;
  width: 100%;
  height: var(--rk-h);
  margin-top: 8px;
  border-radius: 18px 18px 0 0;
  background: var(--rk-grad);
  box-shadow: var(--rk-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transform-origin: 50% 100%;
  animation: rk-rise 900ms var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)) both;
  animation-delay: var(--rk-delay);
}
.rk-pod-base::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: rk-shine 3.6s ease-in-out infinite;
  animation-delay: calc(var(--rk-delay) + 1.2s);
}
.rk-pod-num {
  position: absolute;
  inset: auto 0 10px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(40, 24, 6, 0.55);
  mix-blend-mode: multiply;
}
.rk-pod-col[data-place="1"] .rk-pod-num { font-size: 54px; }
.rk-pod-col[data-me] .rk-pod-name { color: var(--accent-text, var(--brand-1)); }
.rk-pod-col[data-me] .rk-pod-avatar { outline: 3px solid var(--brand-1, var(--accent)); outline-offset: 3px; }

/* Pedestal libre (1 o 2 jugadores): punteado y tenue, no un hueco */
.rk-pod-ghost .rk-pod-avatar--ghost {
  width: 64px;
  height: 64px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 2px dashed color-mix(in srgb, var(--ink-2) 45%, transparent);
  animation: none;
}
.rk-pod-ghost[data-place="1"] .rk-pod-avatar--ghost { width: 84px; height: 84px; }
.rk-ghost-q { font-size: 24px; font-weight: 800; color: var(--ink-2); opacity: 0.7; }
.rk-pod-ghost .rk-pod-name { color: var(--ink-2); font-weight: 600; }
.rk-pod-ghost .rk-pod-base {
  background: color-mix(in srgb, var(--ink-2) 8%, transparent);
  box-shadow: none;
  border: 2px dashed color-mix(in srgb, var(--ink-2) 35%, transparent);
  border-bottom: 0;
}
.rk-pod-ghost .rk-pod-base::before { display: none; }
.rk-pod-ghost .rk-pod-num { color: color-mix(in srgb, var(--ink-2) 55%, transparent); mix-blend-mode: normal; }

/* --- «Tú» ------------------------------------------------------------------ */
.rk-you {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-pill, 999px);
  background: var(--grad-brand, linear-gradient(135deg, #7C5CFF, #C155FF 50%, #FF5E8A));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.rk-pod-vis > .rk-you { margin: 1px 0 2px; }

/* --- Filas ---------------------------------------------------------------- */
.rk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rk-row {
  display: block;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: var(--radius-xl, 20px);
  background: var(--glass, var(--surface));
  border: 1px solid var(--glass-border, var(--separator));
  -webkit-backdrop-filter: blur(var(--blur, 20px)) saturate(160%);
  backdrop-filter: blur(var(--blur, 20px)) saturate(160%);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.rk-row-in {
  display: grid;
  grid-template-columns: 34px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}
@media (hover: hover) {
  .rk-list .rk-row:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.45); }
}
.rk-row-pos { text-align: center; font-weight: 800; font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rk-row .avatar { border-radius: 50%; }
.rk-row-main { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.rk-row-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rk-row-name { font-weight: 700; font-size: 16px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.rk-row-sub { font-size: 12px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rk-row-score { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12px; }
.rk-row-score b { font-size: 17px; font-weight: 800; color: var(--ink); }
.rk-star { display: inline-grid; place-items: center; line-height: 0; color: #FFC94A; align-self: center; margin-left: 2px; }

/* Tu fila: borde de marca */
.rk-row[data-me] {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--glass-strong, var(--surface)), var(--glass-strong, var(--surface))) padding-box,
    var(--grad-brand, linear-gradient(135deg, #7C5CFF, #C155FF 50%, #FF5E8A)) border-box;
  box-shadow: var(--glow-brand, 0 10px 30px -12px rgba(124, 92, 255, 0.7));
}
.rk-row[data-me] .rk-row-pos { color: var(--accent-text, var(--brand-1)); }

/* Fila fija «Tú» abajo cuando tu puesto queda fuera de la vista */
.rk-me-float {
  position: fixed;
  z-index: 40;
  left: 50%;
  width: min(calc(100% - 32px), 560px);
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  bottom: calc(var(--tabbar-h, 64px) + var(--tabbar-gap, 0px) + var(--sab, 0px) + 12px);
  translate: -50% 0;
  transform: translateY(0);
  opacity: 1;
  transition: transform 420ms var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), opacity 220ms ease;
}
.rk-me-float[data-show="false"] { transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform 300ms ease, opacity 200ms ease, visibility 0s 300ms; }
.rk-me-float:focus-visible { outline: 2px solid var(--brand-2, var(--accent)); outline-offset: 3px; }
body:not([data-screen="ranking"]) .rk-me-float { display: none; }

.rk-gap { display: flex; justify-content: center; gap: 5px; padding: 2px 0; list-style: none; }
.rk-gap span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); opacity: 0.6; }

.rk-foot { margin: 4px 2px 0; font-size: 12px; color: var(--ink-2); text-align: center; }

/* Tarjeta lateral cuando no hay lista (≤ 3 jugadores) */
.rk-aside {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-xl, 20px);
  background: var(--glass, var(--surface));
  border: 1px solid var(--glass-border, var(--separator));
}
.rk-aside-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.rk-aside-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
/* En la tarjeta lateral (texto alineado a la izquierda): botones apilados, mismo ancho, hasta 320 px. */
.rk-aside .rk-state-actions { grid-template-columns: minmax(0, 320px); justify-content: start; }

/* --- Estados -------------------------------------------------------------- */
.rk-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 22px 26px;
  border-radius: var(--radius-2xl, 28px);
  background: var(--glass, var(--surface));
  border: 1px solid var(--glass-border, var(--separator));
  -webkit-backdrop-filter: blur(var(--blur, 20px)) saturate(160%);
  backdrop-filter: blur(var(--blur, 20px)) saturate(160%);
}
.rk-state-badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
  border-radius: 24px;
  color: #fff;
  background: var(--grad-brand, linear-gradient(135deg, #7C5CFF, #C155FF 50%, #FF5E8A));
  box-shadow: var(--glow-brand, 0 14px 36px -12px rgba(124, 92, 255, 0.7));
  animation: rk-float 4s ease-in-out infinite;
}
.rk-state-badge[data-tone="gold"] { color: #3A2300; background: var(--rk-gold); box-shadow: var(--rk-gold-glow); }
.rk-state-badge[data-tone="bad"] { background: var(--grad-bad, linear-gradient(135deg, #FF7A7A, #E5484D)); box-shadow: 0 14px 36px -14px rgba(229, 72, 77, 0.7); }
.rk-state-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.rk-state-text { margin: 0; max-width: 38ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
/* Botones de igual ancho: en columna si no caben dos, en fila si caben (nunca uno ancho y otro estrecho). */
.rk-state-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 230px));
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}
.rk-state-actions .rk-cta { width: 100%; }
.rk-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rk-state-actions .rk-cta { margin: 0; }

/* Código de amigo */
.rk-code { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.rk-code-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.rk-code-value {
  min-height: 52px;
  padding: 0 22px;
  border: 1.5px dashed color-mix(in srgb, var(--brand-1, #7C5CFF) 60%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand-1, #7C5CFF) 12%, transparent);
  color: var(--ink);
  font: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.18em;
  cursor: copy;
}
.rk-code-value:focus-visible { outline: 2px solid var(--brand-2, var(--accent)); outline-offset: 3px; }

/* Hoja «Añadir código» */
.rk-add { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.rk-add input {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rk-add input::placeholder { letter-spacing: 0.14em; }
.rk-add-hint { margin: 0; padding: 0 6px; font-size: 13px; color: var(--ink-2); }
.rk-add-err { margin: 0; padding: 0 6px; min-height: 1.3em; font-size: 14px; font-weight: 600; color: var(--bad-text, var(--bad)); }
.rk-add-err:empty { min-height: 0; }
.rk-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --- Esqueleto ------------------------------------------------------------ */
.rk-skel-stage { padding-top: 60px; }
.rk-skel-pod { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; }
.rk-skel-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rk-skel-av { width: 64px; height: 64px; border-radius: 50%; }
.rk-skel-av-lg { width: 84px; height: 84px; }
.rk-skel-base { width: 100%; border-radius: 18px 18px 0 0; }
.rk-skel-rows { display: flex; flex-direction: column; gap: 8px; }
.rk-skel-row { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 14px; border-radius: var(--radius-xl, 20px); background: var(--glass, var(--surface)); border: 1px solid var(--glass-border, var(--separator)); }
.rk-skel-num { width: 22px; height: 14px; border-radius: 7px; flex: none; }
.rk-skel-dot { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.rk-skel-line { height: 14px; flex: 1; border-radius: 7px; max-width: 50%; }
.rk-skel-score { width: 56px; height: 16px; border-radius: 8px; margin-left: auto; flex: none; }
.rk-skel .skeleton { display: block; min-height: 0; margin: 0; padding: 0; }

/* --- Animaciones ---------------------------------------------------------- */
@keyframes rk-rise {
  from { transform: scaleY(0); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes rk-pop {
  from { transform: translateY(18px) scale(0.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes rk-crown {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-4px) rotate(4deg); }
}
@keyframes rk-shine {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes rk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .rk-pod-base, .rk-pod-avatar, .rk-crown, .rk-state-badge, .rk-pod-base::before { animation: none !important; }
  .rk-me-float, .rk-me-float[data-show="false"] { transition: none; }
}

/* --- Móvil estrecho (360 px) ---------------------------------------------- */
@media (max-width: 380px) {
  .rk-hero-title { font-size: 30px; }
  .rk-podium { gap: 6px; }
  .rk-pod-score b { font-size: 18px; }
  .rk-pod-col[data-place="1"] .rk-pod-score b { font-size: 21px; }
  .rk-row { padding: 10px 12px; }
  .rk-row-in { grid-template-columns: 28px 40px minmax(0, 1fr) auto; gap: 10px; }
  .rk-code-value { font-size: 22px; letter-spacing: 0.12em; padding: 0 16px; }
}

/* --- Tableta: el escenario no se estira más de la cuenta ------------------ */
@media (min-width: 640px) and (max-width: 1023px) {
  .rk-podium { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* --- Escritorio: escenario fijo a la izquierda, lista a la derecha -------- */
@media (min-width: 1024px) {
  .rk-wrap { gap: 22px; }
  .rk-controls { flex-direction: row; align-items: center; gap: 16px; }
  .rk-controls > .rk-seg-kind { flex: 1 1 auto; max-width: 480px; }
  .rk-subcontrols { display: flex; flex: none; margin-left: auto; gap: 10px; }
  .rk-subcontrols .rk-seg-small { width: auto; flex: none; }
  .rk-subcontrols .rk-seg-small .rk-seg-item { flex: 1 0 auto; min-width: 76px; padding: 0 16px; }

  .rk-board {
    display: grid;
    grid-template-columns: minmax(380px, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: 24px;
  }
  .rk-stage {
    position: sticky;
    top: calc(var(--topbar-h, 64px) + var(--sat, 0px) + 16px);
    padding: 20px 22px 0;
    min-height: 440px;
    justify-content: space-between;
  }
  .rk-podium { gap: 14px; }
  .rk-pod-col[data-place="1"] { --rk-h: 176px; }
  .rk-pod-col[data-place="2"] { --rk-h: 124px; }
  .rk-pod-col[data-place="3"] { --rk-h: 92px; }
  .rk-pod-name { font-size: 15px; }
  .rk-row { padding: 12px 18px; }
  .rk-aside { padding: 26px; }
  /* Sin lista (≤ 3 jugadores): la tarjeta lateral mide lo mismo que el escenario (fila simétrica). */
  .rk-board:not([data-has-list]) { align-items: stretch; }
  .rk-board:not([data-has-list]) .rk-aside { flex: 1; justify-content: center; }
  .rk-aside-title { font-size: 22px; }
  .rk-skel-stage { min-height: 440px; justify-content: flex-end; }
  .rk-state { padding: 44px 32px 36px; }
  .rk-friends-empty { max-width: 640px; width: 100%; margin-inline: auto; }
  .rk-body > .rk-state:not(.rk-friends-empty) { max-width: 640px; width: 100%; margin-inline: auto; }
}

/* --- Ojitos de los jugadores (integración v3) ------------------------------------ */
.rk-oj { position: relative; display: inline-grid; place-items: center; flex: none; }
.rk-oj > .ojito, .rk-oj > .ojito svg { display: block; width: 100%; height: 100%; }
/* Tamaño pequeño: encuadre de la cara dentro de un círculo */
.rk-oj-face {
  overflow: hidden; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--brand-1, #7C5CFF) 38%, transparent), color-mix(in srgb, var(--brand-1, #7C5CFF) 12%, transparent));
  box-shadow: inset 0 0 0 1px var(--glass-border, rgba(255, 255, 255, 0.14));
}
.rk-oj-face > .ojito { position: absolute; width: 150%; height: 150%; left: -25%; top: -30%; }
.rk-oj-face > .ojito svg { width: 100%; height: 100%; }
.rk-row[data-me] .rk-oj-face { box-shadow: inset 0 0 0 2px var(--brand-1, #7C5CFF); }
/* Podio: el Ojito de pie sobre un halo del color de la medalla */
.rk-pod-avatar--ojito { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.rk-pod-avatar--ojito::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 2%; height: 26%; z-index: -1;
  border-radius: 50%; background: var(--rk-grad); opacity: 0.55; filter: blur(6px);
}
.rk-pod-avatar--ojito .rk-oj { filter: drop-shadow(0 8px 14px rgba(12, 8, 40, 0.35)); }
.rk-pod-col[data-me] .rk-pod-avatar--ojito { outline: none; }
.rk-pod-col[data-me] .rk-pod-avatar--ojito::before { opacity: 0.9; }
