/* JinUtsav - Sacred Jain Spiritual Design System Tokens */
:root {
  /* Canvas & Sacred Backgrounds (Warm, Rich, Non-Stark-White) */
  --color-bg-main: #F6F0E4;              /* Sacred Sandalwood Ivory */
  --color-bg-secondary: #EFE6D5;         /* Warm Sandstone Parchment */
  --color-bg-tertiary: #E5DAC6;          /* Deep Parchment Accent */
  
  /* Card & Surface Tokens */
  --color-card-bg: #FAF5EC;              /* Warm Linen Silk */
  --color-card-bg-elevated: #FFFDF9;     /* Pristine Warm Cream */
  --color-card-border: rgba(212, 175, 55, 0.4); /* Divine Gold Border */
  --color-card-border-hover: rgba(226, 88, 34, 0.55);
  
  /* Primary Spiritual Actions */
  --color-primary-saffron: #E25822;      /* Deep Kesariya Saffron */
  --color-primary-hover: #C74513;
  --color-primary-light: #FDEEE9;
  
  /* Sacred Royal & Divine Accents */
  --color-sacred-gold: #D4AF37;          /* Divine Kalash Gold */
  --color-gold-light: #F7E7A9;
  --color-gold-dark: #A67C1E;
  --color-gold-gradient: linear-gradient(135deg, #FFF0B8 0%, #D4AF37 50%, #9E781E 100%);
  --color-saffron-gradient: linear-gradient(135deg, #FF7B39 0%, #E25822 60%, #B83606 100%);
  --color-maroon-gradient: linear-gradient(135deg, #7A1526 0%, #5C0615 60%, #3D020C 100%);
  
  /* Auspicious Temple Maroon */
  --color-royal-maroon: #5C0615;         /* Auspicious Temple Maroon */
  --color-maroon-light: #7A1526;
  --color-maroon-dark: #3D020C;
  --color-maroon-subtle: #F3E6E8;
  
  /* High-Contrast Legible Typography */
  --color-text-primary: #231F1D;         /* Warm Deep Charcoal for daylight legibility */
  --color-text-secondary: #59524D;       /* Warm Earthy Slate */
  --color-text-muted: #827870;           /* Soft Sand Charcoal */
  --color-text-inverse: #FFFDF9;         /* Warm Ivory on Dark Backgrounds */
  --color-text-gold: #9E781E;
  
  /* Status & Functional Colors */
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-warning: #ED6C02;
  --color-warning-bg: #FFF3E0;
  --color-error: #D32F2F;
  --color-error-bg: #FFEBEE;
  --color-info: #0288D1;
  --color-info-bg: #E1F5FE;

  /* Typography Families */
  --font-family-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-hindi: 'Noto Sans Devanagari', 'Yantramanav', sans-serif;
  --font-family-title-en: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-family-title-hi: 'Rozha One', 'Noto Sans Devanagari', serif;

  /* Elevation Shadows with Warm Ambiance */
  --shadow-sm: 0 2px 6px rgba(92, 6, 21, 0.05), 0 1px 3px rgba(35, 31, 29, 0.04);
  --shadow-md: 0 4px 14px rgba(92, 6, 21, 0.08), 0 2px 6px rgba(212, 175, 55, 0.12);
  --shadow-lg: 0 10px 25px rgba(92, 6, 21, 0.12), 0 4px 10px rgba(212, 175, 55, 0.18);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.35);
  --shadow-saffron: 0 4px 16px rgba(226, 88, 34, 0.35);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Spacing & Dimensions */
  --header-height: 72px;
  --bottom-nav-height: 64px;
  --max-content-width: 1240px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(226, 88, 34, 0.03) 0%, transparent 40%);
}

/* Hindi Typography Modifier */
html[lang="hi"] body {
  font-family: var(--font-family-hindi);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-title-en);
  color: var(--color-royal-maroon);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5,
html[lang="hi"] h6 {
  font-family: var(--font-family-title-hi);
  letter-spacing: 0;
  line-height: 1.35;
}

a {
  color: var(--color-primary-saffron);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-saffron);
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* JinUtsav - Component Styles & Sacred Decorative Elements */

/* Spiritual Gold Frame Card */
.sacred-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.sacred-card:hover {
  border-color: var(--color-sacred-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sacred-card-elevated {
  background: var(--color-card-bg-elevated);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow-md);
}

.sacred-card-maroon {
  background: var(--color-maroon-gradient);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-sacred-gold);
}

.sacred-card-maroon h1,
.sacred-card-maroon h2,
.sacred-card-maroon h3,
.sacred-card-maroon h4 {
  color: #FFF2B2;
}

/* Gold Corner Ornaments */
.gold-corners {
  position: relative;
}

.gold-corners::before,
.gold-corners::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-sacred-gold);
  pointer-events: none;
}

