/* =============================================
   BACKGROUND — Animated Gaming Atmosphere
   ============================================= */

/* ── Canvas Background ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Overlay Gradient ── */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(168, 85, 247, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(6, 182, 212, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 0%,  rgba(249, 115, 22, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Page content above bg ── */
.page-above-bg {
  position: relative;
  z-index: 2;
}

/* ── Floating orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  animation: orbFloat linear infinite;
  z-index: 1;
}
.orb-1 {
  width: 400px; height: 400px;
  background: #a855f7;
  top: -100px; left: -100px;
  animation-duration: 25s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: #06b6d4;
  bottom: -80px; right: -80px;
  animation-duration: 20s;
  animation-direction: reverse;
}
.orb-3 {
  width: 200px; height: 200px;
  background: #f97316;
  top: 40%; left: 50%;
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(40px, -30px) scale(1.05); }
  50%  { transform: translate(20px, 40px) scale(0.95); }
  75%  { transform: translate(-30px, 20px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Grid lines ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ── Particle dots ── */
.particle-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(168, 85, 247, 0.6);
  border-radius: 50%;
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-20px) translateX(var(--drift)); opacity: 0; }
}
