/* ======================================================================
   INICIO Y SALA DE ESPERA — «celeste suave»
   Las pantallas antes de la partida dejan de ser piezas del tablero: cielo claro de Buenos Aires, superficies
   blancas con sombras suaves, texto azul marino y letra Barlow. El tablero, las cartulinas y los bordes de
   tinta quedan para la partida.
   Todo va con #screen-home o #screen-lobby adelante para ganarle a style.css y desktop.css sin tocarlos.
   Lo que flota encima (avisos, ventanas, botones de sonido, la carga) va con body[data-screen=…]: ver el final.
   ====================================================================== */
/* Letra del inicio: Barlow, de la misma familia que la del tablero pero de ancho normal (la Fredoka es muy ancha) */
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-700.woff2) format("woff2"); }

/* Un solo sistema: colores sólidos (nada pastel) y un solo redondeo para todo lo que se toca (--h-r). */
/* Los valores viven en :root para que también los tomen los avisos y las ventanas, que están fuera de las pantallas */
:root {
  --h-font: "Barlow", "Segoe UI", Roboto, system-ui, sans-serif; --h-r: 12px; --h-r-lg: 18px;
  --h-ink: #14213D; --h-mute: #55657D; --h-line: rgba(20, 33, 61, .09); --h-card: #fff;
  --h-celeste: #74ACDF; --h-blue: #2463C7; --h-blue-2: #1B4FA6; --h-red: #B3261E;
  --h-sh: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(36, 76, 128, .10);
  --h-sh-hi: 0 2px 4px rgba(20, 33, 61, .06), 0 14px 32px rgba(36, 76, 128, .16);
  --h-ease: cubic-bezier(.23, 1, .32, 1);
  --h-sky: radial-gradient(130% 55% at 50% 0%, #D6EAFA 0%, rgba(214, 234, 250, 0) 62%), linear-gradient(180deg, #F1F7FD, #FAFCFE 70%);
}
#screen-home, #screen-lobby {
  color: var(--h-ink); font-family: var(--h-font);
  background: var(--h-sky);
}
#screen-home .loading-edge { display: none; }
#screen-home ::selection { background: rgba(116, 172, 223, .35); }
#screen-home :focus-visible { outline: 3px solid var(--h-celeste); outline-offset: 2px; }

/* ---------- La hoja: sin hoja. El contenido apoya directo sobre el cielo ---------- */
#screen-home .home-card { background: none; border: 0; box-shadow: none; border-radius: 0; color: var(--h-ink); }

/* Marca: el ícono de la app y el nombre */
#screen-home .brand { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1.3rem / 1 var(--h-font); letter-spacing: -.01em; color: var(--h-ink); }
#screen-home .brand-mark { width: 38px; height: 38px; border-radius: var(--h-r); box-shadow: 0 4px 12px rgba(36, 76, 128, .22); }

/* Titular */
#screen-home .tagline { margin: 0; text-align: left; max-width: none; }
#screen-home .tagline .hl { display: block; font: 700 2.15rem / 1.02 var(--h-font); letter-spacing: -.015em; color: var(--h-ink); text-wrap: balance; }
#screen-home .tagline .sub { display: block; margin-top: 8px; font-size: .95rem; font-weight: 400; line-height: 1.4; color: var(--h-mute); text-wrap: pretty; }

/* En vivo */
#screen-home .home-live { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 13px 6px 10px; cursor: pointer;
  background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); box-shadow: var(--h-sh);
  font: 500 .84rem / 1.2 var(--h-font); -webkit-tap-highlight-color: transparent; transition: transform .16s var(--h-ease); }
#screen-home .home-live b { font-weight: 700; }
#screen-home .home-live:active { transform: scale(.97); }
#screen-home .live-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #1FA457; animation: hLive 2s var(--h-ease) infinite; }
@keyframes hLive { 0% { box-shadow: 0 0 0 0 rgba(31, 164, 87, .5); } 100% { box-shadow: 0 0 0 9px rgba(31, 164, 87, 0); } }

/* Jugar online: el botón principal */
#screen-home .quick-play { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; margin: 0; padding: 14px 18px 12px;
  cursor: pointer; border: 0; outline: 0; border-radius: var(--h-r); color: #fff; background: var(--h-blue);
  box-shadow: 0 10px 24px rgba(36, 99, 199, .3); -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--h-ease), box-shadow .16s var(--h-ease), background-color .16s ease; }
#screen-home .quick-play::before { display: none; }
#screen-home .qp-t { display: inline-flex; align-items: center; gap: 10px; font: 700 1.45rem / 1.05 var(--h-font); letter-spacing: -.01em; text-transform: none; text-shadow: none; }
#screen-home .qp-t svg { width: 24px; height: 24px; }
#screen-home .quick-play small { font-size: .8rem; color: rgba(255, 255, 255, .82); }
#screen-home .quick-play:active { transform: scale(.98); background: var(--h-blue-2); box-shadow: 0 5px 12px rgba(36, 99, 199, .3); }
#screen-home .quick-play.busy::after { position: absolute; right: 18px; top: 50%; margin-top: -9px; }
@media (hover: hover) and (pointer: fine) {
  #screen-home .quick-play:hover { transform: translateY(-2px); background: var(--h-blue-2); box-shadow: 0 14px 30px rgba(36, 99, 199, .34); }
}

/* Las otras formas de jugar: tarjetas blancas con el ícono en una pastilla del color del modo */
#screen-home .home-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#screen-home .play-mode { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; overflow: visible;
  text-align: left; background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); box-shadow: var(--h-sh);
  -webkit-tap-highlight-color: transparent; transition: transform .16s var(--h-ease), box-shadow .16s var(--h-ease); }
#screen-home .play-mode .pm-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px;
  background: var(--band); color: #fff; }
#screen-home .play-mode.bots .pm-icon { color: var(--h-ink); }
#screen-home .play-mode.friends { --band: #2F8FD8; }   /* el celeste claro del tablero no se lee con el ícono blanco */   /* el amarillo no lleva blanco encima */
#screen-home .play-mode .pm-icon svg { width: 22px; height: 22px; }
#screen-home .play-mode > span:last-child { padding: 0; gap: 2px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
#screen-home .play-mode b { font: 600 1.02rem / 1.15 var(--h-font); letter-spacing: 0; text-transform: none; color: var(--h-ink); }
#screen-home .play-mode small { display: none; }
#screen-home .play-mode.browse { display: flex; }
#screen-home .home-card:has(#home-live:not(.hidden)) .play-mode.browse { display: none; }
#screen-home .home-card:has(#home-live.hidden) .play-mode.browse { grid-column: 1 / -1; }
#screen-home .play-mode:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  #screen-home .play-mode:hover { transform: translateY(-2px); box-shadow: var(--h-sh-hi); }
}
/* Etiquetas: el desafío de hoy y, la primera vez, el tutorial */
#screen-home .pm-sticker, #screen-home .play-mode.first::after { position: absolute; top: 12px; right: 10px; left: auto; max-width: calc(100% - 66px); display: block; rotate: none;
  padding: 3px 8px; border: 0; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 .68rem / 1.2 var(--h-font);
  letter-spacing: 0; text-transform: none; font-style: normal; background: var(--band); color: #fff; }
#screen-home .pm-sticker:empty { display: none; }
#screen-home .play-mode.first::after { content: "Empezá acá"; }
#screen-home .play-mode.first { border: 2px solid #1FA457; padding: 10px; }
#screen-home .daily-badge { margin: 4px 0 0; padding: 2px 8px; border: 0; border-radius: 6px; font: 600 .66rem / 1.3 var(--h-font); background: var(--h-ink); color: #fff; }
#screen-home .daily-badge.done { background: #1FA457; color: #fff; }

