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

body {
    font-family: 'Poppins', 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #034ea0 0%, #0a5bb8 50%, #1e6fd1 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 280px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #e0f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 60px;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.game-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    border-radius: 4px;
}

.game-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.game-description {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.genius-icon {
    color: #ff6b6b;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.3));
}

.wordsearch-icon {
    color: #4ecdc4;
    filter: drop-shadow(0 4px 8px rgba(78, 205, 196, 0.3));
}

.memory-icon {
    color: #45b7d1;
    filter: drop-shadow(0 4px 8px rgba(69, 183, 209, 0.3));
}

.tapchallenge-icon {
    color: #42C0F0;
    filter: drop-shadow(0 4px 8px rgba(66, 192, 240, 0.3));
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .logo {
        width: 220px;
        margin-bottom: 25px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }

    .game-card {
        padding: 28px 20px;
    }

    .game-icon {
        font-size: 2.5rem;
    }

    .game-icon img {
        width: 22px;
        height: 22px;
    }

    .game-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 15px;
        max-width: 280px;
    }

    .game-card {
        padding: 24px 16px;
    }

    .game-icon {
        font-size: 2.2rem;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .game-description {
        font-size: 0.9rem;
    }
}
