:root {
  /* Day Theme (Light) */
  --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --text-color: #2c3e50;
  --surface-color: rgba(255, 255, 255, 0.9);
  --primary-color: #3498db;
  --accent-color: #f1c40f;
  --border-color: rgba(0, 0, 0, 0.05);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --ball-bg: linear-gradient(145deg, #ffca28, #ff8f00);
  --ball-text: #fff;
  --transition-speed: 0.5s;
}

body.dark {
  /* Night Theme (Dark) */
  --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  --text-color: #ecf0f1;
  --surface-color: rgba(44, 62, 80, 0.8);
  --primary-color: #e74c3c;
  --accent-color: #9b59b6;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --ball-bg: linear-gradient(145deg, #7b1fa2, #4527a0);
  --ball-text: #e0e0e0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

/* Subtle Noise Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}
