/* AURORA — estilos. Misma familia visual que Shhhot (colores, tipografía y botones), con todo más grande:
   la letra se mide en rem y el tamaño base lo elige cada persona (A− / A+). Tema oscuro y tema claro. */
:root {
  --fondo: #17132B;
  --fondo-2: #241E3F;
  --fondo-3: #2E2752;
  --fondo-4: #3A3266;
  --borde: #7A72A8;
  --texto: #FFFFFF;
  --suave: #D3CEE6;
  --acento: #FFD23F;        /* color de texto destacado */
  --coral: #FF6B5E;
  --amarillo: #FFD23F;
  --verde: #2FA398;
  --bien: #6FE0D3;
  --mal: #FFA69E;
  --oscuro: #17132B;        /* texto sobre coral, amarillo o verde */
  --radio: 16px;
  /* Varela Round para todos los textos y Russo One solo para el texto del logotipo (las dos van en static/) */
  --titulos: "Varela Round", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --cuerpo: "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --logo: "Russo One", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
@font-face { font-family: "Varela Round"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("fuentes/varela-round-latin-400-normal.woff2") format("woff2"),
                  url("fuentes/varela-round-latin-400-normal.woff") format("woff");
             unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* polaco y rumano (ą, ł, ș, ț…). El griego y el ruso no existen en Varela Round: usan la letra del sistema. */
@font-face { font-family: "Varela Round"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("fuentes/varela-round-latin-ext-400-normal.woff2") format("woff2"),
                  url("fuentes/varela-round-latin-ext-400-normal.woff") format("woff");
             unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Russo One"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("fuentes/russo-one-latin-400-normal.woff2") format("woff2"),
                  url("fuentes/russo-one-latin-400-normal.woff") format("woff"); }
html.tema-claro {
  --fondo: #FBF7EE;
  --fondo-2: #FFFFFF;
  --fondo-3: #EFE8D8;
  --fondo-4: #E3DAC6;
  --borde: #7C749F;
  --texto: #17132B;
  --suave: #47415F;
  --acento: #4A379E;
  --bien: #0F6B60;
  --mal: #B3261A;
}

/* tamaño de letra: lo pone un script en <head> antes de pintar (ver base.html) */
html { font-size: 125%; }                 /* normal: 20 px */
html.letra-1 { font-size: 112.5%; }       /* 18 px */
html.letra-3 { font-size: 143.75%; }      /* 23 px */
html.letra-4 { font-size: 168.75%; }      /* 27 px */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); }
body { font-family: var(--cuerpo); font-size: 1rem; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--acento); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Varela Round solo tiene un grosor: la negrita la engorda el navegador (se ve bien a estos tamaños) */
:focus-visible { outline: 4px solid var(--acento); outline-offset: 3px; }
p { margin: 0; }

.app { max-width: 760px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
       padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); gap: 1.1rem; }

/* cabecera y marca */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--logo); font-weight: 400;
         font-size: 1.25rem; letter-spacing: .1em; color: var(--acento); text-decoration: none; line-height: 1; }
