:root {
  --color-bg-base: #FFF0F5;
  --color-window-bg: #FFFFFF;
  --color-primary-pink: #FF4B72;
  --color-primary-pink-hover: #FF3366;
  --color-secondary-mint: #2AC4BA;
  --color-accent-purple: #6C5CE7;
  --color-accent-gold: #FFBD2E;
  --color-text-dark: #2B2338;
  --color-text-muted: #8A7D94;
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --shadow-window: 0 30px 70px -15px rgba(255, 120, 160, 0.3), 0 0 1px rgba(0, 0, 0, 0.05);
  --shadow-pill: 0 12px 28px -4px rgba(255, 59, 107, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 10% 20%, #FFF0F5 0%, #FFE5EC 40%, #F5EAFF 100%);
  color: var(--color-text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Floating Ambient Charms */
.ambient-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.decor-item {
  position: absolute;
  user-select: none;
  animation: floatAmbient 4s ease-in-out infinite alternate;
}

.decor-item.h1 { top: 10%; left: 8%; font-size: 2.4rem; animation-delay: 0s; }
.decor-item.s1 { top: 18%; right: 10%; font-size: 2rem; animation-delay: 1s; }
.decor-item.h2 { bottom: 15%; left: 12%; font-size: 2.2rem; animation-delay: 1.5s; }
.decor-item.s2 { top: 40%; left: 4%; font-size: 1.8rem; animation-delay: 2s; }
.decor-item.h3 { bottom: 25%; right: 8%; font-size: 2.5rem; animation-delay: 0.5s; }
.decor-item.r1 { top: 60%; right: 4%; font-size: 2.6rem; animation-delay: 2.5s; }
.decor-item.s3 { bottom: 8%; left: 50%; font-size: 2rem; animation-delay: 1.8s; }

@keyframes floatAmbient {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  100% { transform: translateY(-18px) rotate(8deg) scale(1.08); }
}

/* Floating Music Button */
.audio-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid #FFD6E8;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: #FF3366;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.2);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-toggle-btn:hover {
  transform: scale(1.05);
  background: #FFF;
}

/* Main Container */
.kawaii-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* Window Mockup Card */
.window-stage {
  display: none;
  animation: fadeInPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.window-stage.active {
  display: block;
}

@keyframes fadeInPop {
  0% { opacity: 0; transform: scale(0.92) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.window-mockup {
  background: var(--color-window-bg);
  border-radius: 32px;
  border: 1.5px solid #FFE4EC;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  margin-bottom: 24px;
}

.window-header {
  background: #FFFBFD;
  border-bottom: 1.5px solid #FFE4EC;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.url-pill {
  background: #F8F4FA;
  border-radius: 999px;
  padding: 6px 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.window-actions-dummy {
  font-size: 1.1rem;
  color: #D1C4E9;
  letter-spacing: 2px;
}

/* Window Body Content */
.window-body {
  padding: 44px 32px;
  text-align: center;
}

/* Mascot Animation */
.mascot-stage {
  margin-bottom: 16px;
}

.mascot-bubble {
  display: inline-flex;
  padding: 16px;
  background: #FFFDF8;
  border-radius: 30px;
  border: 2px solid #FDE68A;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
  animation: mascotWiggle 3s ease-in-out infinite;
  cursor: pointer;
}

@keyframes mascotWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.salute-badge {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FF4B72;
  margin-bottom: 8px;
}

.main-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.sub-greeting {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Buttons */
.btn-group-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-kawaii {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-kawaii:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn-kawaii.pink {
  background: linear-gradient(135deg, #FF5E85 0%, #FF3366 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-pill);
}

.btn-kawaii.white {
  background: #FFFFFF;
  color: var(--color-text-dark);
  border: 2px solid #FFE4EC;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.btn-kawaii.yellow {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: #1F2937;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  font-size: 1.15rem;
  padding: 16px 36px;
}

.btn-kawaii.soft {
  background: #F3E8FF;
  color: #7E22CE;
}

/* STAGE 2: TEASE CARD */
.small-card {
  max-width: 440px;
  margin: 40px auto;
}

.letter-stamp-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.badge-mini {
  display: inline-block;
  background: #FFE4EC;
  color: #FF3366;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tease-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.btn-group-tease {
  display: flex;
  justify-content: center;
  gap: 16px;
  min-height: 60px;
  position: relative;
}

/* STAGE 3: CELEBRATION, CAKE & LETTER */
.cake-card {
  text-align: center;
}

.cake-illustration-box {
  margin: 10px auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.cake-candles-wrap {
  display: flex;
  gap: 20px;
  margin-bottom: -4px;
  z-index: 5;
}

.candle {
  width: 12px;
  height: 38px;
  border-radius: 4px;
  position: relative;
}

.candle.c-1 { background: #F472B6; }
.candle.c-2 { background: #FBBF24; }
.candle.c-3 { background: #38BDF8; }

.flame {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  animation: flicker 0.6s infinite alternate;
  user-select: none;
}

.flame.extinguished {
  display: none;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) scale(1.15) rotate(3deg); }
}

.cake-layer {
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.cake-layer.top {
  width: 120px;
  height: 36px;
  background: #FFF1F2;
  border: 3px solid #FDA4AF;
}

.cake-layer.mid {
  width: 170px;
  height: 42px;
  background: #FDF2F8;
  border: 3px solid #F472B6;
  margin-top: -6px;
}

.cake-layer.bottom {
  width: 220px;
  height: 48px;
  background: #FEF3C7;
  border: 3px solid #FCD34D;
  margin-top: -6px;
}

.cake-prompt {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Letter Paper Container */
.letter-content-paper {
  background: #FFFDF9;
  padding: 40px 36px;
  position: relative;
}

.letter-top-date {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #9CA3AF;
  text-align: right;
  margin-bottom: 14px;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #831843;
  margin-bottom: 20px;
}

.letter-body {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 28px;
}

.letter-body p {
  margin-bottom: 16px;
}

.letter-signoff-wrap {
  border-top: 1.5px dashed #FBCFE8;
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.letter-closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #9D174D;
}

.letter-sender-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #1F2937;
  margin-top: 4px;
}

.whatsapp-card-action {
  margin-top: 30px;
  text-align: center;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
}

/* Polaroid Row */
.polaroid-row-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 36px 0 24px;
}

.polaroid-card {
  background: #FFFFFF;
  padding: 12px 12px 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.polaroid-card:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
}

.polaroid-card.rot-left { transform: rotate(-3deg); }
.polaroid-card.rot-right { transform: rotate(3deg); }
.polaroid-card.rot-straight { transform: rotate(1deg); }

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
}

.p-img-1 { background-color: #FCE7F3; background-image: radial-gradient(#F472B6 2px, transparent 2px); background-size: 16px 16px; }
.p-img-2 { background-color: #FEF3C7; background-image: radial-gradient(#F59E0B 2px, transparent 2px); background-size: 16px 16px; }
.p-img-3 { background-color: #E0F2FE; background-image: radial-gradient(#38BDF8 2px, transparent 2px); background-size: 16px 16px; }

.polaroid-caption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #4B5563;
  text-align: center;
}

.bottom-credit {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 30px;
}
