/* ⏳ Mientras juegan: 🎯 bingo, 🧩 sudoku y el aviso 👀 comunes. Bingo del parque: cartón 3×3 de pegatinas; lo marcado en amarillo y la línea en verde */
.bingo { padding: 14px; margin-top: 8px; }
.cabeza-bingo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cabeza-bingo h1 { font-size: 24px; margin: 0; }
.carton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.casilla { aspect-ratio: 1; border: 2.5px solid var(--tinta); border-radius: 14px; background: var(--papel); color: var(--tinta);
  display: grid; place-items: center; text-align: center; padding: 4px; font: 800 13px/1.15 "Nunito", sans-serif; position: relative;
  cursor: pointer; transition: transform .1s; }
.casilla:active { transform: scale(.96); }
.casilla .e { display: block; font-size: 26px; margin-bottom: 2px; }
.casilla[aria-pressed="true"] { background: color-mix(in srgb, var(--amarillo) 50%, var(--papel)); }
.casilla[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 2px; right: 7px; font: 700 20px "Fredoka", sans-serif; color: var(--verde); }
.casilla.linea { box-shadow: 0 0 0 3px var(--verde); }
.celebra { margin-top: 10px; padding: 10px; border-radius: 14px; text-align: center; font: 700 22px "Fredoka", sans-serif;
  background: color-mix(in srgb, var(--verde) 20%, var(--papel)); border: 2.5px solid var(--verde); }
.celebra[hidden] { display: none; }
.botones-bingo { display: grid; gap: 8px; margin-top: 12px; }
.botones-bingo .boton-texto { width: 100%; text-align: center; }
.botones-bingo .principal { background: var(--amarillo); color: #2a2b3d; }
.botones-bingo [aria-pressed="false"] { opacity: .6; }
.leyenda-bingo { font-size: 13px; color: var(--suave); margin: 10px 0 0; }
.toast-vista { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(92vw, 420px); z-index: 950;
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #2a2b3d; color: #fff; box-shadow: 4px 4px 0 var(--amarillo); }
.toast-vista[hidden] { display: none; }
.toast-vista .e { font-size: 30px; }
.toast-vista span:nth-child(2) { flex: 1; }
.toast-vista b { display: block; font: 600 17px "Fredoka", sans-serif; }
.toast-vista small { opacity: .85; }
.toast-vista .boton-texto { background: var(--amarillo); color: #2a2b3d; }
/* 🧩 sudoku 6×6 (bloques de 2×3) */
#niveles { margin-top: 8px; }
.sudoku { display: grid; grid-template-columns: repeat(6, 1fr); width: min(100%, 330px); margin: 10px auto 0; border: 3px solid var(--tinta); border-radius: 12px; overflow: hidden; }
.sudoku .s { aspect-ratio: 1; border: 0; border-right: 1px solid var(--suave); border-bottom: 1px solid var(--suave); background: var(--papel);
  font: 600 22px "Fredoka", sans-serif; color: var(--tinta); padding: 0; cursor: pointer; }
.sudoku .s:nth-child(6n) { border-right: 0; }
.sudoku .s:nth-child(6n+3) { border-right: 3px solid var(--tinta); }
.sudoku .s:nth-child(n+7):nth-child(-n+12), .sudoku .s:nth-child(n+19):nth-child(-n+24) { border-bottom: 3px solid var(--tinta); }
.sudoku .s:nth-child(n+31) { border-bottom: 0; }
.sudoku .mia { color: var(--azul); }
.sudoku .igual { background: color-mix(in srgb, var(--azul) 12%, var(--papel)); }
.sudoku .sel { background: color-mix(in srgb, var(--amarillo) 50%, var(--papel)); }
.sudoku .choca { color: var(--rojo); background: color-mix(in srgb, var(--rojo) 14%, var(--papel)); }
.numeros { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: min(100%, 330px); margin: 10px auto 0; }
.numeros button { aspect-ratio: 1; border: 2.5px solid var(--tinta); border-radius: 12px; background: var(--chip); font: 700 20px "Fredoka", sans-serif; color: var(--tinta); box-shadow: 2px 2px 0 var(--sombra); }
.numeros button:active { transform: translate(2px, 2px); box-shadow: none; }
/* portada de juegos */
.juegos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.juego { padding: 12px; border-radius: 14px; border: 2.5px solid var(--tinta); background: var(--papel); box-shadow: 3px 3px 0 var(--sombra); color: var(--tinta); text-decoration: none; }
.juego b { font-family: "Fredoka", sans-serif; font-size: 17px; display: block; }
.juego small { color: var(--suave); font-weight: 700; }
.juego .emo { font-size: 30px; }
/* 🏃 corre por el parque: lienzo pixel art escalado sin suavizar */
.lienzo-corre { display: block; width: 100%; aspect-ratio: 160 / 88; margin-top: 8px; border: 2.5px solid var(--tinta); border-radius: 12px;
  image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; background: var(--papel); }
.mandos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mandos .boton-texto { padding: 14px 0; font-size: 18px; text-align: center; user-select: none; -webkit-user-select: none; touch-action: none; }
.mandos .principal { background: var(--amarillo); color: #2a2b3d; }
.caja-corre { position: relative; }
.aviso-corre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  pointer-events: none; text-align: center; padding: 10px 14px 40px; }
.aviso-corre[hidden] { display: none; }
.aviso-corre b { font: 600 22px "Fredoka", sans-serif; }
.aviso-corre small { font-weight: 800; font-size: 14px; color: var(--suave); background: color-mix(in srgb, var(--papel) 80%, transparent); border-radius: 8px; padding: 0 6px; }
.marcador-corre { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 1px 8px; }
.agachar-mini { display: none; }
/* 📱↔️ móvil girado: el juego a pantalla completa, sin nada más */
body.apaisado { overflow: hidden; }
body.apaisado .caja-corre { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; align-items: center; justify-content: center; }
body.apaisado .lienzo-corre { width: auto; height: 100vh; height: 100dvh; max-width: 100vw; margin: 0; border: 0; border-radius: 0; }
body.apaisado .marcador-corre { top: 10px; right: 14px; font-size: 14px; }
body.apaisado .agachar-mini { display: grid; place-items: center; position: absolute; left: 14px; bottom: 14px; width: 56px; height: 56px;
  border-radius: 50%; border: 2.5px solid var(--tinta); background: var(--papel); font-size: 24px; opacity: .85; touch-action: none; }
body.apaisado .aviso-corre b { font-size: 30px; }
body.apaisado .aviso-corre small { font-size: 17px; }
/* 🍎 merienda en raya: tablero 7×7 */
.tablero-merienda { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; padding: 6px; border: 2.5px solid var(--tinta);
  border-radius: 14px; background: var(--chip); touch-action: none; user-select: none; -webkit-user-select: none; }
.pieza { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--papel); font-size: clamp(20px, 7vw, 30px); line-height: 1; padding: 0;
  display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .2s; }
.pieza.sel { box-shadow: 0 0 0 3px var(--amarillo); transform: scale(1.08); }
.pieza.fuera { transform: scale(.2) rotate(30deg); opacity: 0; }
.pieza.nueva { animation: cae .25s ease-out; }
@keyframes cae { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