.marca svg { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
/* logo grande, como el de Shhhot: el mosaico 2×2 encima y el nombre debajo, en Russo One y amarillo */
.logo-grande { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; align-self: center; padding: 1rem 0 .4rem; }
.logo-grande svg { width: min(7.5rem, 30vw); height: auto; }
.logo-texto { font-family: var(--logo); font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; letter-spacing: .04em; color: var(--acento); }
.barra-der { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }

.etiqueta { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--acento); text-transform: uppercase; }
h1 { margin: 0; font-family: var(--titulos); font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
h2 { margin: 0; font-family: var(--titulos); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.cab { display: flex; flex-direction: column; gap: 6px; }
.suave { color: var(--suave); }
.pequeno { font-size: .85rem; }
.centro { text-align: center; }
.oculto { display: none !important; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tarjeta { background: var(--fondo-2); border-radius: 20px; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
html.tema-claro .tarjeta, html.tema-claro .fila, html.tema-claro .juego-tarjeta { box-shadow: 0 0 0 1px #D9D0BC; }

/* botones: grandes, con borde bien visible */
.btn { overflow-wrap: anywhere; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.2rem; padding: .5rem 1.1rem;
       border-radius: var(--radio); border: 2px solid var(--borde); background: transparent; color: var(--texto);
       font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; }
.btn:hover { border-color: var(--texto); }
.btn svg { width: 1.3rem; height: 1.3rem; flex-shrink: 0; }
.btn-principal { background: var(--coral); border-color: var(--coral); color: var(--oscuro); font-family: var(--titulos);
                 font-size: 1.15rem; min-height: 3.6rem; }
.btn-principal:hover { background: #FF8478; border-color: #FF8478; }
.btn-amarillo { background: var(--amarillo); border-color: var(--amarillo); color: var(--oscuro); }
.btn-amarillo:hover { background: #FFE27A; border-color: #FFE27A; }
.btn-verde { background: var(--verde); border-color: var(--verde); color: var(--oscuro); }
.btn-texto { border-color: transparent; color: var(--suave); text-decoration: underline; }
.btn-chip { min-height: 2.75rem; border-radius: 999px; padding: .3rem .9rem; font-size: .95rem; }
.btn-letra { min-width: 2.75rem; padding: .3rem .6rem; font-family: var(--titulos); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-ancho { width: 100%; }
.fila-botones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr)); gap: 10px; }
.pie { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
form.en-linea { display: contents; }

/* formularios */
label, .rotulo { font-size: .95rem; font-weight: 700; color: var(--suave); }
.campo { display: flex; flex-direction: column; gap: 8px; }
.ayuda { font-size: .85rem; color: var(--suave); }
input[type=text], input[type=password], input[type=email], input[type=file], select, textarea {
  width: 100%; min-height: 3.2rem; padding: .7rem 1rem; border: 2px solid var(--borde); border-radius: 14px;
  background: var(--fondo-2); color: var(--texto); font-size: 1.05rem; }
textarea { min-height: 6rem; resize: vertical; line-height: 1.4; }
.error, .errorlist { color: var(--mal); font-size: .95rem; font-weight: 600; margin: 0; padding: 0; list-style: none; }
.mensajes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mensajes li { background: var(--fondo-3); border-left: 6px solid var(--verde); border-radius: 12px; padding: .8rem 1rem; font-weight: 600; }
.casilla-marcar { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-size: 1rem; color: var(--texto); }
.casilla-marcar input { width: 1.6rem; height: 1.6rem; accent-color: var(--verde); flex-shrink: 0; }

.segmentado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px;
              background: var(--fondo-2); border-radius: 16px; }
.segmentado.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmentado.cuatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .segmentado.cuatro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.segmentado input { position: absolute; opacity: 0; pointer-events: none; }
.segmentado label, .segmentado button { min-height: 3rem; border-radius: 12px; display: flex; align-items: center; justify-content: center;
                    color: var(--texto); font-size: 1rem; font-weight: 700; cursor: pointer; text-align: center; padding: .3rem .5rem;
                    border: 2px solid transparent; background: transparent; }
.segmentado input:checked + label, .segmentado button[aria-pressed="true"] { background: var(--amarillo); color: var(--oscuro); }
.segmentado input:focus-visible + label { outline: 4px solid var(--acento); outline-offset: 2px; }
html.tema-claro .segmentado { box-shadow: 0 0 0 1px #D9D0BC; }

.marcables { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 8px; }
.marcables label { display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .4rem .8rem; border-radius: 14px;
                   background: var(--fondo-2); color: var(--texto); cursor: pointer; }
.marcables input { width: 1.5rem; height: 1.5rem; accent-color: var(--verde); flex-shrink: 0; }

/* portada */
.pasos { display: flex; flex-direction: column; gap: .8rem; list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.pasos li { display: flex; gap: .8rem; align-items: flex-start; }
.pasos li::before { counter-increment: paso; content: counter(paso); flex-shrink: 0; width: 2.2rem; height: 2.2rem;
                    border-radius: 999px; background: var(--fondo-3); color: var(--acento); display: flex;
                    align-items: center; justify-content: center; font-weight: 700; }
.legal { font-size: .85rem; color: var(--suave); text-align: center; }
.legal a { color: var(--suave); }
.texto-legal { display: flex; flex-direction: column; gap: .8rem; }
.texto-legal h2 { margin-top: .5rem; }

/* quién juega */
.personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 12px; }
.persona { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .6rem; border-radius: 20px;
           border: 2px solid var(--borde); background: var(--fondo-2); color: var(--texto); cursor: pointer; font-weight: 700;
           font-size: 1.1rem; text-align: center; width: 100%; word-break: break-word; }
.persona:hover { border-color: var(--acento); }
.persona .inicial { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--amarillo); color: var(--oscuro);
                    display: flex; align-items: center; justify-content: center; font-family: var(--titulos); font-size: 1.8rem; }
.persona:nth-child(3n+2) .inicial { background: var(--coral); }
.persona:nth-child(3n) .inicial { background: var(--verde); }

/* inicio */
.saludo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cifras div { padding: .8rem .6rem; border-radius: 16px; background: var(--fondo-2); text-align: center; }
.cifras strong { display: block; font-family: var(--titulos); font-size: 1.7rem; line-height: 1.1; color: var(--acento); }
.cifras span { display: block; font-size: .9rem; color: var(--suave); overflow-wrap: anywhere; }
html.tema-claro .cifras div { box-shadow: 0 0 0 1px #D9D0BC; }
.juegos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13.5rem, 100%), 1fr)); gap: 12px; }
.juego-tarjeta { display: flex; align-items: center; gap: .8rem; padding: .9rem; border-radius: 20px; background: var(--fondo-2);
                 color: var(--texto); text-decoration: none; min-height: 5rem; border: 2px solid transparent; }
.juego-tarjeta:hover { border-color: var(--acento); }
.juego-tarjeta .icono { width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--amarillo); color: var(--oscuro);
                        display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.juego-tarjeta:nth-child(3n+2) .icono { background: var(--coral); }
.juego-tarjeta:nth-child(3n) .icono { background: var(--verde); }
.juego-tarjeta .icono svg { width: 1.9rem; height: 1.9rem; }
.juego-tarjeta .cuerpo { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.juego-tarjeta strong { font-family: var(--titulos); font-size: 1.15rem; line-height: 1.2; }
.juego-tarjeta span { font-size: .9rem; color: var(--suave); line-height: 1.3; }
.banda { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 20px; border: 3px solid var(--amarillo);
         color: var(--texto); text-decoration: none; background: var(--fondo-2); }
.banda.coral { border-color: var(--coral); }
.banda:hover { background: var(--fondo-3); }
.banda .icono { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--amarillo); color: var(--oscuro); display: flex;
                align-items: center; justify-content: center; flex-shrink: 0; }
.banda.coral .icono { background: var(--coral); }
.banda .icono svg { width: 2rem; height: 2rem; }
.banda .texto { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--suave); font-size: .95rem; }
.banda .texto strong { font-family: var(--titulos); font-size: 1.25rem; color: var(--texto); }
.dos-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 12px; }

