* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
}

html {
  background-color: #111111;
  scroll-behavior: smooth;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Dikembalikan ke body::before supaya HTML lu aman tanpa perlu diedit */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../aset/bg.jpg") no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.rules-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.rules-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  /* Animasi zoom untuk kartunya saja */
  animation: zoomInCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.rules-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #10b981;
  text-align: center;
}

.rules-content {
    max-height: 220px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 5px;
    /* scroll-behavior: smooth; Dihapus agar tidak bentrok dengan JS bot */
}

.rule-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInRule 0.5s forwards;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 4px solid #10b981;
    display: flex;
    align-items: flex-start; /* Memaksa angka selalu berada di posisi atas */
    gap: 10px;
}

.rule-number {
    font-weight: 600;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 1px; /* Memberikan sedikit jarak agar angkanya sejajar presisi dengan teks */
}

.rule-text {
    flex-grow: 1;
    word-break: break-word;
    line-height: 1.6;
}




@keyframes fadeInRule {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rules-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

#timerText {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

.btn-wa {
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
  font-size: 0.9rem;
}

.btn-wa:hover {
  background-color: #1ebd5a;
}

.back-link {
  text-align: center;
  margin-top: 15px;
}

.back-link a {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: 0.2s;
}

.back-link a:hover {
  color: #ffffff;
}

footer {
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--muted-2);
  text-align: center;
}

.rules-license {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  width: 100%;
}

@keyframes zoomInCard {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Efek animasi klik membesar-mengecil (bounce/pulse) */
@keyframes clickEffect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.btn-wa:active {
  animation: clickEffect 0.3s ease;
}
