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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #5e60ce 0%, #6a4c93 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
                 0 0 20px rgba(135, 206, 250, 0.6),
                 0 0 30px rgba(135, 206, 250, 0.4);
    z-index: 99999;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.2);
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(1);
    }
}

@keyframes sparkle {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 6px rgba(135, 206, 250, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1))
                drop-shadow(0 0 15px rgba(135, 206, 250, 0.9))
                drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
    }
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a0ca3 0%, #c1121f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: splashFadeOut 1s ease-out 3s forwards;
}

@keyframes splashFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.splash-title {
    font-size: 5em;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.6),
                 0 0 60px rgba(255, 215, 0, 0.4);
    animation: splashZoom 2s ease-out forwards;
    margin-bottom: 30px;
}

@keyframes splashZoom {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.splash-subtitle {
    font-size: 2em;
    color: #fca311;
    animation: splashSlideUp 1.5s ease-out 0.5s forwards;
    opacity: 0;
    text-shadow: 0 0 10px rgba(252, 163, 17, 0.8);
}

@keyframes splashSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--confetti-color);
    animation: confettiFall 3s linear forwards;
    opacity: 0.9;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 800px;
    z-index: 1;
    animation: slideIn 0.8s ease-out;
}

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

h1 {
    color: #c1121f;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: #4361ee;
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: bold;
}

.countdown {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.time-box {
    background: linear-gradient(135deg, #d90429 0%, #7209b7 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    min-width: 120px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.time-box:hover {
    transform: scale(1.05);
}

.time-number {
    font-size: 3em;
    font-weight: bold;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.time-label {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    display: block;
}

.message {
    font-size: 1.3em;
    color: #4361ee;
    margin: 30px 0;
    font-style: italic;
    min-height: 60px;
}

.emoji-decoration {
    font-size: 2em;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
}

.arrived {
    animation: celebrate 1s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}
