:root {
  --black: #000000;
  --neon: #ff2b4a;
  --crimson: #c8102e;
  --pink: #ff7a93;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  overflow: hidden;
}

body {
  color: var(--neon);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#stage {
  position: fixed;
  inset: 0;
  background: var(--black);
  overflow: hidden;
}

/* very soft vignette – keeps edges pure black, adds depth to the particles */
#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.65) 100%);
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#heart {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

#message {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  margin: 0;
  width: min(92vw, 960px);
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ff3b57;
  text-shadow:
    0 0 4px rgba(255, 40, 80, 0.85),
    0 0 14px rgba(255, 10, 60, 0.45),
    0 0 32px rgba(200, 16, 46, 0.35);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.08em;
  margin-left: 0.14em;
  vertical-align: -0.17em;
  background: #ff4d6a;
  box-shadow: 0 0 6px rgba(255, 40, 80, 0.9), 0 0 16px rgba(255, 0, 60, 0.5);
  opacity: 0;
}

#cursor.on {
  opacity: 1;
}

#cursor.blink {
  animation: blink 1.06s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 20px;
  color: var(--neon);
}

@media (prefers-reduced-motion: reduce) {
  #cursor.blink {
    animation: none;
  }
}
