/* Base overlay containers */
#diwali-petals-canvas, #diwali-fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

.diwali-diya {
  position: fixed;
  bottom: 16px;
  width: 72px;
  height: 72px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.95;
}

.diwali-diya.left { left: 16px; }
.diwali-diya.right { right: 16px; }

/* Greeting badge */
#diwali-greeting {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 247, 229, 0.98);
  border: 1px solid rgba(255, 164, 27, 0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10000;
}

#diwali-greeting button {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

@media (prefers-reduced-motion: reduce) {
  #diwali-petals-canvas, #diwali-fireworks-canvas { display: none !important; }
  .diwali-diya { opacity: 0.85; }
}

/* Subtle flame glow animation for SVG flame */
@keyframes flameFlicker {
  0%   { transform: scale(1) translateY(0); opacity: 0.95; filter: drop-shadow(0 0 6px rgba(255,180,0,0.6)); }
  50%  { transform: scale(1.05) translateY(-1px); opacity: 1; filter: drop-shadow(0 0 10px rgba(255,180,0,0.9)); }
  100% { transform: scale(1) translateY(0); opacity: 0.95; filter: drop-shadow(0 0 6px rgba(255,180,0,0.6)); }
}

.diya-flame {
  transform-origin: center;
  animation: flameFlicker 1.6s ease-in-out infinite;
}
