* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  width: 100%;
  overflow-x: hidden;
}

/* BODY */
body {
  background: linear-gradient(135deg, #ffffff, #1f7cff);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh; /* lebih stabil di mobile */
  padding: 20px;
  position: relative;
}

/* BACKGROUND BAWAH (AMAN MOBILE) */
body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;        /* pakai right bukan width */
  height: 150px;
  background: url('../assets/img/animation.png') no-repeat center bottom;
  background-size: 100% auto;  /* jangan cover */
  pointer-events: none;
  z-index: 0;
}

/* CARD */
.card {
  width: 100%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  color: white;
  text-align: center;
  animation: fadeIn 0.6s ease;
  z-index: 1; /* supaya di atas background */
}

/* LOGO */
.logo-wrapper {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 2;
}

.logo {
  height: 55px;
  object-fit: contain;
}

/* TEXT */
h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.subtitle {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 25px;
}

#question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* BUTTON */
.option-btn {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.2);
  color: white;
  transition: 0.25s ease;
}

.option-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* POPUP */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* TAMBAH INI */
}

.popup-box {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 300px;
  text-align: center;
  animation: pop 0.3s ease;
}

.popup-icon {
  font-size: 60px;
}

.popup-box button {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  background: #005ba5;
  color: white;
  cursor: pointer;
}

/* TIMER */
.timer {
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 600;
  opacity: 0.9;
}

/* COUNTDOWN OVERLAY */
.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.countdown-number {
  font-size: 120px;
  font-weight: 700;
  color: white;
  animation: zoom 0.8s ease;
}

/* ANIMATIONS */
@keyframes zoom {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* MOBILE ADJUST */
@media (max-width: 480px) {
  body::after {
    height: 140px;
  }

  .logo {
    height: 45px;
  }
}


.bg-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.card {
  z-index: 1;
}

.logo-wrapper {
  z-index: 2;
}
