/* Christmas Lights Container */
.christmas-lights {
    position: fixed;
    top: -15px;
    /* Wire sits slightly above screen */
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 100;
    /* Above most things, but maybe below modal */
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    overflow: hidden;
}

/* The Wire */
.christmas-lights::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #444;
    border-bottom: 1px solid #222;
}

/* Individual Bulb */
.bulb {
    position: relative;
    width: 16px;
    height: 24px;
    background: #444;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

/* Bulb Socket */
.bulb::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 4px;
    width: 8px;
    height: 6px;
    background: #222;
    border-radius: 2px;
}

/* Colors and Animations */
.bulb:nth-child(2n) {
    background: #ff5e5e;
    /* Red */
    box-shadow: 0 5px 15px rgba(255, 94, 94, 1);
    animation-name: flash-1;
}

.bulb:nth-child(3n) {
    background: #ffff5e;
    /* Yellow */
    box-shadow: 0 5px 15px rgba(255, 255, 94, 1);
    animation-name: flash-2;
    animation-delay: 0.5s;
}

.bulb:nth-child(4n) {
    background: #5eafff;
    /* Blue */
    box-shadow: 0 5px 15px rgba(94, 175, 255, 1);
    animation-name: flash-3;
    animation-delay: 1s;
}

.bulb:nth-child(5n) {
    background: #5eff5e;
    /* Green */
    box-shadow: 0 5px 15px rgba(94, 255, 94, 1);
    animation-name: flash-1;
    animation-delay: 1.5s;
}

@keyframes flash-1 {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

@keyframes flash-2 {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

@keyframes flash-3 {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}


/* Flying Santa */
.santa-container {
    position: fixed;
    top: 15%;
    left: -300px;
    /* Start off-screen */
    z-index: 50;
    pointer-events: none;
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    will-change: transform, left;
}

.santa-sleigh {
    display: flex;
    align-items: center;
    transform: scaleX(-1);
    /* Face right */
}

/* Animation class to be added by JS */
.fly-across {
    animation: fly 6s linear forwards;
}

@keyframes fly {
    0% {
        left: -300px;
        transform: translateY(0) rotate(5deg) scaleX(-1);
    }

    25% {
        transform: translateY(-20px) rotate(0deg) scaleX(-1);
    }

    50% {
        transform: translateY(0) rotate(-5deg) scaleX(-1);
    }

    75% {
        transform: translateY(-20px) rotate(0deg) scaleX(-1);
    }

    100% {
        left: 110%;
        transform: translateY(0) rotate(5deg) scaleX(-1);
    }
}

/* 3. Frost/Ice Vignette Effect */
.frost-window {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 900;
    /* High but below modal */
    box-shadow: inset 0 0 100px rgba(200, 230, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    background: radial-gradient(circle at center, transparent 85%, rgba(200, 230, 255, 0.15) 100%);
    filter: url('#turbulent-noise');
    /* We can try simple CSS first */
    mix-blend-mode: screen;
}

/* 4. Magic Dust Particles */
.magic-particle {
    position: fixed;
    pointer-events: none;
    background: white;
    border-radius: 50%;
    z-index: 9999;
    /* initial state set in JS */
}

/* 5. Music Button */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--zeliai-accent);
    color: var(--zeliai-accent);
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.music-btn:hover {
    background: var(--zeliai-accent);
    color: var(--zeliai-dark);
    box-shadow: 0 0 20px var(--zeliai-accent);
}

.music-btn.playing {
    background: var(--zeliai-accent);
    color: var(--zeliai-dark);
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}