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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.game-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.game-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.game-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.game-card h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.game-card p {
    color: #666;
    font-size: 1rem;
}

/* ========================================
   Countdown Overlay Styles
   ======================================== */

#countdownOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
                url('bgpic.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

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

.countdown-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 800px;
}

.countdown-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.countdown-content .event-date {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-box .number {
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.countdown-box .label {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.countdown-message {
    font-size: 20px;
    margin-top: 30px;
    line-height: 1.6;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .countdown-content h1 {
        font-size: 32px;
    }

    .countdown-content .event-date {
        font-size: 18px;
    }

    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countdown-box .number {
        font-size: 48px;
    }

    .countdown-box .label {
        font-size: 14px;
    }

    .countdown-message {
        font-size: 16px;
    }
}

.countdown-logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    max-width: 200px;
    height: auto;
    opacity: 0.9;
    z-index: 10000;
}

@media (max-width: 768px) {
    .countdown-logo {
        max-width: 120px;
        bottom: 20px;
        right: 20px;
    }
}
