/* 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;
  --ink: #ece7ff;
  --accent: #c9a7ff;
  --card-w: 150px;
  --card-h: 255px;
  /* Sprite, habla y videos idle: a la izquierda del centro, sin recortar. */
  --doll-shift-x: -96px;
}

* { 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);
}

#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 {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0b0720;
  background-image: var(--bg-image, url('/assets/boticaria/layers/bg_wall.jpg'));
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease-in-out;
}

.layer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0b0720;
  background-image: var(--bg-image, url('/assets/boticaria/layers/bg_wall.jpg'));
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease-in-out;
}

#background.has-image,
.layer-bg.has-image {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  animation: candleAmbientBreathe 5.5s ease-in-out infinite alternate;
}

@keyframes candleAmbientBreathe {
  0% {
    filter: brightness(1) contrast(1.02);
  }
  50% {
    filter: brightness(1.04) contrast(1.05) drop-shadow(0 0 16px rgba(255, 175, 75, 0.08));
  }
  100% {
    filter: brightness(0.98) contrast(1.01);
  }
}

/* Mesa entre el fondo y el personaje. Misma caja y object-fit que la figura. */
#layer-table {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

#layer-table.hidden {
  display: none;
}

/* Paño de runas, tapete de cristales y tabla SÍ/NO, sin fondo, mismo lugar en la mesa. */
#rune-table,
#crystal-table,
#pendulo-table {
  position: absolute;
  left: 50%;
  top: 780px;
  width: 680px;
  height: auto;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
}

#pendulo-table {
  /* El disco no llena el cuadro: se escala para igualar el paño de runas. */
  top: 678px;
  width: 1010px;
}

#rune-table.hidden,
#crystal-table.hidden,
#pendulo-table.hidden {
  display: none;
}

/* Solo la tríada: la mesa de madera del péndulo no se superpone al disco negro. */
#stage.triada-altar-on #pendulo-table {
  display: none !important;
}

/* Paño del osito, sobre la madera y debajo del tablero del péndulo. */
#triada-pano {
  position: absolute;
  left: 50%;
  top: 822px;
  width: 640px;
  height: auto;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

#triada-pano.hidden {
  display: none;
}

/* Altar del osito: un objeto por punta del triángulo bordado. */
#triada-altar {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.triada-slot {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translateY(22px) scale(0.975);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.triada-slot.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.triada-slot video,
.triada-slot .triada-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

/* Antes: 257x184 y 61x140. La caja del cristal era casi un sello postal
   (con object-fit:contain sobre un video 16:9, el clip real rendia como
   61x34px) — "no se ve nada" no era un bug de lógica, era una caja
   demasiado chica para percibirse en una pantalla de celular. Se agranda
   usando el espacio libre que ya quedaba sin usar a los lados. */
/* Las tres tablas de la tríada ocupan el mismo rectángulo, grande. */
#slot-pendulo-mesa,
#slot-runas,
#slot-cristal {
  left: 40px;
  top: 800px;
  width: 640px;
  height: 390px;
  z-index: 3;
}
.triada-slot.is-on {
  z-index: 4;
}
#slot-cristal video,
#slot-cristal .triada-still {
  object-fit: contain;
  object-position: center center;
  z-index: 1;
}
#slot-cristal video {
  z-index: 2;
}
#triada-gem {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 28%;
  height: auto;
  transform: translate(-50%, -88%) scale(0.84);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.28s, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
#slot-cristal.is-on #triada-gem:not(.hidden) {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}
#slot-sello {
  display: none !important;
}
#slot-sello.is-on {
  transform: translateY(0) scale(1);
}
#slot-pendulo-mesa.triada-verdict {
  animation: triadaVerdict 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes triadaVerdict {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(0) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

#slot-sello video,
#slot-sello .triada-still {
  object-fit: fill;
}

.triada-slot video.hidden,
.triada-slot .triada-still.hidden,
.triada-caption.hidden,
#triada-seal-name.hidden,
#triada-gem.hidden {
  display: none;
}

.triada-caption {
  position: absolute;
  transform: translateX(-50%);
  width: 200px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.25;
  color: #f6e2a8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

#triada-etapa { left: 360px; top: 746px; width: 560px; font-size: 15px; letter-spacing: 0.06em; }
#triada-label-runas { left: 360px; top: 772px; width: 220px; }
#triada-label-cristal { left: 360px; top: 772px; width: 240px; }
#stage.triada-altar-on #caption {
  top: 618px;
  max-height: 72px;
  border-color: rgba(212, 175, 55, 0.42);
}
.triada-rune-name {
  position: absolute;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.1;
  color: #f6e2a8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, -36%) scale(0.86);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.triada-rune-name.is-in {
  opacity: 1;
  transform: translate(-50%, -78%) scale(1);
}
.triada-rune-glyph {
  font-family: "Segoe UI Symbol", "Segoe UI Historic", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: #f6e7b8;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.85);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 10, 8, 0.78) 0%, rgba(12, 10, 8, 0.28) 68%, transparent 72%);
}
.triada-rune-name em {
  font-style: normal;
  font-size: 11px;
  margin-top: 3px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 226, 168, 0.86);
}
.triada-rune-name.hidden { display: none; }
#triada-rune-1 { left: 51%; top: 27%; }
#triada-rune-2 { left: 28%; top: 60%; }
#triada-rune-3 { left: 75%; top: 60%; }
.triada-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(ellipse at center, rgba(255, 226, 140, 0.42) 0%, rgba(255, 210, 90, 0.08) 58%, transparent 72%);
  transition: opacity 0.45s ease;
}
.triada-mark.is-lit {
  opacity: 1;
  animation: triadaMark 1.3s ease-in-out infinite alternate;
}
@keyframes triadaMark {
  from { opacity: 0.62; }
  to { opacity: 1; }
}
#triada-mark-talvez { left: 50%; top: 23%; width: 48%; height: 18%; }
#triada-mark-no { left: 24%; top: 57%; width: 24%; height: 20%; }
#triada-mark-si { left: 76%; top: 57%; width: 22%; height: 20%; }

#triada-today {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  padding: 4px 10px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  background: rgba(12, 8, 24, 0.72);
  color: #f6e2a8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.4px;
  pointer-events: none;
}

#triada-share {
  position: absolute;
  left: 50%;
  top: 848px;
  width: 320px;
  transform: translateX(-50%);
  z-index: 8;
  padding: 12px 14px 10px;
  border: 1px solid rgba(212, 175, 55, 0.75);
  border-radius: 16px;
  background: rgba(16, 10, 32, 0.88);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.35s linear;
}

#triada-share-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(246, 226, 168, 0.8);
}

#triada-share-name {
  margin-top: 4px;
  font-size: 26px;
  color: #fff6d8;
}

#triada-share-runes,
#triada-share-crystal {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.25;
  color: #f6e2a8;
}

#triada-share-handle {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: rgba(236, 231, 255, 0.72);
}

#triada-seal-name {
  position: absolute;
  left: 360px;
  top: 990px;
  opacity: 0;
  transition: opacity 0.6s ease 0.35s;
  transform: translate(-50%, -50%);
  max-width: 168px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.15;
  color: #fff6d8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
#slot-sello.is-on ~ #triada-seal-name:not(.hidden) {
  opacity: 1;
}

#stage.triada-altar-on #runes-stage,
#stage.triada-altar-on #crystal-stage {
  visibility: hidden !important;
}

#stage.triada-altar-on #pendulo-sacred-dial,
#stage.triada-altar-on .table-zone-glow,
#stage.triada-altar-on #pendulo-table-wash,
#stage.triada-pendulo-settled #pendulo-sacred-dial,
#stage.triada-pendulo-settled .table-zone-glow,
#stage.triada-pendulo-settled #pendulo-table-wash {
  opacity: 0 !important;
  /* Se apaga mientras las runas ya están entrando, no antes: un corte
     duro (opacity:0 instantáneo) se leía como cambio de escena. Con la
     transición se apaga DE FONDO mientras la atención ya está en lo
     nuevo que llega, y el péndulo (el disco/vara) sigue a la vista. */
  transition: opacity 0.9s ease;
}

/* Capa 2: Personaje independiente (Boticaria recortada con transparencia y respiración sutil) */
#layer-character {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  transform-origin: 50% 85%;
  animation: boticariaBreathe 4.5s ease-in-out infinite alternate;
}

#char-pose,
#face-rig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#char-pose {
  z-index: 1;
}

/* Parpadeo y habla salen del rig de canvas, que deforma la pose. El cruce a
   pose_*_open era una doble exposicion: dos copias de la cara al 55%.
   El canvas pinta la figura completa y oculta a #char-pose, que se queda
   solo como fuente de pixeles: si el canvas dibujara un parche, el navegador
   lo reescalaria con otro filtro que la imagen y el parche se veria como un
   recuadro pegado. */
#face-rig {
  z-index: 2;
}

@keyframes boticariaBreathe {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-2.2px) scaleX(1.003) scaleY(1.006);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* Rig de animacion y lip-sync de La Boticaria Holistica */
#boticaria-rig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

#boticaria-life {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#boticaria-hair-l,
#boticaria-hair-r,
#boticaria-blink,
#boticaria-blink-half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

#boticaria-hair-l,
#boticaria-hair-r {
  opacity: 0.7;
  will-change: transform;
}

#boticaria-hair-l {
  transform-origin: var(--hair-ox-l, 39%) var(--hair-oy-l, 30%);
}

#boticaria-hair-r {
  transform-origin: var(--hair-ox-r, 62%) var(--hair-oy-r, 30%);
}

#boticaria-blink,
#boticaria-blink-half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  will-change: opacity;
  transition: opacity 0.03s ease-out;
}

/* El parpadeo real ahora lo pinta #face-rig deformando la pose (velo gris
   sobre el iris al usar el PNG de parpado). Los <img> se quedan en el DOM
   por compatibilidad pero no deben pintar nada. */
