.rbj-game,
.rbj-login-gate,
.rbj-rules {
    --rbj-bg: #07090a;
    --rbj-panel: #111417;
    --rbj-panel-2: #181c20;
    --rbj-table: #0d4937;
    --rbj-table-dark: #082f25;
    --rbj-gold: #d9ae57;
    --rbj-gold-light: #f4d893;
    --rbj-text: #faf7ef;
    --rbj-muted: #aaa69d;
    --rbj-danger: #ff7979;
    --rbj-success: #74efa9;
    color: var(--rbj-text);
    font-family: Inter, Arial, sans-serif;
}

.rbj-game {
    position: relative;
    width: min(1180px, calc(100% - 20px));
    margin: 22px auto 38px;
    overflow: hidden;
    border: 1px solid rgba(217,174,87,.3);
    border-radius: 24px;
    background: var(--rbj-bg);
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    -webkit-tap-highlight-color: transparent;
}

.rbj-game * {
    box-sizing: border-box;
}

.rbj-game button,
.rbj-game input {
    font: inherit;
}

.rbj-game button,
.rbj-game a {
    touch-action: manipulation;
}

.rbj-gamebar {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 78px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, #171a1e, #0c0e10);
}

.rbj-game-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rbj-game-identity > div {
    display: flex;
    flex-direction: column;
}

.rbj-game-identity span,
.rbj-wallet span,
.rbj-bet-head span,
.rbj-seat-label > span,
.rbj-hand-meta span {
    color: var(--rbj-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.rbj-game-identity strong {
    font-size: 20px;
    line-height: 1.1;
}

.rbj-back,
.rbj-icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: var(--rbj-text) !important;
    background: rgba(255,255,255,.04);
    text-decoration: none;
    font-size: 22px;
    cursor: pointer;
}

.rbj-back:hover,
.rbj-icon-button:hover,
.rbj-icon-button[aria-pressed="true"] {
    border-color: rgba(217,174,87,.55);
    color: var(--rbj-gold-light) !important;
    background: rgba(217,174,87,.09);
}

.rbj-icon-button.is-muted {
    color: var(--rbj-muted) !important;
}

.rbj-wallet {
    display: flex;
    min-width: 218px;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border: 1px solid rgba(217,174,87,.33);
    border-radius: 15px;
    background: rgba(217,174,87,.07);
}

.rbj-wallet strong {
    color: var(--rbj-gold-light);
    font-size: 19px;
    line-height: 1.15;
}

.rbj-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.rbj-table {
    position: relative;
    display: grid;
    min-height: 640px;
    grid-template-rows: minmax(190px, auto) 90px minmax(230px, auto) auto;
    overflow: hidden;
    padding: 24px 34px 18px;
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.07), transparent 35%),
        repeating-radial-gradient(circle at center, rgba(255,255,255,.018) 0 1px, transparent 1px 6px),
        linear-gradient(180deg, var(--rbj-table), var(--rbj-table-dark));
}

.rbj-table-ring {
    position: absolute;
    inset: 18px 22px 34px;
    border: 2px solid rgba(217,174,87,.38);
    border-radius: 38% 38% 22px 22px / 26% 26% 22px 22px;
    pointer-events: none;
}

.rbj-table-ring::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: inherit;
}

.rbj-shoe {
    position: absolute;
    top: 124px;
    right: 5.5%;
    width: 68px;
    height: 86px;
    transform: skewY(-7deg);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px 8px 18px 8px;
    background: #111417;
    box-shadow: 0 12px 24px rgba(0,0,0,.35);
}

.rbj-shoe span {
    position: absolute;
    top: 9px;
    width: 42px;
    height: 58px;
    border: 2px solid #eee7d7;
    border-radius: 5px;
    background: repeating-linear-gradient(45deg, rgba(217,174,87,.25) 0 3px, transparent 3px 7px), #191c20;
}

.rbj-shoe span:nth-child(1) { left: 8px; }
.rbj-shoe span:nth-child(2) { left: 12px; }
.rbj-shoe span:nth-child(3) { left: 16px; }

.rbj-seat {
    position: relative;
    z-index: 2;
}

.rbj-dealer-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rbj-seat-label,
.rbj-hand-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 66px;
}

.rbj-score-badge {
    display: inline-grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 3px solid rgba(255,255,255,.7);
    border-radius: 50%;
    color: #0a0b0c;
    background: var(--rbj-gold);
    box-shadow: 0 7px 18px rgba(0,0,0,.28), inset 0 0 0 3px rgba(0,0,0,.12);
    font-size: 24px;
    line-height: 1;
}

.rbj-score-badge.is-twenty-one {
    box-shadow: 0 0 0 6px rgba(244,216,147,.15), 0 7px 18px rgba(0,0,0,.28);
}

.rbj-score-badge.is-bust {
    color: #fff;
    border-color: rgba(255,255,255,.65);
    background: #ae3d46;
}

.rbj-cards {
    display: flex;
    min-height: 126px;
    align-items: center;
    justify-content: center;
    perspective: 900px;
}