/* Tu personaje */
#screen-home .car-btn { border-radius: var(--h-r); border: 1px solid var(--h-line); background: var(--h-card); color: var(--h-ink); box-shadow: var(--h-sh); font-weight: 600; }
#screen-home .car-name { font: 700 1.3rem / 1.1 var(--h-font); letter-spacing: -.01em; text-transform: none; color: var(--h-ink); -webkit-text-stroke: 0; }
#screen-home .car-hear { min-height: 34px; padding: 4px 12px 4px 9px; gap: 6px; border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-card); color: var(--h-ink);
  box-shadow: var(--h-sh); font: 600 .85rem / 1 var(--h-font); letter-spacing: 0; text-transform: none; }
#screen-home .car-hear svg { width: 17px; height: 17px; }
#screen-home .car-track img { border: 0; background: #fff; box-shadow: 0 4px 12px rgba(36, 76, 128, .14); }
#screen-home .car-track img.focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--h-blue), 0 10px 22px rgba(36, 76, 128, .22); }

/* Paneles: jugar con amigos y buscar partida */
#screen-home .home-panel { padding: 16px; background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-r-lg); box-shadow: var(--h-sh); gap: 12px; }
#screen-home .home-panel h3 { font: 700 1.15rem / 1.2 var(--h-font); letter-spacing: -.01em; text-transform: none; color: var(--h-ink); }
#screen-home .btn.home-back { align-self: flex-start; min-height: 32px; padding: 4px 6px; border: 0; background: none; box-shadow: none; color: var(--h-blue);
  font: 600 .92rem / 1 var(--h-font); letter-spacing: 0; text-transform: none; }
#screen-home .btn { border-radius: var(--h-r); border: 1px solid var(--h-line); background: #fff; color: var(--h-ink); box-shadow: var(--h-sh);
  font: 600 1rem / 1.1 var(--h-font); letter-spacing: 0; text-transform: none; }
#screen-home .btn.primary { outline: 0; border: 0; color: #fff; background: var(--h-blue); font-size: 1.1rem; box-shadow: 0 8px 20px rgba(36, 99, 199, .26); }
#screen-home .btn.primary:hover:not(:disabled) { background: var(--h-blue-2); }
#screen-home .btn:active { transform: scale(.98); }
#screen-home input { border: 1px solid rgba(20, 33, 61, .16); border-radius: var(--h-r); background: #F7FAFD; color: var(--h-ink); caret-color: var(--h-blue); font-family: var(--h-font); }
#screen-home input::placeholder { color: #8796AB; }
#screen-home input:focus { border-color: var(--h-celeste); background: #fff; outline: 0; box-shadow: 0 0 0 4px rgba(116, 172, 223, .25); }
#screen-home .divider { color: var(--h-mute); }
#screen-home #browse-status { color: var(--h-mute); }
#screen-home .room-row { border: 1px solid var(--h-line); border-radius: var(--h-r); background: #fff; box-shadow: 0 2px 8px rgba(36, 76, 128, .07); color: var(--h-ink); }
#screen-home .room-row::before { display: none; }
#screen-home .room-row .rr-n b { font-family: var(--h-font); font-weight: 700; color: var(--h-ink); }
#screen-home .room-row .rr-n small { background: var(--h-blue); color: #fff; border-radius: 6px; font: 600 .7rem / 1 var(--h-font); letter-spacing: 0; text-transform: none; padding: 4px 9px; }
#screen-home .room-row small { color: var(--h-mute); }
#screen-home .rr-faces img { border: 2px solid #fff; box-shadow: 0 2px 6px rgba(36, 76, 128, .18); }
#screen-home .browse-empty { color: var(--h-mute); }
#screen-home .error { color: #B3261E; }

#screen-home .btn.home-back { border: 0; background: none; box-shadow: none; color: var(--h-blue); }

/* Pie: instalar y donar, callados */
#screen-home .install { color: var(--h-mute); font: 500 .88rem / 1.2 var(--h-font); text-decoration-color: rgba(20, 33, 61, .2); }
/* Donar: un renglón de texto, no otro botón compitiendo con «Jugar online» */
#screen-home .donate { min-height: 32px; padding: 2px 10px; background: none; border: 0; box-shadow: none; color: var(--h-mute); font: 500 .88rem / 1.2 var(--h-font);
  letter-spacing: 0; text-transform: none; text-decoration: underline; text-decoration-color: rgba(20, 33, 61, .2); text-underline-offset: 4px; }

/* Tino (PC): globo blanco y suave */
#screen-home .tino-face { border: 0; box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(36, 76, 128, .2); }
#screen-home .tino-bubble { background: #fff; color: var(--h-ink); border: 0; border-radius: var(--h-r); box-shadow: var(--h-sh); font-family: var(--h-font); }
#screen-home .tino-bubble::before { border: 0; background: #fff; }

/* Descripción (solo PC, debajo del pliegue) */
#screen-home .about { background: #fff; color: var(--h-mute); border: 1px solid var(--h-line); border-radius: var(--h-r-lg); box-shadow: var(--h-sh); }
#screen-home .about h2, #screen-home .about h3 { font-family: var(--h-font); font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--h-ink); }

/* Entrada: el contenido sube apenas, una sola vez */
#screen-home .home-card > :is(.brand, .tagline, .home-live, .quick-play, .home-modes) { animation: hIn .55s var(--h-ease) both; }
#screen-home .home-card > .tagline { animation-delay: .05s; }
#screen-home .home-card > .home-live { animation-delay: .1s; }
#screen-home .home-card > .quick-play { animation-delay: .14s; }
#screen-home .home-card > .home-modes { animation-delay: .18s; }
@keyframes hIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- CELULAR (y tablet en vertical) ---------- */
@media not all and (min-width: 1024px) and (min-height: 600px) and (orientation: landscape) {
  #screen-home { display: flex; flex-direction: column; align-items: stretch; gap: 0; place-items: stretch;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(70px + env(safe-area-inset-bottom, 0px)); }
  #screen-home .home-poster, #screen-home .about, #screen-home .tino-host { display: none; }
  #screen-home .home-card { position: relative; width: min(520px, 100%); margin: 0 auto; flex: 1 0 auto; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  /* El personaje, en el medio y con luz; el espacio que sobra se reparte arriba y abajo */
  #screen-home .carousel { position: relative; gap: 4px; margin-top: auto; isolation: isolate; }
  #screen-home .carousel::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(116, 172, 223, .42), rgba(116, 172, 223, .12) 60%, transparent); pointer-events: none; }
  #screen-home .car-track { gap: 38px; padding: 44px 0; margin-block: -18px; }
  #screen-home .car-track::before, #screen-home .car-track::after { width: calc(50% - 67px); }
  #screen-home .car-track img { width: 58px; height: 58px; opacity: .55; filter: saturate(.7); }
  #screen-home .car-track img.focus { scale: 1.95; opacity: 1; filter: none; }
  #screen-home .car-btn { width: 40px; height: 40px; font-size: 1.25rem; position: relative; z-index: 1; }
  #screen-home .car-foot { flex-direction: row; justify-content: center; gap: 10px; margin-top: 8px; }
  #screen-home .home-live { align-self: center; margin-top: auto; }
  #screen-home .home-card > .install, #screen-home .home-card > .donate { margin: 0; align-self: center; }
  #screen-home .install { min-height: 32px; padding: 2px 10px; }
  #screen-home .home-card { gap: 12px; }
  #screen-home .quick-play { padding: 12px 18px 11px; }
  #screen-home .play-mode { padding: 11px; gap: 8px; }
  /* Con un panel abierto: la marca y el panel, nada más */
  #screen-home .home-card:has(.home-panel:not(.hidden)) :is(.tagline, .carousel, .car-foot, .quick-play, .home-live) { display: none; }
  #screen-home .home-card:has(.home-panel:not(.hidden)) { flex-grow: 0; }
}
/* Celulares altos: el personaje más grande */
@media (max-width: 1023px) and (orientation: portrait) and (min-height: 800px) {
  #screen-home .tagline .hl { font-size: 2.3rem; }
  #screen-home .car-track img.focus { scale: 2.1; }
  #screen-home .car-track { padding: 52px 0; margin-block: -14px; }
}
/* Celulares bajos: sin la bajada, todo más junto */
@media (max-width: 1023px) and (orientation: portrait) and (max-height: 700px) {
  #screen-home .home-card { gap: 10px; }
  #screen-home .tagline .hl { font-size: 1.75rem; }
  #screen-home .tagline .sub, #screen-home .install { display: none !important; }
  #screen-home .car-track img.focus { scale: 1.7; }
  #screen-home .car-track { padding: 34px 0; margin-block: -16px; }
  #screen-home .play-mode { padding: 10px; gap: 8px; }
  #screen-home .play-mode .pm-icon { width: 34px; height: 34px; border-radius: var(--h-r); }
}
@media (hover: none) {
  #screen-home .play-mode:hover { transform: none; box-shadow: var(--h-sh); }
}

