/* ===== Ganina: estilos ===== */
:root {
  --verde-oscuro: #2E7D4F;
  --verde: #8CCB4A;
  --crema: #EFEBDD;
  --rosa: #E88A8A;
  --brillo: #E8FF5A;
  --tinta: #1f4a31;
  --letra: 'Baloo 2', 'Nunito', 'Arial Rounded MT Bold', ui-rounded, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  font-family: var(--letra);
  color: var(--tinta);
  /* fondo de computador: estrellitas verdes */
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 255, 90, .25) 0 2px, transparent 3px) 0 0 / 60px 60px,
    radial-gradient(circle at 70% 60%, rgba(140, 203, 74, .35) 0 3px, transparent 4px) 0 0 / 90px 90px,
    radial-gradient(ellipse at top, #3f9a63, #1d5236 70%);
  display: flex;
  justify-content: center;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

/* ===== Columna tipo celular ===== */
.juego {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--crema);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow: hidden;
}

@media (min-width: 520px) {
  .juego {
    height: min(100dvh - 32px, 940px);
    margin: auto;
    border-radius: 36px;
    border: 8px solid var(--verde-oscuro);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 3px var(--brillo);
  }
}

/* ===== Barras ===== */
.barras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 10px 12px 10px;
  background: var(--verde-oscuro);
  border-radius: 0 0 24px 24px;
  z-index: 3;
}

.barra {
  display: flex;
  align-items: center;
  gap: 6px;
}

.barra-emoji {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25));
}

.barra-cuerpo { flex: 1; min-width: 0; }

.barra-nombre {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--crema);
}

.barra-fondo {
  height: 16px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .3);
  border: 2px solid rgba(255, 255, 255, .25);
  overflow: hidden;
}

.barra-relleno {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--color-barra, var(--verde));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), inset 0 3px 0 rgba(255, 255, 255, .35);
  transition: width .6s ease, background-color .6s;
}

.barra.baja .barra-emoji { animation: latido .7s ease-in-out infinite; }
.barra.baja .barra-fondo { animation: alerta .7s ease-in-out infinite; }

