/* Estilo «Paint» del canal: colores planos, raya negra fina un poco torcida,
   letra a mano, rótulos verde fosforito con contorno morado. Nada de degradados ni sombras. */
@font-face { font-family: "Rotulo"; src: url("fuentes/LilitaOne.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fuentes/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --papel: #0b0b10;
  --claro: #f6f3ea;
  --c1: #ffe14d; --c2: #7df9ff; --c3: #ff7ad9; --c4: #9dff6a; --c5: #ffa94d; --c6: #b79cff;
  --cielo: #a8fff3;
  --hierba: #39d353;
  --pizza: #ffc928;
  --corteza: #e8963a;
  --tomate: #ff5252;
  --morado: #6a0dad;
  --verde: #39ff14;
  --tinta: #111;
  --suave: #5b5b66;
  --blanco: #fff;
  --raya: 2px;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background-color: var(--papel); color: var(--claro);
  font: 15px/1.35 "Nunito", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }

/* raya «a mano»: un borde negro en una capa aparte, torcido con el filtro #mano */
.dibujado, .noticia, .video .mini, .short, .ultimo, .chip, .boton, .boton-sec, .bocadillo, .pantalla, .cerrar {
  position: relative; isolation: isolate;
}
.dibujado::after, .noticia::after, .video .mini::after, .short::after, .ultimo::after, .chip::after,
.boton::after, .boton-sec::after, .bocadillo::after, .pantalla::after, .cerrar::after {
  content: ""; position: absolute; inset: 0; border: var(--raya) solid var(--tinta); border-radius: inherit;
  filter: url(#mano); pointer-events: none; z-index: 2;
}

/* rótulo verde con contorno morado (el de los vídeos) */
.rotulo { font-family: "Rotulo", "Nunito", sans-serif; font-weight: 400; color: var(--verde); letter-spacing: .6px;
  -webkit-text-stroke: 4px var(--morado); paint-order: stroke fill; text-transform: uppercase; }

/* ---------- cabecera: cielo menta y loma verde */
.cabecera { position: sticky; top: 0; z-index: 10; }
.cielo { display: flex; align-items: center; gap: 8px; background: var(--cielo);
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 0; }
.lechero-cab { width: 50px; height: 62px; object-fit: contain; object-position: bottom; margin-bottom: -10px; position: relative; z-index: 1; }
.marca { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: 4px; }
.marca strong { font-size: 19px; letter-spacing: .2px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 2px 0; }
.marca span { font-size: 12px; font-weight: 600; color: #24525a; }
.loma { display: block; width: 100%; height: 18px; margin-top: -1px; background: var(--cielo); }

.boton { background: var(--tomate); color: var(--blanco); padding: 7px 14px; border-radius: 16px 12px 18px 11px; border: 0;
  white-space: nowrap; font-size: 15px; font-weight: 800; display: inline-block; }
.boton-sec { background: var(--blanco); padding: 7px 14px; border-radius: 12px 17px 11px 16px; border: 0; white-space: nowrap; font-size: 15px; font-weight: 800; }
.boton:active, .boton-sec:active, .chip:active { transform: translateY(1px) rotate(-1deg); }

main { max-width: 900px; margin: 0 auto; padding: 14px 14px calc(96px + var(--seguro-abajo)); }
.vista { display: none; }
.vista.activa { display: block; animation: entra .25s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }

.titulo-sec { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; font-weight: 400; }
.titulo-sec .rotulo { font-size: 25px; }
.titulo-sec .mas { margin-left: auto; background: none; border: 0; color: var(--morado); font-size: 14px; font-weight: 800; text-decoration: underline wavy 1px; text-underline-offset: 4px; }

/* Lechero presentando una sección con bocadillo */
.presenta { display: flex; align-items: flex-end; gap: 4px; margin: 30px 0 12px; }
.presenta img { width: 74px; flex: none; margin-bottom: -6px; }
.bocadillo { background: var(--blanco); border-radius: 22px 18px 24px 14px; padding: 10px 14px 9px; flex: 1; margin-bottom: 36px; }
.bocadillo::before { content: ""; position: absolute; left: -11px; bottom: 12px; width: 16px; height: 16px; background: var(--blanco);
  border-left: var(--raya) solid var(--tinta); border-bottom: var(--raya) solid var(--tinta); transform: skewY(-35deg) rotate(10deg); z-index: 3; }
.bocadillo h2 { margin: 0; font-size: 25px; line-height: 1.05; font-weight: 400; }
.bocadillo p { margin: 3px 0 0; font-size: 13.5px; font-weight: 600; color: var(--suave); }

.cabeza-vista { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.cabeza-vista img { height: 58px; width: auto; transform: rotate(-6deg); }
.cabeza-vista h2 { margin: 0; font-size: 28px; font-weight: 400; }

/* ---------- último vídeo */
.ultimo { border-radius: 18px 14px 20px 12px; background: var(--pizza); cursor: pointer; transform: rotate(-.4deg); }
.ultimo .foto { position: relative; border-radius: 16px 12px 0 0; overflow: hidden; border-bottom: var(--raya) solid var(--tinta); }
.ultimo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ultimo .capa { padding: 10px 14px 14px; }
.etiqueta { display: inline-block; background: var(--tomate); color: var(--blanco); font-family: "Rotulo", sans-serif; font-size: 15px; letter-spacing: .5px; padding: 2px 10px 1px;
  border: var(--raya) solid var(--tinta); border-radius: 10px 6px 11px 7px; transform: rotate(-3deg); margin-bottom: 6px; }
.ultimo h1 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 900; }
.ultimo .meta { color: #5a4300; font-size: 13px; font-weight: 700; margin-top: 4px; }
.play { position: absolute; top: 50%; left: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
  background: var(--tomate); border: var(--raya) solid var(--tinta); display: grid; place-items: center; }
.play::after { content: ""; border-left: 22px solid var(--blanco); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }

/* ---------- noticias */
.lista { display: flex; flex-direction: column; gap: 12px; }
.noticia { display: flex; gap: 12px; background: var(--blanco); border-radius: 14px 18px 12px 20px; padding: 10px; }
.noticia:nth-child(3n+1) { transform: rotate(-.35deg); }
.noticia:nth-child(3n+2) { transform: rotate(.3deg); }
.noticia:active { background: #fff6cf; }
.noticia > img { width: 104px; height: 80px; flex: none; object-fit: cover; border-radius: 9px 12px 8px 11px; border: 1.5px solid var(--tinta); background: #eee; }
.noticia .cuerpo { min-width: 0; flex: 1; }
.noticia h3 { margin: 0 0 5px; font-size: 15.5px; line-height: 1.25; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.noticia .meta { font-size: 12.5px; font-weight: 700; color: var(--suave); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.medio { color: var(--morado); }
.insignia { font-weight: 800; background: var(--pizza); color: var(--tinta); border: 1.5px solid var(--tinta); border-radius: 9px 6px 10px 5px; padding: 0 7px; transform: rotate(-2deg); }
.noticia.destacada { background: #fff3b0; }
.noticia.destacada::before { content: "★"; position: absolute; top: -12px; right: -6px; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--verde); border: var(--raya) solid var(--tinta); border-radius: 50%; font-size: 17px; transform: rotate(12deg); z-index: 3; }
.comentario { margin: 6px 0 0; font-size: 14px; font-weight: 700; font-style: italic; color: var(--morado); }
.ver-video { margin-top: 7px; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 800; color: var(--blanco);
  background: var(--tomate); padding: 2px 11px; border-radius: 12px 8px 13px 9px; border: 1.5px solid var(--tinta); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; background: var(--blanco); border: 0; padding: 5px 14px; border-radius: 14px 10px 15px 9px; font-size: 14px; font-weight: 800; }
.chip.activo { background: var(--pizza); }

/* ---------- vídeos */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 14px; }
.video { cursor: pointer; }
.video .mini { border-radius: 14px 10px 15px 11px; background: #eee; }
.video .mini img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: inherit; }
.video:nth-child(odd) .mini { transform: rotate(-.6deg); }
.video:nth-child(even) .mini { transform: rotate(.5deg); }
.video h3 { font-size: 15px; margin: 9px 0 2px; line-height: 1.25; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video .meta { font-size: 12.5px; font-weight: 600; color: var(--suave); }

.carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; }
.rejilla-shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.short { border-radius: 16px 12px 17px 13px; cursor: pointer; scroll-snap-align: start; background: var(--pizza); overflow: hidden; }
.short img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.short .capa { position: absolute; inset: auto 0 0 0; padding: 7px 8px 8px; font-size: 13px; font-weight: 800; line-height: 1.2;
  background: var(--pizza); border-top: var(--raya) solid var(--tinta); }
.short .vistas { color: #5a4300; font-size: 11.5px; font-weight: 600; margin-top: 2px; }

/* ---------- pie */
.pie { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 40px 0 10px; color: var(--suave); font-size: 15px; font-weight: 700; }
.pie img { height: 110px; transform: rotate(4deg); }
.pie a { color: var(--morado); text-decoration: underline wavy 1px; text-underline-offset: 4px; }

/* ---------- barra de abajo: corteza de pizza */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  background: var(--pizza); border-top: var(--raya) solid var(--tinta); padding: 4px 0 calc(4px + var(--seguro-abajo)); }
.barra button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 0;
  font-size: 12px; font-weight: 800; color: var(--tinta); padding: 3px 12px; border-radius: 14px; }
.barra svg { width: 34px; height: 34px; transition: transform .2s; }
.barra button.activo { background: var(--blanco); outline: 1.5px solid var(--tinta); }
.barra button.activo svg { transform: rotate(-8deg) scale(1.1); }

/* ---------- reproductor */
.reproductor { position: fixed; inset: 0; z-index: 50; background: rgba(168,255,243,.96); display: grid; place-items: center; padding: 14px; }
.marco { position: relative; width: min(900px, 100%); }
.pantalla { border-radius: 14px 10px 15px 11px; overflow: hidden; background: #000; }
.pantalla iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.marco.vertical { width: min(380px, 100%); }
.marco.vertical .pantalla iframe { aspect-ratio: 9/16; max-height: 74vh; }
.rep-titulo { margin: 12px 0 10px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.rep-acciones { display: flex; gap: 8px; }
.cerrar { position: absolute; top: -50px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--blanco); font-size: 18px; }

/* ---------- cargando: el Lechero botando */
.cargando { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 0; color: var(--suave); font-size: 15px; font-weight: 700; }
.cargando img { width: 84px; animation: bota .7s ease-in-out infinite alternate; }
@keyframes bota { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-12px) rotate(4deg); } }
.vacio { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--suave); text-align: center; padding: 20px; font-size: 15px; font-weight: 700; }
.vacio img { height: 120px; }

@media (min-width: 700px) {
  .ultimo h1 { font-size: 26px; }
  .noticia > img { width: 150px; height: 104px; }
  .presenta img { width: 96px; }
}
@media (max-width: 380px) {
  .marca strong { font-size: 16.5px; }
  .boton { font-size: 13px; padding: 6px 9px; }
  .lechero-cab { width: 42px; }
}


/* =====================  FONDO NEGRO, COLOR CON MESURA  ===================== */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='none' stroke-width='2.5' stroke-linecap='round' opacity='.22'%3E%3Cpath d='M30 40l5 10 11 2-8 8 2 11-10-6-10 6 2-11-8-8 11-2z' fill='%23ffe14d'/%3E%3Cpath d='M150 70q9-12 18 0t18 0' stroke='%23ff7ad9'/%3E%3Ccircle cx='200' cy='190' r='5' fill='%237df9ff'/%3E%3Cpath d='M70 200q9-12 18 0t18 0' stroke='%239dff6a'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}
.noticia, .short, .chip { color: var(--tinta); }
.noticia .meta { color: #55555f; }
/* cada periódico tiene su color, solo en la etiqueta */
/* el medio con su logo en un cuadrito */
.noticia .medio { display: inline-flex; align-items: center; gap: 4px; color: var(--tinta); background: var(--blanco);
  padding: 1px 6px 1px 1px; border-radius: 6px 4px 7px 4px; border: 1px solid var(--tinta); font-size: 11.5px; line-height: 1.2; }
.logo-medio { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--tinta); object-fit: cover; background: #fff; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; }
.chip .logo-medio { width: 16px; height: 16px; margin-left: -4px; }
.noticia.destacada { background: var(--c1); }
.comentario { color: var(--morado); }

.chip.activo { background: var(--pizza); }

.video h3 { color: var(--claro); }
.video .meta { color: #a9a4b6; }
.short .vistas { color: #5a4300; }

.titulo-sec .mas, .pie a { color: var(--c2); }
.pie { color: var(--claro); }
.cargando, .vacio { color: #cfc9dc; }
.bocadillo { color: var(--tinta); }
.ultimo { color: var(--tinta); }
.reproductor { background: rgba(11,11,16,.97); }
.rep-titulo { color: var(--claro); }

/* ---------- banderita del país, arriba a la izquierda de la noticia */
.noticia .bandera { position: absolute; top: -7px; left: -7px; width: 30px; height: 20px; object-fit: cover; z-index: 3;
  border: 1.5px solid var(--tinta); border-radius: 3px; transform: rotate(-7deg); background: #fff; }

/* ---------- mapa de noticias */
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.leyenda span, .pais-chip { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i, .pais-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--tinta); display: inline-block; flex: none; }
i.rojo { background: #ff3b3b; } i.amarillo { background: #ffd23f; } i.verde { background: #39d353; }
.mapa-caja { position: relative; border-radius: 16px 12px 18px 13px; overflow: hidden; background: #2a6fdb; }
#mapa { display: block; width: 100%; aspect-ratio: 1000 / 487; touch-action: none; cursor: grab; --grosor: 1; }
#mapa:active { cursor: grabbing; }
#mapa .mar { fill: #2a6fdb; }
#mapa path { stroke: var(--tinta); stroke-width: calc(.7px * var(--grosor)); stroke-linejoin: round; cursor: pointer; transition: filter .15s; }
#mapa path.verde { fill: #39d353; }
#mapa path.amarillo { fill: #ffd23f; }
#mapa path.rojo { fill: #ff3b3b; }
#mapa path:hover { filter: brightness(1.18); }
.zoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.zoom button { width: 36px; height: 36px; padding: 0; font-size: 18px; line-height: 1; }
.lista-paises { display: flex; flex-wrap: wrap; gap: 8px; }
.pais-chip { background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--tinta); border-radius: 12px 8px 13px 9px;
  padding: 5px 10px; font-size: 14px; font-weight: 800; }
.pais-chip img { width: 22px; height: 15px; object-fit: cover; border: 1px solid var(--tinta); border-radius: 2px; }
.pais-chip b { background: var(--pizza); border-radius: 8px; padding: 0 6px; font-size: 12px; }

/* hoja con el top 10 del país */
.hoja { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; }
.hoja-caja { position: relative; width: min(720px, 100%); max-height: 86vh; overflow: auto; background: var(--papel);
  border-top: 3px solid var(--pizza); border-radius: 20px 20px 0 0; padding: 16px 14px calc(20px + var(--seguro-abajo)); animation: sube .25s ease; }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.hoja-cab { display: flex; align-items: center; gap: 10px; padding-right: 44px; }
.hoja-cab h2 { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.05; }
.hoja-bandera { width: 46px; height: 31px; object-fit: cover; border: 2px solid var(--tinta); border-radius: 4px; transform: rotate(-5deg); flex: none; }
.hoja-sub { margin: 8px 0 14px; color: #cfc9dc; font-size: 13.5px; font-weight: 700; }
.cerrar-hoja { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; padding: 0; }
.zoom button { color: var(--tinta); font-weight: 900; }

/* ---------- barra con 5 botones */
.barra button { padding: 3px 6px; min-width: 62px; }
.barra svg { width: 30px; height: 30px; }

/* ---------- juegos: lista */
.rejilla-juegos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tarjeta-juego { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: var(--blanco);
  color: var(--tinta); border-radius: 14px 10px 15px 11px; overflow: visible; outline: 2px solid var(--tinta); }
.mini-juego { display: block; border-radius: 14px 10px 0 0; overflow: hidden; border-bottom: 2px solid var(--tinta); }
.mini-juego img { width: 100%; aspect-ratio: 1024 / 740; object-fit: cover; }
.juego-info { display: flex; flex-direction: column; padding: 8px 12px 10px; }
.juego-info b { font-size: 16px; font-weight: 900; }
.juego-info small { font-size: 12.5px; font-weight: 700; color: #55555f; }
.nuevo { position: absolute; top: -9px; right: -6px; background: var(--tomate); color: #fff; font-family: "Rotulo", sans-serif;
  font-size: 13px; padding: 2px 9px 1px; border: 1.5px solid var(--tinta); border-radius: 9px 6px 10px 7px; transform: rotate(6deg); }

/* ---------- juegos: partida */
.juego { position: fixed; inset: 0; z-index: 45; background: var(--papel); display: flex; flex-direction: column; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(10px + var(--seguro-abajo)); overflow: auto; }
.juego-cab { display: flex; align-items: center; gap: 10px; }
.juego-cab .salir-juego { width: 40px; height: 40px; padding: 0; font-size: 20px; color: var(--tinta); }
.juego-titulo { flex: 1; margin: 0; font-size: 22px; font-weight: 400; line-height: 1; }
.juego-hud { display: flex; align-items: center; gap: 10px; }
.puntos { display: flex; gap: 4px; }
.puntos i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--claro); display: block; }
.puntos i.on { background: var(--verde); border-color: var(--verde); }
.crono { font-family: "Rotulo", sans-serif; font-size: 20px; min-width: 3.2ch; text-align: right; color: var(--pizza); }
.tableros { display: flex; flex-direction: column; gap: 8px; margin: 0 auto; width: 100%; max-width: 1100px; }
.tableros { max-width: min(1100px, calc((100vh - 150px) / 2 * 1.38)); }
.tablero { position: relative; border: 2px solid var(--pizza); border-radius: 10px; overflow: hidden; touch-action: manipulation; cursor: crosshair; }
.tablero img { width: 100%; display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.marcas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.marcas .borde { fill: none; stroke: #111; stroke-width: 7px; vector-effect: non-scaling-stroke; }
.marcas .aro { fill: none; stroke: #ff3b3b; stroke-width: 3.5px; vector-effect: non-scaling-stroke; }
.marcas .acierto { animation: pop .3s ease-out; transform-box: fill-box; transform-origin: center; }
.marcas .aro-pista .aro { stroke: var(--pizza); stroke-dasharray: 18 12; }
.marcas .equis path { stroke: #ff3b3b; stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-linecap: round; animation: vibra .3s; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes vibra { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.juego-pie { display: flex; align-items: center; justify-content: flex-end; gap: 8px; max-width: 1100px; width: 100%; margin: 0 auto; }
.juego-pie button { color: var(--tinta); }
.fallos { margin-right: auto; color: #ff8b8b; font-weight: 800; font-size: 14px; }
.victoria { position: fixed; inset: 0; z-index: 46; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; }
.victoria-caja { background: var(--blanco); color: var(--tinta); border: 3px solid var(--tinta); border-radius: 22px 16px 24px 14px;
  padding: 18px 20px; text-align: center; max-width: 340px; animation: sube .3s ease; }
.victoria-caja img { width: 90px; margin: -60px auto 4px; }
.victoria-caja h2 { margin: 0; font-size: 30px; font-weight: 400; }
.victoria-txt { font-weight: 700; margin: 8px 0 14px; }
.victoria .rep-acciones { justify-content: center; }
.victoria .boton-sec { color: var(--tinta); }

/* ---------- vídeos: los 3 canales */
.canales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.canal { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 7px; background: #1b1b24;
  color: var(--claro); border: 2px solid #33333f; border-radius: 14px 10px 15px 11px; font-size: 12.5px; font-weight: 800; line-height: 1.15; text-align: center; }
.canal img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--tinta); background: #fff; }
.canal.activo { background: var(--pizza); color: var(--tinta); border-color: var(--tinta); }
.canal.activo img { border-color: var(--tinta); }
.chip small { font-size: 11px; opacity: .65; }
.ir-canal { text-align: center; margin: 18px 0 0; font-weight: 800; }
.ir-canal a { color: var(--c2); text-decoration: underline wavy 1px; text-underline-offset: 4px; }

/* ---------- noticias: secciones */
.secciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; margin-bottom: 12px; }
.seccion { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #1b1b24; color: var(--claro);
  border: 2px solid #33333f; border-radius: 12px 9px 13px 8px; font-size: 13.5px; font-weight: 800; text-align: left; line-height: 1.15; }
.seccion.activo { background: var(--pizza); color: var(--tinta); border-color: var(--tinta); }
@media (max-width: 420px) { .secciones { grid-template-columns: 1fr 1fr; } }
.mini-bandera { width: 18px; height: 12px; object-fit: cover; border: 1px solid var(--tinta); border-radius: 2px; }
/* pista: el resto de la imagen se oscurece y el cuarto bueno queda enmarcado */
.marcas .cuarto-pista { animation: pista 2.2s ease forwards; }
.marcas .cuarto-pista .sombra { fill: rgba(0,0,0,.55); }
.marcas .cuarto-pista .marco-pista { fill: none; stroke: var(--pizza); stroke-width: 4px; stroke-dasharray: 14 8; vector-effect: non-scaling-stroke; }
@keyframes pista { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- cuenta */
.b-cuenta { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--tinta); background: var(--blanco);
  padding: 0; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--tinta); }
.b-cuenta:not(.con-avatar) { padding: 5px; }
.b-cuenta svg, .b-cuenta img, .avatar-op svg, .avatar-op img, .perfil-avatar svg, .perfil-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cuenta-caja label { display: block; font-size: 13px; font-weight: 800; color: #cfc9dc; margin-bottom: 10px; }
.cuenta-caja input:not([type=file]) { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 700;
  color: var(--tinta); background: var(--blanco); border: 2px solid var(--tinta); border-radius: 11px 8px 12px 9px; }
.pestanas-cuenta { display: flex; gap: 6px; margin: 4px 44px 16px 0; }
.pestanas-cuenta button { flex: 1; padding: 9px; border-radius: 12px 9px 13px 8px; border: 2px solid #33333f; background: #1b1b24; color: var(--claro); font-weight: 900; }
.pestanas-cuenta button.activo { background: var(--pizza); color: var(--tinta); border-color: var(--tinta); }
.etiqueta-campo { font-size: 13px; font-weight: 800; color: #cfc9dc; margin: 4px 0 6px; }
.avatares { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-bottom: 14px; }
.avatar-op { aspect-ratio: 1; padding: 0; border-radius: 50%; overflow: hidden; border: 3px solid transparent; background: none; }
.avatar-op.activo { border-color: var(--verde); transform: scale(1.06); }
.error-cuenta { color: #ff8b8b; font-weight: 800; margin: 0 0 10px; }
.enviar-cuenta { width: 100%; font-size: 17px; padding: 11px; }
.enviar-cuenta:disabled { opacity: .6; }
.perfil-cab { display: flex; align-items: center; gap: 12px; margin: 0 44px 16px 0; }
.perfil-avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; border: 3px solid var(--pizza); }
.perfil-nick { margin: 0; font-size: 26px; font-weight: 400; line-height: 1; word-break: break-word; }
.perfil-usuario { margin: 4px 0 0; color: #cfc9dc; font-size: 13px; font-weight: 700; }
.subir-foto { display: inline-block !important; color: var(--tinta) !important; margin-bottom: 14px !important; cursor: pointer; }
.con-sesion .rep-acciones button { color: var(--tinta); }
.con-sesion .rep-acciones .boton { color: #fff; }

/* ---------- inicio: lo último de los 3 canales */
.ultimos { display: grid; gap: 14px; }
@media (min-width: 760px) { .ultimos { grid-template-columns: repeat(3, 1fr); } .ultimos .ultimo h1 { font-size: 16px; } }
.ultimos .ultimo { transform: none; }
.ultimos .ultimo:nth-child(2) { background: var(--c2); }
.ultimos .ultimo:nth-child(3) { background: var(--c4); }
.ultimos .ultimo h1 { font-size: 17px; }
.ultimos .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.canal-de { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 900; margin-bottom: 5px;
  background: var(--blanco); border: 1.5px solid var(--tinta); border-radius: 10px 7px 11px 8px; padding: 2px 9px 2px 2px; }
.canal-de img { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--tinta); }

/* ---------- inicio: resumen del día en 15 puntos */
.resumen { list-style: none; counter-reset: punto; margin: 0; padding: 0; background: var(--blanco); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 16px 12px 18px 13px; overflow: hidden; }
.resumen li { counter-increment: punto; border-bottom: 1.5px dashed #c9c4b5; }
.resumen li:last-child { border-bottom: 0; }
.resumen a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.resumen a::before { content: counter(punto); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pizza); border: 1.5px solid var(--tinta); font-family: "Rotulo", sans-serif; font-size: 13px; }
.resumen a:active { background: #fff6cf; }
.bandera-punto { width: 30px; height: 20px; flex: none; object-fit: cover; border: 1.5px solid var(--tinta); border-radius: 3px; }
.resumen .frase { flex: 1; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.resumen .cuantos { flex: none; font-size: 11px; font-weight: 900; background: #ffe3e3; color: #b00; border-radius: 8px; padding: 1px 6px; }
.resumen .cuantos::after { content: " medios"; }

/* ---------- ficha de noticia dentro de la app */
#hoja-noticia { z-index: 42; }
.ficha { padding-top: 12px; }
.volver-ficha { color: var(--tinta); margin-bottom: 12px; font-size: 15px; }
.ficha-lugar { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; margin-bottom: 10px; }
.ficha-bandera { width: 42px; height: 28px; object-fit: cover; border: 2px solid var(--tinta); border-radius: 4px; transform: rotate(-4deg); }
.ficha-foto { width: 100%; max-height: 46vh; object-fit: cover; border-radius: 14px 10px 15px 11px; border: 2px solid var(--pizza); margin-bottom: 12px; }
.ficha-titulo { margin: 0 0 8px; font-size: 22px; font-weight: 900; line-height: 1.2; }
.ficha .meta { display: flex; gap: 8px; align-items: center; color: #cfc9dc; font-size: 13px; font-weight: 700; }
.ficha .medio { display: inline-flex; align-items: center; gap: 4px; color: var(--tinta); background: var(--blanco); padding: 1px 6px 1px 1px;
  border-radius: 6px 4px 7px 4px; border: 1px solid var(--tinta); font-size: 11.5px; font-weight: 800; }
.ficha .logo-medio { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--tinta); }
.ficha-resumen { font-size: 16px; line-height: 1.5; margin: 14px 0; }
.ficha-otros { font-size: 13px; font-weight: 800; color: #cfc9dc; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ficha-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ficha-acciones .boton { font-size: 15px; }
.ficha-acciones .boton-sec { color: var(--tinta); }
@media (max-width: 420px) {
  .marca strong { font-size: 15.5px; letter-spacing: 0; }
  #suscribir { font-size: 12.5px; padding: 6px 8px; }
  .b-cuenta { width: 34px; height: 34px; }
  .lechero-cab { width: 38px; }
  .cielo { gap: 6px; padding-left: 8px; padding-right: 8px; }
}
.cerrar-hoja { color: var(--tinta); font-weight: 900; }

/* ---------- ranking de las 5 diferencias */
.tabla-ranking { list-style: none; margin: 0; padding: 0; background: var(--blanco); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 16px 12px 18px 13px; overflow: hidden; }
.tabla-ranking li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1.5px dashed #c9c4b5; }
.tabla-ranking li:last-child { border-bottom: 0; }
.tabla-ranking li.soy-yo { background: #fff3b0; }
.tabla-ranking .puesto { width: 28px; text-align: center; font-family: "Rotulo", sans-serif; font-size: 18px; flex: none; }
.r-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid var(--tinta); flex: none; }
.r-avatar svg, .r-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.r-nick { flex: 1; min-width: 0; font-weight: 900; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-nick small { display: block; font-weight: 700; font-size: 11.5px; color: #66606f; }
.r-tiempo { font-family: "Rotulo", sans-serif; font-size: 17px; font-variant-numeric: tabular-nums; }
.r-vacio { justify-content: center; font-weight: 800; color: #66606f; padding: 16px !important; }
#filtros-ranking .chip { font-size: 13px; }
.crono { min-width: 7ch; font-variant-numeric: tabular-nums; }
.victoria-ranking { font-weight: 800; margin: -6px 0 14px; }
.victoria-ranking .boton-sec { color: var(--tinta); font-size: 14px; }
.aviso-ranking { margin: 0 auto; max-width: 1100px; width: 100%; font-size: 13px; font-weight: 700; color: #cfc9dc;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aviso-ranking .boton-sec { color: var(--tinta); padding: 4px 10px; font-size: 13px; }
.tabla-ranking .r-hueco { justify-content: center; padding: 2px !important; font-weight: 900; letter-spacing: 4px; color: #99939f; background: #f3f0e6; }
.r-nick em { font-style: normal; color: var(--morado); font-size: 12px; }
.total-ranking { text-align: center; margin-top: 8px; }

/* ---------- juegos: secciones */
.secciones-juegos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 6px; }
.secciones-juegos button { padding: 10px 6px; border-radius: 13px 9px 14px 10px; border: 2px solid #33333f; background: #1b1b24;
  color: var(--claro); font-weight: 900; font-size: 14px; }
.secciones-juegos button.activo { background: var(--pizza); color: var(--tinta); border-color: var(--tinta); }

/* ---------- bolsa */
.sube { color: #1f9d3a !important; } .baja { color: #e0332b !important; }
#juego-bolsa .sube, .bolsa-resumen .sube { color: #4ee06a !important; } #juego-bolsa .baja, .bolsa-resumen .baja { color: #ff6a5f !important; }
.accion .sube, .accion .baja, .tabla-ranking .sube, .tabla-ranking .baja, .operar-caja .sube, .operar-caja .baja { filter: brightness(.8); }
.bolsa-resumen { background: var(--pizza); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 18px 13px 19px 14px; padding: 14px; margin-top: 12px; }
.bolsa-resumen.sin { background: var(--blanco); text-align: center; }
.bolsa-resumen .sube { color: #0d6b22 !important; } .bolsa-resumen .baja { color: #b3150d !important; }
.br-total small, .br-datos small { display: block; font-size: 12px; font-weight: 800; opacity: .7; }
.br-total b { font-family: "Rotulo", sans-serif; font-size: 40px; font-weight: 400; line-height: 1.05; display: block; }
.br-total span { font-weight: 900; font-size: 14px; }
.br-datos { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.br-datos b { font-size: 17px; font-weight: 900; }
.br-fecha { margin: 10px 0 0; font-size: 12px; font-weight: 700; opacity: .75; }
.buscador { width: 100%; padding: 11px 14px; font: inherit; font-size: 16px; font-weight: 700; color: var(--tinta); background: var(--blanco);
  border: 2px solid var(--tinta); border-radius: 13px 9px 14px 10px; margin-bottom: 10px; }
.bolsa-lista { display: flex; flex-direction: column; gap: 7px; }
.accion { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 11px; background: var(--blanco);
  color: var(--tinta); border: 2px solid var(--tinta); border-radius: 12px 9px 13px 10px; font: inherit; }
button.accion:active { background: #fff6cf; }
.ticker { flex: none; min-width: 54px; text-align: center; font-family: "Rotulo", sans-serif; font-size: 14px; letter-spacing: .5px;
  background: var(--tinta); color: var(--pizza); border-radius: 7px; padding: 4px 6px; }
.ticker.efe { background: #1f9d3a; color: #fff; }
.ticker.grande { font-size: 20px; padding: 8px 10px; }
.a-nombre { flex: 1; min-width: 0; font-weight: 900; font-size: 14.5px; line-height: 1.2; }
.a-nombre small, .a-valor small { display: block; font-weight: 700; font-size: 12px; color: #66606f; }
.a-valor { flex: none; text-align: right; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; }
.movimientos { list-style: none; margin: 0; padding: 0; background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta);
  border-radius: 14px 10px 15px 11px; overflow: hidden; }
.movimientos li { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-bottom: 1.5px dashed #c9c4b5; font-size: 13.5px; }
.movimientos li:last-child { border-bottom: 0; }
.m-tipo { flex: none; font-weight: 900; font-size: 11.5px; padding: 2px 7px; border-radius: 7px; border: 1.5px solid var(--tinta); }
.movimientos .compra .m-tipo { background: #c9f7d2; } .movimientos .venta .m-tipo { background: #ffd2cc; }
.m-que { flex: 1; min-width: 0; font-weight: 700; } .m-que small { display: block; color: #66606f; font-size: 11.5px; }
.m-importe { font-weight: 900; font-variant-numeric: tabular-nums; }
.tabla-ranking li.con-cartera { cursor: pointer; }
.tabla-ranking li.con-cartera:active { background: #fff6cf; }
.operar-cab { display: flex; gap: 12px; align-items: flex-start; margin: 0 44px 14px 0; }
.operar-cab h2 { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.15; }
.operar-cab p { margin: 4px 0 0; font-weight: 800; font-size: 14px; color: #cfc9dc; }
.operar-cab .tienes { color: var(--pizza); }
.operar-caja label { display: block; font-size: 13px; font-weight: 800; color: #cfc9dc; margin-bottom: 8px; }
.operar-caja input { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-size: 22px; font-weight: 900; color: var(--tinta);
  background: var(--blanco); border: 2px solid var(--tinta); border-radius: 11px 8px 12px 9px; }
.rapidos { display: flex; gap: 7px; margin-bottom: 8px; }
.rapidos .chip { color: var(--tinta); }
.operar-calculo { font-weight: 800; color: #cfc9dc; font-size: 13.5px; min-height: 1.3em; }
.confirmar-operacion { width: 100%; font-size: 18px; padding: 12px; background: #1f9d3a; }
.confirmar-operacion.vender { background: var(--tomate); }
.pestanas-cuenta button:disabled { opacity: .35; }
#hoja-operar, #hoja-jugador { z-index: 43; }
h3.sub { font-size: 15px; font-weight: 900; margin: 16px 0 8px; color: var(--pizza); }
.aviso-flotante { position: fixed; left: 50%; bottom: calc(86px + var(--seguro-abajo)); transform: translateX(-50%); z-index: 80;
  background: var(--verde); color: var(--tinta); font-weight: 900; padding: 10px 18px; border: 2px solid var(--tinta);
  border-radius: 14px 10px 15px 11px; animation: sube .25s ease; white-space: nowrap; }

/* ---------- las 5 puertas */
.puertas-yo { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; background: var(--blanco); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 14px 10px 15px 11px; padding: 10px 14px; margin: 10px 0 14px; font-weight: 700; }
.puertas-yo small { display: block; font-size: 11.5px; opacity: .7; } .puertas-yo b { font-size: 19px; font-weight: 900; }
.puertas-yo p { margin: 0; flex: 1; }
.puertas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; perspective: 900px; }
@media (max-width: 520px) { .puertas { grid-template-columns: repeat(6, 1fr); } .puerta { grid-column: span 2; } .puerta:nth-child(4) { grid-column: 2 / span 2; } }
.puerta { position: relative; aspect-ratio: 3 / 4.4; padding: 0; border: 0; background: #2a1d14; border-radius: 12px 12px 4px 4px;
  overflow: visible; cursor: pointer; transform-style: preserve-3d; }
.puerta:disabled { cursor: default; }
.puerta .premio { position: absolute; inset: 8%; display: grid; place-items: center; }
.img-premio, .premio .emoji { width: 100%; height: 100%; object-fit: contain; font-size: 46px; display: grid; place-items: center; }
.hoja-puerta { position: absolute; inset: 0; z-index: 2; transform-origin: left center; transition: transform .7s cubic-bezier(.3,1.4,.5,1); }
.img-puerta, .hoja-puerta .emoji { width: 100%; height: 100%; object-fit: contain; font-size: 56px; display: grid; place-items: center; }
.numero { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-family: "Rotulo", sans-serif; font-size: 20px;
  color: var(--pizza); -webkit-text-stroke: 3px var(--tinta); paint-order: stroke fill; }
.puerta:not(:disabled):hover .hoja-puerta { transform: rotateY(-14deg); }
.puerta.abierta .hoja-puerta { transform: rotateY(-105deg); }
.puerta.revelada .hoja-puerta { transform: rotateY(-80deg); opacity: .5; }
.puerta.revelada .premio { opacity: .55; filter: grayscale(.4); }
.puerta.abierta { outline: 4px solid var(--verde); outline-offset: 3px; z-index: 1; }
.puerta.abierta .premio { animation: pop .5s .35s both; }
.puerta.temblando .hoja-puerta { animation: tiembla .12s infinite alternate; }
@keyframes tiembla { from { transform: rotateY(-4deg) rotate(-1deg); } to { transform: rotateY(-10deg) rotate(1deg); } }
.puertas-resultado { text-align: center; font-size: 17px; font-weight: 800; margin: 16px 0 6px; min-height: 1.4em; }
.puertas-resultado small { font-size: 13px; color: #cfc9dc; font-weight: 700; }
.leyenda-premios { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.leyenda-premios span { display: inline-flex; align-items: center; gap: 5px; background: #1b1b24; border: 1.5px solid #33333f;
  border-radius: 10px; padding: 3px 9px 3px 4px; font-size: 12.5px; font-weight: 700; }
.mini-premio { width: 26px; height: 26px; object-fit: contain; font-size: 18px; }
.ticker { border: 1.5px solid var(--tinta); }

/* ---------- patreon: nick dorado con su carnet */
.nick-patreon { color: #f5c518; font-weight: 900; text-shadow: 0 0 6px rgba(245,197,24,.35); }
.tabla-ranking .nick-patreon, .resumen .nick-patreon { color: #b8860b; text-shadow: none; }
.nick-patreon .carnet { font-size: .8em; opacity: .9; }
.rotulo .nick-patreon { color: #ffd84a; -webkit-text-stroke: 0; }
.ya-patreon { background: #2a2310; border: 2px solid #f5c518; color: #ffd84a; border-radius: 12px; padding: 8px 12px; font-weight: 800; }

/* cada puerta de un color (el dibujo es naranja: se gira el tono) y su marco a juego */
.puerta.color-0 { background: #4a2710; } .puerta.color-0 .img-puerta { filter: none; }
.puerta.color-1 { background: #123d1c; } .puerta.color-1 .img-puerta { filter: hue-rotate(85deg) saturate(1.2); }
.puerta.color-2 { background: #10284a; } .puerta.color-2 .img-puerta { filter: hue-rotate(185deg) saturate(1.3); }
.puerta.color-3 { background: #2e1449; } .puerta.color-3 .img-puerta { filter: hue-rotate(245deg) saturate(1.1); }
.puerta.color-4 { background: #4a1030; } .puerta.color-4 .img-puerta { filter: hue-rotate(305deg) saturate(1.3); }

/* ---------- personaje de las puertas */
.puertas-yo:has(.personaje) { display: block; padding: 12px 14px; }
.pj-cab { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.pj-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid var(--tinta); flex: none; }
.pj-avatar svg, .pj-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pj-nivel { font-family: "Rotulo", sans-serif; font-weight: 400; font-size: 22px; display: block; }
.pj-cab small { display: block; font-size: 12px; font-weight: 700; opacity: .75; }
.stat { display: grid; grid-template-columns: 92px 1fr 36px; align-items: center; gap: 8px; margin: 5px 0; font-size: 13.5px; font-weight: 800; }
.stat b { text-align: right; font-size: 15px; }
.st-barra { height: 13px; background: #ece7da; border: 1.5px solid var(--tinta); border-radius: 8px; overflow: hidden; }
.st-barra i { display: block; height: 100%; transition: width .6s ease; }
.stat-amor i { background: #ff7ad9; } .stat-vida i { background: #ff4d4d; } .stat-dinero i { background: #39d353; }
.stat-trabajo i { background: #ffa94d; } .stat-mana i { background: #8f5cff; }
.puerta .da { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--tinta); border-radius: 9px; padding: 1px 7px; font-size: 12px; font-weight: 900; }
.puertas { row-gap: 18px; }
/* 6 puertas: 3 y 3 en el móvil, 6 en fila en pantalla grande */
.puertas { grid-template-columns: repeat(3, 1fr) !important; }
@media (min-width: 760px) { .puertas { grid-template-columns: repeat(6, 1fr) !important; } }
.puerta { grid-column: auto !important; }
.puerta.color-5 { background: #4a3a08; } .puerta.color-5 .img-puerta { filter: hue-rotate(20deg) saturate(1.6) brightness(1.15); }
.puerta.es-oro .premio { filter: drop-shadow(0 0 10px #ffd84a); }
.puerta.es-oro.abierta { outline-color: #ffd84a; animation: brilla-oro 1s infinite alternate; }
@keyframes brilla-oro { to { box-shadow: 0 0 24px 6px rgba(255,216,74,.6); } }
.ley-oro { border-color: #f5c518 !important; color: #ffd84a; }

/* ---------- juegos: 4 secciones (2×2 en el móvil) */
.secciones-juegos { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .secciones-juegos { grid-template-columns: 1fr 1fr; } }

/* ---------- test de las elecciones 29N */
.test-intro, .test-analisis { display: flex; align-items: flex-end; gap: 4px; margin: 14px 0; }
.test-intro img, .test-analisis img { width: 70px; flex: none; }
.test-intro .bocadillo, .test-analisis .bocadillo { margin-bottom: 30px; }
.test-intro .bocadillo p, .test-analisis .bocadillo p { color: var(--tinta); font-size: 14.5px; margin: 0; font-weight: 700; }
.logos-14 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 16px; }
.logo-partido { width: 46px; height: 46px; object-fit: contain; background: #fff; border: 2px solid var(--c, #111); border-radius: 10px; padding: 3px; }
.mini-logo { width: 24px; height: 24px; object-fit: contain; background: #fff; border: 1.5px solid var(--c, #111); border-radius: 5px; padding: 1px; flex: none; }
.test-botones { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.test-botones .boton, .test-botones .boton-sec { font-size: 16px; padding: 11px; text-align: center; }
.test-botones .boton-sec { color: var(--tinta); }
.test-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.test-cab .boton-sec { color: var(--tinta); width: 40px; height: 40px; padding: 0; }
.test-progreso { flex: 1; height: 12px; background: #1b1b24; border: 1.5px solid #33333f; border-radius: 7px; overflow: hidden; }
.test-progreso i { display: block; height: 100%; background: var(--verde); }
.test-tema { display: inline-block; background: var(--pizza); color: var(--tinta); font-weight: 900; font-size: 12px; padding: 2px 10px;
  border: 1.5px solid var(--tinta); border-radius: 9px 6px 10px 7px; }
.test-pregunta { font-size: 23px; font-weight: 900; line-height: 1.2; margin: 8px 0 2px; }
.test-opciones { display: flex; flex-direction: column; gap: 8px; }
.opcion { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 10px 11px; background: var(--blanco); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 13px 9px 14px 10px; font: inherit; }
.opcion.elegida { background: #e6ffdf; border-color: #1f9d3a; }
.op-letra { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--pizza);
  border: 1.5px solid var(--tinta); font-family: "Rotulo", sans-serif; font-size: 14px; }
.op-texto { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.3; }
.op-check { flex: none; width: 24px; color: #1f9d3a; font-weight: 900; font-size: 18px; text-align: center; }
.op-de { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; font-size: 12.5px; font-weight: 900; color: #1b5e2a; animation: sube .25s ease; }
.op-partido { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #b8d8b9; border-radius: 8px; padding: 1px 6px 1px 2px; }
.test-pie { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.test-pie .boton { flex: 1; font-size: 16px; padding: 11px; }
.test-pie .boton-sec { color: var(--tinta); }
.test-marcador { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: #cfc9dc; font-weight: 800; }
.mm { display: inline-flex; align-items: center; gap: 4px; }
.test-ganador { text-align: center; background: var(--blanco); color: var(--tinta); border: 3px solid var(--c); border-radius: 20px 14px 22px 15px; padding: 16px; }
.test-ganador small { font-weight: 900; font-size: 13px; color: #66606f; }
.logo-ganador { width: 96px; height: 96px; object-fit: contain; display: block; margin: 10px auto; }
.test-ganador h2 { margin: 0; font-size: 30px; font-weight: 400; }
.test-ganador p { font-weight: 700; font-size: 14.5px; margin: 8px 0 0; }
.test-bloques { display: flex; height: 30px; border: 2px solid var(--tinta); border-radius: 10px; overflow: hidden; font-size: 12.5px; font-weight: 900; }
.test-bloques span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; min-width: 0; }
.test-bloques span:first-child { background: #e0332b; color: #fff; } .test-bloques span:last-child { background: #1d84ce; color: #fff; }
.ranking-partidos { list-style: none; margin: 0; padding: 0; background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta);
  border-radius: 14px 10px 15px 11px; overflow: hidden; }
.ranking-partidos li { display: grid; grid-template-columns: 22px 24px 110px 1fr 28px 36px; align-items: center; gap: 7px; padding: 6px 10px;
  border-bottom: 1.5px dashed #c9c4b5; font-size: 13px; font-weight: 800; }
.ranking-partidos li:last-child { border-bottom: 0; }
.ranking-partidos .puesto { font-family: "Rotulo", sans-serif; text-align: center; }
.rp-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-barra { height: 11px; background: #ece7da; border-radius: 6px; overflow: hidden; }
.rp-barra i { display: block; height: 100%; }
.ranking-partidos b { text-align: right; } .ranking-partidos small { color: #66606f; text-align: right; }
.por-tema { display: flex; flex-direction: column; gap: 6px; }
.por-tema span { display: flex; align-items: center; gap: 6px; background: #1b1b24; border: 1.5px solid #33333f; border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 700; }

/* ---------- bolsa: tarjetas de color y logos */
.accion { background: var(--fondo, #fff); }
button.accion:active { filter: brightness(.95); background: var(--fondo, #fff); }
.logo-emp { flex: none; width: 46px; height: 46px; border-radius: 11px; background: #fff; border: 2px solid var(--tinta);
  display: grid; place-items: center; overflow: hidden; padding: 4px; }
.logo-emp img { width: 100%; height: 100%; object-fit: contain; }
.logo-emp.grande { width: 64px; height: 64px; border-radius: 14px; }
.logo-emp.sin-logo { font-family: "Rotulo", sans-serif; font-size: 12px; background: var(--tinta); color: var(--pizza); padding: 2px; text-align: center; }
.a-nombre .tk { font-style: normal; font-size: 11px; font-weight: 900; background: rgba(0,0,0,.08); border-radius: 5px; padding: 0 5px; margin-left: 2px; }
.accion .a-nombre small, .accion .a-valor small { color: #3d3846; }
.accion .sube { color: #0d6b22 !important; filter: none; } .accion .baja { color: #a3130b !important; filter: none; }
.otra-vez { display: inline-block; color: #ffd84a; font-family: "Rotulo", sans-serif; font-size: 22px; animation: late 1s infinite; }
.mult { color: #ffd84a; font-size: 1.15em; }
#juego-bolsa .accion .sube, #hoja-jugador .accion .sube { color: #0b5c1d !important; }
#juego-bolsa .accion .baja, #hoja-jugador .accion .baja { color: #7a0d07 !important; }
.tipos-bolsa { flex-wrap: wrap; overflow: visible; }
.tipos-bolsa .chip { font-size: 13px; padding: 5px 11px; }
.tipos-bolsa .chip small { font-size: 10.5px; opacity: .6; }
.se-dedica { color: var(--pizza) !important; font-weight: 800; }
/* tipos de la bolsa: dos filas que se deslizan de lado */
.tipos-bolsa { display: grid !important; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content;
  overflow-x: auto !important; gap: 7px; padding-bottom: 8px; scrollbar-width: thin; }
.logo-emp.oscuro { background: #1b1b24; }
h3.sub.sube-tit { color: #4ee06a; } h3.sub.baja-tit { color: #ff6a5f; margin-top: 18px; }

/* ---------- bolsa: tu cartera arriba, gráfica y reparto */
.grafica-caja { position: relative; background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta);
  border-radius: 16px 12px 17px 13px; padding: 10px 10px 6px; margin: 12px 0; }
.grafica-cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 900; padding: 0 4px; }
.grafica-cab .sube { color: #1b7a33 !important; } .grafica-cab .baja { color: #b3150d !important; }
.grafica { position: relative; }
.grafica svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.g-rejilla { stroke: #e6e1d3; stroke-width: 1; }
.g-salida { stroke: #8a8494; stroke-width: 1.2; stroke-dasharray: 4 4; }
.g-eje { font-size: 10px; fill: #6b6575; font-weight: 700; font-family: "Nunito", sans-serif; }
.g-cruz { stroke: #2b2b33; stroke-width: 1; }
.g-tip { position: absolute; transform: translate(-50%, -120%); background: var(--tinta); color: #fff; border-radius: 9px;
  padding: 4px 9px; font-size: 13px; text-align: center; pointer-events: none; white-space: nowrap; }
.g-tip small { display: block; font-size: 11px; opacity: .8; }
.g-nota { font-size: 12px; font-weight: 700; color: #6b6575; margin: 4px 4px 2px; }
.tabla-grafica { font-size: 12.5px; padding: 2px 4px; }
.tabla-grafica summary { cursor: pointer; font-weight: 800; color: #6b6575; }
.tabla-grafica table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.tabla-grafica th, .tabla-grafica td { text-align: left; padding: 3px 4px; border-bottom: 1px solid #eee; }
.parte { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.parte i { display: block; height: 8px; min-width: 3px; background: #2b2b33; border-radius: 4px; flex: none; max-width: 60%; }
.parte em { font-style: normal; font-size: 11px; font-weight: 800; color: #3d3846; }
.accion.libre { background: #f3f0e6; }
.logo-emp.efe { background: #1f9d3a !important; color: #fff !important; font-size: 20px !important; }
#bloque-cartera .titulo-sec { margin-top: 18px; }
#juego-bolsa .bolsa-resumen .sube { color: #0d6b22 !important; } #juego-bolsa .bolsa-resumen .baja { color: #a3130b !important; }
.g-etq { paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.g-leyenda { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #6b6575; margin: 2px 4px 4px; }
.g-raya { width: 18px; border-top: 2px dashed #8a8494; }
#hoja-jugador .grafica-cab .sube { color: #1b7a33 !important; } #hoja-jugador .grafica-cab .baja { color: #b3150d !important; }

/* ---------- editor de avatar */
.av-editor { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.av-vista { width: 92px; height: 92px; flex: none; border-radius: 50%; overflow: hidden; border: 3px solid var(--pizza); background: #1b1b24; }
.av-vista svg, .av-vista img { width: 100%; height: 100%; display: block; object-fit: cover; }
.av-pestanas { display: flex; flex-wrap: wrap; gap: 5px; }
.av-pestanas button { padding: 4px 8px; font-size: 12px; font-weight: 800; border-radius: 9px; border: 1.5px solid #33333f; background: #1b1b24; color: var(--claro); }
.av-pestanas button.activo { background: var(--pizza); color: var(--tinta); border-color: var(--tinta); }
.av-opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 4px 2px 10px; margin-bottom: 10px; }
.av-opciones .busca-pais { grid-column: 1 / -1; padding: 8px 10px; font: inherit; font-weight: 700; border: 2px solid var(--tinta); border-radius: 10px; color: var(--tinta); }
.op-ccaa { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.op-ccaa small { font-size: 9.5px; font-weight: 800; color: #cfc9dc; text-align: center; line-height: 1.1; }
.av-opciones.ccaa, .av-opciones.g, .av-opciones.o, .av-opciones.p, .av-opciones.m { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.op-ccaa .avatar-op { width: 52px; }
.ver-mas-bolsa { display: block; width: 100%; margin-top: 4px; color: var(--tinta); font-size: 15px; padding: 10px; }

/* ---------- puertas abiertas: la hoja gira y DESAPARECE; el premio queda dentro del marco, sin nada asomando */
.puerta { overflow: hidden; }
.puerta.abierta, .puerta.revelada { box-shadow: inset 0 0 0 3px rgba(0,0,0,.35), inset 0 10px 18px rgba(0,0,0,.45); }
.puerta.abierta .hoja-puerta, .puerta.revelada .hoja-puerta {
  transform: perspective(500px) rotateY(-80deg) !important; opacity: 0 !important; pointer-events: none;
  transition: transform .55s ease-in, opacity .3s .3s ease-in; }
.puerta.revelada .hoja-puerta { transition: none; }
.puerta .premio { inset: 10% 8% 16%; }
.puerta.revelada .premio { opacity: .5; filter: grayscale(.5); }
.puerta.abierta .premio { animation: aparece .45s .35s both cubic-bezier(.3,1.6,.5,1); }
@keyframes aparece { from { transform: scale(.4); opacity: 0; } }
.puerta.abierta { outline: 4px solid var(--verde); outline-offset: 2px; }
.puerta .da { bottom: 4px; }
.avatares { display: block !important; }
.av-editor { align-items: center; }
.av-pestanas { flex: 1; min-width: 0; }
/* la Pizza de oro (el comodín) se distingue al abrirse: fondo de colores */
.puerta.es-oro.abierta, .puerta.es-oro.revelada { background: conic-gradient(from 0deg, #ff3b3b, #ffc928, #39d353, #3bd3ff, #8f5cff, #ff7ad9, #ff3b3b) !important; }
.puerta.es-oro.revelada .premio { opacity: .85; filter: none; }

/* ---------- vídeos vistos enteros */
.video.visto .mini, .ultimo.visto { outline: 4px solid #39d353; outline-offset: 2px; }
.video.visto h3 { color: #6dff86; }
.short.visto { outline: 4px solid #39d353; outline-offset: 2px; }
.sello-visto { position: absolute; z-index: 4; background: #39d353; color: #0b2a12; font-weight: 900; font-size: 12px;
  padding: 2px 9px; border: 1.5px solid var(--tinta); border-radius: 9px 6px 10px 7px; transform: rotate(-4deg); }
.video { position: relative; } .video .sello-visto { top: 8px; left: 8px; }
.ultimo .sello-visto { top: 10px; left: 10px; } .short .sello-visto { top: 8px; left: 8px; }
.contador-vistos { display: flex; align-items: center; gap: 10px; background: #12301a; border: 2px solid #39d353; color: #c9ffd3;
  border-radius: 14px 10px 15px 11px; padding: 10px 14px; margin-bottom: 12px; font-weight: 800; font-size: 14px; }
.contador-vistos b { font-family: "Rotulo", sans-serif; font-weight: 400; font-size: 32px; color: #39d353; line-height: 1; }
.contador-vistos .boton-sec { color: var(--tinta); margin-left: auto; }
#yt-reproductor, .pantalla iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; height: auto; }
.marco.vertical #yt-reproductor { aspect-ratio: 9/16; max-height: 74vh; }

/* el Joker (comodín) se distingue al abrirse: fondo de colores */
.puerta.es-joker.abierta, .puerta.es-joker.revelada { background: conic-gradient(from 0deg, #ff3b3b, #ffc928, #39d353, #3bd3ff, #8f5cff, #ff7ad9, #ff3b3b) !important; }
.puerta.es-joker.revelada .premio { opacity: .85; filter: none; }
.puerta.es-joker.abierta { outline-color: #ffd84a; animation: brilla-oro 1s infinite alternate; }
.stat-salud i { background: #ff4d4d; } .stat-suerte i { background: #39d353; } .stat-trabajo i { background: #ffa94d; }

/* titulares completos: sin cortar con «…» */
.noticia h3 { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.ficha-original { font-size: 13px; color: #a9a4b6; font-weight: 700; margin: -2px 0 10px; }

/* ---------- test 29N: propuestas por partido y lo que le sale a la gente */
.test-ver-partidos { color: var(--tinta) !important; }
.logos-14.elegir { margin-top: 6px; }
.elegir-partido { padding: 0; border: 0; background: none; border-radius: 12px; }
.elegir-partido.activo .logo-partido { outline: 3px solid var(--verde); outline-offset: 2px; }
.partido-cab { text-align: center; background: var(--blanco); color: var(--tinta); border: 3px solid var(--c); border-radius: 18px 13px 19px 14px; padding: 12px; margin: 10px 0; }
.partido-cab h2 { margin: 0; font-size: 26px; font-weight: 400; }
.partido-cab p { margin: 4px 0 0; font-weight: 800; color: #55505e; }
.prop-partido { background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 12px 9px 13px 10px; padding: 9px 12px; margin-bottom: 8px; }
.prop-partido b { display: block; font-size: 13px; color: #66606f; margin-bottom: 4px; }
.prop-partido p { margin: 4px 0; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.prop-partido .tambien { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: #66606f; margin-top: 3px; }
.rp-gente { grid-template-columns: 22px 24px 110px 1fr 54px !important; }

/* cronómetro quieto: cifras de ancho fijo */
.crono { display: inline-flex; min-width: 0 !important; }
.crono i { font-style: normal; display: inline-block; width: .62em; text-align: center; }
.crono b { font-weight: 400; display: inline-block; width: .3em; text-align: center; }

.juego-hud { position: relative; }
.mas-diez { position: absolute; right: 0; top: 100%; color: #ff5a4f; font-family: "Rotulo", sans-serif; font-size: 18px;
  animation: sube-diez 1.1s ease-out forwards; pointer-events: none; }
@keyframes sube-diez { from { transform: translateY(6px); opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
/* icono de la temática debajo de la bandera */
.noticia .tema { position: absolute; top: 15px; left: -8px; z-index: 3; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--blanco); border: 1.5px solid var(--tinta); border-radius: 50%; font-size: 14px; transform: rotate(-6deg); }

/* cronómetro: tres casillas fijas (minutos : segundos , centésimas) */
.crono { display: inline-flex !important; align-items: center; gap: 1px; }
.crono span { display: inline-flex; background: #1b1b24; border: 1.5px solid #33333f; border-radius: 6px; padding: 1px 3px; }
.crono span i { font-style: normal; display: inline-block; width: .64em; text-align: center; }
.crono > b { font-weight: 400; display: inline-block; width: .32em; text-align: center; }
.crono .c-cen { font-size: .8em; align-self: flex-end; }

/* dibujo de pizzas cuando la noticia no tiene foto */
.noticia > img.es-dibujo { object-fit: cover; background: #fff3b0; }

/* ---------- agenda (tiempo, juegos, series, cine, resultados) */
.agenda-botones { margin-bottom: 7px; }
.agenda-botones .seccion { background: #12243a; border-color: #2a4a6b; }
.agenda-botones .seccion.activo { background: #4fb3ff; color: var(--tinta); border-color: var(--tinta); }
.agenda-caja .sub small { font-size: 12px; color: #a9a4b6; font-weight: 700; margin-left: 6px; }
.tiempo-buscar { position: relative; }
#ciudades-encontradas { display: flex; flex-direction: column; gap: 4px; margin: -4px 0 10px; }
.ciudad-op { text-align: left; padding: 8px 12px; background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--tinta); border-radius: 10px; font-weight: 800; }
.ciudad-op small { color: #66606f; font-weight: 700; }
.tiempo-hoy { background: linear-gradient(#4fb3ff, #2a6fdb); color: #fff; border: 2px solid var(--tinta); border-radius: 18px 13px 19px 14px; padding: 14px 16px; }
.tiempo-hoy small { font-weight: 800; opacity: .9; }
.t-grande { display: block; font-family: "Rotulo", sans-serif; font-weight: 400; font-size: 46px; line-height: 1.1; }
.tiempo-hoy span { font-weight: 800; }
.tiempo-semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0; }
.t-dia { background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--tinta); border-radius: 10px; padding: 6px 2px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; font-weight: 800; }
.t-dia.hoy { background: #fff3b0; }
.t-dia small { font-size: 10.5px; color: #66606f; text-transform: capitalize; }
.t-dia b { font-size: 20px; }
.t-max { color: #d6312a; } .t-min { color: #2a6fdb; }
.t-dia em { font-style: normal; font-size: 10px; color: #2a6fdb; }
#elegir-pais { margin-left: 8px; font: inherit; font-size: 13px; padding: 2px 6px; border-radius: 8px; }
.tiempo-pais { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tiempo-pais div { display: flex; align-items: center; gap: 7px; background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--tinta);
  border-radius: 10px; padding: 6px 9px; font-weight: 800; font-size: 13.5px; }
.tiempo-pais b { font-size: 20px; } .tiempo-pais span { flex: 1; } .tiempo-pais em { font-style: normal; color: #55505e; font-size: 12.5px; }
.agenda-item { display: flex; gap: 10px; background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 12px 9px 13px 10px;
  padding: 8px; margin-bottom: 8px; }
.agenda-item img, .agenda-item .sin-img { width: 62px; height: 86px; object-fit: cover; border-radius: 7px; border: 1.5px solid var(--tinta); flex: none;
  display: grid; place-items: center; font-size: 26px; background: #eee; }
.agenda-item > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agenda-item b { font-size: 15.5px; font-weight: 900; line-height: 1.2; }
.agenda-item small { font-size: 12.5px; font-weight: 800; color: #6a0dad; }
.agenda-item em { font-style: normal; font-size: 12.5px; color: #55505e; font-weight: 600; line-height: 1.3; }
.rejilla-cine { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.peli { background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.peli img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; }
.peli b { font-size: 13.5px; font-weight: 900; line-height: 1.2; } .peli small { font-size: 11.5px; color: #6a0dad; font-weight: 800; }
.peli em { font-style: normal; font-size: 11px; color: #66606f; font-weight: 700; }
.partidos { display: flex; flex-direction: column; gap: 6px; }
.partido { display: grid; grid-template-columns: 70px 1fr; grid-auto-rows: auto; column-gap: 8px; background: var(--blanco); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 11px 8px 12px 9px; padding: 7px 10px; }
.partido.vivo { border-color: #ff3b3b; }
.p-estado { grid-row: span 2; align-self: center; font-size: 11.5px; font-weight: 900; color: #66606f; text-transform: capitalize; }
.partido.vivo .p-estado { color: #d6312a; }
.p-eq { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; }
.p-eq img { width: 20px; height: 20px; object-fit: contain; }
.p-eq b { margin-left: auto; font-family: "Rotulo", sans-serif; font-weight: 400; font-size: 17px; }
.p-eq.gana { font-weight: 900; } .p-eq.gana b { color: #1f9d3a; }

/* flechas de los rankings */
.tabla-ranking .puesto { display: flex; flex-direction: column; align-items: center; line-height: 1; width: 34px !important; }
.flecha { font-family: "Nunito", sans-serif; font-size: 10.5px; font-weight: 900; margin-top: 2px; }
.flecha.sube { color: #1f9d3a; } .flecha.baja { color: #d6312a; } .flecha.igual { color: #b5b0bf; } .flecha.nuevo { color: #6a0dad; font-size: 9px; }
/* juegos: color por consola */
.juego-item .plats { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.plat { color: #fff; font-size: 10.5px; font-weight: 900; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--tinta); }
.juego-item em { color: #2b2b33 !important; }
.leyenda-plat { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 6px; }
.leyenda-plat small { color: #cfc9dc; font-weight: 700; font-size: 12px; margin-left: 4px; }

/* mapa del tiempo del país */
.t-dia { font: inherit; color: inherit; cursor: pointer; }
.mt-titulo { display: flex; align-items: center; gap: 6px; text-transform: none; }
.mt-titulo .bandera { width: 24px; height: auto; border-radius: 3px; }
.mapa-tiempo { width: 100%; height: auto; display: block; background: #12202e; border: 2px solid var(--tinta); border-radius: 14px; }
.mt-vecinos { fill: #2a2733; stroke: #1a1820; stroke-width: .6; }
.mt-pais { fill: #f1ead6; }
.mt-borde { fill: none; stroke: #2b2233; stroke-width: 1.2; stroke-linejoin: round; }
.mt-recuadro { fill: none; stroke: #cfc9dc; stroke-width: 1; stroke-dasharray: 4 3; }
.mt-emoji { font-size: 24px; }
.mt-temp { font: 900 12px Nunito, sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.mt-max { fill: #d0312d; } .mt-min { fill: #1f5fd6; }
.mt-nombre { font: 800 8.5px Nunito, sans-serif; fill: #2b2233; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; }

/* barrita de precio de los juegos */
.barra-precio { position: relative; display: block; height: 20px; margin-top: 6px; background: #fff; border: 1.5px solid var(--tinta); border-radius: 7px; overflow: hidden; }
.barra-precio i { position: absolute; inset: 0 auto 0 0; background: #39d353; }
.barra-precio.gratis i { background: #4fb3ff; }
.barra-precio b { position: relative; display: block; font-size: 11.5px; line-height: 17px; padding: 0 7px; color: #111; }
.barra-precio s { color: #6a6470; font-weight: 700; }
.barra-precio small { color: #444; font-weight: 700; }
.barra-precio.sin b { color: #6a6470; font-weight: 800; }

/* series */
.serie { display: grid; grid-template-columns: 58px 58px 1fr; gap: 9px; align-items: center; padding: 9px; margin-bottom: 8px;
  background: #fff; color: #111; border: 2px solid var(--tinta); border-radius: 14px; text-decoration: none; }
.serie .logo-plat { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #fff; border: 1.5px solid #ddd; }
.serie .logo-plat.txt { display: grid; place-items: center; font-size: 10px; font-weight: 900; text-align: center; }
.serie .cartel { width: 58px; height: 80px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--tinta); display: grid; place-items: center; font-size: 26px; }
.serie-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.serie-txt b { font-size: 15px; line-height: 1.15; }
.serie-txt small, .serie-txt em { color: #55505e; font-size: 12px; font-style: normal; }
.band-serie { width: 22px; height: auto; border-radius: 3px; border: 1px solid #0003; }
.capis { font-size: 12px; background: #fff4c7; border-radius: 6px; padding: 2px 6px; }

/* cine */
.peli { position: relative; }
.peli-banderas { position: absolute; top: 6px; left: 6px; display: flex; gap: 3px; z-index: 1; }
.peli-banderas .bandera { width: 24px; height: auto; border-radius: 3px; border: 1.5px solid #111; box-shadow: 0 1px 2px #0006; }
.barra-pres { position: relative; display: block; height: 18px; margin-top: 5px; background: #2a2733; border: 1.5px solid var(--tinta); border-radius: 6px; overflow: hidden; }
.barra-pres i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f3cf55, #ff9f1c); }
.barra-pres b { position: relative; display: block; font-size: 11px; line-height: 15px; padding: 0 6px; color: #fff; text-shadow: 0 1px 2px #000; }
.barra-pres.sin b { color: #a9a3b5; text-shadow: none; font-weight: 700; }

/* resultados en una fila */
.liga { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tele { display: inline-flex; align-items: center; gap: 4px; font: 700 11px Nunito, sans-serif; color: #cfc9dc; text-transform: none; margin-left: auto; }
.tele img { width: 22px; height: 22px; border-radius: 5px; background: #fff; }
.fila-partido { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin-bottom: 6px; border: 2px solid var(--tinta); border-radius: 12px; overflow: hidden; background: #fff; }
.fila-partido .eq { display: flex; align-items: center; gap: 6px; padding: 7px 8px; font-weight: 900; font-size: 13.5px; color: #111; min-width: 0; }
.fila-partido .eq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-partido .eq.dcha { justify-content: flex-end; text-align: right; }
.fila-partido .eq img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.fila-partido .eq.solo { grid-column: 1 / 3; }
.eq.gana { background: #8fe08f; } .eq.pierde { background: #ff9b9b; } .eq.empate { background: #ffe066; } .eq.blanco { background: #fff; }
.fila-partido .marcador { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px; min-width: 64px;
  background: #1b1922; color: #fff; font: 400 18px "Lilita One", sans-serif; border-inline: 2px solid var(--tinta); }
.fila-partido .marcador small { font: 800 10px Nunito, sans-serif; }
.fila-partido.vivo { box-shadow: 0 0 0 2px #ff5252; }

/* interruptor del test 29N */
.interruptor { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 10px 12px; background: #1b1922; border: 2px solid var(--tinta);
  border-radius: 12px; font-weight: 800; font-size: 14px; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.int-bola { position: relative; flex: none; width: 44px; height: 24px; border-radius: 12px; background: #55505e; border: 2px solid #111; transition: background .2s; }
.int-bola::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid #111; transition: transform .2s; }
.interruptor input:checked + .int-bola { background: #39d353; }
.interruptor input:checked + .int-bola::after { transform: translateX(20px); }

.mt-provincias { fill: none; stroke: #2b2233; stroke-opacity: .45; stroke-width: .6; stroke-linejoin: round; }

/* bandera del canal ondeando en la cabecera (tiras que suben y bajan desfasadas) */
.bandera-ondea { position: relative; flex: none; width: 66px; height: 50px; margin-right: 4px; }
.bandera-ondea .mastil { position: absolute; left: 2px; top: 0; bottom: -4px; width: 4px; border-radius: 2px; background: #5b3a1e; border: 1px solid #111; }
.bandera-ondea .tela { position: absolute; left: 6px; top: 3px; width: 58px; height: 39px; display: flex; }
.bandera-ondea .tela i { flex: 1; height: 100%; background: url(banderas/lecherismo.svg) no-repeat; background-size: 58px 39px;
  background-position: calc(var(--i) * -58px / 16) 0; animation: ondea 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.1s);
  filter: brightness(calc(1 + .12 * sin(var(--i) * 0.6))); }
@keyframes ondea { 0%, 100% { transform: translateY(calc(var(--i) * 0.12px)) scaleY(1); filter: brightness(1.08); }
  50% { transform: translateY(calc(var(--i) * 0.12px + 3px)) scaleY(.97); filter: brightness(.88); } }
@media (prefers-reduced-motion: reduce) { .bandera-ondea .tela i { animation: none; } }

.filtro-plat { font: 900 12px Nunito, sans-serif; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--c); background: transparent; color: #cfc9dc; cursor: pointer; }
.filtro-plat.on { background: var(--c); color: #fff; border-color: #111; }
.juego-item .sin-img { display: grid; place-items: center; font-size: 30px; background: #fff8; border-radius: 8px; }
.juego-item img, .juego-item .sin-img { width: 112px; height: 52px; object-fit: cover; align-self: flex-start; }
/* sin rendijas entre las tiras de la bandera: cada una pisa un poco a la siguiente */
.bandera-ondea .tela i { flex: 0 0 calc(58px / 16 + 1px); margin-right: -1px; background-color: #ff0000; }

/* series: hoy en grande, ayer plegado */
.filtros-series { margin-bottom: 6px; }
.series-hoy .serie { grid-template-columns: 72px 96px 1fr; padding: 12px; }
.series-hoy .serie .logo-plat { width: 72px; height: 72px; }
.series-hoy .serie .cartel { width: 96px; height: 136px; }
.series-hoy .serie-txt b { font-size: 18px; }
.plegable { margin: 12px 0; border: 2px solid var(--tinta); border-radius: 12px; background: #1b1922; padding: 8px 10px; }
.plegable summary { cursor: pointer; font: 400 18px "Lilita One", sans-serif; color: #39FF14; }
.plegable summary small { font: 700 12px Nunito, sans-serif; color: #cfc9dc; }
.plegable[open] summary { margin-bottom: 8px; }

/* ¿Cuándo fue? */
.secciones-juegos { grid-template-columns: repeat(3, 1fr); }
.fechas-listo { text-align: center; padding: 18px; background: #1b1922; border: 2px solid var(--tinta); border-radius: 14px; }
.fechas-tipo { display: inline-block; font: 400 18px "Lilita One", sans-serif; color: #39FF14; margin-bottom: 6px; }
.fechas-reloj { position: relative; height: 30px; border: 2px solid var(--tinta); border-radius: 10px; background: #2a2733; overflow: hidden; margin-bottom: 8px; }
.fechas-reloj i { position: absolute; inset: 0 auto 0 0; background: #39d353; }
.fechas-reloj.apurado i { background: #ff5252; }
.fechas-reloj b { position: relative; display: block; text-align: center; font: 400 22px/26px "Lilita One", sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.fechas-foto { width: 100%; max-height: 330px; object-fit: contain; background: #fff; border: 2px solid var(--tinta); border-radius: 14px; }
.fechas-pregunta { font: 400 21px "Lilita One", sans-serif; margin: 8px 0; color: #fff; }
.fechas-form { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; gap: 6px; align-items: end; }
.fechas-form label { display: flex; flex-direction: column; gap: 2px; font-weight: 800; }
.fechas-form input { width: 100%; font: 400 26px "Lilita One", sans-serif; text-align: center; padding: 6px 2px; border: 2px solid var(--tinta); border-radius: 10px; }
.fechas-res { margin-top: 10px; padding: 12px; border: 2px solid var(--tinta); border-radius: 14px; background: #fff; color: #111; text-align: center; }
.fechas-res.clavada { background: #8fe08f; } .fechas-res.mal { background: #ffb1b1; }
.fechas-res p { margin: 4px 0; }
.fechas-pts { font: 400 22px "Lilita One", sans-serif; color: #1f9d3a; }

/* puertas: ranking por estadística y ficha de cada jugador */
.r-pestanas { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 0 8px !important; background: none !important; border: 0 !important; }
.con-ficha { cursor: pointer; }
.stat-malasuerte .st-barra i { background: #55505e; }
.hoja-ficha { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: #000a; }
.ficha-otro { position: relative; width: min(420px, 100%); max-height: 90vh; overflow: auto; }
.cerrar-ficha { position: absolute; top: 8px; right: 8px; }

/* contador de las puertas */
.puertas-contador { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 10px; padding: 10px; text-align: center;
  background: #1b1922; border: 2px solid var(--tinta); border-radius: 14px; }
.puertas-contador span { font-weight: 800; color: #cfc9dc; }
.puertas-contador b { font: 400 32px "Lilita One", sans-serif; color: #39FF14; -webkit-text-stroke: 1.5px #6A0DAD; paint-order: stroke fill; letter-spacing: 1px; }
.puertas-contador b i { font-style: normal; font-size: 18px; margin-left: 1px; }
.puertas-contador small { color: #a9a3b5; font-size: 11.5px; }
.orden-noticias { margin: 2px 0 8px; } .orden-noticias .chip.activo { background: #39FF14; color: #111; }

/* título de la cabecera: ORDEN e ILUSTRADA separadas, grandes y con un poco de baile */
.marca strong.titulo-app { display: flex; align-items: baseline; gap: 9px; font-size: 25px; letter-spacing: 1.5px; line-height: 1.05;
  overflow: visible; padding: 4px 2px 2px; text-shadow: 2px 2px 0 #111; }
.titulo-app .t1 { transform: rotate(-3deg); display: inline-block; }
.titulo-app .t2 { transform: rotate(2deg); display: inline-block; color: #ffd23f; -webkit-text-stroke-color: #6A0DAD; }
@media (max-width: 380px) { .marca strong.titulo-app { font-size: 21px; gap: 7px; letter-spacing: 1px; } }

/* ficha de noticia: foto más pequeña, explicación y enlaces a los otros medios */
.ficha-foto { max-height: 190px !important; width: 100%; object-fit: cover; }
.ficha-explicacion .ficha-resumen { font-size: 15.5px; line-height: 1.5; margin: 0 0 8px; }
.ficha-explicacion .preparando { font-style: italic; }
.ficha-otros { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.otra-fuente { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 7px 9px; border: 1.5px solid #ccc;
  border-radius: 10px; text-decoration: none; color: inherit; background: #faf8f2; }
.otra-fuente small { font-size: 12.5px; line-height: 1.25; color: #333; }
.otra-fuente i { font-style: normal; font-weight: 900; }
.marca .titulo-app span { font-size: inherit; font-weight: inherit; color: inherit; }
.marca .titulo-app span.t2 { color: #ffd23f; }
@media (max-width: 420px) { .marca strong.titulo-app { font-size: 18.5px; gap: 7px; letter-spacing: .6px; } }
.marca .titulo-app span.t2 { color: #6A0DAD; -webkit-text-stroke: 1.6px #39FF14; paint-order: stroke fill; text-shadow: 2px 2px 0 #111; }
/* ILUSTRADA igual que ORDEN */
.marca .titulo-app span.t2 { color: inherit; -webkit-text-stroke: inherit; paint-order: inherit; text-shadow: inherit; }
/* títulos largos del reto: una línea con «…» para que no descuadre el marcador */
.juego-cab .juego-titulo { flex: 1 1 0; min-width: 0; font-size: 15px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.juego-cab .juego-hud { flex: none; }
.interruptor.mini { padding: 6px 10px; font-size: 13px; margin: 0 0 8px; } .interruptor.mini .int-bola { transform: scale(.85); }

/* Top Steam */
.steam-subidas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.steam-subida { display: flex; flex-direction: column; gap: 3px; padding: 5px; border: 3px solid var(--borde); border-radius: 10px; background: #1b1922; color: #fff; text-decoration: none; font-size: 12px; }
.steam-subida img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 6px; }
.steam-subida b { color: #ffd23f; line-height: 1.15; }
.steam-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steam-lista li a { display: grid; grid-template-columns: 38px 92px 1fr 70px; gap: 8px; align-items: center; padding: 6px 8px; background: #1b1922;
  border: 2px solid #33333f; border-radius: 12px; color: #fff; text-decoration: none; }
.steam-lista li.destacado a { border-color: var(--borde); }
.st-puesto { display: flex; flex-direction: column; align-items: center; font: 400 20px "Lilita One", sans-serif; }
.st-puesto span { font: 900 10px Nunito, sans-serif; }
.steam-lista img { width: 92px; height: 35px; object-fit: cover; border-radius: 5px; }
.st-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-txt b { color: #ffd23f; font-size: 14px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-txt small { font-size: 11.5px; color: #cfc9dc; }
.st-gratis { color: #39FF14; font-weight: 900; } .st-precio { color: #fff; font-weight: 800; } .st-rebaja { color: #39FF14; font-weight: 900; }
.st-sube { color: #39d353; font-weight: 900; } .st-baja { color: #ff6b6b; font-weight: 900; } .st-igual { color: #a9a3b5; } .st-nuevo { color: #ffd23f; }
.curvita { width: 70px; height: 22px; }

.tarjeta-juego.ya-jugado { opacity: .7; }
.tarjeta-juego.ya-jugado small { color: #1f9d3a; font-weight: 900; }

/* banderas junto al nick (país y comunidad autónoma) */
.band-nick { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; border: 1px solid #0006; margin-left: 4px; vertical-align: -1px; }
.perfil-nick .band-nick { width: 26px; height: 17px; }
.campo-pais { display: flex; flex-direction: column; gap: 6px; }
.campo-pais select { width: 100%; font: inherit; padding: 8px; border-radius: 10px; border: 2px solid var(--tinta); }

/* pizza saludando junto al título */
.pizza-saluda { flex: none; height: 48px; width: auto; margin: 0 2px -6px -6px; transform-origin: 50% 90%; animation: saluda 2.4s ease-in-out infinite; }
@keyframes saluda { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .pizza-saluda { animation: none; } }
@media (max-width: 420px) { .pizza-saluda { height: 40px; } .marca strong.titulo-app { font-size: 17px; gap: 6px; letter-spacing: .3px; } }
/* la pizza pegada al título: la marca ya no estira y el hueco va después de la pizza */
.cielo .marca { flex: 0 1 auto; }
.cielo .marca { margin-right: auto; }
/* la pizza que cruza andando la cabecera de vez en cuando (app.js le pone .anda) */
.paseo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.pizza-anda { position: absolute; bottom: 2px; left: 0; height: 46px; transform: translateX(-70px); visibility: hidden; }
.pizza-anda img { position: absolute; bottom: 0; left: 0; height: 46px; width: auto; }
.pizza-anda .pa2 { visibility: hidden; }
.pizza-anda.anda { visibility: visible; animation: cruza var(--dur, 9s) linear forwards, bota .5s ease-in-out infinite; }
.pizza-anda.anda .pa1 { animation: paso1 .5s steps(1) infinite; }
.pizza-anda.anda .pa2 { animation: paso2 .5s steps(1) infinite; }
@keyframes cruza { from { left: 0; transform: translateX(-70px); } to { left: 100%; transform: translateX(20px); } }
@keyframes bota { 0%, 50%, 100% { bottom: 2px; } 25%, 75% { bottom: 5px; } }
@keyframes paso1 { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes paso2 { 0% { visibility: hidden; } 50% { visibility: visible; } }
@media (prefers-reduced-motion: reduce) { .pizza-anda.anda { animation-duration: 9s, 0s; } }
.marca #estado { white-space: nowrap; font-size: 11.5px; }

/* tu ciudad en el mapa del tiempo */
.mt-pin { fill: #ff3b30; stroke: #111; stroke-width: 1.4; }
.mt-pin-ojo { fill: #fff; stroke: #111; stroke-width: 1; }
.mt-onda { fill: none; stroke: #ff3b30; stroke-width: 2; animation: onda 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes onda { from { transform: scale(.4); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.mt-tu-nombre { font: 900 12px Nunito, sans-serif; fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; }
.mt-tu-nombre { font-size: 10.5px; stroke-width: 3px; } .mt-pin { stroke-width: 1.1; }

/* 5 diferencias ya jugadas: en verde y con tu top */
.tarjeta-juego.ya-jugado { opacity: 1; background: #b9f5b0; border-color: #1f9d3a; }
.tarjeta-juego.ya-jugado .juego-info, .tarjeta-juego.ya-jugado .juego-info b { color: #0f3d14; }
.tarjeta-juego.ya-jugado small { color: #0f3d14; }
.top-pct { color: #fff; background: #1f9d3a; border-radius: 6px; padding: 0 6px; }
.top-de { font-weight: 700; opacity: .8; }

/* efemérides */
.efemeride { display: grid; grid-template-columns: 62px auto 1fr; gap: 10px; align-items: center; padding: 9px; margin-bottom: 7px;
  background: #fff; color: #111; border: 2px solid var(--tinta); border-radius: 13px; text-decoration: none; }
.efemeride.destacada { border-color: #ffd23f; box-shadow: 0 0 0 2px #ffd23f; }
.ef-anio { display: flex; flex-direction: column; align-items: center; }
.ef-anio b { font: 400 22px "Lilita One", sans-serif; color: #6A0DAD; }
.ef-anio small { font-size: 10.5px; color: #55505e; font-weight: 800; text-align: center; }
.efemeride img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; border: 1.5px solid var(--tinta); }
.ef-texto { font-size: 14px; line-height: 1.35; }

/* juegos que salen: portada, captura y pizzas de jugadores */
.juego-ficha { display: grid !important; grid-template-columns: 70px 1fr; gap: 9px; align-items: start; }
.juego-ficha .jg-portada { width: 70px !important; height: 100px !important; object-fit: cover; border-radius: 7px; border: 1.5px solid var(--tinta); }
.juego-ficha .jg-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.juego-ficha .jg-captura { grid-column: 1 / -1; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; border: 1.5px solid var(--tinta); }
.jg-jug { display: flex; align-items: center; gap: 1px; }
.jg-jug img { width: 18px !important; height: 24px !important; object-fit: contain; border: 0 !important; }
.jg-jug small { margin-left: 6px; font-size: 11.5px; font-weight: 800; color: #2b2b33; }
.jg-jug.sin { font-size: 11.5px; color: #55505e; font-weight: 700; }

/* Top Steam con portadas */
.steam-lista li a { grid-template-columns: 34px 54px 1fr 64px !important; }
.steam-lista img.st-portada { width: 54px !important; height: 80px !important; object-fit: cover; border-radius: 6px; border: 1.5px solid #000; }
.st-medalla { align-self: flex-start; font: 900 10.5px Nunito, sans-serif; color: #111; background: var(--borde); border-radius: 6px; padding: 1px 6px; margin-bottom: 2px; }
.steam-lista li.destacado a { border-width: 3px; }

.cartel-caja { position: relative; display: inline-block; }
.sello-peli { position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font: 400 11px "Lilita One", sans-serif;
  color: #fff; background: #e0332b; border: 1.5px solid #111; border-radius: 6px; padding: 1px 5px; }
.band-liga { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; border: 1px solid #0006; margin-left: 6px; }

/* resultados por días y clasificaciones */
.dias-dep { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 6px; }
.dias-dep .chip { flex: none; text-transform: capitalize; }
.ver-clasif { width: 100%; margin-bottom: 10px; }
.ver-clasif.activo { background: #ffd23f; color: #111; }
.grupo-clasif { margin: 6px 0 2px; font-weight: 900; color: #ffd23f; }
.clasif { margin-bottom: 10px; background: #fff; color: #111; border: 2px solid var(--tinta); border-radius: 12px; overflow: hidden; }
.clasif summary { cursor: pointer; padding: 8px 10px; font-weight: 900; }
.clasif table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.clasif th { background: #1b1922; color: #fff; padding: 5px 4px; font-weight: 900; }
.clasif td { padding: 5px 4px; text-align: center; border-top: 1px solid #eee; font-variant-numeric: tabular-nums; }
.clasif .izq { text-align: left; }
.clasif td.izq { display: flex; align-items: center; gap: 6px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.clasif td img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.clasif tr td:last-child { font-weight: 900; }

/* ¿Cuándo fue?: jugada en pequeño + la siguiente con candado */
.fechas-par { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; align-items: stretch; }
.fecha-tarjeta { display: flex; flex-direction: column; gap: 4px; padding: 7px; border: 2px solid var(--tinta); border-radius: 14px; background: #fff; color: #111; overflow: hidden; }
.fecha-tarjeta.hecha { background: #b9f5b0; border-color: #1f9d3a; }
.fecha-tarjeta.hecha.mal { background: #ffc2c2; border-color: #c0392b; }
.fecha-tarjeta.hecha.clavada { background: #8fe08f; box-shadow: 0 0 0 2px #39FF14; }
.ft-foto { width: 100%; height: 92px; object-fit: cover; border-radius: 9px; border: 1.5px solid var(--tinta); background: #fff; }
.ft-foto.sin { display: grid; place-items: center; font-size: 34px; }
.ft-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.25; }
.ft-info > b { font-size: 12.5px; }
.ft-pts { color: #0f3d14; }
.ft-fuente { font-size: 10.5px; color: #333; }
.fecha-tarjeta.bloqueada { align-items: center; justify-content: center; text-align: center; background: #1b1922; color: #fff; border-color: #33333f; }
.ft-candado { font-size: 38px; filter: grayscale(.2); }
.ft-cuenta { font: 400 24px "Lilita One", sans-serif; color: #39FF14; -webkit-text-stroke: 1px #6A0DAD; paint-order: stroke fill; }
.fecha-tarjeta.bloqueada small { color: #a9a3b5; }

/* vídeos: marcar como visto y sección «Vistos» */
.marcar-visto { margin: 6px 8px 8px; padding: 6px 10px; border-radius: 10px; border: 2px solid #1f9d3a; background: #b9f5b0; color: #0f3d14;
  font: 900 13px Nunito, sans-serif; cursor: pointer; }
.marcar-visto.quitar { border-color: #55505e; background: #eee; color: #333; }
.video.saliendo { transition: transform .25s, opacity .25s; transform: scale(.9); opacity: 0; }
.canal-vistos .ojo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1f9d3a; color: #fff; font-weight: 900; }

/* clasificaciones (plantilla aprobada de Codex: lista vertical, título rosa, filete verde, fondo gris cálido) */
.comp-clasif { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 8px; }
.comp-clasif .chip { flex: none; }
.clasif-panel { background: #2e2b29; border-radius: 12px; padding: 10px 10px 12px; color: #fff; }
.cl-titulo { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid #39d353;
  font: 400 22px "Lilita One", sans-serif; color: #ff3fa4; }
.cl-titulo img { width: 26px; height: 17px; object-fit: cover; border-radius: 3px; }
.cl-grupo { margin: 10px 0 4px; font-weight: 900; color: #ff3fa4; }
.cl-cab, .cl-fila { display: grid; grid-template-columns: 22px 12px 22px 1fr 54px 34px 24px; gap: 5px; align-items: center; }
.cl-cab { font-size: 11px; font-weight: 900; color: #d8d3cf; padding: 0 0 3px; }
.cl-cab span:nth-child(n+5) { text-align: center; }
.cl-fila { padding: 3px 0; font-size: 14px; }
.cl-fila img { width: 20px; height: 20px; object-fit: contain; }
.cl-pos { font-weight: 900; color: #6fb2ff; text-align: right; }
.cl-fila i { font-style: normal; font-size: 9px; }
.cl-sube { color: #39d353; } .cl-baja { color: #ff5a5a; }
.cl-n { font-weight: 900; color: #ffd23f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-n small { display: block; font-size: 10.5px; color: #cfc9c4; font-weight: 700; }
.cl-forma { display: flex; justify-content: center; gap: 4px; }
.cl-forma i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.b-v { background: #39d353; } .b-e { background: #ffd23f; } .b-d { background: #ff5a5a; } .b-x { background: #55504c; }
.cl-pts { text-align: center; color: #6fb2ff; } .cl-pj { text-align: center; color: #6fb2ff; font-weight: 900; }
.cl-fila.zona-verde { box-shadow: inset 4px 0 0 #39d353; background: #39d35318; }
.cl-fila.zona-amarillo { box-shadow: inset 4px 0 0 #ffd23f; background: #ffd23f14; }
.cl-fila.zona-rojo { box-shadow: inset 4px 0 0 #ff5a5a; background: #ff5a5a18; }
.cl-leyenda { margin: 8px 0 0; font-size: 11.5px; color: #d8d3cf; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cl-leyenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.z-v { background: #39d353; } .z-a { background: #ffd23f; } .z-r { background: #ff5a5a; }
.cl-cab.motor, .cl-fila.motor { grid-template-columns: 24px 26px 1fr 50px; }
.cl-fila.motor .cl-n { color: #fff; }
.cl-fila.motor.espanol .cl-n { color: #39d353; }
.cl-fila.motor.lider .cl-pts, .cl-fila.motor.lider .cl-n { color: #ffd23f; }
.cl-band { width: 24px !important; height: 16px !important; object-fit: cover !important; border-radius: 2px; }

/* gráfica de vídeos vistos */
.grafica-vistos { grid-column: 1 / -1; background: #1b1922; border: 2px solid #33333f; border-radius: 14px; padding: 12px; color: #fff; }
.gv-cab { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.gv-cab b { font: 400 34px "Lilita One", sans-serif; color: #39FF14; }
.gv-top { margin-left: auto; background: #ffd23f; color: #111; font-weight: 900; border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.gv-fila { display: grid; grid-template-columns: 26px 1fr 1.2fr 44px 38px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.gv-fila img { width: 26px; height: 26px; border-radius: 50%; }
.gv-nom { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-barra { height: 12px; border-radius: 6px; background: #33333f; overflow: hidden; }
.gv-barra i { display: block; height: 100%; background: #39d353; border-radius: 6px; }
.gv-pct { text-align: right; } .gv-fila small { color: #a9a3b5; }
.ver-mas-vistos { grid-column: 1 / -1; width: 100%; margin-top: 6px; }

/* vistos: lista sencilla, sin miniaturas */
.lista-vistos { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; background: #fff; color: #111; border: 2px solid var(--tinta); border-radius: 12px; overflow: hidden; }
.lista-vistos li { display: grid; grid-template-columns: 20px 1fr 34px; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid #eee; cursor: pointer; font-size: 13.5px; }
.lista-vistos li:first-child { border-top: 0; }
.lv-check { color: #1f9d3a; font-weight: 900; }
.lv-tit { line-height: 1.25; }
.lv-quitar { border: 1.5px solid #ccc; background: #f4f4f4; border-radius: 8px; padding: 3px 0; cursor: pointer; font-weight: 900; }
.lista-vistos li.saliendo { transition: opacity .25s; opacity: 0; }

/* vistos en negro con el logo del canal */
.lista-vistos { background: #111; color: #fff; border-color: #33333f; }
.lista-vistos li { grid-template-columns: 28px 1fr 34px; border-top-color: #26242c; }
.lv-canal { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #39d353; }
.lv-quitar { background: #26242c; border-color: #44414b; color: #fff; }

/* conquista */
.conq-yo { background: #1b1922; border: 2px solid #33333f; border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.conq-yo p { margin: 4px 0; }
.conq-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.conq-color { display: inline-block; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #fff; vertical-align: -4px; }
.conq-color.mini { width: 12px; height: 12px; border-width: 1px; margin-right: 5px; vertical-align: -1px; }
.conq-vida { font-size: 12px; letter-spacing: -1px; }
.conq-orden, .conq-aviso { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; }
.conq-aviso { color: #ff6b6b; }
.conq-def { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; font-weight: 800; }
.carta { font-size: 20px; width: 42px; height: 42px; border-radius: 10px; border: 2px solid #44414b; background: #26242c; cursor: pointer; }
.carta.grande { width: 72px; height: 78px; font-size: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border-color: #111; }
.carta.grande small { font: 900 11px Nunito, sans-serif; color: #111; }
.conq-zoom { display: flex; gap: 6px; margin-bottom: 6px; }
.conq-mapa-caja { overflow: auto; height: 62vh; max-height: 620px; border: 2px solid #33333f; border-radius: 12px; background: #0d2238; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.conq-lienzo { position: relative; }
#conq-mapa { position: absolute; left: 0; top: 0; display: block; cursor: crosshair; }
.conq-leyenda { font-size: 12px; color: #aaa; margin: 6px 2px 0; }
.conq-leyenda .amarilla { color: #FFD60A; }
.conq-panel { margin: 8px 0; }
.conq-panel:empty { display: none; }
.conq-panel > * { margin: 6px 0; }
.conq-sel { background: #fff; color: #111; border-radius: 10px; padding: 8px 10px; font-weight: 800; }
.conq-cartas { display: flex; gap: 8px; }
.conq-error { color: #ff6b6b; font-weight: 800; }
.conq-partes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.conq-partes li { background: #1b1922; border: 1.5px solid #33333f; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }

/* IIIGM: mazo y cartas con dibujo */
.barra button { min-width: 0; }
.conq-mazo { display: flex; gap: 10px; margin: 8px 0; }
.mazo-carta { position: relative; display: flex; flex-direction: column; align-items: center; }
.mazo-carta b { position: absolute; bottom: -6px; right: -6px; background: #ffd23f; color: #111; border: 2px solid #111; border-radius: 10px; padding: 0 6px; font-size: 13px; }
.carta-dib { display: inline-grid; place-items: center; width: 62px; height: 92px; font-size: 34px; }
.carta-dib img { width: 100%; height: 100%; object-fit: contain; }
.carta-dib.mini { width: 26px; height: 38px; font-size: 18px; vertical-align: middle; }
.carta { width: auto; height: auto; padding: 2px; display: inline-grid; place-items: center; }
.carta.grande { width: 86px; height: auto; padding: 4px 2px; }
.carta.grande .carta-dib { width: 74px; height: 108px; }
.conq-yo .boton-sec, .conq-panel .boton-sec { background: #ffd23f; color: #111; border: 2px solid #111; font-weight: 900; }

/* IIIGM: ficha del dueño de un píxel */
.conq-dueno { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #1b1922; border: 3px solid var(--c); }
.cd-avatar { width: 56px; height: 56px; flex: none; }
.cd-avatar > * { width: 100%; height: 100%; }
.cd-txt { display: flex; flex-direction: column; gap: 3px; color: #fff; }
.cd-txt b { font-size: 17px; }
.cd-txt small { color: #cfc9dc; font-weight: 800; }
.cd-aislado { color: #ffd23f !important; }

/* IIIGM: resolución animada de un combate */
.hoja-combate { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 14px; background: #000c; }
.combate { position: relative; width: min(440px, 100%); background: #1b1922; color: #fff; border: 3px solid #ffd23f; border-radius: 16px; padding: 14px; }
.cerrar-combate { position: absolute; top: 8px; right: 8px; }
.cb-titulo { margin: 0 0 6px; font: 400 24px "Lilita One", sans-serif; color: #ffd23f; }
.cb-lados { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.cb-atq { color: #ff6b6b; } .cb-def { color: #6fb2ff; }
.cb-ronda { display: grid; grid-template-columns: 28px 64px 30px 64px 1fr; gap: 6px; align-items: center; margin: 6px 0; opacity: 0; transform: translateY(10px); transition: all .4s; }
.cb-ronda.visible { opacity: 1; transform: none; }
.cb-n { font-weight: 900; color: #cfc9dc; }
.cb-vs { font: 400 16px "Lilita One", sans-serif; color: #ffd23f; text-align: center; }
.cb-carta .carta-dib { width: 60px; height: 88px; }
.cb-ronda.visible .cb-carta.muere { position: relative; animation: muere .6s .5s forwards; }
.cb-ronda.visible .cb-carta.muere::after { content: "💀"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; opacity: 0; animation: calavera .4s .9s forwards; }
@keyframes muere { to { filter: grayscale(1) brightness(.5); transform: rotate(-8deg) scale(.92); } }
@keyframes calavera { to { opacity: 1; } }
.cb-res { font-size: 12.5px; font-weight: 900; }
.cb-final { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity .5s; }
.cb-final.visible { opacity: 1; }
.cb-final b { font: 400 22px "Lilita One", sans-serif; }
.cb-final b.bien { color: #39FF14; } .cb-final b.mal { color: #ff6b6b; }
.cb-final small { color: #cfc9dc; font-weight: 800; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ver-combate { margin-left: 6px; padding: 3px 10px; }
.cerrar-combate, .cerrar-ficha { background: #ffd23f !important; color: #111 !important; border: 2px solid #111 !important; font-weight: 900; width: 34px; height: 34px; padding: 0 !important; }
.cb-res.tuya { color: #39FF14; } .cb-res.suya { color: #ff6b6b; }
.cb-final b.empate { color: #ffd23f; }
.conq-rondas .rg { color: #1f9d3a; font-weight: 900; } .conq-rondas .rp { color: #c0392b; font-weight: 900; }

/* IIIGM: varios ejércitos al día */
.conq-ejercitos-tit { margin: 8px 0 4px; font-weight: 800; }
.conq-ejercitos-tit small { color: #999; font-weight: 600; }
.conq-ejercito { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #26242c; border: 2px solid #FFD60A; border-radius: 10px; padding: 6px 8px; margin: 4px 0; font-weight: 800; }
.conq-ejercito .ce-donde { flex: 1 1 100%; }
.conq-ejercito .ce-cartas { display: inline-flex; align-items: center; gap: 2px; }
.conq-ejercito .boton-sec { padding: 4px 10px; }
.conq-fila-tit { margin: 8px 0 2px; font-weight: 800; }
.conq-def .def-mar { font-size: 12px; color: #6cc4ff; margin-left: 4px; }
.conq-def .carta-mar { border-color: #2f7fbf; background: #0d2238; }
.conq-def-mar span { color: #6cc4ff; }
.conq-def-mar small { color: #999; font-weight: 600; }
/* 5-6 cartas por ataque: más pequeñas y que bajen de línea si no caben */
.conq-cartas { flex-wrap: wrap; gap: 5px; }
.carta.grande { width: 56px; }
.carta.grande .carta-dib { width: 48px; height: 70px; }
.carta.grande small { font-size: 9.5px; }
.conq-def { flex-wrap: wrap; }
.mazo-carta .mazo-libres { display: block; margin-top: 12px; font-size: 11px; color: #9fd; font-weight: 800; white-space: nowrap; }
.mazo-carta b { bottom: auto; top: 78px; }
/* banderas pegadas al nick, en la misma línea */
.nick-y-band { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 0; max-width: 100%; vertical-align: middle; }
.nick-y-band > .nick-bands { display: inline-flex; flex-shrink: 0; align-items: center; }
.nick-y-band .band-nick { display: inline-block; vertical-align: middle; }
