/* ==========================================================================
   A Tiny Diwali Surprise 🌸🪔 · Master Storybook Stylesheet (Clean Architectural Flow)
   ========================================================================== */

:root {
  --bg-top: #fff9f5;
  --bg-bottom: #feeddc;
  --bg-accent: #fceade;
  --maroon-deep: #590d22;
  --maroon-title: #800f2f;
  --rose-pink: #ff758f;
  --rose-bright: #ff4d6d;
  --gold-24k: #ffb703;
  --gold-warm: #fb8500;
  --gold-bright: #ffe066;
  --cream-parchment: #fffbf5;
  --clay-dark: #691a04;
  
  --font-heading: 'Baloo 2', cursive, sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-hand: 'Caveat', cursive, sans-serif;

  --shadow-soft: 0 10px 30px rgba(168, 50, 22, 0.08);
  --shadow-glow: 0 0 25px rgba(255, 183, 3, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, var(--bg-top) 0%, #fff0e5 55%, var(--bg-bottom) 100%);
  color: var(--maroon-deep);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  transition: background 2.6s cubic-bezier(0.25, 1, 0.5, 1), color 2.2s ease;
}

/* ================= DIWALI NIGHT MODE (BEFORE DIYA IS LIT) ================= */
body.diwali-night-mode {
  background: radial-gradient(circle at 50% 50%, #0e020f 0%, #070108 65%, #000000 100%) !important;
  color: #fff0f3 !important;
}

body.diwali-night-mode::before,
body.diwali-night-mode::after {
  opacity: 0 !important;
}

/* Hide everything decorative in total pitch darkness */
body.diwali-night-mode .toran-garland-wrap {
  opacity: 0 !important;
  transform: translateY(-80px) !important;
  pointer-events: none !important;
  transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.diwali-night-mode .top-nav-bar {
  opacity: 0 !important;
  transform: translateY(-30px) !important;
  pointer-events: none !important;
  transition: opacity 1.6s ease, transform 1.6s ease !important;
}

body.diwali-night-mode .desktop-side-decor {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 1.5s ease !important;
}

body.diwali-night-mode .petals-canvas-layer {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.diwali-night-mode .story-header-wrap {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  pointer-events: none !important;
  max-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), max-height 1.8s ease, margin 1.8s ease !important;
}

/* Hero Stage in Night Mode - Initially hidden until user taps Light the Diya */
body.diwali-night-mode .hero-stage-container {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), max-height 1.4s ease, margin 1.4s ease;
}

body.diwali-night-mode .hero-stage-container.igniting {
  opacity: 1 !important;
  max-height: 380px !important;
  margin: 14px auto !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

/* In Night Mode: Center the darkness whisper and glowing button right in viewport */
body.diwali-night-mode .app-main-viewport {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 1.8s ease;
}

body.diwali-night-mode #welcomeScene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px 14px;
}

/* Darkness Whisper & Glow */
.darkness-whisper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
  animation: whisperPulse 3.2s ease-in-out infinite alternate;
  transition: opacity 0.6s ease, max-height 0.6s ease, margin 0.6s ease;
}

body:not(.diwali-night-mode) .darkness-whisper {
  display: none !important;
}

@keyframes whisperPulse {
  0% { transform: translateY(0); opacity: 0.85; }
  100% { transform: translateY(-5px); opacity: 1; }
}

.darkness-moon-icon {
  font-size: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.darkness-whisper-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.darkness-whisper-sub {
  font-size: clamp(12.5px, 2.5vw, 14px);
  font-weight: 600;
  color: #ffccd5;
  margin-top: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* The Grand Glowing 'Light the Diya' Button in the Dark */
body.diwali-night-mode .tap-hint-pill.btn-ignite-dark {
  background: linear-gradient(135deg, #ff9e00 0%, #ff5400 50%, #d00000 100%) !important;
  border: 2px solid #ffe066 !important;
  border-radius: 999px !important;
  padding: 16px 36px !important;
  font-size: clamp(16px, 3.5vw, 19px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 0 35px rgba(255, 158, 0, 0.75), 0 0 75px rgba(255, 84, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.45) !important;
  cursor: pointer !important;
  animation: pulseDarkBtn 2.4s ease-in-out infinite !important;
}

@keyframes pulseDarkBtn {
  0% { transform: scale(1); box-shadow: 0 0 28px rgba(255, 158, 0, 0.6), 0 0 60px rgba(255, 84, 0, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 50px rgba(255, 183, 3, 0.95), 0 0 100px rgba(251, 133, 0, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 28px rgba(255, 158, 0, 0.6), 0 0 60px rgba(255, 84, 0, 0.35); }
}

body.diwali-night-mode .tap-hint-pill.btn-ignite-dark:hover {
  transform: scale(1.09) translateY(-3px) !important;
  box-shadow: 0 0 60px rgba(255, 183, 3, 1), 0 0 120px rgba(251, 133, 0, 0.75) !important;
}

/* Floating Match / Spark Trail */
.floating-match-spark {
  position: absolute;
  top: 40%;
  left: 50%;
  font-size: 26px;
  pointer-events: none;
  z-index: 100;
  filter: drop-shadow(0 0 14px #ffb703) drop-shadow(0 0 28px #fb8500);
  animation: sparkSwoop 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkSwoop {
  0% { transform: translate(-50%, 60px) scale(0.3); opacity: 0; }
  50% { transform: translate(-50%, -15px) scale(1.4); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

/* ================= ORIGINAL FLAME RADIAL ILLUMINATION LAYER ================= */
.flame-illumination-layer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1600px;
  height: 1600px;
  margin-top: -800px;
  margin-left: -800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 196, 0.98) 0%, rgba(255, 183, 3, 0.85) 25%, rgba(251, 133, 0, 0.55) 50%, rgba(217, 4, 41, 0.15) 75%, transparent 88%);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.04);
  z-index: 18;
  mix-blend-mode: screen;
}

.flame-illumination-layer.blooming {
  animation: radialFlameBloom3s 3.0s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes radialFlameBloom3s {
  0% {
    opacity: 0;
    transform: scale(0.04);
  }
  20% {
    opacity: 0.75;
    transform: scale(0.28);
  }
  50% {
    opacity: 0.98;
    transform: scale(0.75);
  }
  80% {
    opacity: 0.85;
    transform: scale(1.4);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

/* Subtle Mandala Watermarks in Background */
body::before, body::after {
  content: "";
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.05) 0%, transparent 70%);
  border: 1px dashed rgba(245, 127, 23, 0.1);
  pointer-events: none;
  z-index: 0;
}
body::before { top: -100px; left: -120px; }
body::after { bottom: -150px; right: -120px; }

/* Realtime Fireworks Canvas Layer */
#fireworkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Floating Petals Canvas Layer */
.petals-canvas-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.floating-petal {
  position: absolute;
  top: -30px;
  border-radius: 100% 0 100% 0;
  opacity: 0.82;
  animation: petalFall linear infinite;
}

.floating-petal.pink {
  background: linear-gradient(135deg, #ff80ab, #f06292);
  box-shadow: 0 0 6px rgba(255, 128, 171, 0.4);
}

.floating-petal.yellow {
  background: linear-gradient(135deg, #fff176, #fbc02d);
  box-shadow: 0 0 6px rgba(255, 241, 118, 0.4);
}

@keyframes petalFall {
  0% { transform: translateY(-20px) rotate(0deg) translateX(0); opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { transform: translateY(105vh) rotate(360deg) translateX(60px); opacity: 0; }
}

/* Global Notification Toast */
.global-toast {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(36, 8, 24, 0.94);
  color: #fff3b0;
  backdrop-filter: blur(12px);
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid #ffb703;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.global-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= DESKTOP DECORATIVE MARGIN ACCENTS ================= */
.desktop-side-decor {
  display: none;
  position: fixed;
  top: 90px;
  z-index: 15;
  pointer-events: none;
  text-align: center;
}

.desktop-side-decor.left {
  left: calc(50% - 460px);
}

.desktop-side-decor.right {
  right: calc(50% - 460px);
}

.side-kandil {
  position: relative;
  display: inline-block;
  animation: lanternSway 3.8s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}

.kandil-chain {
  width: 2px;
  height: 40px;
  margin: 0 auto;
  background: #fbc02d;
}

.kandil-lamp {
  font-size: 42px;
  filter: drop-shadow(0 4px 15px rgba(255, 183, 3, 0.5));
}

.side-floral-garland {
  font-size: 18px;
  line-height: 2.2;
  margin-top: 15px;
  opacity: 0.8;
  filter: drop-shadow(0 2px 6px rgba(220, 80, 110, 0.2));
}

@keyframes lanternSway {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

@media (min-width: 960px) {
  .desktop-side-decor {
    display: block;
  }
}

/* ================= MAIN VIEWPORT CONTAINER ================= */
.app-main-viewport {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

/* ================= 1. MARIGOLD GARLAND ARCH (TORAN) ================= */
.toran-garland-wrap {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 92px;
  overflow: visible;
  pointer-events: none;
  z-index: 40;
}

.toran-svg {
  width: 100%;
  height: 92px;
  display: block;
}

/* Swaying Temple Bells */
.swaying-bell {
  transform-origin: 0 0;
  animation: bellGentleSway 3.6s ease-in-out infinite alternate;
}

@keyframes bellGentleSway {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

#bellLeftBtn:hover .swaying-bell,
#bellRightBtn:hover .swaying-bell {
  animation: bellRingCrazy 0.7s ease-in-out;
}

@keyframes bellRingCrazy {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-16deg); }
  50% { transform: rotate(14deg); }
  75% { transform: rotate(-8deg); }
}

/* ================= 2. STAGE 1 TOP NAVIGATION ================= */
.top-nav-bar {
  width: 100%;
  padding: 44px 14px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 50;
}

.nav-pill-chips {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 224, 0.8);
  box-shadow: 0 4px 14px rgba(220, 80, 110, 0.08);
}

.chip-dot {
  font-size: 14px;
  transition: transform 0.2s ease;
  cursor: default;
}

.chip-dot:hover {
  transform: scale(1.25);
}

.festive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 224, 0.85);
  box-shadow: 0 4px 14px rgba(220, 80, 110, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon-title);
  letter-spacing: 0.2px;
}

.badge-icon {
  font-size: 13px;
}

.pill-music-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 214, 224, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--maroon-title);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 80, 110, 0.08);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill-music-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 80, 110, 0.16);
  background: #ffffff;
}

.pill-music-btn.playing {
  background: #fff0f3;
  border-color: #ff80ab;
  color: #c2185b;
}

.music-wave-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

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

.music-wave-bars .bar {
  width: 2.5px;
  background: #ff4d6d;
  border-radius: 1px;
}

.music-wave-bars .b1 { height: 6px; animation: eq1 0.7s infinite alternate; }
.music-wave-bars .b2 { height: 11px; animation: eq2 0.5s infinite alternate; }
.music-wave-bars .b3 { height: 8px; animation: eq3 0.6s infinite alternate; }

@keyframes eq1 { 0% { height: 4px; } 100% { height: 12px; } }
@keyframes eq2 { 0% { height: 11px; } 100% { height: 5px; } }
@keyframes eq3 { 0% { height: 7px; } 100% { height: 13px; } }

/* ================= 3. SCENE 1: WELCOME & SLEEPING DIYO ================= */
.scene-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 6px 12px 35px;
  position: relative;
  z-index: 30;
}

.scene-container.active {
  display: flex;
}

.story-header-wrap {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 2px;
  max-width: 620px;
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: clamp(23px, 4.2vw, 34px);
  font-weight: 800;
  color: var(--maroon-title);
  line-height: 1.25;
  text-shadow: none;
}

.emoji-bounce {
  display: inline-block;
  animation: softBob 2.4s ease-in-out infinite;
}

.sparkle-twinkle {
  display: inline-block;
  animation: gentleTwinkle 1.8s ease-in-out infinite;
}

.welcome-subtitle {
  font-size: clamp(13px, 2.2vw, 15.5px);
  font-weight: 600;
  color: #7a3e4d;
  line-height: 1.45;
  margin-top: 3px;
  padding: 0 10px;
}

/* ================= 4. HERO ILLUSTRATION BOARD (TIGHT 680x340) ================= */
.hero-stage-container {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 4px auto 0;
  cursor: pointer;
  outline: none;
  padding: 0 6px;
  user-select: none;
}

.stage-illustration-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(168, 50, 22, 0.09));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-stage-container:hover .stage-illustration-svg {
  transform: scale(1.02);
}

/* Vector Floating Sleep Bubbles (inside SVG) */
.sleep-bubbles-group {
  pointer-events: none;
}

.z-bubble {
  animation: floatZzz 3.2s ease-in-out infinite;
}

.z-bubble.z1 { font-size: 17px; animation-delay: 0s; }
.z-bubble.z2 { font-size: 23px; animation-delay: 0.9s; }
.z-bubble.z3 { font-size: 15px; animation-delay: 1.8s; }

@keyframes floatZzz {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
  25% { opacity: 0.95; }
  75% { opacity: 0.85; }
  100% { transform: translate(14px, -35px) scale(1.15); opacity: 0; }
}

/* Floating Dialogue Bubble on Stage */
.stage-floating-bubble {
  position: absolute;
  top: 15%;
  right: 15%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ffccd5;
  border-radius: 18px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--maroon-title);
  box-shadow: 0 6px 18px rgba(220, 80, 110, 0.15);
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stage-floating-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Diyo Character Animations */
.diyo-character.sleeping {
  animation: diyoBreathe 3.6s ease-in-out infinite;
  transform-origin: 250px 260px;
}

@keyframes diyoBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(3px) scale(1.015, 0.985); }
}

.diyo-character.hop-excited {
  animation: diyoExcitedHop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: 250px 265px;
}

@keyframes diyoExcitedHop {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(8px) scale(1.08, 0.92); }
  55% { transform: translateY(-24px) scale(0.94, 1.08); }
  78% { transform: translateY(3px) scale(1.02, 0.98); }
  100% { transform: translateY(0) scale(1); }
}

