/* Pequeños Exploradores — estilos */
:root {
  --tinta: #26324a;
  --c: #118ab2;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--tinta);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.75) 0 7%, transparent 8%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.75) 0 9%, transparent 10%),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.65) 0 8%, transparent 9%),
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.65) 0 6%, transparent 7%),
    linear-gradient(#7fd0ff 0%, #bfe9ff 55%, #dff6d8 100%);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
button {
  font: inherit; color: inherit; border: 0; margin: 0; padding: 0; background: none;
  cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation;
}
button:active { transform: translateY(2px) scale(.98); }
#app {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  padding: max(env(safe-area-inset-top), 8px) max(env(safe-area-inset-right), 8px) max(env(safe-area-inset-bottom), 8px) max(env(safe-area-inset-left), 8px);
}
.pantalla { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: aparecer .25s ease-out; }

/* ---------- Barra superior ---------- */
.barra { flex: none; display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px; min-height: 58px; }
.redondo {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--c);
  display: grid; place-items: center; font-size: 24px; box-shadow: 0 4px 0 rgba(0,0,0,.16);
}
.barra .titulo {
  flex: 1; min-width: 0; font-size: clamp(18px, 3.4vmin, 30px); font-weight: 900; color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.22); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.puntos { display: flex; gap: 5px; flex: none; }
