/* ==========================================================================
   CUTE BIRTHDAY SURPRISE WEBSITE - STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CORE DESIGN TOKENS & RESET
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #FFF7F8;
  --bg-secondary: #FFF0F3;
  --card-bg: #FFFFFF;
  
  --primary-pink: #FF85A1;
  --soft-pink: #FFB7B2;
  --light-pink: #FFE5EC;
  --deep-pink: #FF477E;
  
  --warm-gold: #FFB703;
  --soft-yellow: #FFE49E;
  
  --lavender: #E8D7FF;
  --soft-purple: #B5838D;
  
  --text-dark: #4A3E4D;
  --text-muted: #8E7C93;
  
  --font-heading: 'Dancing Script', cursive;
  --font-cute: 'Fredoka', cursive, sans-serif;
  --font-body: 'Quicksand', sans-serif;
  
  --shadow-soft: 0 10px 30px rgba(255, 133, 161, 0.15);
  --shadow-hover: 0 18px 40px rgba(255, 133, 161, 0.28);
  --shadow-card: 0 8px 24px rgba(74, 62, 77, 0.08);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #FFF0F5 0%, #FFF8FA 50%, #F5ECFF 100%);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Canvas overlay for particle animations */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* --------------------------------------------------------------------------
   2. UTILITY & HELPER STYLES
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

.text-pink { color: var(--primary-pink); }
.text-gold { color: var(--warm-gold); }
.text-purple { color: #9C89B8; }

.heart-pulse {
  display: inline-block;
  animation: heartPulse 1.2s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.heart-beat {
  animation: heartPulse 1s infinite;
}

/* Cute Buttons */
.cute-btn {
  font-family: var(--font-cute);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(255, 71, 126, 0.25);
}

.primary-btn {
  background: linear-gradient(45deg, var(--primary-pink), var(--deep-pink));
  color: #FFFFFF;
}

.primary-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 28px rgba(255, 71, 126, 0.38);
}

.secondary-btn {
  background: linear-gradient(45deg, var(--warm-gold), #FF9F1C);
  color: #FFFFFF;
}

.secondary-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 28px rgba(255, 183, 3, 0.4);
}

.mini-btn {
  font-size: 0.95rem;
  padding: 8px 18px;
  background: var(--light-pink);
  color: var(--deep-pink);
  box-shadow: none;
}

.mini-btn:hover {
  background: var(--primary-pink);
  color: #FFFFFF;
}

/* Audio Floating Control */
.audio-control-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--deep-pink);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.audio-btn:hover {
  transform: scale(1.1);
  background: var(--deep-pink);
  color: #FFF;
}

.music-wave-bars {
  display: none;
  position: absolute;
  bottom: 6px;
  gap: 2px;
}

.audio-btn.playing .music-wave-bars {
  display: flex;
}

.music-wave-bars span {
  width: 3px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
  animation: wave 0.8s infinite ease-in-out alternate;
}

.music-wave-bars span:nth-child(2) { animation-delay: 0.2s; }
.music-wave-bars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  0% { height: 4px; }
  100% { height: 12px; }
}