/* ---------- PC ---------- */
@media (min-width: 1024px) and (min-height: 600px) and (orientation: landscape) {
  #screen-home .home-poster { background: radial-gradient(55% 70% at 70% 58%, #CFE5F8 0%, rgba(207, 229, 248, 0) 72%), linear-gradient(180deg, #EEF6FD, #F9FBFE); }
  #screen-home .home-card { grid-template-columns: minmax(360px, 32vw); align-content: center; gap: clamp(14px, 2.2vh, 22px);
    padding: clamp(88px, 13vh, 120px) 0 clamp(40px, 6vh, 64px) clamp(40px, 5vw, 96px); }
  #screen-home .brand { position: absolute; top: clamp(22px, 4vh, 36px); left: clamp(40px, 5vw, 96px); font-size: 1.45rem; }
  #screen-home .brand-mark { width: 44px; height: 44px; border-radius: var(--h-r); }
  #screen-home .tagline .hl { font-size: clamp(2.6rem, min(4vw, 7.6vh), 4.4rem); line-height: 1.02; letter-spacing: -.025em; }
  #screen-home .tagline .sub { font-size: clamp(1rem, 1.15vw, 1.2rem); max-width: 28em; margin-top: 12px; }
  #screen-home .home-live { justify-self: start; }
  #screen-home .quick-play { justify-self: stretch; padding: 16px 20px 14px; }
  #screen-home .qp-t { font-size: clamp(1.4rem, 1.7vw, 1.75rem); }
  #screen-home .home-modes { gap: 12px; }
  #screen-home .play-mode { flex-direction: row; align-items: center; padding: 14px; gap: 12px; }
  #screen-home .play-mode .pm-icon { width: 44px; height: 44px; }
  #screen-home .play-mode .pm-icon svg { width: 24px; height: 24px; }
  #screen-home .play-mode b { font-size: clamp(1rem, 1.05vw, 1.12rem); }
  #screen-home .pm-sticker, #screen-home .play-mode.first::after { top: -9px; right: 10px; max-width: calc(100% - 20px); box-shadow: 0 2px 6px rgba(36, 76, 128, .12); }
  #screen-home .install, #screen-home .donate { justify-self: start; }
  #screen-home .home-panel { padding: 20px; }
  /* Escenario 3D: nombre y caras al pie, sin el contorno de cartulina */
  #screen-home .car-name { font-size: clamp(2rem, 3.2vw, 3.4rem); text-shadow: 0 2px 14px rgba(255, 255, 255, .9); }
  #screen-home .car-track img { width: 44px; height: 44px; }
  #screen-home .tino-host .tino-face { width: 84px; height: 84px; }
  #screen-home .about { margin-block: 40px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  #screen-home .home-card > *, #screen-home .live-dot { animation: none; }
}

/* ======================================================================
   SALA DE ESPERA
   ====================================================================== */
#screen-lobby ::selection { background: rgba(116, 172, 223, .35); }
#screen-lobby :focus-visible { outline: 3px solid var(--h-celeste); outline-offset: 2px; }
#screen-lobby .muted { color: var(--h-mute); }

/* Código de la sala */
#screen-lobby :is(.room-code, .solo-head) { background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); box-shadow: var(--h-sh); padding: 8px 14px; }
#screen-lobby .room-code .code { font: 700 1.6rem / 1 var(--h-font); letter-spacing: .08em; color: var(--h-ink); }
#screen-lobby .room-code .muted { font-size: .8rem; color: var(--h-mute); }
#screen-lobby .solo-head { font-weight: 600; }

/* Hojas: blancas, sin borde de tinta */
#screen-lobby .card { background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r-lg); box-shadow: var(--h-sh); }
#screen-lobby :is(.card h2, .field label) { font: 700 1.1rem / 1.2 var(--h-font); letter-spacing: -.005em; text-transform: none; color: var(--h-ink); }
#screen-lobby .card h2 .muted { font-weight: 500; }
#screen-lobby .field input { border: 1px solid rgba(20, 33, 61, .16); border-radius: var(--h-r); background: #F7FAFD; color: var(--h-ink); caret-color: var(--h-blue);
  font: 600 1rem / 1.2 var(--h-font); }
#screen-lobby .field input:focus { border-color: var(--h-celeste); background: #fff; outline: 0; box-shadow: 0 0 0 4px rgba(116, 172, 223, .25); }
#screen-lobby .field-hint { color: #A15C00; font-weight: 500; }
#screen-lobby .field-hint.err { color: #B3261E; }

/* Vista del personaje (celular): un foco de cielo en vez de la caja oscura */
#screen-lobby .preview-wrap { border: 0; border-radius: var(--h-r-lg); background: radial-gradient(70% 80% at 50% 62%, #CFE5F8, #EAF4FC 75%); }
#screen-lobby #preview-name { font: 700 1.5rem / 1.05 var(--h-font); letter-spacing: -.01em; text-transform: none; color: var(--h-ink); text-shadow: 0 1px 10px rgba(255, 255, 255, .9); -webkit-text-stroke: 0; }
#screen-lobby #preview-name small { font: 500 .78rem / 1.3 var(--h-font); color: var(--h-mute); text-shadow: none; }
#screen-lobby .pv-nav { background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); box-shadow: var(--h-sh); font-weight: 600; padding: 0 0 3px; }
@media (hover: hover) and (pointer: fine) { #screen-lobby .pv-nav:hover { background: #F1F6FC; } }

/* Personajes: tarjetas blancas con una rayita del color del personaje arriba; el elegido, con borde azul */
#screen-lobby .char { background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r);
  box-shadow: inset 0 4px 0 var(--c), 0 2px 8px rgba(36, 76, 128, .07); padding: 10px 4px 8px; }
