

/* =========================================
   CRASH 2026 UI REFRESH
   Visual-only layer: gameplay selectors and scene sizing stay intact.
   ========================================= */
.cr-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 22px 42px;
    box-sizing: border-box;
    text-align: left;
}

.cr-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.cr-page-identity { display: flex; align-items: center; gap: 12px; }
.cr-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);
}
.cr-page-icon img { width: 25px; height: 25px !important; object-fit: contain; }
.cr-page-kicker { display: block; margin-bottom: 2px; color: #8d829a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cr-page-identity h1 { margin: 0; color: #fff; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.cr-page-actions { display: flex; align-items: center; gap: 8px; }
.cr-live-badge,
.cr-how-button,
.cr-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-size: 11px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}
.cr-live-badge i,
.cr-round-state i { width: 7px; height: 7px; border-radius: 50%; background: #54d994; box-shadow: 0 0 0 4px rgba(84,217,148,.1), 0 0 12px rgba(84,217,148,.45); }
.cr-how-button { font-family: inherit; cursor: pointer; }
.cr-how-button:hover,
.cr-top-fair:hover { border-color: rgba(163,108,255,.32); background: rgba(135,74,232,.1); color: #fff; }
.cr-top-fair i { color: #f4c95d; }

.cr-page .cr-game-layout {
    min-height: 500px;
    margin-bottom: 18px;
    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);
}
.cr-page .cr-controls {
    width: clamp(270px, 25vw, 315px);
    min-width: 270px;
    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%);
}
.cr-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); }
.cr-control-head > div span { display: block; margin-bottom: 3px; color: #857b8e; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cr-control-head > div strong { color: #f5f1f8; font-size: 15px; }
.cr-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; }
.cr-control-balance i { color: #f4c95d; }
.cr-sound-toggle { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); color: #a79ead; font-size: 11px; font-weight: 750; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.cr-sound-toggle:hover { border-color: rgba(159,104,248,.4); background: rgba(130,69,226,.12); color: #fff; }
.cr-sound-toggle.is-muted { border-color: rgba(244,201,93,.2); background: rgba(244,201,93,.07); color: #d9ccaa; }
.cr-header-actions { display: flex; align-items: center; gap: 11px; }
.cr-sound-toggle--compact { width: 34px; min-height: 32px; padding: 0; border-radius: 9px; }
.cr-history-wrap { order: 3; }
.cr-history-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #807588; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.cr-history-label i { color: #655b70; }
.cr-page .crash_history_container { height: 37px; border: 1px solid rgba(255,255,255,.065); border-radius: 10px; background: rgba(6,4,12,.34); overflow: hidden; }
.cr-page #crash_history { display: flex; height: 100%; align-items: center; padding: 0 7px; overflow: hidden; }
.cr-page #crash_history .pick-number { flex: 0 0 auto; margin-right: 5px !important; padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--color) 30%, transparent); border-radius: 7px; background: var(--color-bg); font-size: 10px; font-weight: 900;line-height:1;text-shadow:0 1px 0 rgba(255,255,255,.16); }
.cr-controls .crash_history_container .grd { background: linear-gradient(270deg, #17101f, rgba(23,16,31,0)); }
.cr-page .cr-segment { order: 1; gap: 9px; }
.cr-page .cr-label { color: #a79ead; font-size: 11px; font-weight: 700; }
.cr-page .cr-input-row { min-height: 58px; padding: 8px 10px 8px 14px; border-color: rgba(171,122,255,.24); border-radius: 12px; background: rgba(6,4,12,.43); transition: border-color .2s, box-shadow .2s; }
.cr-page .cr-input-row:focus-within { border-color: #8952e2; box-shadow: 0 0 0 3px rgba(132,72,226,.12); }
.cr-page .cr-input-icon { color: #f4c95d; }
.cr-page .cr-input { font-size: 18px; font-weight: 750; }
.cr-page .cr-chips { gap: 5px; }
.cr-page .cr-chip { min-width: 34px; height: 31px; padding: 0 7px; border-color: rgba(255,255,255,.075); border-radius: 8px; background: rgba(255,255,255,.045); color: #958b9e; font-size: 10px; }
.cr-page .cr-chip:hover { border-color: rgba(159,104,248,.38); background: rgba(130,69,226,.14); }
.cr-auto-row {
    order: 1;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: rgba(6,4,12,.3);
}
.cr-auto-row.is-locked { opacity: .58; }
.cr-auto-toggle { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: #a79ead; font-size: 10px; font-weight: 750; cursor: pointer; }
.cr-auto-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cr-auto-switch { position: relative; width: 30px; height: 18px; flex: 0 0 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; background: rgba(255,255,255,.075); transition: border-color .18s,background .18s; }
.cr-auto-switch i { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #8b8091; transition: transform .18s,background .18s,box-shadow .18s; }
.cr-auto-toggle input:checked + .cr-auto-switch { border-color: rgba(139,82,226,.55); background: rgba(126,64,218,.32); }
.cr-auto-toggle input:checked + .cr-auto-switch i { background: #b77bf5; box-shadow: 0 0 9px rgba(183,123,245,.5); transform: translateX(12px); }
.cr-auto-toggle input:focus-visible + .cr-auto-switch { outline: 2px solid #b67cff; outline-offset: 2px; }
.cr-auto-value { display: flex; height: 32px; align-items: center; gap: 4px; padding: 0 9px; border: 1px solid rgba(171,122,255,.22); border-radius: 8px; background: rgba(7,4,13,.45); transition: opacity .18s,border-color .18s; }
.cr-auto-value.is-disabled { opacity: .42; border-color: rgba(255,255,255,.07); }
.cr-auto-value input { width: 62px; padding: 0; border: 0; outline: 0; background: transparent; color: #eee8f1; font: 800 13px/1 var(--site-font-display); text-align: right; -moz-appearance: textfield; }
.cr-auto-value input::-webkit-inner-spin-button,.cr-auto-value input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.cr-auto-value span { color: #9569ca; font-size: 12px; font-weight: 800; }
.cr-page #crash_bet,
.cr-page #crash_cashout { order: 2; min-height: 52px; height: 52px; margin-top: 0; border-radius: 12px; box-shadow: 0 14px 28px rgba(92,40,177,.24), inset 0 1px rgba(255,255,255,.16); }
.cr-page #crash_bet { background: linear-gradient(135deg, #7635db, #a254ef); }
.cr-page #crash_bet:hover:not(.disabled) { background: linear-gradient(135deg, #8241e5, #ae61f7); }
.cr-page #crash_cashout { background: linear-gradient(135deg, #12a965, #43d88d); box-shadow: 0 14px 28px rgba(24,176,106,.2), inset 0 1px rgba(255,255,255,.18); }
.cr-risk-note { order: 4; 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; }
.cr-risk-note i { margin-top: 2px; color: #8e6fc1; }

.cr-page .cr-stage { background: radial-gradient(circle at 70% 35%, rgba(105,51,180,.12), transparent 38%), #100c1b; }
.cr-page .cr-header { min-height: 57px; padding: 0 20px; border-bottom-color: rgba(255,255,255,.06); background: rgba(25,18,36,.82); }
.cr-page .cr-header-icon { width: 22px; height: 22px !important; }
.cr-page .cr-header-title { font-size: 14px; }
.cr-page .cr-info-icon { display: none; }
.cr-round-state { display: inline-flex; align-items: center; gap: 8px; color: #89808f; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cr-round-state i { width: 6px; height: 6px; }
.cr-page .cr-stage .crash-graph { flex: 1; min-height: 440px; background: transparent !important; overflow: hidden; }
.cr-page .cr-stage .cr-main { min-height: 440px; height: 100%; overflow: hidden; }
.cr-page .CrashScreen { min-height: 440px; height: 100% !important; }
.cr-page #Multiplier { text-shadow: 0 5px 22px rgba(0,0,0,.38), 0 0 40px rgba(145,83,235,.2); }

.cr-page .cr-bets-wrap { gap: 14px; margin-bottom: 0; }
.cr-page .cr-bets-col { 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); }
.cr-page .cr-bets-col h3 { display: flex; align-items: center; min-height: 54px; margin: 0 !important; padding: 0 16px !important; border-bottom: 1px solid rgba(255,255,255,.055); background: transparent !important; }
.cr-page .cr-bets-col h3 > div { margin-right: 9px; }
.cr-page .cr-bets-col h3 > span { color: #f1edf4; font-size: 13px; }
.cr-page .cr-bets-col h3 > small { margin-left: auto; color: #756d7d; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cr-page .cr-bets-col .list { max-height: 320px; padding: 8px; overflow-y: auto; }
.cr-page .cr-bets-col .list .user { min-height: 49px; margin-bottom: 6px; border-radius: 10px; background: rgba(255,255,255,.03) !important; transition: background .16s, border-color .16s; }
.cr-page .cr-bets-col .list .user:hover { border-color: rgba(151,101,230,.22) !important; background: rgba(130,75,214,.065) !important; }
.cr-page .cr-bets-col .nop { min-height: 112px; padding: 25px 15px; }

@media (max-width: 900px) {
    .cr-page .cr-controls { width: 270px; min-width: 250px; padding: 18px; }
    .cr-page-actions .cr-live-badge { display: none; }}

@media (max-width: 768px), (pointer: coarse) and (max-width: 1199px) and (max-height: 600px) and (orientation: landscape) {
    .cr-page { padding: 16px 12px 34px; }
    .cr-page-top { align-items: flex-start; }
    .cr-page-actions { align-self: center; }
    .cr-page-actions .cr-how-button { font-size: 0; width: 36px; padding: 0; justify-content: center; }
    .cr-page-actions .cr-how-button i { font-size: 13px; }
    .cr-top-fair { padding: 0 10px; }
    .cr-page .cr-game-layout { flex-direction: column; min-height: 0; border-radius: 16px; }
    .cr-page .cr-stage { order: 1; }
    .cr-page .cr-controls { order: 2; width: 100%; min-width: 0; box-sizing: border-box; border-top: 1px solid rgba(255,255,255,.07); border-right: 0; }
    .cr-page .cr-stage .crash-graph,
    .cr-page .cr-stage .cr-main,
    .cr-page .CrashScreen { min-height: 340px; }
    .cr-page .cr-controls .cr-segment { order: 1; }
    .cr-page .cr-controls .cr-btn-place,
    .cr-page .cr-controls .cr-btn-cashout { order: 2; }
    .cr-page .cr-controls .cr-history-wrap { order: 3; }
    .cr-page .cr-risk-note { order: 4; }
    .cr-page .cr-bets-wrap { grid-template-columns: 1fr; }}

@media (max-width: 480px) {
    .cr-page-top { gap: 10px; }
    .cr-page-icon { width: 40px; height: 40px; border-radius: 12px; }
    .cr-page-identity h1 { font-size: 20px; }
    .cr-top-fair { font-size: 0; width: 36px; padding: 0; justify-content: center; }
    .cr-top-fair i { font-size: 13px; }
    .cr-control-head { align-items: flex-start; }
    .cr-page .cr-input-row { flex-wrap: wrap; }
    .cr-page .cr-input { min-width: 100px; }
    .cr-page .cr-chips { width: 100%; margin-top: 2px; }
    .cr-page .cr-chip { flex: 1; }
    .cr-page .cr-stage .crash-graph,
    .cr-page .cr-stage .cr-main,
    .cr-page .CrashScreen { min-height: 300px; }
    .cr-page .cr-bets-col h3 > small { display: none; }}

.mines-game-layout #minesweeper_cashout.hidden { display: none !important; }
.dice-game-layout #dice_bet.win     { background: #09b95b !important; }
.limbo-btn-place.win     { background: #09b95b !important; }
.limbo-big-num.win  { color: #09b95b; }
.limbo-game-layout #limbo_bet.win      { background: #09b95b !important; }
.wheel-btn-place.win     { background: #09b95b !important; }
.wheel-big-num.win  { color: #09b95b; }
.wheel-game-layout #wheel_bet.win      { background: #09b95b !important; }
.hilo-btn-place.hidden,
.hilo-btn-cashout.hidden { display: none; }
.hilo-card-current.win  { box-shadow: 0 0 0 3px #09b95b, 0 4px 14px rgba(0,0,0,0.35); }
.hilo-hint.win  { color: #09b95b; font-weight: 600; }
.bj-btn-place.hidden { display: none; }
.bj-actions.hidden { display: none; }
.bj-hint.win  { color: #09b95b; font-weight: 600; }
.bcr-hint.win  { color: #09b95b; font-weight: 600; }
.dt-page .dt-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.kn-hint.win  { color: #09b95b; font-weight: 600; }
.ck-btn-place.hidden { display: none; }
.ck-actions.hidden { display: none; }
.ck-hint.win  { color: #09b95b; font-weight: 600; }
.cf-btn-place.hidden { display: none; }
.cf-actions.hidden { display: none; }
.cf-hint.win  { color: #09b95b; font-weight: 600; }
.av-btn-place.hidden { display: none; }
.av-splash.hidden { display: none; }
.av-hint.win { color: #09b95b; font-weight: 600; }
.av-celebration.hidden { display: none; }
.av-stall-warning.hidden { display: none; }
.pk-page .hidden { display: none !important; }
.rl-history.hidden { display: none !important; }

/* =========================================
   CRASH GAME REDESIGN
   ========================================= */

.cr-page { width: 100%; }

/* ── Two-panel game layout ── */
.cr-game-layout {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    min-height: 420px;
    margin-bottom: 24px;
}

/* ── Left panel ── */
.cr-controls {
    width: clamp(220px, 24vw, 280px);
    min-width: 220px;
    background: #3b274f;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    flex-shrink: 0;
}

/* Crash history pills strip */
.cr-history-wrap {
    margin: 0 -2px;
}
/* Override others.css crash_history_container gradient color to match new bg */
.cr-controls .crash_history_container .grd {
    background: linear-gradient(270deg, #3b274f 0%, rgba(59,39,79,0) 100%);
}

/* Segment */
.cr-segment { display: flex; flex-direction: column; gap: 6px; }
.cr-label { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; }

/* Bet amount input row */
.cr-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 10px 12px;
    box-sizing: border-box;
}
.cr-input-icon { color: #acacac; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.cr-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    outline: none;
    padding: 0;
}
.cr-chips { display: flex; gap: 4px; flex-shrink: 0; }
.cr-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    color: #acacac;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.cr-chip:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Place bet / Cash out buttons */
.cr-btn-place {
    width: 100%;
    height: 48px;
    background: #8d3bde;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-top: auto;
}
.cr-btn-place:hover { background: #7c2fcf; }
.cr-btn-place.disabled { opacity: 0.5; cursor: not-allowed; }

.cr-btn-cashout {
    width: 100%;
    height: 48px;
    background: #09b95b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}
.cr-btn-cashout:hover { background: #07a04e; }
.cr-btn-cashout.hidden { display: none !important; }
.cr-btn-next { width:100%; min-height:44px; border:1px solid rgba(164,111,244,.34); border-radius:8px; background:rgba(125,69,205,.12); color:#d8c8ee; font-size:13px; font-weight:750; cursor:pointer; transition:border-color .2s,background .2s,color .2s,opacity .2s; }
.cr-btn-next:hover:not(.disabled) { border-color:rgba(180,130,255,.65); background:rgba(137,76,224,.22); color:#fff; }
.cr-btn-next.is-queued { border-color:rgba(244,201,93,.32); background:rgba(244,201,93,.08); color:#eadba9; }
.cr-btn-next.disabled { opacity:.55; cursor:not-allowed; }
.cr-btn-next.hidden { display:none !important; }

/* ── Right panel ── */
.cr-stage {
    flex: 1;
    background: #2b2333;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

/* Keep the expandable fair data outside the fixed Crash scene. The legacy
   `.crash-game-info` float and negative margin otherwise overlap the game and
   make it appear to disappear when the native details element opens. */
.cr-page > .crash-fair-details {
    clear: both;
    width: 100%;
    margin: -14px 0 24px;
    box-sizing: border-box;
}
.cr-page .crash-fair-details .crash-game-info {
    float: none;
    width: auto;
    margin: 0 !important;
    min-width: 0;
}
.cr-page .crash-fair-details .crash-game-info span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Crash animation container — override old .crash .crash-graph floats */
.cr-stage .crash-graph {
    float: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.cr-stage .cr-main {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ── Bets section (below game layout) ── */
.cr-bets-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.cr-bets-col { min-width: 0; }

/* Override old .crash .right width/float for the bets columns */
.cr-bets-wrap .cr-bets-col { float: none !important; width: 100% !important; }

/* Override old #crash_bet / #crash_cashout styles that may have absolute positioning */
.cr-page #crash_bet,
.cr-page #crash_cashout {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .cr-controls { width: 240px; min-width: 200px; }}

@media (max-width: 768px), (pointer: coarse) and (max-width: 1199px) and (max-height: 600px) and (orientation: landscape) {
    .cr-game-layout {
        flex-direction: column;
        min-height: unset;
        border-radius: 0;
    }
    .cr-stage { order: 1; }
    .cr-controls  { order: 2; width: 100%; min-width: unset; }
    .cr-bets-wrap { grid-template-columns: 1fr; }

    /* Mobile control order: game (above) → bet/cashout button →
       bet amount → recent crash history */
    .cr-controls .cr-btn-place,
    .cr-controls .cr-btn-cashout { order: 1; margin-top: 0; }
    .cr-controls .cr-segment      { order: 2; }
    .cr-controls .cr-history-wrap { order: 3; }}

@media (max-width: 480px) {
    .cr-chips .cr-chip { padding: 4px 6px; font-size: 11px; }}
.tw-btn-cashout.hidden { display: none !important; }
.sl-demo-banner.hidden { display: none; }

/* Crash bets columns (Playing / Cashed out) */
.cr-bets-col {
    background: #2b2333;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    padding: 0 0 8px;
}
.cr-bets-col h3 {
    background: #3b274f !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cr-bets-col .nop {
    background: transparent !important;
    color: rgba(255,255,255,0.35) !important;
}
.cr-bets-col .list {
    padding: 8px 10px 0;
}
.cr-bets-col .list .user {
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.07) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    float: none !important;
    min-height: 52px;
}
.cr-bets-col .list .user:not([style*="display:none"]):not([style*="display: none"]) {
    display: flex !important;
}
.cr-bets-col .list .user[style*="display:none"],
.cr-bets-col .list .user[style*="display: none"] {
    display: none !important;
}
.cr-bets-col .list .user img {
    width: 32px !important;
    min-width: 32px;
    max-width: 32px;
    height: 32px !important;
    min-height: 32px;
    max-height: 32px;
    object-fit: cover;
    flex: 0 0 32px;
    float: none !important;
    margin: 0 !important;
}
.cr-bets-col .list .user p {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    float: none !important;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}
.cr-bets-col .list .user .arrow {
    flex: 0 0 auto;
    float: none !important;
    line-height: 1;
    margin: 0 !important;
}
.cr-bets-col .list .user .crash-bet-loader {
    width: auto !important;
    height: 14px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    float: none !important;
    margin: 0 0 0 auto !important;
    padding: 0;
}
.cr-bets-col .list .user i.crash-icon {
    flex: 0 0 auto;
    float: none !important;
    margin: 0 0 0 auto !important;
}
.cr-bets-col .list .user div.res {
    flex: 0 0 auto;
    float: none !important;
    line-height: 28px;
    margin: 0 0 0 auto !important;
}
.hilo-page .hilo-card-current.win { box-shadow: 0 0 0 3px #43d88d,0 0 35px rgba(67,216,141,.3),0 18px 30px rgba(3,1,8,.4); }
.hilo-page .hilo-hint.win { color: #43d88d; }
.dice-page .dice-game-layout #dice_bet.win { background: linear-gradient(135deg,#12a965,#43d88d) !important; }
.limbo-page .limbo-game-layout #limbo_bet.win { background: linear-gradient(135deg,#12a965,#43d88d) !important; }
.limbo-page .limbo-big-num.win { color: #54df9d; text-shadow: 0 6px 22px rgba(0,0,0,.58),0 0 24px rgba(67,216,141,.45),0 0 55px rgba(67,216,141,.2); animation: limbo-win-pulse .42s ease; }
.wheel-page .wheel-game-layout #wheel_bet.win { background: linear-gradient(135deg,#12a965,#43d88d) !important; }
.wheel-page .wheel-big-num.win { color: #54df9d; text-shadow: 0 4px 16px rgba(0,0,0,.5),0 0 24px rgba(67,216,141,.4); }
.bj-page .bj-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.bcr-page .bcr-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.rps-page .rps-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.kn-page .kn-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.ck-page .ck-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.cf-page .cf-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.poker-page .pk-away-badge.hidden { display:none!important; }
.pk-share-sheet.hidden { display:none!important; }
.av-page .av-hint.win { border-color:rgba(81,226,158,.2);background:rgba(47,167,112,.08);color:#72e6b1; }
.poker-page .pk-preactions,.poker-page .pk-preactions.hidden { min-width:278px;display:flex!important;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap; }
.poker-page .pk-preaction-btn.hidden { display:inline-flex!important;align-items:center;justify-content:center; }
.poker-page .pk-run-it-modal.hidden { display:none; }
.cb-page .hidden { display: none !important; }
.ft-page .hidden { display: none !important; }
.ft-public-title-icon > .fa { display: block; width: 1em; height: 1em; margin-top: 12px; font-size: 16px; line-height: 1; text-align: center; }

/* Crash mobile play flow -------------------------------------------------- */
@media (max-width:768px), (pointer:coarse) and (max-width:1199px) and (max-height:600px) and (orientation:landscape) {
    body.is-game-page .cr-page { gap:6px!important; }
    body.is-game-page .cr-game-layout {
        /* The unified action button keeps controls at a predictable compact
           height; every remaining pixel can now belong to the game canvas. */
        flex:1!important;height:auto!important;grid-template-rows:minmax(0,1fr) 206px!important;gap:6px!important;
    }
    body.is-game-page .cr-stage { order:1!important;grid-row:1!important; }
    body.is-game-page .cr-controls {
        order:2!important;grid-row:2!important;padding:8px!important;display:flex!important;flex-direction:column!important;gap:6px!important;
        border:1px solid rgba(255,255,255,.07)!important;background:linear-gradient(160deg,#21172d,#17101e)!important;
    }
    body.is-game-page .cr-controls #crash_bet,
    body.is-game-page .cr-controls #crash_cashout {
        order:1!important;width:100%!important;height:60px!important;min-height:60px!important;margin:0!important;flex:0 0 60px!important;
        border-radius:15px!important;font-size:17px!important;font-weight:850!important;letter-spacing:.01em!important;
        box-shadow:0 12px 26px rgba(99,42,181,.3),inset 0 1px rgba(255,255,255,.18)!important;
    }
    body.is-game-page .cr-controls #crash_cashout { box-shadow:0 12px 26px rgba(22,170,100,.25),inset 0 1px rgba(255,255,255,.18)!important; }
    body.is-game-page .cr-controls .cr-segment { order:2!important;margin:0!important;gap:4px!important; }
    body.is-game-page .cr-controls .cr-auto-row { order:3!important;min-height:42px!important;height:42px!important;flex:0 0 42px!important;padding:4px 8px!important; }
    body.is-game-page .cr-controls .cr-auto-value { height:32px!important; }
    body.is-game-page .cr-controls .cr-label { margin:0!important;font-size:9px!important; }
    body.is-game-page .cr-controls .cr-input-row {
        min-height:56px!important;height:56px!important;padding:6px 7px 6px 10px!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;overflow:hidden!important;
    }
    body.is-game-page .cr-controls .cr-input { min-width:52px!important;flex:1 1 auto!important;font-size:18px!important; }
    body.is-game-page .cr-controls .cr-chips { width:auto!important;margin:0!important;padding:0!important;display:flex!important;flex:0 0 auto!important;gap:5px!important; }
    body.is-game-page .cr-controls .cr-chip {
        min-width:42px!important;height:42px!important;padding:0 8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
        flex:0 0 auto!important;border-radius:11px!important;font-size:10px!important;font-weight:850!important;-webkit-tap-highlight-color:transparent;
    }
    body.is-game-page .cr-controls .cr-chip:active { transform:scale(.94);background:rgba(139,80,224,.2)!important; }
    body.is-game-page .cr-controls .cr-history-wrap,
    body.is-game-page .cr-controls .cr-control-head,
    body.is-game-page .cr-controls .cr-risk-note { display:none!important; }
    body.is-game-page .cr-stage .cr-header { min-height:34px!important;height:34px!important;padding:3px 9px!important; }
    body.is-game-page .cr-stage .crash-graph,
    body.is-game-page .cr-stage .cr-main,
    body.is-game-page .cr-stage .CrashScreen { min-height:0!important;height:100%!important; }}

@media (max-width:350px) {
    body.is-game-page .cr-game-layout { grid-template-rows:minmax(0,1fr) 198px!important; }
    body.is-game-page .cr-controls .cr-input-row { min-height:52px!important;height:52px!important; }
    body.is-game-page .cr-controls .cr-input { min-width:44px!important;font-size:16px!important; }
    body.is-game-page .cr-controls .cr-chip { min-width:38px!important;height:38px!important;padding:0 5px!important; }
    body.is-game-page .cr-controls #crash_bet,
    body.is-game-page .cr-controls #crash_cashout { height:56px!important;min-height:56px!important;flex-basis:56px!important; }}

/* Coin Flip mobile game scene ------------------------------------------- */
@media (max-width:768px) and (orientation:portrait) {
    body.is-game-page .cf-page .cf-actions.hidden { display:none!important; }}

/* Chicken mobile game scene --------------------------------------------- */
@media (max-width:768px) and (orientation:portrait) {
    body.is-game-page .ck-page .ck-actions.hidden { display:none!important; }}

/* Blackjack mobile game scene ------------------------------------------- */
@media (max-width:768px) and (orientation:portrait) {
    body.is-game-page .bj-page .bj-actions.hidden { display:none!important; }}

/* Poker mobile table ---------------------------------------------------- */
@media (max-width:768px), (pointer:coarse) and (max-width:1199px) and (max-height:600px) and (orientation:landscape) {
    body.is-game-page .poker-page .pk-lobby.hidden { display:none!important; }
    body.is-game-page .poker-page .pk-bottombar.hidden { display:none!important; }
    body.is-game-page .poker-page .pk-actions.hidden { display:none!important; }}

/* Case Battles mobile app ---------------------------------------------- */
@media (max-width:768px), (pointer:coarse) and (max-width:1199px) and (max-height:600px) and (orientation:landscape) {
    body.is-game-page .cb-page .cb-lobby.hidden { display:none!important; }
    body.is-game-page .cb-page .cb-room.hidden { display:none!important; }
    body.is-game-page .cb-page .cb-invite-join.hidden { display:none!important; }}

/* Aviamasters mobile flight scene -------------------------------------- */
@media (max-width:768px) and (orientation:portrait) {

    body.is-game-page .av-page .av-autobet-segment:has(.av-autobet-panel:not(.hidden)) {
        position:fixed!important;z-index:9500!important;right:max(8px,var(--mobile-safe-right,0px))!important;bottom:calc(var(--mobile-tabs-h,64px) + var(--mobile-safe-bottom,0px) + 8px)!important;
        left:max(8px,var(--mobile-safe-left,0px))!important;width:auto!important;height:auto!important;max-height:min(64dvh,470px)!important;padding:10px!important;
        display:flex!important;flex-direction:column!important;gap:8px!important;overflow-y:auto!important;border-color:rgba(178,112,235,.3)!important;border-radius:17px!important;
        background:linear-gradient(155deg,#21172e,#100d18 76%)!important;box-shadow:0 24px 70px rgba(0,0,0,.65)!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 .av-page .av-autobet-segment:has(.av-autobet-panel:not(.hidden)) {
        position:fixed!important;z-index:9500!important;inset:8px!important;width:auto!important;height:auto!important;max-height:calc(100dvh - 16px)!important;padding:9px!important;
        display:flex!important;flex-direction:column!important;gap:6px!important;overflow-y:auto!important;border-radius:15px!important;background:linear-gradient(155deg,#21172e,#100d18 76%)!important;box-shadow:0 24px 70px rgba(0,0,0,.65)!important;
    }}
.bnz-free-banner:not(.hidden) { animation:bnz-free-aura 1.65s ease-in-out infinite; }

/* 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) {
    .cr-game-layout { flex-direction:row-reverse; }}
.sc-page .sc-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.er-result.win { border-color: rgba(67,216,141,.22); }
.er-result.win .er-result-payout { color: #54db9d; }
.er-hint.win { border-color: rgba(67,216,141,.16); background: rgba(67,216,141,.07); color: #54db9d; }
.nv-page .hidden { display: none !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-page .hidden { display: none !important; }
.rv-public-title-icon > .fa { display: block; width: 1em; height: 1em; margin-top: 12px; font-size: 16px; line-height: 1; text-align: center; }
.bd-page .hidden { display: none !important; }
.bd-public-title-icon > .fa { display: block; width: 1em; height: 1em; margin-top: 12px; font-size: 16px; line-height: 1; text-align: center; }