/* Mithai & Sweets Platter on Welcome Stage */
.mithai-character {
  cursor: pointer;
  transform-origin: 420px 145px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 12px rgba(255, 183, 3, 0.25));
}

.mithai-character:hover {
  transform: scale(1.06) translateY(-4px);
}

.mithai-character:active {
  transform: scale(0.96) translateY(2px);
}

@keyframes aromaFloatAnim {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  35% { opacity: 0.65; }
  75% { opacity: 0.35; }
  100% { transform: translateY(-16px) scale(1.15); opacity: 0; }
}

.aroma-swirl.a1 {
  animation: aromaFloatAnim 2.8s ease-in-out infinite;
}

.aroma-swirl.a2 {
  animation: aromaFloatAnim 2.8s ease-in-out infinite 1.4s;
}

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

.floating-sweet-icon {
  animation: sweetFloatBob 2.2s ease-in-out infinite alternate;
}

.floating-sweet-icon.s2 {
  animation-delay: 1.1s;
}

.mithai-pill-tag {
  transition: transform 0.25s ease;
}

.mithai-character:hover .mithai-pill-tag {
  transform: translate(368px, 165px) scale(1.05);
}

/* Flame Animations */
.flicker-flame-anim {
  animation: flameFlicker 1.4s ease-in-out infinite alternate;
  transform-origin: 250px 180px;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-1.5deg); }
  50% { transform: scale(1.04, 1.08) rotate(1.8deg); }
  100% { transform: scale(0.98, 1.02) rotate(-0.8deg); }
}