#screen-lobby .char .n { font: 600 .86rem / 1.1 var(--h-font); letter-spacing: 0; text-transform: none; }
#screen-lobby .char .by { color: var(--h-mute); font-weight: 500; font-size: .72rem; }
#screen-lobby .char.selected { border: 2px solid var(--h-blue); padding: 9px 3px 7px; transform: none; box-shadow: inset 0 4px 0 var(--c), 0 6px 16px rgba(36, 99, 199, .2); }
#screen-lobby .char.selected .n { color: var(--h-blue); }
@media (hover: hover) and (pointer: fine) { #screen-lobby .char:not(.taken):hover { transform: translateY(-2px); box-shadow: inset 0 4px 0 var(--c), var(--h-sh-hi); } }

/* Jugadores */
#screen-lobby .lobby-players li { background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); padding: 6px 10px 6px 6px; }
#screen-lobby .lobby-players li.muted { background: none; border: 1px dashed rgba(20, 33, 61, .2); color: var(--h-mute); padding: 12px; }
#screen-lobby .lobby-players img { border: 2px solid var(--c); background: #fff; }
#screen-lobby .lobby-players b { font: 700 1rem / 1.2 var(--h-font); }
#screen-lobby .lobby-players .tag { font: 600 .72rem / 1 var(--h-font); letter-spacing: 0; text-transform: none; border: 0; border-radius: 6px; padding: 5px 8px; color: #fff; }
#screen-lobby .lobby-players .tag.host { background: var(--h-ink); }
#screen-lobby .lobby-players .tag.off { background: #B3261E; }

/* Modo de juego */
#screen-lobby .mode-card { background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); padding: 12px; box-shadow: none; opacity: 1; }
#screen-lobby .mode-card b { font: 700 1.1rem / 1.15 var(--h-font); letter-spacing: 0; text-transform: none; }
#screen-lobby .mode-card small { color: var(--h-mute); font-size: .8rem; }
#screen-lobby .mode-card:is(.selected, .selected.classic, .selected.extreme) { border: 2px solid var(--h-blue); padding: 11px; box-shadow: 0 6px 16px rgba(36, 99, 199, .16); }
#screen-lobby .mode-card.selected b { color: var(--h-blue); }
#screen-lobby .mode-card:hover { opacity: 1; }
#screen-lobby .mode-hint { color: var(--h-mute); }
#screen-lobby .dur-t { font: 700 1rem / 1.2 var(--h-font); }
#screen-lobby .dur { background: var(--h-card); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); padding: 9px 4px; font-family: var(--h-font); }
#screen-lobby .dur b { font-weight: 700; }
#screen-lobby .dur small, #screen-lobby .dur-hint { color: var(--h-mute); }
#screen-lobby .dur.selected { border: 2px solid var(--h-blue); padding: 8px 3px; background: #EEF5FC; box-shadow: 0 6px 16px rgba(36, 99, 199, .16); }
#screen-lobby .dur.selected b { color: var(--h-blue); }

/* Rivales de la compu y reglas: bloques apenas tintados dentro de la hoja */
#screen-lobby :is(.bots-ctrl, .rules) { background: #F7FAFD; color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); box-shadow: none; }
#screen-lobby :is(.bots-ctrl > span, .rules-t) { font: 700 1rem / 1.2 var(--h-font); letter-spacing: 0; text-transform: none; }
#screen-lobby :is(.bots-ctrl .muted, .rules summary small, .set-t small) { color: var(--h-mute); }
#screen-lobby .bots-ctrl .stepper b { font: 700 1.3rem / 1 var(--h-font); }
#screen-lobby .rules summary::after { color: var(--h-mute); }
#screen-lobby .settings { border-top: 1px solid var(--h-line); }
#screen-lobby .settings label + label { border-top: 1px solid var(--h-line); }
#screen-lobby .set-t > span { font-weight: 600; }
#screen-lobby .settings select { background: #fff; color: var(--h-ink); border: 1px solid rgba(20, 33, 61, .16); border-radius: var(--h-r); font: 600 .95rem / 1.2 var(--h-font); }
#screen-lobby .settings input[type=checkbox] { accent-color: var(--h-blue); }
#screen-lobby .set-v { color: var(--h-ink); }
#screen-lobby .tut-note { background: #EEF5FC; color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); }

/* Botones */
#screen-lobby .btn { border-radius: var(--h-r); border: 1px solid var(--h-line); outline: 0; background: #fff; color: var(--h-ink); box-shadow: var(--h-sh);
  font: 600 1rem / 1.1 var(--h-font); letter-spacing: 0; text-transform: none; }
#screen-lobby .btn.ghost { background: none; box-shadow: none; border-color: rgba(20, 33, 61, .16); color: var(--h-mute); }
#screen-lobby .btn.primary { border: 0; color: #fff; background: var(--h-blue); box-shadow: 0 8px 20px rgba(36, 99, 199, .26); }
#screen-lobby .btn.primary:hover:not(:disabled) { background: var(--h-blue-2); }
#screen-lobby .btn:active:not(:disabled) { transform: scale(.98); }
#screen-lobby .btn:disabled { opacity: .5; }

/* La barra de abajo: qué falta y el paso que sigue */
#screen-lobby .lobby-bar { background: #fff; color: var(--h-ink); border-top: 1px solid var(--h-line); box-shadow: 0 -10px 30px rgba(36, 76, 128, .1); }
#screen-lobby .lobby-bar p { font: 600 .98rem / 1.35 var(--h-font); }
#screen-lobby .lobby-bar .btn.big { min-height: 52px; font: 700 1.2rem / 1.1 var(--h-font); }

/* PC: la hoja de la izquierda (nombre y personajes) y el escenario en el medio */
@media (min-width: 1024px) and (min-height: 600px) and (orientation: landscape) {
  #screen-lobby .card.pick { background: none; border: 0; box-shadow: none; }
  #screen-lobby .card.pick::before { background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-r-lg); box-shadow: var(--h-sh); }
  #screen-lobby .char { padding: 14px 2px 8px; background: var(--h-card); }
  #screen-lobby .char.selected { padding: 13px 1px 7px; }
  #screen-lobby .card.pick > .preview-wrap { background: none; }
  #screen-lobby #preview-name { font-size: clamp(2.4rem, 4.4vw, 5rem); line-height: 1; text-shadow: 0 2px 16px rgba(255, 255, 255, .95); }
  #screen-lobby #preview-name small { background: #fff; color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); box-shadow: var(--h-sh); font-size: .95rem; }
  #screen-lobby .pv-nav { font-size: 1.7rem; }
  #screen-lobby .lobby-bar p { font-size: 1.05rem; }
  #screen-lobby .lobby-bar .btn.big { min-height: 56px; font-size: 1.4rem; }
}

/* Lo que quedaba con la cartulina dentro de la sala */
#screen-lobby .vz-mute { border: 1px solid var(--h-line); border-radius: var(--h-r); background: #fff; color: var(--h-ink); box-shadow: 0 2px 8px rgba(36, 76, 128, .08); }
#screen-lobby .vz-mute[aria-pressed="true"] { background: #FDECEA; border-color: rgba(179, 38, 30, .3); }
#screen-lobby .dn-goal { color: var(--h-mute); }
#screen-lobby .char.taken { opacity: .45; filter: grayscale(.6); }

/* ======================================================================
   LO QUE FLOTA ENCIMA DEL INICIO Y DE LA SALA
   Avisos, ventanas (sonido, iPhone, confirmar), el cartel de sin conexión y los botones de sonido viven fuera
   de las pantallas: sin esto salían con la cartulina crema y el borde de tinta del tablero.
   En la partida siguen como estaban (data-screen="game").
   ====================================================================== */
/* Lo que style.css les pone a las piezas de cartulina, llevado al celeste */
:is(body[data-screen="home"], body[data-screen="lobby"]) :is(.modal-card, .toast, .conn) { --text: var(--h-ink); --muted: var(--h-mute); --line: var(--h-line); --primary: var(--h-blue); --focus: var(--h-celeste); --gold-text: var(--h-blue); }

