:root {
  --bg: #222222;
  --card: #1a1a1a;
  --border: rgba(137, 233, 0, 0.18);
  --accent: #6ab800;
  --accent-glow: #89E900;
  --accent-soft: rgba(137, 233, 0, 0.10);
  --text: #d4f5a0;
  --muted: #6a7f3a;
  --white: #eaffd0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: none;
  padding: 40px 16px;
}

/* Custom cursor */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent-glow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, opacity 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(137, 233, 0, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s, height 0.2s, opacity 0.2s;
}

/* Stars canvas */
canvas#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Nebula blobs */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: nebulaIn 2s ease forwards;
}
.nebula-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(137, 233, 0, 0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0.2s;
}
.nebula-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(106, 184, 0, 0.10) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: 0.4s;
}
.nebula-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(137, 233, 0, 0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.6s;
}
@keyframes nebulaIn {
  to { opacity: 1; }
}

/* Tools icon button - top right */
.tools-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  animation: fadeInBtn 0.5s ease 1.6s forwards;
}
.tools-btn:hover {
  border-color: rgba(137, 233, 0, 0.45);
  color: var(--accent-glow);
  background: rgba(137, 233, 0, 0.1);
  box-shadow: 0 0 20px rgba(137, 233, 0, 0.18);
  transform: scale(1.08);
}
.tools-btn svg {
  transition: transform 0.25s;
}
.tools-btn:hover svg {
  transform: rotate(20deg);
}
@keyframes fadeInBtn {
  to { opacity: 1; }
}

/* SVG */
svg { display: block; }

@media (max-width: 480px) {
  body { padding: 24px 12px; }
}