/* Start loader - start.html */

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.5s ease;
    overflow: hidden;
    position: relative;
}

.loader-container {
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.title-line {
    line-height: 1.3;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 30px;
}

/* Лоадер из эмодзи в ряд */
.emoji-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.loader-emoji {
    font-size: 40px;
    display: inline-block;
    animation: bounce-up 1.2s ease-in-out infinite;
}

/* Каждый эмодзи прыгает по очереди */
.loader-emoji:nth-child(1) {
    animation-delay: 0s;
}

.loader-emoji:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-emoji:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-emoji:nth-child(4) {
    animation-delay: 0.6s;
}

.loader-emoji:nth-child(5) {
    animation-delay: 0.8s;
}

.loader-emoji:nth-child(6) {
    animation-delay: 1s;
}

@keyframes bounce-up {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Снежинки фон */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -20px;
    animation: fall linear infinite;
    opacity: 0.8;
}

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

/* 🎄 Рождественская тема */
.christmas-theme body {
    background: linear-gradient(135deg, #0d3b26 0%, #1a5c3e 20%, #C41E3A 50%, #8B0000 80%, #0d3b26 100%);
    background-size: 400% 400%;
    animation: christmas-gradient 15s ease-in-out infinite;
}

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

.christmas-theme .app-title {
    font-size: 32px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                 0 0 20px rgba(255, 215, 0, 0.6),
                 0 0 30px rgba(196, 30, 58, 0.4),
                 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: title-glow 2s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                     0 0 20px rgba(255, 215, 0, 0.6),
                     0 0 30px rgba(196, 30, 58, 0.4),
                     0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        text-shadow: 0 0 15px rgba(255, 215, 0, 1),
                     0 0 30px rgba(255, 215, 0, 0.8),
                     0 0 45px rgba(196, 30, 58, 0.6),
                     0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.christmas-theme .loading-text {
    font-size: 18px;
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Рождественские эмодзи */
.christmas-theme .loader-emoji {
    font-size: 48px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    animation: christmas-bounce 1.2s ease-in-out infinite;
}

@keyframes christmas-bounce {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
    50% {
        transform: translateY(-25px) scale(1.3) rotate(5deg);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)) 
                drop-shadow(0 0 35px rgba(196, 30, 58, 0.6));
    }
}

/* Обычный спиннер скрываем в рождественской теме */
.christmas-theme .spinner {
    display: none;
}

/* 🎉 Праздничная тема */
.festive-theme body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #f093fb 70%, #4facfe 100%);
    background-size: 400% 400%;
    animation: festive-gradient 12s ease-in-out infinite;
}

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

.festive-theme .app-title {
    font-size: 32px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
                 0 0 20px rgba(102, 126, 234, 0.7),
                 0 0 30px rgba(240, 147, 251, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: festive-title-glow 2.5s ease-in-out infinite;
}

@keyframes festive-title-glow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
                     0 0 20px rgba(102, 126, 234, 0.7),
                     0 0 30px rgba(240, 147, 251, 0.5),
                     0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.02);
        text-shadow: 0 0 15px rgba(255, 255, 255, 1),
                     0 0 30px rgba(102, 126, 234, 0.9),
                     0 0 45px rgba(240, 147, 251, 0.7),
                     0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

.festive-theme .loading-text {
    font-size: 18px;
    animation: festive-pulse 1.8s ease-in-out infinite;
}

@keyframes festive-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Праздничные эмодзи */
.festive-theme .loader-emoji {
    font-size: 48px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
    animation: festive-bounce 1.4s ease-in-out infinite;
}

@keyframes festive-bounce {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
    }
    50% {
        transform: translateY(-22px) scale(1.25) rotate(-5deg);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) 
                drop-shadow(0 0 30px rgba(102, 126, 234, 0.7));
    }
}

/* Обычный спиннер скрываем в праздничной теме */
.festive-theme .spinner {
    display: none;
}

/* Адаптивность */
@media (max-width: 480px) {
    .app-title {
        font-size: 24px;
    }
    
    .christmas-theme .app-title {
        font-size: 26px;
    }
    
    .emoji-loader {
        gap: 10px;
    }
    
    .loader-emoji {
        font-size: 32px;
    }
    
    .christmas-theme .loader-emoji {
        font-size: 38px;
    }
    
    .festive-theme .app-title {
        font-size: 26px;
    }
    
    .festive-theme .loader-emoji {
        font-size: 38px;
    }
}
