/* Full-screen snow layer */
.santa-snow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1040;
    pointer-events: none;
}

.santa-snowflake {
    position: absolute;
    top: -20px;
    color: #dff5ff;
    text-shadow: 0 0 5px rgba(255, 255, 255, .9);
    animation: santa-fall linear infinite;
}

@keyframes santa-fall {
    from {
        transform: translate3d(0, -20px, 0) rotate(0deg);
    }

    to {
        transform: translate3d(45px, 110vh, 0) rotate(360deg);
    }
}

/* Santa widget */
.christmas-santa {
    position: fixed;
    right: 18px;
    bottom: 0;
    width: 190px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.santa-greeting {
    width: 100%;
    box-sizing: border-box;
    padding: 11px;
    border: 2px solid #fff;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #e53935, #a80000);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
    animation: santa-greeting-bob 2.2s ease-in-out infinite;
}

.santa-greeting-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.santa-greeting-message {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
}

@keyframes santa-greeting-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* The GIF/WebP provides the actual dance */
.santa-character {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .15));
}

/* Buttons */
.santa-controls {
    width: 100%;
    margin-bottom: 12px;
}

#santa-music-toggle {
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    background: #176b3a;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

#santa-music-toggle:hover {
    background: #0e512b;
}

.santa-close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 2px solid white;
    border-radius: 50%;
    background: #343a40;
    color: white;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
}

/* Mobile sizing */
@media (max-width: 576px) {
    .christmas-santa {
        right: 8px;
        width: 125px;
    }

    .santa-greeting {
        padding: 7px;
    }

    .santa-greeting-title {
        font-size: 13px;
    }

    .santa-greeting-message {
        font-size: 9px;
    }

    .santa-character {
        max-height: 200px;
    }

    #santa-music-toggle {
        font-size: 10px;
        padding: 6px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .santa-snowflake,
    .santa-greeting {
        animation: none !important;
    }
}

.santa-countdown {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.countdown-label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.countdown-timer > div {
    flex: 1;
    min-width: 0;
    padding: 5px 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
}

.countdown-timer strong {
    display: block;
    font-size: 17px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.countdown-timer small {
    display: block;
    font-size: 9px;
}

.santa-greeting {
    /* Keep your existing greeting styles */
    box-sizing: border-box;
}