/* SlotCrash lists: manual pagination and compact game activity. */
.sc-bets-panel {
    --sc-bets-bg: #1c1d21;
    --sc-bets-line: rgba(255, 255, 255, .075);
    --sc-bets-muted: #979da9;
    margin: 24px auto 0;
    width: 100%; max-width: 1320px; min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sc-bets-line);
    border-radius: 20px;
    background: var(--sc-bets-bg);
    color: #f1f2f5;
    font-family: 'Gotham Pro', Arial, sans-serif;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.sc-bets-panel *, .sc-bets-mini__toggle { box-sizing: border-box; }
.sc-bets-panel__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 22px;
    border-bottom: 1px solid var(--sc-bets-line);
}
.sc-bets-panel__name { display: flex; align-items: center; min-width: 0; gap: 10px; }
.sc-bets-panel__name > svg { width: 20px; height: 20px; flex: 0 0 20px; color: #7e9fff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sc-bets-panel__name h2 { margin: 0; color: #f1f2f5; font-size: 16px; font-weight: 750; line-height: 1.3; }
.sc-bets-panel__count { flex: 0 0 auto; padding: 6px 10px; border-radius: 8px; background: #292b31; color: #aeb4c1; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sc-bets-panel__source.history { width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; overflow: visible !important; }
.sc-bets-panel__source.history::before, .sc-bets-panel__legacy-summary { display: none !important; }
.sc-bets-panel__viewport { min-width: 0; width: 100%; }
.sc-bets-panel .history table { display: table !important; width: 100% !important; min-width: 0 !important; table-layout: fixed; border-collapse: collapse !important; border-spacing: 0 !important; margin: 0 !important; }
.sc-bets-panel .history table thead { display: table-header-group !important; }
.sc-bets-panel .history table thead tr > :nth-child(n), .sc-bets-panel .history table tbody tr > td:nth-child(n) { display: table-cell !important; width: auto !important; max-width: none !important; }
.sc-bets-panel .history table thead tr > :nth-child(n), .sc-bets-panel .history table tbody tr > td:nth-child(n) { text-align: right !important; }
.sc-bets-panel .history table thead tr > :first-child, .sc-bets-panel .history table tbody tr > td:first-child { text-align: left !important; }
.sc-bets-panel .history table thead tr > * { padding: 12px 16px !important; height: auto !important; background: #202126 !important; color: var(--sc-bets-muted) !important; font-size: 11px !important; font-weight: 600 !important; text-align: right; border: 0 !important; }
.sc-bets-panel .history table thead tr > :first-child { width: 31%; text-align: left; padding-left: 22px !important; }
.sc-bets-panel .history table tbody { display: table-row-group !important; }
.sc-bets-panel .history table tbody tr { background: transparent !important; }
.sc-bets-panel .history table tbody tr > td { padding: 13px 16px !important; height: auto !important; background: transparent !important; color: #e9ebf1 !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.4 !important; border: 0 !important; border-bottom: 1px solid var(--sc-bets-line) !important; border-radius: 0 !important; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bets-panel .history table tbody tr > td:first-child { padding-left: 22px !important; text-align: left; }
.sc-bets-panel .history table tbody tr:last-child > td { border-bottom: 0 !important; }
.sc-bets-panel .history table tr > :last-child { padding-right: 22px !important; }
.sc-bets-panel .history__user, .sc-bets-panel .history__game { width: auto !important; min-width: 0 !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 9px !important; }
.sc-bets-panel .history__user > span, .sc-bets-panel .history__game > span { min-width: 0; max-width: 100% !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 !important; font-size: 13px !important; }
.sc-bets-panel .history__user-avatar { width: 28px !important; height: 28px !important; min-width: 28px !important; flex: 0 0 28px !important; margin: 0 !important; border-radius: 9px !important; display: inline-flex !important; justify-content: center !important; align-items: center !important; background-color: #30343e !important; color: #c9d5fc; font-size: 10px !important; font-weight: 700 !important; }
.sc-bets-panel .history__sum, .sc-bets-panel .history__x { justify-content: flex-end !important; gap: 5px; font-size: 13px !important; }
.sc-bets-panel .history__game .icon { width: 24px !important; height: 24px !important; flex: 0 0 24px; margin: 0 !important; }
.sc-bets-panel .icon.money { width: 13px !important; height: 13px !important; margin-left: 5px !important; }
.sc-bets-panel .fake-online__status { padding: 5px 8px; border-radius: 7px; font-size: 10px !important; font-weight: 650; white-space: nowrap; }
.sc-bets-panel .history.fake-online .history__sum, .sc-bets-panel .history.fake-online .history__x,
.sc-bets-panel .history.fake-online .fake-online__user > span { font-size: 13px !important; }
.sc-bets-panel .history.fake-online .fake-online__avatar { width: 28px !important; height: 28px !important; min-width: 28px !important; flex-basis: 28px !important; font-size: 10px !important; }
.sc-bets-panel .history.fake-online .fake-online__status { width: auto !important; min-width: 0 !important; padding: 5px 8px !important; font-size: 10px !important; }
.sc-bets-panel .fake-online__status--win { color: #76d8ac !important; background: rgba(69, 181, 130, .10) !important; }
.sc-bets-panel .fake-online__status--wait { color: #d0b57c !important; background: rgba(210, 172, 90, .09) !important; }
.sc-bets-panel .fake-online__status--lose { color: #989fac !important; background: rgba(151, 159, 177, .07) !important; }
.sc-bets-panel--games .history table thead tr > :first-child { width: 23%; }
.sc-bets-panel--games .history table thead tr > :nth-child(2) { width: 25%; text-align: left; }
#_ajax_content_ .sc-bets-panel:not([data-expanded]) .sc-bets-panel__source tbody > tr:nth-child(n+6),
#_ajax_content_ .sc-bets-panel:not([data-expanded]) .crash__history-users > .crash__history-item-user:nth-child(n+6) { display: none !important; }
.sc-bets-panel__empty { margin: 0; padding: 30px 20px; text-align: center; color: var(--sc-bets-muted); font-size: 13px; }
.sc-bets-panel__empty[hidden], .sc-bets-panel__footer[hidden] { display: none !important; }
.sc-bets-panel--empty .sc-bets-panel__viewport { display: none; }
.sc-bets-panel__footer { padding: 12px 18px; border-top: 1px solid var(--sc-bets-line); background: rgba(255, 255, 255, .012); }
.sc-bets-panel__toggle, .sc-bets-mini__toggle {
    appearance: none; display: flex; justify-content: center; align-items: center; gap: 9px;
    width: 100%; min-height: 40px; margin: 0; padding: 10px 14px;
    border: 1px solid rgba(114, 151, 255, .14); border-radius: 10px;
    background: rgba(75, 119, 240, .09); color: #a4bcff;
    font: inherit; font-size: 12px; font-weight: 650; line-height: 1.3; text-align: center; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.sc-bets-panel__toggle:hover, .sc-bets-mini__toggle:hover { background: rgba(75, 119, 240, .16); border-color: rgba(114, 151, 255, .3); }
.sc-bets-panel__toggle:focus-visible, .sc-bets-mini__toggle:focus-visible { outline: 2px solid #7e9fff; outline-offset: 3px; }
.sc-bets-panel__toggle svg, .sc-bets-mini__toggle svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc-bets-panel[data-expanded] .sc-bets-panel__toggle svg, .sc-bets-mini[data-players-expanded] .sc-bets-mini__toggle svg { transform: rotate(180deg); }

/* Crash keeps the original row nodes and payout selectors. */
#_ajax_content_ .sc-bets-panel .crash__history-users > .crash__history-item-user { display: grid !important; grid-template-columns: minmax(130px, 1fr) minmax(240px, 1.7fr); align-items: center !important; height: auto !important; min-height: 0 !important; gap: 16px; margin: 0 !important; padding: 14px 22px !important; border: 0 !important; border-bottom: 1px solid var(--sc-bets-line) !important; border-radius: 0 !important; background: transparent !important; }
#_ajax_content_ .sc-bets-panel .crash__history-users > .crash__history-item-user:last-child { border-bottom: 0 !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user > .d-flex:nth-child(2) { display: grid !important; grid-template-columns: minmax(80px, .8fr) minmax(140px, 1.2fr) !important; align-items: center; gap: 14px; min-width: 0; width: auto !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user > .d-flex:nth-child(2) > .d-flex:first-child { justify-content: flex-end; min-width: 0; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user .bx-input__text { min-width: 0 !important; color: #e9ebf1; font-size: 13px !important; line-height: 1.4; }
#_ajax_content_ .sc-bets-panel .crash__history-user-x { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; background: none !important; }
#_ajax_content_ .sc-bets-panel .crash__history-user-x > .d-flex { display: flex !important; min-width: 0; }
#_ajax_content_ .sc-bets-panel .crash__history-user-x .crash__history-item { width: auto !important; min-width: 56px !important; height: 28px !important; margin: 0 !important; padding: 4px 9px !important; border-radius: 7px !important; }
#_ajax_content_ .sc-bets-panel .crash__history-user-x .crash__history-item span { font-size: 11px !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user--win .fake-crash-win { color: #71d6a4 !important; }

/* Per-multiplier player lists stay closed until requested. */
.x30__bet.sc-bets-mini { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.065); border-radius: 15px !important; background: #202126; }
.sc-bets-mini > .x30__bet-users, .sc-bets-mini > .x100__bet-users { display: none !important; }
.sc-bets-mini[data-players-expanded] > .x30__bet-users, .sc-bets-mini[data-players-expanded] > .x100__bet-users { display: block !important; max-height: 260px; overflow-y: auto; padding: 0 10px !important; margin: 0 !important; }
.sc-bets-mini__toggle { width: calc(100% - 16px); margin: 0 8px 8px; min-height: 34px; padding: 8px 5px; border: 0; font-size: 10px; gap: 4px; }
.sc-bets-mini__toggle:disabled { cursor: default; color: #8d94a2; background: rgba(255,255,255,.025); }
.sc-bets-mini .x30__bet-user, .sc-bets-mini .x100__bet-user { min-width: 0; gap: 7px; padding: 9px 0 !important; margin: 0 !important; border-bottom: 1px solid rgba(255,255,255,.06); }
.sc-bets-mini .history__user { min-width: 0; gap: 6px !important; justify-content: flex-start !important; }
.sc-bets-mini .history__user > span { max-width: 90px !important; overflow: hidden; text-overflow: ellipsis; font-size: 11px !important; }
.sc-bets-mini .history__user-avatar { width: 22px !important; height: 22px !important; min-width: 22px !important; flex: 0 0 22px !important; margin: 0 !important; font-size: 8px !important; }
.sc-bets-mini .x30__bet-user > span, .sc-bets-mini .x100__bet-user > span { font-size: 11px !important; white-space: nowrap; }

body .sc-slot-status [data-slot-more] {
    min-height: 32px; min-width: 128px; width: auto;
    padding: 7px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px;
    background: rgba(255,255,255,.025); color: #a4aab6;
    font-size: 12px; line-height: 1.3; font-weight: 500;
    box-shadow: none;
}
body .sc-slot-status [data-slot-more]:hover { background: rgba(255,255,255,.05); color: #d0d5df; }
[data-slot-more][aria-busy="true"] { cursor: progress; }

@media (max-width: 680px) {
    .sc-bets-panel { margin-top: 18px; border-radius: 16px; }
    .sc-bets-panel__header { gap: 10px; padding: 16px; }
    .sc-bets-panel__name { gap: 8px; }
    .sc-bets-panel__name h2 { font-size: 14px; }
    .sc-bets-panel__count { padding: 5px 8px; font-size: 10px; }
    .sc-bets-panel .history table, .sc-bets-panel .history table tbody { display: block !important; }
    .sc-bets-panel .history table thead { display: none !important; }
    .sc-bets-panel .history table tbody tr { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding: 14px 16px !important; border-bottom: 1px solid var(--sc-bets-line); }
    .sc-bets-panel .history table tbody tr:last-child { border-bottom: 0; }
    .sc-bets-panel .history table tbody tr > td { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 0 !important; border: 0 !important; text-align: left; font-size: 13px !important; }
    .sc-bets-panel .history table tbody tr > td:nth-child(n) { display: flex !important; }
    .sc-bets-panel .history table tbody tr > td::before { content: attr(data-sc-bet-label); margin-bottom: 4px; color: var(--sc-bets-muted); font-size: 10px; font-weight: 500; }
    .sc-bets-panel--table .history table tbody tr > td:first-child { grid-column: 1 / 3; grid-row: 1; }
    .sc-bets-panel--table .history table tbody tr > td:last-child { grid-column: 3; grid-row: 1; align-items: flex-end; }
    .sc-bets-panel--table .history table tbody tr > td:nth-child(2) { grid-column: 1; grid-row: 2; }
    .sc-bets-panel--table .history table tbody tr > td:nth-child(3) { grid-column: 2; grid-row: 2; }
    .sc-bets-panel--table .history table tbody tr > td:nth-child(4) { grid-column: 3; grid-row: 2; align-items: flex-end; }
    .sc-bets-panel--table .history table tbody tr > td:first-child::before, .sc-bets-panel--table .history table tbody tr > td:last-child::before,
    .sc-bets-panel--games .history table tbody tr > td:nth-child(-n+2)::before { display: none; }
    .sc-bets-panel--games .history table tbody tr > td:first-child { grid-column: 1; grid-row: 1; }
    .sc-bets-panel--games .history table tbody tr > td:nth-child(2) { grid-column: 2 / 4; grid-row: 1; align-items: flex-end; }
    .sc-bets-panel--games .history table tbody tr > td:nth-child(n+3) { grid-row: 2; }
    .sc-bets-panel .history__sum, .sc-bets-panel .history__x { justify-content: flex-start !important; }
    .sc-bets-panel .history__user-avatar { width: 26px !important; height: 26px !important; min-width: 26px !important; flex-basis: 26px !important; }
    .sc-bets-panel .history__user > span, .sc-bets-panel .history__game > span { font-size: 12px !important; }
    .sc-bets-panel .history.fake-online .fake-online__user > span { font-size: 12px !important; }
    .sc-bets-panel .history.fake-online .fake-online__avatar { width: 26px !important; height: 26px !important; min-width: 26px !important; flex-basis: 26px !important; }
    .sc-bets-panel__footer { padding: 10px 12px; }
#_ajax_content_ .sc-bets-panel .crash__history-users > .crash__history-item-user { grid-template-columns: 1fr !important; gap: 12px !important; padding: 14px 16px !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user > .history__user { width: 100% !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user > .d-flex:nth-child(2) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) !important; width: 100% !important; gap: 12px !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user > .d-flex:nth-child(2) > .d-flex:first-child { justify-content: flex-start; }
#_ajax_content_ .sc-bets-panel .crash__history-user-x { gap: 8px !important; }
#_ajax_content_ .sc-bets-panel--crash [data-sc-bet-label] { position: relative; padding-top: 16px !important; }
#_ajax_content_ .sc-bets-panel--crash [data-sc-bet-label]::before { content: attr(data-sc-bet-label); position: absolute; top: 0; left: 0; color: var(--sc-bets-muted); font-size: 10px; font-weight: 500; line-height: 1.2; }
}

#_ajax_content_ .sc-bets-panel .crash__history-users { display: block !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user { flex: 0 0 auto !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user > .d-flex:nth-child(2),
#_ajax_content_ .sc-bets-panel .crash__history-user-x { height: auto !important; min-height: 0 !important; }
#_ajax_content_ .sc-bets-panel .crash__history-item-user > .d-flex:nth-child(2) > .d-flex:first-child,
#_ajax_content_ .sc-bets-panel .crash__history-user-x > .d-flex:first-child { width: auto !important; min-width: 0 !important; justify-content: flex-start !important; }
#_ajax_content_ .sc-bets-panel .crash__history-user-x .crash__history-item { display: inline-flex !important; align-items: center; justify-content: center; line-height: 1.2 !important; background: rgba(82, 122, 241, .16) !important; color: #a4bcff !important; }

/* Keep real player rows, including their coin SVG, inside the card padding. */
#_ajax_content_ .sc-bets-mini > .x30__bet-users,
#_ajax_content_ .sc-bets-mini > .x100__bet-users {
    box-sizing: border-box; width: 100%; max-width: 100%;
    padding: 6px 10px 8px !important;
}
#_ajax_content_ .sc-bets-mini .x30__bet-user,
#_ajax_content_ .sc-bets-mini .x100__bet-user {
    box-sizing: border-box; display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    width: 100%; max-width: 100%; min-width: 0; gap: 8px;
    padding: 9px 10px !important; margin: 0 0 6px !important;
    border-radius: 9px !important;
}
#_ajax_content_ .sc-bets-mini .x30__bet-user:last-child,
#_ajax_content_ .sc-bets-mini .x100__bet-user:last-child { margin-bottom: 0 !important; }
#_ajax_content_ .sc-bets-mini .history__user {
    min-width: 0; max-width: 100%; width: auto !important;
    justify-content: flex-start !important; gap: 6px !important;
}
#_ajax_content_ .sc-bets-mini .history__user > span {
    display: block; min-width: 0; max-width: 100% !important; margin: 0 !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4;
}
#_ajax_content_ .sc-bets-mini .history__user-avatar { margin: 0 !important; }
#_ajax_content_ .sc-bets-mini .x30__bet-sum {
    display: inline-flex !important; align-items: center; justify-content: flex-end;
    min-width: 0; gap: 5px; margin: 0 !important; white-space: nowrap;
    font-size: 11px !important; line-height: 1.4;
}
#_ajax_content_ .sc-bets-mini .x30__bet-sum > span { min-width: 0; font-size: inherit !important; }
#_ajax_content_ .sc-bets-mini .x30__bet-sum .icon.money {
    display: block; width: 12px !important; height: 12px !important;
    min-width: 12px; flex: 0 0 12px; margin: 0 !important;
}
