/* ══════════════════════════════════════════════════════════════
   JUEGOS DE PAMPLING — El calcetín soltero y Black Friday Rush
   La base es la maqueta del arcade de TEE RUSH; cada juego la viste con su
   piel Pampling al final de este fichero («Pieles Pampling»).
   Mobile first y una sola columna centrada en todas las pantallas de contenido;
   el ranking va siempre debajo. Solo la pantalla de juego lo pone al lado,
   porque ahí el tablero es estrecho y se ve en vivo mientras juegas.
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0d0b1a;
  --bg-2: #16123099;
  --ink: #f4f1ff;
  --ink-dim: #a49dc4;
  --neon: #ff4d8d;      /* rosa arcade */
  --neon-2: #21e6c1;    /* cian */
  --gold: #ffc93c;
  --danger: #ff5c5c;
  --line: #ffffff1f;
  --radius: 14px;
  --col: 460px;         /* ancho de la columna de juego */
  --side: 320px;        /* ancho del ranking en escritorio */
  --gap: clamp(16px, 3vw, 34px);
}

* { box-sizing: border-box; }

html {
  /* reserva el hueco de la barra de scroll: si no, el contenido salta 8 px al
     pasar de una pantalla corta a una larga */
  scrollbar-gutter: stable;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% -10%, #2a1f5c 0%, transparent 60%),
    radial-gradient(90% 60% at 100% 100%, #3d1440 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

.crt {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: repeating-linear-gradient(180deg, #0000 0 2px, #00000026 2px 3px);
  mix-blend-mode: multiply;
}

/* ── Pantallas y rejilla ───────────────────────────────────── */
.screen { display: none; }
.screen.is-active { display: block; }

.layout {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px) 18px 64px;
  text-align: center;
}
.wrap-text { text-align: left; }

/* ── Tipografía ────────────────────────────────────────────── */
.kicker {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 2px;
  color: var(--neon-2);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.logo-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(29px, 10vw, 52px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 0 6px var(--neon), 0 0 22px #ff4d8d99, 3px 3px 0 #7a1440;
}

.tagline {
  color: var(--ink-dim);
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.55;
  margin: 0 0 22px;
}
.tagline b { color: var(--ink); }

/* ── Selector de idioma ─────────────────────────────────────────────────────
   Comparte fila con el kicker de la portada: es el sitio donde se decide en qué
   idioma se juega, antes de entrar. El idioma se detecta solo (navegador, y si
   no ayuda, el país por IP); esto está para corregirlo cuando se equivoca. */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.top-row .kicker { margin: 0; }

/* Etiqueta para lectores de pantalla: el <select> necesita nombre, pero en
   pantalla la bandera del idioma activo ya lo dice todo. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.lang select {
  appearance: none;
  -webkit-appearance: none;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  background-color: #ffffff0a;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 28px 7px 13px;
  cursor: pointer;
  /* la flecha va de fondo: la del <select> nativo no se puede estilizar */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a49dc4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  transition: color .15s, border-color .15s;
}

.lang select:focus-visible {
  outline: 2px solid var(--neon-2);
  outline-offset: 2px;
}

/* el hover solo donde hay ratón: en el móvil se quedaba pegado tras el toque */
@media (hover: hover) {
  .lang select:hover {
    color: var(--ink);
    border-color: var(--neon-2);
  }
}

/* el desplegable lo pinta el sistema, no el CSS de la página: esto es lo único
   que se puede hacer para que las opciones no salgan negras sobre negro */
.lang select option {
  background: var(--bg);
  color: var(--ink);
}

h2 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(10px, 2.6vw, 11px);
  letter-spacing: 1px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.micro { font-size: 12px; color: var(--ink-dim); margin: 10px 0 0; line-height: 1.5; }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(2px) scale(.99); }

.btn-primary {
  background: linear-gradient(180deg, #ff6ba3, var(--neon));
  color: #24001a;
}

.btn-ghost {
  background: #ffffff0f;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-xl {
  display: block;
  width: 100%;
  max-width: 340px;
  padding: 17px 26px;
  font-size: clamp(15px, 4vw, 17px);
  margin: 8px auto;
}

.btn-share {
  background: #ffffff14;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  padding: 12px 18px;
  flex: 1 1 140px;
}
.share-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ── Premio semanal ────────────────────────────────────────── */
.weekly {
  position: relative;
  background: linear-gradient(180deg, #ffc93c1c, #ffc93c08);
  border: 1px solid #ffc93c66;
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 26px 0 20px;
}
.weekly strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.weekly-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #2a1c00;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Cómo se juega ─────────────────────────────────────────── */
.how {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 15px;
  margin-bottom: 6px;
  font-size: 13px;
}
.how summary { cursor: pointer; font-weight: 600; color: var(--neon-2); list-style: none; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: " ▾"; }
.how[open] summary::after { content: " ▴"; }
.how ul { margin: 12px 0 2px; padding-left: 20px; color: var(--ink-dim); line-height: 1.75; }
.how b { color: var(--ink); }

/* ── Ranking ───────────────────────────────────────────────── */
/* Mientras no se ha registrado no ve el ranking: un primer puesto de 25.000
   puntos no invita a competir, desanima. Lo pone y lo quita app.js. */
body.sin-ranking .board { display: none; }

.board {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  margin: 0 0 18px;
  text-align: left;
}
/* El ranking entero cabe aquí, del primero al último, y la caja mide cinco
   filas: se abre por el podio y se recorre con el dedo o con la rueda. Cinco
   es lo que se lee de un vistazo sin que el tablero se coma la pantalla. */
.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* para que offsetTop de las filas cuelgue de aquí y no del <body> */
  position: relative;
  /* cinco filas de 38 px */
  max-height: 190px;
  overflow-y: auto;
  /* llegar al final no sigue arrastrando la página detrás */
  overscroll-behavior: contain;
  /* inercia al arrastrar con el dedo en iOS */
  -webkit-overflow-scrolling: touch;
  /* el gesto vertical es de esta caja; el horizontal se lo deja a la página */
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.board-list::-webkit-scrollbar { width: 6px; }
.board-list::-webkit-scrollbar-track { background: transparent; }
.board-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.board-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #ffffff0d;
  font-size: 14px;
}
.board-list li:last-child { border-bottom: 0; }
.board-list .pos {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  min-width: 28px;
}
.board-list li.is-top1 .pos,
.board-list li.is-top2 .pos,
.board-list li.is-top3 .pos { color: var(--gold); }
.board-list li.is-top1 { background: linear-gradient(90deg, #ffc93c1f, transparent); border-radius: 8px; }
.board-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .sc { font-weight: 800; color: var(--neon-2); font-variant-numeric: tabular-nums; }
.board-list li.is-me { background: #ff4d8d24; border-radius: 8px; }

/* Cuando el jugador está por debajo de lo que se manda, su fila va al final
   con esto delante: se ve que hay tramo por medio y no es la posición 501. */
.board-salto {
  justify-content: center;
  color: var(--ink-dim);
  letter-spacing: 4px;
  border-bottom: 0 !important;
  padding: 4px 0 !important;
}

/* la fila propia, marcada también con un filo a la izquierda: en una lista
   larga el fondo rosa solo se pierde entre las demás */
.board-list li.is-me {
  box-shadow: inset 3px 0 0 var(--neon);
}
.board-list li.is-me .nm::after {
  content: " (tú)";
  color: var(--neon);
  font-size: 11px;
  font-weight: 600;
}
/* en el idioma de la página (i18n.js pone el lang del <html>) */
html[lang="en"] .board-list li.is-me .nm::after { content: " (you)"; }
html[lang="fr"] .board-list li.is-me .nm::after { content: " (toi)"; }
html[lang="it"] .board-list li.is-me .nm::after { content: " (tu)"; }
html[lang="de"] .board-list li.is-me .nm::after { content: " (du)"; }
.board-empty { color: var(--ink-dim); font-size: 13px; }
.board-foot { font-size: 11.5px; color: #7d76a0; margin: 12px 0 0; }

.legal-line { font-size: 11.5px; color: #7d76a0; margin-top: 24px; line-height: 1.6; }
/* el espacio antes del ranking se controla aquí, en un solo sitio */
.col-side { margin-top: 14px; }
.legal-line a, .capture a { color: var(--ink-dim); }

/* ══════════════ JUEGO ══════════════ */
#screen-game.is-active { display: block; }

.game-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: var(--col);
  margin: 0 auto;
  padding: 8px 10px 6px;
}
.game-col { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.game-side { display: none; }

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 8px;
}
.hud-cell { min-width: 74px; text-align: left; }
.hud-cell-c { flex: 1; text-align: center; min-width: 0; }
.hud-cell-r { text-align: right; }
.hud-label {
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--ink-dim);
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.hud-score {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 5vw, 21px);
  color: #fff;
  text-shadow: 0 0 10px #21e6c1aa;
  font-variant-numeric: tabular-nums;
}
.hud-best {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(11px, 3.4vw, 14px);
  color: var(--ink-dim);
}
.hud-flag {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(10px, 3vw, 13px);
  color: var(--neon-2);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.hud-flag.on { opacity: 1; transform: scale(1.1); }
.hud-flag.is-record { color: var(--gold); text-shadow: 0 0 12px #ffc93c99; }

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #191339, #0d0b1a 70%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 60px #00000080;
  touch-action: none;
}
#canvas { display: block; width: 100%; height: 100%; }

.countdown {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
  color: #fff;
  background: #0d0b1a99;
}
.countdown.on { display: flex; }

/* Las dos reglas que acaban la partida, mientras corre el 3-2-1. Van en la
   tipografía de píxel y con el icono que dibuja el propio juego: es un aviso,
   pero también parte de la pantalla de arranque de una recreativa. */
.countdown-reglas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.regla {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d0b1acc;
}

.regla-icono {
  flex: none;
  display: block;
}

.regla b {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(8px, 2.5vw, 10px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .5px;
  color: var(--ink);
}

/* la del café es la que mata de golpe: se marca en rojo */
.regla:last-child b { color: #ff8f8f; }
.regla:last-child { border-color: #ff5c5c4d; }

.countdown-num {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(40px, 14vw, 62px);
  text-shadow: 0 0 24px var(--neon);
}

/* un latido por número, como el de una recreativa */
.countdown-num.pulso { animation: cuenta-pulso .34s ease-out; }

@keyframes cuenta-pulso {
  0%   { transform: scale(1.5); opacity: .2; }
  55%  { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-num.pulso { animation: none; }
}

.mute {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #00000059;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}
.mute.off { color: #5d5680; }

.hint { text-align: center; font-size: 11.5px; color: #6f6892; margin: 6px 0 0; }
/* sin aviso de sonido no hay párrafo: así no deja un hueco bajo el tablero */
.hint:empty { display: none; }

/* ══════════════ RESULTADO ══════════════ */
.score-big {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(38px, 14vw, 64px);
  color: #fff;
  text-shadow: 0 0 18px #21e6c1aa;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.rank-big {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(40px, 15vw, 68px);
  color: var(--gold);
  text-shadow: 0 0 20px #ffc93c66;
  margin: 6px 0 4px;
}
.score-sub {
  color: var(--ink-dim);
  font-size: clamp(13px, 3.5vw, 15px);
  margin: 0 0 20px;
  line-height: 1.55;
}
.score-sub b { color: var(--ink); }

.podium-note {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 22px;
  text-align: center;
}
.podium-note b { color: var(--neon-2); }
.podium-note.is-podium { border-color: var(--gold); background: linear-gradient(180deg, #ffc93c1a, #ffc93c05); }
.podium-note.is-podium b { color: var(--gold); }

/* ── Formulario ────────────────────────────────────────────── */
.capture {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  text-align: left;
}
.capture-lead {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(10px, 2.9vw, 12px);
  line-height: 1.8;
  color: var(--neon-2);
  margin: 0 0 18px;
  text-align: center;
}
.field { display: block; margin-bottom: 14px; }
.field span {
  /* la etiqueta a la izquierda y la aclaración pegada al borde derecho del
     campo, en la misma línea: cabe de sobra en los cinco idiomas y así no cae
     debajo del nombre, donde parecía otra cosa */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}
.field span em {
  text-transform: none;
  letter-spacing: 0;
  opacity: .75;
  /* que no empuje a la etiqueta: si algún día no cabe, se encoge ella */
  min-width: 0;
}
.field input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ffffff2b;
  background: #0b0918;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;   /* 16px evita el zoom automático en iOS */
}
.field input:focus { outline: 2px solid var(--neon); outline-offset: 1px; }
.field input.is-bad { border-color: var(--danger); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin-bottom: 12px;
  cursor: pointer;
}
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--neon); flex: none; }
.check em { opacity: .7; }

.best-note {
  background: #21e6c118;
  border: 1px solid #21e6c14d;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 16px;
  text-align: center;
}
.best-note b { color: var(--neon-2); }

.result-actions { margin-top: 18px; }

.form-error {
  color: var(--danger);
  font-size: 12.5px;
  margin: 10px 0 0;
  text-align: center;
}

/* El botón que cierra el embudo: separado de las casillas y bien grande */
#btn-claim {
  margin: 26px auto 16px;
  padding: 19px 28px;
  letter-spacing: .08em;
}
.capture { padding-bottom: 22px; }
.capture .check:last-of-type { margin-bottom: 4px; }

/* ── Pantalla de resultado: compacta ───────────────────────────
   Todo lo que importa (marca, formulario y OTRA PARTIDA) tiene que caber sin
   scroll. Las camisetas capturadas quedan debajo a propósito: son el premio de
   consolación, no una acción. */
#screen-result .kicker { margin-bottom: 8px; }
#screen-result .score-big { font-size: clamp(30px, 9vw, 46px); margin: 2px 0 2px; }
#screen-result .score-sub { margin-bottom: 12px; }
#screen-result .podium-note {
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}
#screen-result .capture { padding: 15px 14px 12px; }
#screen-result .capture-lead { margin-bottom: 12px; line-height: 1.6; }
#screen-result .best-note { padding: 8px 10px; margin-bottom: 12px; font-size: 12px; }
#screen-result .field { margin-bottom: 10px; }
#screen-result .field span { margin-bottom: 4px; }
#screen-result .field input { padding: 11px 13px; }
#screen-result .check { margin-bottom: 8px; font-size: 11.5px; line-height: 1.45; }
#screen-result #btn-claim { margin: 14px auto 8px; padding: 16px 26px; }
#screen-result .capture .micro { font-size: 11px; margin-top: 6px; }
#screen-result .result-actions { margin-top: 10px; }
/* la frase de debajo de la puntuación y el botón de registrarse van en una
   línea (unaLinea, en app.js, baja la letra si no cabe): con menos aire a los
   lados, para que casi nunca haga falta */
#screen-result #btn-claim { padding-left: 14px; padding-right: 14px; letter-spacing: .03em; }
#screen-result .result-actions .micro { margin-top: 6px; }

/* ── Camisetas cogidas ─────────────────────────────────────── */
.caught { margin-top: 34px; }
/* En la pantalla de resultado el botín va encima del formulario, así que
   respira menos y no se lleva el protagonismo del registro. */

/* Cuándo cierra el ranking. Va debajo del titular del formulario, que es
   donde se decide, y no grita: informa. */
.capture-deadline {
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--ink-dim);
  text-align: center;
}
.capture-deadline b { color: var(--neon-2); }
.caught-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  /* hueco abajo para que la barra de scroll no toque el botón */
  padding: 4px 2px 16px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff40 #ffffff12;
  -webkit-overflow-scrolling: touch;
}
.caught-row::-webkit-scrollbar { height: 8px; }
.caught-row::-webkit-scrollbar-track { background: #ffffff12; border-radius: 99px; }
.caught-row::-webkit-scrollbar-thumb { background: #ffffff40; border-radius: 99px; }
.caught-row::-webkit-scrollbar-thumb:hover { background: #ffffff60; }
.caught .btn { margin-top: 14px; }
.caught-item {
  flex: none;
  width: clamp(64px, 18vw, 84px);
  text-decoration: none;
  color: var(--ink-dim);
  transition: transform .12s ease;
}
.caught-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: block;
}
.caught-item span {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Bases ─────────────────────────────────────────────────── */
#bases-content { font-size: 14.5px; line-height: 1.75; color: var(--ink-dim); }
#bases-content h1 { font-size: clamp(20px, 5vw, 26px); color: var(--ink); font-weight: 800; }
#bases-content h2 {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin: 28px 0 8px;
}
#bases-content strong, #bases-content b { color: var(--ink); }
#bases-content ul { padding-left: 20px; }
#bases-content code { background: #ffffff14; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
#btn-back { margin-bottom: 22px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Pantallas bajas (iPhone SE y similares): el resultado se aprieta un punto más
   para que OTRA PARTIDA siga entrando sin scroll. */
@media (max-height: 720px) {
  #screen-result .kicker { display: none; }
  #screen-result .score-big { font-size: clamp(26px, 8vw, 36px); }
  #screen-result .score-sub { font-size: 12.5px; margin-bottom: 10px; }
  #screen-result .podium-note { padding: 8px 10px; font-size: 11.5px; margin-bottom: 10px; }
  #screen-result .capture { padding: 12px 13px 10px; }
  #screen-result .capture-lead { font-size: 10px; margin-bottom: 10px; }
  #screen-result .best-note { padding: 7px 9px; margin-bottom: 9px; font-size: 11.5px; }
  #screen-result .field { margin-bottom: 8px; }
  #screen-result .check { margin-bottom: 7px; font-size: 11px; }
  #screen-result #btn-claim { margin: 11px auto 6px; padding: 14px 24px; }
  #screen-result .capture .micro { font-size: 10.5px; }
  #screen-result .layout { padding-top: 14px; }
}

/* Móvil en horizontal: poca altura, el juego manda */
@media (max-height: 560px) and (orientation: landscape) {
  .game-layout { padding: 4px 8px; }
  .hud { padding: 2px 4px 4px; }
  .hud-label { display: none; }
  .hint { display: none; }
  .stage { border-radius: 12px; }
  .layout { padding-top: 14px; }
  .logo-title { font-size: clamp(24px, 6vh, 34px); }
  .weekly, .how { margin-top: 14px; }
}

/* Tablet: el contenido respira y el juego se limita en altura */
@media (min-width: 640px) {
  .layout { max-width: 560px; padding-bottom: 80px; }
  .board-list li { font-size: 15px; padding: 9px 6px; }
}

/* Escritorio: el ranking pasa a columna lateral, siempre visible */
@media (min-width: 900px) {
  /* Una sola columna centrada, también en escritorio: el ranking va DEBAJO del
     contenido, no en un lateral. Así el orden de lectura es el mismo en todas
     las pantallas y no queda medio ancho vacío. */
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 46px 26px 80px;
    text-align: center;
  }
  .layout > * { grid-column: 1; }
  .layout > .legal-line { margin-top: 20px; }
  .layout-single { grid-template-columns: minmax(0, 760px); }
  .col-main { min-width: 0; }
  .col-side { min-width: 0; }

  /* la intro y el resultado ya no necesitan tanto ancho de texto */
  .capture { padding: 26px 24px 20px; }

  /* Juego: el tablero en el centro exacto de la ventana (hueco a la izquierda
     del mismo ancho que el ranking) y centrado también en vertical. */
  .game-layout {
    display: grid;
    grid-template-columns: var(--side) auto var(--side);
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: var(--gap);
    max-width: none;
    margin: 0;
    height: auto;
    min-height: 100dvh;
    padding: 30px 26px;
  }
  .game-col { grid-column: 2; }
  .game-side { grid-column: 3; }
  /* La altura manda y el ancho sale de ella, para no perder el 9:16.
     El HUD y la pista se alinean al mismo ancho que el tablero. */
  .game-col {
    --stage-h: min(calc(100dvh - 170px), 780px);
    --stage-w: calc(var(--stage-h) * 9 / 16);
    align-items: center;
  }
  .game-side { display: block; align-self: center; }
  .game-side .board { margin: 0; }
  .stage {
    flex: none;
    height: var(--stage-h);
    width: var(--stage-w);
    max-width: 100%;
    aspect-ratio: 9 / 16;
  }
  .hud { width: var(--stage-w); max-width: 100%; margin: 0 auto; }
  .hint { width: var(--stage-w); max-width: 100%; margin: 8px auto 0; }
}

/* Pantallas grandes: un poco más de aire, sin estirar el juego */
@media (min-width: 1280px) {
  :root { --side: 360px; }
}

/* ── Accesibilidad ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .crt { display: none; }
}

/* Los efectos de hover solo donde hay ratón: en táctil el :hover se queda
   pegado tras el tap y dejaba los botones sin fondo. */
@media (hover: hover) {
    }


/* ══════════════════════════════════════════════════════════════
   Pieles Pampling: cada juego con la suya, sobre la misma maqueta
   (los botones, el formulario y el ranking siguen donde estaban).
   La letra y los colores son los de pampling.com: Barlow Condensed en
   los titulares, Poppins en el texto, botones en píldora, el rosa de
   la web y las etiquetas amarillas de las fichas.
   ══════════════════════════════════════════════════════════════ */

:root {
  --rosa: #f92b89;
  --amarillo: #ffd21f;
  --lila: #d37ff8;
  --negro: #111111;
  --titular: "Barlow Condensed", "Arial Narrow", sans-serif;
}

/* sin la trama de pantalla de recreativa: eso era de TEE RUSH */
.juego-calcetin .crt, .juego-rush .crt { display: none; }

/* ── Lo común a los dos juegos ─────────────────────────────── */

/* el logo de Pampling, donde antes decía PAMPLING ARCADE */
.marca { display: block; height: 30px; width: auto; }

/* la marquesina de la web, arriba del todo */
.marquesina {
  overflow: hidden;
  white-space: nowrap;
  background: var(--negro);
  color: #fff;
  font: 600 15px/1 var(--titular);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 10px 0;
  position: relative;
  z-index: 2;
}
.marquesina-pista { display: inline-flex; animation: marquesina 38s linear infinite; }
.marquesina-pista span { padding: 0 20px; }
.marquesina-pista span::after { content: "✦"; margin-left: 40px; opacity: .7; }
@keyframes marquesina { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquesina-pista { animation: none; } }
/* jugando, la pantalla es del tablero */
body:has(#screen-game.is-active) .marquesina { display: none; }

/* titulares, etiquetas, cifras y botones con la letra de la web */
:is(.juego-calcetin, .juego-rush) :is(.logo-title, h2, .kicker, .weekly-badge, .capture-lead,
  .score-big, .rank-big, .hud-label, .hud-score, .hud-best, .hud-flag, .countdown-num,
  .regla b, .board-list .pos, .btn) {
  font-family: var(--titular);
}
:is(.juego-calcetin, .juego-rush) .logo-title,
:is(.juego-calcetin, .juego-rush) .logo-largo {
  position: relative;
  font-weight: 800;
  font-size: clamp(46px, 15vw, 84px);
  line-height: .9;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 18px 0 18px;
  overflow-wrap: normal;
}
:is(.juego-calcetin, .juego-rush) .tagline { font-size: clamp(15px, 3.8vw, 17px); }
:is(.juego-calcetin, .juego-rush) h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
:is(.juego-calcetin, .juego-rush) .kicker {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 12px 4px;
  border-radius: 4px;
  background: var(--amarillo);
  color: var(--negro);
}
:is(.juego-calcetin, .juego-rush) .btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 18px;
}
:is(.juego-calcetin, .juego-rush) .btn-xl { font-size: clamp(20px, 5.4vw, 24px); padding: 15px 26px 14px; }
:is(.juego-calcetin, .juego-rush) .btn-share { font-size: 16px; }
:is(.juego-calcetin, .juego-rush) .weekly-badge {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 12px 3px;
  border-radius: 4px;
  top: -13px;
  background: var(--amarillo);
  color: var(--negro);
}
:is(.juego-calcetin, .juego-rush) .weekly strong {
  font-family: var(--titular);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 4px 0 8px;
}
:is(.juego-calcetin, .juego-rush) .board-list .pos {
  font-size: 19px;
  font-weight: 800;
  min-width: 34px;
  text-align: center;
  border-radius: 4px;
  padding: 1px 0;
}
:is(.juego-calcetin, .juego-rush) .board-list li.is-top1 .pos,
:is(.juego-calcetin, .juego-rush) .board-list li.is-top2 .pos,
:is(.juego-calcetin, .juego-rush) .board-list li.is-top3 .pos {
  background: var(--amarillo);
  color: var(--negro);
}
:is(.juego-calcetin, .juego-rush) .board-list .sc { font-weight: 700; }
:is(.juego-calcetin, .juego-rush) .score-big,
:is(.juego-calcetin, .juego-rush) .rank-big {
  font-weight: 800;
  font-size: clamp(64px, 20vw, 110px);
  line-height: .95;
  margin: 8px 0 6px;
}
:is(.juego-calcetin, .juego-rush) #screen-result .score-big { font-size: clamp(56px, 17vw, 92px); }
:is(.juego-calcetin, .juego-rush) .capture-lead {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}
:is(.juego-calcetin, .juego-rush) #screen-result .capture-lead { font-size: clamp(20px, 5.6vw, 25px); line-height: 1.05; }
:is(.juego-calcetin, .juego-rush) .hud-label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
:is(.juego-calcetin, .juego-rush) .hud-score { font-size: clamp(30px, 9vw, 40px); font-weight: 800; line-height: 1; text-shadow: none; }
:is(.juego-calcetin, .juego-rush) .hud-best { font-size: clamp(20px, 6vw, 26px); font-weight: 700; line-height: 1; }
:is(.juego-calcetin, .juego-rush) .hud-flag { font-size: clamp(18px, 5vw, 22px); font-weight: 800; }
:is(.juego-calcetin, .juego-rush) .countdown-num { font-size: clamp(90px, 30vw, 130px); font-weight: 800; }
:is(.juego-calcetin, .juego-rush) .regla b { font-size: clamp(17px, 4.6vw, 20px); font-weight: 700; letter-spacing: 1px; }
:is(.juego-calcetin, .juego-rush) .aviso-juego { font-size: 14.5px; border-radius: 12px; }
:is(.juego-calcetin, .juego-rush) .field span { font-size: 12px; font-weight: 600; }
:is(.juego-calcetin, .juego-rush) .field input { border-radius: 12px; }
:is(.juego-calcetin, .juego-rush) .caught-item img { border-radius: 12px; }

/* «los premios empiezan el…» / «este juego terminó…» */
.aviso-juego {
  margin: 14px auto 0;
  max-width: 36ch;
  padding: 10px 14px;
  border-radius: var(--radius);
  line-height: 1.5;
}

/* ── El calcetín soltero: el banner del 11.11 ──────────────────
   La campaña «Todas las camisetas 11'11 €»: muro verde azulado con
   gotelé y ondas de pintura rosa (img/muro-1111.webp y ondas-1111.webp,
   las mismas que dentro del juego), letra redondeada en crema con perfil
   y sombra rosa (Chewy), pegatinas verdes con borde rosa y el botón rosa
   claro con texto verde de «COMPRAR». Las tarjetas, en crema. */
:root:has(body.juego-calcetin) {
  --c-teal: #05716b;
  --c-rosa: #ff1979;
  --c-rosa-perfil: #ff4f97;
  --c-rosa-sombra: #d4126a;
  --c-rosa-claro: #f7a8c6;
  --c-rosa-palido: #f6b8cb;
  --c-crema: #fff4ec;
  --c-verde: #0b4a40;
  --c-tinta: #0d3b33;
  --c-letra: "Chewy", "Barlow Condensed", system-ui, sans-serif;
  --bg: #05716b;
  --bg-2: #fff4ec;
  --ink: #fff4ec;
  --ink-dim: #d7ebe6;
  --neon: #ff1979;
  --neon-2: #ff1979;
  --gold: #f6b8cb;
  --danger: #ff1979;
  --line: #fff4ec40;
}
body.juego-calcetin {
  background:
    url("../img/ondas-1111.webp") repeat-x 0 58vh / 720px auto,
    url("../img/muro-1111.webp") repeat 0 0 / 240px 240px,
    #05716b;
  background-attachment: fixed;
}
/* el perfil de la letra del banner: ocho sombras alrededor y la dura detrás */
.juego-calcetin {
  --c-perfil: 3px;
  --c-trazo:
    calc(var(--c-perfil) * -1) calc(var(--c-perfil) * -1) 0 var(--c-rosa-perfil),
    0 calc(var(--c-perfil) * -1) 0 var(--c-rosa-perfil),
    var(--c-perfil) calc(var(--c-perfil) * -1) 0 var(--c-rosa-perfil),
    var(--c-perfil) 0 0 var(--c-rosa-perfil),
    var(--c-perfil) var(--c-perfil) 0 var(--c-rosa-perfil),
    0 var(--c-perfil) 0 var(--c-rosa-perfil),
    calc(var(--c-perfil) * -1) var(--c-perfil) 0 var(--c-rosa-perfil),
    calc(var(--c-perfil) * -1) 0 0 var(--c-rosa-perfil);
}
.juego-calcetin :is(.logo-title, h2, .weekly-badge, .weekly strong, .capture-lead,
  .score-big, .rank-big, .hud-score, .hud-best, .hud-flag, .countdown-num, .board-list .pos, .kicker) {
  font-family: var(--c-letra);
  font-weight: 400;
  letter-spacing: .5px;
}
/* :root delante para ganar a la regla común, que lleva «.board-list .pos» */
:root .juego-calcetin :is(.btn, .regla b, .hud-label) {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.juego-calcetin .marquesina {
  background: var(--c-verde);
  color: var(--c-crema);
  font: 600 13px/1 "Poppins", system-ui, sans-serif;
  letter-spacing: 1.4px;
  border-bottom: 3px solid var(--c-rosa);
}
.juego-calcetin .marca { filter: brightness(0) invert(1); }
.juego-calcetin .logo-title {
  color: var(--c-crema);
  font-size: clamp(50px, 15.5vw, 86px);
  line-height: .95;
  text-shadow: var(--c-trazo), 5px 7px 0 var(--c-rosa-sombra);
}
/* el 11.11, en la pegatina verde con borde rosa de «¡REGALO! CALCETINES»,
   al lado de SOLTERO, que es la línea corta */
.juego-calcetin #screen-intro .logo-title::after {
  content: "11.11";
  position: absolute;
  bottom: 2px;
  right: 0;
  transform: rotate(-8deg);
  font: 400 26px/1 var(--c-letra);
  letter-spacing: 1px;
  color: var(--c-crema);
  background: var(--c-verde);
  padding: 8px 12px 6px;
  border: 3px solid var(--c-rosa);
  border-radius: 2px;
  text-shadow: none;
}
.juego-calcetin .tagline { color: var(--c-crema); }
.juego-calcetin .tagline b { color: var(--c-rosa-palido); }
/* JUGAR: el botón «COMPRAR» del banner */
.juego-calcetin .btn-primary {
  background: var(--c-rosa-palido);
  color: var(--c-tinta);
  border: 3px solid var(--c-rosa);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--c-rosa);
}
.juego-calcetin .btn-primary:active { box-shadow: 0 2px 0 var(--c-rosa); }
.juego-calcetin :is(.btn-ghost, .btn-share) {
  background: var(--c-verde);
  color: var(--c-crema);
  border: 3px solid var(--c-rosa);
  border-radius: 18px;
}
.juego-calcetin .btn-xl { font-size: clamp(17px, 4.8vw, 21px); }
/* el premio: otra pegatina verde, un poco torcida */
.juego-calcetin .weekly {
  background: var(--c-verde);
  border: 3px solid var(--c-rosa);
  border-radius: 4px;
  box-shadow: none;
  color: var(--c-crema);
  transform: rotate(-1.5deg);
}
.juego-calcetin .weekly-badge {
  background: var(--c-rosa);
  color: var(--c-crema);
  font-size: 18px;
  border-radius: 4px;
  transform: translateX(-50%) rotate(2deg);
}
.juego-calcetin .weekly strong {
  color: var(--c-crema);
  font-size: 22px;
  line-height: 1.12;
}
.juego-calcetin .weekly span:not(.weekly-badge) { color: #d7ebe6; }
.juego-calcetin :is(.board, .capture, .podium-note) {
  background: var(--c-crema);
  border: 3px solid var(--c-tinta);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--c-rosa);
  color: #2f4a44;
}
.juego-calcetin h2 { color: var(--c-tinta); font-size: 26px; }
.juego-calcetin .caught h2 { color: var(--c-crema); text-shadow: var(--c-trazo), 3px 4px 0 var(--c-rosa-sombra); }
.juego-calcetin .board-list li { border-bottom-color: #0d3b331a; color: var(--c-tinta); }
.juego-calcetin .board-list .pos { color: var(--c-tinta); font-size: 21px; }
.juego-calcetin .board-list li:is(.is-top1, .is-top2, .is-top3) .pos { background: var(--c-rosa); color: var(--c-crema); }
.juego-calcetin .board-list .sc { color: var(--c-rosa); }
.juego-calcetin .board-list li.is-top1 { background: #ff19790f; }
.juego-calcetin .board-list li.is-me { background: #f6b8cb73; }
.juego-calcetin .board-empty { color: #4f6a64; }
.juego-calcetin .board-foot { color: #4f6a64; }
.juego-calcetin :is(.legal-line, .micro) { color: #d7ebe6; }
.juego-calcetin .legal-line a { color: var(--c-crema); }
.juego-calcetin .capture a { color: var(--c-tinta); }
.juego-calcetin .kicker {
  background: var(--c-verde);
  color: var(--c-crema);
  border: 3px solid var(--c-rosa);
  border-radius: 2px;
  font-size: 20px;
  transform: rotate(-2deg);
}
.juego-calcetin .score-big { color: var(--c-crema); text-shadow: var(--c-trazo), 6px 8px 0 var(--c-rosa-sombra); }
/* el puesto, como el 11'11 del banner: rosa con sombra verde */
.juego-calcetin .rank-big { color: var(--c-rosa); text-shadow: 6px 7px 0 var(--c-verde); }
.juego-calcetin .score-sub { color: var(--c-crema); }
.juego-calcetin .score-sub b { color: var(--c-rosa-palido); }
.juego-calcetin .podium-note b { color: var(--c-rosa); }
.juego-calcetin .podium-note.is-podium { background: var(--c-crema); border-color: var(--c-rosa); }
.juego-calcetin .capture-lead { color: var(--c-tinta); font-size: clamp(25px, 7vw, 31px); }
.juego-calcetin #screen-result .capture-lead { font-size: clamp(23px, 6.4vw, 28px); line-height: 1.1; }
.juego-calcetin .capture-deadline { color: #2f4a44; }
/* debajo del botón de registrarse: pegada a él, cerrando la tarjeta */
:is(.juego-calcetin, .juego-rush) #screen-result .capture-deadline { margin: 8px 0 0; }
.juego-calcetin .capture-deadline b { color: var(--c-rosa); }
.juego-calcetin .field span { color: #2f4a44; }
.juego-calcetin .field span em { color: #5d7570; }
.juego-calcetin .field input { background: #fff; color: var(--c-tinta); border: 2px solid #c9d9d5; }
.juego-calcetin .field input:focus { outline-color: var(--c-rosa); border-color: var(--c-rosa); }
.juego-calcetin .check { color: #2f4a44; }
.juego-calcetin .form-error { color: #c40f5e; }
.juego-calcetin .best-note { background: #f6b8cb59; border: 2px solid var(--c-rosa); color: var(--c-tinta); }
.juego-calcetin .best-note b { color: var(--c-rosa); }
.juego-calcetin .aviso-juego { background: var(--c-verde); border: 2px dashed var(--c-rosa-palido); color: var(--c-crema); }
.juego-calcetin .aviso-juego :is(b, a) { color: var(--c-rosa-palido); }
/* El selector de idioma, como un «Jugar» pequeño: rosa pálido con perfil rosa
   y sombra dura, un globo delante y la flecha en rosa (Eduardo, 28-oct: «el
   desplegable hay que mejorarlo»). La lista que se abre la pinta el sistema. */
.juego-calcetin :is(.lang select, .lang-boton) {
  font: 700 13px/1.2 Poppins, sans-serif;
  letter-spacing: .02em;
  color: var(--c-tinta);
  background-color: var(--c-rosa-palido);
  border: 3px solid var(--c-rosa);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--c-rosa);
  padding: 8px 32px 7px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230d3b33' stroke-width='1.6'%3E%3Ccircle cx='8' cy='8' r='6.4'/%3E%3Cellipse cx='8' cy='8' rx='2.7' ry='6.4'/%3E%3Cpath d='M1.6 8h12.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1.5 1.5l4 4 4-4' stroke='%23ff1979' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: left 11px center, right 11px center;
  background-size: 16px 16px, 11px 7px;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s;
}
.juego-calcetin :is(.lang select, .lang-boton):active { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-rosa); }
.juego-calcetin :is(.lang select, .lang-boton):focus-visible { outline: 3px solid var(--c-crema); outline-offset: 3px; }
@media (hover: hover) {
  .juego-calcetin :is(.lang select, .lang-boton):hover { color: var(--c-tinta); border-color: var(--c-rosa); background-color: #f9cbd9; }
}
.juego-calcetin .lang select option { background: #fff; color: var(--c-tinta); }
/* El menú de idiomas (i18n.js, montarMenu): la lista con la piel del juego,
   como una pegatina crema con perfil rosa y sombra dura */
.lang-menu { position: relative; flex: none; }
/* el <select> de siempre, escondido cuando está el menú (.lang lleva display propio) */
.lang[hidden] { display: none; }
.lang-boton { appearance: none; -webkit-appearance: none; cursor: pointer; white-space: nowrap; }
.lang-lista {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  animation: lang-abre .14s ease-out;
}
.lang-lista[hidden] { display: none; }
.lang-lista li {
  padding: 9px 14px 8px;
  border-radius: 9px;
  font: 700 14px/1.2 Poppins, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
}
@keyframes lang-abre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lang-lista { animation: none; } }
.juego-calcetin .lang-lista {
  background: var(--c-crema);
  border: 3px solid var(--c-rosa);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--c-rosa);
}
.juego-calcetin .lang-lista li { color: var(--c-tinta); }
.juego-calcetin .lang-lista li:is(:hover, :focus-visible, :focus) { background: var(--c-rosa-palido); }
.juego-calcetin .lang-lista li[aria-selected="true"] { background: var(--c-verde); color: var(--c-crema); }
.juego-rush .lang-lista {
  background: #191919;
  border: 2px solid #fff;
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--amarillo);
}
.juego-rush .lang-lista li { color: #fff; }
.juego-rush .lang-lista li:is(:hover, :focus-visible, :focus) { background: #2c2c2c; }
.juego-rush .lang-lista li[aria-selected="true"] { background: var(--amarillo); color: #111; }
/* el calcetín de la partida: grande, centrado y con su sombra rosa */
.juego-calcetin .caught-row { justify-content: center; overflow: visible; }
/* Huecos que pidió Eduardo el 28-oct («dale espacio en medio», «reduce esos
   espacios»): más aire entre «Jugar» y el premio y entre el formulario y «Otra
   partida»; el nombre del calcetín, junto a su botón; y poco aire al final. */
:is(.juego-calcetin, .juego-rush) #screen-intro .weekly { margin-top: 44px; }
:is(.juego-calcetin, .juego-rush) #screen-result .result-actions { margin-top: 24px; }
/* «Otra partida» y «Ver las camisetas», con aire entre los dos (Eduardo, 4-nov) */
:is(.juego-calcetin, .juego-rush) #screen-saved #btn-shop { margin-top: 22px; }
:is(.juego-calcetin, .juego-rush) #screen-result .layout { padding-bottom: 24px; }
.juego-calcetin .caught-row { padding-bottom: 2px; margin-bottom: 0; }
.juego-calcetin .caught .btn { margin-top: 12px; }
/* el premio, en pequeño, debajo del titular del formulario: dos camisetas y dos
   calcetines de la tienda y una línea que dice que se eligen (Eduardo, 4-nov) */
.premio-visual { margin: -8px 0 12px; text-align: center; }
.premio-visual canvas { display: block; margin: 0 auto; }
.premio-visual p { margin: 1px 0 0; font: 600 12px/1.25 Poppins, sans-serif; }
.juego-calcetin .premio-visual p { color: var(--c-tinta); }
/* con parejas cogidas: el suyo y los demás, en rejilla centrada y más pequeños;
   el suyo lleva la etiqueta rosa de «el tuyo» */
.juego-calcetin .caught-row.con-cogidos { flex-wrap: wrap; gap: 16px 12px; padding-top: 10px; }
.juego-calcetin .caught-row.con-cogidos .caught-item { width: 96px; }
.juego-calcetin .caught-row.con-cogidos .caught-item img { box-shadow: 4px 4px 0 var(--c-rosa); border-radius: 12px; }
.juego-calcetin .caught-row.con-cogidos .caught-item span { font-size: 15px; margin-top: 8px; }
.juego-calcetin .caught-item { position: relative; }
.juego-calcetin .caught-item .el-tuyo {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%) rotate(-3deg);
  font: 400 14px/1 var(--c-letra);
  font-style: normal;
  letter-spacing: .5px;
  color: var(--c-crema);
  background: var(--c-rosa);
  border-radius: 4px;
  padding: 4px 9px 3px;
  white-space: nowrap;
}
.juego-calcetin .caught-item { width: 150px; text-align: center; color: var(--c-crema); }
.juego-calcetin .caught-item img {
  background: var(--c-crema);
  border: 3px solid var(--c-tinta);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--c-rosa);
}
.juego-calcetin .caught-item span {
  font: 400 19px/1.1 var(--c-letra);
  letter-spacing: .5px;
  color: var(--c-crema);
  margin-top: 12px;
  white-space: normal;
}
.juego-calcetin #screen-bases .wrap-text {
  background: var(--c-crema);
  border: 3px solid var(--c-tinta);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--c-rosa);
  padding: 18px 18px 22px;
}
.juego-calcetin #bases-content { color: #2f4a44; }
.juego-calcetin #bases-content :is(h1, h2, strong, b) { color: var(--c-tinta); }
.juego-calcetin #bases-content a { color: #c40f5e; }
/* jugando */
.juego-calcetin .hud-label { color: var(--c-rosa-palido); font-size: 11px; }
.juego-calcetin .hud-score { color: var(--c-crema); text-shadow: 3px 4px 0 var(--c-tinta); }
.juego-calcetin .hud-best { color: var(--c-crema); }
.juego-calcetin .hud-flag { color: var(--c-rosa-palido); }
.juego-calcetin .hud-flag.is-record { color: var(--c-crema); text-shadow: 2px 3px 0 var(--c-rosa); }
.juego-calcetin .stage {
  background: #05716b;
  border: 3px solid var(--c-crema);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--c-rosa);
}
.juego-calcetin .countdown { background: #034f4bd9; color: var(--c-crema); }
.juego-calcetin .countdown-num { color: var(--c-crema); text-shadow: var(--c-trazo), 6px 8px 0 var(--c-rosa-sombra); }
.juego-calcetin .regla { background: var(--c-crema); border: 3px solid var(--c-tinta); border-radius: 16px; }
.juego-calcetin .regla b { color: var(--c-tinta); font-size: clamp(13px, 3.8vw, 15px); }
.juego-calcetin .regla:last-child { border-color: var(--c-rosa); box-shadow: 0 4px 0 var(--c-rosa); }
.juego-calcetin .regla:last-child b { color: var(--c-rosa); }
.juego-calcetin .mute { background: var(--c-crema); border: 2px solid var(--c-tinta); color: var(--c-tinta); }
.juego-calcetin .mute.off { color: #9fb3ae; }
.juego-calcetin .hint { color: #d7ebe6; }

/* ── Black Friday Rush: negro y amarillo, como un Black Friday ──
   Fondo negro con franjas, titular blanco con sombra rosa y la
   marquesina en amarillo. */
:root:has(body.juego-rush) {
  --bg: #0f0f0f;
  --bg-2: #191919;
  --ink: #ffffff;
  --ink-dim: #b8b8b8;
  --neon: #ffd21f;
  --neon-2: #ffd21f;
  --gold: #ffd21f;
  --line: #ffffff26;
}
body.juego-rush {
  background: repeating-linear-gradient(135deg, #101010 0 26px, #151515 26px 52px);
  background-attachment: fixed;
}
.juego-rush .marquesina { background: var(--amarillo); color: var(--negro); }
.juego-rush .marca { filter: invert(1); }
.juego-rush .logo-title { color: #fff; text-shadow: 4px 4px 0 var(--rosa); }
.juego-rush .tagline { color: #cfcfcf; }
.juego-rush .tagline b { color: var(--amarillo); }
.juego-rush .btn-primary { background: var(--amarillo); color: var(--negro); box-shadow: 0 5px 0 var(--rosa); }
.juego-rush .btn-primary:active { box-shadow: 0 2px 0 var(--rosa); }
.juego-rush :is(.btn-ghost, .btn-share) { background: transparent; color: #fff; border: 2px solid #fff; }
.juego-rush :is(.weekly, .board, .capture, .podium-note) {
  background: #191919;
  border: 2px solid #fff;
  box-shadow: 5px 5px 0 var(--amarillo);
  color: #cfcfcf;
}
.juego-rush .weekly strong { color: #fff; }
.juego-rush .capture { box-shadow: 5px 5px 0 var(--rosa); }
.juego-rush h2 { color: #fff; }
.juego-rush .board-list li { border-bottom-color: #2a2a2a; }
.juego-rush .board-list .pos { color: #fff; }
.juego-rush .board-list .sc { color: var(--amarillo); }
.juego-rush .board-list li.is-top1 { background: #ffd21f1f; }
.juego-rush .board-list li.is-me { background: #f92b8933; box-shadow: inset 3px 0 0 var(--rosa); }
.juego-rush .board-list li.is-me .nm::after { color: var(--rosa); }
.juego-rush .board-foot, .juego-rush .legal-line, .juego-rush .micro { color: #9a9a9a; }
.juego-rush :is(.legal-line, .capture) a { color: #fff; }
.juego-rush .score-big { color: #fff; text-shadow: 5px 5px 0 var(--rosa); }
.juego-rush .rank-big { color: var(--amarillo); text-shadow: 5px 5px 0 var(--rosa); }
.juego-rush .score-sub { color: #cfcfcf; }
.juego-rush .score-sub b, .juego-rush .podium-note b { color: var(--amarillo); }
.juego-rush .podium-note.is-podium { background: #ffd21f1f; border-color: var(--amarillo); }
.juego-rush .capture-lead { color: var(--amarillo); }
.juego-rush .capture-deadline b { color: var(--amarillo); }
.juego-rush .field input { background: #0f0f0f; color: #fff; border: 2px solid #3a3a3a; }
.juego-rush .field input:focus { outline-color: var(--amarillo); border-color: var(--amarillo); }
.juego-rush .best-note { background: #ffd21f1f; border: 2px solid var(--amarillo); color: #fff; }
.juego-rush .best-note b { color: var(--amarillo); }
.juego-rush .aviso-juego { background: #191919; border: 2px dashed var(--amarillo); color: #fff; }
.juego-rush .aviso-juego :is(b, a) { color: var(--amarillo); }
.juego-rush :is(.lang select, .lang-boton) {
  font: 700 13px/1.2 Poppins, sans-serif;
  letter-spacing: .02em;
  color: #fff;
  background-color: #191919;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--amarillo);
  padding: 8px 32px 7px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Ccircle cx='8' cy='8' r='6.4'/%3E%3Cellipse cx='8' cy='8' rx='2.7' ry='6.4'/%3E%3Cpath d='M1.6 8h12.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1.5 1.5l4 4 4-4' stroke='%23ffd21f' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: left 12px center, right 12px center;
  background-size: 16px 16px, 11px 7px;
}
.juego-rush :is(.lang select, .lang-boton):focus-visible { outline: 2px solid var(--amarillo); outline-offset: 3px; }
@media (hover: hover) {
  .juego-rush :is(.lang select, .lang-boton):hover { color: #fff; border-color: var(--amarillo); }
}
.juego-rush .lang select option { background: #191919; color: #fff; }
.juego-rush .caught-item img { border: 2px solid #fff; }
/* jugando */
.juego-rush .hud-label { color: #9a9a9a; }
.juego-rush .hud-score { color: #fff; }
.juego-rush .hud-best { color: #cfcfcf; }
.juego-rush .hud-flag { color: var(--amarillo); }
.juego-rush .hud-flag.is-record { color: var(--amarillo); text-shadow: 2px 2px 0 var(--rosa); }
.juego-rush .stage { border: 2px solid #fff; box-shadow: 5px 5px 0 var(--amarillo); }
.juego-rush .countdown { background: #0f0f0fd9; }
.juego-rush .countdown-num { color: var(--amarillo); text-shadow: 6px 6px 0 var(--rosa); }
.juego-rush .regla { background: #111; border: 2px solid #fff; }
.juego-rush .regla b { color: #fff; }
.juego-rush .regla:last-child { border-color: var(--amarillo); }
.juego-rush .regla:last-child b { color: var(--amarillo); }
.juego-rush .mute { background: #111; border: 2px solid #fff; }
