/* RECREO — identidad: cuaderno de patio, pegatinas, tinta gruesa y sombras duras. */
:root {
  --papel: #fff4de;
  --papel-2: #ffe9bf;
  --tinta: #1b1a1f;
  --gris: #5d5866;
  --blanco: #fffdf8;
  --tomate: #ff5a36;
  --sol: #ffc83d;
  --menta: #2ec4a6;
  --cielo: #3d8bff;
  --chicle: #ff7eb6;
  --uva: #8a6bff;
  --ok: #19b36b;
  --mal: #ff3b3b;
  --borde: 3px solid var(--tinta);
  --sombra: 4px 4px 0 var(--tinta);
  --sombra-g: 6px 6px 0 var(--tinta);
  --radio: 18px;
  --fuente: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ancho: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--fuente); color: var(--tinta); line-height: 1.5;
  background-color: var(--papel);
  background-image: radial-gradient(rgba(27, 26, 31, .09) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; }
.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--papel); border-bottom: var(--borde); }
.cabecera .envoltura { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: inline-flex; gap: 2px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.logo span { display: inline-grid; place-items: center; width: 26px; height: 30px; border: 2.5px solid var(--tinta); border-radius: 7px; background: var(--blanco); box-shadow: 2px 2px 0 var(--tinta); }
.logo span:nth-child(1) { background: var(--tomate); color: var(--blanco); transform: rotate(-6deg); }
.logo span:nth-child(2) { background: var(--sol); transform: rotate(4deg); }
.logo span:nth-child(3) { background: var(--menta); transform: rotate(-3deg); }
.logo span:nth-child(4) { background: var(--cielo); color: var(--blanco); transform: rotate(5deg); }
.logo span:nth-child(5) { background: var(--chicle); transform: rotate(-5deg); }
.logo span:nth-child(6) { background: var(--uva); color: var(--blanco); transform: rotate(3deg); }
.nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav a { text-decoration: none; font-weight: 800; padding: 6px 10px; border-radius: 10px; }
.nav a:hover { background: var(--papel-2); }
.icono-btn { width: 40px; height: 40px; display: grid; place-items: center; border: var(--borde); border-radius: 12px; background: var(--blanco); box-shadow: 2px 2px 0 var(--tinta); font-size: 18px; }
.icono-btn:active { transform: translate(2px, 2px); box-shadow: none; }
@media (max-width: 560px) { .nav .ocultar-movil { display: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border: var(--borde); border-radius: 14px;
  background: var(--blanco); box-shadow: var(--sombra); font-weight: 900; font-size: 17px;
  text-decoration: none; transition: transform .08s, box-shadow .08s; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinta); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--tinta); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-tomate { background: var(--tomate); color: var(--blanco); }
.btn-sol { background: var(--sol); }
.btn-menta { background: var(--menta); }
.btn-cielo { background: var(--cielo); color: var(--blanco); }
.btn-uva { background: var(--uva); color: var(--blanco); }
.btn-chicle { background: var(--chicle); }
.btn-wa { background: #25d366; }
.btn-grande { min-height: 64px; font-size: 20px; padding: 14px 28px; }
.btn-ancho { width: 100%; }
.btn-peq { min-height: 40px; padding: 6px 14px; font-size: 15px; box-shadow: 3px 3px 0 var(--tinta); }
.fila-btn { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Portada ---------- */
.heroe { padding: 26px 0 8px; text-align: center; }
.heroe .fila-btn .btn { flex: 1 1 140px; max-width: 240px; white-space: nowrap; padding-left: 14px; padding-right: 14px; font-size: 18px; }
.heroe h1 { font-size: clamp(31px, 8vw, 64px); line-height: 1.02; margin: 0 0 10px; letter-spacing: -1px; }
.heroe h1 .subrayado { background: linear-gradient(transparent 58%, var(--sol) 58%, var(--sol) 92%, transparent 92%); padding: 0 4px; }
.heroe p { font-size: clamp(17px, 3.6vw, 21px); color: var(--gris); margin: 0 auto 22px; max-width: 34ch; font-weight: 600; }
.pegatina { display: inline-block; background: var(--tinta); color: var(--sol); font-weight: 900; padding: 4px 12px; border-radius: 999px; transform: rotate(-2deg); font-size: 14px; margin-bottom: 14px; }

.tarjeta-diaria {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  margin: 18px 0 8px; padding: 16px; border: var(--borde); border-radius: var(--radio); background: var(--sol);
  box-shadow: var(--sombra-g); text-decoration: none;
}
.tarjeta-diaria .grande { font-size: 40px; }
.tarjeta-diaria strong { font-size: 20px; display: block; line-height: 1.1; }
.tarjeta-diaria small { font-weight: 700; color: #4a3b00; }
.racha { display: inline-flex; align-items: center; gap: 4px; background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 999px; padding: 4px 10px; font-weight: 900; white-space: nowrap; }

.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 10px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 2.5px solid var(--tinta); border-radius: 999px; padding: 7px 14px; background: var(--blanco); font-weight: 800; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--tinta); color: var(--sol); }

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; padding: 8px 0 28px; }
.tarjeta {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; min-height: 170px;
  border: var(--borde); border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra);
  text-decoration: none; transition: transform .12s, box-shadow .12s;
}
.tarjeta:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 7px 7px 0 var(--tinta); }
.tarjeta .ico { width: 58px; height: 58px; display: grid; place-items: center; font-size: 32px; border: var(--borde); border-radius: 16px; transform: rotate(-4deg); }
.tarjeta h3 { margin: 8px 0 0; font-size: 21px; line-height: 1.15; }
.tarjeta p { margin: 0; color: var(--gris); font-size: 15px; font-weight: 600; }
.tarjeta .meta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 800; color: var(--gris); display: flex; gap: 10px; flex-wrap: wrap; }
.fav { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; filter: grayscale(1) opacity(.45); }
.fav[aria-pressed="true"] { filter: none; }
.fondo-tomate { background: var(--tomate); } .fondo-sol { background: var(--sol); } .fondo-menta { background: var(--menta); }
.fondo-cielo { background: var(--cielo); } .fondo-chicle { background: var(--chicle); } .fondo-uva { background: var(--uva); }
.seccion-titulo { font-size: 24px; margin: 18px 0 0; }

