:root {
  color-scheme: dark;
  background-color: #010005;
  font-family: "Space Grotesk", "JetBrains Mono", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 20%, rgba(115, 0, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(0, 198, 255, 0.18), transparent 40%),
    radial-gradient(circle at 60% 70%, rgba(255, 0, 153, 0.2), transparent 50%),
    #010005;
  overflow: hidden;
  color: #faf7ff;
}

body::before {
  content: "";
  position: fixed;
  inset: -15%;
  background: conic-gradient(
    from 90deg,
    rgba(255, 0, 255, 0.08),
    rgba(0, 255, 255, 0.05),
    rgba(255, 255, 255, 0.07),
    rgba(0, 128, 255, 0.05),
    rgba(255, 0, 255, 0.08)
  );
  mix-blend-mode: screen;
  filter: blur(80px);
  opacity: 0.6;
  animation: swirl 46s linear infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.4'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.08;
  animation: grain 6s steps(8) infinite;
  pointer-events: none;
  z-index: 0;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 90, 0.04), transparent 40%),
    #010006;
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.05)) contrast(110%) saturate(140%);
  cursor: crosshair;
  z-index: 1;
}

@keyframes swirl {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(1turn) scale(1.15);
  }
}

@keyframes grain {
  0% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-10%, -10%, 0);
  }
  40% {
    transform: translate3d(8%, -6%, 0);
  }
  60% {
    transform: translate3d(-6%, 5%, 0);
  }
  80% {
    transform: translate3d(4%, 8%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