@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(-8deg); }
}
@keyframes alerta {
  0%, 100% { border-color: rgba(255, 255, 255, .25); }
  50% { border-color: #ff6b6b; box-shadow: 0 0 10px #ff6b6b; }
}

/* ===== Sala ===== */
.sala {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: -24px; /* se mete debajo de las barras redondeadas */
  isolation: isolate; /* lo oscuro no tapa las barras */
}

.sala-pared {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(140, 203, 74, .14) 34px 50px),
    linear-gradient(#f6f1dc, #ece4c6);
}

.sala-ventana {
  position: absolute;
  top: 56px; left: 7%;
  width: 26%; aspect-ratio: 1 / 1.1;
  border-radius: 50% 50% 12px 12px;
  border: 7px solid #fff;
  background:
    radial-gradient(circle at 70% 30%, var(--brillo) 0 10%, transparent 11%),
    linear-gradient(#7fd3f5, #c6f0ff);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .08);
}

.sala-cuadro {
  position: absolute;
  top: 70px; right: 9%;
  width: 18%; aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 32px;
  background: var(--rosa);
  border: 6px solid #b8743f;
  border-radius: 8px;
  transform: rotate(4deg);
}

.sala-piso {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 30%;
  background:
    repeating-linear-gradient(90deg, #c9935b 0 58px, #bd8650 58px 60px),
    #c9935b;
  border-top: 6px solid #a8703f;
}

.sala-tapete {
  position: absolute;
  left: 12%; right: 12%; bottom: 7%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--verde) 0 45%, var(--verde-oscuro) 46% 52%, var(--verde) 53%);
  opacity: .9;
}

.cabecera {
  position: absolute;
  top: 30px; left: 8px; right: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.nombre {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--verde-oscuro);
  text-shadow: 0 2px 0 #fff, 0 0 8px #fff;
}
.pastilla {
  pointer-events: auto;
  padding: 4px 12px 2px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--verde-oscuro);
  background: rgba(255, 255, 255, .92);
  border: 3px solid var(--verde-oscuro);
  border-radius: 99px;
  box-shadow: 0 3px 0 rgba(46, 125, 79, .35);
}
.cabecera-derecha { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cabecera { align-items: flex-start; }
.nombre { margin-top: 4px; }
.puntos { background: #fff6c9; color: #8a5a00; border-color: #d1a800; }
.puntos.sube { animation: latido .35s ease-in-out 3; }
.etapa { cursor: pointer; -webkit-touch-callout: none; }
.etapa.cargando { background: linear-gradient(90deg, var(--brillo) var(--carga, 0%), #fff var(--carga, 0%)); }

.boton-minijuegos {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 4;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px 4px;
  font-size: 18px; font-weight: 800;
  color: var(--crema);
  background: var(--verde-oscuro);
  border-radius: 99px;
  box-shadow: 0 4px 0 var(--tinta);
}
.boton-minijuegos:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }

/* Ganina (el otro módulo pone un canvas aquí) */
.escenario {
  position: absolute; inset: 0;
  z-index: 2;
}
.escenario canvas { display: block; width: 100%; height: 100%; }

/* Burbuja de diálogo */
.burbuja {
  position: absolute;
  top: 116px; left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 82%;
  padding: 8px 20px 6px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  background: #fff;
  border: 4px solid var(--verde-oscuro);
  border-radius: 26px;
  box-shadow: 0 5px 0 rgba(46, 125, 79, .35);
  transform: translate(-50%, 10px) scale(.6);
  opacity: 0;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
  pointer-events: none;
}
.burbuja::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -14px;
  width: 22px; height: 22px;
  background: #fff;
  border: 4px solid var(--verde-oscuro);
  border-top: none; border-left: none;
  transform: translateX(-50%) rotate(45deg);
}
.burbuja.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Burbuja de pensamiento (antojo) */
.burbuja.pensando {
  border-style: dashed;
  background: #fffde6;
}
.burbuja.pensando::after {
  width: 16px; height: 16px;
  bottom: -26px;
  border: 4px solid var(--verde-oscuro);
  border-radius: 50%;
  background: #fffde6;
  transform: translateX(-50%);
}

/* Efectos: corazones, comida voladora */
.efectos {
  position: absolute; inset: 0;
  z-index: 6;
  pointer-events: none;
}
.corazon {
  position: absolute;
  font-size: 34px;
  animation: subir 1.2s ease-out forwards;
}
@keyframes subir {
  0% { transform: translate(-50%, 0) scale(.4); opacity: 0; }
  15% { opacity: 1; transform: translate(-50%, -10px) scale(1.1); }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), -150px) scale(.9); opacity: 0; }
}

.comida-voladora {
  position: fixed;
  z-index: 50;
  font-size: 54px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .2));
}

/* Luces apagadas */
.luces-apagadas {
  position: absolute; inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 55%, rgba(10, 20, 50, .55), rgba(5, 10, 30, .88));
  opacity: 0;
  transition: opacity .8s;
  pointer-events: none;
}
.luces-apagadas span {
  position: absolute;
  top: 30%; right: 22%;
  font-size: 40px; font-weight: 800;
  color: var(--brillo);
  text-shadow: 0 0 12px var(--brillo);
  animation: zzz 2s ease-in-out infinite;
}
@keyframes zzz {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: .5; }
  50% { transform: translateY(-14px) rotate(6deg); opacity: 1; }
}
.juego.dormido .luces-apagadas { opacity: 1; }
.juego.dormido .nombre { color: var(--brillo); text-shadow: 0 0 10px rgba(232, 255, 90, .6); z-index: 4; }

/* ===== Botones ===== */
.botones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 10px 8px;
  background: var(--verde-oscuro);
  border-radius: 24px 24px 0 0;
  z-index: 3;
}

