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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

h1 {
    color: #000;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.games-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
}

.game-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    width: 200px;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.game-icon {
    width: 200px;
    height: 200px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-icon.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.game-title {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 400;
    color: #000;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .games-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .game-card {
        width: 180px;
    }

    .game-icon {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .game-card {
        width: 160px;
    }

    .game-icon {
        width: 160px;
        height: 160px;
    }
}