.gold-corners::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--color-sacred-gold);
  border-left: 2px solid var(--color-sacred-gold);
}

.gold-corners::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid var(--color-sacred-gold);
  border-right: 2px solid var(--color-sacred-gold);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--color-saffron-gradient);
  color: #FFFFFF;
  box-shadow: var(--shadow-saffron);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(226, 88, 34, 0.45);
  color: #FFFFFF;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--color-gold-gradient);
  color: #3D2900;
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
}

.btn-maroon {
  background: var(--color-maroon-gradient);
  color: #FFF2B2;
  border: 1px solid var(--color-sacred-gold);
}

.btn-maroon:hover {
  background: #7A1526;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-royal-maroon);
  border: 1.5px solid var(--color-royal-maroon);
}

.btn-outline:hover {
  background: var(--color-royal-maroon);
  color: #FFF2B2;
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-gold-dark);
  border: 1.5px solid var(--color-sacred-gold);
}

.btn-outline-gold:hover {
  background: var(--color-sacred-gold);
  color: #3D020C;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: rgba(92, 6, 21, 0.06);
  color: var(--color-royal-maroon);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.08rem;
  border-radius: var(--radius-lg);
}

/* Auspicious Badge */
.auspicious-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: #FDF4E5;
  color: #A65A00;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.auspicious-badge-maroon {
  background: rgba(92, 6, 21, 0.08);
  color: var(--color-royal-maroon);
  border-color: rgba(92, 6, 21, 0.25);
}

.auspicious-badge-gold {
  background: var(--color-gold-gradient);
  color: #3D2900;
  border-color: #B88E1F;
}

.auspicious-badge-saffron {
  background: var(--color-primary-light);
  color: var(--color-primary-saffron);
  border-color: rgba(226, 88, 34, 0.3);
}

/* Form Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-label .required {
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #FFFDF9;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-saffron);
  box-shadow: 0 0 0 3px rgba(226, 88, 34, 0.15);
  background: #FFFFFF;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input-error {
  border-color: var(--color-error) !important;
}

.form-error-text {
  font-size: 0.8rem;
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Sacred Section Dividers */
.sacred-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
}

.sacred-divider::before,
.sacred-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.sacred-divider-icon {
  color: var(--color-sacred-gold);
  font-size: 1.2rem;
}

/* Subtle Shimmer Overlay */
.shimmer-card {
  position: relative;
  overflow: hidden;
}

.shimmer-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 242, 178, 0.18) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(30deg);
  pointer-events: none;
  animation: shimmer 6s infinite;
}

/* Responsive Flex Utilities */
.flex-responsive {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .flex-responsive {
    flex-direction: row;
  }
}

/* JinUtsav - Animations & Sacred Micro-interactions */

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(226, 88, 34, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(226, 88, 34, 0);
  }
}

@keyframes goldAuraGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.65);
  }
}

