.tree-app {
    height: 750px;
    width: 100%;
    border: solid 1px #ddd;
    border-radius: 8px;
}

@media (max-width: 760px)  {
    .tree-app {
    height: 450px;
}
}

    .progress-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #f0f0f0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #4caf50, #45a049);
        width: 0%;
        transition: width 0.15s ease;
    }
    
    .progress-circle {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: conic-gradient(#4caf50 0deg, #f0f0f0 0deg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        color: #333;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .progress-circle.visible {
        opacity: 1;
    }
    
    @media (max-width: 768px) {
        .progress-circle {
            width: 50px;
            height: 50px;
            font-size: 10px;
            bottom: 15px;
            right: 15px;
        }
    }
    /* Анимация празднования */
.celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.celebration-emoji {
    position: absolute;
    font-size: 2rem;
    animation: celebrate 3s ease-out forwards;
    pointer-events: none;
}

@keyframes celebrate {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) rotate(180deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-20vh) translateX(var(--end-x)) rotate(720deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30vh) translateX(var(--end-x)) rotate(800deg) scale(0);
    }
}

/* Анимация празднования */
.celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.celebration-emoji {
    position: absolute;
    font-size: 2rem;
    animation: celebrate 3s ease-out forwards;
    pointer-events: none;
}

@keyframes celebrate {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) rotate(180deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-20vh) translateX(var(--end-x)) rotate(720deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30vh) translateX(var(--end-x)) rotate(800deg) scale(0);
    }
}

/* Сообщение о завершении */
.completion-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.completion-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
    max-width: 400px;
    margin: 0 20px;
}

.completion-content h3 {
    color: #4A7C59;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.completion-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.completion-content button {
    background: linear-gradient(90deg, #4A7C59, #8FBC8F);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.completion-content button:hover {
    transform: scale(1.05);
}

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

@keyframes slideIn {
    from { 
        transform: translateY(-50px) scale(0.8);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .celebration-emoji {
        font-size: 1.5rem;
    }
    
    .completion-content {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .completion-content h3 {
        font-size: 1.3rem;
    }
    
    .completion-content p {
        font-size: 1rem;
    }
}

/* Дополнительные эффекты */
.celebration-emoji:nth-child(odd) {
    animation-duration: 2.5s;
}

.celebration-emoji:nth-child(even) {
    animation-duration: 3.5s;
}

/* Эффект мерцания для некоторых эмодзи */
.celebration-emoji:nth-child(3n) {
    animation: celebrate 3s ease-out forwards, twinkle 0.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.5); }
}