#boticaria-blink,
#boticaria-blink-half {
  display: none;
}

#boticaria-face-glow {
  position: absolute;
  left: 50%;
  top: var(--face-y, 430px);
  width: 260px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 214, 180, 0.09), transparent 70%);
  animation: boticariaFaceGlow 5.2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes boticariaFaceGlow {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* La boca vive en el cruce pose / pose_*_open, no en PNG extra. */
#boticaria-mouth-rig {
  display: none !important;
}

#boticaria-mouth-rig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.07s ease-out;
}

#boticaria-mouth-rig.talking.viseme-rest #boticaria-mouth-rest,
#boticaria-mouth-rig.talking.viseme-slight #boticaria-mouth-slight,
#boticaria-mouth-rig.talking.viseme-open #boticaria-mouth-open {
  opacity: 1;
}

/* Triada: la foto ya sonríe con dientes; otro PNG se ve como boca doble. */
#boticaria-mouth-rig.no-mouth img {
  display: none !important;
}

/* Donas PNG: color del clip original, encima de la biblioteca, detrás de la muñeca. */
#dona-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  object-fit: contain;
  image-rendering: auto;
  mix-blend-mode: normal;
}

#dona-fx.is-on {
  opacity: 1;
  visibility: visible;
}

/* Osito: brujita+oso erradicado en favor de la nueva estetica holistica. */
#osito-fx {
  position: absolute;
  top: 263px;
  left: calc(50% + var(--doll-shift-x));
  width: 520px;
  height: 495px;
  margin-left: -260px;
  background: transparent;
  z-index: 14;
  pointer-events: none;
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  transition: opacity 0.35s ease;
  image-rendering: auto;
  object-fit: contain;
}

#osito-fx.is-on {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

#ghost.osito-fx-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.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(236, 231, 255, 0.82);
}

#gift-stack {
  position: absolute;
  top: 358px;
  right: 76px;
  width: 220px;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 16;
  pointer-events: none;
}

#side-rail {
  position: absolute;
  top: 228px;
  right: 8px;
  width: 156px;
  z-index: 17;
  pointer-events: none;
}

#price-ladder {
  padding: 8px 10px 6px;
  border-radius: 12px;
  background: rgba(12, 7, 28, 0.82);
}

.ladder-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.92);
}

.ladder-row b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffd27a;
  text-align: right;
}

.ladder-row b small {
  display: block;
  margin-top: -2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  line-height: 1;
  color: rgba(255, 210, 122, 0.78);
}

/* A la izquierda del péndulo, encima del tablero SÍ/NO y 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-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 6px 12px 6px 8px;
  border-radius: 14px;
  background: rgba(12, 7, 28, 0.82);
}

#between-offer .offer-stone {
  width: 36px;
  height: 26px;
  border-radius: 50%;
  background: #8f887e;
  position: relative;
  flex: 0 0 auto;
}

#between-offer .offer-stone::before,
#between-offer .offer-stone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 18px;
  background: #e6c56a;
  transform: translateX(-50%);
}

#between-offer .offer-stone::before {
  transform: translateX(-50%) rotate(28deg);
  height: 12px;
  top: 5px;
}

#between-offer .offer-gem {
  width: 48px;
  height: 40px;
  object-fit: contain;
  object-position: center bottom;
  flex: 0 0 auto;
}

#between-offer .offer-bob {
  width: 28px;
  height: 48px;
  object-fit: contain;
  object-position: center bottom;
  flex: 0 0 auto;
}

#between-offer .offer-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: #ffe08a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

#between-offer .offer-panel[data-offer-panel="free"] .offer-label,
#between-offer .offer-panel[data-offer-panel="dona"] .offer-label {
  display: inline-block;
  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: #f4efe6;
}

#name-line .seat {
  width: 16px;
  flex: 0 0 16px;
  font-size: 12px;
  color: rgba(255, 210, 122, 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(255, 210, 122, 0.72);
}

#name-line li.is-now .who {
  color: #ffd27a;
}

#name-line li.is-vip .who {
  color: #ffe7b0;
}

#name-line li.is-empty .who {
  color: rgba(244, 239, 230, 0.28);
}

#gift-banner {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

#gift-banner img {
  display: block;
  width: 100%;
  height: auto;
}

#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(255, 210, 122, 0.55);
  background: rgba(40, 18, 60, 0.92);
  transition: none;
  z-index: 40;
  pointer-events: none;
}

#gift-toast.vip {
  border-color: rgba(255, 210, 122, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.2);
}

#gift-toast.system {
  border-color: rgba(201, 167, 255, 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(255, 210, 122, 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(236, 231, 255, 0.65);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* Entre personaje y mesa: no tapa la carta. */
#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(236, 231, 255, 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, solo un poco encima del personaje (#ghost / .sprite top:210px).
*/
#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: #ffe08a;
  background: rgba(12, 8, 28, 0.78);
  border: none;
  border-top: 1px solid rgba(255, 224, 138, 0.4);
  border-bottom: 1px solid rgba(255, 224, 138, 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(236, 231, 255, 0.58);
}

#rare-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 220, 140, 0.35), transparent 55%);
  z-index: 4;
  transition: none;
}

.card.rare-glow .card-face {
  border-color: rgba(255, 210, 122, 0.95);
}

.card.rare-glow .card-front {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 210, 122, 0.28), transparent 60%),
    linear-gradient(170deg, #3a2468, #1a0f36);
}


#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(236, 231, 255, 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);
}

#ghost, #ghost *, #ghost.sprite, #ghost.sprite *, .ghost-layer, #ghost-mouth {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#deck, #shuffle-fan, #galaxy-map {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#ghost.sprite .ghost-layer {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.14s ease;
}

/* La capa idle define el alto; las demas se superponen sin recargar imagen */
#ghost.sprite .ghost-layer:not(.is-base) {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

#ghost.sprite .ghost-layer.is-base {
  opacity: 0;
}

#ghost.sprite .ghost-layer.is-active {
  opacity: 1;
}

/* Boca real: capa completa alineada con idle.png (misma escala que ghost-layer) */
#ghost.sprite .ghost-mouth-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
}

#ghost.sprite .ghost-mouth-overlay.is-open {
  opacity: 1;
}

/* Legacy: sin visemas alineados, solo respiracion sutil al hablar. */
#ghost.sprite.talking:not(.ghost-new) .ghost-layer.is-active {
  animation: breatheTalk 0.9s ease-in-out infinite alternate;
}

/* ghost_new: rest siempre debajo; swaps instantaneos (sin fade = sin “desaparecer”). */
#ghost.sprite.ghost-new .ghost-layer {
  transition: none !important;
  will-change: auto;
  backface-visibility: hidden;
}

#ghost.sprite.ghost-new .ghost-layer.is-base {
  opacity: 1 !important;
}

#ghost.sprite.ghost-new .ghost-layer:not(.is-base) {
  opacity: 0;
}

#ghost.sprite.ghost-new .ghost-layer.is-active:not(.is-base) {
  opacity: 1;
}

#ghost.sprite.ghost-new .ghost-mouth-overlay {
  display: none;
}

/* Menos flotacion mientras habla: el swap de boca ya aporta movimiento. */
#ghost.sprite.ghost-new.talking {
  animation-duration: 8s;
}

@keyframes bob {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.01) translateY(-2px); }
}

@keyframes breatheTalk {
  from {
    transform: scale(1);
    opacity: 0.96;
  }
  to {
    transform: scale(1.012);
    opacity: 1;
  }
}

#ghost-mouth {
  transform-origin: 100px 124px;
  transition: transform 0.12s ease;
}

#ghost.talking #ghost-mouth { animation: talk 0.42s ease-in-out infinite alternate; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

@keyframes talk {
  from { transform: scaleY(0.55) scaleX(0.95); }
  to   { transform: scaleY(1.05) scaleX(1.02); }
}

@keyframes miniGlow {
  0%, 100% { opacity: 0.1; }
  50%       { opacity: 0.65; }
}

#table {
  position: absolute;
  top: 790px;
  left: 0;
  width: 100%;
  height: 275px;
  z-index: 5;
  overflow: visible;
}

/* La mesa solo cruza el plano de la tarotista durante reparto o enfoque. */
#table.is-animating {
  z-index: 20;
}

#stage.ritual-galaxy #table {
  top: 775px;
  height: 300px;
}

#stage.ritual-galaxy #table::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 560px;
  height: 350px;
  margin-left: -280px;
  background: radial-gradient(ellipse at center, rgba(140, 180, 255, 0.22), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

#stage.ritual-vip #title-bar .title-label {
  color: rgba(255, 224, 138, 0.9);
}

#stage.ritual-galaxy #title-bar .title-label {
  color: rgba(200, 220, 255, 0.92);
  letter-spacing: 3px;
}

#stage.ritual-minimal #title-bar .title-label {
  color: rgba(236, 231, 255, 0.7);
  letter-spacing: 4px;
}

#stage.ritual-deep #title-bar .title-label {
  color: rgba(236, 231, 255, 0.82);
  letter-spacing: 2px;
}

#stage.ritual-deep #table::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 640px;
  height: 250px;
  margin-left: -320px;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 214, 150, 0.36), rgba(255, 196, 120, 0.1) 55%, transparent 74%);
  pointer-events: none;
  z-index: 1;
}

#stage.ritual-deep #cards.layout-3 .card {
  width: 140px;
  height: 210px;
  margin-left: -70px;
}

#cards.layout-1 .card-position,
#cards.layout-3 .card-position {
  display: none;
}

#reading-badge.badge-deep {
  border-color: rgba(220, 200, 255, 0.45);
  color: rgba(236, 231, 255, 0.88);
}

#shuffle-fan.shuffle-deep {
  width: 260px;
  margin-left: -130px;
}

#shuffle-fan.shuffle-deep .mini::after {
  animation: none;
  opacity: 0;
}

