

.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; }
.bcr-side.active { border-color: #8d3bde; background: rgba(141,59,222,0.18); }
.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); }
.rl-color-total.is-green > i { background: #3bd98d; box-shadow: 0 0 9px rgba(59,217,141,.45); }
.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); }
.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-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.bcr-page .bcr-history .table-header { background: rgba(255,255,255,.025); }
.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); }
.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; }

/* 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) {
    .er-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); }

/* =========================================
   EUROPEAN ROULETTE
   ========================================= */
.er-page { max-width: 1240px; margin: 0 auto; padding: 24px 22px 42px; box-sizing: border-box; text-align: left; }
.er-page-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.er-page-identity { display: flex; align-items: center; gap: 12px; }
.er-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); }
.er-page-icon img { width: 25px; height: 25px; object-fit: contain; }
.er-page-kicker { display: block; margin-bottom: 2px; color: #8d829a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.er-page-identity h1 { margin: 0; color: #fff; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.er-page-actions { display: flex; align-items: center; gap: 8px; }
.er-how-button,.er-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; }
.er-how-button { cursor: pointer; }
.er-how-button:hover,.er-top-fair:hover { border-color: rgba(163,108,255,.32); background: rgba(135,74,232,.1); color: #fff; }
.er-top-fair i { color: #f4c95d; }

.er-game-layout { display: flex; min-height: 620px; 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); }

/* ── Left panel ── */
.er-controls { display: flex; width: clamp(300px,27vw,340px); min-width: 300px; flex-direction: column; gap: 17px; 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; }
.er-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); }
.er-control-head > div span { display: block; margin-bottom: 3px; color: #857b8e; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.er-control-head > div strong { color: #f5f1f8; font-size: 15px; }
.er-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; }
.er-control-balance i,.er-input-icon { color: #f4c95d; }
.er-segment { display: flex; flex-direction: column; gap: 8px; }
.er-label { color: #a79ead; font-size: 11px; font-weight: 700; }
.er-input-row { display: flex; min-height: 58px; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border: 1px solid rgba(171,122,255,.24); border-radius: 12px; background: rgba(6,4,12,.43); box-sizing: border-box; transition: border-color .2s,box-shadow .2s; }
.er-input-row:focus-within { border-color: #8952e2; box-shadow: 0 0 0 3px rgba(132,72,226,.12); }
.er-input-icon { flex-shrink: 0; font-size: 14px; font-weight: 600; }
.er-input { flex: 1; min-width: 0; padding: 0; border: none !important; background: transparent !important; color: #fff !important; font-size: 18px; font-weight: 750; outline: none; }
.er-chips { display: flex; flex-shrink: 0; gap: 5px; }
.er-chip { display: inline-flex; min-width: 36px; height: 31px; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border: 1px solid rgba(255,255,255,.075); border-radius: 8px; background: rgba(255,255,255,.045); color: #958b9e; font-size: 10px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s,border-color .15s,color .15s; }
.er-chip:hover { border-color: rgba(159,104,248,.38); background: rgba(130,69,226,.14); color: #fff; }

.er-stack-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 12px 10px; border: 1px solid rgba(255,255,255,.065); border-radius: 11px; background: rgba(6,4,12,.28); }
.er-stack-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; text-align: center; }
.er-stack-summary span { color: #786f80; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.er-stack-summary strong { overflow: hidden; color: #f1edf4; font-size: 14px; text-overflow: ellipsis; }
.er-stack-summary > div:last-child strong { color: #f4c95d; }
.er-stack-actions { display: flex; gap: 5px; }
.er-stack-actions .er-chip { flex: 1; }

.er-paytable { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; padding: 8px; border: 1px solid rgba(255,255,255,.065); border-radius: 11px; background: rgba(6,4,12,.28); }
.er-paytable-row { display: flex; min-height: 31px; align-items: center; justify-content: space-between; padding: 0 9px; border: 1px solid rgba(255,255,255,.045); border-radius: 7px; background: rgba(255,255,255,.025); color: #7f7587; font-size: 10px; }
.er-paytable-row span:last-child { color: #f4c95d; font-weight: 800; }

.er-btn-place { width: 100%; min-height: 52px; height: 52px; margin-top: auto; border: none; border-radius: 12px; background: linear-gradient(135deg,#7635db,#a254ef); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 28px rgba(92,40,177,.24),inset 0 1px rgba(255,255,255,.16); transition: background .2s,opacity .2s; }
.er-btn-place:hover:not(.disabled) { background: linear-gradient(135deg,#8241e5,#ae61f7); }
.er-btn-place.disabled { opacity: .55; cursor: not-allowed; }
.er-btn-place.is-empty { opacity: .6; }
.er-risk-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.055); color: #756b7d; font-size: 10px; line-height: 1.5; }
.er-risk-note i { margin-top: 2px; color: #8e6fc1; }

/* ── Right panel ── */
.er-stage { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; background: radial-gradient(circle at 54% 40%,rgba(83,48,142,.26),transparent 46%),linear-gradient(145deg,#100b1b,#09060f); }
.er-stage::before { content: ''; position: absolute; inset: 57px 0 0; pointer-events: none; opacity: .55; background-image: linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at center,#000,transparent 82%); }
.er-header { position: relative; z-index: 2; display: flex; min-height: 57px; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(25,18,36,.84); }
.er-header-left { display: flex; align-items: center; gap: 8px; }
.er-header-icon { width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; }
.er-header-title { color: #fff; font-size: 14px; font-weight: 600; }
.er-header-right { display: flex; min-width: 0; align-items: center; gap: 14px; }
.er-last-numbers { display: flex; min-width: 0; gap: 4px; overflow: hidden; }
.er-last-number { display: grid; width: 22px; height: 22px; flex-shrink: 0; place-items: center; border-radius: 6px; font-size: 10px; font-weight: 800; }
.er-last-number.is-red,.er-history-number.is-red { background: linear-gradient(145deg,#d93b4d,#8e1928); color: #fff; }
.er-last-number.is-black,.er-history-number.is-black { background: linear-gradient(145deg,#3a3348,#16121f); color: #ddd6e6; }
.er-last-number.is-green,.er-history-number.is-green { background: linear-gradient(145deg,#22c07a,#0d7346); color: #fff; }
.er-round-state { display: inline-flex; align-items: center; gap: 8px; color: #89808f; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.er-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); }
.er-round-state.is-spinning i { background: #f4c95d; box-shadow: 0 0 0 4px rgba(244,201,93,.1),0 0 12px rgba(244,201,93,.45); animation: er-pulse 1s ease-in-out infinite; }

.er-display-area { position: relative; z-index: 1; display: flex; min-height: 563px; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 26px; box-sizing: border-box; }

/* ── Wheel ── */
/* The display area is a column flex box, so every child here needs
   flex-shrink:0. Without it the wheel and the felt are squeezed along the main
   axis whenever the column is shorter than its content -- which is exactly what
   the mobile breakpoints do when they drop min-height to 0, and it collapsed
   the felt to an 18px sliver. */
.er-wheel-wrap { display: flex; width: min(100%,760px); flex-shrink: 0; align-items: center; justify-content: center; gap: 26px; }
.er-wheel { width: 216px; height: 216px; flex-shrink: 0; filter: drop-shadow(0 18px 34px rgba(3,1,8,.45)); }
#er_wheel_rotor,#er_wheel_ball { transform-origin: 130px 130px; transition: transform 4.6s cubic-bezier(.16,.72,.13,1); }
.er-pocket { stroke: rgba(0,0,0,.42); stroke-width: .6; }
.er-pocket.is-red { fill: #c9283c; }
.er-pocket.is-black { fill: #1a1226; }
.er-pocket.is-green { fill: #0f7a45; }
.er-pocket-label { fill: #fff; font: 800 11px/1 Arial,sans-serif; text-anchor: middle; }
.er-ball { filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }

.er-result { display: flex; min-width: 168px; flex-direction: column; align-items: center; gap: 8px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: linear-gradient(145deg,rgba(31,23,44,.86),rgba(10,7,16,.82)); box-shadow: inset 0 1px rgba(255,255,255,.035); transition: border-color .25s,background .25s; }
.er-result-label { color: #786f80; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.er-result-number { display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.04); color: #6f6679; font-size: 34px; font-weight: 900; }
.er-result-number.is-red { border-color: rgba(217,59,77,.5); background: linear-gradient(145deg,#d93b4d,#8e1928); color: #fff; }
.er-result-number.is-black { border-color: rgba(120,110,140,.4); background: linear-gradient(145deg,#3a3348,#16121f); color: #ece7f3; }
.er-result-number.is-green { border-color: rgba(34,192,122,.5); background: linear-gradient(145deg,#22c07a,#0d7346); color: #fff; }
.er-result-payout { min-height: 16px; font-size: 13px; font-weight: 800; }
.er-result.win { border-color: rgba(67,216,141,.22); }
.er-result.win .er-result-payout { color: #54db9d; }
.er-result.lose .er-result-payout { color: #ff7385; }

/* ── Felt ── */
.er-table-wrap { width: min(100%,760px); flex-shrink: 0; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; background: linear-gradient(145deg,rgba(20,44,32,.92),rgba(8,18,13,.94)); box-shadow: 0 20px 45px rgba(3,1,8,.25),inset 0 1px rgba(255,255,255,.035); box-sizing: border-box; }
.er-table { display: block; width: 100%; height: auto; overflow: visible; }
.er-field { cursor: pointer; }
.er-field-bg { stroke: rgba(255,255,255,.16); stroke-width: 1.4; transition: filter .15s; }
.er-field.is-red .er-field-bg { fill: #b02436; }
.er-field.is-black .er-field-bg { fill: #171122; }
.er-field.is-green .er-field-bg { fill: #0f7a45; }
.er-field.is-outside .er-field-bg { fill: rgba(255,255,255,.045); }
.er-field:hover .er-field-bg { filter: brightness(1.35); }
.er-field-num { fill: #fff; font: 800 30px/1 Arial,sans-serif; text-anchor: middle; pointer-events: none; }
.er-field-outside { fill: #d8d1e2; font: 800 17px/1 Arial,sans-serif; text-anchor: middle; letter-spacing: .04em; pointer-events: none; }
.er-diamond { pointer-events: none; }
.er-diamond.is-red { fill: #d93b4d; }
.er-diamond.is-black { fill: #241c33; stroke: rgba(255,255,255,.3); stroke-width: 1.2; }
.er-field.is-winner .er-field-bg { stroke: #f4c95d; stroke-width: 4; filter: brightness(1.5); }
.er-field.is-winner { animation: er-winner .5s ease; }

.er-spot { fill: transparent; cursor: pointer; }
.er-spot:hover { fill: rgba(244,201,93,.34); stroke: rgba(244,201,93,.8); stroke-width: 1.5; }

.er-chip-mark { pointer-events: none; }
.er-chip-mark circle { fill: #f4c95d; stroke: #6b4a0f; stroke-width: 2.5; stroke-dasharray: 5 4; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.er-chip-mark text { fill: #2a1c05; font: 800 12px/1 Arial,sans-serif; text-anchor: middle; }
.er-chip-mark.is-won circle { fill: #4ddd98; stroke: #106d45; }
.er-chip-mark.is-won text { fill: #06301c; }
.er-chip-mark.is-lost { opacity: .3; }

.er-hint { width: min(100%,760px); min-height: 34px; flex-shrink: 0; padding: 8px 12px; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(5,3,10,.3); color: #776e7e; font-size: 11px; text-align: center; box-sizing: border-box; }
.er-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.er-hint.lose { border-color: rgba(255,102,122,.16); background: rgba(255,102,122,.07); color: #ff7385; }

/* ── History ── */
.er-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); }
.er-history-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid rgba(255,255,255,.055); }
.er-history-title span { display: block; margin-bottom: 2px; color: #786f80; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.er-history-title h2 { margin: 0; color: #f1edf4; font-size: 14px; }
.er-history-title > i { color: #74539f; }
.er-history .table-tabs { padding: 8px 12px; background: rgba(5,3,10,.18); }
.er-history .table-header { background: rgba(255,255,255,.025); }
.er-history-number { display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 800; }

@media (max-width: 1100px) {
    .er-wheel-wrap { flex-direction: column; gap: 16px; }
    .er-result { flex-direction: row; min-width: 0; gap: 14px; }}
@media (max-width: 900px) {
    .er-controls { width: 280px; min-width: 260px; padding: 18px; }}
@media (max-width: 768px), (pointer: coarse) and (max-width: 1199px) and (max-height: 600px) and (orientation: landscape) {
    .er-page { padding: 16px 12px 34px; }
    .er-how-button { width: 36px; padding: 0; justify-content: center; font-size: 0; }
    .er-how-button i { font-size: 13px; }
    .er-game-layout { flex-direction: column; min-height: 0; border-radius: 16px; }
    .er-stage { order: 1; }
    .er-controls { order: 2; width: 100%; min-width: 0; border-top: 1px solid rgba(255,255,255,.07); border-right: 0; }
    .er-display-area { min-height: 0; padding: 20px 14px; }
    .er-last-numbers { display: none; }
    .er-wheel { width: 176px; height: 176px; }}
@media (max-width: 540px) {
    .er-page-icon { width: 40px; height: 40px; border-radius: 12px; }
    .er-page-identity h1 { font-size: 20px; }
    .er-top-fair { width: 36px; padding: 0; justify-content: center; font-size: 0; }
    .er-top-fair i { font-size: 13px; }
    .er-display-area { padding: 16px 8px; }
    .er-wheel { width: 148px; height: 148px; }
    .er-result-number { width: 62px; height: 62px; border-radius: 14px; font-size: 27px; }
    .er-table-wrap { padding: 8px; border-radius: 13px; }
    /* The felt is 1000 units wide; below this it stops being tappable, so it
       scrolls sideways at a fixed minimum instead of shrinking to nothing. */
    .er-table-wrap { overflow-x: auto; }
    .er-table { min-width: 560px; }
    .er-stack-summary { grid-template-columns: 1fr; gap: 8px; }
    .er-stack-summary > div { flex-direction: row; align-items: baseline; justify-content: space-between; text-align: left; }
    .er-paytable { grid-template-columns: 1fr; }
    .er-input-row { flex-wrap: wrap; }
    .er-chips { width: 100%; }
    .er-chips .er-chip { flex: 1; }
    .er-control-head { align-items: flex-start; }}

/* European Roulette mobile game scene ------------------------------------ */
/* The shared shell (body.is-game-page) locks a game page to one viewport and
   turns -game-layout into a two-track grid, so the felt has to fit the space it
   is given rather than set its own height. The ≤540 rule above lets the felt
   scroll sideways at a 560px minimum -- inside this shell that would put a
   scrollbar in a pane that is not allowed to scroll, so it is unwound here and
   the whole felt scales to the width instead. */
@media (max-width:768px) and (orientation:portrait) {
    /* The felt is a 2.53:1 strip, so its height is decided by the width -- any
       extra room in the display row is dead space. Give the leftover to the
       controls instead. */
    body.is-game-page .er-page .er-game-layout {
        grid-template-rows:minmax(0,1fr) 232px!important;gap:6px!important;
    }
    body.is-game-page .er-page .er-stage {
        grid-row:1!important;order:1!important;padding:0!important;overflow:hidden!important;
    }
    body.is-game-page .er-page .er-header { display:none!important; }
    body.is-game-page .er-page .er-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:96px minmax(0,1fr) 22px!important;
        gap:5px!important;place-items:center!important;overflow:hidden!important;box-sizing:border-box!important;
    }
    body.is-game-page .er-page .er-wheel-wrap {
        grid-row:1!important;width:100%!important;height:100%!important;flex-direction:row!important;gap:12px!important;
    }
    body.is-game-page .er-page .er-wheel { width:92px!important;height:92px!important; }
    body.is-game-page .er-page .er-result {
        min-width:0!important;flex-direction:row!important;align-items:center!important;gap:9px!important;padding:8px 11px!important;border-radius:13px!important;
    }
    body.is-game-page .er-page .er-result-label { display:none!important; }
    body.is-game-page .er-page .er-result-number { width:46px!important;height:46px!important;border-radius:12px!important;font-size:21px!important; }
    body.is-game-page .er-page .er-result-payout { font-size:11px!important; }
    body.is-game-page .er-page .er-table-wrap {
        grid-row:2!important;width:100%!important;max-height:100%!important;padding:5px!important;border-radius:13px!important;overflow:visible!important;
    }
    body.is-game-page .er-page .er-table { min-width:0!important;width:100%!important;height:auto!important;max-height:100%!important; }
    body.is-game-page .er-page .er-field-num { font-size:26px!important; }
    body.is-game-page .er-page .er-field-outside { font-size:15px!important; }
    body.is-game-page .er-page .er-hint {
        grid-row:3!important;width:100%!important;height:22px!important;min-height:22px!important;padding:2px 6px!important;font-size:8px!important;
        display:flex!important;align-items:center!important;justify-content:center!important;
    }
    body.is-game-page .er-page .er-stack-summary { padding:8px!important; }
    body.is-game-page .er-page .er-stack-summary strong { font-size:12px!important; }
    body.is-game-page .er-page .er-paytable-segment { display:none!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 .er-page .er-header { display:none!important; }
    body.is-game-page .er-page .er-display-area {
        width:100%!important;height:100%!important;min-height:0!important;padding:6px!important;display:grid!important;
        grid-template-rows:auto minmax(0,1fr)!important;gap:5px!important;place-items:center!important;overflow:hidden!important;box-sizing:border-box!important;
    }
    body.is-game-page .er-page .er-wheel-wrap { flex-direction:row!important;gap:10px!important;width:100%!important; }
    body.is-game-page .er-page .er-wheel { width:74px!important;height:74px!important; }
    body.is-game-page .er-page .er-result { min-width:0!important;flex-direction:row!important;gap:8px!important;padding:6px 9px!important; }
    body.is-game-page .er-page .er-result-label { display:none!important; }
    body.is-game-page .er-page .er-result-number { width:38px!important;height:38px!important;border-radius:10px!important;font-size:18px!important; }
    body.is-game-page .er-page .er-table-wrap { width:100%!important;max-height:100%!important;padding:4px!important;overflow:visible!important; }
    body.is-game-page .er-page .er-table { min-width:0!important;width:100%!important;height:auto!important;max-height:100%!important; }
    body.is-game-page .er-page .er-hint { display:none!important; }
    body.is-game-page .er-page .er-paytable-segment { display:none!important; }}

/* Mobile roulette scenes --------------------------------------------------
   The shared mobile game shell has a deliberately generic 42/58 split. Both
   roulette games need more visual space, while their controls can be made
   much shorter. Keep scrolling inside the relevant panel instead of letting
   the entire app scene move underneath the bottom navigation. */
@media (max-width:768px), (pointer:coarse) and (max-width:1199px) and (max-height:600px) and (orientation:landscape) {

    body.is-game-page .er-page .er-game-layout {
        grid-template-rows:minmax(300px,60%) minmax(0,40%)!important;
    }
    body.is-game-page .er-page .er-stage {
        grid-row:1!important;
        order:1!important;
    }
    body.is-game-page .er-page .er-controls {
        grid-row:2!important;
        order:2!important;
        gap:6px!important;
        padding:9px!important;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
    }
    body.is-game-page .er-page .er-header {
        flex:0 0 36px!important;
    }
    body.is-game-page .er-page .er-header-title {
        font-size:11px!important;
    }
    body.is-game-page .er-page .er-header-right {
        gap:6px!important;
    }
    body.is-game-page .er-page .er-round-state {
        gap:5px;
        font-size:7px;
        letter-spacing:.03em;
    }
    body.is-game-page .er-page .er-display-area {
        min-height:0!important;
        padding:7px!important;
        gap:7px!important;
        justify-content:flex-start!important;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
        scrollbar-width:thin;
    }
    body.is-game-page .er-page .er-wheel-wrap {
        width:100%!important;
        min-height:108px;
        flex:0 0 108px!important;
        flex-direction:row!important;
        gap:8px!important;
    }
    body.is-game-page .er-page .er-wheel {
        width:108px!important;
        height:108px!important;
    }
    body.is-game-page .er-page .er-result {
        min-width:0!important;
        max-width:150px;
        min-height:78px;
        padding:8px!important;
        flex:1 1 120px;
        flex-direction:row!important;
        justify-content:center;
        gap:7px!important;
        border-radius:12px!important;
    }
    body.is-game-page .er-page .er-result-label {
        display:none!important;
    }
    body.is-game-page .er-page .er-result-number {
        width:52px!important;
        height:52px!important;
        flex:0 0 52px;
        border-radius:12px!important;
        font-size:24px!important;
    }
    body.is-game-page .er-page .er-result-payout {
        max-width:72px;
        overflow:hidden;
        font-size:9px!important;
        line-height:1.25;
        text-overflow:ellipsis;
    }
    body.is-game-page .er-page .er-table-wrap {
        width:100%!important;
        padding:6px!important;
        flex:0 0 auto!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        border-radius:11px!important;
        scroll-snap-type:x proximity;
        scrollbar-width:thin;
        -webkit-overflow-scrolling:touch;
    }
    body.is-game-page .er-page .er-table {
        width:520px!important;
        min-width:520px!important;
        scroll-snap-align:start;
    }
    body.is-game-page .er-page .er-hint {
        display:none!important;
    }
    body.is-game-page .er-page .er-paytable-segment {
        display:none!important;
    }
    body.is-game-page .er-page .er-stack-summary {
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:4px!important;
        padding:7px 5px!important;
    }
    body.is-game-page .er-page .er-stack-summary > div {
        align-items:center!important;
        justify-content:center!important;
        flex-direction:column!important;
        text-align:center!important;
    }
    body.is-game-page .er-page .er-stack-summary span {
        font-size:6px!important;
        letter-spacing:.025em!important;
    }
    body.is-game-page .er-page .er-stack-summary strong {
        font-size:11px!important;
    }
    body.is-game-page .er-page .er-stack-actions {
        gap:4px!important;
    }
    body.is-game-page .er-page .er-stack-actions .er-chip {
        min-width:0!important;
        min-height:34px!important;
        height:34px!important;
        padding:0 5px!important;
        font-size:9px!important;
        touch-action:manipulation;
    }
    body.is-game-page .er-page .er-input-row {
        min-height:0!important;
        gap:6px!important;
        padding:7px!important;
    }
    body.is-game-page .er-page .er-input {
        min-height:32px;
        font-size:16px!important;
    }
    body.is-game-page .er-page .er-chips {
        display:grid!important;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:5px!important;
        width:100%!important;
    }
    body.is-game-page .er-page .er-chips .er-chip {
        min-width:0!important;
        min-height:34px!important;
        height:34px!important;
        padding:0 5px!important;
        touch-action:manipulation;
    }
    body.is-game-page .er-page .er-btn-place {
        min-height:42px!important;
        height:42px!important;
        margin-top:4px!important;
        flex:0 0 42px;
        border-radius:10px!important;
    }}

@media (max-width:390px), (max-height:700px) {

    body.is-game-page .er-page .er-game-layout {
        grid-template-rows:minmax(275px,58%) minmax(0,42%)!important;
    }
    body.is-game-page .er-page .er-wheel-wrap {
        min-height:96px;
        flex-basis:96px!important;
    }
    body.is-game-page .er-page .er-wheel {
        width:94px!important;
        height:94px!important;
    }
    body.is-game-page .er-page .er-table {
        width:480px!important;
        min-width:480px!important;
    }}

@media (orientation:landscape) and (max-height:600px) and (max-width:950px) {

    body.is-game-page .er-page .er-game-layout {
        grid-template-columns:minmax(220px,38%) minmax(0,62%)!important;
        grid-template-rows:minmax(0,1fr)!important;
    }
    body.is-game-page .er-page .er-controls {
        grid-column:1!important;
        grid-row:1!important;
    }
    body.is-game-page .er-page .er-stage {
        grid-column:2!important;
        grid-row:1!important;
    }
    body.is-game-page .er-page .er-wheel-wrap {
        min-height:92px;
        flex-basis:92px!important;
    }
    body.is-game-page .er-page .er-wheel {
        width:90px!important;
        height:90px!important;
    }
    body.is-game-page .er-page .er-table {
        width:500px!important;
        min-width:500px!important;
    }}
.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; }