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

:root {
  --dark-color: #000;
}

.night {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top, rgba(255, 20, 147, 0.4) 0%, transparent 45%),
    radial-gradient(ellipse at bottom, rgba(199, 21, 133, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at left 30%, rgba(255, 105, 180, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at right 30%, rgba(255, 105, 180, 0.25) 0%, transparent 50%),
    repeating-linear-gradient(220deg, rgb(0,0,0) 0px, rgb(0,0,0) 19px, transparent 19px, transparent 23px),
    repeating-linear-gradient(189deg, rgb(0,0,0) 0px, rgb(0,0,0) 19px, transparent 19px, transparent 23px),
    repeating-linear-gradient(148deg, rgb(0,0,0) 0px, rgb(0,0,0) 19px, transparent 19px, transparent 23px),
    linear-gradient(90deg, #ff69b4, #ff1493, #c71585, #8b008b);
  filter: blur(0.1vmin) contrast(1.12) brightness(0.9);
  z-index: -2;
}

.title {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  font-family: 'Courier New', Courier, monospace;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;

  width: 100%;
  height: 100vh;
  text-shadow: 0 0 20px white;
  letter-spacing: 0px;
}

@media (min-width: 500px) {
  .title {
    letter-spacing: 20px;
  }
}

@keyframes typing {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Terapkan animasi dengan delay */
.title span {
  opacity: 0;
  animation: typing 1s ease forwards;
  animation-delay: var(--delay);
}

a {
  text-decoration: none;
}

.btn {
  position: relative;
  width: 16em;
  height: 5.5em;
  border-radius: 50px;
  background: linear-gradient(145deg, #ff1493, #c71585, #8b008b);
  border: 2px solid #ff69b4;
  box-shadow: 
    0 0 20px #ff1493,
    inset 0 0 15px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 0 40px #ff1493,
    0 0 80px #c71585,
    inset 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn .text {
  font-weight: bold;
  font-size: 1.3rem;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  z-index: 2;
}

.sparkle {
  fill: white;
  width: 32px;
  height: 32px;
  animation: sparkle-anim 2s infinite;
}

@keyframes sparkle-anim {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(20deg); }
}