#galaxy-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#galaxy-map .gm-zone {
  position: absolute;
  left: 50%;
  width: 118px;
  margin-left: -59px;
  padding: 6px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.78);
  border: 1px solid rgba(180, 210, 255, 0.28);
  border-radius: 10px;
  background: rgba(18, 28, 64, 0.28);
  opacity: 0;
}

/* Alineadas con los slots nuevos de la cruz en app.js (zone_top ~= slot.y + 24). */
#galaxy-map .gm-pregunta { top: 124px; }
#galaxy-map .gm-amor { top: 130px; margin-left: -195px; }
#galaxy-map .gm-dinero { top: 130px; margin-left: 77px; }
#galaxy-map .gm-sostiene { top: 234px; }
#galaxy-map .gm-paso { top: 14px; }

#galaxy-map .gm-zone.is-filled {
  border-color: transparent;
  background: transparent;
}

/* Especificidad reforzada (2 clases en #cards) para que estas reglas siempre
   ganen sobre #cards.layout-galaxy .card, sin depender del orden en el archivo.
   Cartas mas chicas: la cruz de 5 posiciones necesita que top/centro/abajo no
   se toquen verticalmente dentro del alto disponible de la mesa. */
#cards.layout-galaxy.layout-galaxy-cross .card {
  width: 62px;
  height: 100px;
  margin-left: -31px;
  top: 0;
}

#cards.layout-galaxy.layout-galaxy-cross .card-position {
  top: -20px;
  bottom: auto;
  width: 92px;
  margin-left: -46px;
  font-size: 10px;
  letter-spacing: 0.5px;
}

#cards.layout-vip .card.deal-impact::before {
  animation: vipImpact 0.28s ease-out;
}

@keyframes vipImpact {
  from { opacity: 0.4; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.03); }
}

#share-card-seal {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(236, 231, 255, 0.92);
  border: 1px solid rgba(201, 167, 255, 0.45);
  background: rgba(20, 12, 45, 0.88);
  z-index: 2;
}

#share-card.share-vip #share-card-seal,
#share-card.share-vip #share-card-img {
  border-color: rgba(255, 210, 122, 0.7);
}

#share-card.share-vip #share-card-seal {
  color: #ffd27a;
}

#share-card.share-galaxy #share-card-seal,
#share-card.share-galaxy #share-card-img {
  border-color: rgba(180, 210, 255, 0.7);
}

#share-card.share-galaxy #share-card-seal {
  color: rgba(200, 220, 255, 0.95);
}

#share-card.share-minimal #share-card-seal {
  opacity: 0.8;
}

#share-card.share-deep #share-card-seal {
  border-color: rgba(220, 200, 255, 0.5);
}

#stage.ritual-galaxy #cards {
  z-index: 1;
}

#cards {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: visible;
  z-index: 5;
}

#cards.layout-1 {
  gap: 0;
}

#cards.layout-1 .card {
  width: 168px;
  height: 252px;
}

#stage.ritual-minimal #cards.layout-1 .card {
  width: 168px;
  height: 252px;
}

#cards.layout-3 {
  display: block;
  position: absolute;
  inset: 0;
}

#cards.layout-3 .card {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 140px;
  height: 210px;
  margin-left: -70px;
}

#cards.layout-3 .card .card-face {
  box-shadow: 0 0 18px rgba(255, 214, 150, 0.32);
}

#cards.layout-galaxy {
  display: block;
  position: absolute;
  inset: 0;
}

#cards.layout-galaxy .card {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 112px;
  height: 190px;
  margin-left: -56px;
}

#cards.layout-galaxy .card-position {
  top: -26px;
  bottom: auto;
  width: 132px;
  margin-left: -66px;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  opacity: 0;
}

#cards.layout-galaxy .card-position.is-on {
  opacity: 1;
}

#cards.layout-vip .card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 210, 122, 0.55);
  box-shadow: 0 0 18px rgba(255, 210, 122, 0.28);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

#stage.ritual-galaxy #caption,
#stage.ritual-deep #caption,
#stage.ritual-vip #caption {
  top: 714px;
  max-height: 80px;
}


#stage.ritual-vip #reading-badge {
  animation: vipPulse 1.4s ease-in-out infinite;
}

@keyframes vipPulse {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

#ghost.shuffling-soft,
#ghost.shuffling.shuffling-soft {
  animation: float 5s ease-in-out infinite;
}

#deck {
  position: absolute;
  top: 30px;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  border-radius: 12px;
  border: 2px solid rgba(201, 167, 255, 0.55);
  background:
    repeating-linear-gradient(45deg, rgba(201, 167, 255, 0.18) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, #2a1a56, #150c33);
  opacity: 0;
}

#shuffle-fan {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 340px;
  height: var(--card-h);
  margin-left: -170px;
  pointer-events: none;
}

#shuffle-fan .mini {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 92px;
  height: 156px;
  margin-left: -46px;
  border-radius: 10px;
  border: 2px solid rgba(201, 167, 255, 0.55);
  background:
    repeating-linear-gradient(45deg, rgba(201, 167, 255, 0.18) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, #2a1a56, #150c33);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

#shuffle-fan .mini::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 20%, rgba(201, 167, 255, 0.45), transparent 70%);
  opacity: 0;
  animation: miniGlow 1.15s ease-in-out infinite;
  pointer-events: none;
}

#shuffle-fan .mini:nth-child(odd)::after  { animation-delay: 0s; }
#shuffle-fan .mini:nth-child(even)::after { animation-delay: 0.57s; }

#shuffle-fan.shuffle-galaxy .mini {
  border-color: rgba(180, 210, 255, 0.65);
}

#shuffle-fan.shuffle-vip .mini {
  border-color: rgba(255, 210, 122, 0.7);
}

#shuffle-fan.shuffle-vip .mini::after {
  animation: none;
  opacity: 0;
}

#shuffle-fan.shuffle-minimal {
  width: 160px;
  margin-left: -80px;
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 210, 255, 1) 20%, rgba(201, 167, 255, 0.4) 65%, transparent 100%);
  pointer-events: none;
  opacity: 0;
}

#reading-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -54px;
  width: 108px;
  padding: 6px 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 122, 0.55);
  background: rgba(30, 16, 50, 0.88);
  color: #ffd27a;
  z-index: 2;
}

#reading-badge.badge-vip {
  width: 132px;
  margin-left: -66px;
  border-color: rgba(255, 210, 122, 0.85);
  color: #ffe08a;
  box-shadow: 0 0 14px rgba(255, 210, 122, 0.35);
}

#reading-badge.badge-galaxy {
  width: 150px;
  margin-left: -75px;
  border-color: rgba(180, 210, 255, 0.7);
  color: #d8e7ff;
  box-shadow: 0 0 16px rgba(140, 180, 255, 0.3);
}

#reading-badge.badge-minimal {
  border-color: rgba(201, 167, 255, 0.4);
  color: rgba(236, 231, 255, 0.85);
}

#ghost.shuffling {
  animation: float 5s ease-in-out infinite, bob 0.45s ease-in-out infinite alternate;
}

.card {
  width: var(--card-w);
  height: var(--card-h);
  perspective: 900px;
  opacity: 0;
  position: relative;
  z-index: 5;
}

.card.is-flying,
.card.focused {
  z-index: 25;
}

.card.focused::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 18px;
  background: radial-gradient(ellipse at center, rgba(255, 224, 170, 0.55), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.card.focused .card-face {
  border-color: rgba(255, 230, 180, 0.95);
}

.card.dimmed {
  z-index: 4;
}

.card-position {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 180px;
  margin-left: -90px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: rgba(236, 231, 255, 0.78);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 2px solid rgba(201, 167, 255, 0.55);
  overflow: hidden;
}

.card-back {
  background:
    repeating-linear-gradient(45deg, rgba(201, 167, 255, 0.18) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, #2a1a56, #150c33);
}

.card-front {
  transform: rotateY(180deg);
  background:
    radial-gradient(1px 1px at 24% 20%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 32%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 76%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(circle at 50% 42%, rgba(150, 110, 220, 0.28), transparent 62%),
    linear-gradient(170deg, #241650, #120a2b);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

/* Marco ornamental dibujado con CSS: la carta se ve intencional aunque no haya arte */
.card-front::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 167, 255, 0.38);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
}

.card-front::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-top: 1px solid rgba(201, 167, 255, 0.18);
  border-bottom: 1px solid rgba(201, 167, 255, 0.18);
  pointer-events: none;
}

.card-front.has-art::after {
  display: none;
}

.card-front.has-art::before {
  inset: 3px;
}

.card-front img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  border-radius: 8px;
}

.card-front .placeholder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 12px;
  z-index: 1;
}

.card-front .roman {
  font-size: 42px;
  color: var(--accent);
  letter-spacing: 3px;
  line-height: 1;
}

.card-front .rule {
  width: 46px;
  height: 1px;
  background: rgba(201, 167, 255, 0.55);
  position: relative;
}

.card-front .rule::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--accent);
  transform: rotate(45deg);
}