.rbj-card {
    position: relative;
    width: clamp(72px, 8vw, 92px);
    height: clamp(104px, 11.5vw, 132px);
    margin-left: clamp(-24px, -2.2vw, -17px);
    overflow: hidden;
    transform: rotate(-1.6deg);
    border: 1px solid rgba(0,0,0,.3);
    border-radius: 11px;
    color: #111315;
    background: #fffdf7;
    box-shadow: 0 12px 24px rgba(0,0,0,.34);
    transform-origin: 50% 100%;
}

.rbj-card:first-child {
    margin-left: 0;
}

.rbj-card:nth-child(even) {
    transform: rotate(1.5deg);
}

.rbj-card.is-red {
    color: #bd2936;
}

.rbj-card.is-entering {
    animation: rbj-card-in .5s cubic-bezier(.17,.84,.32,1.16) both;
    animation-delay: var(--card-delay, 0ms);
}

.rbj-card.is-exiting {
    animation: rbj-card-out .28s ease-in both;
    animation-delay: var(--card-delay, 0ms);
}

.rbj-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
    line-height: .92;
}

.rbj-corner b {
    font-size: 17px;
}

.rbj-corner-top {
    top: 8px;
    left: 8px;
}

.rbj-corner-bottom {
    right: 8px;
    bottom: 8px;
    transform: rotate(180deg);
}

.rbj-card-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(32px, 4vw, 45px);
}

.rbj-card.is-hidden {
    display: grid;
    place-items: center;
    padding: 5px;
    border: 4px solid #ede6d7;
    color: var(--rbj-gold-light);
    background: #15181b;
}

.rbj-card-back {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 1px solid rgba(217,174,87,.7);
    border-radius: 6px;
    background:
        linear-gradient(45deg, transparent 42%, rgba(217,174,87,.16) 42% 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, rgba(217,174,87,.16) 42% 58%, transparent 58%),
        #191c20;
    background-size: 14px 14px;
}

.rbj-card-back span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--rbj-gold);
    border-radius: 50%;
    background: #101214;
    font-weight: 900;
}

.rbj-table-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(244,216,147,.72);
    text-align: center;
}

.rbj-table-copy strong {
    font-size: clamp(13px, 2.1vw, 20px);
    letter-spacing: .16em;
}

.rbj-table-copy span {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .22em;
}

.rbj-player-hands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    align-items: center;
}

.rbj-player-hand {
    position: relative;
    min-width: 0;
    padding: 8px 12px 14px;
    border: 1px solid transparent;
    border-radius: 22px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.rbj-player-hand.is-active {
    transform: translateY(-4px);
    border-color: rgba(244,216,147,.75);
    background: rgba(0,0,0,.13);
    box-shadow: 0 0 0 5px rgba(217,174,87,.07);
}

.rbj-hand-meta {
    margin-bottom: 2px;
}

.rbj-hand-meta > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rbj-hand-meta small {
    color: rgba(255,255,255,.7);
    font-size: 10px;
}

.rbj-result-pill {
    width: max-content;
    margin: 4px auto 0;
    padding: 5px 12px;
    border-radius: 99px;
    color: #0b0d0e;
    background: var(--rbj-gold-light);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    animation: rbj-result-pop .38s ease both;
}

.rbj-result-pill.is-win { background: var(--rbj-success); }
.rbj-result-pill.is-loss { color: #fff; background: #b8444c; }
.rbj-result-pill.is-push { background: var(--rbj-gold-light); }

.rbj-empty-state {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    color: rgba(255,255,255,.58);
}

.rbj-empty-state span {
    color: rgba(217,174,87,.6);
    font-size: 48px;
    line-height: 1;
}

.rbj-empty-state strong {
    margin-top: 9px;
    font-size: 14px;
}

.rbj-message {
    position: relative;
    z-index: 3;
    display: grid;
    min-height: 48px;
    place-items: center;
    align-self: end;
    margin: 7px auto 0;
    padding: 9px 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 99px;
    color: var(--rbj-text);
    background: rgba(5,8,9,.68);
    text-align: center;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.rbj-message.is-error {
    border-color: rgba(255,100,100,.35);
    color: #ffd1d1;
    background: rgba(90,20,25,.88);
}

.rbj-control-dock {
    position: relative;
    z-index: 10;
    min-height: 128px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #0b0d0f;
}

.rbj-bet-controls {
    max-width: 720px;
    margin: 0 auto;
}

.rbj-bet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
}

.rbj-bet-head > div:first-child {
    display: flex;
    flex-direction: column;
}

.rbj-bet-head small {
    color: var(--rbj-muted);
    font-size: 11px;
}

.rbj-quick-bets {
    display: flex;
    gap: 7px;
}

.rbj-quick-bets button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 3px dashed rgba(255,255,255,.66);
    border-radius: 50%;
    color: #101214;
    background: var(--rbj-gold);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.rbj-bet-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 10px;
}

.rbj-bet-entry input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    color: var(--rbj-text);
    background: #171a1e;
    font-size: 20px;
    font-weight: 800;
}

.rbj-bet-entry input:focus {
    border-color: var(--rbj-gold);
    outline: 3px solid rgba(217,174,87,.13);
}

.rbj-primary-action,
.rbj-action-controls button,
.rbj-finished-controls button {
    min-height: 54px;
    border: 1px solid rgba(217,174,87,.38);
    border-radius: 13px;
    color: #0b0c0d;
    background: var(--rbj-gold);
    font-weight: 900;
    cursor: pointer;
}

