/* THE CARD UNDER A LAMP (the author, 2026-10-06: "третій, мені
   заходить" — the third of four previews).
   Every chapter-transition card (#chapterTransitionPopup — the clock
   cards, the timeskips) gets a low warm lamp behind its time and a
   vignette; the paper under it stays, blurred and drained so its lines
   don't compete — the card is a pause inside the same file, not a
   loading screen. The popup's own style is injected at runtime
   (atmospheres.js), so these rules carry `html body` to stay on top. */

html body #chapterTransitionPopup {
  backdrop-filter: blur(5px) saturate(0.6);
  -webkit-backdrop-filter: blur(5px) saturate(0.6);
}

html body #chapterTransitionPopup::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 13% at 50% 44%,
      rgba(214, 150, 78, 0.42) 0%,
      rgba(170, 104, 48, 0.20) 42%,
      rgba(120, 70, 30, 0.06) 68%,
      transparent 82%),
    radial-gradient(ellipse 75% 65% at 50% 48%,
      transparent 35%,
      rgba(0, 0, 0, 0.60) 100%);
  animation: ccLampBreath 5.5s ease-in-out infinite;
}

html body #chapterTransitionPopup > *,
html body #chapterTransitionPopup .dlg-trans-body {
  position: relative;
  z-index: 1;
}

@keyframes ccLampBreath {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html body #chapterTransitionPopup::before { animation: none; }
}
