/* ==========================================================================
   KARWA CHAUTH KA ASLI CHAND - PAPER CUTOUT CRAFT STYLESHEET
   ========================================================================== */

:root {
  --paper-cream-light: #fefbf4;
  --paper-cream: #f6ecdb;
  --paper-cream-dark: #e8d7be;
  --paper-shadow: rgba(66, 8, 12, 0.28);
  --paper-deep-shadow: rgba(35, 3, 5, 0.45);
  
  --crimson-dark: #470208;
  --crimson-base: #750813;
  --crimson-rich: #920f1b;
  --crimson-light: #ad1826;
  
  --gold-light: #fff3b0;
  --gold-main: #dfb141;
  --gold-dark: #a1781e;
  --gold-glow: rgba(223, 177, 65, 0.4);

  --diya-orange: #ff7700;
  --diya-glow: rgba(255, 140, 0, 0.6);
  
  --font-display: 'Rozha One', 'Cinzel Decorative', serif;
  --font-heading: 'Marcellus', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Poppins', sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --paper-beveled-edge: inset 0 2px 3px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(60, 10, 15, 0.15);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--crimson-dark);
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(180, 25, 40, 0.6) 0%, transparent 70%),
    radial-gradient(circle at 85% 85%, rgba(130, 15, 25, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #3d0207 0%, #610710 40%, #460308 100%);
  color: #3b1b1f;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Paper Grain Texture Overlay */
.paper-texture::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 248, 235, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Floating Stars in Deep Sky */
.ambient-stars {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffd782, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 140px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 80px, #ffd782, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 250px 210px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 320px 110px, #ffd782, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 80% 20%, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 70% 60%, #ffd782, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40% 80%, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.75;
  animation: starTwinkle 6s ease-in-out infinite alternate;
}

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

/* Floating Flower Petals Container */
.floating-petals-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  background: linear-gradient(135deg, #d32f2f, #ff6b6b);
  border-radius: 80% 0 80% 0;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(105vh) rotate(540deg) scale(1); opacity: 0.1; }
}

/* ==========================================================================
   TOP NAVIGATION & STATUS BAR
   ========================================================================== */

.top-nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  pointer-events: none;
}

.camera-status-pill, .nav-actions {
  pointer-events: auto;
}

.camera-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 251, 244, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px var(--paper-shadow);
  border: 1px solid var(--paper-cream-dark);
  font-size: 0.78rem;
  font-weight: 500;
  color: #4a191f;
  transition: var(--transition-smooth);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffb703;
  box-shadow: 0 0 8px #ffb703;
  transition: var(--transition-smooth);
}

.status-dot.status-requesting {
  background: #ffb703;
  animation: pulseDot 1.4s infinite;
}

.status-dot.status-granted {
  background: #2ec4b6;
  box-shadow: 0 0 10px #2ec4b6;
}

.status-dot.status-denied {
  background: #e63946;
  box-shadow: 0 0 8px #e63946;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(254, 251, 244, 0.92);
  border: 1px solid var(--paper-cream-dark);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px var(--paper-shadow);
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a191f;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ==========================================================================
   PAPER CARDS & SHARED COMPONENTS
   ========================================================================== */

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 1rem 3rem 1rem;
  position: relative;
  z-index: 5;
}

.paper-card {
  background: var(--paper-cream-light);
  border-radius: 24px;
  box-shadow: 
    0 12px 30px var(--paper-shadow),
    0 24px 60px var(--paper-deep-shadow),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(100, 20, 25, 0.12);
  border: 3px solid var(--paper-cream-dark);
  position: relative;
}

/* ==========================================================================
   SECTION 1: HERO SECTION & PAPER ARCH
   ========================================================================== */

.hero-section {
  min-height: 100vh;
}

