/* Overlay de la Sacerdotisa Lunar: textos del live encima de su escena.
   La Lunar (fondo, cuerpo, mesa, péndulo y velas) la pintan lunar-*.js dentro de
   #stage, con sus hojas lunar-pendulo.css y lunar-velas.css.
   Renderizado por software, sin GPU: solo transform y opacity en las animaciones.
   Evitar blur, backdrop-filter y sombras grandes en movimiento. */

:root {
  --stage-w: 720px;
  --stage-h: 1280px;
  /* Paleta de letras (RGB). La cambia el panel (overlay/data/lunar_estilos.json,
     lunar-estilo.js); estos son los valores originales. */
  --oro-rgb: 255, 210, 122;
  --oro2-rgb: 255, 224, 138;
  --tinta-rgb: 236, 231, 255;
  --acento-rgb: 201, 167, 255;
  --crema-rgb: 244, 239, 230;
  --ink: rgb(var(--tinta-rgb));
  --accent: rgb(var(--acento-rgb));
  /* Zona segura de TikTok: en el celular el chat tapa el ~35% de abajo y la barra
     del host los ~100px de arriba. Subtítulo y oferta suben --scene-lift px. */
  --scene-lift: 110px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
}

/* Fondo liso oscuro: la escena de la Lunar (#lunar-capa) va encima y lo tapa. */
#stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform-origin: center center;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #07051a;
}

#caption,
#between-offer {
  translate: 0 calc(-1 * var(--scene-lift));
}

/* El subtítulo no tapa la fila de la derecha (columna de x=518 a 714). */
#stage #caption {
  left: 18px !important;
  right: 212px !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
}

.hidden { opacity: 0; visibility: hidden; }

#free-badge {
  display: none !important;
  position: absolute;
  top: 118px;
  left: 12px;
  max-width: 220px;
  padding: 8px 12px;
  border: 1px solid rgba(160, 210, 255, 0.45);
  border-radius: 18px;
  background: rgba(20, 12, 45, 0.78);
  text-align: left;
  z-index: 3;
  transition: opacity 0.4s;
}

#free-badge.hidden {
  opacity: 0;
  visibility: hidden;
}

.free-title {
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(180, 220, 255, 0.95);
}

#free-meta {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(var(--tinta-rgb), 0.82);
}

#side-rail {
  position: absolute;
  top: 52px;
  right: 6px;
  width: 196px;
  z-index: 17;
  pointer-events: none;
}

#price-ladder {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}

#free-plaque {
  margin: 0 0 8px;
  padding: 9px 10px 10px;
  border-radius: 16px;
  background: #0e0e0e;
  border: 1px solid rgba(196, 176, 110, 0.75);
  text-align: center;
}

#free-plaque .free-plaque-how {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

#free-plaque .free-plaque-get {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.25;
  color: #b7c9a4;
}

/* Abajo a la izquierda, lejos de la fila. */
#between-offer {
  position: absolute;
  top: 748px;
  left: 28px;
  width: 300px;
  z-index: 12;
  pointer-events: none;
}

#between-offer .offer-panel {
  display: none;
}

#between-offer .offer-panel.is-on {
  display: block;
}

#between-offer .offer-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: rgb(var(--oro2-rgb));
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

#between-offer .offer-panel .offer-label {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(12, 7, 28, 0.82);
}

#name-line {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(12, 7, 28, 0.78);
}

#name-line li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 28px;
  font-size: 15px;
  line-height: 28px;
  color: rgb(var(--crema-rgb));
}

#name-line .seat {
  width: 16px;
  flex: 0 0 16px;
  font-size: 12px;
  color: rgba(var(--oro-rgb), 0.8);
}

#name-line .who {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "Georgia", "Times New Roman", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

#name-line .prize {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(var(--oro-rgb), 0.72);
}

#name-line li.is-now .who {
  color: rgb(var(--oro-rgb));
}

#name-line li.is-vip .who {
  color: #ffe7b0;
}

#name-line li.is-empty .who {
  color: rgba(var(--crema-rgb), 0.28);
}

#gift-toast {
  position: absolute;
  top: auto;
  bottom: 96px;
  left: 50%;
  width: 520px;
  margin-left: -260px;
  padding: 18px 22px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(var(--oro-rgb), 0.55);
  background: rgba(40, 18, 60, 0.92);
  transition: none;
  z-index: 40;
  pointer-events: none;
}

#gift-toast.vip {
  border-color: rgba(var(--oro-rgb), 0.9);
  box-shadow: 0 0 0 1px rgba(var(--oro-rgb), 0.2);
}

#gift-toast.system {
  border-color: rgba(var(--acento-rgb), 0.55);
}

#gift-toast.warn {
  border-color: rgba(255, 170, 120, 0.7);
}