@keyframes diyaFlicker {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 6px #FF9E00);
  }
  25% {
    opacity: 1;
    transform: scale(1.06) translateY(-1px);
    filter: drop-shadow(0 0 10px #FFB703);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.96) translateY(0.5px);
    filter: drop-shadow(0 0 5px #FB8500);
  }
  75% {
    opacity: 1;
    transform: scale(1.03) translateY(-0.5px);
    filter: drop-shadow(0 0 9px #FFD166);
  }
}

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

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse-glow {
  animation: gentlePulse 3s infinite ease-in-out;
}

.animate-gold-aura {
  animation: goldAuraGlow 4s infinite ease-in-out;
}

.animate-diya {
  animation: diyaFlicker 2.5s infinite ease-in-out;
}

.animate-float {
  animation: floatSlow 4s infinite ease-in-out;
}

.animate-slide-up {
  animation: slideUpFade 0.4s ease-out forwards;
}

/* Responsive Utilities & Media Queries */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-hide {
    display: none !important;
  }
  body {
    padding-bottom: 70px; /* Space for bottom thumb navigation */
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Print Styles for Digital Passes */
@media print {
  header, footer, nav, .mobile-bottom-nav, button {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  #digital-pass-print {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }
}

/* Animated invitation (Nimantran) — door gate, petals, day sections */

.nim-gate {
  position: fixed; inset: 0; z-index: 50;
  perspective: 1600px; cursor: pointer;
  background: radial-gradient(ellipse at 50% 45%, #c98a3a 0%, #8a2a16 52%, #4a0a0e 100%);
}
.nim-gate.open { background: transparent; pointer-events: none; }
.nim-door {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  background-color: #5c0615; background-size: cover; background-position: center;
  transition: transform 1.7s cubic-bezier(.6,.05,.3,1);
  box-shadow: inset 0 0 40px rgba(0,0,0,.45);
}
.nim-door.l { left: 0; transform-origin: left center; border-right: 2px solid #d4af37; }
.nim-door.r { right: 0; transform-origin: right center; border-left: 2px solid #d4af37; }
.nim-gate.open .nim-door.l { transform: rotateY(-108deg); }
.nim-gate.open .nim-door.r { transform: rotateY(108deg); }
.nim-seal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(78vw, 330px); text-align: center; padding: 26px 18px 22px; border-radius: 28px;
  background: radial-gradient(circle at 50% 30%, rgba(110,18,22,.96), rgba(58,8,10,.97));
  border: 2px solid #d9ac55;
  box-shadow: 0 0 0 6px rgba(40,6,6,.55), 0 0 0 8px #b98a35, 0 24px 60px rgba(0,0,0,.65);
  transition: opacity .6s;
}
.nim-gate.open .nim-seal { opacity: 0; }
.nim-tap {
  margin-top: 16px; display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #f6d684, #c18a2c); color: #4a0a0a;
  font-size: 17px; font-weight: 700; animation: nim-pulse 1.8s ease-in-out infinite;
}
@keyframes nim-pulse { 50% { transform: scale(1.06); } }
.nim-gate.gone { display: none; }

.nim-petal {
  position: fixed; top: -30px; z-index: 60; width: 14px; height: 10px;
  border-radius: 60% 0 60% 0;
  background: linear-gradient(135deg, #ffb347, #e25822);
  pointer-events: none; animation: nim-fall linear forwards;
}
@keyframes nim-fall { to { transform: translateY(110vh) rotate(540deg); } }

.nim-gold-text {
  background: linear-gradient(180deg, #fff2c0 0%, #e7bb5a 42%, #a8721c 56%, #f6d684 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,246,210,.45)) drop-shadow(0 2px 1px rgba(50,18,0,.85));
  animation: nim-shine 3.6s ease-in-out infinite;
}
@keyframes nim-shine {
  50% { filter: drop-shadow(0 1px 0 rgba(255,246,210,.6)) drop-shadow(0 2px 1px rgba(50,18,0,.85)) drop-shadow(0 0 16px rgba(255,214,120,.55)) brightness(1.18); }
}

.nim-day-img {
  width: 100%; border-radius: 16px; object-fit: cover;
  border: 2px solid #d4af37; box-shadow: 0 12px 28px rgba(0,0,0,.45);
  animation: nim-hover 7s ease-in-out infinite;
}
@keyframes nim-hover { 50% { transform: translateY(-6px); } }

.nim-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s, transform 1s; }
.nim-reveal.on { opacity: 1; transform: none; }

.nim-diya { animation: nim-flick 1.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px rgba(255,190,80,.75)); }
@keyframes nim-flick {
  0% { filter: drop-shadow(0 0 6px rgba(255,190,80,.55)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 18px rgba(255,200,90,.95)); transform: scale(1.04); }
}

/* Sticky audio bar on the invitation page: section play/pause + page-wide sound */
.nim-audio-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 999px;
  max-width: min(92vw, 420px);
  background: radial-gradient(circle at 50% 0%, rgba(122,21,23,.97), rgba(58,6,8,.98));
  border: 2px solid #e7bb5a;
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
  color: #f6d684;
}
.nim-audio-bar button {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid #e7bb5a; background: transparent; color: #f6d684;
}
.nim-audio-bar button.nim-audio-play {
  background: linear-gradient(180deg, #f6d684, #c18a2c); color: #4a0a0a; border-color: #f6d684;
}
.nim-audio-bar .nim-audio-title {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Main-poster details panels + countdown (reference: page 1 "Parichay") */
.nim-panel {
  position: relative; margin: 1.1rem auto 0; padding: 1rem; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,240,205,.10), rgba(0,0,0,.18));
  border: 1.5px solid rgba(231,187,90,.65);
  box-shadow: inset 0 1px 0 rgba(255,240,200,.3), inset 0 -2px 0 rgba(0,0,0,.3), 0 12px 24px rgba(0,0,0,.3);
  text-align: center;
}
.nim-cd { display: flex; justify-content: center; gap: 10px; margin-top: 1rem; flex-wrap: wrap; }
.nim-cd div {
  min-width: 62px; padding: 10px 6px 8px; border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0, #efd9a8);
  border: 1.5px solid #c79a45;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(140,90,20,.3), 0 6px 12px rgba(90,50,10,.25);
  color: #6a1414;
}
.nim-cd b { display: block; font-size: 26px; line-height: 1; font-weight: 800; }
.nim-cd small { font-size: 12px; }

/* ---------- Ambient per-section decoration (reference "fx" layer) ----------
   Looping particles/sheen sit behind content; all animations are `infinite`
   so they keep going after the section has been revealed. */
.nim-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.nim-in { position: relative; z-index: 2; }

/* Transparent golden sheen sweeping across the whole section */
.nim-sheen { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.nim-sheen i {
  position: absolute; top: -25%; bottom: -25%; left: -45%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 180, 0.26), transparent);
  transform: skewX(-18deg);
  animation: nim-afx-sheen 8.5s ease-in-out infinite;
}
@keyframes nim-afx-sheen {
  0%, 52% { left: -45%; }
  100% { left: 135%; }
}

/* Tiny blinking stars */
.nim-star {
  position: absolute; border-radius: 50%; background: #fff6d0;
  box-shadow: 0 0 6px #ffe9a0;
  animation: nim-afx-tw 3s ease-in-out infinite;
}
@keyframes nim-afx-tw { 50% { opacity: 0.12; transform: scale(0.45); } }

/* Falling leaves / flower petals */
.nim-drop {
  position: absolute; top: -30px; display: block;
  animation: nim-afx-fall linear infinite;
  will-change: transform;
}
.nim-drop.leaf {
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, #a6da72, #3c7a2a);
  box-shadow: 0 0 4px rgba(120, 200, 90, 0.4);
}
.nim-drop.petal {
  border-radius: 50% 0 50% 50%;
  background: radial-gradient(circle at 35% 35%, #ffe09a, #ff8a1e 70%);
  box-shadow: 0 0 5px rgba(255, 170, 60, 0.45);
}
@keyframes nim-afx-fall { to { transform: translateY(112vh) rotate(540deg); } }
@supports (height: 1svh) {
  @keyframes nim-afx-fall { to { transform: translateY(112svh) rotate(540deg); } }
}

/* Rising golden sparks */
.nim-rise {
  position: absolute; bottom: -20px; border-radius: 50%;
  background: radial-gradient(circle, #fffbe6, #ffd76a 60%, transparent 72%);
  animation: nim-afx-up linear infinite;
  will-change: transform, opacity;
}
@keyframes nim-afx-up { to { transform: translateY(-112vh); opacity: 0; } }
@supports (height: 1svh) {
  @keyframes nim-afx-up { to { transform: translateY(-112svh); opacity: 0; } }
}

/* Slow rotating golden rays */
.nim-rays {
  position: absolute; left: 50%; top: 50%; width: 180%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 240, 190, 0.16) 0deg 6deg, transparent 6deg 18deg);
  mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  animation: nim-afx-rot 46s linear infinite;
}
@keyframes nim-afx-rot { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .nim-fx, .nim-sheen { display: none !important; }
}

/* ---------- shared Panchkalyanak theme art ---------- */

/* Tiled grain texture under each themed section. The texture URL is set
   inline at runtime (see InvitationPage) so the bundler leaves the
   server URL alone. */
.nim-themed {
  background-blend-mode: multiply;
}

/* Swaying toran banner above each section */
.nim-toran {
  display: block; width: min(100%, 520px); margin: 0 auto -10px;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.35));
  animation: nim-sway 5s ease-in-out infinite; transform-origin: 50% 0;
  position: relative; z-index: 3;
}
@keyframes nim-sway {
  0%, 100% { transform: rotate(.7deg); }
  50% { transform: rotate(-.7deg); }
}

/* Inset rounded frame wrapping each day section (replaces the old arc divider).
   Not sharp-cornered — a light-gold square border with a soft radius. The two
   bells hang from its top corners and gently swing. */
.nim-day-frame {
  position: absolute; inset: 12px; z-index: 1; pointer-events: none;
  border: 1.5px solid rgba(231,187,90,.45); border-radius: 22px;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.06), inset 0 0 0 6px rgba(231,187,90,.25);
}
.nim-bell-pos { position: absolute; top: -4px; z-index: 2; }
.nim-bell-l { left: 22px; transform: translateX(-50%); }
.nim-bell-r { right: 22px; transform: translateX(50%); }
.nim-bell {
  display: block; width: clamp(26px, 8vw, 38px); height: auto;
  transform-origin: 50% 0;
  animation: nim-bell-swing 3.6s ease-in-out infinite;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,.5));
}
.nim-bell-r .nim-bell { animation-delay: -1.8s; }
@keyframes nim-bell-swing {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

/* Row of flickering diyas at the bottom of each day section */
.nim-diyas {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(8px, 6vw, 40px); margin-top: 1.5rem;
}
.nim-diyas img.nim-diya { width: clamp(26px, 8vw, 46px); height: auto; }

/* Arched golden gate frame for day paintings */
.nim-arch {
  position: relative; margin: 12px auto 18px; width: min(86vw, 400px);
  padding: 9px; border-radius: 200px 200px 22px 22px;
  background: linear-gradient(135deg, #7a4a0e, #f6dc8c 22%, #a8761e 46%, #fbe9ad 70%, #7a4e10);
  box-shadow: 0 18px 34px rgba(0,0,0,.5), inset 0 2px 2px rgba(255,255,255,.65), inset 0 -3px 3px rgba(0,0,0,.45);
  animation: nim-hover 7s ease-in-out infinite;
}
.nim-arch-win {
  position: relative; overflow: hidden;
  border-radius: 192px 192px 15px 15px; aspect-ratio: 2/3; background: #2a0608;
}
.nim-arch-art {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); animation: nim-kb 22s ease-in-out infinite alternate;
}
@keyframes nim-kb { to { transform: scale(1.12) translateY(-2%); } }
.nim-arch-win::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(80,40,0,.6), inset 0 10px 22px rgba(0,0,0,.45), inset 0 -8px 18px rgba(0,0,0,.35);
  pointer-events: none;
}

