/**
 * Diwali header celebration (layout-safe overlay only).
 * Desktop/laptop: #top-header-4
 * Mobile: #main-header-6
 * Disable: $diwaliFireworksEnabled = false in base.blade.php
 */

/* Do NOT change position of #main-header-6 (it is position:fixed) —
   absolute children are fine inside a fixed header. */
#main-header-6.diwali-celebration-active,
#top-header-4.diwali-celebration-active {
    isolation: isolate;
}

/* top-header-4 is in normal flow (position:initial) — relative keeps
   the canvas clipped to it without shifting layout (no top/left/offset). */
#top-header-4.diwali-celebration-active {
    position: relative;
}

#diwali-celebration-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none !important;
    background: transparent;
    margin: 0;
    padding: 0;
    border: 0;
}

#diwali-celebration-layer canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    background: transparent;
}

/* Keep existing header content above the canvas; do not alter spacing */
#main-header-6.diwali-celebration-active > .container,
#top-header-4.diwali-celebration-active > .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    #diwali-celebration-layer {
        display: none !important;
    }
}