.card-front .card-name {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.card.reversed .card-front .placeholder,
.card.reversed .card-front img { transform: rotate(180deg); }

.card-tag {
  position: absolute;
  bottom: 6px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(236, 231, 255, 0.7);
}

#caption {
  position: absolute;
  /* ~1 cm más abajo (642+72) para no tapar el osito del menú. Encima de la mesa (790). */
  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(201, 167, 255, 0.28);
  transition: opacity 0.5s;
  z-index: 30;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Posicionamiento y formato adaptativo de transcripción según el oráculo activo para evitar solapes con tarjetas o rostro */
#stage:has(#runes-stage:not(.hidden):not([style*="display: none"])) #caption,
#stage.oracle-active-runas #caption {
  top: 618px;
  max-height: 72px;
  width: auto;
  max-width: 560px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(180deg, rgba(16, 10, 30, 0.88) 0%, rgba(9, 5, 20, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(212, 175, 55, 0.2);
  border-radius: 20px;
}

#stage:has(#crystal-stage:not(.hidden):not([style*="display: none"])) #caption,
#stage.oracle-active-cristal #caption {
  top: 648px;
  max-height: 68px;
  width: auto;
  max-width: 500px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 5px 18px;
  background: linear-gradient(180deg, rgba(20, 12, 38, 0.88) 0%, rgba(10, 6, 24, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(168, 85, 247, 0.22);
  border-radius: 20px;
}

#stage:has(#runes-stage:not(.hidden):not([style*="display: none"])) #caption-karaoke,
#stage.oracle-active-runas #caption-karaoke,
#stage:has(#crystal-stage:not(.hidden):not([style*="display: none"])) #caption-karaoke,
#stage.oracle-active-cristal #caption-karaoke {
  font-size: 21px;
  line-height: 1.28;
}

#stage:has(#runes-stage:not(.hidden):not([style*="display: none"])) #caption-text,
#stage.oracle-active-runas #caption-text,
#stage:has(#crystal-stage:not(.hidden):not([style*="display: none"])) #caption-text,
#stage.oracle-active-cristal #caption-text {
  font-size: 20px;
  line-height: 1.3;
}

#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(236, 231, 255, 0.45);
  margin: 0 3px;
}

#caption-karaoke .kw.spoken {
  color: rgba(236, 231, 255, 0.78);
}

#caption-karaoke .kw.active {
  color: #ffd27a;
}

#share-card {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#share-veil {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 14, 0.72);
}

#share-card-frame {
  position: relative;
  width: 580px;
  text-align: center;
  z-index: 1;
}

#share-card-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 2px solid rgba(255, 210, 122, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 167, 255, 0.25);
}

#share-card-cta {
  margin-top: 18px;
  font-size: 28px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffd27a;
  text-shadow: 0 0 18px rgba(255, 210, 122, 0.35);
}

#share-card-label {
  margin-top: 8px;
  font-size: 20px;
  letter-spacing: 0.8px;
  color: rgba(236, 231, 255, 0.85);
}

#share-card.pulse #share-card-cta {
  animation: sharePulse 1.4s ease-in-out infinite;
}

@keyframes sharePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.04); }
}

#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(244, 239, 230, 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(236, 231, 255, 0.8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

#status-dot {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f06565;
}

#status-dot.online { background: #5fd48a; }

/* Leaderboard top gifters */
#leaderboard {
  position: absolute;
  bottom: 310px;
  left: 28px;
  width: 230px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 122, 0.35);
  background: rgba(20, 12, 45, 0.82);
}

.lb-title {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 210, 122, 0.75);
  margin-bottom: 8px;
}

#lb-list {
  list-style: none;
  padding: 0;
}

#lb-list li {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(236, 231, 255, 0.85);
}

#lb-list li .lb-gems {
  color: rgba(255, 210, 122, 0.85);
  font-size: 13px;
}

/* 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;
}

/* ==========================================================================
   ORACULO HOLISTICO (BOTICARIA): PENDULO, CRISTALES Y RUNAS
   ========================================================================== */

/* 1. PENDULO DE RADIESTESIA (SOSTENIDO POR LA BOTICARIA) */
#pendulo-stage {
  /* El aro sale de la pinza de body_pendulo, no del aire. */
  --pendulo-x: 370px;
  --pendulo-y: 578px;
  --pendulo-chain: 188px;
  --pendulo-shadow-y: 886px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  perspective: 920px;
  perspective-origin: var(--pendulo-x) var(--pendulo-y);
  transform-origin: 50% 85%;
  contain: layout style;
  backface-visibility: hidden;
  animation: boticariaBreathe 4.5s ease-in-out infinite alternate;
}

/* La dona sigue en la pinza. En la tríada el péndulo va más arriba. */
#pendulo-stage.is-dona {
  --pendulo-x: 370px;
  --pendulo-y: 578px;
  --pendulo-chain: 188px;
  --pendulo-shadow-y: 886px;
}
#pendulo-stage.is-triada,
.oracle-active-triada #pendulo-stage {
  --pendulo-x: 370px;
  --pendulo-y: 514px;
  --pendulo-chain: 188px;
  --pendulo-shadow-y: 822px;
}

#pendulo-stage.is-individual:not(.is-dona) {
  --pendulo-x: 370px;
  --pendulo-y: 550px;
  --pendulo-chain: 188px;
  --pendulo-shadow-y: 858px;
}

#pendulo-stage.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Sombra dinámica proyectada por el cristal sobre la mesa de madera (0% CPU blur) */
#pendulo-floor-shadow {
  position: absolute;
  left: var(--pendulo-x);
  top: var(--pendulo-shadow-y, 928px);
  width: 52px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(14, 7, 18, 0.85) 0%, rgba(14, 7, 18, 0.45) 45%, rgba(14, 7, 18, 0.12) 65%, transparent 75%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  z-index: 2;
  contain: strict;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Cuadrante astral grabado con compás místico sobre la mesa de radiestesia */
.pendulo-sacred-dial {
  position: absolute;
  left: 365px;
  top: 938px;
  width: 520px;
  height: 160px;
  transform: translate3d(-50%, -50%, 0) rotateX(44deg);
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.38;
  contain: layout style paint;
  backface-visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  will-change: opacity, filter, transform;
}

.pendulo-sacred-dial.is-idle {
  animation: dialAstralBreathe 4.5s ease-in-out infinite alternate;
}

@keyframes dialAstralBreathe {
  0% {
    opacity: 0.32;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.15));
  }
  100% {
    opacity: 0.46;
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.35));
  }
}

.pendulo-sacred-dial.is-reading {
  opacity: 0.88;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
}

.pendulo-sacred-dial .dial-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Compás central de 8 puntas */
.pendulo-sacred-dial .dial-center-compass {
  transform-origin: 260px 60px;
  transition: transform 0.4s ease;
}

.pendulo-sacred-dial.is-seeking .dial-center-compass {
  animation: compassSeekSpin 14s linear infinite;
}

@keyframes compassSeekSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Arcos reactivos del cuadrante al direccionarse la respuesta */
.pendulo-sacred-dial.steer-no #dial-arc-no {
  opacity: 1 !important;
  animation: dialArcPulseNo 1.2s ease-in-out infinite alternate;
}

.pendulo-sacred-dial.steer-si #dial-arc-si {
  opacity: 1 !important;
  animation: dialArcPulseSi 1.2s ease-in-out infinite alternate;
}

@keyframes dialArcPulseNo {
  0% {
    stroke-width: 3.5;
    filter: drop-shadow(0 0 6px #ef4444);
  }
  100% {
    stroke-width: 5;
    filter: drop-shadow(0 0 16px #f87171);
  }
}

@keyframes dialArcPulseSi {
  0% {
    stroke-width: 3.5;
    filter: drop-shadow(0 0 6px #10b981);
  }
  100% {
    stroke-width: 5;
    filter: drop-shadow(0 0 16px #34d399);
  }
}

/* Onda de resonancia táctil y espiritual sobre la mesa al confirmar veredicto */
.pendulo-resonance-ring {
  position: absolute;
  left: 365px;
  top: 938px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translate3d(-50%, -50%, 0) rotateX(54deg) scale(0.2);
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.pendulo-resonance-ring.ring-si {
  border-color: #34d399;
  box-shadow: 0 0 26px #10b981, inset 0 0 18px #34d399;
}

.pendulo-resonance-ring.ring-no {
  border-color: #f87171;
  box-shadow: 0 0 26px #ef4444, inset 0 0 18px #f87171;
}

.pendulo-resonance-ring.ring-maybe {
  border-color: #fbbf24;
  box-shadow: 0 0 26px #f59e0b, inset 0 0 18px #fbbf24;
}

/* Zonas de iluminación reactiva sobre la mesa (NO izquierda, SÍ derecha) */
.table-zone-glow {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  contain: layout style;
  backface-visibility: hidden;
  transition: opacity 0.08s ease-out;
}

.table-zone-glow .glow-aura {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}

.table-zone-glow .glow-word {
  font-family: "Cinzel", "Georgia", serif;
  font-weight: 900;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

/* Cartela oracular con filigrana dorada y subetiqueta ritual */
.table-zone-glow .zone-cartouche {
  position: absolute;
  inset: -6px -12px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(ellipse at center, rgba(20, 10, 30, 0.72) 0%, rgba(10, 5, 18, 0.88) 100%);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8), 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.table-zone-glow .zone-sublabel {
  font-family: "Cinzel", "Georgia", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(254, 240, 138, 0.9);
  position: relative;
  z-index: 2;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(212, 175, 55, 0.5);
  white-space: nowrap;
}

.table-zone-glow.zone-no .zone-sublabel {
  color: #fecaca;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(239, 68, 68, 0.6);
}

.table-zone-glow.zone-si .zone-sublabel {
  color: #a7f3d0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(16, 185, 129, 0.6);
}

.table-zone-glow.zone-maybe .zone-sublabel {
  color: #fde68a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(245, 158, 11, 0.6);
}

.table-zone-glow.active-verdict .zone-cartouche {
  border-color: rgba(253, 224, 71, 0.85);
  box-shadow: inset 0 0 14px rgba(212, 175, 55, 0.35), 0 0 22px rgba(212, 175, 55, 0.45);
}

.table-zone-glow.zone-no.active-verdict .zone-cartouche {
  border-color: #f87171;
  box-shadow: inset 0 0 16px rgba(239, 68, 68, 0.4), 0 0 24px rgba(239, 68, 68, 0.6);
}

.table-zone-glow.zone-si.active-verdict .zone-cartouche {
  border-color: #34d399;
  box-shadow: inset 0 0 16px rgba(16, 185, 129, 0.4), 0 0 24px rgba(16, 185, 129, 0.6);
}

#pendulo-table-wash {
  position: absolute;
  left: 365px;
  top: 932px;
  width: 500px;
  height: 200px;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  contain: strict;
  backface-visibility: hidden;
  transition: opacity 0.35s linear;
  will-change: opacity;
}
#pendulo-table-wash.is-si {
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.55) 0%, rgba(16, 185, 129, 0.22) 42%, rgba(16, 185, 129, 0.05) 60%, transparent 72%);
}
#pendulo-table-wash.is-no {
  background: radial-gradient(ellipse at center, rgba(248, 113, 113, 0.55) 0%, rgba(220, 38, 38, 0.22) 42%, rgba(220, 38, 38, 0.05) 60%, transparent 72%);
}
#pendulo-table-wash.is-maybe {
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.18) 42%, rgba(245, 158, 11, 0.04) 60%, transparent 72%);
}

