/* ==========================================================================
   Vittiya Insights - Diwali greeting popup
   Loaded on every page together with js/diwali-popup.js
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');

.vi-diwali-overlay,
.vi-diwali-overlay *,
.vi-diwali-overlay *::before,
.vi-diwali-overlay *::after {
  box-sizing: border-box;
}

/* ---------- overlay ---------- */
.vi-diwali-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 6, 18, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.vi-diwali-overlay.is-open {
  opacity: 1;
}

.vi-diwali-overlay.is-closing {
  opacity: 0;
}

/* full-screen crackers behind the box */
.vi-diwali-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- box ---------- */
.vi-diwali-box {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  min-height: min(690px, 94vh);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 215, 120, 0.8);
  box-shadow:
    0 0 0 1px rgba(255, 190, 80, 0.25),
    0 0 40px rgba(255, 170, 50, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.6);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 130, 40, 0.38) 0%, rgba(255, 100, 30, 0.12) 30%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(ellipse at 50% 38%, rgba(140, 60, 180, 0.35) 0%, rgba(0, 0, 0, 0) 55%),
    radial-gradient(ellipse at 15% 20%, rgba(90, 30, 140, 0.55) 0%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(ellipse at 85% 25%, rgba(120, 30, 110, 0.5) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(180deg, #2b0f4d 0%, #1d0a3a 45%, #140626 100%);
  color: #f8ead0;
  text-align: center;
  transform: scale(0.82) translateY(24px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.25), opacity 0.45s ease;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

.vi-diwali-overlay.is-open .vi-diwali-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.vi-diwali-overlay.is-closing .vi-diwali-box {
  transform: scale(0.9) translateY(10px);
  opacity: 0;
}

/* floor / reflective surface */
.vi-diwali-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(60, 20, 80, 0) 0%, rgba(70, 25, 90, 0.45) 40%, rgba(40, 12, 60, 0.85) 100%);
  pointer-events: none;
}

.vi-diwali-floor::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 38%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 190, 90, 0) 0%, rgba(255, 190, 90, 0.35) 50%, rgba(255, 190, 90, 0) 100%);
}

/* fireworks canvas */
.vi-diwali-fireworks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- string lights ---------- */
.vi-strand {
  position: absolute;
  top: -8px;
  width: 2px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 225, 160, 0.4), rgba(255, 225, 160, 0.04));
  transform-origin: top center;
  pointer-events: none;
}

.vi-bulb {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffeeb8;
  box-shadow:
    0 0 6px 2px rgba(255, 205, 100, 0.85),
    0 0 16px 5px rgba(255, 160, 40, 0.35);
  animation: vi-twinkle 1.6s ease-in-out infinite alternate;
}

/* ---------- kandils (hanging paper lanterns) ---------- */
.vi-kandil {
  position: absolute;
  top: 0;
  width: 60px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  animation: vi-kandil-in 0.9s ease 0.5s forwards;
}

/* string from the top edge of the box down to the lantern */
.vi-kandil::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 140px;
  background: linear-gradient(180deg, rgba(243, 201, 105, 0.2), rgba(243, 201, 105, 0.85));
}

.vi-kandil-swing {
  transform-origin: 50% 0;
  animation: vi-swing 3.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 150, 50, 0.6));
}

.vi-kandil svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.vi-kandil--l1 { left: 20%; }
.vi-kandil--l2 { left: 28%; }
.vi-kandil--r1 { right: 20%; }
.vi-kandil--r2 { right: 28%; }

.vi-kandil--l1 .vi-kandil-swing { animation-duration: 3.4s; animation-delay: -1.2s; }
.vi-kandil--l2 .vi-kandil-swing { animation-duration: 4.1s; animation-delay: -0.4s; }
.vi-kandil--r1 .vi-kandil-swing { animation-duration: 3.7s; animation-delay: -2.1s; }
.vi-kandil--r2 .vi-kandil-swing { animation-duration: 4.4s; animation-delay: -3s; }

.vi-kandil-glow {
  animation: vi-kandil-glow 1.5s ease-in-out infinite alternate;
}

.vi-kandil--l2 .vi-kandil-glow,
.vi-kandil--r1 .vi-kandil-glow { animation-delay: -0.7s; }

.vi-kandil-tails {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: vi-tail-sway 2.4s ease-in-out infinite alternate;
}

