/* === SHARED BASE — variables, resets, background, fireflies === */

:root {
  --moss: #7ac460;
  --deep-forest: #2a4e22;
  --mushroom: #e8667a;
  --fairy-gold: #f0c85a;
  --lichen: #b8e090;
  --night-purple: #6a3db8;
  --spore: #f5e080;
  --bg: #2a1845;
  --acid-pink: #ff6ef0;
  --acid-cyan: #00ffe0;
  --acid-orange: #ffaa30;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* === SHARED KEYFRAMES (transform/opacity only = GPU composited) === */
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 40% 60% 50% 50% / 50% 50% 40% 60%; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.2); }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes color-cycle {
  0%, 100% { color: var(--acid-pink); }
  33% { color: var(--acid-cyan); }
  66% { color: var(--acid-orange); }
}
@keyframes trippy-drift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(8px, -6px) scale(1.05) rotate(2deg); }
}
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
}

/* === BODY === */
body {
  background: var(--bg);
  color: var(--lichen);
  font-family: 'Pangolin', cursive;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='11' ry='8' fill='none' stroke='%23ff6ef0' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%2300ffe0' stroke-width='0.8'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%23ffaa30'/%3E%3C/svg%3E") 12 12, crosshair;
}

/* === CURSOR TRAIL === */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.6s ease-out;
}

/* === BACKGROUND GRADIENT (static — no animation) === */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(140, 80, 220, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 110, 240, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 255, 224, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(255, 170, 48, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #2a1845 0%, #231440 50%, #2e1a50 100%);
  pointer-events: none;
  z-index: 0;
}

/* === FIREFLIES (transform + opacity only) === */
.fireflies {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  will-change: transform, opacity;
  animation: pulse 4s ease-in-out infinite, float 10s ease-in-out infinite;
}