@media (max-width: 560px) {
  .barra.con-puntos .titulo { visibility: hidden; flex: 0 1 0px; }
  .barra.con-puntos .puntos { flex: 1; justify-content: center; }
  .barra.con-puntos .puntos i { width: 13px; height: 13px; }
}
.puntos i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.55); }
.puntos i.hecho { background: var(--c); }
.puntos i.actual { background: #fff; box-shadow: 0 0 0 3px var(--c); }

/* ---------- Portada e inicio ---------- */
.portada { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5vmin; text-align: center; }
.portada .lumi { width: clamp(130px, 38vmin, 300px); animation: flotar 3s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(0,0,0,.12)); }
.portada h1, .logo h1 {
  margin: 0; font-size: clamp(34px, 9vmin, 76px); line-height: 1; font-weight: 900; color: #fff;
  text-shadow: 0 3px 0 #1c6fa3, 0 6px 0 rgba(0,0,0,.15);
}
.boton-jugar {
  width: clamp(96px, 26vmin, 170px); aspect-ratio: 1; border-radius: 50%; background: #06a77d; color: #fff;
  font-size: clamp(40px, 11vmin, 76px); display: grid; place-items: center; padding-left: .12em;
  box-shadow: inset 0 -9px 0 rgba(0,0,0,.2), 0 8px 18px rgba(0,0,0,.2); animation: latir 1.4s ease-in-out infinite;
}
.portada .pie { margin: 0; font-size: clamp(16px, 3.6vmin, 26px); color: #1c5f8a; }

.inicio { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 1.5vmin; }
.cabecera { width: 100%; display: flex; justify-content: space-between; align-items: center; flex: none; }
.pastilla {
  background: #fff; border-radius: 999px; padding: 8px 16px; font-size: clamp(18px, 3.6vmin, 26px); font-weight: 900;
  box-shadow: 0 4px 0 rgba(0,0,0,.16); color: #b87400; display: flex; align-items: center; gap: 6px;
}
.logo { flex: none; display: flex; align-items: center; gap: 2vmin; }
.logo .lumi { width: clamp(60px, 16vmin, 130px); animation: flotar 3s ease-in-out infinite; }
.logo h1 { font-size: clamp(26px, 6.4vmin, 56px); }
.rejilla-menu {
  flex: 1; min-height: 0; width: 100%; max-width: 1080px; margin: 0 auto; display: grid; overflow-y: auto;
  grid-template-columns: repeat(var(--pc, 2), minmax(0, 1fr)); gap: 3vmin; padding: 2vmin 2vmin 3vmin; align-content: center;
}
.tarjeta {
  position: relative; background: var(--c); color: #fff; border-radius: clamp(18px, 5vmin, 34px); aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6vmin; padding: 1.5vmin;
  box-shadow: inset 0 -9px 0 rgba(0,0,0,.2), 0 6px 14px rgba(0,0,0,.16); min-width: 0;
}
.tarjeta .icono { font-size: clamp(44px, 19vmin, 104px); line-height: 1.1; }
.icono-txt { font-weight: 900; text-shadow: 0 3px 0 rgba(0,0,0,.2); letter-spacing: -.02em; }
.tarjeta .nombre { font-size: clamp(14px, 3.3vmin, 28px); font-weight: 900; line-height: 1.05; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.rejilla-menu[style*="--pc:3"] .tarjeta .icono { font-size: clamp(34px, 12vmin, 96px); }
.rejilla-menu[style*="--pc:3"] .tarjeta .nombre { font-size: clamp(12px, 2.9vmin, 26px); }
.mini { display: inline-flex; gap: 2px; font-size: clamp(14px, 3.2vmin, 24px); line-height: 1; }
.mini i { font-style: normal; color: rgba(0,0,0,.25); }
.mini i.on { color: #ffe066; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.niveles { flex: none; display: flex; justify-content: center; gap: 10px; padding: 2px 0 4px; }
.niveles button {
  background: rgba(255,255,255,.7); border-radius: 999px; padding: 7px 16px; font-size: clamp(15px, 3vmin, 21px); font-weight: 900;
  display: flex; align-items: center; gap: 6px; color: #50607a;
}
.niveles button.activo { background: #fff; color: var(--c); box-shadow: 0 4px 0 rgba(0,0,0,.16), inset 0 0 0 3px var(--c); }
.niveles span { font-size: 1.3em; }

@media (orientation: landscape) {
  .rejilla-menu { grid-template-columns: repeat(var(--lc, 4), minmax(0, 1fr)); gap: 2.4vmin; }
  .rejilla-menu .tarjeta { max-height: 34vh; width: 100%; aspect-ratio: auto; height: 32vh; }
  .inicio .rejilla-menu .tarjeta { height: 46vh; max-height: 46vh; }
}

/* ---------- Juego de opciones ---------- */
.juego { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1vmin; }
.pregunta { flex: none; text-align: center; font-size: clamp(16px, 3.6vmin, 30px); font-weight: 900; min-height: 1.25em; padding: 0 8px; color: #1f4d6b; }
.escena { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vmin; overflow: hidden; padding: 0 2vmin; }
.opciones {
  flex: none; width: 100%; max-width: 900px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 2.4vmin; padding: 1vmin 2vmin 2vmin;
}
.opcion {
  background: var(--oc, #118ab2); color: #fff; border-radius: clamp(16px, 4.5vmin, 30px);
  font-size: clamp(34px, 12vmin, 96px); font-weight: 900; line-height: 1; min-height: clamp(76px, 21vmin, 170px);
  display: grid; place-items: center; text-shadow: 0 3px 0 rgba(0,0,0,.18);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.2), 0 5px 12px rgba(0,0,0,.14); transition: opacity .2s;
}
.opcion.bien { animation: brinco .6s; box-shadow: inset 0 -8px 0 rgba(0,0,0,.2), 0 0 0 6px #fff, 0 0 0 11px #06d6a0; }
.opcion.mal { animation: temblor .4s; }
.opcion.descartada { opacity: .32; pointer-events: none; }
.opcion.pista { animation: latir .9s ease-in-out infinite; box-shadow: inset 0 -8px 0 rgba(0,0,0,.2), 0 0 0 6px #ffe066; }
.altavoz {
  width: clamp(110px, 32vmin, 220px); aspect-ratio: 1; border-radius: 50%; background: #fff; font-size: clamp(50px, 15vmin, 110px);
  display: grid; place-items: center; box-shadow: 0 8px 0 rgba(0,0,0,.14); animation: latir 1.6s ease-in-out infinite;
}

/* ---------- Objetos para contar ---------- */
.objetos { display: grid; grid-template-columns: repeat(var(--cols), auto); gap: .4vmin 1.2vmin; justify-content: center; align-content: center; }
.obj { position: relative; font-size: var(--tam, clamp(34px, min(15vw, 15vh), 96px)); line-height: 1.18; transition: transform .2s, opacity .4s; }
.objetos[data-n="medio"] .obj { font-size: var(--tam, clamp(28px, min(13.5vw, 12vh), 84px)); }
.objetos[data-n="muchos"] .obj { font-size: var(--tam, clamp(22px, min(12.5vw, 7vh), 60px)); }
.obj.contado { transform: scale(.86); }
.obj.contado::after {
  content: attr(data-c); position: absolute; right: -8%; bottom: 0; width: 1.55em; height: 1.55em; border-radius: 50%;
  background: #fff; color: var(--c); font-size: .36em; font-weight: 900; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.obj.ido { opacity: .28; transform: translateY(-14%) rotate(-10deg) scale(.82); }
.obj.ido::before { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #e63946; font-size: .9em; font-weight: 900; }

/* ---------- Conocer números y vocales ---------- */
.conocer { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 1vmin; }
.conocer .fila { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 1.5vmin; }
.flecha {
  flex: none; width: clamp(46px, 11vmin, 84px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--c);
  display: grid; place-items: center; box-shadow: 0 5px 0 rgba(0,0,0,.16);
}
.flecha svg { width: 55%; height: 55%; }
.centro { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1vmin; }
.simbolo { display: flex; flex-direction: column; align-items: center; }
.numerote {
  font-size: clamp(96px, min(56vw, 26vh), 300px); line-height: .95; font-weight: 900; color: var(--nc, var(--c));
  text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 8px 0 rgba(0,0,0,.14);
}
.numerote.letras { font-size: clamp(80px, min(34vw, 22vh), 240px); }
.palabra { font-size: clamp(24px, 6.5vmin, 54px); font-weight: 900; color: var(--nc, var(--c)); }
.zona-obj { display: flex; align-items: center; justify-content: center; min-height: 0; }
.tira { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 4px 8px; max-width: 760px; }
.tira button {
  width: clamp(30px, 7.6vmin, 54px); aspect-ratio: 1; border-radius: 12px; background: #fff; color: var(--bc);
  font-size: clamp(15px, 3.8vmin, 26px); font-weight: 900; box-shadow: 0 3px 0 rgba(0,0,0,.12);
}
.tira button.visto { box-shadow: inset 0 -5px 0 var(--bc), 0 3px 0 rgba(0,0,0,.12); }
.tira button.actual { background: var(--bc); color: #fff; transform: scale(1.14); }
.tira.grande button { width: clamp(50px, 13vmin, 84px); font-size: clamp(26px, 7vmin, 46px); border-radius: 18px; }
.palabras { display: flex; gap: 2vmin; justify-content: center; flex-wrap: wrap; }
.palabra-tarjeta {
  background: #fff; border-radius: 20px; padding: 1.2vmin 2vmin; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 5px 0 rgba(0,0,0,.12); min-width: clamp(84px, 24vmin, 180px);
}
.palabra-tarjeta .em { font-size: clamp(38px, 11vmin, 84px); line-height: 1.15; }
.palabra-tarjeta .tx { font-size: clamp(16px, 4vmin, 30px); font-weight: 900; }
.palabra-tarjeta .tx b { color: var(--nc); font-size: 1.25em; }
.emoji-grande { font-size: clamp(80px, 30vmin, 220px); line-height: 1.1; }
.palabra-hueco { font-size: clamp(30px, 8vmin, 64px); font-weight: 900; letter-spacing: .04em; }
.palabra-hueco b { color: var(--c); display: inline-block; min-width: .7em; text-align: center; border-bottom: .09em solid var(--c); }

@media (orientation: landscape) {
  .centro { flex-direction: row; gap: 5vmin; }
  .centro .palabras { flex-direction: column; flex-wrap: nowrap; gap: 1.4vmin; }
  .centro .palabra-tarjeta { flex-direction: row; gap: 2vmin; padding: .6vmin 2.4vmin; }
  .centro .palabra-tarjeta .em { font-size: clamp(30px, 9vmin, 70px); }
  .numerote { font-size: clamp(90px, min(26vw, 44vh), 300px); }
  .tarjeta .icono { font-size: clamp(40px, 13vmin, 104px); }
  .numerote.letras { font-size: clamp(80px, min(20vw, 40vh), 260px); }
}

/* ---------- Burbujas y globos ---------- */
.campo { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-content: center; justify-items: center; align-items: center; gap: 4.5vmin 2vmin; padding: 1vmin 2vmin 2vmin; width: 100%; max-width: 1000px; margin: 0 auto; }
.burbuja {
  width: min(100%, 26vmin, 150px); aspect-ratio: 1; border-radius: 50%; color: #fff; font-weight: 900;
  font-size: clamp(26px, 9vmin, 64px); display: grid; place-items: center; text-shadow: 0 2px 0 rgba(0,0,0,.2);
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.95) 0 7%, rgba(255,255,255,.35) 8% 16%, transparent 17%), var(--bc);
  box-shadow: inset 0 -8px 14px rgba(0,0,0,.18), inset 0 0 0 3px rgba(255,255,255,.4), 0 6px 12px rgba(0,0,0,.14);
  animation: flotar 3s ease-in-out infinite; animation-delay: var(--r, 0s);
}
.burbuja.mal { animation: temblor .4s; }
.burbuja.pista { animation: latir .9s ease-in-out infinite; box-shadow: 0 0 0 6px #ffe066; }
.burbuja.pop { animation: reventar .28s ease-out forwards; pointer-events: none; }
.globo { border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%; position: relative; width: min(86%, 21vmin, 132px); aspect-ratio: .86; margin-bottom: 8%; }
.globo::after {
  content: ""; position: absolute; left: 50%; top: 99%; width: 0; height: 0; transform: translateX(-50%);
  border-left: .16em solid transparent; border-right: .16em solid transparent; border-bottom: .2em solid var(--bc);
}
.contador-globos { text-align: center; font-size: clamp(20px, 5vmin, 38px); font-weight: 900; color: #1f4d6b; flex: none; min-height: 1.3em; }

/* ---------- Sumas y restas ---------- */
.operacion { display: flex; align-items: center; justify-content: center; gap: 2vmin; min-height: 0; }
.grupo { background: rgba(255,255,255,.75); border-radius: 22px; padding: 1.2vmin 1.8vmin; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.signo { font-size: clamp(30px, 9vmin, 70px); font-weight: 900; color: var(--c); }
.ecuacion { display: flex; align-items: center; gap: .32em; font-size: clamp(32px, 10vmin, 80px); font-weight: 900; line-height: 1.1; }
.ecuacion .op { color: var(--c); }
.incognita { background: #fff; color: var(--c); border-radius: .22em; min-width: 1.35em; padding: 0 .12em; text-align: center; box-shadow: inset 0 0 0 4px var(--c); }
.incognita.ok { background: #06a77d; color: #fff; box-shadow: none; animation: brinco .6s; }
.rana-juego { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 0 1vmin 2vmin; }
.salto-info { font-size: clamp(22px, 6vmin, 46px); font-weight: 900; color: #1f4d6b; background: rgba(255,255,255,.8); border-radius: 999px; padding: .2em .8em; }
.linea { width: 100%; max-width: 1000px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(2px, .8vmin, 10px); align-items: end; }
.hoja { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: clamp(110px, 30vmin, 220px); }
.hoja .sitio { height: 1.25em; font-size: clamp(26px, 8.4vmin, 76px); line-height: 1.2; }
.hoja .rana { display: inline-block; }
.hoja .rana.brinca { animation: brinco-rana .38s ease-out; }
.hoja .num {
  width: 100%; aspect-ratio: 1 / 1.15; max-height: 96px; border-radius: 50% 50% 46% 46%; background: #2f9e44; color: #fff;
  display: grid; place-items: center; font-size: clamp(17px, 5vmin, 44px); font-weight: 900;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.22); text-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.hoja.mal .num { animation: temblor .4s; }
.hoja.pista .num { animation: latir .9s ease-in-out infinite; box-shadow: 0 0 0 5px #ffe066; }
.hoja.meta .num { background: #f78c2a; }

/* ---------- Cuerpo humano ---------- */
.cuerpo-vista { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1vmin; }
.lamina {
  flex: 1; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.62); border-radius: 26px; padding: 1vmin; position: relative;
}
.cuerpo-svg { width: 100%; height: 100%; display: block; }
.cuerpo-svg text { font-family: inherit; }
.parte { cursor: pointer; transition: opacity .25s; transform-box: fill-box; transform-origin: center; }
.lamina.haysel .parte { opacity: .32; }
.lamina.haysel .parte.sel { opacity: 1; animation: latir-parte .9s ease-in-out infinite; }
.lamina.haysel .parte.sel.grande { animation: parpadeo .9s ease-in-out infinite; }
.parte.acierto { animation: latir-parte .5s ease-in-out 3; }
.respira { transform-box: fill-box; transform-origin: 50% 15%; animation: respira 3.4s ease-in-out infinite; }
.late { transform-box: fill-box; transform-origin: center; animation: late 1s ease-in-out infinite; }
.comida { transition: font-size .4s; pointer-events: none; }
.panel { flex: none; display: flex; flex-direction: column; gap: 1.2vmin; padding: 0 .5vmin .5vmin; }
.ficha { background: #fff; border-radius: 20px; padding: 10px 16px; min-height: 96px; box-shadow: 0 4px 0 rgba(0,0,0,.1); }
.f-nombre { font-size: clamp(20px, 4.8vmin, 34px); font-weight: 900; color: var(--c); line-height: 1.15; }
.f-dato { font-size: clamp(14px, 3vmin, 20px); font-weight: 600; line-height: 1.3; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { background: #fff; border-radius: 999px; padding: 7px 12px; font-size: clamp(13px, 2.7vmin, 18px); font-weight: 800; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.chip.visto::before { content: "✓ "; color: #06a77d; }
.chip.activa { background: var(--c); color: #fff; }
.chip.activa::before { color: #fff; }
.pregunta-cuerpo {
  flex: none; background: #fff; border-radius: 20px; padding: 10px 16px; text-align: center; box-shadow: 0 4px 0 rgba(0,0,0,.1);
  font-size: clamp(18px, 4.2vmin, 30px); font-weight: 900; color: var(--c); min-height: 2.6em; display: grid; place-items: center; line-height: 1.15;
}
@media (orientation: landscape) {
  .cuerpo-vista { flex-direction: row; gap: 2vmin; }
  .panel { width: 42%; max-width: 460px; justify-content: center; }
  .cuerpo-vista.quiz { flex-direction: row-reverse; }
  .cuerpo-vista.quiz .pregunta-cuerpo { width: 40%; max-width: 420px; align-self: center; min-height: 5em; }
}

/* ---------- Final, álbum y ajustes ---------- */
.fin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5vmin; text-align: center; }
.fin-lumi .lumi { width: clamp(90px, 24vmin, 190px); animation: brinco 1s ease-in-out infinite; }
.fin h2 { margin: 0; font-size: clamp(30px, 8vmin, 64px); font-weight: 900; color: #fff; text-shadow: 0 3px 0 #1c6fa3; }
.estrellas-fin { display: flex; gap: 2vmin; font-size: clamp(50px, 16vmin, 120px); line-height: 1; }
.estrellas-fin span { filter: grayscale(1); opacity: .3; }
.estrellas-fin span.on { filter: none; opacity: 1; animation: caer-estrella .5s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(var(--i) * .25s + .2s); }
.botones { display: flex; gap: 3vmin; flex-wrap: wrap; justify-content: center; }
.boton {
  background: var(--c); color: #fff; border-radius: 22px; padding: 12px 26px; font-size: clamp(18px, 4.4vmin, 30px); font-weight: 900;
  display: flex; align-items: center; gap: 10px; box-shadow: inset 0 -7px 0 rgba(0,0,0,.2), 0 5px 12px rgba(0,0,0,.14);
}
.boton span { font-size: 1.3em; }
.boton.listo { background: #06a77d; }
.boton.peligro { background: #d1495b; }
.album { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(64px, 17vmin, 120px), 1fr)); gap: 2vmin; padding: 2vmin; align-content: start; }
.pegatina { aspect-ratio: 1; border-radius: 22px; background: #fff; display: grid; place-items: center; font-size: clamp(34px, 10vmin, 70px); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.pegatina.cerrada { background: rgba(255,255,255,.45); box-shadow: none; color: rgba(0,0,0,.3); font-size: clamp(22px, 6vmin, 40px); }
.album-info { flex: none; text-align: center; font-size: clamp(15px, 3.4vmin, 24px); color: #1f4d6b; padding: 0 12px 6px; }
.ajustes { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 8px 12px; width: 100%; max-width: 620px; margin: 0 auto; }
.ajuste { background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: clamp(16px, 3.4vmin, 21px); box-shadow: 0 3px 0 rgba(0,0,0,.1); }
.ajuste small { display: block; font-weight: 600; opacity: .7; font-size: .8em; }
.interruptor { flex: none; width: 62px; height: 36px; border-radius: 999px; background: #c5ccd8; position: relative; transition: background .2s; }
.interruptor::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.interruptor.on { background: #06a77d; }
.interruptor.on::after { left: 30px; }
.nota { font-size: clamp(13px, 2.8vmin, 16px); font-weight: 600; color: #35506b; text-align: center; padding: 4px 10px; }
.puerta { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vmin; text-align: center; padding: 0 16px; }
.puerta h2 { margin: 0; font-size: clamp(22px, 5.4vmin, 38px); color: #1f4d6b; }
.puerta .opciones { max-width: 520px; }
.puerta .opcion { font-size: clamp(28px, 8vmin, 54px); min-height: clamp(64px, 16vmin, 110px); }

/* ---------- Confeti y animaciones ---------- */
.confeti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confeti i { position: absolute; top: -20px; width: 11px; height: 16px; border-radius: 3px; animation: caer 1.4s ease-in forwards; }
@keyframes caer { to { transform: translateY(110vh) rotate(720deg); opacity: .7; } }
@keyframes aparecer { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
@keyframes latir { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes latir-parte { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes brinco { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-12%) scale(1.06); } 70% { transform: translateY(0) scale(.97); } }
@keyframes brinco-rana { 0% { transform: translateY(0); } 50% { transform: translateY(-45%) scale(1.1); } 100% { transform: translateY(0); } }
@keyframes temblor { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6%) rotate(-3deg); } 75% { transform: translateX(6%) rotate(3deg); } }
@keyframes reventar { to { transform: scale(1.5); opacity: 0; visibility: hidden; } }
@keyframes caer-estrella { from { transform: scale(0) rotate(-180deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes respira { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.06); } }
@keyframes late { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.16); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes mastica { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .burbuja, .logo .lumi, .portada .lumi, .altavoz, .boton-jugar { animation: none; }
}