/* Botones de sonido, micrófono y pantalla completa */
:is(body[data-screen="home"], body[data-screen="lobby"]) .audio-ctrls .tool { border-radius: var(--h-r); background: #fff; color: var(--h-ink); border: 1px solid var(--h-line); box-shadow: 0 6px 18px rgba(36, 76, 128, .14);
  transition: transform .16s var(--h-ease), background-color .16s ease; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .audio-ctrls .tool:active { transform: scale(.94); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .audio-ctrls .tool.off { opacity: .55; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .audio-ctrls .tool.off::after { left: 9px; right: 9px; height: 2px; background: var(--h-red); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .audio-ctrls .tool.live { opacity: 1; background: #E6F6EC; color: #146C3A; border-color: rgba(31, 164, 87, .45); box-shadow: 0 0 0 2px rgba(31, 164, 87, .35), 0 6px 18px rgba(36, 76, 128, .14); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .audio-ctrls .fs-toggle.on { background: #EAF2FC; color: var(--h-blue); }

/* Avisos */
:is(body[data-screen="home"], body[data-screen="lobby"]) .toast { background: #fff; color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r); box-shadow: 0 2px 4px rgba(20, 33, 61, .06), 0 12px 28px rgba(36, 76, 128, .18);
  padding: 10px 16px; font: 600 .95rem / 1.3 var(--h-font); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .toast.err { background: #FDECEA; color: var(--h-red); border-color: rgba(179, 38, 30, .25); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .conn { background: var(--h-red); color: #fff; border: 0; border-radius: var(--h-r); box-shadow: 0 10px 24px rgba(179, 38, 30, .3); font: 600 .92rem / 1.2 var(--h-font); }

/* Ventanas */
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal { background: rgba(20, 33, 61, .42); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card { background: #fff; background-image: none; color: var(--h-ink); border: 0; border-radius: var(--h-r-lg); box-shadow: 0 24px 60px rgba(20, 33, 61, .28);
  padding: 22px 20px 20px; font-family: var(--h-font); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-right: 48px; font: 700 1.35rem / 1.2 var(--h-font); letter-spacing: -.01em; text-transform: none; color: var(--h-ink); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card h3 .ico svg { width: 1.1em; height: 1.1em; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card p { line-height: 1.45; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .muted { color: var(--h-mute); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-close { top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid var(--h-line); box-shadow: none;
  background: #F4F7FB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 18px no-repeat; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-close:is(:hover, :focus-visible) { background-color: #E6EDF6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .btn { border-radius: var(--h-r); border: 1px solid rgba(20, 33, 61, .14); outline: 0; background: #fff; color: var(--h-ink); box-shadow: 0 2px 6px rgba(36, 76, 128, .08);
  font: 600 .98rem / 1.1 var(--h-font); letter-spacing: 0; text-transform: none; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .btn:hover:not(:disabled) { background: #F1F6FC; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .btn.primary { border: 0; color: #fff; background: var(--h-blue); box-shadow: 0 8px 20px rgba(36, 99, 199, .26); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .btn.primary:hover:not(:disabled) { background: var(--h-blue-2); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .btn.bad { border: 0; color: #fff; background: var(--h-red); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .btn.bad:hover:not(:disabled) { background: #9A1F18; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card .btn.ghost { background: none; box-shadow: none; color: var(--h-blue); border-color: transparent; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card :focus-visible { outline: 3px solid var(--h-celeste); outline-offset: 2px; }
/* Sonido */
:is(body[data-screen="home"], body[data-screen="lobby"]) .vol-name { font-weight: 600; }
:is(body[data-screen="home"], body[data-screen="lobby"]) .vol-name small { color: var(--h-mute); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .vol-val { color: var(--h-blue); font: 700 1.1rem / 1 var(--h-font); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .vol-row input[type=range] { accent-color: var(--h-blue); }
:is(body[data-screen="home"], body[data-screen="lobby"]) .ios-steps li::marker { color: var(--h-blue); font-weight: 700; }
/* Celular: la ventana sube desde abajo como hoja */
@media (max-width: 900px), (orientation: portrait) {
  :is(body[data-screen="home"], body[data-screen="lobby"]) .modal-card { border-radius: var(--h-r-lg) var(--h-r-lg) 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* ======================================================================
   PANTALLA DE CARGA: el mismo cielo que el inicio, para que no haya un salto de estilo al entrar
   ====================================================================== */
.loading { background: var(--h-sky); color: var(--h-ink); }
.loading .loading-edge { display: none; }
.loading-art { height: min(28vh, 240px); color: var(--h-blue); stroke-width: .7; }
.loading-box .logo { width: auto; padding: 0; background: none; border: 0; outline: 0; box-shadow: none; border-radius: 0; rotate: none;
  color: var(--h-ink); font: 700 clamp(2.2rem, 9vw, 3rem) / 1 var(--h-font); letter-spacing: -.015em; text-transform: none; }
.loading-bar { height: 6px; border: 0; border-radius: 999px; background: rgba(116, 172, 223, .25); }
.loading-bar i { background: var(--h-blue); border-radius: 999px; }
.loading-text { font: 500 .95rem / 1.2 var(--h-font); letter-spacing: 0; text-transform: none; color: var(--h-mute); }

/* ---------- Cuenta: botón del inicio, panel con álbum y ropa ---------- */
#screen-home .home-card { position: relative; }
.acct-btn { position: absolute; top: 0; right: 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 12px 4px 4px;
  border-radius: 999px; border: 1px solid var(--h-line); background: var(--h-card); color: var(--h-ink); box-shadow: var(--h-sh);
  font: 700 .9rem / 1 var(--h-font); cursor: pointer; transition: transform .16s var(--h-ease), box-shadow .16s var(--h-ease); }
.acct-btn:not(:has(img, .acct-ini)) { padding-left: 14px; }
.acct-btn img, .acct-ini { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-ini { display: grid; place-items: center; background: var(--h-blue); color: #fff; }
.acct-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: var(--h-red); color: #fff; font-size: .72rem; box-shadow: 0 0 0 2px #fff; }
@media (hover: hover) { .acct-btn:hover { transform: translateY(-1px); box-shadow: var(--h-sh-hi); } }
.acct-btn:active { transform: scale(.97); }

.acct-login { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 4px; font-family: var(--h-font); color: var(--h-ink); }
.acct-login h2 { margin: 0; font: 800 1.4rem / 1.15 var(--h-font); }
.acct-login p { margin: 0; color: var(--h-mute); line-height: 1.45; }
.btn.google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--h-r);
  background: #fff; color: #1f1f1f; border: 1px solid #c8ccd4; font: 600 1rem / 1 var(--h-font); }
.btn.google svg { width: 22px; height: 22px; }
.acct-gis { display: flex; justify-content: center; min-height: 44px; width: 100%; max-width: 320px; }
.acct-gis:empty { display: none; }

.acct { display: flex; flex-direction: column; gap: 12px; font-family: var(--h-font); color: var(--h-ink); min-height: 0; }
.acct-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.acct-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--h-blue); color: #fff; font-weight: 800; font-size: 1.4rem; }
.acct-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.acct-who > b { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-lvl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--h-blue); }
.acct-bar { flex: 1; max-width: 140px; height: 7px; border-radius: 99px; background: #E3ECF7; overflow: hidden; }
.acct-bar i { display: block; height: 100%; border-radius: inherit; background: var(--h-blue); }
.acct-coins { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--h-r); background: #EEF3F9; }
.acct-tabs button { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--h-mute); font: 700 .95rem / 1 var(--h-font); cursor: pointer; }
.acct-tabs button small { font-weight: 600; opacity: .8; }
.acct-tabs button[aria-selected="true"] { background: #fff; color: var(--h-ink); box-shadow: var(--h-sh); }
.acct-body { overflow-y: auto; max-height: min(62vh, 620px); overscroll-behavior: contain; scrollbar-gutter: stable; }
.acct-foot { display: flex; justify-content: center; }

.acct-packs { display: flex; flex-direction: column; gap: 8px; }
.pk-slot { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--h-r-lg); background: #F3F8FD; border: 1px solid var(--h-line); }
.pk-slot.dorado { background: #FFF8E1; }
.pk-slot.leyenda { background: #F5EEFF; }
.pk-slot.none { opacity: .62; }
.pk-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-txt small { color: var(--h-mute); font-size: .78rem; line-height: 1.3; }
.pk-mini { position: relative; width: 40px; height: 54px; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.45); }
.pk-mini::after { content: 'T'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 1.3rem / 1 var(--h-font); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.pk-mini b { position: absolute; top: -7px; right: -7px; z-index: 1; min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--h-red); color: #fff; font-size: .78rem; }
.swap-btn { align-self: center; }
/* Colores de cada calidad de sobre (el sobre, el mini y el dorso de las figuritas) */
.comun { --pk: linear-gradient(150deg, #9CCBF0, #2463C7 70%); --pk-glow: rgba(116, 172, 223, .55); }
.dorado { --pk: linear-gradient(150deg, #FFE58A, #E5A50A 55%, #A86E00); --pk-glow: rgba(245, 197, 66, .65); }
.leyenda { --pk: conic-gradient(from 200deg, #7B2FF7, #F107A3, #FF8A00, #00D4FF, #7B2FF7); --pk-glow: rgba(196, 80, 255, .7); }
.pk-mini, .pk-pack, .pk-back { background: var(--pk); }

/* El escenario: oscuro, con rayos de luz que giran detrás del sobre */
.pk-stage { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px;
  background: radial-gradient(circle at 50% 42%, rgba(30, 40, 70, .97), rgba(6, 10, 22, .99)); color: #fff; font-family: var(--h-font);
  animation: pkFade .25s ease-out; overflow: hidden; }
.pk-stage.out { animation: pkFade .25s ease-in reverse forwards; }
@keyframes pkFade { from { opacity: 0; } }
.pk-rays { position: absolute; left: 50%; top: 42%; width: 160vmax; height: 160vmax; translate: -50% -50%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, var(--pk-glow) 0 6deg, transparent 6deg 18deg); mask: radial-gradient(circle, #000 0, transparent 45%);
  animation: pkSpin 18s linear infinite; }
.pk-stage.comun .pk-rays { --pk-glow: rgba(116, 172, 223, .35); }
.pk-stage.dorado .pk-rays { --pk-glow: rgba(245, 197, 66, .45); }
.pk-stage.leyenda .pk-rays { --pk-glow: rgba(196, 80, 255, .5); opacity: .7; }
@keyframes pkSpin { to { rotate: 360deg; } }

/* El sobre */
.pk-pack { position: relative; width: min(200px, 48vw); aspect-ratio: 3 / 4.2; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 60px var(--pk-glow), inset 0 0 0 5px rgba(255,255,255,.35); animation: pkIdle 2.4s ease-in-out infinite; }
.pk-logo { position: absolute; inset: 0; display: grid; place-items: center; font: 900 5rem / 1 var(--h-font); color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,.35); }
.pk-name { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; font: 800 .95rem / 1.1 var(--h-font); color: #fff; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.pk-flap { position: absolute; left: 0; right: 0; top: 0; height: 16%; background: rgba(255,255,255,.22); border-bottom: 2px dashed rgba(255,255,255,.7); z-index: 1; }
.pk-shine { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); animation: pkShine 2.8s ease-in-out infinite; }
.leyenda .pk-pack, .pk-pack.leyenda { animation: pkIdle 2.4s ease-in-out infinite, pkHue 4s linear infinite; }
@keyframes pkIdle { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@keyframes pkShine { 0%, 40% { translate: -60% 0; } 80%, 100% { translate: 60% 0; } }
@keyframes pkHue { to { filter: hue-rotate(360deg); } }
.pk-hint { margin: 0; font-weight: 700; opacity: .85; animation: pkBlink 1.6s ease-in-out infinite; }
@keyframes pkBlink { 50% { opacity: .4; } }
/* Tiembla… se rompe la tapa y se va el sobre hacia abajo, con un fogonazo */
.pk-stage.shake .pk-pack { animation: pkShake .7s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes pkShake { 10%, 90% { transform: translateX(-2px) rotate(-1deg); } 20%, 80% { transform: translateX(4px) rotate(2deg); } 30%, 50%, 70% { transform: translateX(-7px) rotate(-3deg) scale(1.03); } 40%, 60% { transform: translateX(7px) rotate(3deg) scale(1.05); } }
.pk-stage.torn .pk-flap { animation: pkFlap .5s ease-in forwards; }
@keyframes pkFlap { to { transform: translate(40%, -220%) rotate(28deg); opacity: 0; } }
.pk-stage.torn::after { content: ''; position: absolute; inset: 0; background: #fff; pointer-events: none; animation: pkFlash .5s ease-out forwards; }
@keyframes pkFlash { 0% { opacity: 0; } 20% { opacity: .85; } 100% { opacity: 0; } }
.pk-stage.dealt .pk-pack { animation: pkGone .45s ease-in forwards; pointer-events: none; }
@keyframes pkGone { to { transform: translateY(70vh) scale(.6); opacity: 0; } }
.pk-stage.dealt .pk-hint, .pk-stage.torn .pk-hint { visibility: hidden; }
.pk-stage:not(.dealt) .pk-cards, .pk-stage:not(.dealt) .pk-foot { display: none; }
.pk-stage.dealt .pk-pack, .pk-stage.dealt .pk-hint { position: absolute; }

/* Las figuritas: salen de abajo, boca abajo, y se dan vuelta al tocarlas */
.pk-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 96px)); gap: 12px; justify-content: center; perspective: 900px; }
@media (min-width: 640px) { .pk-cards { --cols: 6; grid-template-columns: repeat(auto-fit, minmax(0, 110px)); } }
.pk-card { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .8, .25, 1.15); animation: pkDeal .5s cubic-bezier(.2, .8, .3, 1.2) backwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes pkDeal { from { transform: translateY(60vh) rotate(calc(var(--i) * 9deg - 20deg)); opacity: 0; } }
.pk-card.up { transform: rotateY(180deg); cursor: default; }
.pk-back, .pk-front { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 10px; }
.pk-back { display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 0 0 4px rgba(255,255,255,.4); }
.pk-back b { font: 900 2.4rem / 1 var(--h-font); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pk-back.leyenda { animation: pkHue 4s linear infinite; }
@media (hover: hover) { .pk-card:not(.up):hover { transform: translateY(-6px) rotate(-2deg); } }
.pk-front { transform: rotateY(180deg); }
.pk-front .stk { width: 100%; height: 100%; aspect-ratio: auto; color: var(--h-ink); }
.pk-card.up.shiny .pk-front { box-shadow: 0 0 0 3px #fff, 0 0 30px 6px rgba(255, 213, 74, .8); animation: pkGlow 1.4s ease-in-out infinite alternate; }
@keyframes pkGlow { to { box-shadow: 0 0 0 3px #fff, 0 0 40px 12px rgba(255, 138, 216, .85); } }
.pk-card.up.fresh .stk-new { animation: pkPop .45s cubic-bezier(.2, .9, .3, 1.5) .35s backwards; }
@keyframes pkPop { from { transform: scale(0); } }
.pk-card:not(.fresh).up .pk-front::after { content: 'Repetida'; position: absolute; left: 50%; bottom: 22px; translate: -50% 0; padding: 2px 7px; border-radius: 99px; background: rgba(20, 33, 61, .75); color: #fff; font-size: .64rem; font-weight: 700; }
.pk-spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; z-index: 3;
  background: hsl(var(--h) 95% 65%); box-shadow: 0 0 8px hsl(var(--h) 95% 65%); animation: pkSpark .8s ease-out forwards; }
@keyframes pkSpark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.pk-foot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 48px; }
.pk-sum { margin: 0; font-weight: 800; font-size: 1.1rem; }
.pk-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pk-stage .btn { min-height: 46px; padding: 0 20px; border-radius: var(--h-r); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff;
  font: 700 1rem / 1 var(--h-font); text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; }
.pk-stage .btn.primary { background: #fff; color: var(--h-ink); border-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .pk-rays, .pk-pack, .pk-shine, .pk-hint, .pk-back.leyenda, .pk-card, .pk-card.up.shiny .pk-front { animation: none !important; }
  .pk-card { transition: none; }
}
.acct-why { padding: 10px 12px; border-radius: var(--h-r); background: #FFF4E5; color: #8A4B00 !important; font-weight: 600; }
.album-t { margin: 16px 0 8px; font: 800 1rem / 1 var(--h-font); }
.album-t small { color: var(--h-mute); font-weight: 600; }

.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.stk { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--h-line); box-shadow: 0 1px 2px rgba(20,33,61,.08); }
.stk-art { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #EAF3FC; }
.stk-art img { width: 100%; height: 100%; object-fit: cover; }
.stk.char .stk-art img { object-fit: contain; }
.stk-ico { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(var(--g) 0 26%, #fff 26%); }
.stk-ico svg { width: 46%; height: 46%; margin-top: 18%; fill: none; stroke: var(--h-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stk-name { padding: 3px 4px; font-size: .66rem; font-weight: 700; line-height: 1.15; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-n { position: absolute; top: 3px; left: 4px; font-size: .62rem; font-weight: 800; color: var(--h-mute); background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 3px; }
.stk-x { position: absolute; top: 3px; right: 3px; font-size: .66rem; color: #fff; background: var(--h-blue); border-radius: 99px; padding: 1px 5px; }
.stk.shiny { border: 0; padding: 2px; background: linear-gradient(135deg, #ffd54a, #ff8ad8, #74ACDF, #ffd54a); }
.stk.shiny .stk-art { border-radius: 6px 6px 0 0; }
.stk.shiny .stk-name { background: #fff; border-radius: 0 0 6px 6px; }
.stk.off { background: repeating-linear-gradient(135deg, #F1F5FA 0 8px, #E9EFF6 8px 16px); border: 1px dashed #C4D0DE; box-shadow: none; display: grid; place-items: center; }
.stk.off .stk-n { position: static; background: none; font-size: .95rem; color: #9DABBD; }
.stk-new { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; font-size: .66rem; color: #fff; background: var(--h-red); border-radius: 99px; padding: 2px 7px; white-space: nowrap; }

.pack-open { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0; }
.pack-open h3 { margin: 0; font: 800 1.2rem / 1 var(--h-font); }
.stk-grid.pack { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 520px; }
.stk-grid.pack .stk { animation: stkIn .5s var(--h-ease) backwards; }
.stk-grid.pack .stk:nth-child(2) { animation-delay: .12s; }
.stk-grid.pack .stk:nth-child(3) { animation-delay: .24s; }
.stk-grid.pack .stk:nth-child(4) { animation-delay: .36s; }
.stk-grid.pack .stk:nth-child(5) { animation-delay: .48s; }
@keyframes stkIn { from { opacity: 0; transform: translateY(14px) rotateY(80deg) scale(.9); } }
@media (max-width: 480px) { .stk-grid.pack { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .stk-grid.pack .stk { animation: none; } }
.pack-open .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.ropa { display: flex; flex-direction: column; gap: 12px; }
.ropa-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
#ropa-prev { width: 100%; aspect-ratio: 1; border-radius: var(--h-r-lg); background: var(--h-sky); }
.ropa-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ropa-act b { font-size: 1.1rem; }
.ropa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ropa-it { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-height: 54px; padding: 8px 10px; border-radius: var(--h-r); border: 1px solid var(--h-line);
  background: #fff; color: var(--h-ink); font: 700 .88rem / 1.15 var(--h-font); text-align: left; cursor: pointer; }
.ropa-it small { color: var(--h-mute); font-weight: 600; }
.ropa-it.mine small { color: #1E7A46; }
.ropa-it.sel { border: 2px solid var(--h-blue); padding: 7px 9px; background: #EEF5FC; }

/* Lo que ganó la cuenta al terminar la partida */
.w-rewards { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #EEF5FC; color: #14213D; font-size: .9rem; }
.w-rewards span { font-weight: 700; }

/* ---------- ranked ---------- */
.acct-rk { width: 10px; height: 10px; border-radius: 50%; background: var(--rk); box-shadow: 0 0 0 2px #fff; flex: none; }
.acct-rank { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .85rem; color: var(--h-muted, #5b6474); }
.acct-rank b { padding: 2px 9px; border-radius: 999px; background: var(--rk); color: #fff; font-size: .8rem; }
.w-rewards .w-rank { background: color-mix(in srgb, var(--rk) 18%, transparent); }
.rk-queue { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 12, 26, .72); backdrop-filter: blur(6px); animation: pkFade .2s ease-out; }
.rk-card { width: min(440px, 100%); padding: 24px 20px 20px; border-radius: 24px; background: #fff; color: var(--h-ink, #12182b); text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.rk-card h2 { margin: 0 0 16px; font: 800 1.35rem / 1.2 var(--h-font, inherit); }
.rk-seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.rk-seat { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.rk-seat img, .rk-seat i { width: 64px; height: 64px; border-radius: 50%; display: block; object-fit: cover; background: #eef1f7; }
.rk-seat i { border: 2px dashed #c6cddb; animation: rkWait 1.4s ease-in-out infinite; }
.rk-seat.in img { animation: rkIn .35s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 0 3px #2563eb; }
.rk-seat small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: #4a5468; }
.rk-time { display: flex; justify-content: center; gap: 10px; align-items: baseline; margin: 0 0 12px; }
.rk-time b { font: 800 1.6rem / 1 var(--h-font, inherit); font-variant-numeric: tabular-nums; }
.rk-time span { color: #4a5468; }
.rk-rank { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--rk) 16%, #fff); margin-bottom: 10px; }
.rk-rank b { color: color-mix(in srgb, var(--rk) 70%, #000); }
.rk-rules { margin: 0 0 16px; font-size: .88rem; color: #5b6474; }
.rk-card .btn { min-height: 44px; }
@keyframes rkWait { 50% { opacity: .45; } }
@keyframes rkIn { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rk-seat i, .rk-seat.in img { animation: none; } }

/* ---------- ranking mundial ---------- */
.acct-tabs:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.rk-board ol { list-style: none; margin: 0; padding: 0; }
.rk-list { display: flex; flex-direction: column; gap: 4px; }
.rk-board li { display: grid; grid-template-columns: 44px 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; background: #F6F8FC; }
.rk-board li.me { background: #E7F0FF; box-shadow: inset 0 0 0 2px #2563eb; }
.rk-board li img, .rk-ini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e8ecf4; }
.rk-ini { display: grid; place-items: center; font-weight: 800; color: #2563eb; }
.rk-pos { text-align: center; font: 800 1rem / 1 var(--h-font); font-variant-numeric: tabular-nums; color: var(--h-mute); }
.rk-list li:nth-child(-n+3) .rk-pos { font-size: 1.4rem; }
.rk-name { display: grid; min-width: 0; }
.rk-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name small, .rk-pts small { font-size: .75rem; color: var(--h-mute); }
.rk-pts { display: grid; justify-items: end; }
.rk-pts b { font-variant-numeric: tabular-nums; }
.rk-pts small { color: color-mix(in srgb, var(--rk) 75%, #000); font-weight: 700; }
.rk-mine { margin-bottom: 6px; }
.rk-mine > small { display: block; margin: 0 0 4px 4px; color: var(--h-mute); font-weight: 700; }
.rk-loading { padding: 30px 0; text-align: center; }

/* ---------- ranked y premios: pulido ---------- */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-io: cubic-bezier(0.77, 0, 0.175, 1); }

/* Barra de rango (compartida): se llena de --from a --to */
.rw-bar { position: relative; display: block; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--rk, #2463C7) 16%, #E9EEF6); overflow: hidden; }
.rw-bar > i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(var(--to));
  background: linear-gradient(90deg, color-mix(in srgb, var(--rk, #2463C7) 70%, #fff), var(--rk, #2463C7));
  animation: rwFill 1100ms var(--ease-io) 350ms both; }
@keyframes rwFill { from { transform: scaleX(var(--from)); } }
.rw-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--rk, #2463C7); color: #fff; font: 800 .82rem / 1.2 var(--h-font); letter-spacing: .01em; }

/* Inicio: el rango dentro del botón de la ranked */
.quick-rank { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; width: min(320px, 100%); margin: 8px auto 0;
  padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font: 600 .8rem / 1 var(--h-font); color: #fff; }
.quick-rank b { padding: 3px 9px; border-radius: 999px; background: var(--rk); font-weight: 800; }
.quick-rank .rw-bar { height: 7px; background: rgba(255, 255, 255, .25); }
.quick-rank .rw-bar > i { background: #fff; }
.quick-rank small { opacity: .9; white-space: nowrap; }

/* Buscando ranked */
.rk-card { font-family: var(--h-font); }
.rk-card h2 { color: var(--h-ink); }
.rk-dots::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: rkDots 1.2s steps(4) infinite; }
@keyframes rkDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.rk-seat.in img { animation: rkIn 380ms var(--ease-out); }
@keyframes rkIn { from { transform: scale(.6); opacity: 0; } }
.rk-rank { display: grid; gap: 7px; width: 100%; padding: 10px 14px; border-radius: 14px; text-align: left; }
.rk-rank > div { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rk-rank span { font-weight: 800; color: var(--h-ink); font-variant-numeric: tabular-nums; }
.rk-rank small { margin-left: auto; color: var(--h-mute); font-size: .8rem; }
.rk-prize { display: flex; justify-content: center; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; font-size: .8rem; color: var(--h-mute); font-variant-numeric: tabular-nums; }
.rk-prize li { padding: 4px 8px; border-radius: 8px; background: #F3F6FB; }
.rk-prize b { color: var(--h-ink); margin-right: 4px; }
.rk-cancel { min-height: 44px; padding: 0 22px; border: 1px solid var(--h-line); border-radius: var(--h-r); background: #fff; color: var(--h-mute);
  font: 700 1rem / 1 var(--h-font); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.rk-cancel:active { transform: scale(.97); }
.rk-cancel:disabled { opacity: .5; cursor: default; }
@media (hover: hover) and (pointer: fine) { .rk-cancel:hover:not(:disabled) { background: #F3F6FB; color: var(--h-ink); } }
.rk-queue.found .rk-card { animation: rkFound 500ms var(--ease-out); }
.rk-queue.found h2 { color: var(--h-blue); }
.rk-queue.found .rk-seat img { box-shadow: 0 0 0 3px #1FA463; }
.rk-queue.found .rk-dots { display: none; }
@keyframes rkFound { 40% { transform: scale(1.03); } }

/* Premios al terminar */
.rw { display: grid; gap: 10px; margin: 0 0 12px; padding: 14px; border-radius: 16px; background: #F3F7FC; color: var(--h-ink); font-family: var(--h-font); text-align: center; }
.rw > * { animation: rwIn 420ms var(--ease-out) both; }
.rw > :nth-child(2) { animation-delay: 70ms; } .rw > :nth-child(3) { animation-delay: 130ms; }
.rw > :nth-child(4) { animation-delay: 180ms; } .rw > :nth-child(5) { animation-delay: 220ms; }
@keyframes rwIn { from { opacity: 0; transform: translateY(8px); } }
.rw-place { display: grid; margin: 0; font: 800 1.6rem / 1.1 var(--h-font); }
.rw-place.p1 { color: #B8860B; }
.rw-place small { font: 600 .8rem / 1.4 var(--h-font); color: var(--h-mute); }
.rw-rank { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #fff; text-align: left; }
.rw-rank-top { display: flex; align-items: center; gap: 8px; }
.rw-pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.rw-delta { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rw-delta.pos { background: #E3F6EA; color: #13794A; }
.rw-delta.neg { background: #FDE8E7; color: #B3261E; }
.rw-rank small { color: var(--h-mute); font-size: .82rem; }
.rw-rank.up { box-shadow: 0 0 0 2px var(--rk); }
.rw-rank.up .rw-badge { animation: rwPop 600ms var(--ease-out) 1200ms both; }
@keyframes rwPop { 0% { transform: scale(.9); } 50% { transform: scale(1.15); } }
.rw-stats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rw-stat { display: grid; min-width: 86px; padding: 8px 10px; border-radius: 12px; background: #fff; }
.rw-stat b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.rw-stat i { font-style: normal; }
.rw-stat small { color: var(--h-mute); font-size: .78rem; }
.rw-packs { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 12px; border: 0; border-radius: 12px;
  background: #fff; color: var(--h-ink); font: 700 .95rem / 1.2 var(--h-font); cursor: pointer; transition: transform 160ms var(--ease-out); }
.rw-packs:active { transform: scale(.97); }
.rw-packs u { color: var(--h-blue); text-underline-offset: 3px; }
.rw-packs .pk-mini { width: 28px; height: 38px; }
.rw-again { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .rw > *, .rw-bar > i, .rw-rank.up .rw-badge, .rk-queue.found .rk-card, .rk-seat.in img { animation: none; }
}

/* Ranking: podio y próximo objetivo */
.rk-next { margin: 6px 4px 0; font-size: .88rem; color: var(--h-mute); }
.rk-next b { color: var(--h-ink); }
.rk-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin: 4px 0 10px !important; }
.rk-podium .pd { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 0 !important; background: none !important; text-align: center; grid-template-columns: none !important; }
.pd-face { position: relative; }
.pd-face img, .pd-face .rk-ini { width: 56px !important; height: 56px !important; box-shadow: 0 0 0 3px var(--rk); }
.pd.p1 .pd-face img, .pd.p1 .pd-face .rk-ini { width: 72px !important; height: 72px !important; }
.pd-face i { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #C0C7D2; color: #fff; font: 800 .75rem / 1 var(--h-font); font-style: normal; }
.pd.p1 .pd-face i { background: #E5A50A; }
.pd.p3 .pd-face i { background: #B0743C; }
.pd b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.pd small { color: var(--h-mute); font-size: .75rem; font-variant-numeric: tabular-nums; }
.pd-step { width: 100%; height: 34px; margin-top: 4px; border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--rk) 22%, #EEF2F8); }
.pd.p1 .pd-step { height: 54px; }
.pd.p3 .pd-step { height: 24px; }
.pd.me b { color: var(--h-blue); }
.rk-rank .rw-badge, .rk-rank b.rw-badge { color: #fff; }