.flicker-core-anim {
  animation: flameCore 1.1s ease-in-out infinite alternate;
  transform-origin: 250px 150px;
}

@keyframes flameCore {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.1); opacity: 1; }
}

.floating-sparks circle {
  animation: sparkFloat 1.8s ease-in-out infinite alternate;
}
.floating-sparks circle:nth-child(2) { animation-delay: 0.4s; }
.floating-sparks circle:nth-child(3) { animation-delay: 0.8s; }
.floating-sparks circle:nth-child(4) { animation-delay: 1.2s; }

@keyframes sparkFloat {
  0% { transform: translateY(0); opacity: 0.5; }
  100% { transform: translateY(-12px); opacity: 1; }
}

/* ================= 5. ACTION DOCK: TAP PROMPT & PASSCODE KEYPAD ================= */
.action-dock-container {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 50;
}

/* State A: Tap Hint Pill (Before Awakening) */
.tap-hint-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffffff, #fff5f7);
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #ffccd5;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.16), 0 0 0 3px rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--rose-bright);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulsePillGlow 2.5s ease-in-out infinite;
}

.tap-hint-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.25), 0 0 0 5px rgba(255, 255, 255, 0.9);
}

.tap-sparkle, .altar-sparkle {
  font-size: 16px;
  animation: gentleTwinkle 1.8s ease-in-out infinite;
}

/* State B: 3-Second Ignition Status Pill */
.lighting-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 11px 24px;
  border-radius: 999px;
  border: 1.5px solid #ffb703;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.3);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #b78103;
  animation: pulseLightingStatus 1s infinite alternate;
}

.ember-spin {
  display: inline-block;
  animation: softBob 1.2s infinite alternate;
}

.sparkle-grow {
  display: inline-block;
  animation: softTwinkle 1s infinite alternate;
}

@keyframes pulseLightingStatus {
  0% { transform: scale(0.98); box-shadow: 0 4px 14px rgba(255, 183, 3, 0.25); }
  100% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(255, 183, 3, 0.45); }
}

/* State C: Re-open Keypad Action Pill (Visible after Diyo is Awake) */
.awake-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff, #fff5f7);
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid #ff80ab;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--rose-bright);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulsePillGlow 2.2s ease-in-out infinite;
}

.awake-action-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.28);
}

.key-icon {
  font-size: 16px;
}

.arrow-sparkle {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.awake-action-pill:hover .arrow-sparkle {
  transform: translateX(3px);
}

@keyframes pulsePillGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 77, 109, 0.16), 0 0 0 3px rgba(255, 255, 255, 0.8); }
  50% { box-shadow: 0 10px 28px rgba(255, 77, 109, 0.28), 0 0 0 5px rgba(255, 204, 213, 0.5); }
}

