.games-section {
    padding: 24px 0 8px;
}

.games-container {
    width: 100%;
}

.games-container > h1 {
    margin-bottom: 16px;
    text-align: center;
}

.games-empty {
    text-align: center;
    color: #9daecc;
    margin-bottom: 24px;
}

.games-grid {
    display: grid;
    width: min(100%, 1454px);
    margin: 0 auto;
    grid-template-columns: repeat(4, 350px);
    gap: 18px;
    justify-content: center;
}

.games-item {
    width: 100%;
    display: grid;
    align-content: start;
    gap: 8px;
}

.games-card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #161f31;
    border: 1px solid #2a3b59;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.games-card__cover {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #0f1726;
}

.games-card__info {
    padding: 0 4px 2px;
    display: grid;
    gap: 6px;
}

.games-card__title {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.games-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #afc0dd;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-button {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

.game-button__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 270px;
    height: 60px;
    border-radius: 50px;
    border: 1px solid #75BBFC;
    background: #148EFF;
    font-size: 20px;
    color: #ffffff;
    transition: background 0.2s ease;
}

.game-button__link:hover {
    background: #0f78d9;
}

@media (max-width: 1500px) {
    .games-grid {
        width: min(100%, 1100px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .games-grid {
        width: min(100%, 760px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 8px;
    }
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: 1fr;
        width: min(100%, 360px);
        padding: 0;
    }

    .games-item {
        width: 100%;
    }

    .games-card__cover {
        height: auto;
        aspect-ratio: 7 / 4;
    }

    .game-button__link {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 420px) {
    .games-section {
        padding-top: 18px;
    }

    .games-card__title {
        font-size: 14px;
    }

    .games-card__desc {
        font-size: 12px;
        min-height: 34px;
    }

    .game-button__link {
        height: 52px;
        font-size: 18px;
    }
}