/* ---------- Página de juego ---------- */
.migas { font-size: 14px; font-weight: 700; color: var(--gris); padding: 14px 0 4px; }
.migas a { text-decoration: none; }
.migas a:hover { text-decoration: underline; }
.cab-juego { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.cab-juego .ico { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 28px; border: var(--borde); border-radius: 14px; transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--tinta); }
.cab-juego h1 { margin: 0; font-size: clamp(24px, 5.4vw, 38px); line-height: 1.1; }
.cab-juego p { margin: 2px 0 0; color: var(--gris); font-weight: 700; font-size: 15px; }
.cab-juego .fav { position: static; margin-left: auto; flex: none; }

.escenario {
  position: relative; min-height: 440px; border: var(--borde); border-radius: 22px; background: var(--blanco);
  box-shadow: var(--sombra-g); padding: 20px; overflow: hidden; display: flex; flex-direction: column;
}
.escenario.lleno { padding: 0; }
.pantalla { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; animation: entra .28s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pantalla h2 { margin: 0; font-size: clamp(24px, 6vw, 34px); line-height: 1.1; }
.pantalla .sub { margin: 0; color: var(--gris); font-weight: 700; max-width: 36ch; }
.marcador { display: flex; gap: 10px; justify-content: space-between; width: 100%; font-weight: 900; }
.marcador .pill { border: 2.5px solid var(--tinta); border-radius: 999px; padding: 4px 12px; background: var(--papel); }
.carta {
  width: 100%; max-width: 520px; border: var(--borde); border-radius: 20px; padding: 26px 20px; background: var(--papel);
  box-shadow: var(--sombra); font-size: clamp(21px, 5vw, 28px); font-weight: 900; line-height: 1.25;
}
.carta .tipo { display: inline-block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border: 2px solid var(--tinta); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; background: var(--blanco); }
.pista { font-size: 14px; font-weight: 700; color: var(--gris); }
.campo { width: 100%; max-width: 360px; border: var(--borde); border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 700; background: var(--blanco); }
.contador { display: flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 900; }
.contador button { width: 52px; height: 52px; border: var(--borde); border-radius: 14px; background: var(--sol); box-shadow: 3px 3px 0 var(--tinta); font-size: 26px; font-weight: 900; }
.lista-jug { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; }
.lista-jug .chip { display: inline-flex; gap: 6px; align-items: center; }
.lista-jug .chip button { border: 0; background: none; padding: 0 0 0 2px; font-weight: 900; }
.opciones { display: grid; gap: 12px; width: 100%; max-width: 520px; }
.opcion { text-align: left; border: var(--borde); border-radius: 14px; padding: 14px 16px; background: var(--blanco); box-shadow: 3px 3px 0 var(--tinta); font-weight: 800; font-size: 17px; }
.opcion.ok { background: var(--ok); color: var(--blanco); }
.opcion.mal { background: var(--mal); color: var(--blanco); }
.explicacion { max-width: 520px; background: var(--papel); border: 2.5px dashed var(--tinta); border-radius: 14px; padding: 12px 14px; font-weight: 600; text-align: left; }

/* Fin de partida */
.fin { position: absolute; inset: 0; z-index: 5; background: var(--papel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px; text-align: center; animation: entra .3s ease-out; overflow-y: auto; }
.fin .puntos { font-size: clamp(56px, 16vw, 92px); font-weight: 900; line-height: 1; }
.fin .record { background: var(--tomate); color: var(--blanco); border: var(--borde); border-radius: 999px; padding: 4px 14px; font-weight: 900; transform: rotate(-3deg); animation: late 1s ease-in-out infinite; }
@keyframes late { 50% { transform: rotate(3deg) scale(1.06); } }
.recomendados { width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.recomendados a { border: 2.5px solid var(--tinta); border-radius: 14px; padding: 10px 6px; background: var(--blanco); text-decoration: none; font-weight: 800; font-size: 13px; line-height: 1.2; box-shadow: 2px 2px 0 var(--tinta); }
.recomendados a span { display: block; font-size: 26px; margin-bottom: 4px; }

/* Hueco publicitario: reservado (evita saltos de diseño), vacío hasta que AdSense esté activo */
.anuncio { margin: 26px auto; text-align: center; min-height: 0; }
.anuncio.activo { min-height: 280px; }
.anuncio.activo::before { content: "Publicidad"; display: block; font-size: 11px; letter-spacing: 1px; color: var(--gris); text-transform: uppercase; margin-bottom: 4px; }

/* Contenido SEO */
.contenido { max-width: 720px; margin: 34px auto 10px; font-size: 17px; }
.contenido h2 { font-size: 26px; line-height: 1.15; margin: 34px 0 10px; }
.contenido h3 { font-size: 20px; margin: 22px 0 6px; }
.contenido ul, .contenido ol { padding-left: 22px; }
.contenido li { margin: 4px 0; }
.lista-preguntas { columns: 2 280px; column-gap: 28px; }
.lista-preguntas li { break-inside: avoid; }
details { border: 2.5px solid var(--tinta); border-radius: 14px; background: var(--blanco); padding: 12px 16px; margin: 10px 0; }
details summary { font-weight: 800; cursor: pointer; }
.relacionados { padding: 10px 0 30px; }

/* Pie */
.pie { border-top: var(--borde); background: var(--tinta); color: var(--papel); margin-top: 30px; }
.pie .envoltura { padding: 26px 16px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.pie a { color: var(--papel); text-decoration: none; font-weight: 700; font-size: 14px; }
.pie a:hover { text-decoration: underline; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pie small { opacity: .7; }

/* Juegos concretos */
.mom { display: grid; grid-template-rows: 1fr auto 1fr; height: 100%; min-height: 520px; width: 100%; }
.mom .lado { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center; }
.mom .lado.a { background: var(--cielo); color: var(--blanco); }
.mom .lado.b { background: var(--tomate); color: var(--blanco); }
.mom .nombre { font-size: clamp(20px, 5.4vw, 28px); font-weight: 900; line-height: 1.15; max-width: 22ch; }
.mom .valor { font-size: clamp(34px, 10vw, 52px); font-weight: 900; line-height: 1; }
.mom .unidad { font-weight: 800; opacity: .9; }
.mom .vs { justify-self: center; margin: -26px 0; z-index: 2; width: 58px; height: 58px; border-radius: 50%; border: var(--borde); background: var(--sol); display: grid; place-items: center; font-weight: 900; font-size: 18px; box-shadow: 3px 3px 0 var(--tinta); transition: background .2s; }
.mom .vs.ok { background: var(--ok); color: var(--blanco); } .mom .vs.mal { background: var(--mal); color: var(--blanco); }
.mom .botones { display: flex; gap: 10px; margin-top: 6px; }
.mom .botones .btn { min-width: 130px; color: var(--tinta); }
.mom .barra { position: absolute; top: 10px; left: 12px; right: 12px; width: auto; z-index: 3; }
.mom .pregunta { font-weight: 800; opacity: .95; }

.reflejos { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background .1s; cursor: pointer; }
.reflejos.espera { background: var(--mal); color: var(--blanco); }
.reflejos.ya { background: var(--ok); color: var(--blanco); }
.reflejos.info { background: var(--cielo); color: var(--blanco); }
.reflejos .ms { font-size: clamp(54px, 16vw, 96px); font-weight: 900; line-height: 1; }

.rejilla-emoji { display: grid; gap: 4px; width: 100%; max-width: 440px; aspect-ratio: 1; }
.rejilla-emoji button { border: 0; background: var(--papel); border-radius: 10px; display: grid; place-items: center; padding: 0; line-height: 1; touch-action: manipulation; }
.rejilla-emoji button:active { background: var(--papel-2); }
.rejilla-emoji button.mal { background: var(--mal); }
.rejilla-emoji button.ok { background: var(--ok); }
.tiempo { width: 100%; height: 12px; border: 2.5px solid var(--tinta); border-radius: 999px; overflow: hidden; background: var(--papel); }
.tiempo i { display: block; height: 100%; background: var(--menta); transition: width .25s linear; }

.dilema { display: grid; gap: 12px; width: 100%; max-width: 560px; }
.dilema button { min-height: 120px; border: var(--borde); border-radius: 20px; padding: 18px; font-size: clamp(19px, 4.8vw, 24px); font-weight: 900; line-height: 1.2; box-shadow: var(--sombra); color: var(--blanco); position: relative; }
.dilema button:active { transform: translate(4px, 4px); box-shadow: none; }
.dilema .a { background: var(--cielo); } .dilema .b { background: var(--tomate); }
.dilema .o { justify-self: center; font-weight: 900; margin: -6px 0; }
.dilema button.elegido { outline: 5px solid var(--sol); outline-offset: -9px; }
.dilema button.no { opacity: .45; }

.resultado-diario { font-size: 34px; letter-spacing: 4px; }
.revelar { width: 100%; max-width: 420px; min-height: 220px; border: var(--borde); border-radius: 22px; display: grid; place-items: center; padding: 20px; background: var(--uva); color: var(--blanco); box-shadow: var(--sombra); font-weight: 900; font-size: 22px; }
.revelar.palabra { background: var(--sol); color: var(--tinta); font-size: clamp(30px, 9vw, 46px); }
.revelar.impostor { background: var(--tinta); color: var(--tomate); font-size: clamp(26px, 7vw, 38px); }

/* Tableros */
.tablero { display: grid; gap: 8px; width: 100%; }
.tablero.t3 { grid-template-columns: repeat(3, 1fr); max-width: 330px; }
.casilla { aspect-ratio: 1; border: var(--borde); border-radius: 16px; background: var(--papel); font-size: clamp(44px, 14vw, 64px); font-weight: 900; box-shadow: 3px 3px 0 var(--tinta); padding: 0; }
.casilla.fX { color: var(--tomate); } .casilla.fO { color: var(--cielo); }
.casilla.gana, .hueco.gana { background: var(--sol); animation: late .8s ease-in-out infinite; }
.tablero.t4 { grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 460px; background: var(--cielo); border: var(--borde); border-radius: 18px; padding: 8px; box-shadow: var(--sombra); }
.hueco { aspect-ratio: 1; border-radius: 50%; border: 2.5px solid var(--tinta); background: var(--papel); padding: 0; }
.hueco.fR { background: var(--tomate); } .hueco.fA { background: var(--sol); }
.hueco.gana { outline: 4px solid var(--blanco); }
.botonera { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 420px; }
.botonera button { min-height: 72px; font-size: 28px; }
.simon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 330px; }
.simon button { aspect-ratio: 1; border: var(--borde); border-radius: 18px; box-shadow: 3px 3px 0 var(--tinta); opacity: .55; transition: opacity .1s, transform .1s; }
.simon button.luz { opacity: 1; transform: scale(1.06); }
.emojis-peli { font-size: clamp(44px, 13vw, 64px); letter-spacing: 6px; line-height: 1.2; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