.vi-kandil--l2 .vi-kandil-tails,
.vi-kandil--r2 .vi-kandil-tails { animation-duration: 2.9s; animation-delay: -1.1s; }

/* ---------- mandalas ---------- */
.vi-mandala {
  position: absolute;
  width: 360px;
  height: 360px;
  opacity: 0.38;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.45));
}

.vi-mandala svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vi-mandala--left {
  left: -135px;
  bottom: -125px;
  animation: vi-spin 90s linear infinite;
}

.vi-mandala--right {
  right: -135px;
  bottom: -125px;
  animation: vi-spin 90s linear infinite reverse;
}

/* ---------- content ---------- */
.vi-diwali-content {
  position: relative;
  z-index: 3;
  padding: 50px 28px 0;
}

.vi-diwali-brand {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #f6e4b4;
  text-shadow: 0 0 14px rgba(255, 205, 110, 0.45), 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: vi-fade-down 0.8s ease 0.25s forwards;
}

.vi-diwali-title {
  margin: 26px 0 0;
  padding: 0;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-size: clamp(2.5rem, min(9vw, 11.5vh), 6.9rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ffd97a;
  white-space: nowrap;
  filter: drop-shadow(0 0 16px rgba(255, 180, 60, 0.5)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45));
  animation: vi-title-float 3.6s ease-in-out 1.2s infinite;
}

.vi-ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(44px) rotate(-8deg) scale(0.7);
  animation: vi-ltr-in 0.75s cubic-bezier(0.2, 0.85, 0.25, 1.25) forwards;
}

.vi-ltr.vi-space {
  width: 0.32em;
}

.vi-ltr-in {
  display: inline-block;
  background: linear-gradient(100deg,
      #c98a1c 0%, #ffd97a 14%, #fff6d5 24%, #ffd97a 34%, #f2a93b 42%, #c98a1c 50%,
      #ffd97a 64%, #fff6d5 74%, #ffd97a 84%, #f2a93b 92%, #c98a1c 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform-origin: 50% 80%;
  animation: vi-shimmer 2.4s linear infinite, vi-wave 2.2s ease-in-out infinite;
}

.vi-diwali-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px auto 16px;
  opacity: 0;
  animation: vi-fade-up 0.8s ease 0.95s forwards;
}

.vi-diwali-divider::before,
.vi-diwali-divider::after {
  content: "";
  width: clamp(60px, 14vw, 150px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 210, 110, 0), rgba(255, 210, 110, 0.9));
}

.vi-diwali-divider::after {
  background: linear-gradient(90deg, rgba(255, 210, 110, 0.9), rgba(255, 210, 110, 0));
}

.vi-diwali-lotus {
  width: 46px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 200, 90, 0.7));
  animation: vi-lotus-glow 2.8s ease-in-out infinite;
}

.vi-diwali-sub {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 2.45rem);
  line-height: 1.25;
  color: #faeed6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 190, 90, 0.25);
  opacity: 0;
  animation: vi-fade-up 0.9s ease 1.1s forwards, vi-sub-float 5s ease-in-out 2s infinite;
}

.vi-diwali-wish {
  margin: 12px 0 0;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  color: #ead9bd;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: vi-fade-up 0.9s ease 1.4s forwards, vi-sub-float 5s ease-in-out 2.6s infinite reverse;
}

/* ---------- diyas ---------- */
.vi-diwali-diyas {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 5vw, 72px);
  height: 180px;
  margin: 40px 0 0;
  margin-top: auto; /* sits at the bottom; spare height goes above the diyas */
  padding: 0 20px 34px;
  flex: 0 0 auto;
  opacity: 0;
  animation: vi-fade-up 1s ease 0.6s forwards;
}

.vi-diya {
  position: relative;
  width: 9em;
  height: 8.5em;
  font-size: 11.5px;
  flex: 0 0 auto;
}

.vi-diya--lg {
  font-size: 15.5px;
}

.vi-diya--sm {
  font-size: 8.5px;
}

.vi-diya-glow {
  position: absolute;
  bottom: 2em;
  left: 50%;
  width: 16em;
  height: 12em;
  margin-left: -8em;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 170, 60, 0.5) 0%, rgba(255, 120, 30, 0.2) 40%, rgba(255, 100, 20, 0) 70%);
  animation: vi-glow 1.3s ease-in-out infinite alternate;
  pointer-events: none;
}

