@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Baloo+2:wght@500;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --mar-profundo: #073b4c;
  --mar: #0d5c75;
  --mar-claro: #118ab2;
  --arena: #ffd166;
  --coral: #ef476f;
  --hoja: #06d6a0;
  --tinta: #073b4c;
  --blanco: #fffaf0;
  --sombra: rgba(7, 59, 76, 0.25);
  --radius: 18px;
  --divertida: 'Fredoka', 'Baloo 2', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--tinta);
  background: linear-gradient(180deg, #8ecae6 0%, #219ebc 45%, #126782 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, .titulo {
  font-family: var(--divertida);
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(7,59,76,.12), 2px 2px 0 rgba(7,59,76,.12), 3px 3px 0 rgba(7,59,76,.12);
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
.pantalla { display: none; flex: 1; flex-direction: column; padding: 20px; animation: aparecer .4s ease; }
.pantalla.activa { display: flex; }
/* Cuando el/la docente está en "vista previa como estudiante" hay un botón fijo
   arriba a la derecha ("Volver al panel docente"); se empuja el contenido para
   que nunca quede tapado por ese botón (p. ej. el chip de perfil del mapa). */
body.con-banner-preview .pantalla.activa { padding-top: 70px; }
@media (max-width: 480px) {
  body.con-banner-preview .pantalla.activa { padding-top: 110px; }
}
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.tarjeta {
  background: linear-gradient(180deg, #fffefb 0%, var(--blanco) 100%);
  border-radius: calc(var(--radius) + 6px);
  border: 3px solid #ffffff;
  box-shadow: 0 10px 0 rgba(7,59,76,.1), 0 18px 34px var(--sombra);
  padding: 28px;
  max-width: 560px;
  margin: auto;
  width: 100%;
}
.centro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex: 1; }

.btn {
  position: relative;
  overflow: hidden;
  font-family: var(--divertida);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .3px;
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  background: linear-gradient(180deg, #2bf0bb 0%, var(--hoja) 55%);
  color: white;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 7px 0 #04976f, 0 10px 18px rgba(0,0,0,.2);
  transition: transform .08s ease, box-shadow .08s ease;
}
/* destello que recorre el botón al pasar el cursor, como un botón de menú de consola */
.btn::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 35%;
  height: 180%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-260%) rotate(8deg);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(360%) rotate(8deg); transition: transform .65s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 2px 0 #04976f; }
.btn.secundario { background: linear-gradient(180deg, #4bc3e6 0%, var(--mar-claro) 55%); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 7px 0 #0c6f91, 0 10px 18px rgba(0,0,0,.2); }
.btn.secundario:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 2px 0 #0c6f91; }
.btn.peligro { background: linear-gradient(180deg, #ff6f8e 0%, var(--coral) 55%); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 7px 0 #b8294f, 0 10px 18px rgba(0,0,0,.2); }
.btn.peligro:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 2px 0 #b8294f; }
.btn.arena { background: linear-gradient(180deg, #ffe08a 0%, var(--arena) 55%); color: var(--tinta); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 7px 0 #d19b1f, 0 10px 18px rgba(0,0,0,.2); }
.btn.arena:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 2px 0 #d19b1f; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-chico { padding: 9px 18px; font-size: 14px; }

input, select, textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #d9e8ee;
  width: 100%;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 4px rgba(7,59,76,.08);
}
input:focus { outline: none; border-color: var(--mar-claro); }
label { font-weight: 700; display: block; margin-bottom: 6px; }

.logo { font-size: 48px; filter: drop-shadow(0 6px 4px rgba(0,0,0,.25)); }
.subtitulo { color: #4b6a74; margin-top: -6px; }

/* ---------- Teoría (con subtítulos en un idioma secundario a elegir) ---------- */
.teoria-tarjeta { max-width: 640px; max-height: 82vh; overflow-y: auto; }
.teoria-cabecera { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.teoria-etiqueta { font-family: var(--divertida); font-weight: 600; color: var(--mar-claro); text-align: center; margin: 0; letter-spacing: .5px; }
.teoria-idioma-label { font-size: 13px; color: #7c93a0; }
.sel-idioma-teoria { font-family: inherit; font-size: 13px; padding: 3px 8px; border-radius: 10px; border: 1px solid #cfe3ea; background: #fff; color: var(--tinta); cursor: pointer; }
.teoria-zh { color: #7c93a0; }
.teoria-contenido { margin-top: 18px; }
.teoria-parrafo { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed #e1ecf0; }
.teoria-parrafo:last-child { border-bottom: none; margin-bottom: 0; }
.teoria-es { font-size: 16px; line-height: 1.55; color: var(--tinta); margin: 0; }
.teoria-parrafo-zh { font-size: 14px; line-height: 1.5; color: #7c93a0; margin: 6px 0 0; }

/* ---------- Mapa de islas ---------- */
.mapa-header { display: flex; justify-content: space-between; align-items: center; color: white; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.perfil-chip { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 9px 18px; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 4px 0 rgba(0,0,0,.1); }
.stat { display: flex; align-items: center; gap: 4px; font-weight: 700; font-family: var(--divertida); }

/* ===================================================================
   FONDO ANIMADO DE TODA LA PÁGINA
   Cielo + sol + nubes en dos planos + archipiélago lejano (atmósfera) +
   archipiélago destino + mar en 4 capas de olas (cada una más grande,
   más opaca y más rápida mientras más "cerca" del espectador) + un
   barquito con viajeros navegando. La profundidad se logra con: tamaño
   creciente, opacidad creciente, velocidad creciente y drop-shadows —
   el truco clásico de parallax para dar sensación 3D en una escena 2D.
   =================================================================== */
#fondo-animado {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* viñeta cinemática: oscurece un poco las esquinas de la pantalla (post-proceso
   típico de videojuegos de consola) para que el contenido "flote" con más
   profundidad sobre el fondo */
#vineta-cine {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 48%, rgba(2,10,16,.4) 100%),
    linear-gradient(180deg, rgba(2,10,16,.22) 0%, rgba(2,10,16,0) 14%, rgba(2,10,16,0) 86%, rgba(2,10,16,.28) 100%);
  mix-blend-mode: multiply;
}
#fondo-animado svg { display: block; width: 100%; height: 100%; }
#app { position: relative; z-index: 1; }

/* sol con un brillo que respira suavemente */
.sol { animation: fa-sol 5s ease-in-out infinite; transform-origin: 880px 150px; }
@keyframes fa-sol { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .85; transform: scale(1.08); } }

/* rayos de sol (god rays), un giro casi imperceptible y muy lento */
.rayos-dios { animation: fa-rayos 90s linear infinite; transform-origin: 0 0; opacity: .8; }
@keyframes fa-rayos { from { transform: translate(880px,150px) rotate(0deg); } to { transform: translate(880px,150px) rotate(360deg); } }

/* nubes a la deriva — dos planos a velocidades distintas = profundidad, con
   degradado (más gris por debajo) para que se vean mullidas, no planas */
.nubes-lejos { animation: fa-nubes 70s linear infinite; }
.nubes-cerca { animation: fa-nubes 40s linear infinite; }
.nube ellipse { fill: url(#g-nube); }
.nubes-lejos .nube ellipse { opacity: .6; }
.nubes-cerca .nube ellipse { opacity: .95; filter: drop-shadow(0 6px 4px rgba(7,59,76,.1)); }
@keyframes fa-nubes { from { transform: translateX(0); } to { transform: translateX(-1200px); } }

/* destellos de luz en el agua, como el brillo de un "shader" de agua de videojuego */
.destello { animation: fa-destello 2.6s ease-in-out infinite; }
.d1 { animation-delay: 0s; }
.d2 { animation-delay: .8s; }
.d3 { animation-delay: 1.6s; }
@keyframes fa-destello { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1.3); } }

/* aves lejanas, un ligero aleteo */
.aves .ave { fill: none; stroke: var(--mar-profundo); stroke-width: 2.5; stroke-linecap: round; opacity: .5; }
.ave-1 { animation: fa-aleteo 1.1s ease-in-out infinite; }
.ave-2 { animation: fa-aleteo 1.1s ease-in-out infinite .2s; }
.ave-3 { animation: fa-aleteo 1.3s ease-in-out infinite .1s; }
@keyframes fa-aleteo { 0%, 100% { transform: scaleY(1) translateY(0); } 50% { transform: scaleY(.4) translateY(2px); } }

/* archipiélago muy lejano, pálido (perspectiva atmosférica = más profundidad) */
.islas-atmosfera { animation: fa-islas-flota 8s ease-in-out infinite; transform-origin: center bottom; }

/* archipiélago destino, más cerca, con sombra para que "flote" sobre el mar */
.islas-lejanas { animation: fa-islas-flota 6s ease-in-out infinite; transform-origin: center bottom; filter: drop-shadow(0 6px 5px rgba(7,59,76,.2)); }
@keyframes fa-islas-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* olas en 4 planos: más calmas y pálidas lejos (horizonte), más grandes,
   opacas y veloces cerca (primer plano) — simula profundidad del agua */
.olas-horizonte { fill: rgba(255,255,255,.18); animation: fa-olas-h 9s linear infinite; }
.olas-media     { fill: rgba(255,255,255,.28); animation: fa-olas-m 6s linear infinite; }
.olas-frente    { fill: rgba(255,255,255,.4);  animation: fa-olas-f 4s linear infinite; }
.olas-muycerca  { fill: rgba(255,255,255,.55); animation: fa-olas-c 2.6s linear infinite; }
@keyframes fa-olas-h { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes fa-olas-m { from { transform: translateX(0); } to { transform: translateX(-140px); } }
@keyframes fa-olas-f { from { transform: translateX(0); } to { transform: translateX(-180px); } }
@keyframes fa-olas-c { from { transform: translateX(0); } to { transform: translateX(-240px); } }

/* el barquito con sus dos viajeros, navegando de la izquierda hacia las islas */
.barco-viaje { animation: fa-navegar 18s linear infinite; filter: drop-shadow(0 8px 6px rgba(7,59,76,.3)); }
@keyframes fa-navegar {
  0%   { transform: translate(-60px, 560px); opacity: 0; }
  8%   { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translate(900px, 470px); opacity: 0; }
}
.barco-vaiven { animation: fa-vaiven 1.8s ease-in-out infinite; transform-origin: center; }
@keyframes fa-vaiven {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}
.ola-barco { fill: rgba(255,255,255,.55); animation: fa-estela 1.8s ease-in-out infinite; }
@keyframes fa-estela { 0%, 100% { opacity: .3; transform: scaleX(.85); } 50% { opacity: .7; transform: scaleX(1.15); } }

@media (prefers-reduced-motion: reduce) {
  #fondo-animado * { animation: none !important; }
}

.archipielago { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; padding: 14px 4px 40px; }
.isla-card {
  background: linear-gradient(180deg, #fffefb 0%, var(--blanco) 100%);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 9px 0 rgba(7,59,76,.14), 0 18px 28px var(--sombra);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 4px solid transparent;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
  will-change: transform;
}
/* brillo tipo "holograma de consola" que sigue al cursor (ver --brillo-x/y en JS) */
.isla-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at var(--brillo-x, 50%) var(--brillo-y, 50%), rgba(255,255,255,.65), rgba(255,255,255,0) 42%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 3;
}
/* anillo de luz de color (como un nodo seleccionado en un menú de consola) */
.isla-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--brillo-isla, transparent);
  opacity: 0;
  transition: box-shadow .2s ease, opacity .2s ease;
  pointer-events: none;
  z-index: 2;
}
.isla-card:hover { box-shadow: 0 14px 0 rgba(7,59,76,.16), 0 28px 38px var(--sombra); }
.isla-card:hover::before { opacity: 1; }
.isla-card:hover::after { opacity: 1; box-shadow: 0 0 0 3px var(--brillo-isla, transparent), 0 0 30px 4px var(--brillo-isla, transparent); }
.isla-card:active { box-shadow: 0 4px 0 rgba(7,59,76,.14), 0 10px 18px var(--sombra); }
.isla-card.bloqueada { filter: grayscale(0.8); opacity: .55; cursor: not-allowed; }
.isla-card.bloqueada:hover, .isla-card.bloqueada:active { transform: none; box-shadow: 0 9px 0 rgba(7,59,76,.14), 0 18px 28px var(--sombra); }
.isla-card.bloqueada:hover::before, .isla-card.bloqueada:hover::after { opacity: 0; }
.isla-card .emoji-isla { font-size: 54px; display: block; margin-bottom: 6px; filter: drop-shadow(0 5px 3px rgba(0,0,0,.25)); }
.isla-card h3 { text-shadow: none; }
.isla-card .nivel-chip { position: absolute; top: 10px; right: 10px; background: linear-gradient(180deg, #ffe08a, var(--arena)); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; font-family: var(--divertida); box-shadow: 0 2px 0 #d19b1f; }
.isla-card .barra { height: 10px; border-radius: 8px; background: #e7eef0; margin-top: 10px; overflow: hidden; box-shadow: inset 0 2px 3px rgba(0,0,0,.12); }
.isla-card .barra > div { height: 100%; background: linear-gradient(180deg, #2bf0bb, var(--hoja)); }
.candado { font-size: 30px; filter: drop-shadow(0 4px 2px rgba(0,0,0,.25)); }

/* ---------- Actividad ---------- */
.actividad-header { display: flex; justify-content: space-between; align-items: center; color: white; margin-bottom: 16px; }
.progreso-racha { display: flex; gap: 14px; align-items: center; }
.pregunta-tarjeta { text-align: center; }
.frase-ejercicio { font-size: 22px; line-height: 1.5; margin: 10px 0 22px; }
.frase-ejercicio .hueco { color: var(--coral); font-weight: 800; letter-spacing: 1px; }
.opciones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.opcion-btn {
  background: linear-gradient(180deg, #ffffff, #f1f7fa); border: 3px solid #d9e8ee; border-radius: 16px; padding: 14px;
  font-size: 17px; font-weight: 700; cursor: pointer; font-family: 'Nunito', sans-serif;
  box-shadow: 0 5px 0 #d9e8ee, 0 8px 14px rgba(0,0,0,.1);
  transition: transform .08s ease, box-shadow .08s ease;
}
.opcion-btn:hover { border-color: var(--mar-claro); transform: translateY(-2px); }
.opcion-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #d9e8ee; }
.opcion-btn.correcta { background: linear-gradient(180deg, #e8fff5, #d5fbe8); border-color: var(--hoja); box-shadow: 0 5px 0 #04976f, 0 8px 14px rgba(0,0,0,.1); }
.opcion-btn.incorrecta { background: linear-gradient(180deg, #ffeef1, #ffe1e7); border-color: var(--coral); box-shadow: 0 5px 0 #b8294f, 0 8px 14px rgba(0,0,0,.1); }
.opcion-btn:disabled { cursor: default; }
.tabla-conjugacion { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tabla-conjugacion td { padding: 8px; border-bottom: 1px solid #eee; text-align: left; }
.tabla-conjugacion input { margin: 0; padding: 8px; }
.feedback { margin-top: 16px; font-weight: 800; font-size: 18px; min-height: 28px; }
.feedback.ok { color: #04976f; }
.feedback.no { color: var(--coral); }
.audio-btn { font-size: 40px; background: none; border: none; cursor: pointer; }
.audio-btn:hover { transform: scale(1.08); }

/* ---------- Memoria ---------- */
.memoria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; margin: 0 auto; }
.memoria-carta {
  aspect-ratio: 1; background: linear-gradient(180deg, #4bc3e6, var(--mar-claro)); border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px; text-align: center; cursor: pointer; padding: 6px; user-select: none;
  box-shadow: 0 4px 0 #0c6f91, 0 7px 10px rgba(0,0,0,.18); transition: transform .08s ease, box-shadow .08s ease;
}
.memoria-carta:not(.resuelta):not(.volteada):hover { transform: translateY(-2px); }
.memoria-carta.volteada { background: linear-gradient(180deg, #ffffff, var(--blanco)); color: var(--tinta); box-shadow: 0 4px 0 #e1d4b8, 0 7px 10px rgba(0,0,0,.14); }
.memoria-carta.resuelta { background: linear-gradient(180deg, #e8fff5, #d5fbe8); color: #04976f; cursor: default; box-shadow: 0 4px 0 #9fe8c9, 0 7px 10px rgba(0,0,0,.1); }

/* ---------- Rueda ---------- */
.rueda-contenedor { position: relative; width: 240px; height: 240px; margin: 10px auto 24px; }
.rueda {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%),
    conic-gradient(var(--coral) 0deg 60deg, var(--arena) 60deg 120deg, var(--hoja) 120deg 180deg, var(--mar-claro) 180deg 240deg, var(--coral) 240deg 300deg, var(--arena) 300deg 360deg);
  box-shadow: 0 10px 0 rgba(7,59,76,.25), 0 16px 26px rgba(0,0,0,.3), inset 0 0 0 6px rgba(255,255,255,.4);
  transition: transform 2.2s cubic-bezier(.2,.8,.2,1); display:flex; align-items:center; justify-content:center; font-size:38px;
}
.rueda-puntero { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 28px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }

/* ---------- El Ahorcado ---------- */
/* En vez del clásico muñeco en la horca, usamos el barquito del archipiélago:
   cada fallo levanta una ola; si se acaban los intentos, el barco se hunde. */
.ahorcado-vidas { font-size: 28px; text-align: center; margin-bottom: 14px; letter-spacing: 2px; }
.ahorcado-palabra { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 22px; }
.ahorcado-letra {
  min-width: 34px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ffffff, #f1f7fa); border: 3px solid #d9e8ee; border-radius: 10px;
  font-family: var(--divertida); font-weight: 700; font-size: 20px; text-transform: lowercase; color: var(--tinta);
  box-shadow: 0 4px 0 #d9e8ee, 0 6px 10px rgba(0,0,0,.08);
}
.ahorcado-letra.revelada { background: linear-gradient(180deg, #e8fff5, #d5fbe8); border-color: var(--hoja); color: #04976f; box-shadow: 0 4px 0 #04976f, 0 6px 10px rgba(0,0,0,.08); animation: fa-letra-pop .25s ease; }
@keyframes fa-letra-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.ahorcado-espacio { width: 18px; }
.ahorcado-teclado { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px; max-width: 560px; margin: 0 auto; }
.tecla-ahorcado {
  aspect-ratio: 1; background: linear-gradient(180deg, #4bc3e6, var(--mar-claro)); border: none; border-radius: 10px;
  color: white; font-family: var(--divertida); font-weight: 700; font-size: 17px; text-transform: lowercase; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 4px 0 #0c6f91, 0 6px 10px rgba(0,0,0,.15);
  transition: transform .08s ease, box-shadow .08s ease, opacity .15s ease;
}
.tecla-ahorcado:hover:not(:disabled) { transform: translateY(-2px); }
.tecla-ahorcado:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #0c6f91; }
.tecla-ahorcado.acierto { background: linear-gradient(180deg, #2bf0bb, var(--hoja)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 4px 0 #04976f, 0 6px 10px rgba(0,0,0,.1); }
.tecla-ahorcado.fallo { background: linear-gradient(180deg, #ff6f8e, var(--coral)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 4px 0 #b8294f, 0 6px 10px rgba(0,0,0,.1); }
.tecla-ahorcado:disabled { opacity: .55; cursor: default; }
.tecla-ahorcado:disabled:hover { transform: none; }

/* ---------- Teacher ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab-btn { background: rgba(255,255,255,.4); border: none; padding: 10px 18px; border-radius: 999px; font-family: var(--divertida); font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); transition: transform .08s ease; }
.tab-btn:hover { transform: translateY(-1px); }
.tab-btn.activo { background: white; box-shadow: 0 3px 0 rgba(7,59,76,.15), 0 6px 10px rgba(0,0,0,.12); }
.lista-estudiantes { display: flex; flex-direction: column; gap: 10px; }
.fila-estudiante { background: linear-gradient(180deg,#fff,#fbfbfb); border-radius: 16px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; box-shadow: 0 4px 0 rgba(7,59,76,.08), 0 8px 14px rgba(0,0,0,.1); }
.badge { background: linear-gradient(180deg, #ffe08a, var(--arena)); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; font-family: var(--divertida); box-shadow: 0 2px 0 #d19b1f; }

.tabla-stats { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla-stats th, .tabla-stats td { padding: 9px 12px; text-align: left; white-space: nowrap; }
.tabla-stats thead th { background: var(--mar-profundo); color: var(--blanco); font-family: var(--divertida); font-weight: 600; position: sticky; top: 0; }
.tabla-stats thead th:first-child { border-radius: 10px 0 0 0; }
.tabla-stats thead th:last-child { border-radius: 0 10px 0 0; }
.tabla-stats tbody tr:nth-child(even) { background: rgba(7,59,76,.05); }
.tabla-stats tbody tr:hover { background: rgba(17,138,178,.1); }
.tabla-stats td, .tabla-stats th { color: var(--tinta); }

.timer-pill { background: linear-gradient(180deg, #ff6f8e, var(--coral)); color: white; font-family: var(--divertida); padding: 7px 17px; border-radius: 999px; font-weight: 600; box-shadow: 0 3px 0 #b8294f, inset 0 1px 0 rgba(255,255,255,.4); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--tinta); color: white; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-family: var(--divertida); z-index: 50; animation: aparecer .3s ease; box-shadow: 0 6px 0 rgba(0,0,0,.2), 0 10px 20px rgba(0,0,0,.3); }
.insignia-pop { font-size: 60px; text-align: center; filter: drop-shadow(0 8px 6px rgba(0,0,0,.3)); }
.volver { background: none; border: none; color: white; font-weight: 700; font-family: var(--divertida); font-size: 16px; cursor: pointer; display:flex; align-items:center; gap:6px; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.seccion-activa-badge { text-align: center; font-weight: 700; font-size: 13px; color: var(--tinta); opacity: .75; margin: -4px 0 10px; }
@media (max-width: 480px) {
  .opciones-grid { grid-template-columns: 1fr; }
  .memoria-grid { grid-template-columns: repeat(3, 1fr); }
}