/* NO (Izquierda / Rubí y Ámbar místico) */
.table-zone-glow.zone-no {
  left: 180px;
  top: 937px;
  width: 110px;
  height: 70px;
  transform: translate3d(-50%, -50%, 0);
}
.table-zone-glow.zone-no .glow-aura {
  background: radial-gradient(ellipse, rgba(248, 113, 113, 0.85) 0%, rgba(239, 68, 68, 0.45) 45%, transparent 75%);
}
.table-zone-glow.zone-no .glow-word {
  color: #fef2f2;
  font-size: 38px;
  text-shadow: 0 0 14px #f87171, 0 0 28px #ef4444;
}

/* SÍ (Derecha / Verde Esmeralda y Oro místico) */
.table-zone-glow.zone-si {
  left: 539px;
  top: 944px;
  width: 110px;
  height: 70px;
  transform: translate3d(-50%, -50%, 0);
}
.table-zone-glow.zone-si .glow-aura {
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.85) 0%, rgba(16, 185, 129, 0.45) 45%, transparent 75%);
}
.table-zone-glow.zone-si .glow-word {
  color: #ecfdf5;
  font-size: 38px;
  text-shadow: 0 0 14px #34d399, 0 0 28px #10b981;
}

.table-zone-glow.zone-maybe {
  left: 365px;
  top: 932px;
  width: 168px;
  height: 70px;
  transform: translate3d(-50%, -50%, 0);
}
.table-zone-glow.zone-maybe .glow-aura {
  background: radial-gradient(ellipse, rgba(251, 191, 36, 0.8) 0%, rgba(245, 158, 11, 0.4) 45%, transparent 75%);
}
.table-zone-glow.zone-maybe .glow-word {
  color: #fffbeb;
  font-size: 28px;
  letter-spacing: 2px;
  text-shadow: 0 0 14px #fbbf24, 0 0 28px #f59e0b;
}

/* Veredicto activo: resplandor y pulso magnético */
.table-zone-glow.active-verdict {
  opacity: 1 !important;
  animation: verdictGlowPulse 1.4s ease-in-out infinite alternate;
}

@keyframes verdictGlowPulse {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1.06);
  }
}

/* PÉNDULO FÍSICO COLGANTE (Anclado exactamente a los dedos de la Boticaria) */
#pendulo-rig {
  position: absolute;
  top: var(--pendulo-y);
  left: var(--pendulo-x);
  width: 54px;
  height: 290px;
  margin-left: -27px;
  transform-origin: 27px 0px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
}

/* Reposo en GPU (0% CPU, ejecutado en Compositor Thread) */
#pendulo-rig.is-idle {
  animation: penduloIdleSway 2.92s ease-in-out infinite alternate !important;
}

@keyframes penduloIdleSway {
  0% {
    transform: rotateZ(-2.8deg) rotateX(-0.4deg);
  }
  50% {
    transform: rotateZ(0.2deg) rotateX(0.3deg);
  }
  100% {
    transform: rotateZ(2.8deg) rotateX(-0.4deg);
  }
}

#pendulo-floor-shadow.is-idle {
  animation: penduloShadowIdleSway 2.92s ease-in-out infinite alternate !important;
}

@keyframes penduloShadowIdleSway {
  0% {
    transform: translate3d(calc(-50% + 15px), -50%, 0) scale(0.97);
  }
  50% {
    transform: translate3d(-50%, calc(-50% + 2px), 0) scale(1.0);
  }
  100% {
    transform: translate3d(calc(-50% - 15px), -50%, 0) scale(0.97);
  }
}

#pendulo-pivot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chain-suspension {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chain-ring {
  width: 14px;
  height: 14px;
  border: 2.5px solid #d4af37;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle, transparent 40%, rgba(184, 134, 11, 0.4) 100%);
}

.chain-beads {
  width: 2.5px;
  height: var(--pendulo-chain, 168px);
  transform-origin: top center;
  background: repeating-linear-gradient(
    180deg,
    #ffd700 0px,
    #d4af37 3px,
    #785215 5px,
    #422d0a 7px
  );
  box-shadow: 0 0 2px rgba(212, 175, 55, 0.5), 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.crystal-bob-container {
  position: relative;
  width: 44px;
  height: 96px;
  margin-top: -4px;
  display: flex;
  justify-content: center;
  transform-origin: 50% 8%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

/* Resplandor místico suave precalculado (0 CPU, sin drop-shadow gaussiano) */
.crystal-bob-container::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 60px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(192, 132, 252, 0.52) 0%, rgba(147, 51, 234, 0.2) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

#pendulo-crystal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.crystal-core-light {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 18px;
  height: 30px;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(216, 180, 254, 0.5) 45%, transparent 80%);
  pointer-events: none;
  z-index: 2;
}

.crystal-tip-flare {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff, 0 0 12px #c084fc;
  pointer-events: none;
  animation: flareTwinkle 2.4s ease-in-out infinite alternate;
  will-change: transform, opacity;
  z-index: 2;
}

@keyframes flareTwinkle {
  0% {
    opacity: 0.45;
    transform: translate3d(-50%, 0, 0) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1.2);
  }
}

/* Transmutación áurica de la amatista a esmeralda/rubí según la energía canalizada */
.crystal-aura-shift {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 68px;
  height: 94px;
  transform: translate3d(-50%, 0, 0);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.55) 0%, rgba(147, 51, 234, 0.22) 48%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  transition: background 0.6s ease, opacity 0.5s ease, filter 0.6s ease;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.35));
}

.crystal-bob-container.crystal-verdict-si .crystal-aura-shift {
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.8) 0%, rgba(16, 185, 129, 0.32) 50%, transparent 74%);
  filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.65));
  opacity: 1;
}

.crystal-bob-container.crystal-verdict-no .crystal-aura-shift {
  background: radial-gradient(ellipse at center, rgba(248, 113, 113, 0.8) 0%, rgba(220, 38, 38, 0.32) 50%, transparent 74%);
  filter: drop-shadow(0 0 16px rgba(220, 38, 38, 0.65));
  opacity: 1;
}

.crystal-bob-container.crystal-verdict-maybe .crystal-aura-shift {
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.8) 0%, rgba(245, 158, 11, 0.32) 50%, transparent 74%);
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.65));
  opacity: 1;
}

/* Destello especular de faceta tallada en la punta de la amatista */
.crystal-glint-facet {
  position: absolute;
  top: 36%;
  left: 38%;
  width: 12px;
  height: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.25) 40%, transparent 75%);
  border-radius: 40% 10% 40% 10%;
  transform: rotate(22deg);
  pointer-events: none;
  z-index: 3;
  animation: facetGlintShimmer 3.2s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes facetGlintShimmer {
  0%, 75% {
    opacity: 0.15;
    transform: rotate(22deg) scale(0.85);
  }
  85% {
    opacity: 0.95;
    transform: rotate(22deg) scale(1.15);
  }
  95%, 100% {
    opacity: 0.25;
    transform: rotate(22deg) scale(0.9);
  }
}

/* Estado latente sutil durante idle */
.table-zone-glow.idle-dormant {
  animation: dormantGlowBreathe 3.6s ease-in-out infinite alternate !important;
}

@keyframes dormantGlowBreathe {
  0% {
    opacity: 0.12;
    transform: translate3d(-50%, -50%, 0) scale(0.98);
  }
  100% {
    opacity: 0.32;
    transform: translate3d(-50%, -50%, 0) scale(1.03);
  }
}

/* 2. ORACULO DE CRISTALES Y CUARZOS (Royal Reliquary & Faceted Gem) */
#crystal-stage {
  position: absolute;
  bottom: 25px;
  left: 170px;
  width: 380px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.crystal-pod {
  position: relative;
  width: 100%;
  padding: 16px 22px 14px 22px;
  text-align: center;
  box-sizing: border-box;
}

.crystal-card-surface {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(28, 16, 48, 0.94) 0%, rgba(13, 8, 24, 0.97) 60%, rgba(22, 10, 38, 0.95) 100%);
  border: 1.5px solid #d4af37;
  outline: 1px solid rgba(212, 175, 55, 0.32);
  outline-offset: -7px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85),
              0 0 35px var(--crystal-aura-color, rgba(168, 85, 247, 0.25)),
              inset 0 1px 1px rgba(255, 255, 255, 0.3),
              inset 0 0 25px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.crystal-card-surface::before,
.crystal-pod::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.7) 50%, transparent 100%);
  pointer-events: none;
}

.crystal-card-surface::after,
.crystal-pod::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.7) 50%, transparent 100%);
  pointer-events: none;
}

.crystal-pedestal {
  position: relative;
  width: 135px;
  height: 145px;
  margin: 0 auto 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.crystal-pedestal::after {
  content: "";
  display: none;
}

.crystal-pedestal-shadow {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 75%);
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
  will-change: transform, opacity;
  animation: crystal-dish-shadow 3.8s ease-in-out infinite alternate;
}