/* ================= 3-SECOND SMOOTH DIYO LIGHTING SEQUENCE ================= */
.diyo-lighting-sequence #diyoSleepEmber {
  animation: emberHeatup3s 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes emberHeatup3s {
  0% {
    r: 5px;
    fill: #ffb703;
    filter: drop-shadow(0 0 6px #fb8500);
  }
  30% {
    r: 10px;
    fill: #ffe066;
    filter: drop-shadow(0 0 18px #ff4d6d);
  }
  60% {
    r: 15px;
    fill: #ffffff;
    filter: drop-shadow(0 0 28px #ffb703);
  }
  85% {
    r: 10px;
    fill: #ffffff;
    filter: drop-shadow(0 0 20px #fb8500);
    opacity: 0.8;
  }
  100% {
    r: 2px;
    opacity: 0;
  }
}

.diyo-lighting-sequence #diyoAwakeFlame {
  display: block !important;
  transform-origin: 250px 180px;
  animation: flameIgnite3s 3.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flameIgnite3s {
  0% {
    transform: scale(0.04) translateY(65px);
    opacity: 0;
    filter: blur(4px) drop-shadow(0 0 4px #ff9e00);
  }
  20% {
    transform: scale(0.18) translateY(45px);
    opacity: 0.35;
    filter: blur(2px) drop-shadow(0 0 10px #fb8500);
  }
  45% {
    transform: scale(0.48) translateY(26px);
    opacity: 0.75;
    filter: drop-shadow(0 0 18px #ffb703);
  }
  70% {
    transform: scale(0.8) translateY(10px);
    opacity: 0.92;
    filter: drop-shadow(0 0 26px #ffb703);
  }
  90% {
    transform: scale(1.05) translateY(-4px);
    opacity: 1;
    filter: drop-shadow(0 0 32px #ffb703);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(255, 183, 3, 0.45));
  }
}

.diyo-lighting-sequence .diyo-character {
  animation: diyoBodyGlow3s 3.0s ease-in-out forwards;
}

@keyframes diyoBodyGlow3s {
  0% { filter: drop-shadow(0 0 0 transparent); }
  40% { filter: drop-shadow(0 0 14px rgba(255, 183, 3, 0.35)); }
  100% { filter: drop-shadow(0 0 24px rgba(255, 183, 3, 0.55)); }
}

/* ================= SECRET PASSCODE KEYPAD MODAL OVERLAY ================= */
.keypad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 6, 16, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.keypad-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Popup Card (Mobile First) */
.secret-keypad-card.modal-popup {
  display: block;
  width: 100%;
  max-width: 375px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid #ffccd5;
  border-radius: 28px;
  padding: 22px 18px 16px;
  box-shadow: 0 24px 60px rgba(180, 20, 60, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.9);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.keypad-modal-overlay.active .secret-keypad-card.modal-popup {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffccd5;
  background: #fff0f3;
  color: #8c4a5c;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #ff4d6d;
  color: #ffffff;
  border-color: #ff4d6d;
  transform: rotate(90deg);
}

.keypad-title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--maroon-title);
  text-align: center;
  padding-right: 28px;
}

.lock-mini-icon {
  font-size: 15px;
}

.keypad-hint-text {
  font-size: 13px;
  font-weight: 600;
  color: #8c4a5c;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Contact Aryan Box when clicking Don't know your code */
.contact-aryan-box {
  margin-top: 12px;
  background: #fff5f7;
  border: 1.5px solid #ffccd5;
  border-radius: 18px;
  padding: 12px 14px;
  text-align: center;
  animation: slideDownFade 0.3s ease;
}

@keyframes slideDownFade {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.contact-box-header {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--maroon-title);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 3px;
}

.contact-box-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #7a3e4d;
  margin-bottom: 8px;
}

.insta-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(253, 29, 29, 0.3);
  transition: all 0.22s ease;
}

.insta-chip-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(253, 29, 29, 0.45);
}

.insta-logo-glyph {
  font-size: 14px;
}

.insta-arrow-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.insta-chip-btn:hover .insta-arrow-icon {
  transform: translateX(3px);
}

/* 5 PIN Dots Display */
.pin-display-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pin-bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff0f3;
  border: 2px solid #ffb3c6;
  box-shadow: inset 0 2px 4px rgba(200, 50, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-bubble.filled {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  border-color: #ffe066;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.75);
  transform: scale(1.15);
}

.pin-bubble.filled::after {
  content: "★";
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.pin-display-row.shake {
  animation: shakeKeypad 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeKeypad {
  10%, 90% { transform: translateX(-4px); }
  20%, 80% { transform: translateX(6px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(4px); }
}

.pin-error-toast {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffe3e3;
  border: 1px solid #ffa8a8;
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #c92a2a;
  text-align: center;
}

.pin-error-toast.visible {
  display: flex;
}

/* Numeric Keypad Grid */
.numeric-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.key-btn {
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  border-radius: 16px;
  padding: 11px 0;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--maroon-title);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(200, 60, 90, 0.07);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.key-btn:hover {
  background: #fff5f7;
  border-color: #ff80ab;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(200, 60, 90, 0.14);
}

.key-btn:active {
  transform: translateY(2px) scale(0.96);
  background: #ffe5ec;
}

.key-btn.key-clear {
  color: #d90429;
  font-size: 16px;
}

.key-btn.key-backspace {
  font-size: 17px;
  color: #6a040f;
}

.keypad-footer-helper {
  margin-top: 10px;
  text-align: center;
}

.hint-link-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #c2185b;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hint-link-btn:hover {
  opacity: 1;
}

/* ================= 6. STAGE 2: UNLOCKED STORYBOOK PORTAL ================= */
.portal-container {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 52px 10px 60px;
  position: relative;
  z-index: 30;
}

.portal-container.active {
  display: flex;
  animation: fadeInPortal 0.5s ease forwards;
}

@keyframes fadeInPortal {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Single Unified Sticky Portal Header (No double bar!) */
.portal-sticky-nav {
  position: sticky;
  top: 8px;
  z-index: 60;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 10px 16px;
  border: 1.5px solid #ffccd5;
  box-shadow: 0 8px 24px rgba(180, 50, 80, 0.09);
}

.chapter-stepper-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 7px;
  margin-bottom: 10px;
}

.step-segment {
  flex: 1;
  height: 100%;
  background: #ffe3e8;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.step-segment:hover {
  transform: scaleY(1.3);
}

.step-segment .fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff758f, #ffb703);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.step-segment.active .fill {
  width: 100%;
}

.portal-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recipient-tag-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--maroon-title);
}

.r-avatar {
  font-size: 17px;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-music-btn-small {
  background: #fff0f3;
  border: 1px solid #ffccd5;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-music-btn-small:hover {
  transform: scale(1.08);
}

.pill-lock-btn {
  background: #fff0f3;
  border: 1px solid #ffccd5;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--maroon-deep);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-lock-btn:hover {
  background: #ffe0e6;
  transform: scale(1.05);
}

/* Slides Carousel Pages */
.slides-carousel-track {
  position: relative;
  width: 100%;
}

.story-slide-page {
  display: none;
  width: 100%;
  animation: slideFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.story-slide-page.active {
  display: block;
}

@keyframes slideFadeIn {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.slide-inner-box {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border: 2px solid #ffccd5;
  border-radius: 26px;
  padding: 26px 20px 24px;
  box-shadow: 0 14px 40px rgba(180, 50, 80, 0.09), 0 0 35px rgba(255, 183, 3, 0.05);
  text-align: center;
  position: relative;
}

.chapter-chip-badge {
  display: inline-block;
  background: #fff0f3;
  border: 1px solid #ffb3c6;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--rose-bright);
  margin-bottom: 10px;
}

.slide-main-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.8vw, 30px);
  font-weight: 800;
  color: var(--maroon-title);
  line-height: 1.25;
  margin-bottom: 8px;
}

.slide-main-desc {
  font-size: 14.5px;
  font-weight: 600;
  color: #7a3e4d;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 18px;
}

/* ================= CHAPTER 1: MYSTERY GIFT BOX UNBOXING (REPLACED DUPLICATE DIYA) ================= */
.interactive-gift-altar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px auto 16px;
  cursor: pointer;
  outline: none;
  width: 100%;
  max-width: 360px;
}

.festive-unboxing-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-closed-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gift-box-visual {
  position: relative;
  width: 180px;
  height: 155px;
  margin: 6px auto 10px;
  filter: drop-shadow(0 14px 28px rgba(220, 60, 90, 0.2));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.interactive-gift-altar:hover .gift-box-visual {
  transform: translateY(-4px) scale(1.04);
}

/* Gift Box Body */
.gift-box-body {
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 150px;
  height: 105px;
  background: linear-gradient(135deg, #ff9ebb, #ff6b8b);
  border: 2px solid #ea5275;
  border-radius: 14px;
  box-shadow: inset 0 -6px 14px rgba(180, 20, 50, 0.2);
  overflow: hidden;
}

.body-ribbon-vertical {
  position: absolute;
  top: 0;
  left: 62px;
  width: 26px;
  height: 100%;
  background: linear-gradient(180deg, #fff3b0 0%, #ffc300 50%, #e38b00 100%);
  border-left: 1px solid #d48b00;
  border-right: 1px solid #d48b00;
  box-shadow: 0 0 8px rgba(255, 195, 0, 0.4);
}

.body-ribbon-horizontal {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 22px;
  background: linear-gradient(90deg, #e38b00 0%, #ffc300 50%, #fff3b0 100%);
  border-top: 1px solid #d48b00;
  border-bottom: 1px solid #d48b00;
}

/* Gift Box Lid */
.gift-box-lid {
  position: absolute;
  top: 24px;
  left: 5px;
  width: 170px;
  height: 32px;
  background: linear-gradient(135deg, #ffcad4, #ff8fab);
  border: 2px solid #ea5275;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(180, 20, 50, 0.15);
  z-index: 5;
}

.lid-ribbon-horizontal {
  position: absolute;
  top: 0;
  left: 72px;
  width: 26px;
  height: 100%;
  background: linear-gradient(180deg, #fff3b0 0%, #ffc300 100%);
  border-left: 1px solid #d48b00;
  border-right: 1px solid #d48b00;
}

/* Giant Satin Bow on Top */
.lid-bow-wrap {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.satin-bow-center {
  font-size: 38px;
  filter: drop-shadow(0 4px 10px rgba(212, 139, 0, 0.45));
  animation: bowGentlyPulse 2.2s ease-in-out infinite alternate;
}

@keyframes bowGentlyPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08) rotate(3deg); }
}

.gift-tag-dangle {
  position: absolute;
  bottom: 12px;
  right: 10px;
  background: #ffffff;
  border: 1px solid #ffccd5;
  border-radius: 8px;
  padding: 3px 8px;
  font-family: var(--font-hand);
  font-size: 15px;
  font-weight: 700;
  color: var(--maroon-title);
  transform: rotate(-8deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gift-tap-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff, #fff5f7);
  border: 1.5px solid #ff80ab;
  border-radius: 999px;
  padding: 9px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--rose-bright);
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.18);
  animation: pulsePillGlow 2s ease-in-out infinite;
}

/* ================= CHAPTER 1: SPECIAL TRAITS & HIGHLIGHT CARDS ================= */
.special-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  margin: 14px 0 16px;
  text-align: left;
}

.special-card {
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  border-radius: 20px;
  padding: 13px 15px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(200, 50, 80, 0.06);
  position: relative;
  user-select: none;
}

.special-card:hover {
  transform: translateY(-2px);
  border-color: #ff80ab;
  box-shadow: 0 8px 20px rgba(200, 50, 80, 0.12);
}

.special-card.revealed {
  background: linear-gradient(135deg, #ffffff, #fffaf6);
  border-color: #ffb703;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.15), 0 2px 8px rgba(200, 50, 80, 0.06);
}

.special-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.special-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0f3, #ffe5ec);
  border: 1px solid #ffccd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.special-card.revealed .special-card-icon {
  background: linear-gradient(135deg, #fff5eb, #ffe3d1);
  border-color: #ffb703;
  transform: scale(1.06);
}

.special-card-title-group {
  flex: 1;
  min-width: 0;
}

.special-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--maroon-title);
  line-height: 1.25;
}

.special-card-preview {
  font-size: 11.5px;
  font-weight: 600;
  color: #8c4a5c;
  margin-top: 2px;
}

.special-card-action-pill {
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  background: #fff0f3;
  color: #ff4d6d;
  border: 1px solid #ff80ab;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.special-card.revealed .special-card-action-pill {
  background: #fdf2f8;
  color: #c2185b;
  border-color: #f472b6;
}

/* Expanded Content Body */
.special-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}

.special-card.revealed .special-card-body {
  max-height: 220px;
  opacity: 1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ffd1dc;
}

.special-card-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #4a1525;
  line-height: 1.55;
}

.special-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff0f3;
  color: #d81b60;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

/* Status Pill */
.special-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff5eb;
  border: 1px solid #ffb703;
  border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: #b78103;
  margin: 4px auto 14px;
}

.item-tile-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  background: #fff0f3;
  color: #ff4d6d;
  border: 1px solid #ff80ab;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hamper-item-tile.claimed .item-tile-pill {
  background: #22c55e;
  color: #ffffff;
  border-color: #16a34a;
}

.hamper-status-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff5eb;
  border: 1px solid #ffb703;
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: #b78103;
}

.slide-nav-slot {
  margin-top: 14px;
  text-align: center;
}

.primary-step-btn {
  background: linear-gradient(135deg, #ff4d6d, #c2185b);
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.32);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.primary-step-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(255, 77, 109, 0.42);
}

.primary-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ================= 7. CHAPTER 2: ROYAL ENVELOPE & PARCHMENT LETTER ================= */
.royal-envelope-wrapper {
  margin: 6px auto 20px;
  max-width: 440px;
}

.envelope-card-front {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid #fed7aa;
  border-radius: 22px;
  padding: 28px 18px 24px;
  box-shadow: 0 12px 30px rgba(180, 80, 20, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.envelope-postmark {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  color: #c2410c;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.envelope-wax-seal {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  background: radial-gradient(circle, #d90429 0%, #9b0024 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(155, 0, 36, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  border: 2.5px solid #ff80ab;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.envelope-wax-seal:hover {
  transform: scale(1.1) rotate(6deg);
}

.seal-icon {
  font-size: 30px;
}

.envelope-to-label {
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--maroon-title);
  margin-bottom: 16px;
}

.open-envelope-btn {
  background: linear-gradient(135deg, #ff4d6d, #c2185b);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
  transition: all 0.22s ease;
}

.open-envelope-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.parchment-letter-card {
  background: #fffcf7;
  border: 2px solid #f2dbcb;
  border-radius: 20px;
  padding: 24px 22px 20px;
  text-align: left;
  box-shadow: inset 0 0 35px rgba(245, 220, 195, 0.35), 0 8px 22px rgba(150, 70, 30, 0.08);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  animation: slideFadeIn 0.45s ease;
}

.parchment-letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(45deg, #ff758f, #ff758f 12px, #ffb703 12px, #ffb703 24px, #ffffff 24px, #ffffff 36px);
}

.letter-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px dashed #f0c9b0;
  padding-bottom: 8px;
}

.letter-postmark {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #b56576;
  letter-spacing: 1px;
}

.letter-wax-seal {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(180, 50, 20, 0.2));
}

.letter-greeting {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon-title);
  margin-bottom: 10px;
}

.letter-body-paragraphs p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #590d22;
  line-height: 1.6;
  margin-bottom: 12px;
}