.rbj-action-controls {
    display: grid;
    max-width: 760px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 8px auto 0;
}

.rbj-action-controls[hidden],
.rbj-bet-controls[hidden],
.rbj-finished-controls[hidden] {
    display: none !important;
}

.rbj-action-controls button {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--rbj-text);
    background: #181c20;
}

.rbj-action-controls button span {
    color: var(--rbj-gold-light);
    font-size: 16px;
}

.rbj-action-controls button:hover:not(:disabled) {
    border-color: var(--rbj-gold);
    background: #20252a;
}

.rbj-game button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.rbj-finished-controls {
    display: flex;
    max-width: 560px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 9px auto 0;
}

.rbj-finished-controls a {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    color: var(--rbj-gold-light) !important;
    text-decoration: none;
    font-weight: 800;
}

.rbj-finished-controls button {
    min-width: 200px;
    padding: 0 20px;
}

.rbj-is-busy::after {
    content: '';
    position: absolute;
    z-index: 30;
    inset: 0;
    cursor: wait;
}

.rbj-game:fullscreen,
.rbj-game:-webkit-full-screen,
.rbj-game.rbj-theatre-mode {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--rbj-bg);
}

.rbj-game:fullscreen,
.rbj-game:-webkit-full-screen {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.rbj-game:fullscreen .rbj-table,
.rbj-game:-webkit-full-screen .rbj-table,
.rbj-game.rbj-theatre-mode .rbj-table {
    min-height: 0;
}

.rbj-game.rbj-theatre-mode {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

body.rbj-theatre-body {
    overflow: hidden !important;
}

.rbj-login-gate {
    display: grid;
    width: min(760px, calc(100% - 24px));
    min-height: 440px;
    place-items: center;
    margin: 45px auto;
    padding: 30px;
    border: 1px solid rgba(217,174,87,.3);
    border-radius: 24px;
    background:
        radial-gradient(circle at center, rgba(217,174,87,.14), transparent 42%),
        #0d1012;
    text-align: center;
}

.rbj-login-gate span {
    color: var(--rbj-gold);
    font-size: 70px;
}

.rbj-login-gate h2 {
    margin: 8px 0;
    color: var(--rbj-text);
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1;
}

.rbj-login-gate p {
    max-width: 520px;
    color: var(--rbj-muted);
}

.rbj-login-gate a,
.rbj-rules header a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 0 20px;
    border-radius: 12px;
    color: #0b0c0d !important;
    background: var(--rbj-gold);
    text-decoration: none;
    font-weight: 900;
}

.rbj-rules {
    width: min(1040px, calc(100% - 28px));
    margin: 50px auto;
}

.rbj-rules > header {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.rbj-rules > header > span {
    color: var(--rbj-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.rbj-rules h2 {
    margin: 10px 0;
    color: var(--rbj-text);
    font-size: clamp(38px, 7vw, 68px);
    line-height: .98;
}

.rbj-rules > header p,
.rbj-rules section p,
.rbj-demo-note {
    color: var(--rbj-muted);
}

.rbj-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.rbj-rules-grid section,
.rbj-rules-values {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: var(--rbj-panel);
}

.rbj-rules-grid section > strong {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #0b0c0d;
    background: var(--rbj-gold);
}

.rbj-rules h3 {
    margin: 15px 0 7px;
    color: var(--rbj-text);
    font-size: 23px;
}

.rbj-rules-values {
    margin-top: 15px;
}

.rbj-rules-values > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.rbj-rules-values > div:last-child {
    border-bottom: 0;
}

.rbj-rules-values span {
    color: var(--rbj-gold-light);
    font-size: 22px;
    font-weight: 900;
}

.rbj-rules-values p {
    margin: 0;
}

.rbj-demo-note {
    margin: 15px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(217,174,87,.26);
    border-radius: 14px;
    background: rgba(217,174,87,.06);
    text-align: center;
}

@keyframes rbj-card-in {
    0% {
        opacity: 0;
        transform: translate(220px, -140px) rotate(18deg) scale(.65);
    }
    70% {
        opacity: 1;
        transform: translate(-4px, 3px) rotate(-3deg) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: rotate(-1.6deg) scale(1);
    }
}

@keyframes rbj-card-out {
    to {
        opacity: 0;
        transform: translate(-180px, 80px) rotate(-20deg) scale(.62);
    }
}

@keyframes rbj-result-pop {
    0% { opacity: 0; transform: scale(.7); }
    70% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .rbj-card.is-entering,
    .rbj-card.is-exiting,
    .rbj-result-pill {
        animation: none;
    }
}

@media (max-width: 760px) {
    .rbj-game {
        width: min(100% - 10px, 1180px);
        margin: 6px auto 18px;
        border-radius: 16px;
    }

    .rbj-gamebar {
        grid-template-columns: 1fr auto;
        min-height: 66px;
        padding: 8px 9px;
    }

    .rbj-game-identity span,
    .rbj-game-identity strong {
        display: none;
    }

    .rbj-back,
    .rbj-icon-button {
        width: 39px;
        height: 39px;
        border-radius: 10px;
    }

    .rbj-wallet {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        min-height: 45px;
        padding: 4px 12px;
    }

    .rbj-toolbar {
        grid-column: 2;
        grid-row: 1;
    }

    .rbj-game-identity {
        grid-column: 1;
        grid-row: 1;
    }

    .rbj-wallet strong {
        font-size: 18px;
    }

    .rbj-table {
        min-height: 520px;
        grid-template-rows: minmax(150px, auto) 58px minmax(195px, auto) auto;
        padding: 12px 8px 12px;
    }

    .rbj-table-ring {
        inset: 8px 6px 28px;
        border-radius: 34% 34% 16px 16px / 18% 18% 16px 16px;
    }

    .rbj-shoe {
        top: 105px;
        right: 3%;
        transform: scale(.72) skewY(-7deg);
        transform-origin: right top;
    }

    .rbj-seat-label,
    .rbj-hand-meta {
        min-height: 53px;
    }

    .rbj-score-badge {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 21px;
    }

    .rbj-cards {
        min-height: 103px;
    }

    .rbj-card {
        width: 67px;
        height: 98px;
        margin-left: -19px;
        border-radius: 9px;
    }

    .rbj-corner {
        font-size: 12px;
    }

    .rbj-corner b {
        font-size: 14px;
    }

    .rbj-corner-top { top: 6px; left: 6px; }
    .rbj-corner-bottom { right: 6px; bottom: 6px; }
    .rbj-card-symbol { font-size: 31px; }

    .rbj-player-hands {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 4px;
    }

    .rbj-player-hand {
        padding: 4px 2px 9px;
        border-radius: 15px;
    }

    .rbj-hand-meta > div {
        display: none;
    }

    .rbj-table-copy strong {
        font-size: 11px;
    }

    .rbj-table-copy span {
        font-size: 8px;
    }

    .rbj-message {
        min-height: 42px;
        max-width: calc(100% - 16px);
        padding: 7px 13px;
        font-size: 12px;
    }

    .rbj-control-dock {
        position: sticky;
        bottom: 0;
        min-height: 112px;
        padding: 12px 10px max(12px, env(safe-area-inset-bottom));
    }

    .rbj-bet-head {
        margin-bottom: 8px;
    }

    .rbj-quick-bets button {
        width: 34px;
        height: 34px;
    }

    .rbj-bet-entry {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 7px;
    }

    .rbj-bet-entry input,
    .rbj-primary-action,
    .rbj-action-controls button,
    .rbj-finished-controls button,
    .rbj-finished-controls a {
        min-height: 50px;
    }

    .rbj-action-controls {
        gap: 6px;
        margin-top: 5px;
    }

    .rbj-action-controls button {
        flex-direction: column;
        gap: 1px;
        padding: 4px 2px;
        font-size: 11px;
    }

    .rbj-action-controls button span {
        font-size: 14px;
    }

    .rbj-finished-controls {
        gap: 7px;
    }

    .rbj-finished-controls button {
        min-width: 0;
        flex: 1;
    }

    .rbj-finished-controls a {
        padding: 0 12px;
        font-size: 12px;
    }

    .rbj-rules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .rbj-table {
        min-height: 500px;
    }

    .rbj-wallet span {
        display: none;
    }

    .rbj-wallet {
        min-height: 39px;
    }

    .rbj-card {
        width: 61px;
        height: 89px;
        margin-left: -18px;
    }

    .rbj-score-badge {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 19px;
    }

    .rbj-quick-bets button:nth-child(4) {
        display: none;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .rbj-game:fullscreen .rbj-gamebar,
    .rbj-game:-webkit-full-screen .rbj-gamebar,
    .rbj-game.rbj-theatre-mode .rbj-gamebar {
        min-height: 52px;
        grid-template-columns: 1fr auto 1fr;
    }

    .rbj-game:fullscreen .rbj-wallet,
    .rbj-game:-webkit-full-screen .rbj-wallet,
    .rbj-game.rbj-theatre-mode .rbj-wallet {
        grid-column: 2;
        grid-row: 1;
        min-height: 40px;
    }

    .rbj-game:fullscreen .rbj-table,
    .rbj-game:-webkit-full-screen .rbj-table,
    .rbj-game.rbj-theatre-mode .rbj-table {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        padding: 6px 12px;
    }

    .rbj-game:fullscreen .rbj-dealer-seat,
    .rbj-game:-webkit-full-screen .rbj-dealer-seat,
    .rbj-game.rbj-theatre-mode .rbj-dealer-seat {
        grid-column: 1;
        grid-row: 1;
    }

    .rbj-game:fullscreen .rbj-player-seat,
    .rbj-game:-webkit-full-screen .rbj-player-seat,
    .rbj-game.rbj-theatre-mode .rbj-player-seat {
        grid-column: 2;
        grid-row: 1;
    }

    .rbj-game:fullscreen .rbj-table-copy,
    .rbj-game:-webkit-full-screen .rbj-table-copy,
    .rbj-game.rbj-theatre-mode .rbj-table-copy {
        display: none;
    }

    .rbj-game:fullscreen .rbj-message,
    .rbj-game:-webkit-full-screen .rbj-message,
    .rbj-game.rbj-theatre-mode .rbj-message {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .rbj-game:fullscreen .rbj-control-dock,
    .rbj-game:-webkit-full-screen .rbj-control-dock,
    .rbj-game.rbj-theatre-mode .rbj-control-dock {
        min-height: 82px;
        padding: 7px 12px;
    }
}

/* --------------------------------------------------------------------------
   Reno Blackjack 2.1 — realistic table, live wager and sequential shoe deal
   -------------------------------------------------------------------------- */
.rbj-gamebar {
    grid-template-columns: minmax(180px, 1fr) auto auto minmax(170px, 1fr);
}

.rbj-last-result {
    display: grid;
    min-width: 190px;
    min-height: 52px;
    place-items: center;
    align-content: center;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px;
    background: rgba(255,255,255,.045);
    text-align: center;
}

.rbj-last-result > span,
.rbj-current-bet-box > span,
.rbj-round-result > span {
    color: var(--rbj-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.rbj-last-result strong {
    color: var(--rbj-gold-light);
    font-size: 17px;
    line-height: 1.15;
}

.rbj-last-result small {
    color: var(--rbj-muted);
    font-size: 9px;
    line-height: 1.1;
}

.rbj-last-result.is-win {
    border-color: rgba(116,239,169,.42);
    background: rgba(50,142,91,.13);
}
.rbj-last-result.is-win strong { color: var(--rbj-success); }
.rbj-last-result.is-loss {
    border-color: rgba(255,121,121,.42);
    background: rgba(161,50,59,.13);
}
.rbj-last-result.is-loss strong { color: #ff9c9c; }
.rbj-last-result.is-push,
.rbj-last-result.is-mixed {
    border-color: rgba(217,174,87,.38);
    background: rgba(217,174,87,.09);
}

.rbj-table {
    min-height: 680px;
    padding: 34px 44px 24px;
    border: 14px solid #27150d;
    border-top-color: #4a2b18;
    border-right-color: #2f1a10;
    border-bottom-color: #160c08;
    border-left-color: #382012;
    border-radius: 0 0 34px 34px;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.075), transparent 42%),
        radial-gradient(circle at 22% 28%, rgba(255,255,255,.025) 0 1px, transparent 1.5px),
        radial-gradient(circle at 76% 68%, rgba(0,0,0,.045) 0 1px, transparent 1.5px),
        repeating-radial-gradient(circle at center, rgba(255,255,255,.013) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, #126043 0%, #0d4f39 52%, #083829 100%);
    background-size: auto, 7px 7px, 9px 9px, auto, auto;
    box-shadow:
        inset 0 0 0 4px #0a241c,
        inset 0 0 0 7px rgba(218,181,104,.34),
        inset 0 25px 50px rgba(0,0,0,.18),
        inset 0 -35px 70px rgba(0,0,0,.35);
}

.rbj-table::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 12px 16px 18px;
    border: 2px solid rgba(245,216,147,.26);
    border-radius: 48% 48% 22px 22px / 30% 30% 22px 22px;
    box-shadow: inset 0 0 0 6px rgba(4,40,29,.36);
    pointer-events: none;
}

.rbj-table::after {
    content: '';
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 53px;
    width: min(430px, 74%);
    height: 155px;
    transform: translateX(-50%);
    border: 2px solid rgba(244,216,147,.46);
    border-bottom-color: transparent;
    border-radius: 50% 50% 0 0 / 72% 72% 0 0;
    box-shadow: inset 0 8px 28px rgba(0,0,0,.08);
    pointer-events: none;
}

.rbj-table-ring {
    inset: 25px 30px 39px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 47% 47% 24px 24px / 30% 30% 24px 24px;
}

.rbj-shoe {
    top: 112px;
    right: 4.2%;
    width: 82px;
    height: 104px;
    transform: perspective(280px) rotateY(-10deg) skewY(-4deg);
    border: 2px solid #070809;
    border-top-color: #454a4f;
    border-radius: 9px 9px 21px 11px;
    background: linear-gradient(145deg, #30353a, #101316 62%, #050607);
    box-shadow: 0 15px 25px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.16);
}

.rbj-shoe::after {
    content: 'SHOE';
    position: absolute;
    right: 7px;
    bottom: 8px;
    color: rgba(255,255,255,.56);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .13em;
}

.rbj-shoe b {
    position: absolute;
    z-index: 4;
    right: 7px;
    bottom: 18px;
    color: var(--rbj-gold-light);
    font-size: 11px;
    line-height: 1;
}

.rbj-shoe span {
    top: 8px;
    width: 51px;
    height: 67px;
    border: 3px solid #f2eadb;
    background:
        repeating-linear-gradient(45deg, rgba(217,174,87,.28) 0 3px, transparent 3px 7px),
        #171a1d;
}
.rbj-shoe span:nth-child(1) { left: 9px; }
.rbj-shoe span:nth-child(2) { left: 14px; }
.rbj-shoe span:nth-child(3) { left: 19px; }

.rbj-shoe.is-dealing {
    animation: rbj-shoe-kick .24s ease;
}

.rbj-score-badge {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-width: 4px;
    font-size: 29px;
    box-shadow:
        0 9px 22px rgba(0,0,0,.38),
        inset 0 0 0 4px rgba(0,0,0,.12),
        0 0 0 3px rgba(217,174,87,.13);
}

.rbj-table-copy {
    z-index: 3;
    gap: 9px;
}

.rbj-table-rules {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(244,216,147,.68);
}

.rbj-table-rules strong {
    font-size: clamp(12px, 1.8vw, 18px);
    letter-spacing: .17em;
}

.rbj-table-rules span {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: .2em;
}

.rbj-round-hud {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
}

.rbj-current-bet-box,
.rbj-round-result {
    display: grid;
    min-width: 150px;
    min-height: 57px;
    place-items: center;
    align-content: center;
    padding: 7px 15px;
    border: 2px solid rgba(244,216,147,.46);
    border-radius: 50%;
    background: rgba(4,32,23,.54);
    box-shadow: inset 0 0 0 3px rgba(0,0,0,.14), 0 8px 20px rgba(0,0,0,.16);
    backdrop-filter: blur(4px);
}

.rbj-current-bet-box strong,
.rbj-round-result strong {
    color: var(--rbj-gold-light);
    font-size: 18px;
    line-height: 1.1;
}

.rbj-round-result {
    border-radius: 14px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.rbj-round-result.is-empty {
    opacity: .72;
}
.rbj-round-result.is-win {
    transform: scale(1.04);
    border-color: rgba(116,239,169,.8);
    background: rgba(20,91,55,.74);
}
.rbj-round-result.is-win strong { color: var(--rbj-success); }
.rbj-round-result.is-loss {
    transform: scale(1.04);
    border-color: rgba(255,121,121,.76);
    background: rgba(111,27,34,.76);
}
.rbj-round-result.is-loss strong { color: #ffaaaa; }
.rbj-round-result.is-push,
.rbj-round-result.is-mixed {
    border-color: rgba(244,216,147,.74);
    background: rgba(79,60,24,.64);
}

.rbj-hand-meta small {
    color: #fff5dd;
    font-size: 11px;
    font-weight: 900;
}

.rbj-card {
    transform: rotate(var(--final-rotate, -1.6deg));
    will-change: transform, opacity;
}

.rbj-card:nth-child(even) {
    transform: rotate(var(--final-rotate, 1.5deg));
}

.rbj-card.is-staged {
    opacity: 0;
}

.rbj-card.is-entering {
    animation: rbj-card-from-shoe .62s cubic-bezier(.16,.82,.22,1.08) both;
    animation-delay: var(--card-delay, 0ms);
}

.rbj-card.is-flipping {
    animation: rbj-card-flip-live .56s cubic-bezier(.2,.72,.25,1) both;
    animation-delay: var(--card-delay, 0ms);
}

.rbj-card.is-exiting {
    animation: rbj-card-to-discard .34s ease-in both;
    animation-delay: var(--card-delay, 0ms);
}

.rbj-message {
    min-width: min(620px, calc(100% - 30px));
    border-color: rgba(244,216,147,.22);
    box-shadow: 0 7px 18px rgba(0,0,0,.2);
    font-weight: 700;
}

.rbj-control-dock {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 35%),
        #080a0c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.rbj-bet-controls {
    max-width: 780px;
}

.rbj-bet-entry input {
    border-width: 2px;
    font-size: 23px;
}

.rbj-primary-action {
    font-size: 16px;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px rgba(0,0,0,.2);
}

@keyframes rbj-card-from-shoe {
    0% {
        opacity: 0;
        transform: translate(var(--deal-x, 240px), var(--deal-y, -120px)) rotate(var(--deal-spin, 18deg)) scale(.55);
        filter: brightness(.68);
    }
    18% { opacity: 1; }
    72% {
        transform: translate(-5px, -8px) rotate(calc(var(--final-rotate, 0deg) - 2deg)) scale(1.035);
        filter: brightness(1.08);
    }
    100% {
        opacity: 1;
        transform: translate(0,0) rotate(var(--final-rotate, 0deg)) scale(1);
        filter: brightness(1);
    }
}

@keyframes rbj-card-flip-live {
    0% {
        opacity: .72;
        transform: rotateY(88deg) rotate(var(--final-rotate, 0deg)) scale(.9);
    }
    48% {
        transform: rotateY(-12deg) rotate(var(--final-rotate, 0deg)) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: rotateY(0) rotate(var(--final-rotate, 0deg)) scale(1);
    }
}

@keyframes rbj-card-to-discard {
    to {
        opacity: 0;
        transform: translate(-260px, 110px) rotate(-28deg) scale(.58);
        filter: brightness(.55);
    }
}

@keyframes rbj-shoe-kick {
    0%,100% { filter: brightness(1); }
    45% { filter: brightness(1.45); }
}

@media (max-width: 920px) {
    .rbj-gamebar {
        grid-template-columns: 1fr auto auto;
    }
    .rbj-last-result {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 43px;
        grid-template-columns: auto auto 1fr;
        justify-content: center;
        gap: 10px;
    }
    .rbj-toolbar {
        grid-column: 3;
    }
}

@media (max-width: 760px) {
    .rbj-gamebar {
        grid-template-columns: auto 1fr auto;
        gap: 7px;
    }

    .rbj-game-identity {
        grid-column: 1;
        grid-row: 1;
    }

    .rbj-toolbar {
        grid-column: 3;
        grid-row: 1;
    }

    .rbj-wallet {
        grid-column: 2;
        grid-row: 1;
        min-height: 42px;
        padding: 4px 8px;
    }

    .rbj-last-result {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        min-height: 37px;
        padding: 3px 8px;
    }

    .rbj-last-result > span {
        display: none;
    }

    .rbj-last-result strong {
        font-size: 14px;
    }

    .rbj-table {
        min-height: 555px;
        padding: 15px 8px 12px;
        border-width: 8px;
        border-radius: 0 0 20px 20px;
        grid-template-rows: minmax(155px, auto) 92px minmax(190px, auto) auto;
    }

    .rbj-table::before {
        inset: 5px 5px 12px;
    }

    .rbj-table::after {
        bottom: 43px;
        height: 115px;
    }

    .rbj-table-ring {
        inset: 9px 7px 24px;
    }

    .rbj-shoe {
        top: 95px;
        right: 1.5%;
        transform: scale(.68) perspective(280px) rotateY(-10deg) skewY(-4deg);
        transform-origin: right top;
    }

    .rbj-score-badge {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 25px;
    }

    .rbj-table-copy {
        gap: 5px;
    }

    .rbj-table-rules strong {
        font-size: 9px;
    }

    .rbj-table-rules span {
        display: none;
    }

    .rbj-round-hud {
        gap: 5px;
    }

    .rbj-current-bet-box,
    .rbj-round-result {
        min-width: 127px;
        min-height: 52px;
        padding: 5px 9px;
    }

    .rbj-current-bet-box strong,
    .rbj-round-result strong {
        font-size: 14px;
    }

    .rbj-current-bet-box > span,
    .rbj-round-result > span {
        font-size: 7px;
    }

    .rbj-hand-meta > div {
        display: flex;
    }

    .rbj-hand-meta span {
        font-size: 8px;
    }

    .rbj-hand-meta small {
        font-size: 9px;
    }

    .rbj-message {
        min-width: 0;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .rbj-toolbar .rbj-icon-button:first-child {
        display: none;
    }

    .rbj-wallet strong {
        font-size: 16px;
    }

    .rbj-last-result small {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rbj-table {
        min-height: 535px;
        grid-template-rows: minmax(145px, auto) 88px minmax(185px, auto) auto;
    }

    .rbj-score-badge {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 23px;
    }

    .rbj-current-bet-box,
    .rbj-round-result {
        min-width: 112px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .rbj-game:fullscreen .rbj-last-result,
    .rbj-game:-webkit-full-screen .rbj-last-result,
    .rbj-game.rbj-theatre-mode .rbj-last-result {
        display: none;
    }

    .rbj-game:fullscreen .rbj-table,
    .rbj-game:-webkit-full-screen .rbj-table,
    .rbj-game.rbj-theatre-mode .rbj-table {
        border-width: 6px;
    }

    .rbj-game:fullscreen .rbj-round-hud,
    .rbj-game:-webkit-full-screen .rbj-round-hud,
    .rbj-game.rbj-theatre-mode .rbj-round-hud {
        position: absolute;
        left: 50%;
        bottom: 8px;
        transform: translateX(-50%);
    }
}


@media (prefers-reduced-motion: reduce) {
    .rbj-card.is-entering,
    .rbj-card.is-flipping,
    .rbj-card.is-exiting,
    .rbj-shoe.is-dealing {
        animation-duration: .18s !important;
    }
}


/* Demo / Real PlayCoins mode */
.rbj-wallet-cluster { display:flex; align-items:center; justify-content:center; gap:10px; min-width:340px; }
.rbj-mode-switch { display:flex; padding:4px; border:1px solid rgba(255,255,255,.12); border-radius:13px; background:rgba(255,255,255,.04); }
.rbj-mode-switch button { min-height:36px; padding:0 13px; border:0; border-radius:9px; color:var(--rbj-muted); background:transparent; font-size:11px; font-weight:900; letter-spacing:.08em; cursor:pointer; }
.rbj-mode-switch button.is-active { color:#08120d; background:var(--rbj-gold-light); }
.rbj-mode-switch button:disabled { opacity:.45; cursor:not-allowed; }
.rbj-real-mode .rbj-wallet { border-color:rgba(116,239,169,.55); background:rgba(116,239,169,.08); }
.rbj-real-mode .rbj-wallet strong { color:var(--rbj-success); }
.rbj-wallet-modal { position:fixed; z-index:999999; inset:0; display:grid; place-items:center; padding:18px; background:rgba(0,0,0,.78); backdrop-filter:blur(8px); }
.rbj-wallet-modal[hidden] { display:none !important; }
.rbj-wallet-dialog { position:relative; width:min(760px,100%); max-height:calc(100vh - 36px); overflow:auto; padding:28px; border:1px solid rgba(217,174,87,.35); border-radius:22px; background:#101418; color:var(--rbj-text); }
.rbj-wallet-dialog>span { color:var(--rbj-gold); font-size:11px; font-weight:900; letter-spacing:.16em; }
.rbj-wallet-dialog h2 { margin:7px 0 8px; font-size:25px; }
.rbj-wallet-close { position:absolute; top:12px; right:12px; width:38px; height:38px; border:1px solid rgba(255,255,255,.12); border-radius:10px; color:#fff; background:#1b2025; font-size:24px; cursor:pointer; }
.rbj-wallet-warning { margin:0 0 18px; color:#e8c978; }
.rbj-wallet-address { padding:14px; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:#0b0e10; }
.rbj-wallet-address small { display:block; margin-bottom:6px; color:var(--rbj-muted); }
.rbj-wallet-address code { display:block; overflow-wrap:anywhere; color:var(--rbj-success); font-size:14px; }
.rbj-wallet-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }
.rbj-wallet-grid section { padding:18px; border:1px solid rgba(255,255,255,.1); border-radius:16px; background:#171b1f; }
.rbj-wallet-grid h3 { margin:0 0 14px; }
.rbj-wallet-grid label { display:block; margin:10px 0; color:var(--rbj-muted); font-size:13px; }
.rbj-wallet-grid input { width:100%; margin-top:6px; padding:12px; border:1px solid rgba(255,255,255,.14); border-radius:10px; color:#fff; background:#0b0e10; }
.rbj-wallet-grid button { width:100%; min-height:44px; margin-top:8px; border:0; border-radius:11px; color:#06110b; background:var(--rbj-success); font-weight:900; cursor:pointer; }
.rbj-wallet-grid button:disabled { opacity:.45; cursor:not-allowed; }
.rbj-wallet-message { min-height:22px; margin:14px 0 0; color:var(--rbj-success); }
body.rbj-wallet-open { overflow:hidden; }
@media (max-width: 860px) {
    .rbj-gamebar { grid-template-columns:1fr auto; }
    .rbj-wallet-cluster { grid-column:1 / -1; grid-row:2; min-width:0; width:100%; }
    .rbj-wallet { flex:1; min-width:0; }
}
@media (max-width: 620px) {
    .rbj-wallet-cluster { gap:6px; }
    .rbj-mode-switch button { padding:0 9px; }
    .rbj-wallet-grid { grid-template-columns:1fr; }
    .rbj-wallet-dialog { padding:22px 16px; }
}

.rbj-topup-link{width:auto!important;min-width:68px;padding:0 10px!important;font-size:11px!important;text-decoration:none!important}.rbj-wallet-topup{display:flex;align-items:center;justify-content:center;background:#2bd47d;color:#07130e!important;padding:14px 18px;border-radius:12px;text-decoration:none;font-weight:800}

.rbj-topup-link{display:none!important}.rbj-real-mode .rbj-topup-link{display:flex!important}




/* v2.6 mobile-first DEMO / REAL header */
.rbj-wallet-cluster { min-width: 0; }
@media (max-width: 760px) {
    .rbj-game { width: 100%; margin: 0; border: 0; border-radius: 0; }
    .rbj-gamebar { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "back tools" "mode mode" "result result"; gap: 8px; padding: 9px 10px 10px; }
    .rbj-game-identity { grid-area: back; min-width: 0; }
    .rbj-toolbar { grid-area: tools; display: grid; grid-template-columns: minmax(72px, auto) repeat(4, 42px); justify-content: end; gap: 7px; min-width: 0; }
    .rbj-wallet-cluster { grid-area: mode; display: grid; width: 100%; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; align-items: stretch; }
    .rbj-mode-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-width: 0; padding: 4px; }
    .rbj-mode-switch button { min-width: 0; min-height: 46px; padding: 0 6px; font-size: 12px; white-space: nowrap; }
    .rbj-wallet { width: 100%; min-width: 0; min-height: 54px; padding: 6px 10px; overflow: hidden; }
    .rbj-wallet span { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; letter-spacing: .1em; text-align: center; }
    .rbj-wallet strong { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(15px, 4.6vw, 19px); text-align: center; }
    .rbj-last-result { grid-area: result; width: 100%; min-height: 40px; margin: 0; padding: 5px 9px; overflow: hidden; }
    .rbj-last-result strong, .rbj-last-result small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rbj-topup-link { display: none !important; width: auto !important; min-width: 72px !important; padding: 0 10px !important; white-space: nowrap; }
    .rbj-real-mode .rbj-topup-link { display: flex !important; }
    .rbj-back, .rbj-icon-button { width: 42px; height: 42px; flex: 0 0 42px; }
}
@media (max-width: 480px) {
    .rbj-gamebar { grid-template-columns: 42px minmax(0, 1fr); padding-inline: 8px; }
    .rbj-toolbar { grid-template-columns: minmax(68px, auto) repeat(3, 40px); gap: 5px; }
    .rbj-toolbar > :nth-child(4) { display: none; }
    .rbj-wallet-cluster { grid-template-columns: 112px minmax(0, 1fr); gap: 6px; }
    .rbj-mode-switch button { min-height: 44px; font-size: 11px; }
    .rbj-wallet { min-height: 52px; padding-inline: 7px; }
}
@media (max-width: 360px) {
    .rbj-toolbar { grid-template-columns: minmax(64px, auto) repeat(2, 38px); }
    .rbj-toolbar > :nth-child(3), .rbj-toolbar > :nth-child(4) { display: none; }
    .rbj-wallet-cluster { grid-template-columns: 102px minmax(0, 1fr); }
}