.crystal-landing-ring {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scale(0.2);
  width: 80px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--crystal-gem-color, #ffd700);
  box-shadow: 0 0 16px var(--crystal-gem-color, #ffd700), inset 0 0 10px rgba(255, 255, 255, 0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  will-change: transform, opacity;
}

.crystal-landing-ring.is-landing {
  animation: crystal-landing-burst 0.75s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes crystal-landing-burst {
  0% {
    opacity: 0.95;
    transform: translateX(-50%) scale(0.25);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(2.8);
  }
}

.astrolabe-heptagram {
  transform-origin: 50% 50%;
  opacity: 0.7;
}

.crystal-aura-glow {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--crystal-aura-color, rgba(168, 85, 247, 0.65)) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 72%);
  opacity: 0.5;
  filter: blur(10px) drop-shadow(0 0 30px var(--crystal-aura-color, rgba(168, 85, 247, 0.85)));
  animation: crystal-aura-pulse 3.8s ease-in-out infinite alternate;
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
  will-change: transform, opacity;
  pointer-events: none;
}

/* Rueda de Geometría Sagrada y Rayos Astrales de Fondo */
.crystal-astral-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  animation: astral-rays-spin 32s linear infinite;
  will-change: transform;
}

.astral-rays-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes astral-rays-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sigilo Alquímico Grabado en el Pedestal de Oro */
.crystal-altar-sigil {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.altar-sigil-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Planetario Hermético y Campana Alquímica (Opción 2 + Opción 5 Fusion) */
.cloche-housing {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 110px;
  pointer-events: none;
  z-index: 8;
  transform-origin: 50% 85%;
  will-change: transform, opacity;
  contain: layout style;
}

/* Zócalo y reborde de bronce alquímico grabado sobre el pedestal */
.cloche-base-rim {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  background: radial-gradient(ellipse at center, rgba(35, 18, 55, 0.45) 0%, rgba(15, 6, 26, 0.75) 68%, transparent 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease-out;
}

/* Vapor etéreo interior bajo la campana */
.cloche-vapor {
  position: absolute;
  top: 24px;
  left: 18px;
  width: 64px;
  height: 70px;
  border-radius: 40% 40% 50% 50%;
  background: radial-gradient(ellipse at 50% 65%, var(--crystal-aura-color, rgba(168, 85, 247, 0.38)) 0%, rgba(255, 255, 255, 0.08) 35%, transparent 70%);
  opacity: 0.6;
  filter: blur(5px);
  pointer-events: none;
  z-index: 4;
  animation: cloche-vapor-drift 3.2s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes cloche-vapor-drift {
  0% { transform: translateY(0) scale(0.95); opacity: 0.45; }
  100% { transform: translateY(-5px) scale(1.05); opacity: 0.75; }
}

.cloche-dial {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
  transform-origin: 50% 50%;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.45));
  will-change: transform, opacity;
}

.cloche-dial-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cloche-orrery {
  position: absolute;
  top: 10px;
  left: 5px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Micro-gemas de chakras facetadas con resplandor cristalino */
.chakra-orb {
  position: absolute;
  width: 24px;
  height: 28px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: chakra-orb-pulse 2.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

.chakra-orb::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff, 0 0 10px currentColor;
  opacity: 0.9;
  pointer-events: none;
}

.mini-crystal-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 5px currentColor);
  overflow: visible;
}

.chakra-orb .mc-base {
  fill: currentColor;
  opacity: 0.92;
}

.chakra-orb .mc-facet-tl {
  fill: #ffffff;
  opacity: 0.8;
}

.chakra-orb .mc-facet-tr {
  fill: #ffffff;
  opacity: 0.45;
}

.chakra-orb .mc-facet-bl {
  fill: rgba(0, 0, 0, 0.28);
}

.chakra-orb .mc-facet-br {
  fill: rgba(0, 0, 0, 0.58);
}

@keyframes chakra-orb-pulse {
  0% { transform: scale(0.92) rotate(-4deg); opacity: 0.9; }
  100% { transform: scale(1.12) rotate(4deg); opacity: 1; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 8px currentColor); }
}

.chakra-orb.orb-corona {
  color: #c084fc;
  top: -4px;
  left: 33px;
  animation-delay: 0s;
}

.chakra-orb.orb-tercer-ojo {
  color: #818cf8;
  top: 9px;
  left: 60px;
  animation-delay: 0.35s;
}

.chakra-orb.orb-garganta {
  color: #22d3ee;
  top: 39px;
  left: 67px;
  animation-delay: 0.7s;
}

.chakra-orb.orb-corazon {
  color: #34d399;
  top: 62px;
  left: 48px;
  animation-delay: 1.05s;
}

.chakra-orb.orb-plexo {
  color: #facc15;
  top: 62px;
  left: 18px;
  animation-delay: 1.4s;
}

.chakra-orb.orb-sacro {
  color: #fb923c;
  top: 39px;
  left: -1px;
  animation-delay: 1.75s;
}

.chakra-orb.orb-raiz {
  color: #f87171;
  top: 9px;
  left: 6px;
  animation-delay: 2.1s;
}

/* Destello de ignición estelar en el colapso */
.cloche-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -16px;
  margin-left: -16px;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, #ffffff 28%, #ffd700 60%, transparent 75%);
  clip-path: polygon(50% 0%, 58% 38%, 100% 50%, 58% 62%, 50% 100%, 42% 62%, 0% 50%, 42% 38%);
  filter: drop-shadow(0 0 12px #ffffff) drop-shadow(0 0 20px #ffd700);
  opacity: 0;
  transform: scale(0) rotate(0deg);
  pointer-events: none;
  z-index: 9;
  will-change: transform, opacity;
}

.cloche-bell {
  position: absolute;
  top: 0;
  left: 2px;
  width: 96px;
  height: 110px;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.cloche-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cloche-shockwave {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 22px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #ffd700;
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.85), inset 0 0 6px rgba(255, 215, 0, 0.45);
  z-index: 4;
}

.cloche-shockwave.is-pulsing {
  animation: cloche-shockwave-burst 0.75s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.cloche-shockwave-secondary.is-pulsing {
  animation: cloche-shockwave-burst 0.85s cubic-bezier(0.1, 0.8, 0.3, 1) 0.1s forwards;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
}

@keyframes cloche-shockwave-burst {
  0% {
    opacity: 0.95;
    transform: translateX(-50%) scale(0.2);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(4.6);
  }
}

/* Contenedor del cristal ampliado con perspectiva 3D */
/* Fotografía Mineral de Alta Definición con Respiración Orgánica */
.crystal-gem-photo {
  position: relative;
  max-width: 135px;
  max-height: 145px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 22px var(--crystal-aura-color, rgba(168, 85, 247, 0.65)));
  animation: crystal-gem-breathe 3.8s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
  z-index: 5;
}

@keyframes crystal-gem-breathe {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -3.5px, 0) scale(1.015);
  }
  100% {
    transform: translate3d(0, -7px, 0) scale(1.025);
  }
}

