html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: #eaeaea;
  overflow: hidden;
  font-family: "Times New Roman", serif;
}

/* VHS static */
#vhs {
  position: fixed;
  inset: 0;
  background: url("https://cliply.co/wp-content/uploads/2021/07/402107790_STATIC_NOISE_400.gif");
  opacity: 0.08;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: screen;
}

/* Rain canvas */
#rain {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* Star animation */
#star {
  position: fixed;
  top: -150px;
  left: 50%;
  width: 120px;
  transform: translateX(-50%);
  opacity: 0;
  filter: drop-shadow(0 0 25px rgba(255,255,255,0.8));
  z-index: 3;
}

/* Title */
#title-container {
  position: fixed;
  top: 120px;
  width: 100%;
  text-align: center;
  z-index: 4;
  pointer-events: none;
}

#title {
  font-size: 48px;
  letter-spacing: 4px;
  text-shadow:
    2px 0 red,
   -2px 0 cyan;
}

/* Glitch flicker */
@keyframes glitch {
  0% { opacity: 1; }
  20% { opacity: 0.8; transform: translateX(-1px); }
  40% { opacity: 1; transform: translateX(1px); }
  60% { opacity: 0.9; }
  100% { opacity: 1; }
}

#title.glitching {
  animation: glitch 0.15s infinite;
}

/* Subtitle sway */
#subtitle {
  font-size: 14px;
  opacity: 0.25;
  margin-top: 8px;
  animation: sway 6s ease-in-out infinite;
}

@keyframes sway {
  0% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(-6px); }
}
#begin-btn {
  position: fixed;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 14px 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  z-index: 5;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
  background-clip: padding-box;
  outline: none;
}

/* Gradient outline cycle */
#begin-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: black;
  color: white;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 14px 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  z-index: 5;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
  background-clip: padding-box;
  outline: none;
}


@keyframes bounce {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(0.92); }
  100% { transform: translate(-50%, -50%) scale(1); }
}


/* Hover subtle glow */
#begin-btn:hover {
  box-shadow: 0 0 18px rgba(255,255,255,0.25);
}

/* Click bounce */
#begin-btn.clicked {
  animation: bounce 0.35s ease;
  box-shadow: 0 0 35px rgba(255,255,255,0.6);
}

@keyframes bounce {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(0.92); }
  100% { transform: translateX(-50%) scale(1); }
}

#fade {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 2.5s ease;
}

#fade.active {
  opacity: 1;
  * {
  cursor: none;
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: url("Cursor Idle.png") no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
}

#cursor.clicking {
  transform: translate(-50%, -50%) scale(0.85);
}

