:root {
  --bg-dark: #000;
  --text-dark: #fff;
  --bg-light: #f8f8f8;
  --text-light: #111;
  --accent: #ff00ff;
  --blue: #00ffff;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  transition: background-color 0.5s, color 0.5s;
  min-height: 100vh;
  overflow-x: hidden;
}

body.light {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.background {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -1;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.background.visible {
  opacity: 1;
}



.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo {
  max-width: 80%;
  max-height: 200px;
  margin-bottom: 40px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 5px var(--accent));
  }
  100% {
    filter: drop-shadow(0 0 20px var(--accent));
  }
}

h1 {
  font-size: 2rem;
  text-shadow: 0 0 10px var(--accent);
}

#countdown {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 8px var(--blue);
  margin-top: 10px;
}

#music-toggle {
  position: fixed;
  bottom: 60px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 10;
}

#music-toggle:hover {
  opacity: 1;
}

#music-toggle img {
  width: 50px;
  height: 50px;
}

#music-toggle .tooltip {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#music-toggle:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent);
  z-index: 10;
}

body.light #theme-toggle {
  background: var(--blue);
}

.stats {
  position: fixed;
  bottom: 10px;
  left: 20px;
  font-size: 0.8rem;
  opacity: 0.8;
  z-index: 10;
}

#click-counter {
  position: fixed;
  bottom: 10px;
  right: 20px;
  font-size: 0.8rem;
  opacity: 0.8;
  z-index: 10;
}

audio {
  display: none;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 9999;
  animation: fadeOut 1s ease 2s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .logo {
    max-height: 120px;
  }
  h1 {
    font-size: 1.5rem;
  }
  #countdown {
    font-size: 1.2rem;
  }
  #music-toggle img {
    width: 40px;
    height: 40px;
  }
  #theme-toggle {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
