/* v5284 · luces cromáticas con brillo, despedida limpia y texto corregido. */

/* LEDs en tonos joya: rojo, esmeralda, azul hielo y champán. */
html body .tv-xmas-bulb-v513:nth-of-type(4n + 1) {
  --tv-xmas-color: #ff6472 !important;
  --tv-xmas-glow: rgba(255, 76, 96, .76) !important;
  --tv-xmas-glow-soft: rgba(255, 62, 88, .38) !important;
}
html body .tv-xmas-bulb-v513:nth-of-type(4n + 2) {
  --tv-xmas-color: #55e3a0 !important;
  --tv-xmas-glow: rgba(48, 228, 145, .76) !important;
  --tv-xmas-glow-soft: rgba(37, 214, 130, .36) !important;
}
html body .tv-xmas-bulb-v513:nth-of-type(4n + 3) {
  --tv-xmas-color: #75caff !important;
  --tv-xmas-glow: rgba(81, 190, 255, .76) !important;
  --tv-xmas-glow-soft: rgba(71, 174, 255, .38) !important;
}
html body .tv-xmas-bulb-v513:nth-of-type(4n) {
  --tv-xmas-color: #ffd36e !important;
  --tv-xmas-glow: rgba(255, 195, 79, .78) !important;
  --tv-xmas-glow-soft: rgba(255, 174, 58, .38) !important;
}

html body .tv-xmas-bulb-v513 {
  width: 4px !important;
  height: 5px !important;
  opacity: .96 !important;
  background: radial-gradient(circle at 32% 25%, #fffef9 0 18%, var(--tv-xmas-color) 49%, color-mix(in srgb, var(--tv-xmas-color) 70%, #071511) 100%) !important;
  box-shadow: 0 0 1px 1px rgba(255, 252, 239, .78),
    0 0 6px 2px var(--tv-xmas-glow),
    0 0 12px 3px var(--tv-xmas-glow-soft) !important;
  filter: brightness(1.12) drop-shadow(0 0 3px var(--tv-xmas-glow)) !important;
  animation: tv-v5283-color-lumen 5.6s ease-in-out var(--tv-xmas-sway, 0s) infinite alternate !important;
}
html body .tv-xmas-bulb-v513.is-trail {
  opacity: 1 !important;
  box-shadow: 0 0 1px 1px rgba(255, 253, 245, .9),
    0 0 7px 2.5px var(--tv-xmas-glow),
    0 0 14px 4px var(--tv-xmas-glow-soft) !important;
  filter: brightness(1.22) drop-shadow(0 0 4px var(--tv-xmas-glow)) !important;
}
html body .tv-xmas-bulb-v513.is-lead {
  opacity: 1 !important;
  box-shadow: 0 0 1.5px 1px rgba(255, 255, 250, .96),
    0 0 8px 3px var(--tv-xmas-glow),
    0 0 16px 5px var(--tv-xmas-glow-soft) !important;
  filter: brightness(1.35) drop-shadow(0 0 5px var(--tv-xmas-glow)) !important;
}
@keyframes tv-v5283-color-lumen {
  0%, 100% { opacity: .86; }
  50% { opacity: 1; }
}

/* Las lámparas del árbol proyectan luz en su propio color, sin tocar el dibujo. */
#tv-xmas-intro-v516 .tv-in-tree-lights .tv-in-bulb,
html body .tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb {
  opacity: .98 !important;
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor) !important;
  animation: tv-v5283-tree-lumen 3.2s ease-in-out var(--delay, 0s) infinite !important;
}
#tv-xmas-intro-v516 .tv-in-tree-lights .tv-in-bulb-halo,
html body .tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb-halo {
  fill: currentColor !important;
  opacity: .38 !important;
  filter: blur(1.6px) drop-shadow(0 0 7px currentColor) !important;
  animation: tv-v5283-tree-halo 3.2s ease-in-out var(--delay, 0s) infinite !important;
}
@keyframes tv-v5283-tree-lumen {
  0%, 100% { opacity: .83; }
  34% { opacity: 1; }
  67% { opacity: .91; }
}
@keyframes tv-v5283-tree-halo {
  0%, 100% { opacity: .20; }
  34% { opacity: .43; }
  67% { opacity: .27; }
}

/* Se quitan los dos aros añadidos; el archivo del logo queda intacto. */
html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::before,
html.tv-v5265-finale-motion body .tv-v524-final-logo-frame::after,
html body .tv-v524-final-logo-frame::before,
html body .tv-v524-final-logo-frame::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  filter: none !important;
  animation: none !important;
}

html body .tv-v524-final-surface::after,
html body .tv-v524-final-logo-frame::before,
html body .tv-v524-final-logo-frame::after {
  transition: none !important;
}

/* Se retira la guirnalda inferior; queda el fondo limpio del cierre. */
html body .tv-v524-final-surface::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .tv-xmas-bulb-v513,
  #tv-xmas-intro-v516 .tv-in-tree-lights .tv-in-bulb,
  #tv-xmas-intro-v516 .tv-in-tree-lights .tv-in-bulb-halo,
  html body .tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb,
  html body .tv-v524-final-tree .tv-in-tree-lights .tv-in-bulb-halo {
    animation: none !important;
  }
}
