

.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); }
.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) {
    .sc-game-layout { flex-direction:row-reverse; }}

/* =========================================
   SIC BO 2026 UI

   Class prefix is `sc-` and deliberately never contains the substring "dice":
   scripts/split-frontend-assets.js routes CSS by matching /dice/i against the
   whole selector and checks the `dice` route first, so `.sc-dice-*` would ship
   to dice.css instead of sicbo.css. Use `face`, `roll` or `tray` instead.
   ========================================= */
.sc-page { max-width: 1240px; margin: 0 auto; padding: 24px 22px 42px; box-sizing: border-box; text-align: left; }
.sc-page-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.sc-page-identity { display: flex; align-items: center; gap: 12px; }
.sc-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); }
.sc-page-icon img { width: 25px; height: 25px; object-fit: contain; }
.sc-page-kicker { display: block; margin-bottom: 2px; color: #8d829a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sc-page-identity h1 { margin: 0; color: #fff; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.sc-page-actions { display: flex; align-items: center; gap: 8px; }
.sc-how-button,.sc-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; }
.sc-how-button { cursor: pointer; }
.sc-how-button:hover,.sc-top-fair:hover { border-color: rgba(163,108,255,.32); background: rgba(135,74,232,.1); color: #fff; }
.sc-top-fair i { color: #f4c95d; }

.sc-page .sc-game-layout { display: flex; min-height: 640px; 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); }
.sc-page .sc-controls { display: flex; flex-direction: column; 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; }
.sc-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); }
.sc-control-head > div span { display: block; margin-bottom: 3px; color: #857b8e; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sc-control-head > div strong { color: #f5f1f8; font-size: 15px; }
.sc-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; }
.sc-control-balance i,.sc-page .sc-input-icon { color: #f4c95d; }
.sc-segment { display: flex; flex-direction: column; gap: 6px; }
.sc-page .sc-label { color: #a79ead; font-size: 11px; font-weight: 700; }
.sc-page .sc-input-row { display: flex; align-items: center; gap: 8px; min-height: 58px; 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; }
.sc-page .sc-input-row:focus-within { border-color: #8952e2; box-shadow: 0 0 0 3px rgba(132,72,226,.12); }
.sc-page .sc-input { background: transparent !important; border: none !important; flex: 1; min-width: 0; outline: none; padding: 0; color: #fff !important; font-size: 18px; font-weight: 750; }
.sc-page .sc-chips { display: flex; gap: 5px; flex-shrink: 0; }
.sc-page .sc-chip { min-width: 34px; height: 31px; padding: 0 7px; 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; cursor: pointer; white-space: nowrap; transition: background .15s,border-color .15s,color .15s; }
.sc-page .sc-chip:hover { border-color: rgba(159,104,248,.38); background: rgba(130,69,226,.14); color: #fff; }
.sc-bet-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; background: rgba(6,4,12,.34); }
.sc-bet-summary span { display: block; margin-bottom: 4px; color: #857b8e; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.sc-bet-summary strong { color: #f5f1f8; font-size: 14px; }
.sc-bet-summary div:last-child strong { color: #f4c95d; }
.sc-page .sc-btn-place { width: 100%; min-height: 52px; height: 52px; 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,transform .2s; flex-shrink: 0; }
.sc-page .sc-btn-place:hover:not(.disabled) { background: linear-gradient(135deg,#8241e5,#ae61f7); }
.sc-page .sc-btn-place.disabled { opacity: .55; cursor: not-allowed; }
.sc-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; }
.sc-risk-note i { margin-top: 2px; color: #8e6fc1; }

.sc-page .sc-stage { flex: 1; position: relative; display: flex; flex-direction: column; min-width: 0; background: radial-gradient(ellipse at 50% 22%,rgba(97,56,150,.2),transparent 52%),linear-gradient(145deg,#0e131a,#08080f); }
.sc-page .sc-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 57px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(20,21,29,.84); flex-shrink: 0; }
.sc-header-left { display: flex; align-items: center; gap: 8px; }
.sc-page .sc-header-icon { width: 22px; height: 22px; object-fit: contain; }
.sc-page .sc-header-title { font-size: 14px; font-weight: 600; color: #fff; }
.sc-page .sc-info-icon { display: none; }
.sc-round-state { display: inline-flex; align-items: center; gap: 8px; color: #89808f; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sc-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); }
.sc-page .sc-display-area { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 580px; padding: 22px 22px 26px; gap: 15px; overflow-y: auto; }
.sc-arena-light { position: absolute; top: -60px; left: 50%; width: 420px; height: 260px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse at center,rgba(166,106,242,.22),transparent 68%); filter: blur(6px); }

/* ── Roll stage ── */
.sc-roll-stage { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.sc-roll-tray { display: flex; gap: 14px; }
.sc-roll-readout { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 96px; padding: 10px 16px; border: 1px solid rgba(244,201,93,.16); border-radius: 13px; background: rgba(244,201,93,.05); }
.sc-roll-readout span { color: #8a8093; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sc-roll-readout strong { color: #f4c95d; font-size: 30px; font-weight: 900; line-height: 1.15; }
.sc-roll-readout small { color: #6f6779; font-size: 10px; }

/* ── Die face: a 3x3 pip grid, lit slots carry .on ── */
.sc-face { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 2px; width: 24px; height: 24px; padding: 3px; border-radius: 6px; background: linear-gradient(145deg,#fff,#ddd3ee); box-shadow: 0 3px 7px rgba(3,1,8,.4),inset 0 1px #fff; box-sizing: border-box; flex-shrink: 0; }
.sc-face i { width: 100%; height: 100%; border-radius: 50%; background: transparent; }
.sc-face i.on { background: #2b1447; }
.sc-face--big { width: 66px; height: 66px; gap: 5px; padding: 9px; border-radius: 15px; box-shadow: 0 16px 30px rgba(3,1,8,.5),inset 0 2px #fff; }
.sc-roll-tray .sc-face--big { transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.sc-roll-tray.rolling .sc-face--big:nth-child(1) { animation: sc-tumble-2026 .32s linear infinite; }
.sc-roll-tray.rolling .sc-face--big:nth-child(2) { animation: sc-tumble-2026 .32s linear infinite .07s; }
.sc-roll-tray.rolling .sc-face--big:nth-child(3) { animation: sc-tumble-2026 .32s linear infinite .14s; }

.sc-page .sc-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; text-align: center; }
.sc-page .sc-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.sc-page .sc-hint.lose { border-color: rgba(255,102,122,.16); background: rgba(255,102,122,.07); color: #ff7385; }

/* ── Betting table ── */
.sc-table-wrap { display: flex; flex-direction: column; width: 100%; gap: 13px; }
.sc-group { display: flex; flex-direction: column; gap: 6px; }
.sc-group-label { color: #8f7aa8; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sc-group-note { color: #625d68; font-size: 9px; }
.sc-row { display: grid; gap: 6px; }
.sc-row--main { grid-template-columns: 1.35fr 1fr 1fr 1.35fr; }
.sc-row--triples { grid-template-columns: 1.5fr repeat(6,1fr); }
.sc-row--doubles,.sc-row--singles { grid-template-columns: repeat(6,1fr); }
.sc-row--totals { grid-template-columns: repeat(auto-fit,minmax(58px,1fr)); }
.sc-row--combos { grid-template-columns: repeat(auto-fit,minmax(62px,1fr)); }

.sc-page .sc-bet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 54px; padding: 8px 5px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: rgba(7,4,13,.34); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.025); cursor: pointer; transition: background .15s,border-color .15s,box-shadow .15s; }
.sc-page .sc-bet:hover { border-color: rgba(159,104,248,.42); background: rgba(130,69,226,.13); }
.sc-page .sc-bet--wide,.sc-page .sc-bet--any { min-height: 62px; }
.sc-page .sc-bet--faces { min-height: 58px; }
.sc-bet-name { color: #cfc6d6; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.sc-page .sc-bet--total .sc-bet-name { color: #fff; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.sc-bet-sub { color: #7d7488; font-size: 9px; font-weight: 700; }
.sc-bet-pays { color: #6f6779; font-size: 10px; font-weight: 900; }
.sc-bet-faces { display: flex; align-items: center; justify-content: center; gap: 3px; }
/* Three faces plus gaps do not fit a 1fr triples cell at desktop width, so
   this family gets a smaller die than the two-face doubles and combos. */
.sc-row--triples .sc-face { width: 16px; height: 16px; gap: 1px; padding: 2px; border-radius: 4px; }

/* 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-bet.landed { border-color: rgba(244,201,93,.5); background: linear-gradient(145deg,rgba(173,126,30,.22),rgba(71,51,15,.24)); }
.sc-page .sc-bet.landed .sc-bet-name { color: #f4c95d; }
.sc-page .sc-bet.won { border-color: rgba(67,216,141,.55); background: linear-gradient(145deg,rgba(40,160,105,.26),rgba(14,58,38,.3)); box-shadow: 0 0 0 3px rgba(67,216,141,.11); }
.sc-page .sc-bet.won .sc-bet-name,.sc-page .sc-bet.won .sc-bet-pays { color: #54db9d; }
.sc-page .sc-bet.lost { border-color: rgba(255,102,122,.4); background: linear-gradient(145deg,rgba(150,42,58,.2),rgba(58,16,23,.26)); }
.sc-page .sc-bet.lost .sc-bet-name,.sc-page .sc-bet.lost .sc-bet-pays { color: #ff7385; }

.sc-page .sc-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); }
.sc-history-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid rgba(255,255,255,.055); }
.sc-history-title span { display: block; margin-bottom: 2px; color: #786f80; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sc-history-title h2 { margin: 0; color: #f1edf4; font-size: 14px; }
.sc-history-title > i { color: #74539f; }
.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); }

@media (max-width: 900px) {
    .sc-page .sc-controls { width: 280px; min-width: 250px; padding: 18px; }
    .sc-row--triples { grid-template-columns: repeat(4,1fr); }}
@media (min-width: 769px) {
    .sc-page .sc-controls {
        width: clamp(250px,22vw,280px);
        min-width: 250px;
        align-content: start;
        gap: 10px;
        padding: 15px;
    }
    .sc-page .sc-control-head {
        gap: 7px;
        padding-bottom: 10px;
    }
    .sc-page .sc-control-head > div span { margin-bottom: 2px; font-size: 8px; }
    .sc-page .sc-control-head > div strong { font-size: 13px; }
    .sc-page .sc-control-balance { gap: 4px; padding: 6px 7px; font-size: 10px; }
    .sc-page .sc-segment { gap: 4px; }
    .sc-page .sc-label { font-size: 9px; }
    .sc-page .sc-input-row {
        min-height: 48px;
        height: 48px;
        gap: 5px;
        padding: 5px 7px 5px 10px;
    }
    .sc-page .sc-input-icon { font-size: 11px; }
    .sc-page .sc-input { min-width: 45px; font-size: 15px; }
    .sc-page .sc-chips { gap: 3px; }
    .sc-page .sc-chip {
        min-width: 30px;
        height: 30px;
        padding: 0 4px;
        border-radius: 7px;
        font-size: 8px;
    }
    .sc-page .sc-bet-summary {
        gap: 7px;
        padding: 9px 10px;
        border-radius: 10px;
    }
    .sc-page .sc-bet-summary span { margin-bottom: 2px; font-size: 7px; }
    .sc-page .sc-bet-summary strong {
        display: block;
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sc-page .sc-btn-place {
        min-height: 46px;
        height: 46px;
        border-radius: 10px;
        font-size: 12px;
    }
    .sc-page .sc-risk-note {
        margin-top: 2px;
        padding-top: 9px;
        font-size: 8px;
        line-height: 1.35;
    }
    .sc-page .sc-display-area { gap: 10px; padding: 16px 18px 20px; }
    .sc-page .sc-table-wrap { gap: 8px; }
    .sc-page .sc-group { gap: 4px; }
    .sc-page .sc-group-label { font-size: 8px; }
    .sc-page .sc-group-note { font-size: 8px; }
    .sc-page .sc-row { gap: 4px; }
    .sc-page .sc-bet,
    .sc-page .sc-bet--wide,
    .sc-page .sc-bet--any {
        min-height: 46px;
        gap: 2px;
        padding: 5px 3px;
        border-radius: 9px;
    }
    .sc-page .sc-bet--faces { min-height: 45px; }
    .sc-page .sc-bet-name { font-size: 10px; }
    .sc-page .sc-bet--total .sc-bet-name { font-size: 15px; }
    .sc-page .sc-bet-sub { font-size: 7px; }
    .sc-page .sc-bet-pays { font-size: 8px; }
    .sc-page .sc-bet-faces { gap: 2px; }
    .sc-page .sc-bet .sc-face {
        width: 19px;
        height: 19px;
        gap: 1px;
        padding: 2px;
        border-radius: 5px;
    }
    .sc-page .sc-row--triples .sc-face {
        width: 14px;
        height: 14px;
        padding: 2px;
        border-radius: 3px;
    }
    .sc-page .sc-bet--single .sc-face--big {
        width: 27px;
        height: 27px;
        padding: 4px;
        border-radius: 7px;
    }}
@media (max-width: 768px), (pointer: coarse) and (max-width: 1199px) and (max-height: 600px) and (orientation: landscape) {
    .sc-page { padding: 16px 12px 34px; }
    .sc-how-button { width: 36px; padding: 0; justify-content: center; font-size: 0; }
    .sc-how-button i { font-size: 13px; }
    .sc-page .sc-game-layout { flex-direction: column; min-height: 0; border-radius: 16px; }
    .sc-page .sc-stage { order: 1; }
    .sc-page .sc-controls { order: 2; width: 100%; min-width: 0; border-top: 1px solid rgba(255,255,255,.07); border-right: 0; }
    /* On mobile the site turns every game page into a fixed, non-scrolling
       app screen: `body.is-game-page [class$="-game-layout"]` makes the layout
       a 42%/58% grid with `overflow: hidden`. The 52-cell betting table cannot
       fit that pane, so it keeps the base `overflow-y: auto` and scrolls
       inside the surface. Only the desktop min-height has to go, or the area
       would overflow the pane instead of scrolling on a short phone. */
    .sc-page .sc-display-area { min-height: 0; }}
@media (max-width: 540px) {
    .sc-page-icon { width: 40px; height: 40px; border-radius: 12px; }
    .sc-page-identity h1 { font-size: 20px; }
    .sc-top-fair { width: 36px; padding: 0; justify-content: center; font-size: 0; }
    .sc-top-fair i { font-size: 13px; }
    .sc-page .sc-display-area { padding: 18px 10px; }
    .sc-face--big { width: 54px; height: 54px; gap: 4px; padding: 7px; border-radius: 12px; }
    .sc-roll-stage { gap: 14px; }
    .sc-roll-readout { min-width: 78px; padding: 8px 12px; }
    .sc-roll-readout strong { font-size: 24px; }
    .sc-row--main { grid-template-columns: 1fr 1fr; }
    .sc-row--triples,.sc-row--doubles,.sc-row--singles { grid-template-columns: repeat(3,1fr); }
    .sc-row--totals { grid-template-columns: repeat(auto-fit,minmax(48px,1fr)); }
    .sc-row--combos { grid-template-columns: repeat(auto-fit,minmax(54px,1fr)); }
    .sc-page .sc-input-row { flex-wrap: wrap; }
    .sc-page .sc-chips { width: 100%; }
    .sc-page .sc-chip { flex: 1; }
    .sc-control-head { align-items: flex-start; }}

/* Sic Bo mobile app scene. Keep the complete betting table scrollable inside
   the stage while the primary wager controls remain permanently reachable. */
@media (max-width:768px) and (orientation:portrait) {
    body.is-game-page .sc-page .sc-game-layout {
        grid-template-columns:1fr!important;
        grid-template-rows:minmax(0,1fr) 164px!important;
        gap:6px!important;
    }
    body.is-game-page .sc-page .sc-stage {
        grid-row:1!important;order:1!important;padding:0!important;
        display:flex!important;overflow:hidden!important;
    }
    body.is-game-page .sc-page .sc-header { display:none!important; }
    body.is-game-page .sc-page .sc-display-area {
        width:100%!important;height:100%!important;min-height:0!important;padding:6px!important;
        display:grid!important;grid-template-rows:70px 25px minmax(0,1fr)!important;
        gap:5px!important;align-items:stretch!important;overflow:hidden!important;box-sizing:border-box!important;
    }
    body.is-game-page .sc-page .sc-roll-stage {
        grid-row:1!important;width:100%!important;height:70px!important;min-height:0!important;
        display:grid!important;grid-template-columns:minmax(0,1fr) 64px!important;gap:6px!important;
        align-items:center!important;overflow:hidden!important;
    }
    body.is-game-page .sc-page .sc-roll-tray {
        width:100%!important;display:flex!important;justify-content:center!important;gap:7px!important;
    }
    body.is-game-page .sc-page .sc-roll-tray .sc-face--big {
        width:44px!important;height:44px!important;padding:6px!important;gap:3px!important;border-radius:10px!important;
    }
    body.is-game-page .sc-page .sc-roll-readout {
        width:64px!important;min-width:64px!important;height:58px!important;padding:5px 7px!important;
        align-items:center!important;border-radius:10px!important;box-sizing:border-box!important;
    }
    body.is-game-page .sc-page .sc-roll-readout span { font-size:6px!important; }
    body.is-game-page .sc-page .sc-roll-readout strong { font-size:21px!important;line-height:1!important; }
    body.is-game-page .sc-page .sc-roll-readout small {
        width:100%!important;overflow:hidden!important;font-size:6px!important;text-align:center!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    }
    body.is-game-page .sc-page .sc-hint {
        grid-row:2!important;width:100%!important;height:25px!important;min-height:25px!important;margin:0!important;padding:4px 7px!important;
        overflow:hidden!important;border-radius:8px!important;font-size:7px!important;line-height:15px!important;text-overflow:ellipsis!important;white-space:nowrap!important;box-sizing:border-box!important;
    }
    body.is-game-page .sc-page .sc-table-wrap {
        grid-row:3!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:1px 2px 6px!important;
        gap:7px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;box-sizing:border-box!important;
    }
    body.is-game-page .sc-page .sc-group { gap:3px!important; }
    body.is-game-page .sc-page .sc-group-label,
    body.is-game-page .sc-page .sc-group-note { font-size:7px!important; }
    body.is-game-page .sc-page .sc-row { gap:3px!important; }
    body.is-game-page .sc-page .sc-row--main { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
    body.is-game-page .sc-page .sc-row--triples,
    body.is-game-page .sc-page .sc-row--doubles,
    body.is-game-page .sc-page .sc-row--singles { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
    body.is-game-page .sc-page .sc-row--totals { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
    body.is-game-page .sc-page .sc-row--combos { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
    body.is-game-page .sc-page .sc-bet,
    body.is-game-page .sc-page .sc-bet--wide,
    body.is-game-page .sc-page .sc-bet--any,
    body.is-game-page .sc-page .sc-bet--faces {
        min-height:42px!important;padding:4px 2px!important;gap:2px!important;border-radius:8px!important;
    }
    body.is-game-page .sc-page .sc-bet-name { font-size:9px!important; }
    body.is-game-page .sc-page .sc-bet--total .sc-bet-name { font-size:14px!important; }
    body.is-game-page .sc-page .sc-bet-sub { font-size:6px!important;text-align:center!important; }
    body.is-game-page .sc-page .sc-bet-pays { font-size:7px!important; }
    body.is-game-page .sc-page .sc-face { width:18px!important;height:18px!important;padding:2px!important;gap:1px!important;border-radius:4px!important; }
    body.is-game-page .sc-page .sc-row--triples .sc-face { width:14px!important;height:14px!important; }

    body.is-game-page .sc-page .sc-controls {
        grid-row:2!important;order:2!important;padding:7px!important;
        display:grid!important;grid-template-columns:1fr!important;
        grid-template-rows:54px 48px 42px!important;gap:5px!important;overflow:hidden!important;
    }
    body.is-game-page .sc-page .sc-control-head,
    body.is-game-page .sc-page .sc-risk-note { display:none!important; }
    body.is-game-page .sc-page .sc-btn-place {
        grid-row:1!important;order:0!important;width:100%!important;height:54px!important;min-height:54px!important;
        margin:0!important;border-radius:12px!important;font-size:13px!important;
    }
    body.is-game-page .sc-page .sc-bet-segment {
        grid-row:2!important;margin:0!important;gap:2px!important;overflow:hidden!important;
    }
    body.is-game-page .sc-page .sc-bet-segment > .sc-label { display:none!important; }
    body.is-game-page .sc-page .sc-input-row {
        width:100%!important;height:48px!important;min-height:48px!important;padding:4px 7px!important;
        flex-wrap:nowrap!important;gap:5px!important;overflow:hidden!important;
    }
    body.is-game-page .sc-page .sc-input { min-width:48px!important;font-size:16px!important; }
    body.is-game-page .sc-page .sc-chips { width:auto!important;flex:0 0 auto!important;gap:4px!important; }
    body.is-game-page .sc-page .sc-chip {
        width:48px!important;min-width:48px!important;height:34px!important;flex:0 0 48px!important;padding:0 3px!important;font-size:8px!important;
    }
    body.is-game-page .sc-page .sc-bet-summary {
        grid-row:3!important;width:100%!important;height:42px!important;min-height:42px!important;
        padding:5px 9px!important;gap:7px!important;border-radius:10px!important;overflow:hidden!important;box-sizing:border-box!important;
    }
    body.is-game-page .sc-page .sc-bet-summary span { margin:0 0 2px!important;font-size:6px!important;text-align:center!important; }
    body.is-game-page .sc-page .sc-bet-summary strong {
        display:block!important;overflow:hidden!important;font-size:10px!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    }}

@media (max-width:350px) and (orientation:portrait) {
    body.is-game-page .sc-page .sc-game-layout { grid-template-rows:minmax(0,1fr) 156px!important; }
    body.is-game-page .sc-page .sc-controls { grid-template-rows:52px 45px 39px!important; }
    body.is-game-page .sc-page .sc-btn-place { height:52px!important;min-height:52px!important; }
    body.is-game-page .sc-page .sc-input-row { height:45px!important;min-height:45px!important; }
    body.is-game-page .sc-page .sc-chip { width:42px!important;min-width:42px!important;height:31px!important;flex-basis:42px!important; }
    body.is-game-page .sc-page .sc-bet-summary { height:39px!important;min-height:39px!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 .sc-page .sc-game-layout {
        grid-template-columns:220px minmax(0,1fr)!important;grid-template-rows:1fr!important;gap:6px!important;
    }
    body.is-game-page .sc-page .sc-controls {
        grid-column:1!important;grid-row:1!important;order:1!important;padding:7px!important;gap:5px!important;overflow-y:auto!important;
    }
    body.is-game-page .sc-page .sc-control-head,
    body.is-game-page .sc-page .sc-risk-note { display:none!important; }
    body.is-game-page .sc-page .sc-btn-place { order:-1!important;height:48px!important;min-height:48px!important;margin:0!important; }
    body.is-game-page .sc-page .sc-bet-segment { margin:0!important; }
    body.is-game-page .sc-page .sc-input-row { min-height:44px!important;padding:4px 6px!important;flex-wrap:nowrap!important; }
    body.is-game-page .sc-page .sc-input { min-width:36px!important;font-size:14px!important; }
    body.is-game-page .sc-page .sc-chips { width:auto!important;gap:3px!important; }
    body.is-game-page .sc-page .sc-chip { min-width:35px!important;height:32px!important;padding:0 2px!important;font-size:7px!important; }
    body.is-game-page .sc-page .sc-bet-summary { padding:7px!important;gap:5px!important; }
    body.is-game-page .sc-page .sc-bet-summary span { font-size:6px!important;text-align:center!important; }
    body.is-game-page .sc-page .sc-bet-summary strong { font-size:9px!important; }
    body.is-game-page .sc-page .sc-stage {
        grid-column:2!important;grid-row:1!important;order:2!important;padding:0!important;overflow:hidden!important;
    }
    body.is-game-page .sc-page .sc-header { display:none!important; }
    body.is-game-page .sc-page .sc-display-area {
        width:100%!important;height:100%!important;min-height:0!important;padding:5px!important;
        display:grid!important;grid-template-rows:58px 22px minmax(0,1fr)!important;gap:4px!important;overflow:hidden!important;box-sizing:border-box!important;
    }
    body.is-game-page .sc-page .sc-roll-stage { height:58px!important;display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow:hidden!important; }
    body.is-game-page .sc-page .sc-roll-tray { gap:5px!important; }
    body.is-game-page .sc-page .sc-roll-tray .sc-face--big { width:38px!important;height:38px!important;padding:5px!important;gap:3px!important;border-radius:9px!important; }
    body.is-game-page .sc-page .sc-roll-readout { min-width:58px!important;height:48px!important;padding:4px 6px!important;align-items:center!important; }
    body.is-game-page .sc-page .sc-roll-readout span,
    body.is-game-page .sc-page .sc-roll-readout small { font-size:6px!important; }
    body.is-game-page .sc-page .sc-roll-readout strong { font-size:19px!important;line-height:1!important; }
    body.is-game-page .sc-page .sc-hint { height:22px!important;min-height:22px!important;margin:0!important;padding:3px 6px!important;font-size:6px!important;white-space:nowrap!important;overflow:hidden!important; }
    body.is-game-page .sc-page .sc-table-wrap { min-height:0!important;height:100%!important;padding:1px 2px 5px!important;gap:6px!important;overflow-y:auto!important;overscroll-behavior:contain; }
    body.is-game-page .sc-page .sc-group { gap:3px!important; }
    body.is-game-page .sc-page .sc-group-label,
    body.is-game-page .sc-page .sc-group-note { font-size:6px!important; }
    body.is-game-page .sc-page .sc-row { gap:3px!important; }
    body.is-game-page .sc-page .sc-bet { min-height:36px!important;padding:3px 2px!important;border-radius:7px!important; }
    body.is-game-page .sc-page .sc-bet-name { font-size:8px!important; }
    body.is-game-page .sc-page .sc-bet-pays { font-size:6px!important; }}
.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; }