/* Новогоднее поздравление - модальное окно */
.new-year-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.5s ease-in-out;
    overflow: hidden;
}

.new-year-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.new-year-modal-content {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(255, 215, 0, 0.2),
                inset 0 0 50px rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: slideUp 0.6s ease-out;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.new-year-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.new-year-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
    border-color: rgba(255, 215, 0, 0.5);
}

.new-year-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.new-year-snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.new-year-snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: fall linear infinite;
    opacity: 0.7;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.new-year-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.6),
                 0 0 60px rgba(255, 215, 0, 0.4);
}

.new-year-text {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, bounce 1s ease infinite;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.new-year-message {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-year-message p {
    margin: 0.5rem 0;
}

.new-year-wishes {
    font-size: 1.1rem;
    color: rgba(255, 215, 0, 0.9);
    margin-top: 1rem !important;
    font-weight: 500;
}

.new-year-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.new-year-star {
    font-size: 2.5rem;
    animation: twinkle 2s ease-in-out infinite;
    animation-delay: calc(var(--star-index, 0) * 0.3s);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .new-year-modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .new-year-title {
        font-size: 2rem;
    }
    
    .new-year-message {
        font-size: 1.1rem;
    }
    
    .new-year-star {
        font-size: 2rem;
    }
    
    .new-year-close {
        width: 35px;
        height: 35px;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Эффект конфетти при открытии */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