.letter-signature-block {
  margin-top: 14px;
  border-top: 1px dashed #f0c9b0;
  padding-top: 10px;
  text-align: right;
}

.sig-note {
  font-size: 13px;
  font-weight: 600;
  color: #8c4a5c;
}

.sig-name {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon-title);
}

/* ================= 8. CHAPTER 3: INTERACTIVE MOMENTS ================= */
.kitten-cheer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px auto 18px;
}

.speech-bubble {
  background: #ffffff;
  border: 2px solid #ffccd5;
  border-radius: 18px;
  padding: 7px 16px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--maroon-title);
  box-shadow: 0 4px 12px rgba(220, 80, 110, 0.1);
  margin-bottom: 10px;
  position: relative;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px 8px 0;
  border-style: solid;
  border-color: #ffffff transparent;
  display: block;
  width: 0;
}

.kitten-interactive-svg-wrap {
  cursor: pointer;
  filter: drop-shadow(0 6px 16px rgba(180, 50, 70, 0.12));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kitten-interactive-svg-wrap:hover {
  transform: scale(1.06);
}

.teardrop-anim {
  animation: dropTears 1.5s ease-in-out infinite;
}

@keyframes dropTears {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.kitten-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.cheer-choice-pill {
  background: #ffffff;
  border: 1.5px solid #ff80ab;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--rose-bright);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 128, 171, 0.16);
  transition: all 0.2s ease;
}

.cheer-choice-pill:hover {
  background: #fff0f3;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(255, 128, 171, 0.26);
}

.kitten-joy-meter-wrap {
  width: 100%;
  max-width: 300px;
  height: 20px;
  background: #ffe3e8;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffb3c6;
}

.joy-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff758f, #ffb703);
  transition: width 0.4s ease;
}

.joy-meter-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--maroon-deep);
}

