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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.menu-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    width: 95%;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 20px;
}

.menu-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.header {
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
}

.title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    to { 
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 255, 255, 0.6);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.games-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.8rem;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.18);
}

.game-card:active {
    transform: translateY(-4px) scale(0.98);
}

.game-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.game-card:nth-child(1) .game-icon { animation-delay: 0s; }
.game-card:nth-child(2) .game-icon { animation-delay: 0.5s; }
.game-card:nth-child(3) .game-icon { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.game-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.stats-section {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile optimizations */
@media (max-width: 600px) {
    body {
        padding: 10px;
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: 30px;
        background: linear-gradient(45deg, #667eea 0%, #66ea7e 0%, #764ba2 100%);
        background-size: 200% 200%;
    }
    
    .menu-container {
        padding: 1.5rem;
        margin: 10px;
        border-radius: 15px;
    }
    
    .title {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .game-card {
        padding: 1.4rem;
        border-radius: 15px;
    }
    
    .game-icon {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    
    .game-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .game-description {
        font-size: 0.85rem;
    }
    
    .stats-section {
        padding: 1.2rem;
        margin-top: 1.2rem;
    }
    
    .stats-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 0.6rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .menu-container {
        padding: 1rem;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.8rem;
    }
    
    .game-card {
        padding: 1.2rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-description {
        font-size: 0.8rem;
    }
}