* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(to bottom, #ffe6f2, #f3e8ff);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container utama */
.container {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: center;
}

/* Card tengah */
.card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Judul */
h1 {
  margin-top: 0;
  color: #ec4899;
}

/* Sticker beruang goyang */
.sticker {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 40px;
  animation: wiggle 1.2s infinite ease-in-out;
}

@keyframes wiggle {
  0% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  100% { transform: rotate(-10deg); }
}

/* Pesan awalnya disembunyikan */
#message {
  margin: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #7c3aed;
  transform: scale(0.5);
  opacity: 0;
  transition: all 0.4s ease;
}

/* Saat muncul */
#message.show {
  transform: scale(1);
  opacity: 1;
}

/* Emoji mengambang */
.emoji-row {
  margin-top: 8px;
}

.float-emoji {
  display: inline-block;
  font-size: 22px;
  animation: floatUp 1.5s infinite ease-in-out;
  margin: 0 4px;
}

.float-emoji:nth-child(2) {
  animation-delay: 0.3s;
}

.float-emoji:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-6px); opacity: 0.8; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Tombol */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .buttons {
    flex-direction: row;
    justify-content: center;
  }
}

button {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

/* Tombol Rynaldi (lari) */
#rynaldy {
  background: white;
  border: 2px solid #ec4899;
  color: #ec4899;
  position: relative;
}

/* Tombol Abang */
#abang {
  background: #ec4899;
  color: white;
}

button:active {
  transform: scale(0.95);
}

#result {
  margin-top: 16px;
  font-size: 14px;
}

#result.hidden {
  display: none;
}

#downloadLink {
  display: inline-block;
  margin-top: 8px;
  color: #ec4899;
  font-weight: 600;
}

#status {
  margin-top: 12px;
  font-size: 14px;
  color: #6b21a8;
}

#status.hidden {
  display: none;
}