/* juego: cabecera, avisos y final */
.cab-juego { display: flex; align-items: center; gap: 12px; }
.volver { width: 3.2rem; height: 3.2rem; border-radius: 999px; border: 2px solid var(--borde); display: flex;
          align-items: center; justify-content: center; flex-shrink: 0; color: var(--texto); }
.volver svg { width: 1.5rem; height: 1.5rem; }
.instrucciones { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.instrucciones p { font-size: 1.05rem; }
.btn-voz { flex-shrink: 0; }
#juego { display: flex; flex-direction: column; gap: 1rem; }
.aviso { min-height: 1.8rem; font-size: 1.15rem; font-weight: 700; text-align: center; }
.aviso.bien { color: var(--bien); }
.aviso.mal { color: var(--mal); }
.hecho { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: 1rem 0; }
.sello { width: 7rem; height: 7rem; border-radius: 50%; background: var(--amarillo); color: var(--oscuro); display: flex;
         align-items: center; justify-content: center; animation: aparecer .5s ease both; }
.sello svg { width: 4rem; height: 4rem; }
.hecho h2 { font-size: 1.8rem; }
@keyframes aparecer { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sello, .girando { animation: none !important; } }

/* sopa de letras: --celda (px) la calcula app.js según el ancho */
.sopa-tema { font-weight: 700; font-size: 1.1rem; }
.sopa { --celda: 40px; display: grid; gap: 3px; width: 100%; max-width: 640px; align-self: center; padding: 6px; border-radius: 16px;
        background: var(--fondo-2); }
.sopa button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; background: var(--fondo-3); color: var(--texto);
               font-family: var(--titulos); font-weight: 700; font-size: calc(var(--celda) * .6); line-height: 1; cursor: pointer; }