#gift-toast-label {
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(var(--oro-rgb), 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

#gift-toast-user {
  margin-top: 4px;
  font-size: 36px;
  color: var(--accent);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

#title-return {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: 1px;
  color: rgba(var(--tinta-rgb), 0.65);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* Pregunta de la lectura, sobre la mesa de la Lunar. */
#title-question {
  position: absolute;
  top: 718px;
  left: 48px;
  right: 48px;
  z-index: 16;
  margin: 0;
  padding: 7px 16px;
  max-height: 2.8em;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  font-style: italic;
  text-align: center;
  color: rgba(var(--tinta-rgb), 0.9);
  background: rgba(9, 5, 24, 0.72);
  border-radius: 12px;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

#title-return.hidden,
#title-question.hidden {
  display: none;
}

/* Si ya suena la respuesta, la pregunta no compite por el hueco bajo los pies. */
#stage:has(#caption:not(.hidden)) #title-question {
  display: none;
}

/*
  CTA a todo el ancho, arriba del personaje.
*/
#cta {
  display: none !important;
  position: absolute;
  top: 168px;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 10px 18px;
  box-sizing: border-box;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
  color: rgb(var(--oro2-rgb));
  background: rgba(12, 8, 28, 0.78);
  border: none;
  border-top: 1px solid rgba(var(--oro2-rgb), 0.4);
  border-bottom: 1px solid rgba(var(--oro2-rgb), 0.4);
  border-radius: 0;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.9);
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cta.hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
}

#reader-badge {
  position: absolute;
  bottom: 58px;
  left: 50%;
  width: 480px;
  margin-left: -240px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

#reader-name {
  font-size: 28px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}

#reader-tagline {
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(var(--tinta-rgb), 0.58);
}

#title-bar {
  position: absolute;
  top: 78px;
  left: 0;
  /* ~2 cm a la izquierda y fuera de la fila (248 + 8). */
  width: calc(100% - 260px);
  text-align: center;
  transition: opacity 0.5s;
  z-index: 18;
  pointer-events: none;
}

.title-label {
  display: block;
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(var(--tinta-rgb), 0.65);
}

#title-user {
  display: block;
  margin-top: 6px;
  font-size: 52px;
  color: var(--accent);
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(0, 0, 0, 0.55);
}

/* Lectura de ejemplo: rótulo dorado con recuadro, nunca con cara de nombre de cliente. */
#title-bar.is-demo .title-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--oro-rgb), 0.7);
  background: rgba(12, 7, 28, 0.78);
  font-size: 18px;
  letter-spacing: 3px;
  color: rgb(var(--oro-rgb));
}

#title-bar.is-demo #title-user {
  color: rgb(var(--oro-rgb));
}

#caption {
  position: absolute;
  /* Encima de la mesa (790), bajo la pregunta. */
  top: 714px;
  left: 48px;
  right: 48px;
  max-height: 80px;
  overflow: hidden;
  padding: 8px 16px;
  border-radius: 16px;
  background: rgba(9, 5, 24, 0.92);
  border: 1px solid rgba(var(--acento-rgb), 0.28);
  transition: opacity 0.5s;
  z-index: 30;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#caption.hidden,
#caption-text.hidden,
#caption-karaoke.hidden {
  display: none !important;
}

#caption-text {
  font-size: 23px;
  line-height: 1.42;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

#caption-karaoke {
  font-size: 24px;
  line-height: 1.35;
  text-align: center;
  min-height: 1.2em;
  max-height: 2.7em;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

#caption-karaoke .kw {
  color: rgba(var(--tinta-rgb), 0.45);
  margin: 0 3px;
}

#caption-karaoke .kw.spoken {
  color: rgba(var(--tinta-rgb), 0.78);
}

#caption-karaoke .kw.active {
  color: rgb(var(--oro-rgb));
}

#idle {
  position: absolute;
  top: auto;
  bottom: 28px;
  left: 18px;
  right: 214px;
  text-align: left;
  transition: opacity 0.6s;
  z-index: 15;
}

#idle-text {
  font-size: 16px;
  line-height: 1.35;
  color: rgba(var(--crema-rgb), 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

#idle.hidden { opacity: 0; visibility: hidden; }

#disclaimer {
  position: absolute;
  bottom: 60px;
  left: 50%;
  width: 660px;
  margin-left: -330px;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.2px;
  color: rgba(var(--tinta-rgb), 0.8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* 17-nov-2026: etiqueta fija de contenido IA (TikTok AIGC). Bajo el título, a la
   izquierda; fuera de la barra del host, la columna derecha y el chat. Sin animación
   ni transición: tiene que salir en cualquier fotograma, encima de todo. */
#ai-label {
  position: absolute;
  top: 180px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 7px;
  border-radius: 14px;
  border: 1px solid rgba(232, 220, 180, 0.45);
  background: rgba(10, 6, 22, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.2;
  color: #f3ead2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  z-index: 60;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none;
}

/* 18-nov-2026: el texto un poco más discreto; sigue legible (aviso obligatorio). */
#ai-label .ai-text {
  color: rgba(243, 234, 210, 0.82);
}

#ai-label .ai-tag {
  flex: none;
  padding: 4px 7px;
  border-radius: 8px;
  background: #e8dcb4;
  color: #140c26;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 17px;
  letter-spacing: 1px;
  text-shadow: none;
}

