/**
 * Atmospheric layer — restrained (no magenta)
 */
.um-atmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.um-atmos-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -5%, rgba(124, 45, 18, 0.18), transparent 58%),
    radial-gradient(ellipse 60% 45% at 90% 30%, rgba(234, 88, 12, 0.08), transparent 54%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 50%, var(--bg0));
}

.um-atmos-bleed {
  position: absolute;
  width: min(110vw, 1400px);
  height: min(110vw, 1400px);
  left: 50%;
  top: -40%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(251, 99, 6, 0.09), transparent 65%);
  filter: blur(50px);
  opacity: 0.95;
}

.um-atmos-grid {
  position: absolute;
  inset: auto -20% 0;
  height: 45%;
  background-image:
    linear-gradient(rgba(251, 99, 6, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 99, 6, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to top, black, transparent);
  opacity: 0.35;
  transform: perspective(400px) rotateX(74deg);
  transform-origin: 50% 100%;
}

.um-atmos-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent, rgba(0, 2, 4, 0.85));
}

/* Cursor glow */
#cursor-glow.um-cursor {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 99, 6, 0.09) 0%, rgba(154, 52, 18, 0.04) 45%, transparent 68%);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.um-body.has-cursor-glow #cursor-glow.is-on {
  opacity: 1;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  #cursor-glow.um-cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .um-atmos-bleed,
  .um-atmos-grid {
    animation: none;
  }
}
