* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    z-index: 10;
    position: relative;
    padding: 0 20px;
}

.logo {
    max-width: 320px;
    width: 80%;
    height: auto;
    opacity: 0.95;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    transform-origin: center;
    cursor: pointer;
}

@keyframes logoFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
    15% {
        transform: translateY(-10px) rotate(0.8deg) scale(1.015);
        filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.6));
    }
    30% {
        transform: translateY(-18px) rotate(1.5deg) scale(1.025);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.7));
    }
    45% {
        transform: translateY(-22px) rotate(1deg) scale(1.03);
        filter: drop-shadow(0 0 45px rgba(255, 255, 255, 0.8));
    }
    60% {
        transform: translateY(-15px) rotate(-0.8deg) scale(1.02);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.7));
    }
    75% {
        transform: translateY(-8px) rotate(-1.2deg) scale(1.01);
        filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.6));
    }
    90% {
        transform: translateY(-3px) rotate(-0.5deg) scale(1.005);
        filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.55));
    }
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
}

.logo:hover {
    opacity: 1;
    transform: scale(1.2) rotate(3deg) !important;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 1)) !important;
    animation-play-state: paused;
}

.logo.final-countdown {
    animation: logoUrgent 0.7s ease-in-out infinite;
}

@keyframes logoUrgent {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 40px rgba(239, 68, 68, 0.9)) 
                drop-shadow(0 0 80px rgba(255, 255, 255, 0.5));
    }
    25% {
        transform: scale(1.05) rotate(2deg);
        filter: drop-shadow(0 0 50px rgba(239, 68, 68, 1)) 
                drop-shadow(0 0 90px rgba(255, 255, 255, 0.6));
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        filter: drop-shadow(0 0 60px rgba(239, 68, 68, 1)) 
                drop-shadow(0 0 100px rgba(255, 255, 255, 0.7));
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        filter: drop-shadow(0 0 50px rgba(239, 68, 68, 1)) 
                drop-shadow(0 0 90px rgba(255, 255, 255, 0.6));
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 40px rgba(239, 68, 68, 0.9)) 
                drop-shadow(0 0 80px rgba(255, 255, 255, 0.5));
    }
}

.countdown {
    font-size: 8rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    animation: glow 2.5s ease-in-out infinite alternate;
    background: linear-gradient(45deg, #ffffff, #e5e5e5, #ffffff);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes glow {
    from {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
        filter: brightness(1);
        background-position: 0% 50%;
    }
    to {
        text-shadow: 0 0 45px rgba(255, 255, 255, 0.9);
        filter: brightness(1.3);
        background-position: 100% 50%;
    }
}

.countdown span {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    cursor: pointer;
}

.countdown span:hover {
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 0 40px rgba(255, 255, 255, 1);
}

.finished {
    font-size: 6rem;
    color: #ffffff;
    text-shadow: 0 0 50px rgba(255, 255, 255, 1);
    animation: celebrate 1.2s ease-in-out infinite;
    background: linear-gradient(45deg, #ffffff, #ffeb3b, #ffffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        background-position: 0% 50%;
    }
    25% {
        transform: scale(1.08) rotate(2deg);
        background-position: 25% 50%;
    }
    50% {
        transform: scale(1.15) rotate(0deg);
        background-position: 100% 50%;
    }
    75% {
        transform: scale(1.08) rotate(-2deg);
        background-position: 75% 50%;
    }
}

.celebration-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particle-fall 3s linear infinite;
}

@keyframes particle-fall {
    from {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 1200px) {
    .countdown {
        font-size: 6rem;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .countdown {
        font-size: 4.5rem;
    }
    
    .logo {
        max-width: 220px;
    }
    
    .container {
        gap: 35px;
    }
    
    .video-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .finished {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .container {
        gap: 25px;
        padding: 0 15px;
    }
    
    .finished {
        font-size: 3rem;
    }
}

@media (max-width: 320px) {
    .countdown {
        font-size: 2.2rem;
    }
    
    .logo {
        max-width: 140px;
    }
    
    .finished {
        font-size: 2.5rem;
    }
}