#status-dot {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f06565;
}

#status-dot.online { background: #5fd48a; }

/* Top del día y barra de taps: dentro de la columna derecha, fuera del chat de TikTok. */
#leaderboard,
#tap-progress {
  margin: 8px 0 0;
  padding: 7px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(var(--oro-rgb), 0.35);
  background: rgba(12, 7, 28, 0.82);
}

#leaderboard.hidden,
#tap-progress.hidden {
  display: none;
}

/* Top del día: a la izquierda, entra y sale (no fijo). Bajo el título de la lectura. */
#leaderboard {
  position: absolute;
  /* Debajo de la etiqueta IA (#ai-label, 180-238). */
  top: 250px;
  left: 14px;
  width: 196px;
  margin: 0;
  z-index: 17;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#leaderboard.lb-on {
  opacity: 1;
  transform: translateX(0);
}

.lb-title,
.tp-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(var(--oro-rgb), 0.8);
  margin-bottom: 4px;
}

#lb-list,
#tp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#lb-list li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(var(--crema-rgb), 0.92);
}

#lb-list li .lb-who {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#lb-list li .lb-rank {
  display: inline-block;
  width: 14px;
  color: rgba(var(--oro-rgb), 0.95);
  font-weight: 700;
}

#lb-list li .lb-gems {
  flex: 0 0 auto;
  color: rgba(var(--oro-rgb), 0.9);
  font-size: 12px;
}

#tp-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: rgb(var(--crema-rgb));
  margin-top: 3px;
}

#tp-list .tp-who {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#tp-list .tp-count {
  font-size: 11px;
  color: rgba(var(--oro-rgb), 0.85);
}

#tp-list .tp-bar {
  grid-column: 1 / -1;
  height: 5px;
  margin-top: 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

#tp-list .tp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b7c9a4, rgb(var(--oro-rgb)));
  transform-origin: left center;
  transition: transform 0.6s ease;
}

#rose-line {
  margin: 6px 0 0;
  padding: 5px 8px;
  border-radius: 10px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 143, 168, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #ffd6df;
}

/* 17-nov-2026: aviso fijo: en temas delicados solo hay consejo general, sin predicciones. */
#reserved-line {
  margin: 6px 0 0;
  padding: 5px 8px;
  border-radius: 10px;
  background: #0e0e0e;
  border: 1px solid rgba(196, 176, 110, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #e8dcb4;
}

/* Horas valle: la rosa se ve más. */
#stage[data-daypart="valle"] #rose-line {
  border-color: rgba(255, 143, 168, 0.95);
  box-shadow: 0 0 10px rgba(255, 143, 168, 0.45);
}

/* Aviso urgente de cupo bajo */
#quota-urgent {
  position: absolute;
  top: 118px;
  left: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 80, 0.7);
  background: rgba(20, 6, 6, 0.82);
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #ffb090;
  z-index: 4;
}

@keyframes quota-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

#quota-urgent.pulsing {
  animation: quota-pulse 1.2s ease-in-out infinite;
}

#audio-unlock-prompt {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(36, 14, 66, 0.92);
  border: 1.5px solid rgba(var(--acento-rgb), 0.6);
  color: #f5edff;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(180, 120, 255, 0.4);
  cursor: pointer;
  animation: pulseAudioPrompt 1.8s infinite alternate ease-in-out;
  pointer-events: auto;
  user-select: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

#audio-unlock-prompt.hidden {
  display: none !important;
}

@keyframes pulseAudioPrompt {
  0% { transform: translateX(-50%) scale(1); opacity: 0.92; }
  100% { transform: translateX(-50%) scale(1.03); opacity: 1; }
}

*,
*::before,
*::after {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ===== Fase moat (18-nov-2026) ===== */

/* Aviso sin nombre: la línea del usuario no queda vacía. */
#gift-toast-user.is-empty {
  display: none;
}

/* Guardiana / Alquimista del altar junto al nombre. Va a la derecha del
   nombre (no debajo): debajo está la etiqueta IA (#ai-label, 180-238). */
#title-guardian.hidden {
  display: none;
}

#title-bar.has-guardian #title-user {
  display: inline-block;
  max-width: 290px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-size: 44px;
}