.crystal-gem-container {
  position: relative;
  width: 135px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.crystal-gem-icon {
  --crystal-gem-light: #ffffff;
  --crystal-gem-mid: var(--crystal-gem-color, #a855f7);
  --crystal-gem-deep: color-mix(in srgb, var(--crystal-gem-color, #7e22ce) 45%, #05020a 55%);
  position: relative;
  width: 130px;
  height: 155px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px var(--crystal-aura-color, rgba(168, 85, 247, 0.6)));
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform, filter;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.3s ease-out;
}

.crystal-gem-icon::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 45deg at 50% 50%, rgba(255, 255, 255, 0.25) 0deg, transparent 65deg, rgba(255, 255, 255, 0.15) 125deg, transparent 180deg, rgba(255, 255, 255, 0.25) 245deg, transparent 305deg, rgba(255, 255, 255, 0.25) 360deg);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  filter: blur(6px);
}

.crystal-gem-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Shaders y Facetas Geométricas del Cristal de Cuarzo */
.crystal-body-base {
  fill: var(--crystal-gem-deep, #2e1065);
  opacity: 0.95;
}

.c-facet-apex-outer-l {
  fill: var(--crystal-gem-mid, #9333ea);
  opacity: 0.85;
}

.c-facet-shaft-outer-l {
  fill: var(--crystal-gem-deep, #3b0764);
  opacity: 0.9;
}

.c-facet-apex-main-l {
  fill: #ffffff;
  opacity: 0.82;
}

.c-facet-shaft-main-l {
  fill: var(--crystal-gem-light, #c084fc);
  opacity: 0.95;
}

.c-facet-apex-main-r {
  fill: var(--crystal-gem-mid, #a855f7);
  opacity: 0.9;
}

.c-facet-shaft-main-r {
  fill: var(--crystal-gem-deep, #581c87);
  opacity: 0.95;
}

.c-facet-apex-outer-r {
  fill: var(--crystal-gem-deep, #3b0764);
  opacity: 0.95;
}

.c-facet-shaft-outer-r {
  fill: #120324;
  opacity: 0.98;
}

.c-facet-base-front {
  fill: var(--crystal-gem-mid, #7e22ce);
  opacity: 0.9;
}

.c-facet-base-tip {
  fill: var(--crystal-gem-deep, #2e1065);
  opacity: 0.95;
}

/* Fuego prismático de dispersión óptica (Efecto Arcoíris de Gema) */
.c-facet-rainbow {
  mix-blend-mode: color-dodge;
  opacity: 0.45;
  animation: crystal-rainbow-fire 4.2s ease-in-out infinite alternate;
  will-change: opacity, filter;
}

@keyframes crystal-rainbow-fire {
  0% { opacity: 0.25; filter: hue-rotate(0deg) brightness(0.95); }
  50% { opacity: 0.65; filter: hue-rotate(30deg) brightness(1.15); }
  100% { opacity: 0.35; filter: hue-rotate(60deg) brightness(1.0); }
}

/* Destellos estelares en los vértices del cuarzo */
.crystal-vertex-sparkles circle {
  animation: crystal-vertex-twinkle 3.2s ease-in-out infinite alternate;
}

@keyframes crystal-vertex-twinkle {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px #ffffff); }
}

/* Polvo de Diamante y Chispas Astrales */
.crystal-stardust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.c-spark-item {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 16px;
  color: #ffd700;
  text-shadow: 0 0 8px #ffffff, 0 0 16px var(--crystal-gem-color, #ffd700);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  will-change: transform, opacity;
}

/* ========================================================
   PERFILES MINERALES REALISTAS POR GEMA
   ======================================================== */
.crystal-gem-icon.crystal-amatista {
  --crystal-gem-light: #e9d5ff;
  --crystal-gem-mid: #a855f7;
  --crystal-gem-deep: #4c1d95;
}

.crystal-gem-icon.crystal-cuarzo_rosa {
  --crystal-gem-light: #fce7f3;
  --crystal-gem-mid: #f472b6;
  --crystal-gem-deep: #831843;
}

.crystal-gem-icon.crystal-pirita {
  --crystal-gem-light: #fef08a;
  --crystal-gem-mid: #eab308;
  --crystal-gem-deep: #713f12;
}

.crystal-gem-icon.crystal-ojo_de_tigre {
  --crystal-gem-light: #fed7aa;
  --crystal-gem-mid: #d97706;
  --crystal-gem-deep: #451a03;
}

.crystal-gem-icon.crystal-citrino {
  --crystal-gem-light: #fef9c3;
  --crystal-gem-mid: #facc15;
  --crystal-gem-deep: #854d0e;
}

.crystal-gem-icon.crystal-selenita {
  --crystal-gem-light: #ffffff;
  --crystal-gem-mid: #e2e8f0;
  --crystal-gem-deep: #475569;
}

.crystal-gem-icon.crystal-obsidiana {
  --crystal-gem-light: #94a3b8;
  --crystal-gem-mid: #1e293b;
  --crystal-gem-deep: #020617;
}

.crystal-gem-icon.crystal-labradorita {
  --crystal-gem-light: #7dd3fc;
  --crystal-gem-mid: #0284c7;
  --crystal-gem-deep: #082f49;
}

.crystal-gem-icon.crystal-lapislazuli {
  --crystal-gem-light: #93c5fd;
  --crystal-gem-mid: #1d4ed8;
  --crystal-gem-deep: #172554;
}

.crystal-gem-icon.crystal-aventurina_verde {
  --crystal-gem-light: #a7f3d0;
  --crystal-gem-mid: #10b981;
  --crystal-gem-deep: #064e3b;
}

.crystal-gem-icon.crystal-turmalina_negra {
  --crystal-gem-light: #64748b;
  --crystal-gem-mid: #0f172a;
  --crystal-gem-deep: #020617;
}

.crystal-gem-icon.crystal-piedra_luna {
  --crystal-gem-light: #ffffff;
  --crystal-gem-mid: #cbd5e1;
  --crystal-gem-deep: #475569;
}

.crystal-prism-glint {
  position: absolute;
  top: 4px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #ffffff 32%, rgba(255, 255, 255, 0.88) 55%, transparent 75%);
  clip-path: polygon(50% 0%, 58% 40%, 100% 50%, 58% 60%, 50% 100%, 42% 60%, 0% 50%, 42% 40%);
  filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 20px var(--crystal-aura-color, #c084fc));
  opacity: 0;
  transform: scale(0.1) rotate(0deg);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.4s ease-out;
}

.crystal-prism-glint.is-glinting {
  opacity: 1;
  transform: scale(1.6) rotate(90deg);
}

@keyframes crystal-levitate {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes crystal-dish-shadow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.85; }
  100% { transform: translateX(-50%) scale(0.72); opacity: 0.45; }
}

@keyframes crystal-aura-pulse {
  0% { opacity: 0.4; transform: scale(0.92); }
  100% { opacity: 0.85; transform: scale(1.1); }
}

.crystal-meta {
  position: absolute;
  left: -158px;
  bottom: 0;
  width: 148px;
  max-height: 156px;
  overflow: hidden;
  z-index: 4;
  text-align: left;
  pointer-events: none;
  box-sizing: border-box;
}

.crystal-name {
  font-family: "Cinzel", "Georgia", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.4px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.85));
  margin-bottom: 4px;
}

.crystal-chakra {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #f3e8ff;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32) 0%, rgba(126, 34, 206, 0.2) 100%);
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 254, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  text-shadow: 0 0 8px rgba(216, 180, 254, 0.8);
  margin-bottom: 6px;
}

.crystal-keyword {
  font-size: 13.5px;
  color: #e2e8f0;
  font-style: italic;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  margin-bottom: 3px;
}

.crystal-affirmation {
  margin-top: 6px;
  padding: 4px 0;
  font-size: 12px;
  font-style: italic;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(212, 175, 55, 0.06) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 3px solid #ffd700;
  border-right: 3px solid #ffd700;
  border-radius: 8px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* 3. RUNAS SAGRADAS (Ancient Relic / Obsidian & Molten Gold) */
#runes-stage {
  position: absolute;
  bottom: 50px;
  left: 70px;
  width: 580px;
  z-index: 10;
  pointer-events: none;
}

/* Bolsa mística de terciopelo (Ritual de preparación y tirada de runas - Opción 5) */
#rune-pouch {
  position: absolute;
  left: 238px;
  top: 35px;
  width: 104px;
  height: 130px;
  z-index: 12;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

#rune-pouch.hidden {
  display: none !important;
}

.pouch-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 90%;
  will-change: transform;
}

.pouch-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pouch-aura-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(168, 85, 247, 0.18) 46%, rgba(168, 85, 247, 0) 72%);
  pointer-events: none;
  z-index: -1;
  animation: pouch-aura-breathe 3.4s ease-in-out infinite alternate;
}

.pouch-altar-circle {
  animation: pouch-altar-pulse 4.2s ease-in-out infinite alternate;
  transform-origin: 80px 188px;
}

@keyframes pouch-altar-pulse {
  0% { opacity: 0.65; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

.pouch-shockwave {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 95px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 215, 0, 0.9);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.7), inset 0 0 8px rgba(245, 158, 11, 0.4);
  transform: translateX(-50%) scale(0.3);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.pouch-shockwave.pouch-shockwave-secondary {
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}

.pouch-shockwave.is-pulsing {
  animation: pouch-shockwave-expand 0.72s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

.pouch-shockwave-secondary.is-pulsing {
  animation: pouch-shockwave-expand-soft 0.86s cubic-bezier(0.1, 0.8, 0.25, 1) 0.06s forwards;
}

@keyframes pouch-shockwave-expand {
  0% { transform: translateX(-50%) scale(0.3); opacity: 0.95; }
  100% { transform: translateX(-50%) scale(1.68); opacity: 0; }
}

@keyframes pouch-shockwave-expand-soft {
  0% { transform: translateX(-50%) scale(0.24); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(2.05); opacity: 0; }
}

.pouch-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.pouch-spark {
  position: absolute;
  left: 50%;
  top: 55%;
  font-size: 15px;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.9), 0 0 20px rgba(245, 158, 11, 0.7);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes pouch-aura-breathe {
  0% { transform: scale(0.92); opacity: 0.45; }
  100% { transform: scale(1.08); opacity: 0.75; }
}

.pouch-seal-glyph {
  transform-origin: 80px 122px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.pouch-seal-group.is-ignited .pouch-seal-glyph {
  animation: pouch-seal-ignite 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes pouch-seal-ignite {
  0% { transform: scale(0.85); filter: drop-shadow(0 0 6px #ffd700); }
  50% { transform: scale(1.25); filter: drop-shadow(0 0 24px #ffd700) drop-shadow(0 0 36px #f59e0b); }
  100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.85)); }
}

#runes-rack {
  display: flex;
  justify-content: center;
  gap: 14px;
  animation: rune-rack-idle 5.2s ease-in-out infinite alternate;
}

.rune-stone-card {
  position: relative;
  width: 170px;
  height: 136px;
  perspective: 1100px;
  -webkit-perspective: 1100px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.88)) drop-shadow(0 4px 8px rgba(20, 16, 12, 0.75));
  transition: filter 0.4s ease-out, transform 0.4s ease-out;
  will-change: transform, filter;
}

.rune-stone-card:nth-child(1),
.rune-stone-0 {
  transform: rotate(-2deg);
}

.rune-stone-card:nth-child(2),
.rune-stone-1 {
  transform: rotate(0.8deg);
}

.rune-stone-card:nth-child(3),
.rune-stone-2 {
  transform: rotate(2.4deg);
}

.rune-stone-card.is-revealed {
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
}

.rune-stone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.82s cubic-bezier(0.25, 1, 0.35, 1.15);
  transform-origin: center center;
}

.rune-stone-inner.is-revealed {
  transform: rotateY(180deg);
}

/* Morfología orgánica de Canto Rodado (Piedra de Río pulida horizontal) */
.rune-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Asimetría natural única para cada una de las 3 piedras del río */
.rune-stone-card:nth-child(1) .rune-face,
.rune-stone-0 .rune-face {
  border-radius: 56% 44% 52% 48% / 46% 54% 46% 54%;
}

.rune-stone-card:nth-child(2) .rune-face,
.rune-stone-1 .rune-face {
  border-radius: 48% 52% 50% 50% / 54% 46% 54% 46%;
}

.rune-stone-card:nth-child(3) .rune-face,
.rune-stone-2 .rune-face {
  border-radius: 44% 56% 46% 54% / 52% 48% 52% 48%;
}

/* Reflejo difuso, micro-textura mineral y veta de roca */
.rune-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 46% 16%, rgba(255, 250, 240, 0.28) 0%, transparent 54%),
    linear-gradient(125deg, transparent 42%, rgba(240, 230, 215, 0.08) 48%, rgba(60, 50, 40, 0.09) 52%, transparent 58%),
    radial-gradient(circle at 80% 82%, rgba(0, 0, 0, 0.26) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Dorso de la Runa: Piedra de río natural con tono cálido mineral y sello místico */
.rune-back {
  background: radial-gradient(ellipse at 42% 26%, #968c7e 0%, #766d61 35%, #564e43 70%, #3a332a 100%);
  border: 1px solid rgba(212, 195, 175, 0.3);
  box-shadow:
    inset 1.5px 2.5px 5px rgba(255, 248, 235, 0.44),
    inset -4px -6px 12px rgba(16, 13, 10, 0.88),
    inset 0 -2px 4px rgba(0, 0, 0, 0.75),
    inset 0 8px 16px rgba(255, 255, 255, 0.1);
}

.rune-back-seal {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(26, 20, 15, 0.65) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 22px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(212, 175, 55, 0.45);
  animation: rune-back-breathe 4s ease-in-out infinite alternate;
  z-index: 2;
}

.rune-back-hint {
  font-family: "Cinzel", "Georgia", serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(255, 232, 155, 0.9);
  margin-top: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
  position: relative;
  z-index: 2;
}

@keyframes rune-back-breathe {
  0% { transform: scale(1); opacity: 0.82; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* Anverso de la Runa: Piedra consagrada con glifo tallado en oro fundido */
.rune-front {
  transform: rotateY(180deg);
  background: radial-gradient(ellipse at 42% 26%, #999083 0%, #797165 35%, #585045 70%, #3c352c 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow:
    inset 1.5px 2.5px 5px rgba(255, 248, 235, 0.46),
    inset -4px -6px 12px rgba(18, 14, 11, 0.88),
    inset 0 -2px 4px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(245, 158, 11, 0.28);
}

/* Inscripción de posición integrada en la roca */
.rune-position-badge {
  font-family: "Cinzel", "Georgia", serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #ebd182;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 6px rgba(212, 175, 55, 0.35);
  position: relative;
  z-index: 2;
}

/* Glifo rúnico tallado en bajorrelieve con oro fundido e incandescente */
.rune-glyph {
  font-size: 46px;
  line-height: 1;
  background: linear-gradient(180deg, #fffdf2 0%, #ffd700 24%, #e59d16 58%, #a65909 85%, #683005 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 12px rgba(245, 158, 11, 0.88)) drop-shadow(0 0 24px rgba(217, 119, 6, 0.45));
  margin-bottom: 2px;
  contain: layout style;
  animation: rune-glyph-pulse 3.2s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

.rune-stone-inner.is-revealed .rune-glyph {
  animation: rune-glyph-ignite 0.85s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards, rune-glyph-pulse 3.2s ease-in-out 0.85s infinite alternate;
}

@keyframes rune-glyph-ignite {
  0% { transform: scale(0.72); filter: brightness(2.2) drop-shadow(0 0 28px #ffd700); opacity: 0.6; }
  50% { transform: scale(1.15); filter: brightness(1.6) drop-shadow(0 0 35px #f59e0b); opacity: 1; }
  100% { transform: scale(1); filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 12px rgba(245, 158, 11, 0.88)) drop-shadow(0 0 24px rgba(217, 119, 6, 0.45)); opacity: 1; }
}

@keyframes rune-glyph-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(245, 158, 11, 0.75)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 14px rgba(245, 158, 11, 0.98)) drop-shadow(0 0 26px rgba(217, 119, 6, 0.55)); }
}

.rune-title {
  font-family: "Cinzel", "Georgia", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #fffaf0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(255, 215, 0, 0.4);
  margin-bottom: 1px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.rune-sub {
  font-size: 10px;
  font-style: italic;
  color: #e5dec9;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  position: relative;
  z-index: 2;
}

.rune-stone-flash {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.75) 0%, rgba(245, 158, 11, 0.35) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.rune-stone-card.is-revealed .rune-stone-flash,
.rune-stone-inner.is-revealed .rune-stone-flash {
  animation: rune-flash 0.65s ease-out forwards;
}

@keyframes rune-flash {
  0% { opacity: 0.95; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.22); }
}

@keyframes rune-rack-idle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

#runes-stage.hidden #runes-rack,
#runes-stage.hidden #rune-pouch,
#runes-stage.hidden .pouch-aura-glow,
#runes-stage.hidden .pouch-shockwave,
#runes-stage.hidden .rune-stone,
#runes-stage.hidden .rune-glyph {
  animation: none;
}

#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(201, 167, 255, 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; }
}

/* ==================================================================
 *  PORTAL ETÉREO DE FONDO (Capas de ambiente para Dona y Osito)
 * ================================================================== */
.bg-portal {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bg-portal.is-active {
  opacity: 1;
}

.portal-vortex {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 650px;
  height: 650px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.65;
  animation: portalSpin 18s linear infinite;
}

.portal-ambient-light {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.45;
  transition: opacity 0.8s ease;
}

.portal-sigil-ring {
  position: absolute;
  top: 32%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 215, 0, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.12), 0 0 50px rgba(192, 132, 252, 0.2);
  animation: sigilPulse 6s ease-in-out infinite alternate;
}

/* Modo Dona: Amatista mística */
.bg-portal.portal-dona .portal-vortex {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(126, 34, 206, 0.35) 45%, transparent 70%);
}

.bg-portal.portal-dona .portal-ambient-light {
  background: radial-gradient(ellipse at 50% 35%, rgba(192, 132, 252, 0.3) 0%, transparent 65%);
}

/* Modo Osito: Altar Alquímico Ámbar y Luz Sagrada */
.bg-portal.portal-osito .portal-vortex {
  background: radial-gradient(circle, rgba(253, 224, 71, 0.42) 0%, rgba(180, 110, 20, 0.24) 42%, transparent 72%);
  opacity: 0.9;
}

.bg-portal.portal-osito .portal-ambient-light {
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 236, 190, 0.32) 0%, transparent 62%);
  opacity: 0.75;
}

@keyframes portalSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.95); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.08); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(0.95); }
}

@keyframes sigilPulse {
  0% { transform: translate(-50%, -50%) scale(0.92) rotate(0deg); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.05) rotate(45deg); opacity: 0.75; }
}

/* ==================================================================
 *  PÉNDULOS DIFERENCIADOS: AMATISTA VS CUARZO BLANCO
 * ================================================================== */
/* Péndulo de Amatista (Dona) */
#pendulo-rig.pendulo-amatista .crystal-aura-shift {
  background: radial-gradient(ellipse at center, rgba(192, 132, 252, 0.65) 0%, rgba(147, 51, 234, 0.35) 45%, transparent 75%);
}