.paper-arch-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Hanging Bells & Diyas on the sides */
.hanging-ornament {
  position: absolute;
  top: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.ornament-left { left: 14px; }
.ornament-right { right: 14px; }

.hanging-ornament .string {
  width: 2px;
  height: 60px;
  background: repeating-linear-gradient(to bottom, #d4af37, #d4af37 4px, #881320 4px, #881320 8px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hanging-ornament .paper-bell, 
.hanging-ornament .paper-diya-hanging {
  font-size: 1.3rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35));
  animation: swing 3s ease-in-out infinite alternate;
  transform-origin: top center;
}

.hanging-ornament .paper-diya-hanging {
  margin-top: 10px;
  animation-duration: 3.5s;
}

@keyframes swing {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

/* Hero Card Inner Structure */
.hero-card {
  padding: 2.5rem 1.8rem 2rem 1.8rem;
  text-align: center;
  overflow: hidden;
}

/* Cutout Paper Arch Top Header */
.arch-header {
  margin-bottom: 1.25rem;
}

.toran-garland {
  font-size: 1.1rem;
  color: #b33939;
  letter-spacing: 4px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.sub-greeting {
  display: inline-block;
  background: #fdf5e6;
  border: 1px solid var(--gold-main);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7b1113;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Paper Moon & Clouds Art */
.moon-cloud-art {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem auto;
}

.paper-moon {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 35% 35%, #fffde8 0%, #f7e096 60%, #e2be58 100%);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: 
    0 10px 25px rgba(223, 177, 65, 0.4),
    0 4px 10px rgba(0,0,0,0.15),
    inset 0 -4px 8px rgba(184, 134, 11, 0.3);
  border: 2px solid #fff5c0;
}

.moon-aura {
  position: absolute;
  top: -12px; left: -12px; right: -12px; bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 140, 0.35) 0%, transparent 70%);
  animation: moonPulse 4s ease-in-out infinite alternate;
}

@keyframes moonPulse {
  0% { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 0.9; }
}

.moon-crater {
  position: absolute;
  background: rgba(216, 173, 72, 0.25);
  border-radius: 50%;
}

.moon-crater.c1 { width: 18px; height: 18px; top: 25px; left: 30px; }
.moon-crater.c2 { width: 24px; height: 24px; top: 55px; left: 55px; }
.moon-crater.c3 { width: 12px; height: 12px; top: 35px; left: 70px; }

.paper-cloud {
  position: absolute;
  background: var(--paper-cream-light);
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  border: 1px solid #ebd9c0;
}

.cloud-left {
  width: 80px;
  height: 24px;
  bottom: 8px;
  left: -15px;
}

.cloud-left::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--paper-cream-light);
  border-radius: 50%;
  top: -14px;
  left: 18px;
}

.cloud-right {
  width: 70px;
  height: 22px;
  bottom: 18px;
  right: -10px;
}

.cloud-right::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--paper-cream-light);
  border-radius: 50%;
  top: -12px;
  left: 20px;
}

/* Hero Typography */
.hero-question {
  font-family: var(--font-display);
  font-size: 2.15rem;
  line-height: 1.25;
  color: var(--crimson-dark);
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-question .highlight-text {
  color: var(--crimson-rich);
  font-size: 2.4rem;
  display: inline-block;
  letter-spacing: -0.5px;
}

.hero-question .script-text {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-dark);
  display: inline-block;
  transform: rotate(-4deg);
  margin: 0 4px;
}

.hero-question .gold-gradient-text {
  font-size: 2.6rem;
  display: block;
  background: linear-gradient(135deg, #a71822 0%, #7e0c15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(120, 15, 20, 0.25));
  margin-top: 2px;
}

.hero-subtext {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: #633238;
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
}

/* Camera Hero Notice Badge (Requested: camera permission requested on hero section) */
.camera-hero-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff8eb;
  border: 1.5px dashed var(--gold-main);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 auto 1.5rem auto;
  max-width: 420px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.camera-hero-notice.permission-granted {
  border-style: solid;
  border-color: #2ec4b6;
  background: #f0fbf9;
}

.notice-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.notice-info {
  display: flex;
  flex-direction: column;
}

.notice-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: #3d0d12;
}

.notice-desc {
  font-size: 0.72rem;
  color: #6c4248;
}

.mini-cam-btn {
  background: var(--gold-main);
  color: #3b1b00;
  border: none;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: var(--transition-smooth);
}