#title-guardian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 150px;
  margin: 6px 0 0 10px;
  padding: 4px 9px 4px 5px;
  vertical-align: middle;
  border-radius: 12px;
  border: 1px solid rgba(232, 214, 160, 0.6);
  background: rgba(14, 9, 30, 0.8);
  text-align: left;
  opacity: 1;
  visibility: visible;
}

#title-guardian[data-level="alquimista"] {
  border-color: rgba(255, 214, 120, 0.9);
  box-shadow: 0 0 10px rgba(255, 200, 90, 0.25);
}

#title-guardian .tg-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#title-guardian-title {
  font-size: 12px;
  letter-spacing: 0.4px;
  line-height: 1.2;
  color: #f6e2a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#title-guardian-crystal {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(var(--tinta-rgb), 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lectura colectiva: "✦ Para todos", sin rótulo de ejemplo ni nombre propio. */
#title-bar.is-collective .title-label {
  font-size: 18px;
  letter-spacing: 3px;
  color: rgba(246, 226, 168, 0.85);
}

#title-bar.is-collective #title-user {
  font-size: 44px;
  font-style: italic;
  color: #f3e6c0;
}

#name-line li.is-collective .who {
  font-style: italic;
  color: rgba(246, 226, 168, 0.82);
}

#name-line li.is-collective.is-now .who {
  color: #f6e2a8;
}

/* Relleno con nombre: se rotula «muestra» en vez del regalo, en tono apagado. */
#name-line li.is-sample .prize {
  font-style: italic;
  letter-spacing: 0.3px;
  color: rgba(var(--tinta-rgb), 0.55);
}

/* Guardianes del altar: en el hueco del Top del día (que se asoma por turnos),
   bajo la etiqueta IA y lejos de la columna derecha. Sin números. */
#guardians-plaque {
  position: absolute;
  top: 250px;
  left: 14px;
  width: 196px;
  padding: 7px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(232, 214, 160, 0.45);
  background: rgba(12, 7, 28, 0.82);
  z-index: 17;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#guardians-plaque.hidden {
  display: none;
}

#guardians-plaque.gp-on {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

#guardians-plaque .gp-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(246, 226, 168, 0.85);
  margin-bottom: 4px;
}

#guardians-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#guardians-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(var(--crema-rgb), 0.92);
}

#guardians-list .gp-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#guardians-list .gp-crystal {
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(246, 226, 168, 0.72);
}

#guardians-list li[data-level="alquimista"] .gp-name {
  color: #ffe3a0;
}

/* Tarjeta de cuidado: centrada, calma, texto grande. Sin transición ni
   animación (render por software). Bajo la etiqueta IA (z 60). */
#safety-card {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  background: rgba(10, 8, 22, 0.55);
  pointer-events: none;
}

#safety-card.hidden {
  display: none;
}

#safety-card .safety-panel {
  width: 100%;
  max-width: 600px;
  padding: 28px 30px 26px;
  border-radius: 22px;
  border: 1px solid rgba(214, 226, 240, 0.45);
  background: rgba(22, 28, 44, 0.94);
  text-align: center;
  color: #f3f1ea;
}

#safety-card[data-kind="crisis"] .safety-panel {
  border-color: rgba(190, 220, 255, 0.7);
}

#safety-card[data-kind="menor"] .safety-panel {
  border-color: rgba(200, 235, 205, 0.6);
}

#safety-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.25;
  color: #ffffff;
}

#safety-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

#safety-lines li {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.35;
  color: rgba(243, 241, 234, 0.95);
}

/* Mientras está la tarjeta no queda nada de lectura ni de venta encima. */
#stage.safety-on #title-bar,
#stage.safety-on #title-question,
#stage.safety-on #between-offer,
#stage.safety-on #gift-toast,
#stage.safety-on #guardians-plaque {
  visibility: hidden !important;
}

/* Momento fuera de la cola: tarjeta chica arriba, sin animación (render por
   software). Bajo la tarjeta de cuidado (z 55). */
#momento-card {
  position: absolute;
  top: 345px; /* bajo la barbilla, sobre los subtítulos */
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  min-width: 300px;
  max-width: 560px;
  padding: 14px 26px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 150, 0.55);
  background: rgba(30, 18, 40, 0.88);
  text-align: center;
  color: #f6efe2;
  pointer-events: none;
}

#momento-card.hidden {
  display: none;
}

#momento-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 214, 150, 0.9);
}

#momento-detail {
  margin: 6px 0 0;
  font-size: 34px;
  line-height: 1.15;
  color: #ffffff;
}

#momento-detail:empty {
  display: none;
}

#momento-candles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

#momento-candles:empty {
  display: none;
}

#momento-candles .momento-flame {
  width: 12px;
  height: 20px;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 70%, #fff6c8 0%, #ffc45c 45%, #ff7a2e 100%);
  box-shadow: 0 0 10px rgba(255, 180, 80, 0.75);
}

#stage.safety-on #momento-card {
  visibility: hidden !important;
}
