/*
 * One hero component for all five games. Never styles a game/page wrapper.
 * The body branch covers standalone Baccarat. The real game IDs give every
 * branch enough specificity to beat legacy #pb-app h1/p declarations.
 * Important colors are limited to text affected by the site's dark rules.
 */
:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] {
    --rgh-title-size: 38px;
    --rgh-icon-size: 52px;
    --rgh-symbol-size: 44px;
    --rgh-eyebrow-size: 12px;
    --rgh-description-size: 14px;
    --rgh-balance-size: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    min-height: 196px;
    margin: 0 0 22px;
    padding: 30px 34px;
    border: 1px solid rgba(136, 157, 197, .25);
    border-radius: 22px;
    background: linear-gradient(135deg, #121a34, #243664 62%, #78551b);
    color: #fff;
    font-family: inherit;
    font-style: normal;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 18px 45px rgba(15, 25, 55, .18);
}

[data-royal-game-hero],
[data-royal-game-hero] * {
    box-sizing: border-box;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-hero-copy {
    flex: 1 1 0;
    min-width: 0;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-eyebrow {
    margin: 0 0 6px;
    color: #ffd36c !important;
    font-family: inherit;
    font-size: var(--rgh-eyebrow-size);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .16em;
    overflow-wrap: anywhere;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0 0 8px;
    color: #fff !important;
    font-family: inherit;
    font-size: var(--rgh-title-size);
    font-style: normal;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-title-text {
    display: block;
    min-width: 0;
    color: inherit;
    font: inherit;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-symbol {
    display: inline-flex;
    flex: 0 0 var(--rgh-icon-size);
    align-items: center;
    justify-content: center;
    width: var(--rgh-icon-size);
    height: var(--rgh-icon-size);
    margin: 0;
    padding: 0;
    color: #ffd36c;
    font-family: inherit;
    font-size: var(--rgh-symbol-size);
    font-weight: 900;
    line-height: 1;
    filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .28));
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-symbol > :is(img, svg) {
    display: block;
    flex: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    filter: none;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-description {
    min-width: 0;
    margin: 0;
    color: #d9e2ff !important;
    font-family: inherit;
    font-size: var(--rgh-description-size);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 190px;
    min-height: 132px;
    max-width: 45%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 15px;
    background: rgba(255, 255, 255, .1);
    text-align: right;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > span {
    display: block;
    min-width: 0;
    margin: 0;
    color: #dbe2f9;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > strong {
    display: block;
    min-width: 0;
    margin: 4px 0 0;
    color: #ffd36c;
    font-family: inherit;
    font-size: var(--rgh-balance-size);
    font-weight: 800;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    overflow-wrap: anywhere;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    min-height: 32px;
    margin: 4px 0 0;
    padding: 4px 0;
    color: #d9e2ff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > a:hover {
    color: #fff;
}

:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > a:focus-visible {
    border-radius: 4px;
    outline: 3px solid #91baff;
    outline-offset: 3px;
}

/* Baccarat has no game-page wrapper; preserve its existing outer alignment. */
:is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero].royal-game-hero-baccarat {
    max-width: 1280px;
    margin: 28px auto 18px;
}

@media (max-width: 767px) {
    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] {
        --rgh-title-size: 30px;
        --rgh-icon-size: 44px;
        --rgh-symbol-size: 38px;
        --rgh-eyebrow-size: 11px;
        --rgh-description-size: 13px;
        --rgh-balance-size: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        min-height: 0;
        margin-bottom: 14px;
        padding: 20px;
        border-radius: 18px;
    }

    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-hero-copy {
        flex: none;
    }

    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-content: normal;
        gap: 0 12px;
        flex: none;
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-width: 100%;
        padding: 11px 14px;
        border-radius: 11px;
    }

    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > span {
        font-size: 12px;
        text-align: left;
    }

    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > strong {
        margin: 0;
    }

    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] .royal-game-balance > a {
        grid-column: 1 / -1;
        min-height: 44px;
        margin-top: 4px;
    }

    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero].royal-game-hero-baccarat {
        margin: 16px 10px 14px;
    }
}

@media (max-width: 420px) {
    :is(#oryongApp, #godfatherApp, #ud-app, #pb-app, body) [data-royal-game-hero] {
        padding: 18px;
    }
}
