﻿.tree-container {
    width: 300px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    position: relative;
}

.tree {
    position: relative;
    height: 220px;
    width: 120px;
    transform-style: preserve-3d;
    animation: spin calc(var(--spin-speed, 3) * 1s) infinite linear;
}

.tree__light {
    position: absolute;
    width: calc(var(--light-size, 1) * 1.2vmin);
    height: calc(var(--light-size, 1) * 1.2vmin);
    min-width: 5px;
    min-height: 5px;
    border-radius: 50%;
    left: 50%;
    /* 3D Расположение */
    transform: translate(-50%, 50%) rotateY(calc(var(--rotate, 0) * 1deg)) translate3d(0, 0, calc(var(--radius, 0) * 1vmin));
    bottom: calc(var(--y, 0) * 1%);
    /* Анимация мигания корпоративными цветами */
    animation: flash calc(var(--speed, 1) * 1s) calc(var(--delay, 0) * 1s) infinite linear;
}

.tree__star {
    position: absolute;
    height: 45px;
    width: 45px;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    fill: var(--color-two); /* Используем золотой для звезды */
    filter: drop-shadow(0 0 10px var(--color-two));
}

@keyframes spin {
    to {
        transform: rotateY(360deg);
    }
}

@keyframes flash {
    0%, 100% {
        background: var(--color-one);
        box-shadow: 0 0 6px var(--color-one);
    }

    33.3% {
        background: var(--color-two);
        box-shadow: 0 0 6px var(--color-two);
    }

    66.6% {
        background: var(--color-three);
        box-shadow: 0 0 6px var(--color-three);
    }
}


.festive-logo-container {
    width: 100%;
    max-width: 400px; /* Размер логотипа в лоадере */
    margin: 20px auto;
    display: block;
}

/* Анимация проявки самого логотипа */
.logo-path {
    opacity: 0;
    transform: translateY(20px);
    animation: logo-appear 1s ease-out forwards;
}

/* Эффект золотого перелива (блик) */
.shimmer {
    fill: url(#gold-gradient);
    animation: shimmer-move 3s infinite linear;
}

/* Новогодние шары */
.ornament {
    opacity: 0;
    transform-origin: top center;
    animation: ornament-appear 0.5s 1s forwards, swing 3s infinite ease-in-out;
}
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы снег не мешал нажимать на кнопки */
    z-index: 9999; /* Поверх всех элементов */
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(105vh); /* Падение чуть ниже экрана */
    }
}

@keyframes logo-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer-move {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes ornament-appear {
    to {
        opacity: 1;
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}