.mini-cam-btn:hover {
  background: #f0c242;
  transform: translateY(-1px);
}

/* Buttons: Yes & No */
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.paper-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Yes Button: Royal Crimson & Gold */
.btn-yes {
  background: linear-gradient(135deg, #a6121f 0%, #750914 100%);
  color: #ffffff;
  box-shadow: 
    0 8px 20px rgba(117, 9, 20, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  border: 1.5px solid #d45d67;
}

.btn-yes:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 28px rgba(117, 9, 20, 0.5),
    0 5px 10px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #b81726 0%, #870b17 100%);
}

.btn-yes:active {
  transform: translateY(1px) scale(0.98);
}

/* No Button: Ivory Paper Cutout Style */
.btn-no {
  background: #faf4e8;
  color: #5d252b;
  border: 2px solid var(--paper-cream-dark);
  box-shadow: 
    0 4px 12px rgba(66, 8, 12, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-no:hover {
  background: #fdfaf2;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(66, 8, 12, 0.16);
  border-color: #d1bba0;
}

.btn-no:active {
  transform: translateY(1px);
}

.hint-text {
  font-size: 0.78rem;
  color: #8a585f;
  font-style: italic;
}

/* Card Bottom Trim with Glowing Diyas */
.card-bottom-trim {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #dfcbaf;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.diya-display {
  position: relative;
  font-size: 1.4rem;
}

.diya-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ff9e00 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  animation: diyaFlicker 1.8s infinite alternate ease-in-out;
}

@keyframes diyaFlicker {
  0% { transform: translateX(-50%) scale(0.85); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

.card-ornament {
  font-size: 0.85rem;
  color: var(--gold-dark);
  letter-spacing: 2px;
}

/* ==========================================================================
   PLAYFUL SASSY MODAL FOR "NO"
   ========================================================================== */

.sassy-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 2, 5, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.sassy-card {
  background: var(--paper-cream-light);
  border-radius: 20px;
  padding: 2.25rem 1.8rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 30px 70px rgba(70, 0, 10, 0.6);
  border: 3px solid #dfc39a;
  transform: scale(0.85) rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sassy-overlay.active .sassy-card {
  transform: scale(1) rotate(0deg);
  animation: playfulWiggle 0.6s ease-in-out 0.2s;
}

@keyframes playfulWiggle {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.02) rotate(-2deg); }
  50% { transform: scale(0.98) rotate(2deg); }
  75% { transform: scale(1.01) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.sassy-stamp {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #a6121f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  transform: rotate(5deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sassy-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.sassy-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--crimson-dark);
  margin-bottom: 0.75rem;
}

.sassy-quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #630c14;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.sassy-quote strong {
  color: #920f1b;
  font-size: 1.25rem;
  display: block;
  margin-top: 4px;
}

.sassy-hinglish {
  font-size: 0.88rem;
  color: #6c4046;
  margin-bottom: 1.25rem;
}

.sassy-progress-wrap {
  width: 100%;
  height: 6px;
  background: #ebd8c0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.sassy-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff7700, #a6121f);
  border-radius: 999px;
  transition: width linear;
}

.btn-force-reveal {
  background: linear-gradient(135deg, #a6121f 0%, #750914 100%);
  color: #ffffff;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.98rem;
  box-shadow: 0 6px 16px rgba(117, 9, 20, 0.4);
}

/* ==========================================================================
   SECTION 2: ANIMATED COUNTDOWN (10 TO 0)
   ========================================================================== */

.countdown-section {
  min-height: 100vh;
}

.countdown-container {
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 1.8rem;
  text-align: center;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf4e2;
  border: 1.5px solid var(--gold-main);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #740a12;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.countdown-heading {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--crimson-dark);
  margin-bottom: 0.35rem;
}

.countdown-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #7b3840;
  margin-bottom: 2rem;
  min-height: 1.6rem;
}

/* Layered Paper Cutout Clock Dial */
.countdown-clock-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-outer-ring {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 6px dashed var(--gold-main);
  box-shadow: 
    0 10px 30px var(--paper-shadow),
    inset 0 4px 8px rgba(0,0,0,0.08);
  animation: clockRotate 20s linear infinite;
}

@keyframes clockRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.clock-middle-ring {
  position: absolute;
  top: 14px; left: 14px; right: 14px; bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7e0c15 0%, #460308 100%);
  box-shadow: 
    inset 0 4px 10px rgba(0,0,0,0.5),
    0 4px 8px rgba(255, 255, 255, 0.4);
}

.clock-inner-disc {
  position: absolute;
  top: 26px; left: 26px; right: 26px; bottom: 26px;
  border-radius: 50%;
  background: var(--paper-cream-light);
  box-shadow: 
    0 6px 18px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold-light);
}

.number-display-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-digit {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #a6121f 0%, #68050e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(100, 10, 15, 0.35));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countdown-digit.pop-digit {
  animation: digitPop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes digitPop {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.25) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.clock-sparkle {
  position: absolute;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.clock-sparkle.s1 { top: -6px; left: 50%; transform: translateX(-50%); }
.clock-sparkle.s2 { bottom: -6px; left: 50%; transform: translateX(-50%); }
.clock-sparkle.s3 { left: -6px; top: 50%; transform: translateY(-50%); }
.clock-sparkle.s4 { right: -6px; top: 50%; transform: translateY(-50%); }

/* Countdown Progress Dots */
.countdown-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3ccb0;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--gold-main);
  box-shadow: 0 0 8px var(--gold-main);
  transform: scale(1.25);
}

.dot.done {
  background: #920f1b;
}

.countdown-flavor-quote {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #79434a;
  font-style: italic;
}

/* ==========================================================================
   SECTION 3: GRAND REVEAL (CAMERA MIRROR IN CUTOUT FRAME)
   ========================================================================== */

.reveal-section {
  min-height: 100vh;
  padding-bottom: 4rem;
}

.reveal-banner {
  text-align: center;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.reveal-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf5e6;
  border: 1px solid var(--gold-main);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 2px;
  color: #7b1113;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 0.6rem;
}

.reveal-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fcf1d8;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(255, 215, 130, 0.4);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.reveal-subtitle {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: #ffd782;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Master Frame Stage - matches the exact 682x1024 aspect ratio */
.frame-master-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.frame-stage {
  position: relative;
  width: min(92vw, 460px);
  aspect-ratio: 682 / 1024;
  border-radius: 20px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 30px 80px rgba(50, 0, 10, 0.7);
  overflow: hidden;
  background: #2a0306;
}

/* Camera Viewport Sitting EXACTLY behind the cutout */
/* Measured: Left: ~14%, Top: ~23%, Width: ~72%, Height: ~53.5% */
.camera-viewport {
  position: absolute;
  top: 22.8%;
  left: 13.8%;
  width: 72.4%;
  height: 53.6%;
  z-index: 1;
  overflow: hidden;
  background: #1c0507;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* Live Webcam Feed - Mirrored for authentic selfie reflection */
#webcamVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror mode! */
  transition: filter 0.3s ease;
}

/* Video Filter Presets */
#webcamVideo.filter-gold {
  filter: sepia(0.25) saturate(1.25) brightness(1.08) contrast(1.05);
}

#webcamVideo.filter-vintage {
  filter: sepia(0.5) contrast(1.15) brightness(0.95);
}

#webcamVideo.filter-rose {
  filter: saturate(1.3) hue-rotate(-15deg) brightness(1.06);
}

#webcamVideo.filter-natural {
  filter: none;
}