/* Aira's Fortune Section */
.fortune-cards-section {
  width: 100%;
  margin-bottom: 20px;
}

.fortune-counter-bar {
  background: #fff0f3;
  border: 1px solid #ffccd5;
  border-radius: 999px;
  padding: 5px 16px;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--rose-bright);
  margin-bottom: 14px;
}

.fortune-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.flip-card-unit {
  perspective: 1000px;
  height: 135px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

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

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-front {
  background: linear-gradient(135deg, #fff5f7, #ffffff);
  border: 2px solid #ffccd5;
  box-shadow: 0 5px 14px rgba(200, 60, 90, 0.08);
}

.card-front .card-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.card-front .card-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--maroon-title);
}

.card-front .card-prompt {
  font-size: 10.5px;
  font-weight: 700;
  color: #c2185b;
  margin-top: 3px;
}

.card-back {
  background: linear-gradient(135deg, #fff0f3, #ffe3e8);
  border: 2px solid #ff80ab;
  color: var(--maroon-deep);
  transform: rotateY(180deg);
  box-shadow: 0 6px 18px rgba(255, 128, 171, 0.2);
}

.card-back .fortune-text {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--maroon-title);
}

/* Aryan's Developer Hub */
.developer-preview-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.dev-soundboard-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--maroon-title);
  text-align: left;
}

.dev-soundboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sound-btn {
  background: #ffffff;
  border: 1px solid #ffccd5;
  border-radius: 12px;
  padding: 8px 6px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--maroon-deep);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-btn:hover {
  background: #fff0f3;
  border-color: #ff80ab;
}

.dev-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dev-btn {
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  border-radius: 14px;
  padding: 11px 12px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--maroon-title);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-btn:hover {
  background: #fff0f3;
  border-color: #ff80ab;
  transform: translateY(-2px);
}

/* ================= 9. CHAPTER 4: SPECIAL VOUCHERS ================= */
.vouchers-stack-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.voucher-card {
  background: #ffffff;
  border: 2px dashed #ffb3c6;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(200, 60, 90, 0.06);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.voucher-card:hover {
  border-color: #ff4d6d;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(200, 60, 90, 0.12);
}

.voucher-card.claimed {
  background: #fff8f8;
  border-style: solid;
  border-color: #38b2ac;
}

.voucher-info {
  flex: 1;
  padding-right: 12px;
}

.voucher-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--maroon-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.voucher-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #7a3e4d;
  margin-top: 3px;
  line-height: 1.4;
}

.voucher-stamp-btn {
  background: #fff0f3;
  border: 1.5px solid #ff80ab;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--rose-bright);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.voucher-card.claimed .voucher-stamp-btn {
  background: #e6fffa;
  border-color: #38b2ac;
  color: #234e52;
  transform: rotate(-3deg);
}

/* ================= 10. CHAPTER 5: GRAND FIREWORKS FINALE ================= */
.finale-wishes-card {
  background: linear-gradient(135deg, #fff9f5, #fff0f3);
  border: 2px solid #ffccd5;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(200, 60, 90, 0.08);
}

.finale-wishes-text {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--maroon-title);
  line-height: 1.6;
  margin-bottom: 10px;
}

