/* ============================= */
/* HOT GAMES GRID — FINAL FIX 2 */
/* ============================= */

/* СЕТКА ИГР */
#hotGamesGrid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* мобильные */
    gap: 8px !important;
    margin-top: 16px;
}

/* КАРТОЧКА — КВАДРАТ */
.game-card-square {
    aspect-ratio: 1 / 1;
    background: rgba(18, 31, 97, 0.9);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(245, 168, 18, 0.25);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* НАВЕДЕНИЕ */
.game-card-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 168, 18, 0.25);
}

/* КАРТИНКА */
.game-img-square {
    width: 100%;
    flex: 1 1 auto; /* Растягиваем на доступное место */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-img-lazy {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ТЕКСТ */
.game-content-square {
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: rgba(3, 5, 51, 0.6);
}

.game-title-square {
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.game-provider-square {
    font-size: 8px;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
}

/* КНОПКА */
.game-play-btn-square {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3,5,51,.75);
    color: #f5a812;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .25s ease;
}

.game-card-square:hover .game-play-btn-square {
    opacity: 1;
}

/* ============================= */
/* ПК — 8 КВАДРАТОВ В РЯД */
/* ============================= */
@media (min-width: 1200px) {
    #hotGamesGrid {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 12px !important;
    }

    .game-title-square {
        font-size: 11px;
    }

    .game-provider-square {
        font-size: 9px;
    }
}

/* ПЛАНШЕТ */
@media (min-width: 768px) and (max-width: 1199px) {
    #hotGamesGrid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
