* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Playfair Display', Georgia, serif;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4e8eb 50%, #ebd4dc 100%);
  color: #523b46;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

/* OVERLAY HALAMAN PIN */
.pin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4e8eb 50%, #ebd4dc 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.pin-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 170, 185, 0.4);
  padding: 25px 20px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(160, 120, 135, 0.12), 0 0 20px rgba(255, 200, 215, 0.3);
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.pin-title {
  font-size: 18px;
  color: #934c67;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.pin-subtitle {
  font-size: 12px;
  color: #785866;
  margin-bottom: 15px;
  font-family: 'Segoe UI', sans-serif;
}

.pin-input {
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  border: 1px solid rgba(210, 150, 170, 0.5);
  background: rgba(255, 255, 255, 0.85);
  color: #523b46;
  font-size: 20px;
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  margin-bottom: 10px;
}

/* NUMPAD VISUAL */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.num-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(220, 170, 185, 0.35);
  color: #6d4657;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 0;
  border-radius: 50%;
  aspect-ratio: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.num-btn:active {
  background: rgba(235, 170, 190, 0.4);
  transform: scale(0.92);
}

.error-msg {
  color: #d9534f;
  font-size: 12px;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 10px;
  display: none;
}

/* OVERLAY HALAMAN LAGU */
.song-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4e8eb 50%, #ebd4dc 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.song-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 170, 185, 0.4);
  padding: 35px 25px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(160, 120, 135, 0.12), 0 0 20px rgba(255, 200, 215, 0.3);
  text-align: center;
  max-width: 380px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.music-player {
  background: rgba(245, 210, 222, 0.5);
  border: 1px solid rgba(220, 160, 180, 0.5);
  border-radius: 30px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
  position: relative;
  z-index: 10;
}

.music-player:hover {
  background: rgba(245, 195, 210, 0.7);
  transform: scale(1.02);
}

.music-btn {
  background: #c26d8e;
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.music-text {
  font-size: 13px;
  color: #7d3f56;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  pointer-events: none;
}

/* OVERLAY PERMAINAN TEBAK-TEBAKAN & KADO TERBANG */
.game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4e8eb 50%, #ebd4dc 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.game-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 170, 185, 0.4);
  padding: 30px 25px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(160, 120, 135, 0.12), 0 0 20px rgba(255, 200, 215, 0.3);
  text-align: center;
  max-width: 380px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.question-box {
  font-size: 15px;
  color: #4a2837;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  margin: 15px 0 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(210, 150, 170, 0.45);
  color: #6d4657;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.option-btn:hover {
  background: rgba(245, 210, 222, 0.6);
  transform: translateX(3px);
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(210, 150, 170, 0.4);
  transition: all 0.3s;
}

.dot.active {
  background: #b85275;
  transform: scale(1.2);
}

.dot.completed {
  background: #8a3f5a;
}

/* CSS KADO NGESELIN TERBANG */
.gift-box-container {
  margin-top: 15px;
  position: relative;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-gift {
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease-out;
  display: inline-block;
  position: absolute;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
}

/* CSS KADO NGESELIN TERBANG */
.gift-box-container {
  margin-top: 15px;
  position: relative;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-gift {
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease-out;
  display: inline-block;
  position: absolute;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
}

.gift-hint {
  font-size: 12px;
  color: #a35672;
  font-family: 'Segoe UI', sans-serif;
  margin-top: 10px;
  font-weight: 600;
}
/* OVERLAY KUE ULANG TAHUN & LILIN INTERAKTIF */
.cake-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4e8eb 50%, #ebd4dc 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cake-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 170, 185, 0.4);
  padding: 30px 25px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(160, 120, 135, 0.12), 0 0 20px rgba(255, 200, 215, 0.3);
  text-align: center;
  max-width: 380px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.cake-container {
  position: relative;
  width: 160px;
  height: 140px;
  margin: 30px auto 20px;
  cursor: pointer;
}

.cake-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: #f8c8d8;
  border-radius: 16px 16px 8px 8px;
  border: 2px solid #e5a3b7;
  box-shadow: inset 0 -10px 0 #ee90ab;
}

.cake-top {
  position: absolute;
  bottom: 75px;
  left: 5%;
  width: 90%;
  height: 25px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e5a3b7;
}

.candle {
  position: absolute;
  bottom: 98px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 35px;
  background: repeating-linear-gradient(45deg, #fff, #fff 5px, #d9829f 5px, #d9829f 10px);
  border-radius: 3px;
}

.flame {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: #ffb703;
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 10px #ffb703, 0 0 20px #fb8500;
  animation: flicker 0.6s infinite alternate;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flame.off {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}

.blow-status {
  font-size: 13px;
  color: #7d3f56;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 15px;
  font-weight: 600;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.nav-buttons .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* CARD UTAMA UCAPAN */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 170, 185, 0.4);
  padding: 40px 25px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(160, 120, 135, 0.12), 0 0 20px rgba(255, 200, 215, 0.3);
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.profile-frame {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #e8a5b8, #f5cad3, #dbe2dd);
  box-shadow: 0 0 20px rgba(232, 165, 184, 0.4);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
}

.subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #a35672;
  margin-bottom: 8px;
}

h1 {
  font-size: 24px;
  color: #4a2837;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(194, 109, 142, 0.15);
}

p {
  color: #634754;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.btn-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #d9829f 0%, #b85275 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 15px rgba(217, 130, 159, 0.35);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 130, 159, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #8a3f5a;
  border: 1px solid rgba(210, 150, 170, 0.45);
}

/* POPUP ALBUM & EFEK BUKU FLIPBOOK */
.album-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 251, 251, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.album-content {
  background: #f8edf1;
  border: 1px solid rgba(220, 170, 185, 0.5);
  border-radius: 20px;
  padding: 25px 20px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(160, 120, 135, 0.18);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.album-title {
  font-size: 16px;
  color: #934c67;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* BINGKAI FOTO BUKU */
.book-frame {
  perspective: 1000px;
  width: 100%;
  max-width: 280px;
  height: 320px;
  margin: 0 auto 15px;
  position: relative;
}

.book-page {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 25px rgba(160, 120, 135, 0.25);
  background: #fff;
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), opacity 0.6s ease;
  backface-visibility: hidden;
}

.book-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ANIMASI MEMBALIK HALAMAN */
.book-page.turn-next {
  animation: flipNext 0.6s ease-in-out forwards;
}

.book-page.turn-prev {
  animation: flipPrev 0.6s ease-in-out forwards;
}

@keyframes flipNext {
  0% { transform: rotateY(0deg); opacity: 1; }
  50% { transform: rotateY(-90deg); opacity: 0.5; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes flipPrev {
  0% { transform: rotateY(0deg); opacity: 1; }
  50% { transform: rotateY(90deg); opacity: 0.5; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

.page-indicator {
  font-size: 12px;
  color: #7d3f56;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ANIMASI EMOTIKON MELAYANG */
.floating-icon {
  position: absolute;
  bottom: -60px;
  font-size: 24px;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.85;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}