/* Traditional Sieve (Chhalni) Mesh Overlay */
.sieve-mesh {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image: 
    radial-gradient(circle, rgba(0, 0, 0, 0.7) 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255, 230, 140, 0.4) 1px, transparent 1.2px);
  background-size: 5px 5px, 5px 5px;
  background-position: 0 0, 2.5px 2.5px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.sieve-mesh.active {
  opacity: 0.85;
}

/* Snapshot Shutter Flash */
.photo-flash {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.1s ease-out;
}

.photo-flash.flash-active {
  opacity: 0.95;
}

/* Fallback if user has no webcam or denied */
.camera-fallback {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #46060c 0%, #240205 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: #f7e6d2;
  z-index: 3;
  display: none; /* hidden when stream active */
}

.camera-fallback.show-fallback {
  display: flex;
}

.fallback-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.fallback-msg {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.mini-btn {
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

/* Transparent Cutout PNG Layer on TOP of video */
.paper-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  object-fit: fill;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* Glowing Diya Flames overlaying frame bottom diyas */
.frame-diya-flame {
  position: absolute;
  bottom: 8.5%;
  width: 12px;
  height: 18px;
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #ffffff 0%, #ffdf00 30%, #ff6600 75%, transparent 100%);
  z-index: 5;
  filter: drop-shadow(0 0 8px #ff9900) drop-shadow(0 0 16px #ff5500);
  animation: diyaFlameWiggle 1.4s ease-in-out infinite alternate;
  pointer-events: none;
}

.frame-diya-flame.diya-left { left: 24.2%; }
.frame-diya-flame.diya-right { right: 24.2%; animation-delay: 0.4s; }

@keyframes diyaFlameWiggle {
  0% { transform: scale(0.9) skewX(-2deg); opacity: 0.85; }
  100% { transform: scale(1.15) skewX(2deg); opacity: 1; }
}

/* Reveal Controls & Keepsake Card */
.reveal-controls {
  max-width: 480px;
  width: 100%;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.controls-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--crimson-rich);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
}

.control-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.control-btn {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--paper-cream-dark);
  background: #faf4e8;
  color: #4a191f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.control-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.control-btn.primary-action {
  grid-column: span 2;
  background: linear-gradient(135deg, #a6121f 0%, #750914 100%);
  color: #ffffff;
  border: 1.5px solid #d45d67;
  padding: 13px;
  font-size: 0.98rem;
  box-shadow: 0 6px 18px rgba(117, 9, 20, 0.35);
}

.control-btn.primary-action:hover {
  background: linear-gradient(135deg, #b81726 0%, #870b17 100%);
}

.romantic-message-box {
  background: #fff8ee;
  border: 1.5px dashed var(--gold-main);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 0.5rem;
}

.box-quote {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  color: #63121b;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.share-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.share-btn {
  background: #ffffff;
  border: 1px solid #d8be9c;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #55171d;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.share-btn:hover {
  background: #fdf5e8;
  border-color: #ba8c53;
  transform: translateY(-1px);
}

/* ==========================================================================
   PHOTO DOWNLOAD MODAL
   ========================================================================== */

.photo-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 2, 5, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--paper-cream-light);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 3px solid var(--paper-cream-dark);
}

.close-modal-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: #f1ddc5;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #501319;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  background: #e2c09b;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--crimson-dark);
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: #6b3b41;
  margin-bottom: 1.25rem;
}