.finale-floating-icons {
  font-size: 24px;
  letter-spacing: 8px;
}

.firework-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 12px;
}

.palette-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #8c4a5c;
}

.color-dot-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-dot-btn.active {
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.8);
}

.fireworks-tap-pad {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px dashed #ffb703;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #b78103;
  cursor: pointer;
  animation: pulsePillGlow 2.5s infinite;
}

.finale-actions-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.whatsapp-btn-glow {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.whatsapp-btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42);
}

.copy-message-btn {
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--maroon-title);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(200, 60, 90, 0.08);
  transition: all 0.2s ease;
}

.copy-message-btn:hover {
  background: #fff0f3;
  border-color: #ff80ab;
}

.secondary-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.subtle-btn {
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon-title);
  cursor: pointer;
  transition: all 0.2s ease;
}

.subtle-btn:hover {
  background: #fff0f3;
  border-color: #ff80ab;
}

/* ================= 11. MOBILE ADAPTATIONS ================= */
@media (max-width: 600px) {
  .toran-garland-wrap {
    height: 70px;
  }
  .top-nav-bar {
    padding: 38px 10px 6px;
  }
  .nav-pill-chips {
    padding: 4px 8px;
    gap: 5px;
  }
  .festive-badge {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .pill-music-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .welcome-heading {
    font-size: 22px;
  }
  .welcome-subtitle {
    font-size: 13px;
  }
  .tap-hint-pill {
    padding: 10px 20px;
    font-size: 15px;
  }
  .slide-inner-box {
    padding: 18px 14px;
    border-radius: 22px;
  }
  .parchment-letter-card {
    padding: 18px 14px 16px;
  }
  .fortune-cards-grid {
    grid-template-columns: 1fr;
  }
  .flip-card-unit {
    height: 105px;
  }
  .kitten-options-row {
    flex-direction: column;
    width: 100%;
  }
  .cheer-choice-pill {
    width: 100%;
  }
  .darkness-whisper-title {
    font-size: 20px;
  }
  .darkness-whisper-sub {
    font-size: 13px;
    padding: 0 16px;
  }
  body.diwali-night-mode .tap-hint-pill.btn-ignite-dark {
    padding: 14px 28px !important;
    font-size: 16px !important;
  }
}


/* ================= FESTIVE PHOTO UPLOAD MODAL ================= */
.photo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 4, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.photo-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(175deg, #fffaf5 0%, #fff0f3 100%);
  border-radius: 26px;
  border: 2px solid rgba(255, 183, 3, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  padding: 24px 20px;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.photo-modal-overlay.active .photo-modal-card {
  transform: translateY(0) scale(1);
}

.photo-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.photo-modal-title {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 800;
  color: #800f2f;
  margin: 0;
}

.photo-sparkle-icon {
  font-size: 20px;
}

.photo-modal-desc {
  font-size: 13.5px;
  color: #590d22;
  line-height: 1.45;
  margin: 0 0 16px;
}

/* Privacy Assurance Box */
.photo-privacy-box {
  background: rgba(46, 125, 50, 0.08);
  border: 1.5px solid rgba(46, 125, 50, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.privacy-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #1b5e20;
  margin-bottom: 4px;
}

.shield-icon {
  font-size: 15px;
}

.privacy-note {
  font-size: 11.5px;
  color: #2e7d32;
  line-height: 1.45;
  margin: 0;
}

/* Photo Picker & Dropzone */
.photo-picker-stage {
  margin-bottom: 18px;
}

.photo-empty-dropzone {
  border: 2px dashed #ffb703;
  border-radius: 20px;
  background: rgba(255, 183, 3, 0.08);
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.photo-empty-dropzone:active,
.photo-empty-dropzone:hover {
  background: rgba(255, 183, 3, 0.16);
  border-color: #fb8500;
  transform: scale(0.98);
}

.camera-lens-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.dropzone-prompt {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
  color: #800f2f;
}

.dropzone-sub {
  font-size: 12px;
  color: #8a1434;
  margin-top: 4px;
}

/* Selected Preview */
.photo-selected-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.festive-polaroid-frame {
  background: #ffffff;
  padding: 10px 10px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(181, 23, 158, 0.18);
  position: relative;
  max-width: 200px;
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.preview-img-tag {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.polaroid-sparkle-pin {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.change-photo-btn {
  background: #fff0f3;
  border: 1.5px solid #ffccd5;
  color: #a4133c;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.change-photo-btn:hover,
.change-photo-btn:active {
  background: #ffe3e8;
  border-color: #ff758f;
}

/* Photo Modal Actions */
.photo-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skip-photo-btn {
  background: transparent;
  border: none;
  color: #8a1434;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.skip-photo-btn:hover,
.skip-photo-btn:active {
  background: rgba(138, 20, 52, 0.08);
  color: #590d22;
}

/* ================= CHAPTER 1: GOLDEN SCRATCH CARD ================= */
.scratch-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 330px;
  height: 250px;
  margin: 16px auto 10px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(138, 20, 52, 0.16);
  border: 3px solid #ffb703;
  background: #fff8f0;
  user-select: none;
}

.scratch-underneath-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  text-align: center;
  background: linear-gradient(135deg, #fffaf5 0%, #ffeef2 100%);
  gap: 6px;
}

.scratch-reward-badge {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #8c250e;
  background: #ffe066;
  padding: 3px 12px;
  border-radius: 16px;
  border: 1px solid #ffb703;
}

.scratch-user-photo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2.5px solid #ffb703;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff0f3;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.scratch-photo-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scratch-user-avatar {
  font-size: 30px;
}

.scratch-card-recipient {
  font-family: 'Baloo 2', cursive;
  font-size: 17px;
  font-weight: 800;
  color: #800f2f;
  margin: 0;
  line-height: 1.25;
}

.scratch-card-quote {
  font-size: 12px;
  font-style: italic;
  color: #590d22;
  line-height: 1.4;
  margin: 0;
  padding: 0 8px;
}

.scratch-stars-row {
  font-size: 13px;
  letter-spacing: 2px;
}

.scratch-stamp-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.1);
  padding: 2px 10px;
  border-radius: 10px;
}

.scratch-top-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.5s ease;
}

.scratch-progress-bar-wrap {
  width: 100%;
  max-width: 250px;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  margin: 10px auto 4px;
  overflow: hidden;
}

.scratch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb703, #ff4d6d);
  border-radius: 10px;
  transition: width 0.2s ease;
}

.scratch-hint-text {
  font-size: 12px;
  color: #8a1434;
  font-weight: 600;
  margin: 4px 0 14px;
}

/* ================= CHAPTER 2: MAGIC SPARKLER ================= */
.sparkler-canvas-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 250px;
  margin: 14px auto 10px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1c0828 0%, #0a0210 100%);
  border: 2px solid rgba(255, 183, 3, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.sparkler-live-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.sparkler-touch-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 20px;
  color: #ffe066;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 224, 102, 0.35);
  pointer-events: none;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}

.sparkler-magic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px auto 16px;
  max-width: 340px;
}

.spark-preset-btn {
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  color: #800f2f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.spark-preset-btn:hover,
.spark-preset-btn:active {
  background: #fff0f3;
  border-color: #ffb703;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.25);
}

.spark-preset-btn.clear {
  background: #fff5f5;
  color: #c9184a;
  border-color: #ffccd5;
}

/* ================= CHAPTER 6: FINALE PHOTO KEEPSAKE ================= */
.finale-photo-keepsake-frame {
  max-width: 300px;
  margin: 16px auto 18px;
  background: linear-gradient(150deg, #ffffff 0%, #fff7f2 100%);
  border: 2.5px solid #ffb703;
  border-radius: 26px;
  padding: 16px 14px 18px;
  box-shadow: 0 12px 36px rgba(181, 23, 158, 0.16);
  position: relative;
  text-align: center;
}

.keepsake-frame-top-garland {
  font-size: 14px;
  letter-spacing: 5px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(255, 183, 3, 0.45));
}

.keepsake-photo-container {
  width: 145px;
  height: 145px;
  margin: 0 auto 12px;
  border-radius: 50%;
  position: relative;
  padding: 5px;
  background: linear-gradient(135deg, #ffb703 0%, #ff4d6d 50%, #b5179e 100%);
  box-shadow: 0 8px 26px rgba(255, 77, 109, 0.32);
}

.finale-user-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  display: block;
}

.finale-user-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff0f3;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
}

.keepsake-sparkle-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff758f, #ffb703);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
  letter-spacing: 0.3px;
  border: 1px solid #ffffff;
}

.keepsake-frame-name-tag {
  font-family: 'Baloo 2', cursive;
  font-size: 19px;
  font-weight: 800;
  color: #800f2f;
  margin-top: 10px;
}

.keepsake-edit-photo-btn {
  margin-top: 8px;
  background: #fff0f3;
  border: 1.5px solid #ffccd5;
  color: #a4133c;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.keepsake-edit-photo-btn:hover,
.keepsake-edit-photo-btn:active {
  background: #ffe3e8;
  border-color: #ff758f;
  transform: translateY(-1px);
}


/* ================= NEHA'S DIWALI MITHAI & FEAST PLATTER ================= */
.neha-feast-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diwali-thali-card {
  background: linear-gradient(150deg, #ffffff 0%, #fff8f2 100%);
  border: 2px solid #ffb703;
  border-radius: 22px;
  padding: 16px 14px;
  box-shadow: 0 8px 24px rgba(181, 23, 158, 0.12);
  text-align: center;
  position: relative;
}

.thali-garland-rim {
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(255, 183, 3, 0.4));
}

.thali-card-title {
  font-family: 'Baloo 2', cursive;
  font-size: 19px;
  font-weight: 800;
  color: #800f2f;
  margin: 0 0 10px;
}

/* The Grand Golden Brass Thali Plate */
.golden-brass-thali {
  min-height: 110px;
  background: radial-gradient(ellipse at center, #fff9e6 0%, #fae19c 60%, #e0a92d 100%);
  border: 3.5px double #b57a12;
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(212, 139, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.thali-empty-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.thali-empty-icon {
  font-size: 26px;
}

.thali-empty-notice p {
  font-size: 12.5px;
  color: #8c250e;
  font-weight: 600;
  margin: 0;
  max-width: 250px;
}

/* Plated Sweets Grid Inside Thali */
.thali-plated-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.plated-sweet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #ffb703;
  padding: 5px 12px 5px 6px;
  border-radius: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  animation: sweetPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sweetPopIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.plated-sweet-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffb703;
}

.plated-sweet-name {
  font-family: 'Baloo 2', cursive;
  font-size: 13px;
  font-weight: 700;
  color: #800f2f;
  white-space: nowrap;
}

/* Guilt-Free Calorie / Happiness Meter */
.feast-joy-meter-wrap {
  width: 100%;
  max-width: 280px;
  height: 22px;
  background: #ffe3e8;
  border-radius: 12px;
  margin: 12px auto 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 183, 3, 0.4);
}

.feast-joy-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffb703 0%, #ff4d6d 100%);
  border-radius: 12px;
  transition: width 0.35s ease;
  z-index: 1;
}

.feast-joy-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  color: #590d22;
  white-space: nowrap;
  padding: 0 8px;
}

.feast-picker-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 700;
  color: #800f2f;
  margin-top: 4px;
}

.picker-sparkle {
  color: #ffb703;
  font-size: 14px;
}

/* 4 Real Food Cards Grid */
.mithai-food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 420px) {
  .mithai-food-grid {
    grid-template-columns: 1fr;
  }
}

.mithai-food-card {
  background: #ffffff;
  border: 1.5px solid #ffcad4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(138, 20, 52, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  cursor: pointer;
  text-align: left;
}

.mithai-food-card:hover {
  border-color: #ffb703;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 183, 3, 0.22);
}

.mithai-food-card.plated {
  border-color: #2e7d32;
  background: #fbfdfb;
}

.food-img-wrapper {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #fff3f5;
}

.food-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.mithai-food-card:hover .food-real-img {
  transform: scale(1.05);
}

.food-tag-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(26, 4, 15, 0.75);
  backdrop-filter: blur(4px);
  color: #ffe066;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 224, 102, 0.4);
}

.food-card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.food-card-name {
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 800;
  color: #800f2f;
  margin: 0 0 3px;
}

.food-card-desc {
  font-size: 11px;
  color: #590d22;
  line-height: 1.35;
  margin: 0 0 10px;
  flex: 1;
}

.plate-action-btn {
  background: #fff0f3;
  border: 1.5px solid #ffccd5;
  color: #a4133c;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.mithai-food-card:hover .plate-action-btn {
  background: #ff4d6d;
  color: #ffffff;
  border-color: #ff4d6d;
}

.mithai-food-card.plated .plate-action-btn {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #81c784;
}