/* --------------------------------------------------------------------------
   3. INTRO GIFT BOX SCREEN
   -------------------------------------------------------------------------- */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #FFF2F5 0%, #FFD6E0 60%, #F5C6D6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.gift-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.pulse-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 133, 161, 0.2);
  animation: pulseGlow 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.gift-box {
  width: 170px;
  height: 170px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.gift-container:hover .gift-box {
  transform: translateY(-8px) rotate(-2deg);
}

.gift-body {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #FF477E, #FF758F);
  position: absolute;
  bottom: 0;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(255, 71, 126, 0.4);
  overflow: hidden;
}

.gift-lid {
  width: 186px;
  height: 48px;
  background: linear-gradient(135deg, #FF5C8A, #FF85A1);
  position: absolute;
  top: 0;
  left: -8px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gift-box.open .gift-lid {
  transform: translateY(-120px) rotate(-18deg) scale(0.9);
}

.ribbon-vertical {
  position: absolute;
  width: 32px;
  height: 100%;
  background: linear-gradient(to right, #FFD166, #FFE49E, #FFB703);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.gift-body .ribbon-horizontal {
  position: absolute;
  width: 100%;
  height: 32px;
  background: linear-gradient(to bottom, #FFD166, #FFE49E, #FFB703);
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Bow */
.gift-bow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 36px;
}

.bow-left, .bow-right {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 8px solid #FFB703;
  border-radius: 50% 50% 0 50%;
}

.bow-left {
  left: 0;
  transform: rotate(35deg);
}

.bow-right {
  right: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-35deg);
}

.bow-center {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #FFE49E;
  border-radius: 50%;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.start-touch-btn {
  font-family: var(--font-cute);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  border: 3px solid #FFFFFF;
  background: linear-gradient(45deg, #FF477E, #FF85A1, #FFB703);
  background-size: 200% 200%;
  color: #FFFFFF;
  cursor: pointer;
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(255, 71, 126, 0.4);
  animation: startBtnGlow 1.8s infinite alternate ease-in-out, bgGradient 3s infinite linear;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  width: 90%;
  max-width: 320px;
  justify-content: center;
}

@keyframes startBtnGlow {
  0% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 71, 126, 0.35); }
  100% { transform: scale(1.08); box-shadow: 0 14px 35px rgba(255, 183, 3, 0.6); }
}

@keyframes bgGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gift-subtag {
  margin-top: 15px;
  font-family: var(--font-cute);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   4. MAIN CONTENT & FLOATING DECORATIONS
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 10;
}

.floating-balloons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.balloon {
  position: absolute;
  font-size: 3rem;
  opacity: 0.7;
  animation: floatUp 15s infinite linear;
}

.balloon-1 { left: 5%; animation-duration: 14s; animation-delay: 0s; }
.balloon-2 { left: 22%; animation-duration: 18s; animation-delay: 3s; }
.balloon-3 { left: 50%; animation-duration: 16s; animation-delay: 1s; }
.balloon-4 { left: 75%; animation-duration: 19s; animation-delay: 4s; }
.balloon-5 { left: 90%; animation-duration: 13s; animation-delay: 2s; }

@keyframes floatUp {
  0% { transform: translateY(105vh) rotate(0deg); }
  100% { transform: translateY(-20vh) rotate(15deg); }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding: 40px 20px 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-pink);
  color: var(--deep-pink);
  font-family: var(--font-cute);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* TOP HERO PORTRAIT FRAME FOR PRINCE KARLUPIA */
.hero-photo-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 25px;
}

.crown-decoration {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  font-size: 3rem;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  animation: crownBounce 2.5s infinite ease-in-out;
}

@keyframes crownBounce {
  0%, 100% { transform: translateX(-50%) rotate(-6deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(4deg) translateY(-8px); }
}

.hero-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #FFD166, #FF85A1, #FF477E, #FFB703);
  box-shadow: 0 15px 35px rgba(255, 71, 126, 0.35);
  position: relative;
  overflow: hidden;
  animation: framePulse 3s infinite alternate ease-in-out;
}

@keyframes framePulse {
  0% { box-shadow: 0 12px 30px rgba(255, 71, 126, 0.3); }
  100% { box-shadow: 0 18px 45px rgba(255, 183, 3, 0.5); }
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  background: #FFFFFF;
}

.hero-sparkle-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero-sparkle-stars span {
  position: absolute;
  font-size: 1.5rem;
  animation: starTwinkle 2s infinite ease-in-out alternate;
}

.star-s1 { top: 10px; right: -15px; animation-delay: 0.2s; }
.star-s2 { bottom: 20px; left: -20px; animation-delay: 0.7s; }
.star-s3 { top: 50%; right: -25px; animation-delay: 1.2s; }

@keyframes starTwinkle {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
  100% { transform: scale(1.3) rotate(20deg); opacity: 1; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--deep-pink);
  margin-bottom: 15px;
  text-shadow: 2px 4px 10px rgba(255, 71, 126, 0.15);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.banner-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #FFB703, #FF9F1C);
  color: #FFFFFF;
  font-family: var(--font-cute);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.3);
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE CAKE & CANDLE SECTION
   -------------------------------------------------------------------------- */
.cake-section {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.9);
  position: relative;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-cute);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Cake Canvas & Structure */
.cake-wrapper {
  position: relative;
  width: 280px;
  height: 240px;
  margin: 0 auto 35px;
}

.cake-glow {
  position: absolute;
  width: 220px;
  height: 60px;
  background: rgba(255, 183, 3, 0.3);
  filter: blur(25px);
  bottom: 20px;
  left: 30px;
  border-radius: 50%;
}

.cake {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
}

.plate {
  width: 270px;
  height: 18px;
  background: #E2E8F0;
  border-radius: 10px;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.layer {
  position: relative;
  margin: 0 auto;
  border-radius: 12px 12px 6px 6px;
}

.layer-bottom {
  width: 220px;
  height: 65px;
  background: linear-gradient(to right, #F8AD9D, #F4978E, #F8AD9D);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.06);
}

.layer-middle {
  width: 170px;
  height: 55px;
  background: linear-gradient(to right, #FFC6FF, #E8AEFF, #FFC6FF);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.06);
}

.layer-top {
  width: 120px;
  height: 50px;
  background: linear-gradient(to right, #BDB2FF, #A0C4FF, #BDB2FF);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.06);
}

.icing {
  position: absolute;
  top: 0;
  width: 100%;
  height: 16px;
  background: #FFFFFF;
  border-radius: 10px 10px 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Candles */
.candles-container {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}

.candle {
  width: 14px;
  height: 42px;
  background: repeating-linear-gradient(45deg, #FF477E, #FF477E 6px, #FFFFFF 6px, #FFFFFF 12px);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.candle-2 {
  background: repeating-linear-gradient(-45deg, #FFB703, #FFB703 6px, #FFFFFF 6px, #FFFFFF 12px);
  height: 48px;
  top: -6px;
}

.flame {
  width: 16px;
  height: 24px;
  background: linear-gradient(to top, #FF4500, #FFB703, #FFFFE0);
  border-radius: 50% 50% 20% 20%;
  position: absolute;
  top: -24px;
  left: -1px;
  box-shadow: 0 0 12px #FFB703, 0 0 24px #FF4500;
  animation: flameFlicker 0.6s infinite alternate ease-in-out;
  transition: opacity 0.4s ease;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.15) rotate(2deg); }
}

.candle.extinguished .flame {
  opacity: 0;
}

.smoke {
  position: absolute;
  top: -30px;
  left: 3px;
  width: 8px;
  height: 20px;
  background: rgba(180, 180, 180, 0.6);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}

.candle.extinguished .smoke {
  animation: smokeRise 1.5s ease-out forwards;
}

@keyframes smokeRise {
  0% { opacity: 0.8; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(2.5); filter: blur(4px); }
}

/* Wish Unlocked Banner */
.wish-card {
  margin-top: 30px;
  transition: all 0.5s ease;
}

.wish-card.hidden-wish {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.wish-card-inner {
  background: linear-gradient(135deg, #FFE5EC, #FFF0F3);
  border: 2px dashed var(--primary-pink);
  border-radius: var(--radius-md);
  padding: 25px;
  max-width: 550px;
  margin: 0 auto;
}

.magic-icon {
  font-size: 2.2rem;
  color: var(--warm-gold);
  margin-bottom: 10px;
}

.wish-card-inner h3 {
  font-family: var(--font-cute);
  color: var(--deep-pink);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.wish-card-inner p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   7. POLAROID GALLERY SECTION
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 50px 0;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px 25px;
  padding: 10px;
}

.polaroid-card {
  background: #FFFFFF;
  padding: 16px 16px 22px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Gentle random rotation for handmade polaroid aesthetic */
.polaroid-card:nth-child(1) { transform: rotate(-2.5deg); }
.polaroid-card:nth-child(2) { transform: rotate(3deg); }
.polaroid-card:nth-child(3) { transform: rotate(-1.5deg); }
.polaroid-card:nth-child(4) { transform: rotate(2.5deg); }
.polaroid-card:nth-child(5) { transform: rotate(-3deg); }
.polaroid-card:nth-child(6) { transform: rotate(2deg); }
.polaroid-card:nth-child(7) { transform: rotate(-2deg); }

.polaroid-card:hover {
  transform: translateY(-12px) rotate(0deg) scale(1.03);
  box-shadow: var(--shadow-hover);
  z-index: 5;
}

.pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  z-index: 2;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.15));
}

.polaroid-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 2px;
  background: #F8F9FA;
}

.polaroid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img-wrapper img {
  transform: scale(1.06);
}

.polaroid-caption {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: 700;
}

.heart-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.heart-btn:hover, .heart-btn.liked {
  color: var(--deep-pink);
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   8. SECRET WISH FLIP CARDS
   -------------------------------------------------------------------------- */
.wishes-section {
  padding: 40px 0 60px;
}

.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.flip-card {
  background-color: transparent;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 133, 161, 0.3);
  color: var(--text-dark);
}

.flip-card-back {
  background: linear-gradient(135deg, var(--light-pink), #FFF0F5);
  border: 2px solid var(--primary-pink);
  color: var(--text-dark);
  transform: rotateY(180deg);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.flip-card-front h3 {
  font-family: var(--font-cute);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.flip-card-front p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.flip-card-back h3 {
  font-family: var(--font-cute);
  color: var(--deep-pink);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.flip-card-back p {
  font-size: 0.98rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. INTERACTIVE ENVELOPE / LOVE LETTER (MOBILE-OPTIMIZED)
   -------------------------------------------------------------------------- */
.letter-section {
  padding: 30px 0 50px;
}

.envelope-wrapper {
  max-width: 420px;
  width: 90%;
  margin: 0 auto;
  perspective: 1000px;
}

.envelope {
  position: relative;
  width: 100%;
  height: 240px;
  background: #FF85A1;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 30px rgba(255, 133, 161, 0.3);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.3s ease;
}

.envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  background: #FF6B8B;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 0.6s ease 0.2s, z-index 0.2s ease 0.4s;
  z-index: 4;
}

.envelope.open .envelope-top {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-paper {
  position: absolute;
  bottom: 8px;
  left: 4%;
  width: 92%;
  height: 88%;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  z-index: 2;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.envelope.open .envelope-paper {
  transform: translateY(-130px);
  height: 280px;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.envelope-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FF85A1;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 16px 16px;
  z-index: 3;
  pointer-events: none;
}

.envelope-sticker {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-pink);
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 5;
  transition: opacity 0.3s ease;
}

.envelope.open .envelope-sticker {
  opacity: 0;
  pointer-events: none;
}

.letter-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--deep-pink);
  margin-bottom: 8px;
}

.letter-content p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.letter-sign {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-pink);
  text-align: right;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   10. LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 15, 35, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-overflow-scrolling: touch;
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  touch-action: manipulation;
}

.lightbox-content {
  display: flex;
  flex-direction: row;
}

.lightbox-img-box {
  flex: 1.2;
  background: #000;
  max-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: contain;
}

.lightbox-details {
  flex: 1;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-details h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--deep-pink);
  margin-bottom: 8px;
}

.lightbox-details p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   11. SARCASTIC GAME SECTION (CHAI VS WIFE)
   -------------------------------------------------------------------------- */
.game-section {
  padding: 40px 0 50px;
}

.game-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 35px 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 3px solid rgba(255, 133, 161, 0.4);
  position: relative;
  overflow: hidden;
}

.game-question {
  font-family: var(--font-cute);
  font-size: 1.6rem;
  color: var(--deep-pink);
  margin-bottom: 25px;
}

.game-options-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  position: relative;
  min-height: 260px;
}

.game-option-box {
  flex: 1;
  max-width: 260px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.option-img-wrapper {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #FFF0F5;
}

.option-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-choice-btn {
  font-family: var(--font-cute);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: manipulation;
}

.chai-choice {
  background: linear-gradient(45deg, #FFB703, #FF9F1C);
  color: #FFFFFF;
  position: relative;
}

.wife-choice {
  background: linear-gradient(45deg, #FF477E, #FF85A1);
  color: #FFFFFF;
}

.wife-choice:hover, .wife-choice:active {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(255, 71, 126, 0.4);
}

.game-hint {
  font-family: var(--font-cute);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* SARCASTIC PRANK RESULT TEXT BOX */
.game-result-card {
  margin-top: 25px;
  background: linear-gradient(135deg, #FFF0F5, #FFE5EC);
  border: 3px dashed var(--deep-pink);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

@keyframes bounceIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.prank-main-question {
  font-family: var(--font-cute);
  font-size: 1.6rem;
  color: var(--deep-pink);
  margin-bottom: 12px;
  line-height: 1.35;
}

.prank-sub-message {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 20px;
}

#retry-game-btn {
  margin: 0 auto;
}

@media (max-width: 600px) {
  .game-options-container {
    flex-direction: column;
    align-items: center;
    min-height: 480px;
  }
  .game-option-box {
    width: 100%;
    max-width: 280px;
  }
}

/* --------------------------------------------------------------------------
   12. FOOTER & GLOBAL MOBILE MEDIA QUERIES
   -------------------------------------------------------------------------- */
.cute-footer {
  text-align: center;
  padding: 30px 15px 20px;
  border-top: 2px dashed rgba(255, 133, 161, 0.3);
  margin-top: 30px;
}

.cute-footer p {
  font-family: var(--font-cute);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* TOUCH & SMALL SCREEN OPTIMIZATIONS (< 768px) */
@media (max-width: 768px) {
  html, body {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .main-content {
    padding: 20px 12px 60px;
  }

  .audio-control-bar {
    top: 12px;
    right: 12px;
  }

  .audio-btn {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  /* Intro Gift Box for Mobile */
  .gift-box {
    width: 140px;
    height: 140px;
  }
  .gift-body { height: 105px; }
  .gift-lid { width: 152px; height: 40px; left: -6px; }
  .gift-tag {
    font-size: 0.95rem;
    padding: 10px 18px;
    margin-top: 25px;
    text-align: center;
    max-width: 85vw;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 20px 10px 30px;
  }

  .hero-badge {
    font-size: 0.9rem;
    padding: 6px 16px;
  }

  .hero-photo-wrapper {
    width: 170px;
    height: 170px;
    margin-bottom: 20px;
  }

  .crown-decoration {
    font-size: 2.3rem;
    top: -18px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7.5vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .banner-ribbon {
    font-size: 0.95rem;
    padding: 8px 18px;
    max-width: 95%;
  }

  /* Cake & Candle Mobile */
  .cake-section {
    padding: 30px 15px;
    margin: 25px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cake-wrapper {
    width: 230px;
    height: 200px;
  }

  .cake { width: 200px; }
  .plate { width: 220px; }
  .layer-bottom { width: 180px; height: 55px; }
  .layer-middle { width: 140px; height: 48px; }
  .layer-top { width: 100px; height: 42px; }

  .candles-container {
    gap: 18px;
    top: -34px;
  }

  .candle {
    width: 18px;
    height: 44px;
    /* Larger tap area for mobile fingers */
    padding: 10px 5px;
  }

  .flame {
    width: 18px;
    height: 26px;
    top: -24px;
    left: 0;
  }

  .cute-btn {
    font-size: 1rem;
    padding: 12px 22px;
    width: 100%;
    max-width: 290px;
    justify-content: center;
  }

  /* Polaroid Gallery Mobile */
  .polaroid-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px 15px;
  }

  /* Reduce tilt on mobile to prevent overflow */
  .polaroid-card {
    transform: rotate(0deg) !important;
    padding: 12px 12px 18px;
  }

  .polaroid-img-wrapper {
    height: 230px;
  }

  .polaroid-caption {
    font-size: 1.25rem;
  }

  /* Flip Cards Mobile */
  .flip-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .flip-card {
    height: 190px;
  }

  .flip-card-front, .flip-card-back {
    padding: 18px;
  }

  /* Lightbox Mobile */
  .lightbox-content {
    flex-direction: column;
  }

  .lightbox-img-box {
    max-height: 280px;
  }

  .lightbox-details {
    padding: 18px 15px;
  }
}