.sopa button.inicio { background: var(--texto); color: var(--fondo); box-shadow: 0 0 0 3px var(--coral); }
.sopa button.h0 { background: var(--amarillo); color: var(--oscuro); }
.sopa button.h1 { background: var(--verde); color: var(--oscuro); }
.sopa button.h2 { background: var(--coral); color: var(--oscuro); }
.sopa-lista { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sopa-lista li { padding: .45rem .9rem; border-radius: 999px; border: 2px solid var(--borde); font-weight: 700; font-size: 1.05rem;
                 letter-spacing: .04em; }
.sopa-lista li.hecha { border-color: transparent; background: var(--fondo-3); color: var(--suave); text-decoration: line-through; }

/* mini sudoku */
.sudoku { align-self: center; width: min(100%, 420px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sudoku .bloque { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.celda { aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--fondo-2); color: var(--acento);
         font-family: var(--titulos); font-weight: 700; font-size: clamp(32px, 9vw, 52px); cursor: pointer; padding: 0;
         box-shadow: inset 0 0 0 2px var(--borde); }
.celda.fija { background: var(--fondo-4); color: var(--texto); cursor: default; box-shadow: none; }
.celda.activa { box-shadow: inset 0 0 0 5px var(--coral); }
.celda.choque { color: var(--mal); }
.teclas-num { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(100%, 520px); align-self: center; }
.tecla-num { min-height: 4.2rem; border: 2px solid var(--borde); border-radius: 16px; background: var(--fondo-3); color: var(--texto);
             font-family: var(--titulos); font-weight: 700; font-size: 1.7rem; cursor: pointer; padding: 0; }
.tecla-num.borrar { font-size: .95rem; }

/* parejas de dominó */
.memoria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(100%, 560px); align-self: center; }
.carta { aspect-ratio: 3 / 4; border-radius: 14px; border: 2px solid var(--borde); background: var(--fondo-4); cursor: pointer;
         display: flex; align-items: center; justify-content: center; padding: 6px; }
.carta:not(.vista) { background: linear-gradient(135deg, #2A2350, #4A3D85); }
.carta .dorso { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--amarillo); opacity: .9; }
.carta.vista { background: #FFF8E7; border-color: #FFF8E7; }
.carta.hecha { box-shadow: 0 0 0 5px var(--verde); }
.domino { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; height: 100%; justify-content: center; }
.domino .mitad { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 74%; aspect-ratio: 1; }
.domino .mitad i { display: block; width: 66%; aspect-ratio: 1; margin: auto; border-radius: 50%; }
.domino .mitad i.p { background: #17132B; }
.domino .raya { width: 82%; height: 3px; background: #17132B; opacity: .55; }

/* refranes */
.refran { font-family: var(--titulos); font-size: 1.6rem; font-weight: 700; line-height: 1.25; text-align: center; padding: 1.2rem 1rem;
          border-radius: 20px; background: var(--fondo-2); }
.refran .puntos { color: var(--acento); }
.opciones { display: flex; flex-direction: column; gap: 10px; }
.opcion { width: 100%; min-height: 4rem; padding: .7rem 1rem; border: 2px solid var(--borde); border-radius: 16px;
          background: transparent; color: var(--texto); font-weight: 700; font-size: 1.15rem; text-align: left; cursor: pointer; }
.opcion:hover { border-color: var(--acento); }
.opcion.no { opacity: .5; text-decoration: line-through; pointer-events: none; }
.opcion.si { background: var(--verde); border-color: var(--verde); color: var(--oscuro); }

/* palabra oculta */
.pista-caja { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .9rem 1rem;
              border-radius: 16px; background: var(--fondo-2); flex-wrap: wrap; }
.pista-caja strong { font-size: 1.15rem; }
.vidas { display: flex; gap: 5px; flex-wrap: wrap; }
.vidas i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--coral); display: block; }
.vidas i.gastada { background: transparent; box-shadow: inset 0 0 0 2px var(--borde); }
.huecos { display: grid; gap: 6px; padding: .6rem 0; }
.hueco { height: 3.4rem; border-bottom: 4px solid var(--borde); display: flex; align-items: center; justify-content: center;
         font-family: var(--titulos); font-weight: 700; font-size: clamp(20px, 6vw, 40px); }
.teclado { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.tecla { min-height: 3.3rem; border: 2px solid var(--borde); border-radius: 12px; background: var(--fondo-3); color: var(--texto);
         font-weight: 700; font-size: 1.3rem; cursor: pointer; padding: 0; }
.tecla.ok { background: var(--verde); border-color: var(--verde); color: var(--oscuro); }
.tecla.no { background: transparent; color: var(--suave); text-decoration: line-through; opacity: .6; }

/* paralogic: app.js coloca los hexágonos según el ancho */
.panal { align-self: center; position: relative; }
.hex { position: absolute; border: 0; padding: 0; background: var(--fondo-4); color: var(--texto);
       font-family: var(--titulos); font-weight: 700; cursor: pointer;
       clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex.central { background: var(--amarillo); color: var(--oscuro); }
.entrada-pal { min-height: 3.6rem; border-bottom: 4px solid var(--borde); display: flex; align-items: center;
               justify-content: center; font-family: var(--titulos); font-weight: 700; font-size: 2rem; letter-spacing: .15em; }
.entrada-pal .c { color: var(--acento); }
.encontradas { display: flex; flex-wrap: wrap; gap: 8px; }
.encontradas span { padding: .45rem .9rem; border-radius: 999px; font-size: 1rem; font-weight: 700; }
.encontradas .ok { background: var(--verde); color: var(--oscuro); }
.encontradas .vacia { border: 2px dashed var(--borde); color: var(--suave); }
.teclas-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* tres en raya */
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 420px); align-self: center; }
.casilla-tres { aspect-ratio: 1; border-radius: 16px; border: 2px solid var(--borde); background: var(--fondo-3);
                font-family: var(--titulos); font-size: clamp(44px, 14vw, 76px); font-weight: 700; color: var(--texto); cursor: pointer; padding: 0; line-height: 1; }
.casilla-tres.x { color: var(--acento); } .casilla-tres.o { color: var(--coral); }
html.tema-claro .casilla-tres.o { color: #C2331F; }
.casilla-tres.nueva { box-shadow: 0 0 0 5px var(--coral); }
.casilla-tres:disabled { cursor: default; }

/* dados */
.dados-objetivo { text-align: center; font-family: "Russo One", "Varela Round", sans-serif; font-size: 2.2rem; color: var(--amarillo); margin: .2rem 0 .6rem; }
html.tema-claro .dados-objetivo { color: var(--acento); }
.dados-mesa { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 1.2rem .6rem; border-radius: 22px; background: #1E7A5A; }
.dado { width: 6.6rem; height: 6.6rem; min-width: 88px; min-height: 88px; max-width: 26vw; max-height: 26vw; padding: 0; border-radius: 20%; border: 0; cursor: pointer;
        background: #FFFDF6; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); -webkit-tap-highlight-color: transparent; }
.dado svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.dado circle { fill: #17132B; }
.dado.elegido { background: var(--amarillo); transform: translateY(-8px); box-shadow: 0 14px 0 rgba(0, 0, 0, .25), 0 0 0 5px rgba(255, 255, 255, .85); }
.dados-mesa.bien .dado.elegido { background: #8BE3B4; }
.dados-mesa.tirada .dado { animation: tirar-dado .55s ease-out both; }
.dados-mesa.tirada .dado:nth-child(2) { animation-delay: .08s; } .dados-mesa.tirada .dado:nth-child(3) { animation-delay: .16s; }
.dados-mesa.tirada .dado:nth-child(4) { animation-delay: .24s; }
@keyframes tirar-dado { 0% { transform: translateY(-60px) rotate(-160deg); opacity: 0; } 70% { transform: translateY(4px) rotate(8deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .dados-mesa.tirada .dado { animation: none; } }
.dados-cuenta { text-align: center; font-size: 1.4rem; font-weight: 700; margin-top: .7rem; }

/* familias de palabras */
.fam-sueltas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fam-ficha { min-height: 3.6rem; min-width: 5.5rem; padding: .6rem 1.1rem; border-radius: 999px; border: 3px solid var(--borde); background: var(--fondo-2);
             color: var(--texto); font: inherit; font-weight: 700; font-size: 1.15rem; cursor: pointer; }
.fam-ficha.elegida, .fam-caja.elegida { border-color: var(--amarillo); box-shadow: 0 0 0 4px rgba(255, 210, 63, .28); transform: translateY(-3px); }
html.tema-claro .fam-ficha.elegida, html.tema-claro .fam-caja.elegida { border-color: var(--acento); box-shadow: 0 0 0 4px rgba(91, 61, 245, .2); }
.fam-cajas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 10px; margin-bottom: .9rem; }
.fam-caja { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: .7rem; border-radius: 18px; border: 3px solid transparent;
            font: inherit; color: #17132B; cursor: pointer; text-align: center; }
.fam-caja span { background: rgba(255, 255, 255, .6); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: 1.05rem; }
.fam-caja strong { flex-basis: 100%; font-size: 1.15rem; }
.fam-caja.c0 { background: #FFD23F; } .fam-caja.c1 { background: #FF8A7A; } .fam-caja.c2 { background: #6FD6C5; } .fam-caja.c3 { background: #B9A7F5; }
.fam-caja.hecha { cursor: default; opacity: 1; border-style: dashed; border-color: rgba(23, 19, 43, .45); }

/* anagrama (de Words) */
.ana-huecos, .ana-mesa { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ana-huecos { margin: .4rem 0 .6rem; }
.ana-hueco, .ana-ficha { width: 3.2rem; height: 3.6rem; min-width: 44px; min-height: 50px; border-radius: 12px; font: inherit; font-weight: 700;
                         font-size: 1.6rem; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--texto); }
.ana-hueco { background: none; border: 0; border-bottom: 5px solid var(--borde); border-radius: 6px; }
.ana-hueco.llena { border-bottom-color: var(--acento); }
.ana-hueco.fija { color: var(--acento); }
.ana-hueco:disabled { opacity: 1; cursor: default; }
.ana-huecos.bien .ana-hueco { border-bottom-color: var(--verde); color: var(--verde); }
html.tema-claro .ana-huecos.bien .ana-hueco { color: #17694C; border-bottom-color: #17694C; }
.ana-huecos.mal { animation: temblor .45s; }
.ana-ficha { background: var(--amarillo); color: #17132B; border: 0; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .28); }
.ana-ficha.usada { opacity: .22; box-shadow: none; cursor: default; }
.teclas-3.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@keyframes temblor { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

/* la letra que falta (el Shooot de Words, en tranquilo) */
.falta-palabra { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.falta-palabra span { width: 2.6rem; height: 3.2rem; min-width: 34px; display: flex; align-items: center; justify-content: center;
                      font-weight: 700; font-size: 1.7rem; border-bottom: 5px solid transparent; border-radius: 6px; }
.falta-palabra .hueco { border-bottom-color: var(--borde); }
.falta-palabra .hueco.actual { border-bottom-color: var(--acento); background: var(--fondo-2); }
.falta-campo { position: relative; height: 17rem; min-height: 250px; border: 3px solid var(--borde); border-radius: 18px; background: var(--fondo-2);
               overflow: hidden; touch-action: manipulation; }
.falta-bola { position: absolute; left: 0; top: 0; width: 4rem; height: 4rem; min-width: 60px; min-height: 60px; border-radius: 50%; border: 0; padding: 0;
              font: inherit; font-weight: 700; font-size: 1.8rem; color: #17132B; cursor: pointer; will-change: transform;
              box-shadow: 0 4px 0 rgba(0, 0, 0, .25); -webkit-tap-highlight-color: transparent; }
.falta-bola.b0 { background: #FFD23F; } .falta-bola.b1 { background: #FF8A7A; } .falta-bola.b2 { background: #6FD6C5; }
.falta-bola.b3 { background: #B9A7F5; } .falta-bola.b4 { background: #9FD0FF; }
.falta-bola.bien { outline: 5px solid var(--verde); }
.falta-bola.mal { opacity: .25; box-shadow: none; cursor: default; }

/* juegos de la casa dentro de un marco (Smash, Mahjong, Search) */
.marco { position: relative; }
.marco-juego { display: block; width: 100%; height: calc(100vh - 11rem); height: calc(100dvh - 11rem); min-height: 460px; max-height: 900px;
               border: 3px solid var(--borde); border-radius: 18px; background: #17132B; }

/* botes de galletas */
.botes { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bote { width: 5.2rem; min-width: 76px; display: flex; flex-direction: column-reverse; gap: 5px; padding: 10px 8px 12px; cursor: pointer;
        border: 3px solid var(--borde); border-top-width: 8px; border-radius: 8px 8px 20px 20px; background: var(--fondo-2); }
.bote.elegido { border-color: var(--amarillo); transform: translateY(-12px); }
html.tema-claro .bote.elegido { border-color: var(--acento); }
.capa { height: 3rem; min-height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; line-height: 1; }
.capa.vacia { background: transparent; }
.capa.corazon { background: #FFD6D2; color: #D93A2B; } .capa.trebol { background: #D3F1EC; color: #17604F; }
.capa.pica { background: #E2DDF7; color: #17132B; }
/* frascos de colores: los mismos botes, más estrechos (hay hasta seis) y con bolas */
.frascos { gap: 10px; }
.frascos .bote { width: 4.1rem; min-width: 46px; padding: 8px 5px 10px; border-radius: 8px 8px 26px 26px; }
.frascos .capa { width: 100%; height: auto; min-height: 0; aspect-ratio: 1; border-radius: 50%; font-size: 1.3rem; color: #fff; }
.capa.rojo { background: #D93A2B; } .capa.azul { background: #2563C9; } .capa.verde { background: #1E8A5B; }
.capa.amarillo { background: #F2B600; color: #17132B; } .capa.morado { background: #7B3FC4; }

/* la torre */
.torres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 34rem; margin: 0 auto; }
.poste { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; padding: 16px 4px 10px; cursor: pointer;
         border: 3px solid var(--borde); border-bottom-width: 8px; border-radius: 14px; background: var(--fondo-2); color: inherit; font: inherit; min-width: 0; }
.poste::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 6px; width: 8px; margin-left: -4px; border-radius: 4px; background: var(--borde); }
.poste.meta { border-style: dashed; border-bottom-style: solid; }
.poste.elegido { border-color: var(--amarillo); transform: translateY(-10px); }
html.tema-claro .poste.elegido { border-color: var(--acento); }
.hueco-disco { position: relative; display: flex; justify-content: center; width: 100%; height: 2.6rem; min-height: 38px; }
.disco { display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 999px; font-weight: 700; font-size: 1.2rem; color: #17132B; }
.disco-1 { background: #FFD23F; } .disco-2 { background: #FF8A7A; } .disco-3 { background: #6FD6C5; } .disco-4 { background: #B9A7F5; } .disco-5 { background: #9FD0FF; }


/* deslizante */
.deslizante { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 420px); align-self: center; }
.ficha-desl, .hueco-desl { aspect-ratio: 1; border-radius: 16px; }
.ficha-desl { border: 2px solid var(--borde); background: var(--fondo-3); color: var(--texto); font-family: var(--titulos);
              font-size: clamp(36px, 11vw, 60px); font-weight: 700; cursor: default; padding: 0; }
.ficha-desl.movible { cursor: pointer; box-shadow: inset 0 0 0 4px var(--amarillo); }
html.tema-claro .ficha-desl.movible { box-shadow: inset 0 0 0 4px var(--acento); }
.ficha-desl.bien { background: var(--verde); color: var(--oscuro); border-color: var(--verde); }
.hueco-desl { background: transparent; border: 3px dashed var(--borde); }

/* canta conmigo */
.verso { font-family: var(--titulos); font-size: 1.7rem; font-weight: 700; line-height: 1.3; white-space: pre-line; text-align: center; }
.verso.sigue { color: var(--acento); }
.cancion-caja { background: var(--fondo-2); border-radius: 24px; padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.btn-escuchar { min-height: 4.2rem; font-size: 1.25rem; border-radius: 999px; padding: .6rem 1.6rem; }
.btn-escuchar svg { width: 1.8rem; height: 1.8rem; }
.lista { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fila { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 18px; background: var(--fondo-2);
        text-decoration: none; color: var(--texto); min-height: 4rem; }
a.fila:hover { background: var(--fondo-3); }
.fila .pos { width: 2.4rem; font-family: var(--titulos); font-weight: 700; font-size: 1.6rem; color: var(--suave); text-align: center; flex-shrink: 0; }
.fila .pos.oro { color: var(--acento); }
.fila .cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 1.1rem; }
.fila .cuerpo span { font-size: .9rem; font-weight: 400; color: var(--suave); }
.fila .dato { font-family: var(--titulos); font-weight: 700; font-size: 1.4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fila .punto { width: 1.2rem; height: 1.2rem; border-radius: 50%; flex-shrink: 0; }
.vacio { padding: 1.1rem; border: 2px dashed var(--borde); border-radius: 16px; color: var(--suave); text-align: center; }

/* modo fiesta */
.pasar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; padding: 1.6rem .8rem;
         border-radius: 24px; background: var(--fondo-2); border: 5px solid var(--color, var(--amarillo)); }
.pasar-nombre { font-family: var(--titulos); font-weight: 700; font-size: 3rem; line-height: 1.05; word-break: break-word; }
.pasar form { width: 100%; }
.pasar-boton { width: 100%; min-height: 4.4rem; font-size: 1.35rem; }
.crono { font-family: var(--titulos); font-size: 2.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.crono.poco { color: var(--mal); }
.insignia { padding: .5rem .9rem; border-radius: 999px; background: var(--fondo-2); font-size: .95rem; font-weight: 700; white-space: nowrap; }
.marcador { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 8px; }
.marcador-j { padding: .5rem .7rem; border-radius: 14px; background: var(--fondo-2); display: flex; align-items: center;
              justify-content: space-between; gap: 8px; border-left: 8px solid var(--color); font-weight: 700; min-width: 0; }
.marcador-j .nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marcador-j strong { font-family: var(--titulos); font-size: 1.3rem; }
.marcador-j.activo { box-shadow: 0 0 0 3px var(--acento); }
.jugadores-form { display: flex; flex-direction: column; gap: 8px; }
.jugador-fila { display: flex; gap: 8px; align-items: center; }
.jugador-fila .num { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--fondo-3); display: flex; align-items: center;
                     justify-content: center; font-weight: 700; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* panel */
.tabla-envoltura { overflow-x: auto; border-radius: 16px; background: var(--fondo-2); }
table.panel { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.panel th, table.panel td { padding: .7rem .6rem; text-align: center; border-bottom: 1px solid var(--fondo-4); white-space: nowrap; }
table.panel th:first-child, table.panel td:first-child { text-align: left; font-weight: 700; position: sticky; left: 0; background: var(--fondo-2); }
table.panel thead th { color: var(--suave); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.dia { display: inline-flex; width: 2rem; height: 2rem; border-radius: 8px; align-items: center; justify-content: center;
       background: var(--fondo-3); color: var(--suave); font-weight: 700; }
.dia.si { background: var(--verde); color: var(--oscuro); }

/* ajustes */
.muestra { font-size: 1rem; padding: 1rem; border-radius: 16px; background: var(--fondo-2); }

/* iPhone/iPad: al tocar rápido varias veces Safari lo tomaba como doble toque y ampliaba la pantalla. */
html, body, button, a, input, label { touch-action: manipulation; }
button, .hex, .carta, .bote, .poste { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

@media print { .barra-der, .pie, .btn { display: none !important; } html, body { background: #fff; color: #000; } }

/* canta conmigo: los dos pasos (antes y después de «Ver cómo sigue») */
.cancion-paso { display: flex; flex-direction: column; gap: 1rem; align-items: center; width: 100%; }
.cancion-reto { font-size: 1.25rem; font-weight: 700; }

/* Selector de idioma: mismo patrón que IArt y FileStream (globo + menú propio que siempre se abre hacia abajo) */
.lang-pill { position: relative; display: inline-flex; align-items: center; color: var(--acento); }
.lang-pill .globe { position: absolute; left: .6rem; width: 1.3rem; height: 1.3rem; pointer-events: none; }
.lang-pill select, .lang-btn { appearance: none; -webkit-appearance: none; font: inherit; font-size: .95rem; font-weight: 700; color: var(--texto);
  cursor: pointer; border: 2px solid var(--borde); border-radius: 999px; min-height: 2.75rem; padding: .3rem 1.7rem .3rem 2.2rem;
  max-width: 11rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' fill='none' stroke='%238e8e98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l3.5 3.5L8 1'/%3E%3C/svg%3E") no-repeat right .7rem center; }
.lang-pill select option { color: #17132B; background: #fff; }
.lang-pill.enhanced select { display: none; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--texto); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 200; margin: 0; padding: 6px; list-style: none; min-width: 11rem;
  max-height: min(70vh, 34rem); overflow-y: auto; background: #fff; color: #17132B; border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.08); }
.lang-menu[hidden] { display: none; }
.lang-menu li { padding: .65rem .8rem; border-radius: 9px; font-size: 1rem; cursor: pointer; outline: none; }
.lang-menu li:hover, .lang-menu li:focus { background: #EFE8D8; }
.lang-menu li[aria-selected="true"] { color: #4A379E; font-weight: 700; }
@media (max-width: 520px) { .lang-pill select, .lang-btn { max-width: 3.2rem; padding-right: 1.2rem; color: transparent; } }

/* reto del día, comodines y clasificación */
.cifras.tres { grid-template-columns: repeat(auto-fit, minmax(min(7.4rem, 100%), 1fr)); }
.banda.reto { border-color: var(--verde); }
.banda.reto .icono { background: var(--verde); }
.seg-enlace { min-height: 3rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--texto);
              font-weight: 700; text-decoration: none; padding: .3rem .5rem; }
.seg-enlace[aria-current="page"] { background: var(--amarillo); color: var(--oscuro); }
.fila.yo { box-shadow: inset 0 0 0 3px var(--acento); }
ol.lista { counter-reset: none; }

/* cruzada: --celda (px) la calcula app.js según el ancho */
.cruzada { --celda: 40px; display: grid; gap: 3px; width: 100%; align-self: center; }
.cz, .cz-vacia { aspect-ratio: 1; }
.cz { border: 2px solid var(--borde); padding: 0; border-radius: 7px; background: var(--fondo-2); color: var(--texto);
      font-family: var(--titulos); font-weight: 700; font-size: calc(var(--celda) * .58); line-height: 1; cursor: pointer; }
.cz.puesta { background: var(--verde); border-color: var(--verde); color: var(--oscuro); }
.cz.sel { border-color: var(--coral); box-shadow: inset 0 0 0 3px var(--coral); }
.cz.puesta.sel { box-shadow: inset 0 0 0 3px var(--coral); }
.cz:disabled { cursor: default; }
.cz-palabras { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-palabra { min-height: 3rem; padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--borde); background: transparent;
              color: var(--texto); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; cursor: pointer; }
.cz-palabra small { font-size: .8rem; color: var(--suave); font-weight: 400; }
.cz-palabra:hover { border-color: var(--acento); }
.cz-palabra.hecha { border-color: transparent; background: var(--fondo-3); color: var(--suave); text-decoration: line-through; cursor: default; }

/* las 7 diferencias */
.diferencias { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.dif-dibujo { display: block; padding: 0; border: 3px solid var(--borde); border-radius: 16px; overflow: hidden; background: none;
              cursor: pointer; line-height: 0; width: 100%; }
.dif-dibujo svg { display: block; width: 100%; height: auto; pointer-events: none; }
.dif-marca { fill: none; stroke: #FF2D55; stroke-width: 1.4; }
.dif-cruz { fill: none; stroke: #17132B; stroke-width: 1.2; stroke-linecap: round; }