#pendulo-rig.pendulo-amatista #pendulo-crystal-img {
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.9)) drop-shadow(0 0 24px rgba(126, 34, 206, 0.5));
}

#pendulo-rig.pendulo-amatista .crystal-tip-flare {
  background: #f3e8ff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px #c084fc, 0 0 24px #9333ea;
}

/* Péndulo de Cuarzo Blanco (Osito) */
#pendulo-rig.pendulo-cuarzo .crystal-aura-shift {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, rgba(253, 224, 71, 0.4) 40%, rgba(168, 85, 247, 0.2) 65%, transparent 78%);
  animation: cuarzoPrismShift 3.5s ease-in-out infinite alternate;
}

#pendulo-rig.pendulo-cuarzo #pendulo-crystal-img {
  filter: brightness(1.25) contrast(1.15) drop-shadow(0 0 14px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 24px rgba(253, 224, 71, 0.7));
}

#pendulo-rig.pendulo-cuarzo .crystal-tip-flare {
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #fde047, 0 0 30px #ffffff;
}

@keyframes cuarzoPrismShift {
  0% { filter: hue-rotate(0deg); opacity: 0.8; }
  50% { filter: hue-rotate(30deg); opacity: 1; }
  100% { filter: hue-rotate(-20deg); opacity: 0.85; }
}

/* ==================================================================
 *  RUNA REGENTE INDIVIDUAL (Dona)
 * ================================================================== */
#runes-rack.runes-single {
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

#runes-rack.runes-single .rune-stone-card {
  width: 215px;
  height: 160px;
  transform: rotate(0deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 32px rgba(253, 224, 71, 0.48));
}

#runes-rack.runes-single .rune-glyph,
#runes-rack.runes-single .rune-stone-glyph {
  font-size: 78px;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.9));
}

#runes-rack.runes-single .rune-title,
#runes-rack.runes-single .rune-stone-name {
  font-size: 20px;
  letter-spacing: 2.2px;
}

#runes-rack.runes-single .rune-sub,
#runes-rack.runes-single .rune-stone-keyword {
  font-size: 14px;
}

#runes-rack.runes-single.runes-dona .rune-stone-card {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.75));
}

#runes-rack.runes-single.runes-dona .rune-glyph,
#runes-rack.runes-single.runes-dona .rune-stone-glyph {
  filter: drop-shadow(0 0 14px rgba(192, 132, 252, 0.95));
}

#dona-close-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 168px;
  margin: 0;
  padding: 0 8px;
  max-height: 68px;
  overflow: hidden;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.2px;
  color: #f6f0ff;
}

#dona-close-line.hidden {
  display: none;
}

/* ==================================================================
 *  CIERRE RITUAL: WIDGET DE RESUMEN SUPRIMIDO POR COHERENCIA VISUAL
 * ================================================================== */
#share-card {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#share-veil {
  display: none !important;
}

#share-card-frame {
  display: none !important;
}

#share-card-img {
  display: none !important;
}

#share-card-cta {
  display: none !important;
}

#share-card-label {
  display: none !important;
}

.decree-seal-anchor {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.sacred-decree-seal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(38, 16, 58, 0.94) 0%, rgba(16, 6, 26, 0.97) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.82);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(212, 175, 55, 0.4), inset 0 0 16px rgba(255, 215, 0, 0.22);
}

.decree-seal-spark {
  color: #ffd700;
  font-size: 20px;
  animation: decreeSparkTwinkle 2.2s ease-in-out infinite alternate;
}

.decree-seal-text {
  font-family: "Cinzel", "Georgia", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #fff3a8 30%, #ffd700 70%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

@keyframes decreeSparkTwinkle {
  0% { transform: scale(0.85) rotate(0deg); opacity: 0.65; filter: drop-shadow(0 0 4px #ffd700); }
  100% { transform: scale(1.25) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 12px #ffe066); }
}


