/* Escena de velas de la Sacerdotisa Lunar.
 * Regla del overlay: en vivo solo se animan transform y opacity. Nada de
 * filter, blur ni mix-blend-mode: brillos, humo y luz vienen horneados. */
.lunar-velas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: strict;
}

.lunar-velas img {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* escena.jpg trae 110 px extra de mesa abajo (--scene-lift del live); en el prototipo se recortan. */
.lv-escena { left: 0; top: 0; width: 720px; height: 1390px; }
.lv-vineta { left: 0; top: 0; width: 720px; height: 100%; will-change: opacity; }
.lv-luz { will-change: opacity; }

.lv-vela {
  position: absolute;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.lv-plato { left: 0; top: 0; }

.lv-recorte {
  position: absolute;
  overflow: hidden;
}

.lv-cuerpo { position: absolute; }
.lv-cera, .lv-brillo { left: 0; top: 0; }
.lv-brillo { will-change: opacity; }
.lv-aceite { left: 0; top: 0; }
.lv-lagrima { width: 18px; transform-origin: 50% 0; }

/* Nombre tallado a lo largo de la vela (de abajo hacia arriba). */
.lv-nombre {
  position: absolute;
  width: 28px;
  margin-left: -14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font: italic 600 17px/28px Georgia, "Book Antiqua", serif;
  letter-spacing: 1.5px;
  /* Tallado: hueco oscuro con el filo inferior encendido (texto girado 180: -x es abajo). */
  color: rgba(30, 6, 6, 0.36);
  text-shadow: -1px 0 0 rgba(255, 236, 205, 0.30), 1px 0 0 rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  overflow: hidden;
}

.lv-pabilo { position: absolute; width: 0; height: 0; }
.lv-halo { left: 0; top: 0; width: 220px; height: 220px; transform: translate(-50%, -50%); will-change: opacity, transform; }
.lv-llama { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.lv-ventana, .lv-humo { position: absolute; overflow: hidden; }
.lv-hoja { left: 0; top: 0; will-change: transform; }
.lv-brasa { left: -8px; top: -8px; width: 16px; height: 16px; }

.lv-puente { will-change: transform, opacity; }
.lv-puente-i { transform-origin: 0 50%; }
.lv-puente-d { transform-origin: 100% 50%; }
.lv-union { width: 260px; height: 260px; transform: translate(-50%, -50%); will-change: opacity, transform; }
.lv-chispa { left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; }

.lv-rotulo {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 150px;
  text-align: center;
  color: #f4e6c8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.6);
  will-change: opacity, transform;
}

.lv-rotulo-titulo {
  font: 600 44px/1.1 "Book Antiqua", Georgia, serif;
  letter-spacing: 1px;
  color: #ffe2a8;
}

.lv-rotulo-frase {
  margin-top: 8px;
  font: italic 32px/1.2 Georgia, "Book Antiqua", serif;
}

.lv-etiqueta {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 1188px;
  text-align: center;
  font: 22px/1.3 Georgia, serif;
  letter-spacing: 1px;
  color: #e9dcc0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

/* ---- Solo en el overlay del live (overlay/js/lunar-escenas.js) ------------ */
/* Las velas van ENCIMA de la Lunar en pose maestra (#lunar-capa, con la boca viva):
 * escena.jpg se compone igual que esa capa, asi que en el live no se pinta y solo
 * quedan la sala oscurecida, la luz de la llama y las velas. #lunar-capa no sube
 * con --scene-lift, asi que esta capa tampoco. Debajo de los textos del overlay. */
#lunar-velas-escena {
  position: absolute;
  inset: 0;
  z-index: 11;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}
#lunar-velas-escena.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0s;
}
#lunar-velas-escena .lv-escena { display: none; }