.vi-diya-flame {
  position: absolute;
  bottom: 3.2em;
  left: 50%;
  width: 2.3em;
  height: 4.8em;
  margin-left: -1.15em;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 88%, #fffbe6 0%, #ffe066 20%, #ff9a1f 46%, #ff4d00 70%, rgba(255, 60, 0, 0) 100%);
  box-shadow: 0 0 1.4em 0.35em rgba(255, 150, 40, 0.45);
  filter: blur(0.07em);
  transform-origin: 50% 100%;
  animation: vi-flicker 0.95s ease-in-out infinite alternate;
}

.vi-diya-flame::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15em;
  width: 0.95em;
  height: 1.7em;
  margin-left: -0.475em;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, rgba(130, 175, 255, 0.95) 0%, rgba(70, 110, 255, 0.45) 55%, rgba(70, 110, 255, 0) 100%);
  transform-origin: 50% 100%;
  animation: vi-flicker-core 0.6s ease-in-out infinite alternate;
}

.vi-diya-flame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.4em;
  width: 1.2em;
  height: 2.6em;
  margin-left: -0.6em;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 255, 240, 0.95) 0%, rgba(255, 235, 150, 0.7) 45%, rgba(255, 200, 80, 0) 100%);
  animation: vi-flicker-core 0.8s ease-in-out infinite alternate-reverse;
}

.vi-diya-wick {
  position: absolute;
  bottom: 3.1em;
  left: 50%;
  width: 0.35em;
  height: 0.7em;
  margin-left: -0.175em;
  border-radius: 0.2em 0.2em 0 0;
  background: #2a140a;
}

.vi-diya-bowl {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 9em;
  height: 3.6em;
  margin-left: -4.5em;
  border-radius: 0 0 4.5em 4.5em / 0 0 3.6em 3.6em;
  background: linear-gradient(180deg, #efb043 0%, #cf8224 30%, #92491a 68%, #5a2a0c 100%);
  box-shadow:
    inset 0 -0.7em 1em rgba(0, 0, 0, 0.4),
    inset 0 0.3em 0.5em rgba(255, 230, 160, 0.4),
    0 0.4em 1.2em rgba(0, 0, 0, 0.5);
}

.vi-diya-bowl::before {
  content: "";
  position: absolute;
  top: -0.7em;
  left: 0;
  width: 100%;
  height: 1.4em;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #3a1a0a 0%, #6b3512 52%, #e2a23a 80%, #f7d078 100%);
  box-shadow: 0 0 0.4em rgba(255, 200, 100, 0.55);
}

.vi-diya-bowl::after {
  content: "";
  position: absolute;
  top: -0.35em;
  left: 15%;
  width: 70%;
  height: 0.7em;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 210, 120, 0.6), rgba(255, 170, 60, 0) 70%);
  animation: vi-glow 1.1s ease-in-out infinite alternate;
}

.vi-diya-gems {
  position: absolute;
  bottom: 1.3em;
  left: 50%;
  display: flex;
  gap: 1.1em;
  transform: translateX(-50%);
  z-index: 2;
}

.vi-diya-gem {
  display: block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd4e0 0%, #e0245e 55%, #7a0f33 100%);
  box-shadow: 0 0 0.5em rgba(255, 80, 130, 0.75), inset 0 0 0.15em rgba(255, 255, 255, 0.5);
  animation: vi-gem 2.2s ease-in-out infinite;
}

.vi-diya-gem:nth-child(2) {
  animation-delay: 0.7s;
}

.vi-diya-gem:nth-child(3) {
  animation-delay: 1.4s;
}

.vi-diya-reflect {
  position: absolute;
  bottom: -1.9em;
  left: 50%;
  width: 9em;
  height: 1.8em;
  margin-left: -4.5em;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 160, 50, 0.4), rgba(255, 160, 50, 0) 70%);
  filter: blur(0.3em);
  animation: vi-glow 1.3s ease-in-out infinite alternate-reverse;
}

/* vary the flicker per diya so they never move in lockstep */
.vi-diya:nth-child(1) .vi-diya-flame { animation-duration: 1.05s; animation-delay: -0.3s; }
.vi-diya:nth-child(2) .vi-diya-flame { animation-duration: 0.85s; animation-delay: -0.6s; }
.vi-diya:nth-child(3) .vi-diya-flame { animation-duration: 0.95s; animation-delay: -0.1s; }
.vi-diya:nth-child(4) .vi-diya-flame { animation-duration: 0.9s;  animation-delay: -0.45s; }
.vi-diya:nth-child(5) .vi-diya-flame { animation-duration: 1.1s;  animation-delay: -0.8s; }
.vi-diya:nth-child(2) .vi-diya-glow,
.vi-diya:nth-child(4) .vi-diya-glow { animation-delay: -0.5s; }
.vi-diya:nth-child(1) .vi-diya-glow,
.vi-diya:nth-child(5) .vi-diya-glow { animation-delay: -0.9s; }

