.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;
}

.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;
}

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

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

    .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;
    }
}