

.table-container.dice-table {
	margin: 40px 0 0;
	/*text-align: center;*/
}

.table-container.dice-table .table-column {
	padding-left: 40px !important;
}

.table-container.dice-table .table-row {
	border-bottom: 0;	
}

.table-container.dice-table .table-body .table-row {
	padding: 10px 0;
}

.table-container.dice-table .table-row i {
	color: #ffc34c;
	margin-left: 3px;
}

.table-container.dice-table .table-row:nth-child(even) {
	/*border-bottom: 0;*/
	background: var(--site-color-bg-dark);
}

.table-container.dice-table .table-header {
	background: var(--site-color-bg-light);
	border: 0;
	color: #596076;
}

.table-container.dice-table .table-body {
	/*x*/
}

.table-container.dice-table .avatar {
	border-width: 2px;
	margin-right: 5px;
}
.wheel-risk-btn.active { background: #8d3bde; border-color: #8d3bde; color: #fff; }

/* =========================================
   BACCARAT GAME
   ========================================= */

.bcr-game-layout {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    min-height: 520px;
    margin-bottom: 24px;
}

/* ── Left panel ── */
.bcr-controls {
    width: clamp(260px, 28vw, 340px);
    min-width: 240px;
    background: #3b274f;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}
.bcr-segment { display: flex; flex-direction: column; gap: 6px; }
.bcr-label { font-size: 14px; color: #dbdbdb; font-weight: 400; }
.bcr-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 10px 12px;
    box-sizing: border-box;
}
.bcr-input-icon { color: #acacac; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.bcr-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    outline: none;
    padding: 0;
}
.bcr-chips { display: flex; gap: 4px; flex-shrink: 0; }
.bcr-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    color: #acacac;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.bcr-chip:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Side selector */
.bcr-sides { display: flex; gap: 6px; }
.bcr-side {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.bcr-side:hover { background: rgba(255,255,255,0.09); }
.bcr-side.active { border-color: #8d3bde; background: rgba(141,59,222,0.18); }
.bcr-side-name { font-size: 13px; font-weight: 600; }
.bcr-side-pays { font-size: 12px; color: rgba(255,255,255,0.45); }

.bcr-btn-place {
    width: 100%;
    height: 52px;
    background: #8d3bde;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.bcr-btn-place:hover { background: #7c2fcf; }
.bcr-btn-place.disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Right panel ── */
.bcr-stage {
    flex: 1;
    background: #2b2333;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bcr-header {
    background: #3b274f;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    flex-shrink: 0;
}
.bcr-header-left { display: flex; align-items: center; gap: 8px; }
.bcr-header-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.bcr-header-title { font-size: 15px; font-weight: 600; color: #fff; }
.bcr-info-icon { color: rgba(255,255,255,0.35); font-size: 14px; cursor: default; }
.bcr-fair-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.bcr-fair-link:hover { color: #fff !important; }

/* ── Display area ── */
.bcr-display-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    gap: 24px;
}

.bcr-hands {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    justify-content: center;
}
.bcr-vs { font-size: 15px; font-weight: 800; color: rgba(255,255,255,0.25); flex-shrink: 0; }

.bcr-hand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
    min-width: 0;
}
.bcr-hand-block.bcr-winner {
    border-color: rgba(9,185,91,0.6);
    background: rgba(9,185,91,0.07);
}
.bcr-hand-label { font-size: 13px; color: rgba(255,255,255,0.5); }
.bcr-hand-total { color: #fff; font-weight: 700; }
.bcr-hand {
    display: flex;
    gap: 8px;
    min-height: 96px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.bcr-card {
    width: 66px;
    height: 92px;
    background: #f7f5fa;
    border-radius: 8px;
    color: #241a30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    animation: bcr-deal 0.25s ease-out;
}
.bcr-card.red { color: #d92c3f; }
.bcr-card-rank { font-size: 26px; font-weight: 800; line-height: 1; }
.bcr-card-suit { font-size: 20px; line-height: 1; }

.bcr-hint {
    min-height: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    text-align: center;
}
.bcr-hint.win  { color: #09b95b; font-weight: 600; }
.bcr-hint.lose { color: #e84040; font-weight: 600; }
.bcr-hint.push { color: #e8b840; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .bcr-controls { width: 280px; min-width: 220px; }
    .bcr-hands { gap: 12px; }}

@media (max-width: 768px), (pointer: coarse) and (max-width: 1199px) and (max-height: 600px) and (orientation: landscape) {
    .bcr-game-layout { flex-direction: column; min-height: unset; }
    .bcr-stage { order: 1; }
    .bcr-controls  { order: 2; width: 100%; min-width: unset; }
    .bcr-display-area { padding: 20px 12px; gap: 14px; }
    .bcr-card { width: 54px; height: 76px; }
    .bcr-card-rank { font-size: 20px; }
    .bcr-card-suit { font-size: 16px; }
    .bcr-hands { flex-direction: column; gap: 8px; }}
.dt-page #dt_side_dragon:hover,.dt-page #dt_side_dragon.active { border-color: rgba(255,107,107,.5); background: linear-gradient(145deg,rgba(210,58,58,.24),rgba(75,20,20,.24)); }
.dt-page #dt_side_tie:hover,.dt-page #dt_side_tie.active { border-color: rgba(244,201,93,.5); background: linear-gradient(145deg,rgba(173,126,30,.22),rgba(71,51,15,.24)); }
.dt-page #dt_side_tiger:hover,.dt-page #dt_side_tiger.active { border-color: rgba(244,150,60,.5); background: linear-gradient(145deg,rgba(186,109,45,.22),rgba(74,42,18,.24)); }
.dt-page #dt_side_dragon.active .dt-side-pays { color: #ff8f8f; }
.dt-page #dt_side_tie.active .dt-side-pays { color: #f4c95d; }
.dt-page #dt_side_tiger.active .dt-side-pays { color: #ffb066; }
.dt-page .dt-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.dt-page .dt-history .table-header { background: rgba(255,255,255,.025); }
.av-speed-btn.active {
    background: rgba(242,181,60,0.16);
    border-color: rgba(242,181,60,0.5);
    color: #f2b53c;
}
.pk-risk-btn.active { background: #8d3bde; color: #fff; }

/* Compact (tablet + mobile) layout. The sidebar collapses to a drawer at
   1024px, so the responsive tables switch to the compact grid here too. */
@media (max-width: 1024px) {

    .dice-history .table-row {
        grid-template-columns: minmax(0, 1.35fr) minmax(68px, 0.75fr) minmax(54px, 0.6fr) minmax(76px, 0.85fr);
    }

    .dice-history .table-row > .table-column:nth-child(4),
    .dice-history .table-row > .table-column:nth-child(5) {
        display: none;
    }}
.hilo-page .hilo-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.hilo-page .hilo-history .table-header { background: rgba(255,255,255,.025); }
.dice-page .dice-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.dice-page .dice-history .table-header { background: rgba(255,255,255,.025); }
.limbo-page .limbo-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.limbo-page .limbo-history .table-header { background: rgba(255,255,255,.025); }
.wheel-page .wheel-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.wheel-page .wheel-history .table-header { background: rgba(255,255,255,.025); }.rps-page .rps-move:hover:before,.rps-page .rps-move.active:before{opacity:.5;transform:scale(1.4)}.rps-page #rps_move_rock.active{border-color:rgba(168,115,239,.62)!important;box-shadow:inset 0 0 22px rgba(139,77,218,.16),0 8px 20px rgba(50,24,84,.2)}.rps-page #rps_move_rock.active i{color:#b989f5}.rps-page #rps_move_paper.active{border-color:rgba(95,209,207,.55)!important;box-shadow:inset 0 0 22px rgba(63,181,179,.13),0 8px 20px rgba(22,77,76,.18)}.rps-page #rps_move_paper.active i{color:#69d9d5}.rps-page #rps_move_scissors.active{border-color:rgba(244,201,93,.55)!important;box-shadow:inset 0 0 22px rgba(214,166,56,.13),0 8px 20px rgba(85,61,18,.18)}.rps-page #rps_move_scissors.active i{color:#f4d171}
.bj-page .bj-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.bj-page .bj-history .table-header { background: rgba(255,255,255,.025); }

/* =========================================
   BACCARAT 2026 UI REFRESH
   ========================================= */
.bcr-page { max-width: 1240px; margin: 0 auto; padding: 24px 22px 42px; box-sizing: border-box; text-align: left; }
.bcr-page-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.bcr-page-identity { display: flex; align-items: center; gap: 12px; }
.bcr-page-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(171,120,255,.3); border-radius: 14px; background: linear-gradient(145deg,rgba(132,71,234,.26),rgba(43,22,76,.52)); box-shadow: inset 0 1px rgba(255,255,255,.08),0 12px 25px rgba(10,5,22,.24); }
.bcr-page-icon img { width: 25px; height: 25px; object-fit: contain; }
.bcr-page-kicker { display: block; margin-bottom: 2px; color: #8d829a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bcr-page-identity h1 { margin: 0; color: #fff; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.bcr-page-actions { display: flex; align-items: center; gap: 8px; }
.bcr-how-button,.bcr-top-fair { display: inline-flex; height: 36px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); color: #aaa2b4; font: 700 11px/1 Arial,sans-serif; text-decoration: none; box-sizing: border-box; }
.bcr-how-button { cursor: pointer; }
.bcr-how-button:hover,.bcr-top-fair:hover { border-color: rgba(163,108,255,.32); background: rgba(135,74,232,.1); color: #fff; }
.bcr-top-fair i { color: #f4c95d; }
.bcr-page .bcr-game-layout { min-height: 590px; margin-bottom: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 20px; background: #110d1c; box-shadow: 0 24px 65px rgba(5,2,14,.34),inset 0 1px rgba(255,255,255,.035); }
.bcr-page .bcr-controls { width: clamp(290px,26vw,330px); min-width: 290px; gap: 18px; padding: 22px; border-right: 1px solid rgba(255,255,255,.07); background: radial-gradient(circle at 20% 0,rgba(132,70,224,.15),transparent 34%),linear-gradient(165deg,#21172f,#16101f 72%); box-sizing: border-box; }
.bcr-control-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.065); }
.bcr-control-head > div span { display: block; margin-bottom: 3px; color: #857b8e; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bcr-control-head > div strong { color: #f5f1f8; font-size: 15px; }
.bcr-control-balance { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid rgba(244,201,93,.14); border-radius: 9px; background: rgba(244,201,93,.055); color: #d9ccaa; font-size: 11px; }
.bcr-control-balance i,.bcr-page .bcr-input-icon { color: #f4c95d; }
.bcr-page .bcr-label { color: #a79ead; font-size: 11px; font-weight: 700; }
.bcr-page .bcr-input-row { min-height: 58px; padding: 8px 10px 8px 14px; border-color: rgba(171,122,255,.24); border-radius: 12px; background: rgba(6,4,12,.43); transition: border-color .2s,box-shadow .2s; }
.bcr-page .bcr-input-row:focus-within { border-color: #8952e2; box-shadow: 0 0 0 3px rgba(132,72,226,.12); }
.bcr-page .bcr-input { font-size: 18px; font-weight: 750; }
.bcr-page .bcr-chips { gap: 5px; }
.bcr-page .bcr-chip { min-width: 34px; height: 31px; padding: 0 7px; border-color: rgba(255,255,255,.075); border-radius: 8px; background: rgba(255,255,255,.045); color: #958b9e; font-size: 10px; }
.bcr-page .bcr-chip:hover { border-color: rgba(159,104,248,.38); background: rgba(130,69,226,.14); }
.bcr-page .bcr-sides { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.bcr-page .bcr-side { min-width: 0; min-height: 78px; padding: 10px 5px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: rgba(7,4,13,.34); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.bcr-page .bcr-side-name { color: #a49aa9; font-size: 10px; font-weight: 800; }
.bcr-page .bcr-side-pays { margin-top: 6px; color: #706777; font-size: 13px; font-weight: 900; }
.bcr-page #bcr_side_player:hover,.bcr-page #bcr_side_player.active { border-color: rgba(106,148,255,.5); background: linear-gradient(145deg,rgba(50,93,202,.24),rgba(21,36,81,.24)); }
.bcr-page #bcr_side_tie:hover,.bcr-page #bcr_side_tie.active { border-color: rgba(244,201,93,.5); background: linear-gradient(145deg,rgba(173,126,30,.22),rgba(71,51,15,.24)); }
.bcr-page #bcr_side_banker:hover,.bcr-page #bcr_side_banker.active { border-color: rgba(244,92,122,.5); background: linear-gradient(145deg,rgba(186,45,78,.22),rgba(74,18,36,.24)); }
.bcr-page #bcr_side_player.active .bcr-side-pays { color: #82a6ff; }
.bcr-page #bcr_side_tie.active .bcr-side-pays { color: #f4c95d; }
.bcr-page #bcr_side_banker.active .bcr-side-pays { color: #ff7892; }
.bcr-page .bcr-btn-place { min-height: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg,#7635db,#a254ef); font-size: 14px; font-weight: 800; box-shadow: 0 14px 28px rgba(92,40,177,.24),inset 0 1px rgba(255,255,255,.16); }
.bcr-page .bcr-btn-place:hover:not(.disabled) { background: linear-gradient(135deg,#8241e5,#ae61f7); }
.bcr-risk-note { display: flex; align-items: flex-start; gap: 7px; margin: auto 0 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.055); color: #756b7d; font-size: 10px; line-height: 1.5; }
.bcr-risk-note i { margin-top: 2px; color: #8e6fc1; }
.bcr-page .bcr-stage { position: relative; background: radial-gradient(ellipse at 50% 50%,rgba(62,101,108,.2),transparent 48%),linear-gradient(145deg,#0e131a,#08080f); }
.bcr-page .bcr-stage::before { content: ''; position: absolute; inset: 57px 0 0; pointer-events: none; background: radial-gradient(ellipse at center,transparent 0 42%,rgba(244,201,93,.11) 42.3% 42.7%,transparent 43%),repeating-linear-gradient(90deg,transparent 0 74px,rgba(255,255,255,.018) 75px); }
.bcr-page .bcr-header { position: relative; z-index: 2; min-height: 57px; padding: 0 20px; border-bottom-color: rgba(255,255,255,.06); background: rgba(20,21,29,.84); }
.bcr-page .bcr-header-icon { width: 22px; height: 22px; }
.bcr-page .bcr-header-title { font-size: 14px; }
.bcr-page .bcr-info-icon { display: none; }
.bcr-round-state { display: inline-flex; align-items: center; gap: 8px; color: #89808f; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.bcr-round-state i { width: 7px; height: 7px; border-radius: 50%; background: #55dba0; box-shadow: 0 0 0 4px rgba(85,219,160,.09),0 0 12px rgba(85,219,160,.4); }
.bcr-page .bcr-display-area { position: relative; z-index: 1; min-height: 530px; justify-content: space-between; padding: 25px 24px 27px; gap: 18px; }
.bcr-table-mark { display: flex; width: min(100%,650px); align-items: center; justify-content: space-between; color: #8f7aa8; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bcr-table-mark span { display: flex; align-items: center; gap: 6px; }
.bcr-table-mark i { color: #f4c95d; }
.bcr-table-mark small { color: #625d68; font-size: 8px; }
.bcr-page .bcr-hands { width: min(100%,680px); align-items: center; gap: 10px; }
.bcr-page .bcr-hand-block { min-width: 0; min-height: 265px; justify-content: center; padding: 18px 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 45%; background: radial-gradient(ellipse at center,rgba(83,109,114,.12),rgba(5,5,10,.22) 70%); box-sizing: border-box; transition: border-color .25s,box-shadow .25s; }
.bcr-page #bcr_player_block { border-color: rgba(92,139,255,.11); }
.bcr-page #bcr_banker_block { border-color: rgba(239,83,113,.11); }
.bcr-page #bcr_player_block.bcr-winner { border-color: rgba(92,139,255,.5); box-shadow: inset 0 0 40px rgba(62,101,218,.13),0 0 28px rgba(62,101,218,.11); }
.bcr-page #bcr_banker_block.bcr-winner { border-color: rgba(239,83,113,.5); box-shadow: inset 0 0 40px rgba(202,45,78,.13),0 0 28px rgba(202,45,78,.11); }
.bcr-page .bcr-hand-label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; background: rgba(5,3,10,.42); color: #8c838f; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bcr-page #bcr_player_block .bcr-hand-label { color: #88a8f7; }
.bcr-page #bcr_banker_block .bcr-hand-label { color: #f48699; }
.bcr-page .bcr-hand-total { display: grid; min-width: 23px; height: 20px; place-items: center; padding: 0 4px; border-radius: 5px; background: rgba(255,255,255,.08); color: #fff; font-size: 11px; }
.bcr-page .bcr-hand { min-height: 112px; align-items: center; justify-content: center; gap: 0; padding: 12px 9px; }
.bcr-page .bcr-card { position: relative; width: 66px; height: 94px; margin-left: -9px; overflow: hidden; border: 1px solid rgba(255,255,255,.87); border-radius: 10px; background: linear-gradient(145deg,#fff,#eee9f2 64%,#cec4d4); color: #24142f; box-shadow: 0 14px 24px rgba(3,1,8,.38),inset 0 1px #fff; transform: rotate(-1.5deg); animation: bcr-deal-2026 .34s cubic-bezier(.2,.8,.2,1); }
.bcr-page .bcr-card:first-child { margin-left: 0; }
.bcr-page .bcr-card:nth-child(even) { transform: rotate(1.5deg) translateY(2px); }
.bcr-page .bcr-card::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(91,47,126,.12); border-radius: 7px; pointer-events: none; }
.bcr-page .bcr-card.red { color: #d33655; }
.bcr-page .bcr-card-rank { position: absolute; top: 9px; left: 10px; font: 900 22px/1 Arial,sans-serif; letter-spacing: -.06em; }
.bcr-page .bcr-card-suit { font-size: 29px; filter: drop-shadow(0 2px 2px rgba(35,17,44,.12)); }
.bcr-page .bcr-vs { display: grid; min-width: 42px; height: 42px; place-items: center; border: 1px solid rgba(244,201,93,.23); border-radius: 50%; background: radial-gradient(circle,#49391d,#18130c); color: #f4c95d; font-size: 9px; font-weight: 900; box-shadow: 0 0 24px rgba(244,201,93,.08); }
.bcr-page .bcr-hint { min-height: 31px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(5,3,10,.3); color: #776e7e; font-size: 11px; }
.bcr-page .bcr-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.bcr-page .bcr-hint.lose { border-color: rgba(255,102,122,.16); background: rgba(255,102,122,.07); color: #ff7385; }
.bcr-page .bcr-history { overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: linear-gradient(145deg,rgba(29,21,40,.9),rgba(16,12,24,.94)); box-shadow: 0 15px 35px rgba(5,2,12,.2); }
.bcr-history-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid rgba(255,255,255,.055); }
.bcr-history-title span { display: block; margin-bottom: 2px; color: #786f80; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bcr-history-title h2 { margin: 0; color: #f1edf4; font-size: 14px; }
.bcr-history-title > i { color: #74539f; }
.bcr-page .bcr-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.bcr-page .bcr-history .table-header { background: rgba(255,255,255,.025); }
@media (max-width: 900px) {
    .bcr-page .bcr-controls { width: 280px; min-width: 250px; padding: 18px; }
    .bcr-page .bcr-card { width: 57px; height: 82px; }}
@media (max-width: 768px), (pointer: coarse) and (max-width: 1199px) and (max-height: 600px) and (orientation: landscape) {
    .bcr-page { padding: 16px 12px 34px; }
    .bcr-how-button { width: 36px; padding: 0; justify-content: center; font-size: 0; }
    .bcr-how-button i { font-size: 13px; }
    .bcr-page .bcr-game-layout { flex-direction: column; min-height: 0; border-radius: 16px; }
    .bcr-page .bcr-stage { order: 1; }
    .bcr-page .bcr-controls { order: 2; width: 100%; min-width: 0; border-top: 1px solid rgba(255,255,255,.07); border-right: 0; }
    .bcr-page .bcr-display-area { min-height: 470px; }}
@media (max-width: 540px) {
    .bcr-page-icon { width: 40px; height: 40px; border-radius: 12px; }
    .bcr-page-identity h1 { font-size: 20px; }
    .bcr-top-fair { width: 36px; padding: 0; justify-content: center; font-size: 0; }
    .bcr-top-fair i { font-size: 13px; }
    .bcr-page .bcr-display-area { min-height: 620px; padding: 18px 9px; }
    .bcr-page .bcr-hands { flex-direction: column; gap: 7px; }
    .bcr-page .bcr-hand-block { width: 100%; min-height: 205px; border-radius: 34%; }
    .bcr-page .bcr-vs { min-width: 34px; height: 34px; }
    .bcr-page .bcr-card { width: 53px; height: 76px; }
    .bcr-page .bcr-card-rank { top: 7px; left: 8px; font-size: 17px; }
    .bcr-page .bcr-card-suit { font-size: 22px; }
    .bcr-page .bcr-input-row { flex-wrap: wrap; }
    .bcr-page .bcr-chips { width: 100%; }
    .bcr-page .bcr-chip { flex: 1; }
    .bcr-control-head { align-items: flex-start; }}
.rps-page .rps-move.active { border-color: rgba(40,199,160,.55); background: linear-gradient(145deg,rgba(24,164,131,.24),rgba(12,68,55,.24)); }
.rps-page .rps-move.active i { color: #28C7A0; }
.rps-page .rps-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.rps-page .rps-history .table-header { background: rgba(255,255,255,.025); }
.kn-page .kn-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.kn-page .kn-history .table-header { background: rgba(255,255,255,.025); }
.ck-page .ck-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.ck-page .ck-history .table-header { background: rgba(255,255,255,.025); }
.cf-page .cf-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.cf-page .cf-history .table-header { background: rgba(255,255,255,.025); }
.minesweeper-page .mines-grid-btn.active { background: linear-gradient(135deg,#7134c9,#9a55e5); color: #fff; box-shadow: 0 6px 13px rgba(91,40,167,.22),inset 0 1px rgba(255,255,255,.14); }
.minesweeper-page .minesweeper-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.minesweeper-page .minesweeper-history .table-header { background: rgba(255,255,255,.025); }
.tw-page .tw-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.tw-page .tw-history .table-header { background: rgba(255,255,255,.025); }
.plinko-page .pk-risk-btn[data-color="green"].active { border-color: rgba(69,213,151,.45) !important; background: linear-gradient(145deg,rgba(36,171,111,.32),rgba(25,105,75,.18)); color: #63e1a6; box-shadow: inset 0 0 16px rgba(35,199,126,.08); }
.plinko-page .pk-risk-btn[data-color="orange"].active { border-color: rgba(239,177,75,.45) !important; background: linear-gradient(145deg,rgba(210,133,42,.32),rgba(118,69,23,.18)); color: #ffc66d; box-shadow: inset 0 0 16px rgba(232,154,46,.08); }
.plinko-page .pk-risk-btn[data-color="red"].active { border-color: rgba(237,86,96,.45) !important; background: linear-gradient(145deg,rgba(197,52,64,.34),rgba(110,28,37,.18)); color: #ff7b85; box-shadow: inset 0 0 16px rgba(226,67,79,.08); }
.plinko-page .pk-history .table-tabs { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.018); }
.plinko-page .pk-history .table-tab-btn { border-radius: 8px; }
.plinko-page .pk-history .table-header { background: rgba(255,255,255,.025); }
.plinko-page .pk-history .table-body .table-row { border-color: rgba(255,255,255,.045); }

/* Baccarat palette alignment with the Blackjack table. */
.bcr-page .bcr-stage {
    background: radial-gradient(ellipse at 50% 47%,rgba(97,47,158,.28),transparent 48%),linear-gradient(145deg,#100b1b,#09060f);
}
.bcr-page .bcr-stage::before {
    opacity: .45;
    background: radial-gradient(ellipse at center,transparent 0 42%,rgba(244,201,93,.08) 42.4% 42.8%,transparent 43.2%),repeating-linear-gradient(90deg,transparent 0 69px,rgba(166,122,241,.025) 70px);
}
.bcr-page .bcr-header { background: rgba(25,18,36,.82); }
.bcr-round-state i {
    background: #a871ff;
    box-shadow: 0 0 0 4px rgba(168,113,255,.1),0 0 12px rgba(168,113,255,.45);
}
.bcr-page .bcr-hand-block {
    background: radial-gradient(ellipse at center,rgba(124,65,195,.09),rgba(5,3,10,.2) 70%);
}
.av-page .av-speed-btn.active { border-color:rgba(168,113,255,.45);background:linear-gradient(145deg,rgba(126,61,211,.32),rgba(69,31,118,.24));color:#c99fff;box-shadow:inset 0 0 16px rgba(155,91,235,.08); }
.av-page .av-history .table-tabs { padding:8px 12px;background:rgba(5,3,10,.18); }
.av-page .av-history .table-header { background:rgba(255,255,255,.025); }
.poker-page .pk-preaction-btn.active { border-color:#b47aff;background:linear-gradient(135deg,rgba(133,75,219,.7),rgba(82,43,145,.72));color:#fff;box-shadow:0 0 14px rgba(166,105,255,.22); }
.dt-page--duel .dt-side.active::after { opacity:.75; }
#dt_side_dragon.active .dt-side-emblem { border-color:rgba(244,178,74,.38); color:#f4ba58; box-shadow:0 0 18px rgba(229,153,48,.15); }
#dt_side_tie.active .dt-side-emblem { border-color:rgba(244,201,93,.35); color:#f4d273; }
#dt_side_tiger.active .dt-side-emblem { border-color:rgba(174,112,255,.42); color:#c99dff; box-shadow:0 0 18px rgba(147,77,235,.17); }
.dt-page--duel #dt_side_dragon:hover,.dt-page--duel #dt_side_dragon.active { border-color:rgba(237,174,65,.48); background:linear-gradient(145deg,rgba(142,87,23,.3),rgba(59,32,11,.28)); }
.dt-page--duel #dt_side_tiger:hover,.dt-page--duel #dt_side_tiger.active { border-color:rgba(164,97,250,.52); background:linear-gradient(145deg,rgba(103,48,174,.3),rgba(43,20,74,.3)); }
.dt-page--duel #dt_side_dragon.active .dt-side-pays { color:#f4c45d; }
.dt-page--duel #dt_side_tiger.active .dt-side-pays { color:#c99dff; }
.ft-public-title-icon > .fa { display: block; width: 1em; height: 1em; margin-top: 12px; font-size: 16px; line-height: 1; text-align: center; }

/* Baccarat mobile game scene -------------------------------------------- */
@media (max-width:768px) and (orientation:portrait) {
    body.is-game-page .bcr-page .bcr-game-layout {
        grid-template-rows:minmax(0,1fr) 190px!important;gap:6px!important;
    }
    body.is-game-page .bcr-page .bcr-stage {
        grid-row:1!important;order:1!important;padding:0!important;display:block!important;overflow:hidden!important;
    }
    body.is-game-page .bcr-page .bcr-header,
    body.is-game-page .bcr-page .bcr-table-mark { display:none!important; }
    body.is-game-page .bcr-page .bcr-display-area {
        width:100%!important;height:100%!important;min-height:0!important;padding:6px!important;display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 28px!important;
        gap:5px!important;justify-items:center!important;align-items:stretch!important;overflow:hidden!important;box-sizing:border-box!important;margin:0 auto!important;
    }
    body.is-game-page .bcr-page .bcr-hands {
        grid-row:1!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;display:grid!important;
        grid-column:1!important;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr)!important;grid-template-rows:1fr!important;
        align-items:stretch!important;justify-items:center!important;gap:4px!important;overflow:hidden!important;margin:0 auto!important;
    }
    body.is-game-page .bcr-page .bcr-hand-block {
        width:100%!important;height:100%!important;min-height:0!important;padding:5px 3px!important;display:grid!important;
        grid-template-rows:25px minmax(0,1fr)!important;align-items:center!important;justify-items:center!important;
        margin:0 auto!important;border-radius:15px!important;overflow:hidden!important;box-sizing:border-box!important;
    }
    body.is-game-page .bcr-page #bcr_player_block { grid-column:1!important;grid-row:1!important; }
    body.is-game-page .bcr-page #bcr_banker_block { grid-column:3!important;grid-row:1!important; }
    body.is-game-page .bcr-page .bcr-vs {
        grid-column:2!important;grid-row:1!important;min-width:28px!important;width:28px!important;height:28px!important;align-self:center!important;font-size:7px!important;
    }
    body.is-game-page .bcr-page .bcr-hand-label {
        min-height:23px!important;height:23px!important;padding:2px 6px!important;font-size:7px!important;line-height:1!important;text-align:center!important;
    }
    body.is-game-page .bcr-page .bcr-hand-total { min-width:19px!important;height:18px!important;font-size:9px!important; }
    body.is-game-page .bcr-page .bcr-hand {
        width:100%!important;height:100%!important;min-height:0!important;padding:3px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;
        margin:0 auto!important;
    }
    body.is-game-page .bcr-page .bcr-card {
        width:min(16vw,55px)!important;height:auto!important;max-height:100%!important;aspect-ratio:5/7!important;margin-left:-10px!important;
        flex:0 0 min(16vw,55px)!important;border-radius:8px!important;
    }
    body.is-game-page .bcr-page .bcr-card:first-child { margin-left:0!important; }
    body.is-game-page .bcr-page .bcr-card-rank { top:6px!important;left:7px!important;font-size:16px!important; }
    body.is-game-page .bcr-page .bcr-card-suit { font-size:21px!important; }
    body.is-game-page .bcr-page .bcr-hint {
        grid-row:2!important;width:100%!important;height:28px!important;min-height:28px!important;margin:0!important;padding:4px 7px!important;
        overflow:hidden!important;border-radius:8px!important;font-size:8px!important;text-align:center!important;text-overflow:ellipsis!important;white-space:nowrap!important;box-sizing:border-box!important;
    }

    body.is-game-page .bcr-page .bcr-controls {
        grid-row:2!important;order:2!important;padding:7px!important;display:grid!important;
        grid-template-columns:1fr!important;grid-template-rows:56px 52px 58px!important;gap:5px!important;overflow:hidden!important;
    }
    body.is-game-page .bcr-page .bcr-controls #baccarat_bet {
        grid-row:1!important;order:0!important;width:100%!important;height:56px!important;min-height:56px!important;margin:0!important;flex:none!important;
    }
    body.is-game-page .bcr-page .bcr-side-segment { grid-row:2!important;margin:0!important;overflow:hidden!important; }
    body.is-game-page .bcr-page .bcr-side-segment .bcr-label { display:none!important; }
    body.is-game-page .bcr-page .bcr-sides { width:100%!important;height:52px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important; }
    body.is-game-page .bcr-page .bcr-side { min-height:52px!important;height:52px!important;padding:4px!important;border-radius:10px!important; }
    body.is-game-page .bcr-page .bcr-side-name { font-size:9px!important; }
    body.is-game-page .bcr-page .bcr-side-pays { margin-top:2px!important;font-size:10px!important; }
    body.is-game-page .bcr-page .bcr-bet-segment { grid-row:3!important;margin:0!important;gap:3px!important;overflow:hidden!important; }
    body.is-game-page .bcr-page .bcr-label { margin:0!important;font-size:8px!important;line-height:1!important; }
    body.is-game-page .bcr-page .bcr-input-row {
        height:47px!important;min-height:47px!important;padding:4px 7px!important;flex-wrap:nowrap!important;gap:5px!important;overflow:hidden!important;
    }
    body.is-game-page .bcr-page .bcr-input { min-width:52px!important;font-size:16px!important; }
    body.is-game-page .bcr-page .bcr-chips { width:auto!important;margin:0!important;display:flex!important;flex:0 0 auto!important;gap:4px!important; }
    body.is-game-page .bcr-page .bcr-chip {
        width:38px!important;min-width:38px!important;height:36px!important;min-height:36px!important;padding:0 4px!important;flex:0 0 38px!important;
        border-radius:8px!important;font-size:9px!important;font-weight:850!important;
    }}

@media (max-width:350px) and (orientation:portrait) {
    body.is-game-page .bcr-page .bcr-game-layout { grid-template-rows:minmax(0,1fr) 182px!important; }
    body.is-game-page .bcr-page .bcr-controls { grid-template-rows:54px 49px 55px!important; }
    body.is-game-page .bcr-page .bcr-controls #baccarat_bet { height:54px!important;min-height:54px!important; }
    body.is-game-page .bcr-page .bcr-sides,
    body.is-game-page .bcr-page .bcr-side { height:49px!important;min-height:49px!important; }
    body.is-game-page .bcr-page .bcr-input-row { height:44px!important;min-height:44px!important; }
    body.is-game-page .bcr-page .bcr-chip { width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;flex-basis:34px!important; }}

@media (max-width:768px) and (orientation:landscape), (pointer:coarse) and (max-width:1199px) and (max-height:600px) and (orientation:landscape) {
    body.is-game-page .bcr-page .bcr-controls { grid-column:1!important;grid-row:1!important;order:1!important; }
    body.is-game-page .bcr-page .bcr-stage { grid-column:2!important;grid-row:1!important;order:2!important;padding:0!important;overflow:hidden!important; }
    body.is-game-page .bcr-page .bcr-header,
    body.is-game-page .bcr-page .bcr-table-mark { display:none!important; }
    body.is-game-page .bcr-page .bcr-display-area { width:100%!important;height:100%!important;min-height:0!important;padding:4px!important;display:grid!important;grid-template-rows:minmax(0,1fr) 24px!important;gap:3px!important;overflow:hidden!important; }
    body.is-game-page .bcr-page .bcr-hands { width:100%!important;height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:1fr 28px 1fr!important;grid-template-rows:1fr!important;gap:3px!important; }
    body.is-game-page .bcr-page .bcr-hand-block { width:100%!important;height:100%!important;min-height:0!important;padding:3px!important;overflow:hidden!important; }
    body.is-game-page .bcr-page #bcr_player_block { grid-column:1!important;grid-row:1!important; }
    body.is-game-page .bcr-page #bcr_banker_block { grid-column:3!important;grid-row:1!important; }
    body.is-game-page .bcr-page .bcr-vs { grid-column:2!important;grid-row:1!important;width:26px!important;min-width:26px!important;height:26px!important;align-self:center!important; }
    body.is-game-page .bcr-page .bcr-hint { height:24px!important;min-height:24px!important;padding:3px!important; }
    body.is-game-page .bcr-page .bcr-hand { padding:2px!important; }
    body.is-game-page .bcr-page .bcr-card { width:45px!important;height:63px!important;margin-left:-12px!important; }}

/* Poker mobile table ---------------------------------------------------- */
@media (max-width:768px), (pointer:coarse) and (max-width:1199px) and (max-height:600px) and (orientation:landscape) {
	body.is-game-page .poker-page .pk-runout-toggle button.active { border-color:rgba(193,137,250,.65)!important;background:linear-gradient(145deg,rgba(144,74,211,.45),rgba(87,42,139,.46))!important;color:#fff!important;box-shadow:0 0 0 1px rgba(193,137,250,.1),0 5px 12px rgba(72,29,111,.22)!important; }}
.bnz-history .table-container { background: #2b2333; }

/* Desktop: keep every primary game surface on the left and its controls on
   the right. Mobile layouts continue to stack the surface above the controls
   and retain their route-specific sizing. */
@media (min-width:769px) {
    .bcr-game-layout { flex-direction:row-reverse; }}

/* Selected bet, the total that came up, and the settled outcome. `won`/`lost`
   come straight from the server's multiplier -- the paytable is never
   re-derived here. */
.sc-page .sc-bet.active { border-color: rgba(163,108,255,.62); background: linear-gradient(145deg,rgba(132,71,234,.3),rgba(43,22,76,.4)); box-shadow: 0 0 0 3px rgba(132,72,226,.12),inset 0 1px rgba(255,255,255,.06); }
.sc-page .sc-bet.active .sc-bet-name,.sc-page .sc-bet.active .sc-bet-pays { color: #fff; }
.sc-page .sc-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.sc-page .sc-history .table-header { background: rgba(255,255,255,.025); }
.er-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.er-history .table-header { background: rgba(255,255,255,.025); }
.nv-public-title-icon > .fa { display: block; width: 1em; height: 1em; margin-top: 12px; font-size: 16px; line-height: 1; text-align: center; }
.rv-public-title-icon > .fa { display: block; width: 1em; height: 1em; margin-top: 12px; font-size: 16px; line-height: 1; text-align: center; }
.bd-public-title-icon > .fa { display: block; width: 1em; height: 1em; margin-top: 12px; font-size: 16px; line-height: 1; text-align: center; }