/* ---------- petals ---------- */
.vi-petal {
  position: absolute;
  width: 16px;
  height: 10px;
  border-radius: 60% 40% 60% 40%;
  background: linear-gradient(135deg, #ff5f8f 0%, #d61f5a 55%, #8a0f3a 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 0 4px rgba(255, 180, 200, 0.35);
  pointer-events: none;
  z-index: 3;
}

.vi-petal--floor:nth-child(1) { left: 12%; bottom: 20px; transform: rotate(-18deg); }
.vi-petal--floor:nth-child(2) { left: 24%; bottom: 10px; transform: rotate(22deg); width: 13px; height: 8px; }
.vi-petal--floor:nth-child(3) { left: 38%; bottom: 14px; transform: rotate(-40deg); }
.vi-petal--floor:nth-child(4) { left: 57%; bottom: 8px;  transform: rotate(12deg); width: 14px; height: 9px; }
.vi-petal--floor:nth-child(5) { left: 69%; bottom: 18px; transform: rotate(-28deg); }
.vi-petal--floor:nth-child(6) { left: 84%; bottom: 12px; transform: rotate(35deg); width: 12px; height: 8px; }

.vi-petal--fall {
  top: -24px;
  z-index: 2; /* drift behind the logo and text */
  opacity: 0;
  animation: vi-fall linear infinite;
}

/* ---------- buttons ---------- */
.vi-diwali-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 120, 0.75);
  background: rgba(10, 4, 24, 0.45);
  color: #ffd97a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0;
  box-shadow: 0 0 12px rgba(255, 190, 80, 0.25);
  transition: transform 0.35s ease, background 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.vi-diwali-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.vi-diwali-close:hover,
.vi-diwali-close:focus-visible {
  transform: rotate(90deg) scale(1.08);
  background: rgba(255, 190, 80, 0.2);
  box-shadow: 0 0 18px rgba(255, 190, 80, 0.55);
}

.vi-diwali-sound {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  height: 28px;
  padding: 0 10px 0 8px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 120, 0.7);
  background: rgba(10, 4, 24, 0.45);
  color: #ffe6a8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 0 12px rgba(255, 190, 80, 0.25);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.vi-diwali-sound svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

.vi-diwali-sound:hover,
.vi-diwali-sound:focus-visible {
  background: rgba(255, 190, 80, 0.2);
  box-shadow: 0 0 18px rgba(255, 190, 80, 0.55);
}

.vi-diwali-sound.is-locked {
  animation: vi-pulse 1.6s ease-in-out infinite;
}

.vi-diwali-sound .vi-ic-on,
.vi-diwali-sound .vi-ic-off {
  display: none;
}

.vi-diwali-sound.is-on .vi-ic-on,
.vi-diwali-sound.is-off .vi-ic-off,
.vi-diwali-sound.is-locked .vi-ic-off {
  display: block;
}

/* ---------- keyframes ---------- */
@keyframes vi-twinkle {
  0%   { opacity: 0.35; transform: scale(0.8); }
  100% { opacity: 1;    transform: scale(1.2); }
}

@keyframes vi-spin {
  to { transform: rotate(360deg); }
}

