:root {
  --bg-1: #071025;
  --bg-2: #121328;
  --pastel-1: #ffd9e8;
  --pastel-2: #c9f0ff;
  --pastel-3: #fef1c7;
  --pastel-4: #d6f7d9;
  --card-font: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--card-font);
  font-weight: 400;
  background: radial-gradient(1200px 500px at 10% 20%, rgba(94, 61, 145, 0.12), transparent 10%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  overflow: hidden;
  color: white;
  cursor: none;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none
}

.scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  text-align: center;
  padding: 4vmin;
  perspective: 1000px;
}

.nebula {
  position: absolute;
  width: 80vmin;
  height: 80vmin;
  left: 50%;
  top: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 217, 232, 0.12), transparent 10%),
    radial-gradient(circle at 70% 70%, rgba(201, 240, 255, 0.08), transparent 10%),
    radial-gradient(circle at 50% 45%, rgba(254, 241, 199, 0.05), transparent 10%);
  filter: blur(40px) saturate(120%);
  mix-blend-mode: screen;
  pointer-events: none;
  border-radius: 50%;
  animation: pulseNebula 20s infinite alternate ease-in-out;
}

#message {
  font-weight: 800;
  font-size: 6vmin;
  margin: 0;
  letter-spacing: 0.02em;
  padding: 2vmin 4vmin;
  border-radius: 24px;
  background: linear-gradient(90deg, 
    var(--pastel-1), 
    var(--pastel-2), 
    var(--pastel-3), 
    var(--pastel-4), 
    var(--pastel-1)
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 255, 255, 0.03);
  animation: moveGradient 7s linear infinite;
  transition: transform 0.1s ease-out;
}

#custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  animation: fadeInCursor 1s 0.5s forwards;
}

@keyframes fadeInCursor {
  to { opacity: 0.7; }
}

@keyframes pulseNebula {
  from {
    transform: translate(-50%, -50%) scale(0.95) rotate(0deg);
    filter: blur(40px) saturate(120%);
    opacity: 0.9;
  }
  to {
    transform: translate(-50%, -50%) scale(1.05) rotate(15deg);
    filter: blur(35px) saturate(150%);
    opacity: 1;
  }
}

@keyframes moveGradient {
  to {
    background-position: 250% center;
  }
}


@media (max-width:600px) {
  #message {
    font-size: 8vmin
  }
}