/* Sky lanes: viman + birds crossing the framed painting */
.nim-sky { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.nim-lane { position: absolute; left: 0; width: 100%; height: 0; animation: nim-lanex linear infinite; }
.nim-lane.rtl { animation-name: nim-lanexr; }
.nim-lane img {
  position: absolute; left: -70px; top: -24px; display: block;
  animation: nim-bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.4));
}
/* Mirror the sprite when its lane runs opposite its facing, using the
   independent `scale` property so it composes with the bob transform. */
.nim-lane.mirror img { scale: -1 1; }
@keyframes nim-lanex { from { transform: translateX(-12%); } to { transform: translateX(122%); } }
@keyframes nim-lanexr { from { transform: translateX(122%); } to { transform: translateX(-12%); } }
@keyframes nim-bob { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .nim-toran, .nim-arch, .nim-arch-art, .nim-lane, .nim-lane img { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nim-tap, .nim-petal, .nim-gold-text, .nim-day-img, .nim-diya, .nim-bell { animation: none !important; }
  .nim-door { transition: none; }
}

/* ---------- Reference-style invitation typography (scoped to .nim-page) ----------
   Elegant serif set from the reference invite: Tiro Devanagari Hindi for body,
   Rozha One for Devanagari display headings, Cinzel Decorative for small
   uppercase English eyebrows. */
.nim-page {
  font-family: "Tiro Devanagari Hindi", "Cormorant Garamond", serif;
}
.nim-page h1,
.nim-page h2,
.nim-page .nim-hi {
  font-family: "Rozha One", "Tiro Devanagari Hindi", serif;
  font-weight: 400;
  letter-spacing: 0;
}
.nim-page .nim-en {
  font-family: "Cinzel Decorative", serif;
  letter-spacing: .14em; text-transform: uppercase;
  font-size: 11.5px; font-weight: 700;
  color: #f3d48a; text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.nim-when { font-size: 21px; margin: 2px 0; }
.nim-where { font-size: 17px; opacity: .92; line-height: 1.5; }
.nim-desc { font-size: 18px; line-height: 1.75; margin: 0; }


/*# sourceMappingURL=main.32073543.css.map*/