@keyframes vi-fade-down {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vi-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vi-ltr-in {
  to { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes vi-shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@keyframes vi-wave {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  30%      { transform: translateY(-0.26em) rotate(-4deg) scale(1.09); }
  60%      { transform: translateY(0.06em) rotate(3deg) scale(0.98); }
}

@keyframes vi-title-float {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  35%      { transform: translateY(-10px) rotate(-0.7deg) scale(1.03); }
  70%      { transform: translateY(4px) rotate(0.5deg) scale(1); }
}

@keyframes vi-sub-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes vi-lotus-glow {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(255, 200, 90, 0.5)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(255, 210, 110, 0.95)); }
}

@keyframes vi-flicker {
  0%   { transform: scale(1, 1) rotate(-2deg); }
  25%  { transform: scale(0.95, 1.07) rotate(1.5deg) skewX(2deg); }
  50%  { transform: scale(1.05, 0.93) rotate(-1deg); }
  75%  { transform: scale(0.97, 1.1) rotate(2.5deg) skewX(-2.5deg); }
  100% { transform: scale(1.03, 0.96) rotate(-2.5deg); }
}

@keyframes vi-flicker-core {
  0%   { transform: scaleY(1) scaleX(1); opacity: 0.85; }
  50%  { transform: scaleY(1.18) scaleX(0.9); opacity: 1; }
  100% { transform: scaleY(0.9) scaleX(1.08); opacity: 0.9; }
}

@keyframes vi-glow {
  0%   { opacity: 0.7; transform: scale(0.94); }
  100% { opacity: 1;   transform: scale(1.06); }
}

@keyframes vi-gem {
  0%, 100% { box-shadow: 0 0 0.4em rgba(255, 80, 130, 0.55), inset 0 0 0.15em rgba(255, 255, 255, 0.5); }
  50%      { box-shadow: 0 0 1em rgba(255, 120, 160, 1),  inset 0 0 0.2em rgba(255, 255, 255, 0.8); }
}

@keyframes vi-fall {
  0%   { opacity: 0;   transform: translate(0, 0) rotate(0deg); }
  8%   { opacity: 0.9; }
  25%  { transform: translate(22px, 25vh) rotate(90deg); }
  50%  { transform: translate(-18px, 50vh) rotate(200deg); }
  75%  { transform: translate(20px, 75vh) rotate(290deg); }
  95%  { opacity: 0.9; }
  100% { opacity: 0;   transform: translate(-10px, 100vh) rotate(380deg); }
}

@keyframes vi-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 190, 80, 0.3); }
  50%      { box-shadow: 0 0 22px rgba(255, 200, 100, 0.9); }
}

@keyframes vi-kandil-in {
  from { opacity: 0; transform: translateY(-26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vi-swing {
  from { transform: rotate(-4.5deg); }
  to   { transform: rotate(4.5deg); }
}

@keyframes vi-kandil-glow {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

@keyframes vi-tail-sway {
  from { transform: skewX(-8deg); }
  to   { transform: skewX(8deg); }
}

/* ---------- responsive ---------- */
@media (max-width: 899px), (max-height: 640px) {
  .vi-kandil--l2,
  .vi-kandil--r2 {
    display: none;
  }
}

@media (max-width: 720px) {
  .vi-diwali-box {
    border-radius: 18px;
    min-height: min(540px, 90vh);
  }

  .vi-kandil {
    width: 34px;
    top: 46px;
  }

  .vi-kandil--l1 { left: 6px; }
  .vi-kandil--r1 { right: 6px; }

  .vi-diwali-content {
    padding: 58px 16px 0;
  }

  .vi-diwali-title {
    white-space: normal;
  }

  .vi-diwali-diyas {
    height: 108px;
    margin-top: auto;
    gap: 10px;
    padding: 0 8px 22px;
  }

  .vi-diya {
    font-size: 7px;
  }

  .vi-diya--lg {
    font-size: 9.5px;
  }

  .vi-diya--sm {
    font-size: 5px;
  }

  .vi-mandala {
    width: 200px;
    height: 200px;
  }

  .vi-mandala--left {
    left: -80px;
    bottom: -70px;
  }

  .vi-mandala--right {
    right: -80px;
    bottom: -70px;
  }

  .vi-strand:nth-of-type(n+2) {
    display: none;
  }

  .vi-diwali-sound {
    height: 26px;
    font-size: 12px;
  }

  .vi-diwali-close {
    width: 36px;
    height: 36px;
  }
}

@media (max-height: 640px) {
  .vi-diwali-box {
    min-height: 0;
  }

  .vi-diwali-content {
    padding-top: 22px;
  }

  .vi-diwali-brand {
    font-size: 1.2rem;
  }

  .vi-diwali-title {
    font-size: clamp(2rem, 9vh, 4rem);
    margin-top: 10px;
  }

  .vi-diwali-diyas {
    height: 96px;
    margin-top: 14px;
    padding-bottom: 16px;
  }

  .vi-diya {
    font-size: 7px;
  }

  .vi-diya--lg {
    font-size: 9px;
  }

  .vi-diya--sm {
    font-size: 5.5px;
  }
}
