/* ============================================================
   GAMEHUB — CSS Variables & Global Reset
   ============================================================ */

:root {
  --bg-primary:    #080c1a;
  --bg-secondary:  #0d1228;
  --bg-card:       #111830;
  --bg-card2:      #0f1525;

  --accent:  #4f6ef7;
  --accent2: #7b4fff;
  --accent3: #ff4f8b;
  --neon:    #00e5ff;
  --neon2:   #39ff14;

  --text:       #e8ecff;
  --text-muted: #7a85b0;
  --text-dim:   #3d4a70;

  --border:  rgba(79, 110, 247, 0.18);
  --border2: rgba(255, 255, 255, 0.06);

  --glow:  0 0 30px rgba(79, 110, 247, 0.35);
  --glow2: 0 0 60px rgba(123, 79, 255, 0.25);

  --radius:    14px;
  --radius-lg: 22px;
  --nav-height: 66px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

/* Scroll indicator */
#scrollIndicator {
  position: fixed; bottom: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  transition: width 0.1s linear;
  width: 0%;
}

/* Shared page-fade */
.page-wrap { animation: fadeInPage 0.45s ease; }

/* Keyframes */
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-20px); }
}
@keyframes floatSm {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:0.4; transform:scale(0.7); }
}
