.games-detail-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0
}

.main-display {
    position: relative;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
}

    .main-display .display-wrapper {
        object-fit: cover;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
        opacity: 1;
        position: relative;
        background: linear-gradient(to right, #161a43, #a0a6ef 50% 50%, #161a43);
    }

        .main-display .display-wrapper .btn-action {
            display: none;
            flex-direction: row;
            gap: 8px;
            align-items: center;
            justify-content: center;
            opacity: 1;
            border-radius: 12px;
            padding: 4px 16px;
            gap: 4px;
            background-color: #2F80ED;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
        }

            .main-display .display-wrapper .btn-action.active {
                display: flex;
            }

            .main-display .display-wrapper .btn-action img {
                width: 20px;
                height: 20px;
            }

            .main-display .display-wrapper .btn-action p {
                all: unset;
                font-weight: 600;
                font-size: 16px;
                line-height: 28px;
                letter-spacing: 0;
                vertical-align: middle;
                color: #FFFFFF;
                white-space: nowrap;
            }

        .main-display .display-wrapper .selected-image {
            border-top-left-radius: 13px;
            border-top-right-radius: 13px;
            object-fit: contain;
            aspect-ratio: 16/9;
            width: 100%;
        }

            .main-display .display-wrapper .selected-image.active {
                opacity: 0.4
            }

@media (min-width: 1024px) {
    .main-display .display-wrapper .selected-image:hover {
        opacity: 0.4
    }

    .main-display .display-wrapper:hover .btn-action {
        display: flex;
    }

    .main-display .display-wrapper .selected-image {
        aspect-ratio: 267 / 80;
    }
}

.main-display .main-panel {
    justify-content: space-between;
    opacity: 1;
    border-bottom-right-radius: 13px;
    border-bottom-left-radius: 13px;
    padding: 6px 18px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #33313B;
}

.main-display h2 {
    all: unset;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 12px;
    line-height: 170%;
    letter-spacing: 0;
    color: #FFFFFF;
    white-space: break-spaces;
}

.main-display .main-panel .action-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

    .main-display .main-panel .action-wrapper button {
        width: 32px;
        height: 22px;
        opacity: 1;
        border-radius: 12px;
        gap: 10px;
        background-color: #4E4B59;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .main-display .main-panel .action-wrapper button img {
            width: 14px;
            height: 14px;
        }

.games-detail-gallery .thumbnail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
}

    .games-detail-gallery .thumbnail-list::-webkit-scrollbar {
        display: none;
    }

    .games-detail-gallery .thumbnail-list .thumbnail-item {
        aspect-ratio: 2/1;
        border-radius: 8px;
        cursor: pointer;
        background: linear-gradient(to right, #161a43, #3a3d67 50% 50%, #161a43);
    }

        .games-detail-gallery .thumbnail-list .thumbnail-item img {
            min-width: 100px;
            object-fit: contain;
            border-radius: 8px;
            border: none;
            opacity: 0.4;
            aspect-ratio: 2/1;
            width: 100%;
        }

            .games-detail-gallery .thumbnail-list .thumbnail-item img.active {
                border: 3px solid #2F80ED;
                opacity: 1;
            }

.my-credit-wrapper {
    opacity: 1;
    border-radius: 13px;
    gap: 8px;
    padding: 16px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

    .my-credit-wrapper h3 {
        all: unset;
        font-family: Montserrat;
        font-weight: 600;
        font-size: 10px;
        line-height: 170%;
        letter-spacing: 0%;
        text-transform: uppercase;
        color: #858585;
    }

    .my-credit-wrapper .credit-points {
        opacity: 1;
        border-radius: 8px;
        padding: 4px 22px;
        gap: 10px;
        background: linear-gradient(180deg, #2F80ED 0%, #0E63D5 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: Montserrat;
        font-weight: 700;
        font-size: 18px;
        line-height: 170%;
        letter-spacing: 0;
        color: #FCFCFC;
    }

    .my-credit-wrapper .btn-topup {
        opacity: 1;
        border-radius: 6px;
        gap: 6px;
        padding: 8px;
        background-color: #FCE61B;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        cursor: pointer;
    }

        .my-credit-wrapper .btn-topup p {
            all: unset;
            font-family: Montserrat;
            font-weight: 600;
            font-size: 14px;
            line-height: 170%;
            letter-spacing: 0%;
            color: #33313B;
        }

        .my-credit-wrapper .btn-topup img {
            height: 24px;
        }

.my-credit-section .banner {
    width: 100%;
}

.my-credit-container {
    display: flex;
    width: 100%;
    height: 100%;
}

    .my-credit-container .banner {
        display: none;
    }

@media (min-width: 1024px) {
    .my-credit-container {
        gap: 16px;
    }

        .my-credit-container .banner {
            display: block;
            width: 70%;
            aspect-ratio: 267 / 80;
            object-fit: cover;
        }

    .my-credit-wrapper {
        width: 30%;
    }
}

.game-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

    .game-info-wrapper .game-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        opacity: 1;
        border-radius: 13px;
        padding: 18px;
        background-color: #FFFFFF;
    }

        .game-info-wrapper .game-info h2 {
            all: unset;
            font-family: Montserrat;
            font-weight: 700;
            font-size: 14px;
            line-height: 170%;
            letter-spacing: 0%;
            color: #33313B;
        }

        .game-info-wrapper .game-info .breadcrumb {
            all: unset;
            display: flex;
            flex-direction: row;
            gap: 6px;
            align-items: center;
        }

            .game-info-wrapper .game-info .breadcrumb a {
                all: unset;
                font-family: Montserrat;
                font-weight: 600;
                font-size: 12px;
                line-height: 170%;
                letter-spacing: 0%;
                color: #2F80ED;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

        .game-info-wrapper .game-info .game-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

            .game-info-wrapper .game-info .game-meta .meta-item {
                display: flex;
                gap: 4px;
            }

            .game-info-wrapper .game-info .game-meta .key {
                all: unset;
                font-family: Montserrat;
                font-weight: 500;
                font-size: 14px;
                line-height: 170%;
                letter-spacing: 0%;
                color: #858585;
            }

            .game-info-wrapper .game-info .game-meta .value {
                all: unset;
                font-family: Montserrat;
                font-weight: 600;
                font-size: 14px;
                line-height: 170%;
                letter-spacing: 0%;
                color: #33313B;
            }

            .game-info-wrapper .game-info .game-meta h3 {
                font-family: Montserrat;
                font-weight: 700;
                font-size: 12px;
                line-height: 170%;
                letter-spacing: 0%;
                color: #33313B;
            }

            .game-info-wrapper .game-info .game-meta .detail {
                font-family: Montserrat;
                font-weight: 400;
                font-size: 14px;
                line-height: 170%;
                letter-spacing: 0%;
                color: #858585;
            }

.others-game {
    display: flex;
    flex-direction: column;
    gap: 8px
}

    .others-game h3 {
        all: unset;
        font-family: Montserrat;
        font-weight: 700;
        font-size: 14px;
        line-height: 170%;
        letter-spacing: 0%;
        color: #33313B;
    }

.others-game-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .others-game-list .game-label.download,
    .others-game-list .game-label.play {
        opacity: 1;
        border-radius: 11px;
        padding: 2px 12px;
        gap: 10px;
        font-family: Montserrat;
        font-weight: 700;
        font-size: 14px;
        line-height: 170%;
        letter-spacing: 0%;
        color: #FFFFFF;
        white-space: nowrap;
    }

.games-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.games-detail-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CTA button below gallery - styled similar to .my-credit-wrapper .btn-topup */
.cta-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100vw - 32px);
    border-radius: 6px;
    padding: 12px 16px;
    background-color: #FCE61B;
    text-decoration: none;
    cursor: pointer;
    margin: auto;
}

.cta-action p {
    all: unset;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0%;
    color: #33313B;
}

.cta-action img {
    height: 24px;
}

.cta-action:focus {
    outline: 2px solid #33313B;
    outline-offset: 2px;
}

@media (min-width: 1024px) {
    .cta-action {
        max-width: 400px; /* similar visual weight to sidebar */
        margin: 0 auto; /* center on desktop */
    }
}

@media (min-width: 1024px) {
    .others-game-list .game-item {
        width: 100%;
    }

    .games-detail-wrapper {
        flex-direction: row;
        gap: 0;
        width: 100%;
    }

    .games-detail-container {
        min-width: 60%;
    }

    .others-game {
        width: 40%;
        max-width: 400px;
    }
}