.page-game .page-title {
    margin-top: 24px;
    margin-bottom: 12px;
}

.game-stage {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    margin: 0 auto;
}

.game-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


#gameFrame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.game-layout {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.game-left {
    flex: 1;
    min-width: 0;
}

.game-right {
    width: 320px;
    max-width: 32%;
    border-left: 1px solid #e0e0e0;
    padding-left: 12px;
    overflow: auto;
}

.game-right h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.game-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-right li {
    margin: 6px 0;
}

.game-right a {
    display: block;
    padding: 4px 6px;
    text-decoration: none;
    border-radius: 6px;
    color: inherit;
}

.game-right a:hover {
    /*background: #f2f2f5;*/
}

.game-right-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
}

.game-right-header span {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #8ea1b2;
    text-transform: uppercase;
}

.game-right-all {
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    color: #8ea1b2;
}

.game-right-all:hover {
    text-decoration: underline;
}

.game-right-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
    justify-items: center;
}

.game-right-cards li a {
    display: block;
    text-decoration: none;
    color: inherit;
    /*width: 270px;*/
}

.gr-thumb {
    width: 270px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: auto !important;
}

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

.gr-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1b2a41, #0b1524);
}

.gr-meta {
    margin-top: 5px;
}

.gr-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #415b76;
}

.game-title-under {
    margin: 10px 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.balance-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
}

.balance-bar {
    margin: 10px 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: gray 1px solid;
}

.balance-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 12px;
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #386DAF;
}

.mybalance_label {
    font-weight: 600;
    opacity: .85;
}

.pointsVal {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.redeem_button {
    background: #415b76;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 10px 18px;
    transition: filter .15s ease, transform .06s ease;
    font-size: 18px;
}

.redeem_button:hover {
    filter: brightness(0.9);
}

.balance-amount .balance-unit {
    font-weight: 700;
    margin-left: 6px;
}

.balance-sub {
    font-size: 13px;
    opacity: .85;
    margin-top: 6px;
}

.bannerBg {
    margin-bottom: 20px;
}

.banner-main-728-90 {
    width: 100%;
    margin: 21px auto 21px auto;
    text-align: center;
}

.banner-main-728-90 div {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .game-stage {
        border-radius: 10px;
    }
}

@media (max-width: 900px) {
    .game-layout {
        flex-direction: column;
        margin-top: 5px;
    }

    .game-right {
        width: auto;
        max-width: none;
        border-left: 0;
        padding-left: 0;
    }

    .balance-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .balance-row .text-right {
        text-align: left;
    }

    .balance-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@supports not (aspect-ratio: 16 / 9) {
    .game-stage {
        height: auto;
    }

    .game-stage::before {
        content: "";
        display: block;
        padding-top: 56.25%; /* 9/16 */
    }

    .game-stage > iframe {
        position: absolute;
        inset: 0;
    }
}

#cnx-outer-container {
    padding-bottom: 5px !important;
}

#cnx-ad-banner {
    display: none;
}

#cnx-overlay[data-waiting-ad="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
    height: 1px;
}

#cnx-skip {
    display: none !important;
}

/* Balance info popup styles */
.balance-amount {
    position: relative;
}

.balance-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background: #6c757d;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    vertical-align: middle;
}

.balance-info-icon:hover {
    background: #5a6268;
}

.balance-info-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 70%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    width: 240px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-align: left;
}

.balance-info-popup.active {
    display: block;
}

.balance-info-popup p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.balance-amount.disabled > #ptscount,
.balance-amount.disabled > .balance-unit {
    color: #999;
}