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

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

.container {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 20px;
}

.title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.number {
    font-size: 8rem;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    user-select: none;
}

.number:hover {
    transform: scale(1.1);
    color: #ffd700;
}

.label {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.separator {
    font-size: 6rem;
    color: white;
    font-weight: bold;
    opacity: 0.7;
}

.celebration {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in;
}

.celebration.active {
    display: flex;
}

.celebration-content {
    text-align: center;
    animation: bounceIn 1s ease-out, pulse 2s infinite;
}

.celebration-title {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.celebration-message {
    font-size: 2rem;
    color: white;
    line-height: 1.6;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 215, 0, 0.95);
    color: #333;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2000;
    display: none;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation: popIn 0.3s ease-out;
}

.easter-egg.show {
    display: block;
}

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

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Fireworks animation */
.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 998;
}

/* Responsive design - iPhone 16 Pro and similar (393px-430px) */
@media (max-width: 430px) {
    .title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .container {
        padding: 15px;
    }
    
    .countdown-wrapper {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .number {
        font-size: 3rem;
    }
    
    .label {
        font-size: 0.75rem;
        margin-top: 5px;
        letter-spacing: 1px;
    }
    
    .separator {
        font-size: 2rem;
        margin: 0 -4px;
    }
    
    .celebration-title {
        font-size: 1.8rem;
    }
    
    .celebration-message {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .time-unit {
        min-width: 0;
        flex: 1 1 auto;
        max-width: 110px;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 768px) and (min-width: 431px) {
    .title {
        font-size: 1.5rem;
    }
    
    .number {
        font-size: 4rem;
    }
    
    .label {
        font-size: 1rem;
    }
    
    .separator {
        font-size: 3rem;
    }
    
    .celebration-title {
        font-size: 2rem;
    }
    
    .celebration-message {
        font-size: 1.2rem;
    }
    
    .time-unit {
        min-width: 100px;
    }
}