.snapshot-preview-wrap {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid var(--gold-main);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  margin-bottom: 1.5rem;
  background: #000;
}

#snapshotPreviewImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.download-btn {
  background: linear-gradient(135deg, #a6121f 0%, #750914 100%);
  color: #ffffff;
  flex: 1;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 0.92rem;
}

.secondary-modal-btn {
  background: #faf4e8;
  color: #4a191f;
  border: 1.5px solid var(--paper-cream-dark);
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-festive {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #ebd0ad;
  font-size: 0.88rem;
  position: relative;
  z-index: 5;
}

.footer-toran {
  letter-spacing: 6px;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold-main);
}

.footer-festive .small-sub {
  font-size: 0.74rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & DESKTOP)
   ========================================================================== */

@media (max-width: 480px) {
  .hero-card {
    padding: 2rem 1.25rem 1.5rem 1.25rem;
  }
  
  .hero-question {
    font-size: 1.85rem;
  }
  
  .hero-question .highlight-text {
    font-size: 2.1rem;
  }

  .hero-question .gold-gradient-text {
    font-size: 2.25rem;
  }

  .paper-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
  }

  .hanging-ornament {
    display: none; /* Hide hanging strings on small devices for clean viewing */
  }

  .countdown-clock-wrapper {
    width: 190px;
    height: 190px;
  }

  .countdown-digit {
    font-size: 4.2rem;
  }
}
