:root {
  --bg-maroon-dark: #1a0305;
  --bg-maroon-light: #3d0a10;
  --bg-orange-glow: rgba(220, 100, 20, 0.35);
  --card-bg: rgba(43, 6, 10, 0.92);
  --card-glass: rgba(55, 10, 16, 0.88);
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --text-main: #f8fafc;
  --text-muted: #fda4af;
  --border-gold: rgba(245, 158, 11, 0.3);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: #0d0103;
  background-image: 
    radial-gradient(ellipse at center, transparent 40%, rgba(5, 1, 2, 0.85) 100%),
    radial-gradient(circle at 50% 45%, var(--bg-orange-glow) 0%, rgba(80, 15, 22, 0.6) 45%, transparent 80%),
    linear-gradient(135deg, var(--bg-maroon-light) 0%, var(--bg-maroon-dark) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
}

body.dark-theme {
  background: #120103;
  background-image: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.2), transparent 75%);
}

.main-wrapper {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-content: center;
  place-items: center;
  padding: 20px 16px;
  perspective: 1000px; /* Memberikan depth 3D untuk efek zoom */
}

/* Base Card Style */
.card {
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  text-align: center;
  position: relative;
  z-index: 10;
}

/* 1. POPUP INTERAKTIF */
#interactive-card {
  padding: 36px 24px;
  max-width: 380px;
  width: 90vw;
  animation: float 4s ease-in-out infinite;
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s ease;
}

/* State Keluar: Zoom Out & Blur Halus */
#interactive-card.zoom-out-exit {
  opacity: 0;
  transform: scale(0.7) translateZ(-40px);
  filter: blur(6px);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sticker {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
}

#question {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.3;
}

.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

#yesButton, #noButton {
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 26px;
  border: none;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

#yesButton {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: #0b0f19;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

#noButton {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#message-text {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Efek Hujan Hati */
.heart {
  position: fixed;
  top: -30px;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 29.6"><path fill="%23f59e0b" d="M16 29.6c-1-.6-21-12.6-16-20C5.7 5.6 10.3 4 16 11c5.7-7 10.3-5.4 16-2.6 5 7.4-15 19.6-16 20z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  animation: fall 3.5s linear forwards;
  z-index: 1;
  pointer-events: none;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* 2. DETAIL DINNER */
#dinner-card {
  display: none;
  opacity: 0;
  transform: scale(0.65);
  filter: blur(8px);
  max-width: 400px;
  width: 90vw;
  background: var(--card-bg);
  padding: 28px 20px;
  color: var(--text-main);
  will-change: transform, opacity, filter;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.5s ease-out, 
              filter 0.5s ease-out;
}

/* State Masuk: Smooth Zoom In + Bounce */
#dinner-card.zoom-in-enter {
  display: block;
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin-bottom: 4px;
}

.greeting {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  padding: 8px 2px;
}

.countdown-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-group {
  margin-bottom: 10px;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
}

.info-value {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
}

.info-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.divider {
  border: 0;
  height: 1px;
  background: rgba(245, 158, 11, 0.15);
  margin: 10px 0;
}

.btn-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 8px;
}

.btn-secondary-dark {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-muted);
}

.btn-primary-dark {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: #0b0f19;
}