.boton {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 84px;
  padding: 6px 2px 4px;
  border-radius: 20px;
  background: var(--crema);
  box-shadow: 0 6px 0 #b9b39a;
  transition: transform .08s, box-shadow .08s, filter .2s;
}
.boton:active, .boton.apretado {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #b9b39a;
}
.boton-emoji {
  font-size: 40px;
  line-height: 1.1;
  pointer-events: none;
}
.boton-texto {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}
.boton.verdura { background: #e3ead6; }

.boton-dormir {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 10px;
  min-height: 64px;
  background: #3b4a8a;
  color: #fff;
  box-shadow: 0 6px 0 #232d5c;
}
.boton-dormir:active, .boton-dormir.apretado { box-shadow: 0 1px 0 #232d5c; }
.boton-dormir .boton-texto { font-size: 26px; }
.boton-dormir .boton-emoji { font-size: 36px; }
.juego.dormido .boton-dormir {
  background: #ffd84a;
  color: var(--tinta);
  box-shadow: 0 6px 0 #c99c00;
}

/* Con Ganina dormida, la comida se ve apagada */
.juego.dormido .boton.comida { filter: grayscale(.7) brightness(.8); }

/* Teclas de ayuda: solo en computador */
kbd {
  display: none;
  position: absolute;
  top: 4px; right: 6px;
  font-family: var(--letra);
  font-size: 12px; font-weight: 800;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .12);
}
@media (hover: hover) and (pointer: fine) {
  kbd { display: block; }
  .boton:hover { filter: brightness(1.06); }
}

/* Teléfonos bajitos */
@media (max-height: 700px) {
  .barra-emoji { font-size: 24px; }
  .barra-nombre { font-size: 15px; }
  .boton { min-height: 70px; }
  .boton-emoji { font-size: 32px; }
  .boton-dormir { min-height: 52px; }
  .nombre { font-size: 22px; }
  .pastilla { font-size: 14px; padding: 3px 8px 1px; }
  .burbuja { top: 96px; font-size: 22px; }
  .cuarto { min-height: 38px; font-size: 20px; }
  .plato { min-height: 56px; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dibujo del cuarto (si existe, tapa la sala hecha con CSS) */
.sala-fondo {
  position: absolute; inset: 0;
  background:
    url(../assets/dibujos/fondo-cocina.jpg) center 65% / cover no-repeat,
    url(../assets/dibujos/fondo-sala.jpg) center 65% / cover no-repeat;
}
.juego[data-cuarto="jardin"] .sala-fondo {
  background:
    url(../assets/dibujos/fondo-jardin.jpg) center 65% / cover no-repeat,
    linear-gradient(#8fd8ff 0 55%, #a6dc6a 55% 70%, #7cc24a 70%);
}
.juego[data-cuarto="comedor"] .sala-fondo {
  background:
    url(../assets/dibujos/fondo-comedor.jpg) center 65% / cover no-repeat,
    url(../assets/dibujos/fondo-sala.jpg) center 65% / cover no-repeat;
}
.boton-minijuegos { z-index: 4; }

/* ===== Cuartos de la casa ===== */
.cuartos {
  display: flex;
  gap: 4px;
  padding: 0 8px 8px;
  background: var(--verde-oscuro);
  z-index: 3;
}
.cuarto {
  flex: 1 1 0;
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  min-height: 44px;
  font-size: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  filter: grayscale(.6);
  opacity: .6;
}
.cuarto span { display: none; font-size: 14px; font-weight: 800; }
.cuarto.listo { filter: none; opacity: 1; background: rgba(255, 255, 255, .22); color: var(--crema); }
.cuarto.actual {
  flex: 3.2 1 0;
  font-size: 20px;
  background: var(--brillo);
  color: var(--tinta);
  box-shadow: 0 3px 0 #a9bd2a;
}
.cuarto.actual span { display: inline; }
.cuarto:active { transform: translateY(2px); }

/* Mostrar solo lo del cuarto actual */
.juego:not([data-cuarto="cocina"]) .solo-cocina,
.juego:not([data-cuarto="comedor"]) .solo-comedor,
.juego:not([data-cuarto="jardin"]) .solo-jardin { display: none !important; }

/* ===== Jardín: tomar el sol ===== */
.boton-sol {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 12px;
  min-height: 84px;
  background: #ffe066;
  box-shadow: 0 6px 0 #d1a800;
}
.boton-sol:active, .boton-sol.apretado { box-shadow: 0 1px 0 #d1a800; }
.boton-sol .boton-emoji { font-size: 48px; }
.boton-sol .boton-texto { font-size: 28px; }
.juego.tomando-sol .boton-sol { background: #fff; box-shadow: 0 6px 0 #d1a800, 0 0 0 4px #ffd84a inset; }
.juego.tomando-sol .boton-sol .boton-emoji { animation: girar 3s linear infinite; }
@keyframes girar { to { rotate: 360deg; } }

.rayos-sol {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s;
  background:
    repeating-conic-gradient(from 160deg at 50% -10%, rgba(255, 221, 64, .45) 0 4deg, transparent 4deg 10deg);
  -webkit-mask-image: linear-gradient(#000 20%, transparent 85%);
  mask-image: linear-gradient(#000 20%, transparent 85%);
}
.juego.tomando-sol .rayos-sol { opacity: 1; animation: rayos 1.6s ease-in-out infinite alternate; }
@keyframes rayos { from { filter: brightness(1); } to { filter: brightness(1.5); } }
.brillo-antenas {
  position: absolute;
  left: 50%; top: 42%;
  width: 180px; height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 255, 90, .7), transparent 70%);
  animation: latido 1s ease-in-out infinite;
}

/* Libro de recetas: el gran botón de la cocina */
.boton-recetas {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 12px;
  min-height: 84px;
  background: #fff6c9;
  box-shadow: 0 6px 0 #c9b25a;
}
.boton-recetas:active, .boton-recetas.apretado { box-shadow: 0 1px 0 #c9b25a; }
.boton-recetas .boton-emoji { font-size: 48px; }
.boton-recetas .boton-texto { font-size: 28px; }

/* Botones de cocina rápida: escondidos salvo que el libro falle */
.boton.comida { display: none; }
.juego.sin-recetas[data-cuarto="cocina"] .boton.comida { display: flex; }
.juego.sin-recetas .boton-recetas { display: none; }

/* Comida mala (quemada o le faltó algo): gris y con 🔥 */
.mala .comida-emoji { filter: grayscale(.85) brightness(.65) sepia(.5); }
.insignia { position: absolute; right: -4px; bottom: -4px; font-size: 18px; line-height: 1; }
.bandeja-items > span { position: relative; display: inline-block; }
.bandeja-items .insignia { font-size: 12px; right: -3px; bottom: 0; }

/* ===== Bandeja (comedor) ===== */
.bandeja {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  background: #c9935b;
  box-shadow: inset 0 -5px 0 #a8703f;
}
.plato {
  position: relative;
  font-size: 34px;
  border-radius: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #fff 0 55%, #e6e1cf 56%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
  display: grid; place-items: center;
}
.plato:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.plato.vacio { background: rgba(255, 255, 255, .25); box-shadow: none; border: 3px dashed rgba(255, 255, 255, .6); cursor: default; }
.plato kbd { top: -2px; right: -2px; }

/* Bandeja chiquita (en la cocina) */
.bandeja-mini {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 4;
  display: flex; align-items: center; gap: 4px;
  min-height: 46px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
  border: 3px solid var(--verde-oscuro);
  box-shadow: 0 3px 0 rgba(46, 125, 79, .35);
  pointer-events: none;
}
.bandeja-icono { font-size: 24px; }
.bandeja-items { font-size: 26px; letter-spacing: -2px; min-width: 20px; }
.bandeja-items:empty::after { content: 'vacía'; font-size: 16px; font-weight: 800; letter-spacing: 0; color: #8a8a7a; }
.bandeja-mini.llena { animation: latido .4s ease-in-out 2; }

/* Olla cocinando */
.olla {
  position: absolute;
  left: 50%; top: 40%;
  z-index: 6;
  font-size: 80px;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.olla.cocinando { transform: translate(-50%, -50%) scale(1); animation: menear .2s ease-in-out infinite alternate; }
@keyframes menear {
  from { rotate: -10deg; }
  to { rotate: 10deg; }
}
.vapor {
  position: absolute;
  top: -20px;
  font-size: 34px;
  opacity: 0;
  rotate: -90deg;
}
.v1 { left: 0; }
.v2 { left: 44px; }
.olla.cocinando .vapor { animation: vapor .8s ease-out infinite; }
.olla.cocinando .v2 { animation-delay: .4s; }
@keyframes vapor {
  0% { transform: translateX(0); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateX(40px); opacity: 0; }
}

/* ===== Olor feo y moscas ===== */
.olor {
  position: absolute;
  left: 50%; top: 58%;
  width: 0; height: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s;
}
.juego.huele .olor { opacity: 1; }
.peste {
  position: absolute;
  width: 22px; height: 60px;
  font-size: 0; /* sin el emoji: dibujamos la onda con SVG */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 60'%3E%3Cpath d='M11 58 C0 50 22 42 11 34 C0 26 22 18 11 10 C6 6 9 3 11 2' fill='none' stroke='%237bd13c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(123, 209, 60, .8));
  animation: peste 2.4s ease-in-out infinite;
}
.p1 { left: -90px; top: -40px; }
.p2 { left: -15px; top: -110px; animation-delay: .8s; }
.p3 { left: 60px; top: -50px; animation-delay: 1.6s; }
@keyframes peste {
  0% { transform: translateY(20px) scaleX(.8); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-50px) scaleX(1.2); opacity: 0; }
}
.mosca {
  position: absolute;
  left: -14px; top: -14px;
  font-size: 28px;
  animation: vuelo 2.2s linear infinite;
}
.m2 { animation-duration: 1.7s; animation-direction: reverse; }
.m3 { animation-duration: 2.9s; animation-delay: -1s; }
@keyframes vuelo {
  0% { transform: rotate(0deg) translateX(110px) rotate(0deg) translateY(0); }
  25% { transform: rotate(90deg) translateX(80px) rotate(-90deg) translateY(-20px); }
  50% { transform: rotate(180deg) translateX(120px) rotate(-180deg) translateY(10px); }
  75% { transform: rotate(270deg) translateX(70px) rotate(-270deg) translateY(-30px); }
  100% { transform: rotate(360deg) translateX(110px) rotate(-360deg) translateY(0); }
}

/* ===== Pantallas completas (huevo, libro de recetas) ===== */
.capa-completa {
  position: absolute; inset: 0;
  z-index: 100;
  background: var(--crema);
}

/* ===== Menú de videojuegos: ¡la computadora abductora! ===== */
.menu-juegos {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  padding: calc(24px + env(safe-area-inset-top)) 16px 24px;
  overflow: hidden auto;
  color: var(--crema);
  background:
    radial-gradient(circle at 20% 15%, rgba(232, 255, 90, .5) 0 2px, transparent 3px) 0 0 / 70px 70px,
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, .4) 0 2px, transparent 3px) 0 0 / 110px 110px,
    linear-gradient(#0d2a1b, #134a2e 60%, #1d5236);
  animation: abducir-entrar .45s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes abducir-entrar {
  from { clip-path: circle(0% at 50% 0%); }
  to { clip-path: circle(150% at 50% 0%); }
}
/* El rayo tractor verde */
.menu-juegos::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 140%;
  transform: translateX(-50%);
  background: linear-gradient(rgba(232, 255, 90, .35), rgba(140, 203, 74, .05));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  animation: rayo 1.2s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rayo { from { opacity: .5; } to { opacity: 1; } }
.menu-juegos > * { position: relative; }
.menu-ovni { font-size: 72px; animation: flotar 1.6s ease-in-out infinite alternate; }
@keyframes flotar { from { transform: translateY(-6px) rotate(-4deg); } to { transform: translateY(6px) rotate(4deg); } }
.menu-titulo { font-size: 30px; font-weight: 800; line-height: 1.1; text-align: center; color: var(--brillo); text-shadow: 0 0 14px rgba(232, 255, 90, .6); }
.menu-lista { display: grid; gap: 14px; width: 100%; }
.tarjeta-juego {
  display: flex; align-items: center; gap: 14px;
  min-height: 96px;
  padding: 10px 18px;
  font-size: 28px; font-weight: 800;
  color: var(--tinta);
  background: var(--crema);
  border-radius: 24px;
  box-shadow: 0 6px 0 #b9b39a, 0 0 24px rgba(232, 255, 90, .35);
  text-align: left;
}
.tarjeta-juego:active { transform: translateY(5px); box-shadow: 0 1px 0 #b9b39a; }
.tarjeta-juego .tarjeta-emoji { font-size: 56px; }
.boton-salir {
  padding: 10px 26px 8px;
  font-size: 22px; font-weight: 800;
  color: var(--tinta);
  background: var(--crema);
  border-radius: 99px;
  box-shadow: 0 5px 0 #b9b39a;
}
.boton-salir:active { transform: translateY(4px); box-shadow: 0 1px 0 #b9b39a; }
/* ¡Abducido! */
.menu-juegos.abduciendo .tarjeta-juego.elegida { animation: subir-ovni .7s ease-in forwards; }
.menu-juegos.abduciendo::before { animation: none; opacity: 1; background: linear-gradient(rgba(232, 255, 90, .8), rgba(140, 203, 74, .3)); }
@keyframes subir-ovni {
  0% { transform: scale(1); }
  30% { transform: scale(1.1) translateY(10px); }
  100% { transform: scale(.1) translateY(-120vh) rotate(25deg); opacity: 0; }
}
