* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0a2e36 0%, #1a1a2e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.new-year-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.team {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
}
.team p {
    font-size: 2rem;
    color: #7d59ab;
    text-shadow: 0 0 10px rgba(255, 0, 215, 0.7); 
    font-weight: bold;
    margin: 0;
}
.congratulation {
    text-align: center;
    margin-bottom: 5px; 
    padding: 10px;
}

.congratulation p {
    font-size: 2rem; 
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    font-weight: bold;
    margin: 0;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 0 30px rgba(255, 87, 51, 0.6);
    }
}

.congratulation-year {
    color: #ffe766 ;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 140, 0, 0.6),
        0 0 30px rgba(255, 69, 0, 0.4);

    animation: glow 2s ease-in-out infinite alternate;

    font-weight: bold;
    padding: 0 5px;
}

@keyframes number-glow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 140, 0, 0.6);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 235, 59, 1),
            0 0 25px rgba(255, 87, 34, 0.8),
            0 0 35px rgba(255, 0, 0, 0.6);
    }
}

.congratulation-year {
    animation: number-glow 1.5s ease-in-out infinite alternate;
}

.tree-container {
    position: relative;
    width: 300px;
    height: 500px;
    margin: 2rem auto;
}

.tree {
    position: absolute;
    width: 100%;
    height: 100%;
}

.branch {
    position: absolute;
    background: #1a7c1a;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.branch-1 {
    width: 250px;
    height: 100px;
    bottom: 120px;
    left: 25px;
    background: #0d5c0d;
}

.branch-2 {
    width: 200px;
    height: 90px;
    bottom: 180px;
    left: 50px;
    background: #1a7c1a;
}

.branch-3 {
    width: 150px;
    height: 80px;
    bottom: 240px;
    left: 75px;
    background: #0d5c0d;
}

.branch-4 {
    width: 100px;
    height: 70px;
    bottom: 300px;
    left: 100px;
    background: #1a7c1a;
}

.branch-5 {
    width: 60px;
    height: 60px;
    bottom: 360px;
    left: 120px;
    background: #0d5c0d;
}

.trunk {
    position: absolute;
    width: 40px;
    height: 80px;
    background: #8B4513;
    bottom: 40px;
    left: 130px;
    border-radius: 5px;
}

.ornament {
    position: absolute;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

.ornament-1 { bottom: 150px; left: 80px; animation-delay: 0s; }
.ornament-2 { bottom: 210px; left: 130px; animation-delay: 0.5s; }
.ornament-3 { bottom: 270px; left: 180px; animation-delay: 1s; }
.ornament-4 { bottom: 320px; left: 120px; animation-delay: 1.5s; }
.ornament-5 { bottom: 380px; left: 150px; animation-delay: 2s; }

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

.ornament img {
    filter: drop-shadow(0 0 2px #ff8c00);
    animation: 
        bounce 2s infinite,
        ornament-glow 3s ease-in-out infinite alternate;
}

.star {
    position: absolute;
    font-size: 2.5rem;
    bottom: 425px;
    left: 138px;
    animation: spin 4s linear infinite;
    z-index: 4;
}

.star img {
    animation: 
        spin 4s linear infinite,
        star-glow 1.5s ease-in-out infinite alternate;
    filter: 
        drop-shadow(0 0 5px #ffd700)
        drop-shadow(0 0 10px #ffa500)
        drop-shadow(0 0 15px #ff8c00);
}

@keyframes star-glow {
    from {
        filter: 
            drop-shadow(0 0 5px #ffd700)
            drop-shadow(0 0 10px #ffa500)
            drop-shadow(0 0 15px #ff8c00);
    }
    to {
        filter: 
            drop-shadow(0 0 10px #ffeb3b)
            drop-shadow(0 0 20px #ff9800)
            drop-shadow(0 0 30px #ff5722);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


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


.snow-ground {
    position: absolute;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, #e6f7ff 0%, #ffffff 100%);
    bottom: 0;
    left: 0;
    border-radius: 50% 50% 0 0;
    opacity: 0.9;
}


@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .tree-container {
        transform: scale(0.8);
    }
}

#snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    filter: blur(0.5px);
}

.wish-container {
    position: absolute;
    bottom: 70px;
    left: 70%;
    transform: translateX(-50%);
    z-index: 5;
    width: auto;
}

.wish-button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff9a00, #ff2a00);
    cursor: pointer;
    padding: 8px;
    box-shadow: 
        0 6px 15px rgba(255, 42, 0, 0.6),
        0 0 0 3px rgba(255, 215, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    animation: gift-float 3s ease-in-out infinite;
}

@keyframes gift-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.wish-button:hover {
    transform: translateX(-50%) scale(1.15) rotate(15deg);
    box-shadow: 
        0 10px 25px rgba(255, 42, 0, 0.8),
        0 0 0 5px rgba(255, 215, 0, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.6);
    animation: gift-shake 0.5s ease-in-out;
}


@keyframes gift-shake {
    0%, 100% { transform: translateX(-50%) scale(1.15) rotate(15deg); }
    25% { transform: translateX(-50%) scale(1.15) rotate(20deg); }
    50% { transform: translateX(-50%) scale(1.15) rotate(10deg); }
    75% { transform: translateX(-50%) scale(1.15) rotate(20deg); }
}

.wish-button:active {
    transform: translateX(-50%) scale(0.95);
}

.wish-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.wish-overlay.active {
    opacity: 1;
    visibility: visible;
}


.wish-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 0 2px #ffd700,
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.wish-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-header {
    background: linear-gradient(90deg, #0a2e36, #1a7c1a);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffd700;
}

.popup-header h3 {
    color: #ffd700;
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    color: #ffd700;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.popup-close:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: rotate(90deg);
}

.popup-content {
    padding: 30px;
    text-align: center;
}

.wish-text {
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.6;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin: 0 0 25px 0;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
    animation: text-appear 0.5s ease-out;
}

@keyframes text-appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-footer {
    margin-top: 20px;
}

.another-wish-btn {
    background: linear-gradient(to right, #ff6b6b, #ff8e53);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.another-wish-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
    background: linear-gradient(to right, #ff8e53, #ff6b6b);
}

.another-wish-btn:active {
    transform: translateY(0);
}

.close-wish-btn {
    background: linear-gradient(to right, #4a6fa5, #6b8cbc);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.close-wish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 111, 165, 0.6);
    background: linear-gradient(to right, #5a7fb5, #7b9ccc);
    border-color: rgba(255, 255, 255, 0.5);
}

.close-wish-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .wish-container {
        bottom: 40px;
        right: 20px;
    }
    
    .wish-button {
        width: 80px;
        height: 80px;
        padding: 8px;
    }
    
    .wish-popup {
        width: 95%;
        max-width: 95%;
    }
    
    .popup-header h3 {
        font-size: 1.2rem;
    }
    
    .wish-text {
        font-size: 1.1rem;
        min-height: 80px;
    }
    
    .another-wish-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}