
/* OMTOPUP V2 - GAME POPULER RESPONSIVE GRID FINAL */

.game-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.game-grid > .game-card {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .game-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 767px) {
    body .game-grid,
    body div.game-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 9px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-items: stretch !important;
    }

    body .game-grid > .game-card {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 13px !important;
    }

    body .game-grid > .game-card .game-cover {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body .game-grid > .game-card .game-cover img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    body .game-grid > .game-card .game-body {
        min-width: 0 !important;
        padding: 8px 6px !important;
    }

    body .game-grid > .game-card .game-body strong {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
    }

    body .game-grid > .game-card .game-body span {
        display: block !important;
        font-size: 9px !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
    }
}

@media (max-width: 360px) {
    body .game-grid {
        gap: 7px !important;
    }

    body .game-grid > .game-card .game-body {
        padding: 6px 4px !important;
    }
}


/* =========================================================
   OMT-MOBILE-GAME-CARD-UNIFORM-V2
   Tampilan kartu Game Populer khusus mobile
   ========================================================= */

@media screen and (max-width: 767px) {

    .game-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .game-grid > .game-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 13px !important;
        border: 1px solid rgba(0, 190, 255, .36) !important;
        background: #071365 !important;
        box-sizing: border-box !important;
    }

    .game-grid > .game-card > .game-cover {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        background: #081b35 !important;
    }

    .game-grid > .game-card > .game-cover > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 0 !important;
    }

    .game-grid > .game-card > .game-cover > .game-placeholder {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .game-grid > .game-card > .game-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        flex: 1 0 auto !important;
        gap: 4px !important;
        width: 100% !important;
        min-height: 62px !important;
        margin: 0 !important;
        padding: 8px 6px 9px !important;
        box-sizing: border-box !important;
        background: #071365 !important;
        border-radius: 0 !important;
        text-align: left !important;
    }

    .game-grid > .game-card > .game-body > strong {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        width: 100% !important;
        min-height: 30px !important;
        margin: 0 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 15px !important;
        overflow-wrap: anywhere !important;
    }

    .game-grid > .game-card > .game-body > span {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        color: #ffdf00 !important;
        font-size: 9px !important;
        font-weight: 500 !important;
        line-height: 13px !important;
        overflow-wrap: anywhere !important;
    }
}

@media screen and (max-width: 360px) {
    .game-grid {
        gap: 7px !important;
    }

    .game-grid > .game-card > .game-body {
        padding: 7px 5px 8px !important;
    }

    .game-grid > .game-card > .game-body > strong {
        font-size: 10px !important;
        line-height: 14px !important;
        min-height: 28px !important;
    }
}


/* ==================================================
   OMT-MOBILE-GAME-CARD-NO-GAP-V3
   Perbaikan sambungan gambar dan informasi game
   ================================================== */

@media screen and (max-width: 767px) {

    .game-grid > a.game-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .game-grid > a.game-card > .game-cover {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
    }

    .game-grid > a.game-card > .game-cover > img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
        vertical-align: top !important;
    }

    .game-grid > a.game-card > .game-body {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 3px !important;
        width: 100% !important;
        min-height: 62px !important;
        height: auto !important;
        flex: 1 0 auto !important;
        margin: 0 !important;
        padding: 7px 6px 8px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #071365 !important;
        box-sizing: border-box !important;
    }

    .game-grid > a.game-card > .game-body > strong,
    .game-grid > a.game-card > .game-body > span {
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media screen and (max-width: 360px) {
    .game-grid > a.game-card > .game-body {
        padding: 7px 5px 8px !important;
    }
}


/* =====================================================
   OMT-GAME-CARD-UNIFIED-COLORS-V4
   Seragamkan desain game card desktop/tablet/mobile
   ===================================================== */

/* Seluruh ukuran layar */
.game-grid > a.game-card {
    overflow: hidden !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 190, 255, .34) !important;
    background: #071365 !important;
    box-sizing: border-box !important;
}

/* Kotak informasi game */
.game-grid > a.game-card > .game-body {
    background: #071365 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

/* Nama game */
.game-grid > a.game-card > .game-body > strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Publisher game */
.game-grid > a.game-card > .game-body > span {
    color: #ffe500 !important;
}

/* Sambungan gambar dengan kotak informasi */
.game-grid > a.game-card > .game-cover {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* Desktop dan tablet: rapikan gambar dan informasi */
@media screen and (min-width: 768px) {

    .game-grid > a.game-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .game-grid > a.game-card > .game-cover {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
        overflow: hidden !important;
        line-height: 0 !important;
    }

    .game-grid > a.game-card > .game-cover > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .game-grid > a.game-card > .game-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        flex: 1 0 auto !important;
        min-height: 65px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
    }

    .game-grid > a.game-card > .game-body > strong,
    .game-grid > a.game-card > .game-body > span {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile: pertahankan ukuran dan susunan V3 */
@media screen and (max-width: 767px) {

    .game-grid > a.game-card > .game-body {
        background: #071365 !important;
    }

    .game-grid > a.game-card > .game-body > strong {
        color: #ffffff !important;
    }

    .game-grid > a.game-card > .game-body > span {
        color: #ffe500 !important;
    }
}

