/* Cosmic background styles - scoped for theme integration */

/* Fullscreen canvases sit behind page content */
canvas#meteoroidCanvas,
canvas#cosmicCanvas {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(255,106,230,0.08) 0%, rgba(10,14,39,0.9) 60%, transparent 100%);
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
  /* Hide cursor effect on touch devices */
  .cursor-glow { display: none; }
}

.cursor-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(187,110,255,0.65);
  border-radius: 50%;
  animation: ringPulse 2s ease-in-out infinite;
}

.cursor-glow::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1.5px solid rgba(255,106,230,0.45);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite reverse;
}

@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: 0.6 }
  50% { transform: scale(1.18); opacity: 0.28 }
}

.cursor-glow > div { position: absolute; inset: 0; border-radius: 50%; }
.cursor-glow .core {
  inset: 36px;
  background: radial-gradient(circle, rgba(155,92,251,0.28) 0%, rgba(255,106,230,0.16) 40%, transparent 70%);
  box-shadow: 0 0 36px rgba(155,92,251,0.22), inset 0 0 24px rgba(123,44,255,0.12);
}

/* Ensure main page content displays above background canvases */
.wrapper, .site, main, #main {
  position: relative;
  z-index: 10;
}