/* =========================================================
   MIDNIGHT CRASH
   ========================================================= */

:root {
    --crash-bg: #05050a;

    --crash-panel:
        rgba(14, 10, 21, .9);

    --crash-panel-soft:
        rgba(24, 16, 36, .74);

    --crash-purple:
        #8d5cff;

    --crash-purple-light:
        #b889ff;

    --crash-gold:
        #d8ad5f;

    --crash-gold-light:
        #ffd98a;

    --crash-green:
        #45d68d;

    --crash-red:
        #ed5c68;

    --crash-text:
        #f7f3ff;

    --crash-muted:
        #928b9d;

    --crash-border:
        rgba(184, 137, 255, .17);
}


/* =========================================================
   PAGE
   ========================================================= */

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -12%,
            rgba(118, 62, 228, .16),
            transparent 44%
        ),
        var(--crash-bg);

    color:
        var(--crash-text);
}

/* =========================================================
   CRASH ENERGY BACKGROUND
   ========================================================= */

.crash-energy-field {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;

    opacity: .78;

    mix-blend-mode: screen;
}

.crash-page {
    min-height:
        100vh;

    position:
        relative;

    z-index:
        1;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.crash-navbar {
    height:
        78px;

    padding:
        0 38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .05);

    background:
        rgba(6, 5, 10, .82);

    backdrop-filter:
        blur(18px);

    position:
        sticky;

    top:
        0;

    z-index:
        100;
}


.crash-brand {
    display:
        flex;

    align-items:
        center;

    gap:
        13px;

    color:
        inherit;

    text-decoration:
        none;
}


.crash-brand-icon {
    width:
        40px;

    height:
        40px;

    border-radius:
        12px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        22px;

    color:
        var(--crash-gold-light);

    background:
        linear-gradient(
            145deg,
            rgba(119, 70, 213, .28),
            rgba(25, 16, 40, .85)
        );

    border:
        1px solid
        rgba(184, 137, 255, .24);

    box-shadow:
        0 0 24px
        rgba(113, 61, 220, .16);
}


.crash-brand strong {
    display:
        block;

    font-size:
        14px;

    font-weight:
        900;

    letter-spacing:
        3px;
}


.crash-brand span {
    display:
        block;

    margin-top:
        4px;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        4px;

    color:
        var(--crash-purple-light);
}


.crash-live {
   position: absolute;

left: 50%;

transform: translateX(-50%);
    padding:
        10px 15px;

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    border-radius:
        999px;

    border:
        1px solid
        rgba(68, 214, 140, .18);

    background:
        rgba(68, 214, 140, .055);

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        2px;

    color:
        #b9f7d8;
}


.crash-live span {
    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--crash-green);

    box-shadow:
        0 0 10px
        rgba(68, 214, 140, .8);
}

/* =========================================================
   AUDIO CONTROL
   ========================================================= */

.crash-audio-control {
    display: flex;
    align-items: center;
    gap: 10px;

    height: 42px;
    padding: 0 12px;

    border: 1px solid rgba(184, 137, 255, .17);
    border-radius: 12px;

    background: rgba(255, 255, 255, .025);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.crash-audio-button {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--crash-text);

    font-size: 14px;

    cursor: pointer;

    opacity: .9;

    transition:
        opacity .15s ease,
        transform .15s ease;
}

.crash-audio-button:hover {
    opacity: 1;
    transform: scale(1.06);
}

.crash-volume-slider {
    width: 86px;
    height: 4px;

    margin: 0;

    accent-color: var(--crash-purple-light);

    cursor: pointer;
}


.crash-user {
    display:
        flex;

    align-items:
        center;

    gap:
        16px;
}


.crash-balance {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}


.crash-token,
.crash-coin {
    width:
        34px;

    height:
        34px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    color:
        #1c1308;

    font-weight:
        900;

    background:
        linear-gradient(
            145deg,
            #ffe09b,
            #b87928
        );

    box-shadow:
        0 0 16px
        rgba(255, 205, 107, .18);
}


.crash-balance span {
    display:
        block;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.8px;

    color:
        var(--crash-muted);
}


.crash-balance strong {
    display:
        block;

    margin-top:
        3px;

    font-size:
        14px;
}


.crash-back {
    min-height:
        39px;

    padding:
        0 16px;

    border-radius:
        10px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    background:
        rgba(255, 255, 255, .025);

    color:
        var(--crash-text);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1px;

    cursor:
        pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}


.crash-back:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(184, 137, 255, .26);

    background:
        rgba(141, 92, 255, .07);
}


/* =========================================================
   MAIN
   ========================================================= */

.crash-main {
    width:
        min(1380px, calc(100% - 48px));

    margin:
        42px auto 30px;

    display:
        grid;

    grid-template-columns:
        390px minmax(0, 1fr);

    gap:
        32px;

    align-items:
        start;
}


/* =========================================================
   CONTROL PANEL
   ========================================================= */

.crash-control-panel {
    padding:
        28px;

    border-radius:
        22px;

    border:
        1px solid
        var(--crash-border);

    background:
        linear-gradient(
            145deg,
            rgba(22, 15, 33, .82),
            rgba(8, 7, 12, .94)
        );

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, .35);
}


.crash-control-header > span {
    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        3px;

    color:
        var(--crash-purple-light);
}


.crash-control-header h1 {
    margin:
        9px 0 8px;

    font-size:
        30px;

    line-height:
        1.05;
}


.crash-control-header p {
    margin:
        0;

    color:
        var(--crash-muted);

    font-size:
        12px;

    line-height:
        1.65;
}


.crash-control-block {
    margin-top:
        24px;

    padding-top:
        22px;

    border-top:
        1px solid
        rgba(255, 255, 255, .055);
}


.crash-control-title {
    margin-bottom:
        12px;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;
}


.crash-control-title span {
    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        1.7px;

    color:
        var(--crash-muted);
}


.crash-control-title strong {
    font-size:
        11px;

    color:
        var(--crash-gold-light);
}


/* =========================================================
   BET INPUT
   ========================================================= */

.crash-bet-input {
    min-height:
        54px;

    padding:
        0 14px;

    display:
        flex;

    align-items:
        center;

    border-radius:
        13px;

    border:
        1px solid
        rgba(184, 137, 255, .15);

    background:
        rgba(5, 5, 9, .72);
}


.crash-bet-input input {
    flex:
        1;

    min-width:
        0;

    margin-left:
        11px;

    border:
        0;

    outline:
        0;

    background:
        transparent;

    color:
        #fff;

    font-size:
        18px;

    font-weight:
        900;
}


.crash-bet-input > span {
    font-size:
        10px;

    font-weight:
        800;

    color:
        var(--crash-muted);
}


.crash-quick-bets {
    margin-top:
        10px;

    display:
        grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap:
        7px;
}


.crash-quick-bets button {
    min-height:
        36px;

    border-radius:
        9px;

    border:
        1px solid
        rgba(255, 255, 255, .065);

    background:
        rgba(255, 255, 255, .025);

    color:
        #bbb4c6;

    font-size:
        10px;

    font-weight:
        900;

    cursor:
        pointer;

    transition:
        transform .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.crash-quick-bets button.selected {
    border-color:
        rgba(184, 137, 255, .72);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .22),
            rgba(91, 46, 174, .10)
        );

    color:
        #f3eaff;

    box-shadow:
        0 0 0 1px
        rgba(184, 137, 255, .10),

        0 0 18px
        rgba(141, 92, 255, .22);

    text-shadow:
        0 0 8px
        rgba(184, 137, 255, .25);
}


.crash-quick-bets button:hover:not(:disabled) {
    transform:
        translateY(-1px);

    border-color:
        rgba(184, 137, 255, .24);

    color:
        #fff;
}


.crash-quick-bets button:disabled {
    opacity:
        .4;

    cursor:
        not-allowed;
}


/* =========================================================
   AUTO CASHOUT
   ========================================================= */

.crash-auto-row {
    display:
        grid;

    grid-template-columns:
        auto 1fr;

    gap:
        14px;

    align-items:
        center;
}


.crash-switch {
    width:
        48px;

    height:
        26px;

    position:
        relative;
}


.crash-switch input {
    position:
        absolute;

    opacity:
        0;

    pointer-events:
        none;
}


.crash-switch-slider {
    position:
        absolute;

    inset:
        0;

    border-radius:
        999px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    background:
        rgba(255, 255, 255, .05);

    cursor:
        pointer;

    transition:
        background .18s ease,
        border-color .18s ease;
}


.crash-switch-slider::before {
    content:
        "";

    width:
        18px;

    height:
        18px;

    position:
        absolute;

    left:
        3px;

    top:
        3px;

    border-radius:
        50%;

    background:
        #bcb6c7;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.crash-switch input:checked +
.crash-switch-slider {
    background:
        rgba(141, 92, 255, .18);

    border-color:
        rgba(184, 137, 255, .4);
}


.crash-switch input:checked +
.crash-switch-slider::before {
    transform:
        translateX(22px);

    background:
        var(--crash-purple-light);

    box-shadow:
        0 0 15px
        rgba(184, 137, 255, .4);
}


.crash-auto-input {
    min-height:
        48px;

    display:
        flex;

    align-items:
        center;

    padding:
        0 14px;

    border-radius:
        11px;

    border:
        1px solid
        rgba(255, 255, 255, .065);

    background:
        rgba(255, 255, 255, .025);
}


.crash-auto-input input {
    flex:
        1;

    min-width:
        0;

    border:
        0;

    outline:
        0;

    background:
        transparent;

    color:
        #fff;

    font-size:
        16px;

    font-weight:
        900;
}


.crash-auto-input span {
    color:
        var(--crash-muted);

    font-weight:
        900;
}


/* =========================================================
   INFO
   ========================================================= */

.crash-info-grid {
    margin-top:
        24px;

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        10px;
}


.crash-info-card {
    min-height:
        70px;

    padding:
        13px;

    border-radius:
        12px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    background:
        rgba(255, 255, 255, .02);
}


.crash-info-card span {
    display:
        block;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        1.3px;

    color:
        var(--crash-muted);
}


.crash-info-card strong {
    display:
        block;

    margin-top:
        9px;

    font-size:
        17px;
}


#crashCurrentMultiplierSmall {
    color:
        var(--crash-purple-light);
}


#crashPotentialPayout {
    color:
        var(--crash-gold-light);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.crash-actions {
    margin-top:
        22px;

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        10px;
}


.crash-start-button,
.crash-cashout-button {
    min-height:
        50px;

    border-radius:
        12px;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        1.2px;

    cursor:
        pointer;

    transition:
        transform .18s ease,
        opacity .18s ease,
        box-shadow .18s ease;
}


.crash-start-button {
    border:
        1px solid
        rgba(184, 137, 255, .36);

    background:
        linear-gradient(
            145deg,
            #8051dc,
            #57309c
        );

    color:
        #fff;
}


.crash-cashout-button {
    border:
        1px solid
        rgba(255, 213, 131, .25);

    background:
        linear-gradient(
            145deg,
            rgba(216, 173, 95, .22),
            rgba(136, 92, 30, .13)
        );

    color:
        var(--crash-gold-light);
}


.crash-start-button:hover:not(:disabled),
.crash-cashout-button:hover:not(:disabled) {
    transform:
        translateY(-2px);
}


.crash-start-button:disabled,
.crash-cashout-button:disabled {
    opacity:
        .4;

    cursor:
        not-allowed;

    transform:
        none;
}


.crash-message {
    min-height:
        18px;

    margin:
        15px 0 0;

    text-align:
        center;

    font-size:
        10px;

    color:
        var(--crash-muted);
}


/* =========================================================
   GAME AREA
   ========================================================= */

.crash-game-area {
    min-height:
        670px;

    position:
        relative;

    overflow:
        hidden;

    padding:
        28px;

    border-radius:
        24px;

    border:
        1px solid
        rgba(184, 137, 255, .14);

    background:
        linear-gradient(
            145deg,
            rgba(18, 12, 28, .86),
            rgba(7, 6, 11, .95)
        );

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, .42);
}


.crash-game-glow {
    position:
        absolute;

    width:
        650px;

    height:
        650px;

    left:
        50%;

    top:
        55%;

    transform:
        translate(-50%, -50%);

    border-radius:
        50%;

    background:
        radial-gradient(
            circle,
            rgba(116, 57, 232, .13),
            transparent 68%
        );

    filter:
        blur(24px);

    pointer-events:
        none;
}


.crash-game-header,
.crash-game-footer {
    position:
        relative;

    z-index:
        4;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;
}


.crash-game-header span,
.crash-game-footer span {
    display:
        block;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        1.7px;

    color:
        var(--crash-muted);
}


.crash-game-header strong,
.crash-game-footer strong {
    display:
        block;

    margin-top:
        5px;

    font-size:
        13px;
}


.crash-status {
    padding:
        9px 13px;

    border-radius:
        999px;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    background:
        rgba(255, 255, 255, .025);

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        1.2px;

    color:
        #aaa2b7;
}


.crash-status.active {
    border-color:
        rgba(184, 137, 255, .28);

    color:
        #d9c8ff;

    background:
        rgba(141, 92, 255, .055);
}


.crash-status.cashed {
    border-color:
        rgba(68, 214, 140, .25);

    color:
        #b9f7d8;

    background:
        rgba(68, 214, 140, .05);
}


.crash-status.crashed {
    border-color:
        rgba(237, 92, 104, .28);

    color:
        #ffb0b8;

    background:
        rgba(237, 92, 104, .055);
}

/* =========================================================
   CRASH ROUND HEADER
   ========================================================= */

.crash-game-header > div:first-child {
    position:
        relative;

    min-width:
        190px;

    padding:
        13px 16px 13px 18px;

    overflow:
        hidden;

    border:
        1px solid
        rgba(184, 137, 255, .12);

    border-radius:
        14px;

    background:
        linear-gradient(
            135deg,
            rgba(141, 92, 255, .075),
            rgba(255, 255, 255, .015)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .025);
}


.crash-game-header > div:first-child::before {
    content:
        "";

    position:
        absolute;

    left:
        0;

    top:
        10px;

    bottom:
        10px;

    width:
        3px;

    border-radius:
        0 4px 4px 0;

    background:
        linear-gradient(
            180deg,
            #c89cff,
            #8d5cff
        );

    box-shadow:
        0 0 13px
        rgba(141, 92, 255, .42);
}


.crash-game-header > div:first-child > span {
    margin-bottom:
        7px;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        2.2px;

    color:
        rgba(205, 187, 230, .58);
}


#crashRoundLabel {
    margin-top:
        0;

    font-size:
        15px;

    line-height:
        1;

    font-weight:
        950;

    letter-spacing:
        .15px;

    color:
        #f4efff;

    text-shadow:
        0 0 14px
        rgba(184, 137, 255, .16);
}

/* =========================================================
   MIDNIGHT CRASH HEADER BRAND
   ========================================================= */

.crash-header-brand {
    position:
        absolute;

    left:
        54%;

    top:
        52%;

    transform:
        translate(-50%, -50%);

    display:
        flex;

    align-items:
        baseline;

    gap:
        9px;

    pointer-events:
        none;

    user-select:
        none;
}


.crash-header-brand span {
    font-size: 18px;

    font-weight: 1000;

    letter-spacing: 3px;

    color:
        #d7c3ff;

    text-shadow:
        0 0 10px
        rgba(184, 137, 255, .20),

        0 0 24px
        rgba(141, 92, 255, .12);
}


.crash-header-brand strong {
    font-size:
        18px;

    font-weight:
        1000;

    letter-spacing:
        3px;

    color:
        #d7c3ff;

    text-shadow:
        0 0 10px
        rgba(184, 137, 255, .28),

        0 0 28px
        rgba(141, 92, 255, .18);
}

/* =========================================================
   STAGE
   ========================================================= */

.crash-stage {
    height:
        500px;

    position:
        relative;

    margin:
        28px 0 24px;

    overflow:
        hidden;

    border-radius:
        20px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    background:
        linear-gradient(
            180deg,
            rgba(21, 14, 33, .7),
            rgba(7, 6, 11, .88)
        );
}


.crash-grid-lines {
    position:
        absolute;

    inset:
        0;

    pointer-events:
        none;
}


.crash-grid-lines::before,
.crash-grid-lines::after {
    content:
        "";

    position:
        absolute;

    inset:
        0;

    background-size:
        100% 20%;

    opacity:
        .12;
}


.crash-grid-lines::before {
    background-image:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, .12) 1px,
            transparent 1px
        );
}


.crash-grid-lines::after {
    background-size:
        12.5% 100%;

    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, .09) 1px,
            transparent 1px
        );
}


.crash-grid-lines span {
    display:
        none;
}


/* =========================================================
   CANVAS
   ========================================================= */

.crash-graph {
    width:
        100%;

    height:
        100%;

    position:
        absolute;

    inset:
        0;

    z-index:
        2;
}


/* =========================================================
   BIG MULTIPLIER
   ========================================================= */

.crash-multiplier-wrapper {
    position:
        absolute;

    left:
        50%;

    top:
        48%;

    transform:
        translate(-50%, -50%);

    z-index:
        5;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    pointer-events:
        none;
}


.crash-multiplier-label {
    margin-bottom:
        7px;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        3px;

    color:
        rgba(213, 201, 228, .54);
}


.crash-big-multiplier {
    font-size:
        clamp(62px, 7vw, 108px);

    line-height:
        .95;

    font-weight:
        1000;

    letter-spacing:
        -4px;

    color:
        #fff;

    text-shadow:
        0 0 24px
        rgba(184, 137, 255, .12);
}


.crash-round-message {
    margin-top:
        15px;

    padding:
        7px 13px;

    border-radius:
        999px;

    border:
        1px solid
        rgba(216, 173, 95, .20);

    background:
        rgba(216, 173, 95, .055);

    font-size:
        11px;

    font-weight:
        900;

    letter-spacing:
        1.1px;

    color:
        var(--crash-gold-light);

    text-shadow:
        0 0 12px
        rgba(255, 217, 138, .28);

    box-shadow:
        0 0 20px
        rgba(216, 173, 95, .05);
}

.crash-multiplier-wrapper.running
.crash-big-multiplier {
    color:
        #e5d9ff;

    text-shadow:
        0 0 30px
        rgba(141, 92, 255, .25);
}


.crash-multiplier-wrapper.crashed
.crash-big-multiplier {
    color:
        #ff9da7;

    text-shadow:
        0 0 32px
        rgba(237, 92, 104, .25);
}


/* =========================================================
   MOVING POINT
   ========================================================= */

.crash-point {
    width:
        20px;

    height:
        20px;

    position:
        absolute;

    left:
        6%;

    bottom:
        7%;

    z-index:
        6;

    transform:
        translate(-50%, 50%);

    pointer-events:
        none;

    opacity:
        0;
}


.crash-point.visible {
    opacity:
        1;
}


.crash-point-core {
    width:
        10px;

    height:
        10px;

    position:
        absolute;

    left:
        50%;

    top:
        50%;

    transform:
        translate(-50%, -50%);

    border-radius:
        50%;

    background:
        var(--crash-purple-light);

    box-shadow:
        0 0 14px
        rgba(184, 137, 255, .9);
}


.crash-point-glow {
    position:
        absolute;

    inset:
        0;

    border-radius:
        50%;

    background:
        rgba(184, 137, 255, .12);

    box-shadow:
        0 0 25px
        rgba(184, 137, 255, .35);
}


/* =========================================================
   GAME FOOTER
   ========================================================= */

.crash-game-footer {
    padding-top:
        18px;

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        12px;

    border-top:
        1px solid
        rgba(255, 255, 255, .05);
}


.crash-game-footer > div {
    min-width:
        0;

    min-height:
        72px;

    padding:
        14px 16px;

    box-sizing:
        border-box;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    border-radius:
        14px;

    border:
        1px solid
        rgba(255, 255, 255, .06);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .025),
            rgba(255, 255, 255, .012)
        );

    text-align:
        left;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.crash-game-footer > div:nth-child(1) {
    border-color:
        rgba(184, 137, 255, .14);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .07),
            rgba(25, 15, 40, .22)
        );
}


.crash-game-footer > div:nth-child(2) {
    border-color:
        rgba(216, 173, 95, .15);

    background:
        linear-gradient(
            145deg,
            rgba(216, 173, 95, .065),
            rgba(45, 30, 10, .16)
        );
}


.crash-game-footer > div:nth-child(3) {
    border-color:
        rgba(100, 140, 255, .14);

    background:
        linear-gradient(
            145deg,
            rgba(70, 100, 190, .06),
            rgba(15, 20, 40, .16)
        );
}


.crash-game-footer span {
    margin-bottom:
        7px;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        1.8px;

    color:
        var(--crash-muted);
}


.crash-game-footer strong {
    margin-top:
        0;

    font-size:
        18px;

    font-weight:
        900;

    line-height:
        1.15;
}


#crashRoundState {
    color:
        var(--crash-purple-light);

    text-shadow:
        0 0 12px
        rgba(184, 137, 255, .16);
}


#crashLivePayout {
    color:
        var(--crash-gold-light);

    text-shadow:
        0 0 12px
        rgba(255, 217, 138, .16);
}


#crashCashoutMultiplier {
    color:
        #9db8ff;

    text-shadow:
        0 0 12px
        rgba(110, 145, 255, .16);
}

/* =========================================================
   LIVE PLAYERS
   ========================================================= */

.crash-live-players {
    position: relative;
    z-index: 4;

    margin-top: 18px;
    padding: 18px;

    border-radius: 18px;

    border:
        1px solid
        rgba(184, 137, 255, .12);

    background:
        linear-gradient(
            145deg,
            rgba(20, 14, 31, .82),
            rgba(8, 7, 12, .92)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .025);
}


.crash-live-players-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;
}


.crash-live-players-header > div:first-child > span {
    display: block;

    margin-bottom: 5px;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 2px;

    color:
        var(--crash-purple-light);
}


.crash-live-players-header > div:first-child > strong {
    display: block;

    font-size: 17px;

    font-weight: 950;

    color:
        var(--crash-text);
}


.crash-live-player-count {
    min-width: 72px;

    padding: 9px 12px;

    box-sizing: border-box;

    border-radius: 12px;

    border:
        1px solid
        rgba(69, 214, 141, .16);

    background:
        rgba(69, 214, 141, .045);

    text-align: center;
}


.crash-live-player-count span {
    display: block;

    margin-bottom: 4px;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 1.4px;

    color:
        rgba(185, 247, 216, .64);
}


.crash-live-player-count strong {
    display: block;

    font-size: 17px;

    font-weight: 950;

    color:
        #b9f7d8;

    text-shadow:
        0 0 12px
        rgba(69, 214, 141, .18);
}


.crash-live-summary {
    margin-top: 14px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;
}


.crash-live-summary > div {
    min-width: 0;

    min-height: 60px;

    padding: 11px 13px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;
    justify-content: center;

    border-radius: 12px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    background:
        rgba(255, 255, 255, .018);
}


.crash-live-summary span {
    display: block;

    margin-bottom: 6px;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 1.4px;

    color:
        var(--crash-muted);
}


.crash-live-summary strong {
    display: block;

    font-size: 15px;

    font-weight: 950;
}


#crashLiveTotalPlayers {
    color:
        var(--crash-purple-light);
}


#crashLiveTotalBet {
    color:
        var(--crash-gold-light);
}


#crashLiveTotalPayout {
    color:
        #b9f7d8;
}


.crash-live-player-list {
    margin-top: 12px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    max-height: 362px;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 5px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(184, 137, 255, .32)
        rgba(255, 255, 255, .025);
}


.crash-live-player-list::-webkit-scrollbar {
    width: 6px;
}


.crash-live-player-list::-webkit-scrollbar-track {
    border-radius: 999px;

    background:
        rgba(255, 255, 255, .025);
}


.crash-live-player-list::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(184, 137, 255, .48),
            rgba(141, 92, 255, .24)
        );
}


.crash-live-player-list::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            rgba(184, 137, 255, .68),
            rgba(141, 92, 255, .36)
        );
}


.crash-live-players-empty {
    min-height: 58px;

    padding: 0 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    border:
        1px dashed
        rgba(255, 255, 255, .07);

    background:
        rgba(255, 255, 255, .012);

    color:
        var(--crash-muted);

    font-size: 10px;

    font-weight: 700;

    text-align: center;
}


.crash-live-player {
    min-height: 66px;

    padding: 10px 12px;

    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr) auto auto;

    align-items: center;

    gap: 12px;

    border-radius: 13px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .025),
            rgba(255, 255, 255, .012)
        );

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}


.crash-live-player:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(184, 137, 255, .16);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .055),
            rgba(255, 255, 255, .015)
        );
}


.crash-live-player-avatar {
    width: 38px;

    height: 38px;

    border-radius: 50%;

    overflow: hidden;

    border:
        1px solid
        rgba(184, 137, 255, .18);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .16),
            rgba(20, 14, 31, .9)
        );

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        var(--crash-purple-light);

    font-size: 12px;

    font-weight: 950;
}


.crash-live-player-avatar img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}


.crash-live-player-main {
    min-width: 0;
}


.crash-live-player-name {
    display: block;

    max-width: 100%;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;

    font-weight: 950;

    color:
        var(--crash-text);
}


.crash-live-player-status {
    display: inline-flex;

    margin-top: 5px;

    align-items: center;

    gap: 5px;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;

    color:
        var(--crash-muted);
}


.crash-live-player-status::before {
    content: "";

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background:
        var(--crash-purple-light);

    box-shadow:
        0 0 8px
        rgba(184, 137, 255, .38);
}


.crash-live-player[data-status="cashed_out"]
.crash-live-player-status {
    color:
        #b9f7d8;
}


.crash-live-player[data-status="cashed_out"]
.crash-live-player-status::before {
    background:
        var(--crash-green);

    box-shadow:
        0 0 8px
        rgba(69, 214, 141, .38);
}


.crash-live-player[data-status="crashed"]
.crash-live-player-status {
    color:
        #ffb0b8;
}


.crash-live-player[data-status="crashed"]
.crash-live-player-status::before {
    background:
        var(--crash-red);

    box-shadow:
        0 0 8px
        rgba(237, 92, 104, .38);
}


.crash-live-player-value {
    min-width: 86px;

    text-align: right;
}


.crash-live-player-value span {
    display: block;

    margin-bottom: 4px;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 1px;

    color:
        var(--crash-muted);
}


.crash-live-player-value strong {
    display: block;

    font-size: 12px;

    font-weight: 950;
}


.crash-live-player-bet strong {
    color:
        var(--crash-gold-light);
}


.crash-live-player-payout strong {
    color:
        #b9f7d8;
}


@media (max-width: 700px) {

    .crash-live-players {
        padding: 14px;
    }


    .crash-live-summary {
        grid-template-columns:
            1fr;
    }


    .crash-live-player {
        grid-template-columns:
            auto minmax(0, 1fr);
    }


    .crash-live-player-value {
        min-width: 0;

        text-align: left;
    }

}

/* =========================================================
   CRASH PLAY LAYOUT
   GRAPH + CHAT
   ========================================================= */

.crash-play-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    gap: 18px;

    align-items: stretch;

    margin:
        28px 0 24px;
}


/* A stage marginját a wrapper kezeli */

.crash-play-layout .crash-stage {
    width: 100%;

    min-width: 0;

    height: 500px;

    margin: 0;
}


/* Chat a grafikon jobb oldalán */

.crash-play-layout .crash-chat-section {
    width: 100%;

    min-width: 0;

    height: 500px;

    margin: 0;

    padding:
        18px;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;
}


/* Az üzenetek töltsék ki a rendelkezésre álló helyet */

.crash-play-layout .crash-chat-messages {
    flex: 1;

    min-height: 0;

    height: auto;
}

/* =========================================================
   MIDNIGHT CHAT
   ========================================================= */

.crash-chat-section {
    width:
        min(1380px, calc(100% - 48px));

    margin:
        0 auto 30px;

    padding:
        22px 24px;

    box-sizing:
        border-box;

    border-radius:
        20px;

    border:
        1px solid
        rgba(184, 137, 255, .13);

    background:
        linear-gradient(
            145deg,
            rgba(18, 12, 28, .84),
            rgba(8, 7, 12, .94)
        );

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, .28);
}


.crash-chat-header {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        16px;
}


.crash-chat-title > span {
    display:
        block;

    margin-bottom:
        5px;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        2.2px;

    color:
        var(--crash-purple-light);
}


.crash-chat-title > strong {
    display:
        block;

    font-size:
        17px;

    font-weight:
        950;

    color:
        var(--crash-text);
}


.crash-chat-online {
    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    min-height:
        34px;

    padding:
        0 12px;

    border-radius:
        999px;

    border:
        1px solid
        rgba(69, 214, 141, .17);

    background:
        rgba(69, 214, 141, .045);

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        1.2px;

    color:
        rgba(185, 247, 216, .72);
}


.crash-chat-online strong {
    color:
        #b9f7d8;

    font-size:
        11px;
}


.crash-chat-online-dot {
    width:
        6px;

    height:
        6px;

    border-radius:
        50%;

    background:
        var(--crash-green);

    box-shadow:
        0 0 9px
        rgba(69, 214, 141, .65);
}


.crash-chat-messages {
    height:
        360px;

    margin-top:
        16px;

    padding:
        14px;

    box-sizing:
        border-box;

    overflow-y:
        auto;

    overflow-x:
        hidden;

    border-radius:
        14px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    background:
        rgba(5, 5, 9, .52);

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(184, 137, 255, .32)
        rgba(255, 255, 255, .02);
}


.crash-chat-messages::-webkit-scrollbar {
    width:
        6px;
}


.crash-chat-messages::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, .02);

    border-radius:
        999px;
}


.crash-chat-messages::-webkit-scrollbar-thumb {
    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            rgba(184, 137, 255, .50),
            rgba(141, 92, 255, .24)
        );
}


.crash-chat-placeholder {
    height:
        100%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    color:
        var(--crash-muted);

    font-size:
        10px;

    font-weight:
        700;
}


/* =========================================================
   CHAT MESSAGE
   ========================================================= */

.crash-chat-message {
    display:
        grid;

    grid-template-columns:
    auto minmax(0, 1fr) auto;

    gap:
        10px;

    padding:
        10px 8px;

    border-radius:
        11px;

    transition:
        background .15s ease;
}


.crash-chat-message +
.crash-chat-message {
    margin-top:
        2px;
}


.crash-chat-message:hover {
    background:
        rgba(141, 92, 255, .035);
}


.crash-chat-avatar {
    width:
        36px;

    height:
        36px;

    overflow:
        hidden;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    border:
        1px solid
        rgba(184, 137, 255, .17);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .18),
            rgba(20, 14, 31, .9)
        );

    color:
        var(--crash-purple-light);

    font-size:
        11px;

    font-weight:
        950;

    flex-shrink:
        0;
}


.crash-chat-avatar img {
    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;
}


.crash-chat-message-main {
    min-width:
        0;
}


.crash-chat-message-header {
    display:
        flex;

    align-items:
        baseline;

    gap:
        8px;

    min-width:
        0;
}


.crash-chat-message-name {
    max-width:
        205px;

    overflow:
        hidden;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;

    color:
        #f2ebff;

    font-size:
        11px;

    font-weight:
        950;
}

.crash-chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    min-height: 16px;
    padding: 0 6px;

    border-radius: 5px;

    font-size: 7px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .8px;
}


.crash-chat-badge-admin {
    color: #ffd5df;

    border:
        1px solid
        rgba(255, 86, 126, .28);

    background:
        rgba(255, 86, 126, .10);

    box-shadow:
        0 0 12px
        rgba(255, 86, 126, .07);
}


.crash-chat-badge-vip {
    color:
        var(--crash-gold-light);

    border:
        1px solid
        rgba(216, 173, 95, .34);

    background:
        linear-gradient(
            145deg,
            rgba(216, 173, 95, .16),
            rgba(136, 92, 30, .09)
        );

    box-shadow:
        0 0 12px
        rgba(216, 173, 95, .10);

    text-shadow:
        0 0 8px
        rgba(255, 217, 138, .16);
}

.crash-chat-badge-moderator {
    color: #8bc6ff;
    background: rgba(57, 137, 255, 0.10);
    border: 1px solid rgba(75, 157, 255, 0.32);
    box-shadow: 0 0 10px rgba(57, 137, 255, 0.10);
}

.crash-chat-message-time {
    color:
        rgba(146, 139, 157, .7);

    font-size:
        8px;

    font-weight:
        700;
}


.crash-chat-message-text {
    margin-top:
        4px;

    color:
        #c8c1d2;

    font-size:
        11px;

    line-height:
        1.55;

    overflow-wrap:
        anywhere;

    white-space:
        pre-wrap;
}

/* =========================================================
   CHAT ADMIN MENU
   ========================================================= */

.crash-chat-admin-wrap {
    position: relative;

    align-self: start;

    margin-left: 2px;

    z-index: 20;
}


.crash-chat-admin-button {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 8px;

    border:
        1px solid
        rgba(255, 255, 255, .06);

    background:
        rgba(255, 255, 255, .025);

    color:
        rgba(220, 210, 235, .72);

    font-size: 15px;
    font-weight: 900;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}


.crash-chat-admin-button:hover {
    border-color:
        rgba(184, 137, 255, .22);

    background:
        rgba(141, 92, 255, .08);

    color:
        #f4edff;
}


.crash-chat-admin-menu {
    position: absolute;

    right: 0;
    top: 32px;

    min-width: 155px;

    padding: 7px;

    display: none;

    border-radius: 12px;

    border:
        1px solid
        rgba(184, 137, 255, .15);

    background:
        linear-gradient(
            145deg,
            rgba(22, 15, 33, .98),
            rgba(8, 7, 12, .99)
        );

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .48);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    z-index: 999;
}


.crash-chat-admin-menu.is-open {
    display: block;
}


.crash-chat-admin-label {
    display: block;

    padding:
        7px 9px 5px;

    color:
        rgba(184, 137, 255, .62);

    font-size: 7px;
    font-weight: 950;

    letter-spacing: 1.4px;
}


.crash-chat-admin-action {
    width: 100%;

    min-height: 30px;

    padding:
        0 10px;

    border: 0;
    border-radius: 8px;

    background:
        transparent;

    color:
        #cfc6da;

    text-align: left;

    font-size: 9px;
    font-weight: 850;

    cursor: pointer;

    transition:
        background .14s ease,
        color .14s ease;
}


.crash-chat-admin-action:hover {
    background:
        rgba(141, 92, 255, .08);

    color:
        #ffffff;
}


.crash-chat-admin-delete {
    color:
        #ff9da7;
}


.crash-chat-admin-delete:hover {
    background:
        rgba(237, 92, 104, .09);

    color:
        #ffc1c7;
}


/* =========================================================
   CHAT COMPOSE
   ========================================================= */

.crash-chat-compose {
    margin-top:
        12px;

    display:
        grid;

    grid-template-columns:
        auto minmax(0, 1fr) auto;

    align-items:
        center;

    gap:
        10px;
}


.crash-chat-self-avatar {
    width:
        40px;

    height:
        40px;

    overflow:
        hidden;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    border:
        1px solid
        rgba(184, 137, 255, .20);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .18),
            rgba(20, 14, 31, .9)
        );

    color:
        var(--crash-purple-light);

    font-size:
        12px;

    font-weight:
        950;
}


.crash-chat-self-avatar img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.crash-chat-input-wrapper {
    min-width:
        0;

    min-height:
        44px;

    padding:
        0 12px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    border-radius:
        12px;

    border:
        1px solid
        rgba(184, 137, 255, .12);

    background:
        rgba(5, 5, 9, .70);

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}


.crash-chat-input-wrapper:focus-within {
    border-color:
        rgba(184, 137, 255, .34);

    box-shadow:
        0 0 0 2px
        rgba(141, 92, 255, .05);
}


.crash-chat-input-wrapper input {
    flex:
        1;

    min-width:
        0;

    border:
        0;

    outline:
        0;

    background:
        transparent;

    color:
        var(--crash-text);

    font-size:
        11px;

    font-weight:
        700;
}


.crash-chat-input-wrapper input::placeholder {
    color:
        rgba(146, 139, 157, .62);
}


.crash-chat-character-count {
    flex-shrink:
        0;

    color:
        var(--crash-muted);

    font-size:
        8px;

    font-weight:
        800;
}


.crash-chat-send {
    min-height:
        44px;

    padding:
        0 18px;

    border-radius:
        11px;

    border:
        1px solid
        rgba(184, 137, 255, .30);

    background:
        linear-gradient(
            145deg,
            #8051dc,
            #57309c
        );

    color:
        #fff;

    font-size:
        9px;

    font-weight:
        950;

    letter-spacing:
        1px;

    cursor:
        pointer;

    transition:
        transform .16s ease,
        opacity .16s ease,
        box-shadow .16s ease;
}


.crash-chat-send:hover:not(:disabled) {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 25px
        rgba(101, 55, 190, .20);
}


.crash-chat-send:disabled {
    opacity:
        .35;

    cursor:
        not-allowed;
}


.crash-chat-footer {
    margin-top:
        11px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;

    color:
        var(--crash-muted);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        .6px;
}


#crashChatConnectionStatus {
    color:
        var(--crash-purple-light);
}

/* =========================================================
   HISTORY
   ========================================================= */

.crash-history-section {
    width:
        100%;

       min-height:
        267px;

    margin:
        18px 0 0;

    padding:
        18px;

    box-sizing:
        border-box;

    position:
        relative;

    z-index:
        4;

    border-radius:
        18px;

    border:
        1px solid
        rgba(184, 137, 255, .12);

    background:
        linear-gradient(
            145deg,
            rgba(20, 14, 31, .82),
            rgba(8, 7, 12, .92)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .025);
}

.crash-history-header span {
    display:
        block;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        2px;

    color:
        var(--crash-purple-light);
}


.crash-history-header strong {
    display:
        block;

    margin-top:
        4px;

    font-size:
        14px;
}


.crash-history {
    margin-top:
        16px;

    display:
        grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap:
        9px;
}


.crash-history-item {
        min-width:
        0;

    min-height:
        38px;

    padding:
        9px 8px;

    box-sizing:
        border-box;

    text-align:
        center;

    border-radius:
        999px;

    border:
        1px solid
        rgba(255, 255, 255, .06);

    background:
        rgba(255, 255, 255, .025);

    font-size:
        10px;

    font-weight:
        900;
}


.crash-history-item.low {
    color:
        #ff9da7;

    border-color:
        rgba(237, 92, 104, .18);
}


.crash-history-item.medium {
    color:
        #dfc9ff;

    border-color:
        rgba(184, 137, 255, .18);
}


.crash-history-item.high {
    color:
        #ffe0a1;

    border-color:
        rgba(216, 173, 95, .2);
}


.crash-history-empty {
    color:
        var(--crash-muted);

    font-size:
        10px;
}


/* =========================================================
   RESULT MODAL
   ========================================================= */

.crash-result-overlay {
    position:
        fixed;

    inset:
        0;

    z-index:
        999;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    opacity:
        0;

    visibility:
        hidden;

    background:
        rgba(3, 3, 6, .76);

    backdrop-filter:
        blur(12px);

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.crash-result-overlay.open {
    opacity:
        1;

    visibility:
        visible;
}


.crash-result-modal {
    width:
        min(410px, 100%);

    padding:
        35px;

    box-sizing:
        border-box;

    text-align:
        center;

    border-radius:
        22px;

    border:
        1px solid
        rgba(184, 137, 255, .23);

    background:
        linear-gradient(
            145deg,
            #171020,
            #09080e
        );

    box-shadow:
        0 35px 110px
        rgba(0, 0, 0, .65),
        0 0 60px
        rgba(116, 57, 232, .11);
}


.crash-result-icon {
    width:
        82px;

    height:
        82px;

    margin:
        0 auto 20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    border:
        1px solid
        rgba(184, 137, 255, .28);

    background:
        radial-gradient(
            circle,
            rgba(141, 92, 255, .22),
            rgba(10, 8, 15, .8)
        );

    color:
        var(--crash-purple-light);

    font-size:
        34px;
}


.crash-result-modal > span {
    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        2.8px;

    color:
        var(--crash-purple-light);
}


.crash-result-modal h2 {
    margin:
        10px 0;

    font-size:
        29px;
}


.crash-result-modal p {
    margin:
        0 auto;

    max-width:
        320px;

    color:
        var(--crash-muted);

    font-size:
        12px;

    line-height:
        1.6;
}


.crash-result-details {
    margin-top:
        22px;

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        10px;
}


.crash-result-details > div {
    padding:
        13px;

    border-radius:
        12px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    background:
        rgba(255, 255, 255, .02);
}


.crash-result-details span {
    display:
        block;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        1.3px;

    color:
        var(--crash-muted);
}


.crash-result-details strong {
    display:
        block;

    margin-top:
        7px;

    font-size:
        16px;
}


.crash-result-profit {
    display:
        block;

    margin-top:
        21px;

    color:
        var(--crash-gold-light);

    font-size:
        23px;
}


.crash-result-modal button {
    width:
        100%;

    min-height:
        46px;

    margin-top:
        24px;

    border-radius:
        11px;

    border:
        1px solid
        rgba(184, 137, 255, .28);

    background:
        linear-gradient(
            145deg,
            #8051dc,
            #57309c
        );

    color:
        #fff;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        1px;

    cursor:
        pointer;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (
    max-width: 1050px
) {

    .crash-main {
        grid-template-columns:
            1fr;
    }


    .crash-control-panel {
        order:
            2;
    }

}


@media (
    max-width: 700px
) {

    .crash-navbar {
        height:
            auto;

        padding:
            16px;

        flex-wrap:
            wrap;

        gap:
            14px;
    }


    .crash-live {
        display:
            none;
    }


    .crash-main,
    .crash-history-section {
        width:
            min(100% - 24px, 700px);
    }


    .crash-main {
        margin-top:
            22px;
    }


    .crash-control-panel,
    .crash-game-area {
        padding:
            18px;
    }


    .crash-game-area {
        min-height:
            auto;
    }


    .crash-stage {
        height:
            390px;
    }


    .crash-actions {
        grid-template-columns:
            1fr;
    }


    .crash-quick-bets {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .crash-game-footer {
        gap:
            10px;
    }


    .crash-big-multiplier {
        letter-spacing:
            -2px;
    }

}

/* =========================================================
   CRASH — FINAL MOBILE SAFETY / POLISH
   ========================================================= */

@media (max-width: 680px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }

    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    button,
    input {
        touch-action: manipulation;

        -webkit-tap-highlight-color:
            transparent;
    }


    /* =====================================================
       PAGE
       ===================================================== */

    .crash-page {
        width:
            calc(100% - 12px);

        max-width: 100%;

        margin:
            0 auto;

        padding-bottom:
            calc(
                26px +
                env(safe-area-inset-bottom)
            );

        box-sizing: border-box;
    }


    /* =====================================================
       TOPBAR
       ===================================================== */

    .crash-topbar {
        width: 100%;

        grid-template-columns:
            1fr
            auto;

        gap: 10px;

        padding: 12px;

        box-sizing: border-box;
    }

    .crash-title-wrapper {
        grid-column:
            1 / -1;

        grid-row: 1;

        text-align: center;
    }

    .crash-back-button {
        grid-column: 1;
        grid-row: 2;

        justify-self: start;

        min-height: 42px;
    }

    .crash-topbar-actions {
        grid-column: 2;
        grid-row: 2;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 7px;
    }


    /* =====================================================
       AUDIO
       ===================================================== */

    .crash-audio-control {
        width: auto;
        min-width: 0;

        height: 42px;

        padding:
            0
            9px;

        gap: 7px;
    }

    .crash-volume-wrap {
        width: 64px;
        min-width: 64px;

        flex:
            0 0
            64px;
    }

    .crash-volume-slider {
        width: 64px;
    }


    /* =====================================================
       BALANCE
       ===================================================== */

    .crash-balance-box {
        width: auto;

        min-width: 102px;

        min-height: 42px;

        padding:
            6px
            10px;

        box-sizing: border-box;
    }


    /* =====================================================
       MAIN LAYOUT
       ===================================================== */

    .crash-layout {
        width: 100%;
        max-width: 100%;

        grid-template-columns:
            1fr;

        gap: 12px;

        box-sizing: border-box;
    }

    .crash-layout > * {
        min-width: 0;
    }


    /* =====================================================
       PANELS
       ===================================================== */

    .crash-control-panel,
    .crash-game-panel {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        padding: 16px;

        box-sizing: border-box;
    }


    /* =====================================================
       INPUTS
       ===================================================== */

    .crash-input,
    .crash-bet-input {
        width: 100%;
        max-width: 100%;

        min-height: 46px;

        box-sizing: border-box;
    }


    /* =====================================================
       QUICK BETS
       ===================================================== */

    .crash-quick-bets {
        width: 100%;

        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 6px;
    }

    .crash-quick-bets button {
        min-width: 0;
        min-height: 42px;

        padding:
            0
            6px;
    }


    /* =====================================================
       GAME STAGE
       ===================================================== */

    .crash-stage,
    .crash-game-stage {
        width: 100%;
        max-width: 100%;

        min-height: 340px;

        overflow: hidden;

        box-sizing: border-box;
    }


    /* =====================================================
       CHART
       ===================================================== */

    .crash-chart,
    .crash-chart-wrap,
    .crash-chart-container {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        overflow: hidden;

        box-sizing: border-box;
    }

    .crash-chart canvas,
    .crash-chart svg {
        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
    }


    /* =====================================================
       MULTIPLIER
       ===================================================== */

    .crash-multiplier,
    .crash-current-multiplier {
        max-width: 100%;

        font-size:
            clamp(
                42px,
                15vw,
                72px
            );

        line-height: 1;

        overflow-wrap: anywhere;
    }


    /* =====================================================
       STATUS / STATS
       ===================================================== */

    .crash-status-row,
    .crash-stats,
    .crash-stat-grid {
        width: 100%;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 7px;
    }

    .crash-stat-card {
        min-width: 0;

        box-sizing: border-box;
    }


    /* =====================================================
       MAIN BUTTONS
       ===================================================== */

    .crash-bet-button,
    .crash-cashout-button,
    .crash-main-button {
        width: 100%;

        min-height: 52px;

        touch-action: manipulation;
    }


    /* =====================================================
       HISTORY
       ===================================================== */

    .crash-history,
    .crash-history-row {
        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling:
            touch;
    }


    /* =====================================================
       RESULT MODAL
       ===================================================== */

    .crash-result-overlay {
        padding:
            max(
                10px,
                env(safe-area-inset-top)
            )
            10px
            max(
                10px,
                env(safe-area-inset-bottom)
            );

        overflow-y: auto;

        -webkit-overflow-scrolling:
            touch;
    }

    .crash-result-modal {
        width: 100%;

        max-width:
            calc(100vw - 20px);

        max-height:
            calc(100dvh - 20px);

        overflow-y: auto;

        box-sizing: border-box;
    }


    /* =====================================================
       PERFORMANCE
       ===================================================== */

    .crash-control-panel,
    .crash-game-panel,
    .crash-result-modal {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .crash-page {
        width:
            calc(100% - 8px);
    }

    .crash-topbar {
        padding: 9px;
    }

    .crash-title {
        font-size: 21px;
    }

    .crash-volume-wrap {
        width: 50px;
        min-width: 50px;

        flex-basis: 50px;
    }

    .crash-volume-slider {
        width: 50px;
    }

    .crash-balance-box {
        min-width: 90px;
    }

    .crash-control-panel,
    .crash-game-panel {
        padding: 13px;
    }

    .crash-stage,
    .crash-game-stage {
        min-height: 300px;
    }

    .crash-multiplier,
    .crash-current-multiplier {
        font-size:
            clamp(
                38px,
                14vw,
                60px
            );
    }

    .crash-quick-bets {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .crash-result-modal {
        padding:
            21px
            17px;
    }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .crash-bet-button:hover,
    .crash-cashout-button:hover,
    .crash-main-button:hover,
    .crash-quick-bets button:hover {
        transform: none;
    }

}

/* =========================================================
   MIDNIGHT AUDIO UI — CRASH
   VISUAL ONLY / FUNCTION UNCHANGED
   ========================================================= */

.crash-audio-control {
    position: relative;
    overflow: hidden;

    border:
        1px solid
        rgba(167, 102, 255, 0.20) !important;

    border-radius:
        12px !important;

    background:
        radial-gradient(
            circle at 18% 10%,
            rgba(175, 110, 255, 0.08),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(25, 17, 39, 0.88),
            rgba(9, 8, 15, 0.94)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.045),

        inset 0 0 18px
        rgba(132, 67, 230, 0.025),

        0 7px 22px
        rgba(0, 0, 0, 0.22) !important;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


.crash-audio-control::before {
    content: "";

    position: absolute;

    left: 10px;
    right: 10px;
    top: 0;

    height: 1px;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(186, 126, 255, 0.40),
            transparent
        );
}


/* =========================================================
   AUDIO BUTTON
   ========================================================= */

.crash-audio-button {
    position: relative;
    z-index: 2;

    width:
        26px !important;

    height:
        26px !important;

    flex:
        0 0 26px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        0 !important;

    border:
        1px solid
        rgba(178, 113, 255, 0.18) !important;

    border-radius:
        8px !important;

    background:
        radial-gradient(
            circle at 35% 22%,
            rgba(202, 158, 255, 0.10),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(37, 23, 58, 0.92),
            rgba(14, 11, 22, 0.96)
        ) !important;

    color:
        #d8b9ff !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.05),

        0 0 12px
        rgba(143, 73, 255, 0.08);

    opacity:
        1 !important;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease !important;
}


.crash-audio-button:hover {
    transform:
        translateY(-1px)
        scale(1.03) !important;

    color:
        #f0e4ff !important;

    border-color:
        rgba(190, 126, 255, 0.40) !important;

    background:
        linear-gradient(
            145deg,
            rgba(52, 30, 81, 0.96),
            rgba(19, 13, 30, 0.98)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.07),

        0 0 18px
        rgba(143, 73, 255, 0.18);
}


.crash-audio-button:active {
    transform:
        scale(0.96) !important;
}


/* =========================================================
   SVG ICON
   ========================================================= */

.crash-audio-icon {
    width:
        17px;

    height:
        17px;

    display:
        block;

    color:
        currentColor;

    pointer-events:
        none;
}


/* =========================================================
   VOLUME SLIDER
   ========================================================= */

.crash-volume-slider {
    position: relative;
    z-index: 2;

    width:
        86px;

    height:
        4px;

    margin:
        0;

    appearance:
        none;

    -webkit-appearance:
        none;

    border-radius:
        999px;

    outline:
        none;

    cursor:
        pointer;

    background:
        linear-gradient(
            90deg,
            rgba(158, 86, 255, 0.76),
            rgba(193, 133, 255, 0.88)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.035),

        0 0 9px
        rgba(139, 73, 255, 0.08);
}


/* Chrome / Brave / Edge */

.crash-volume-slider::-webkit-slider-runnable-track {
    height:
        4px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            rgba(121, 62, 218, 0.72),
            rgba(180, 107, 255, 0.72)
        );
}


.crash-volume-slider::-webkit-slider-thumb {
    width:
        12px;

    height:
        12px;

    margin-top:
        -4px;

    appearance:
        none;

    -webkit-appearance:
        none;

    border:
        2px solid
        #c994ff;

    border-radius:
        50%;

    background:
        #16101f;

    box-shadow:
        0 0 0 3px
        rgba(159, 87, 255, 0.10),

        0 0 10px
        rgba(174, 105, 255, 0.46);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}


.crash-volume-slider:hover::-webkit-slider-thumb {
    transform:
        scale(1.10);

    box-shadow:
        0 0 0 4px
        rgba(159, 87, 255, 0.12),

        0 0 14px
        rgba(174, 105, 255, 0.62);
}


/* Firefox */

.crash-volume-slider::-moz-range-track {
    height:
        4px;

    border:
        0;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.07);
}


.crash-volume-slider::-moz-range-progress {
    height:
        4px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            #7c3ee1,
            #ba72ff
        );
}


.crash-volume-slider::-moz-range-thumb {
    width:
        10px;

    height:
        10px;

    border:
        2px solid
        #c994ff;

    border-radius:
        50%;

    background:
        #16101f;

    box-shadow:
        0 0 10px
        rgba(174, 105, 255, 0.50);

    cursor:
        pointer;
}


/* =========================================================
   FOCUS
   ========================================================= */

.crash-audio-button:focus-visible,
.crash-volume-slider:focus-visible {
    outline:
        1px solid
        rgba(200, 147, 255, 0.65);

    outline-offset:
        2px;
}


/* =========================================================
   MIDNIGHT CRASH
   FINAL RESPONSIVE LAYER

   PHONES:
   344 / 360 / 375 / 390 / 412 / 414 / 430 / 440

   TABLET / FOLD:
   Surface Duo
   iPad Mini
   iPad Air
   iPad Pro
   Surface Pro 7
   Asus Zenbook Fold

   HUB:
   Nest Hub
   Nest Hub Max 1280 x 800

   DESKTOP > 1280px UNCHANGED
   ========================================================= */


/* =========================================================
   GLOBAL
   <= 1280px
   ========================================================= */

@media (max-width: 1280px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }


    .crash-page {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }


    .crash-main,
    .crash-left-column,
    .crash-control-panel,
    .crash-history-section,
    .crash-game-area,
    .crash-play-layout,
    .crash-stage,
    .crash-chat-section {
        min-width: 0;

        box-sizing: border-box;
    }


    /* =====================================================
       MAIN ORDER

       GAME FIRST
       CONTROLS SECOND
       ===================================================== */

    .crash-main {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr) !important;

        align-items: stretch !important;
    }


    .crash-game-area {
        order: 1 !important;
    }


    .crash-left-column {
        order: 2 !important;

        width: 100%;
        max-width: 100%;
    }


    /* =====================================================
       GRAPH + CHAT
       ===================================================== */

    .crash-play-layout {
        grid-template-columns:
            minmax(0, 1fr) !important;

        width: 100% !important;

        gap: 12px !important;
    }


    .crash-play-layout
    .crash-stage,

    .crash-play-layout
    .crash-chat-section {
        width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;
    }


    /* =====================================================
       RESULT POPUP
       ===================================================== */

    .crash-result-overlay {
        padding:
            max(
                10px,
                env(safe-area-inset-top)
            )
            10px
            max(
                10px,
                env(safe-area-inset-bottom)
            ) !important;

        overflow-y: auto !important;
    }


    .crash-result-modal {
        max-height:
            calc(
                100dvh - 20px
            ) !important;

        overflow-y: auto !important;
    }

}


/* =========================================================
   PHONES
   <= 680px
   ========================================================= */

@media (max-width: 680px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .crash-navbar {
        position: sticky !important;

        top: 0 !important;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        padding:
            8px !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        grid-template-rows:
            auto
            auto;

        align-items: center !important;

        column-gap: 7px !important;
        row-gap: 7px !important;

        overflow: visible !important;

        z-index: 100 !important;
    }


    /* BRAND */

    .crash-brand {
        grid-column: 1;
        grid-row: 1;

        min-width: 0;

        gap: 8px !important;
    }


    .crash-brand-icon {
        width: 37px !important;
        height: 37px !important;

        min-width: 37px;

        flex:
            0 0
            37px;

        font-size: 19px !important;
    }


    .crash-brand strong {
        font-size: 10px !important;

        letter-spacing: 1.5px !important;

        white-space: nowrap;
    }


    .crash-brand span {
        margin-top: 2px !important;

        font-size: 5px !important;

        letter-spacing: 2.3px !important;
    }


    /* LIVE */

    .crash-live {
        position: static !important;

        grid-column: 2;
        grid-row: 1;

        transform: none !important;

        padding:
            7px
            9px !important;

        gap: 5px !important;

        font-size: 5.5px !important;

        letter-spacing: .7px !important;

        white-space: nowrap;
    }


    .crash-live span {
        width: 5px !important;
        height: 5px !important;
    }


    /* USER ROW */

    .crash-user {
        grid-column:
            1 / -1;

        grid-row: 2;

        width: 100%;

        display: grid !important;

        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;

        align-items: center;

        gap: 6px !important;

        padding-top: 7px;

        border-top:
            1px solid
            rgba(255,255,255,.045);
    }


    /* AUDIO */

    .crash-audio-control {
        width: 39px !important;
        height: 38px !important;

        min-width: 39px;

        padding: 0 !important;

        gap: 0 !important;

        justify-content: center;
    }


    .crash-audio-button {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
    }


    .crash-volume-slider {
        display: none !important;
    }


    /* BALANCE */

    .crash-balance {
        min-width: 0 !important;

        gap: 7px !important;
    }


    .crash-token {
        width: 29px !important;
        height: 29px !important;

        flex:
            0 0
            29px;

        font-size: 8px;
    }


    .crash-balance span {
        font-size: 5px !important;

        letter-spacing: .7px !important;
    }


    .crash-balance strong {
        margin-top: 1px !important;

        font-size: 10px !important;

        white-space: nowrap;
    }


    /* BACK */

    .crash-back {
        min-height: 38px !important;

        padding:
            0
            9px !important;

        font-size: 6px !important;

        letter-spacing: .45px !important;

        white-space: nowrap;
    }


    /* =====================================================
       MAIN
       ===================================================== */

    .crash-main {
        width:
            calc(
                100% - 8px
            ) !important;

        max-width:
            calc(
                100% - 8px
            ) !important;

        margin:
            8px auto
            26px !important;

        gap: 9px !important;
    }


    /* =====================================================
       GAME AREA
       ===================================================== */

    .crash-game-area {
        width: 100%;

        min-height: 0 !important;

        padding:
            16px
            12px !important;

        border-radius: 17px !important;

        overflow: hidden;
    }


    /* HEADER */

    .crash-game-header {
        width: 100%;

        gap: 7px !important;
    }


    .crash-game-header span {
        font-size: 5.5px !important;

        letter-spacing: .9px !important;
    }


    .crash-game-header strong {
        margin-top: 3px !important;

        font-size: 9px !important;
    }


    .crash-header-brand {
        display: none !important;
    }


    .crash-status {
        padding:
            6px
            8px !important;

        font-size: 5.5px !important;

        white-space: nowrap;
    }


    /* =====================================================
       PLAY AREA
       ===================================================== */

    .crash-play-layout {
        margin:
            16px
            0
            14px !important;

        gap: 9px !important;
    }


    /* GRAPH */

    .crash-play-layout
    .crash-stage {
        height:
            clamp(
                300px,
                88vw,
                380px
            ) !important;

        min-height: 300px !important;

        border-radius: 14px;
    }


    .crash-big-multiplier {
        font-size:
            clamp(
                42px,
                15vw,
                64px
            ) !important;

        letter-spacing: -2px !important;
    }


    .crash-multiplier-label {
        font-size: 6px !important;
    }


    .crash-round-message {
        font-size: 7px !important;
    }


    /* =====================================================
       CHAT
       ===================================================== */

    .crash-play-layout
    .crash-chat-section {
        height: 330px !important;

        padding:
            13px !important;

        border-radius: 14px !important;
    }


    .crash-chat-header {
        gap: 7px;
    }


    .crash-chat-title span {
        font-size: 5.5px !important;
    }


    .crash-chat-title strong {
        font-size: 10px !important;
    }


    .crash-chat-online {
        padding:
            6px
            7px !important;

        font-size: 5.5px !important;
    }


    .crash-chat-compose {
        gap: 5px !important;
    }


    .crash-chat-self-avatar {
        width: 34px !important;
        height: 34px !important;

        flex:
            0 0
            34px;
    }


    .crash-chat-input-wrapper {
        min-width: 0;

        min-height: 40px !important;
    }


    .crash-chat-input-wrapper input {
        width: 100%;

        min-width: 0;

        padding-right: 8px;

        font-size: 8px !important;
    }


    .crash-chat-character-count {
        display: none !important;
    }


    .crash-chat-send {
        min-width: 62px;

        min-height: 40px !important;

        padding:
            0
            7px !important;

        font-size: 6px !important;
    }


    /* =====================================================
       GAME FOOTER
       ===================================================== */

    .crash-game-footer {
        grid-template-columns:
            1fr !important;

        gap: 6px !important;

        padding-top: 12px !important;
    }


    .crash-game-footer > div {
        width: 100%;

        min-height: 56px !important;

        padding:
            10px !important;
    }


    .crash-game-footer span {
        font-size: 5.5px !important;
    }


    .crash-game-footer strong {
        font-size: 11px !important;
    }


    /* =====================================================
       CONTROL PANEL
       ===================================================== */

    .crash-control-panel {
        width: 100%;

        padding:
            19px
            14px !important;

        border-radius: 17px !important;
    }


    .crash-control-header > span {
        font-size: 6px !important;

        letter-spacing: 1.6px !important;
    }


    .crash-control-header h1 {
        margin:
            8px
            0
            7px !important;

        font-size:
            clamp(
                25px,
                8vw,
                33px
            ) !important;
    }


    .crash-control-header p {
        font-size: 8.5px !important;

        line-height: 1.6;
    }


    .crash-control-block {
        margin-top: 17px !important;

        padding-top: 15px !important;
    }


    .crash-control-title span {
        font-size: 6px !important;
    }


    .crash-control-title strong {
        font-size: 8px !important;

        text-align: right;
    }


    /* BET */

    .crash-bet-input {
        width: 100%;

        min-height: 47px !important;

        padding:
            0
            10px !important;
    }


    .crash-coin {
        width: 29px !important;
        height: 29px !important;

        flex:
            0 0
            29px;
    }


    .crash-bet-input input {
        margin-left: 8px !important;

        font-size: 14px !important;
    }


    .crash-quick-bets {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;

        gap: 5px !important;
    }


    .crash-quick-bets button {
        min-height: 38px !important;

        font-size: 7px !important;
    }


    /* =====================================================
       AUTO CASHOUT
       ===================================================== */

    .crash-auto-row {
        width: 100%;

        gap: 8px !important;
    }


    .crash-auto-input {
        min-width: 0;
    }


    .crash-auto-input input {
        min-width: 0;
    }


    /* =====================================================
       INFO CARDS
       ===================================================== */

    .crash-info-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;

        gap: 6px !important;
    }


    .crash-info-card {
        min-width: 0;

        padding:
            11px
            8px !important;
    }


    .crash-info-card span {
        font-size: 5.5px !important;
    }


    .crash-info-card strong {
        font-size: 10px !important;

        overflow-wrap: anywhere;
    }


    /* ACTIONS */

    .crash-actions {
        grid-template-columns:
            1fr !important;

        gap: 6px !important;
    }


    .crash-start-button,
    .crash-cashout-button {
        width: 100%;

        min-height: 46px !important;

        font-size: 7px !important;
    }


    .crash-message {
        font-size: 7px !important;

        line-height: 1.5;
    }


    /* =====================================================
       HISTORY
       ===================================================== */

    .crash-history-section {
        width: 100% !important;

        min-height: 0 !important;

        margin-top: 9px !important;

        padding:
            14px
            12px !important;

        border-radius: 15px !important;
    }


    .crash-history-header span {
        font-size: 6px !important;
    }


    .crash-history-header strong {
        font-size: 11px !important;
    }


    .crash-history {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;

        gap: 6px !important;

        overflow-x: visible !important;
    }


    /* =====================================================
       RESULT
       ===================================================== */

    .crash-result-modal {
        width:
            calc(
                100vw - 16px
            ) !important;

        max-width:
            calc(
                100vw - 16px
            ) !important;

        padding:
            22px
            16px !important;

        border-radius: 18px !important;
    }

}


/* =========================================================
   VERY SMALL PHONE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

    .crash-main {
        width:
            calc(
                100% - 5px
            ) !important;

        max-width:
            calc(
                100% - 5px
            ) !important;
    }


    .crash-navbar {
        padding:
            7px
            6px !important;
    }


    .crash-brand-icon {
        width: 34px !important;
        height: 34px !important;

        min-width: 34px !important;
    }


    .crash-brand strong {
        font-size: 9px !important;
    }


    .crash-brand span {
        font-size: 4.5px !important;
    }


    .crash-live {
        padding:
            6px
            7px !important;

        font-size: 5px !important;
    }


    .crash-user {
        gap: 4px !important;
    }


    .crash-play-layout
    .crash-stage {
        height: 300px !important;
    }


    .crash-big-multiplier {
        font-size: 42px !important;
    }


    .crash-play-layout
    .crash-chat-section {
        height: 310px !important;
    }


    .crash-history {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }

}


/* =========================================================
   IPAD MINI / IPAD AIR / FOLD
   681 — 900px
   ========================================================= */

@media (min-width: 681px) and (max-width: 900px) {

    /* NAVBAR */

    .crash-navbar {
        width: 100%;

        height: 74px !important;

        padding:
            0
            18px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: space-between !important;

        gap: 10px !important;
    }


    .crash-brand {
        min-width: 145px;

        gap: 9px !important;
    }


    .crash-brand-icon {
        width: 39px !important;
        height: 39px !important;

        flex:
            0 0
            39px;
    }


    .crash-brand strong {
        font-size: 11px !important;
    }


    .crash-brand span {
        font-size: 6px !important;
    }


    .crash-live {
        position: absolute !important;

        left: 50% !important;
        top: 50% !important;

        transform:
            translate(
                -50%,
                -50%
            ) !important;

        font-size: 6px !important;
    }


    .crash-user {
        gap: 6px !important;
    }


    .crash-audio-control {
        width: 102px !important;

        min-width: 102px !important;

        padding:
            0
            7px !important;
    }


    .crash-volume-slider {
        width: 53px !important;
    }


    .crash-balance {
        min-width: 115px;
    }


    .crash-balance span {
        font-size: 5px !important;
    }


    .crash-balance strong {
        font-size: 10px !important;
    }


    .crash-back {
        min-width: 105px;

        padding:
            0
            8px !important;

        font-size: 5.5px !important;
    }


    /* MAIN */

    .crash-main {
        width:
            calc(
                100% - 20px
            ) !important;

        max-width: 820px !important;

        margin:
            14px auto
            32px !important;

        gap: 13px !important;
    }


    /* GAME */

    .crash-game-area {
        padding:
            24px !important;
    }


    .crash-play-layout {
        grid-template-columns:
            1fr !important;

        gap: 12px !important;
    }


    .crash-play-layout
    .crash-stage {
        height: 430px !important;
    }


    .crash-play-layout
    .crash-chat-section {
        height: 390px !important;
    }


    .crash-big-multiplier {
        font-size:
            clamp(
                56px,
                10vw,
                76px
            ) !important;
    }


    .crash-game-footer {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;

        gap: 8px !important;
    }


    /* CONTROL */

    .crash-control-panel {
        padding:
            25px
            23px !important;
    }


    .crash-quick-bets {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            ) !important;
    }


    .crash-info-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            ) !important;
    }


    /* HISTORY */

    .crash-history-section {
        min-height: 0 !important;

        padding:
            18px !important;
    }


    .crash-history {
        grid-template-columns:
            repeat(
                5,
                minmax(0, 1fr)
            ) !important;
    }

}


/* =========================================================
   IPAD PRO / SURFACE PRO 7
   901 — 1050px
   ========================================================= */

@media (min-width: 901px) and (max-width: 1050px) {

    /* =====================================================
       NAVBAR
       SAME STYLE AS FINISHED COINFLIP
       ===================================================== */

    .crash-navbar {
        position: sticky !important;

        top: 0 !important;

        width: 100% !important;

        height: 76px !important;
        min-height: 76px !important;

        padding:
            0
            22px !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;
        justify-content: space-between !important;

        gap: 14px !important;

        overflow: visible !important;
    }


    .crash-brand {
        min-width: 155px !important;

        flex:
            0 0
            auto !important;

        gap: 10px !important;
    }


    .crash-brand-icon {
        width: 40px !important;
        height: 40px !important;

        flex:
            0 0
            40px !important;
    }


    .crash-brand strong {
        font-size: 12px !important;
    }


    .crash-brand span {
        font-size: 6px !important;
    }


    /* TRUE CENTER */

    .crash-live {
        position: absolute !important;

        left: 50% !important;
        top: 50% !important;

        transform:
            translate(
                -50%,
                -50%
            ) !important;

        margin: 0 !important;

        z-index: 5;
    }


    .crash-user {
        flex:
            0 0
            auto;

        gap: 7px !important;
    }


    .crash-audio-control {
        width: 112px !important;

        min-width: 112px !important;

        height: 40px !important;

        padding:
            0
            8px !important;
    }


    .crash-volume-slider {
        width: 60px !important;
    }


    .crash-balance {
        min-width: 122px !important;
    }


    .crash-token {
        width: 31px !important;
        height: 31px !important;

        flex:
            0 0
            31px !important;
    }


    .crash-balance span {
        font-size: 5.5px !important;
    }


    .crash-balance strong {
        font-size: 10px !important;
    }


    .crash-back {
        min-width: 120px !important;

        padding:
            0
            10px !important;

        font-size: 6px !important;
    }


    /* =====================================================
       MAIN
       ===================================================== */

    .crash-main {
        width:
            calc(
                100% - 28px
            ) !important;

        max-width: 930px !important;

        margin:
            15px auto
            34px !important;

        gap: 14px !important;
    }


    /* GAME */

    .crash-game-area {
        width: 100%;

        min-height: 0 !important;

        padding:
            26px !important;
    }


    .crash-play-layout {
        grid-template-columns:
            1fr !important;

        gap: 13px !important;

        margin:
            22px
            0
            18px !important;
    }


    .crash-play-layout
    .crash-stage {
        height: 460px !important;
    }


    .crash-play-layout
    .crash-chat-section {
        height: 400px !important;
    }


    /* FOOTER */

    .crash-game-footer {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;

        gap: 8px !important;
    }


    /* CONTROL */

    .crash-control-panel {
        padding:
            27px !important;
    }


    .crash-quick-bets {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            ) !important;
    }


    .crash-info-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            ) !important;
    }


    .crash-actions {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }


    .crash-history-section {
        min-height: 0 !important;
    }

}


/* =========================================================
   SURFACE PRO 7
   901 — 960px
   SLIGHTLY COMPACT NAV
   ========================================================= */

@media (min-width: 901px) and (max-width: 960px) {

    .crash-navbar {
        height: 72px !important;
        min-height: 72px !important;

        padding:
            0
            14px !important;

        gap: 8px !important;
    }


    .crash-brand {
        min-width: 130px !important;

        gap: 7px !important;
    }


    .crash-brand-icon {
        width: 35px !important;
        height: 35px !important;

        flex-basis: 35px !important;
    }


    .crash-brand strong {
        font-size: 10px !important;
    }


    .crash-brand span {
        font-size: 5px !important;
    }


    .crash-live {
        padding:
            7px
            8px !important;

        font-size: 5.5px !important;
    }


    .crash-user {
        gap: 5px !important;
    }


    .crash-audio-control {
        width: 94px !important;

        min-width: 94px !important;
    }


    .crash-volume-slider {
        width: 43px !important;
    }


    .crash-balance {
        min-width: 105px !important;
    }


    .crash-token {
        width: 28px !important;
        height: 28px !important;

        flex-basis: 28px !important;
    }


    .crash-balance span {
        font-size: 4.8px !important;
    }


    .crash-balance strong {
        font-size: 9px !important;
    }


    .crash-back {
        min-width: 105px !important;

        padding:
            0
            7px !important;

        font-size: 5.3px !important;
    }

}


/* =========================================================
   NEST HUB
   1024 x 600
   ========================================================= */

@media
    (min-width: 961px)
    and (max-width: 1050px)
    and (max-height: 650px) {

    .crash-navbar {
        height: 68px !important;
        min-height: 68px !important;

        padding:
            0
            20px !important;
    }


    .crash-brand-icon {
        width: 38px !important;
        height: 38px !important;

        flex-basis: 38px !important;
    }


    .crash-main {
        margin-top: 10px !important;
    }


    .crash-game-area {
        padding:
            20px !important;
    }


    .crash-play-layout {
        /*
           Nest Hub is wide but short:
           graph first, chat below.
           Vertical page scrolling is intentional.
        */

        grid-template-columns:
            1fr !important;
    }


    .crash-play-layout
    .crash-stage {
        height: 390px !important;
    }


    .crash-play-layout
    .crash-chat-section {
        height: 330px !important;
    }


    html,
    body {
        overflow-y: auto !important;
    }

}


/* =========================================================
   NEST HUB MAX / LARGE FOLD
   1051 — 1280px
   ========================================================= */

@media (min-width: 1051px) and (max-width: 1280px) {

    /* NAV */

    .crash-navbar {
        height: 72px !important;

        padding:
            0
            24px !important;
    }


    .crash-brand-icon {
        width: 39px !important;
        height: 39px !important;
    }


    .crash-brand strong {
        font-size: 12px !important;
    }


    .crash-brand span {
        font-size: 6px !important;
    }


    .crash-live {
        position: absolute !important;

        left: 50% !important;
        top: 50% !important;

        transform:
            translate(
                -50%,
                -50%
            ) !important;
    }


    .crash-user {
        gap: 8px !important;
    }


    .crash-audio-control {
        height: 40px !important;
    }


    .crash-volume-slider {
        width: 68px !important;
    }


    .crash-balance strong {
        font-size: 11px !important;
    }


    .crash-back {
        min-height: 38px !important;

        font-size: 7px !important;
    }


    /* MAIN */

    .crash-main {
        width:
            calc(
                100% - 30px
            ) !important;

        max-width: 1120px !important;

        margin:
            15px auto
            34px !important;

        gap: 14px !important;
    }


    .crash-game-area {
        padding:
            25px !important;
    }


    /* Graph + chat stacked for consistency */

    .crash-play-layout {
        grid-template-columns:
            1fr !important;

        gap: 12px !important;
    }


    .crash-play-layout
    .crash-stage {
        height: 450px !important;
    }


    .crash-play-layout
    .crash-chat-section {
        height: 380px !important;
    }


    .crash-game-footer {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;
    }


    /* CONTROL */

    .crash-control-panel {
        padding:
            27px !important;
    }


    .crash-quick-bets {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            ) !important;
    }


    .crash-info-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            ) !important;
    }

}


/* =========================================================
   NEST HUB MAX
   1280 x 800
   ========================================================= */

@media
    (min-width: 1101px)
    and (max-width: 1280px)
    and (max-height: 820px) {

    html,
    body {
        overflow-y:
            auto !important;
    }


    .crash-main {
        margin-top:
            10px !important;
    }


    .crash-play-layout
    .crash-stage {
        height:
            400px !important;
    }


    .crash-play-layout
    .crash-chat-section {
        height:
            330px !important;
    }


    .crash-control-panel {
        padding:
            23px
            26px !important;
    }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .crash-start-button:hover,
    .crash-cashout-button:hover,
    .crash-quick-bets button:hover,
    .crash-back:hover,
    .crash-chat-send:hover {
        transform: none !important;
    }

}


/* =========================================================
   MIDNIGHT CRASH
   IPAD MINI / IPAD AIR / ASUS ZENBOOK FOLD
   NAVBAR FINAL ALIGNMENT

   681px — 900px
   ========================================================= */

@media (min-width: 681px) and (max-width: 900px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .crash-navbar {
        position: sticky !important;

        top: 0 !important;

        width: 100% !important;

        height: 74px !important;
        min-height: 74px !important;

        padding:
            0
            14px !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;
        justify-content: space-between !important;

        gap: 8px !important;

        overflow: visible !important;
    }


    /* =====================================================
       BRAND
       ===================================================== */

    .crash-brand {
        flex:
            0 0
            auto !important;

        min-width: 128px !important;

        gap: 7px !important;
    }


    .crash-brand-icon {
        width: 36px !important;
        height: 36px !important;

        min-width: 36px !important;

        flex:
            0 0
            36px !important;
    }


    .crash-brand strong {
        font-size: 10px !important;

        letter-spacing:
            1.8px !important;
    }


    .crash-brand span {
        margin-top:
            2px !important;

        font-size:
            5px !important;

        letter-spacing:
            2.3px !important;
    }


    /* =====================================================
       LIVE
       TRUE CENTER OF NAVBAR
       ===================================================== */

    .crash-live {
        position: absolute !important;

        left: 50% !important;
        top: 50% !important;

        right: auto !important;
        bottom: auto !important;

        margin: 0 !important;

        transform:
            translate(
                -50%,
                -50%
            ) !important;

        padding:
            7px
            9px !important;

        gap:
            5px !important;

        font-size:
            5.5px !important;

        letter-spacing:
            .7px !important;

        white-space:
            nowrap !important;

        z-index:
            10 !important;
    }


    .crash-live span {
        width: 5px !important;
        height: 5px !important;

        flex:
            0 0
            5px !important;
    }


    /* =====================================================
       RIGHT CONTROLS
       MAKE ENOUGH SPACE FOR CENTER LIVE BADGE
       ===================================================== */

    .crash-user {
        width: auto !important;

        min-width: 0 !important;

        flex:
            0 0
            auto !important;

        margin-left:
            auto !important;

        display: flex !important;

        align-items: center !important;
        justify-content: flex-end !important;

        gap:
            5px !important;
    }


    /* AUDIO */

    .crash-audio-control {
        width: 86px !important;

        min-width: 86px !important;

        height: 38px !important;

        flex:
            0 0
            86px !important;

        padding:
            0
            6px !important;

        gap:
            5px !important;
    }


    .crash-audio-button {
        width: 25px !important;
        height: 25px !important;

        min-width: 25px !important;

        flex:
            0 0
            25px !important;
    }


    .crash-volume-slider {
        width: 45px !important;

        min-width: 45px !important;

        flex:
            0 0
            45px !important;
    }


    /* =====================================================
       BALANCE
       ===================================================== */

    .crash-balance {
        min-width:
            94px !important;

        gap:
            6px !important;

        flex:
            0 0
            auto !important;
    }


    .crash-token {
        width: 28px !important;
        height: 28px !important;

        min-width: 28px !important;

        flex:
            0 0
            28px !important;
    }


    .crash-balance span {
        font-size:
            4.5px !important;

        letter-spacing:
            .7px !important;

        white-space:
            nowrap !important;
    }


    .crash-balance strong {
        margin-top:
            1px !important;

        font-size:
            8.5px !important;

        white-space:
            nowrap !important;
    }


    /* =====================================================
       BACK
       ===================================================== */

    .crash-back {
        min-width:
            92px !important;

        min-height:
            37px !important;

        flex:
            0 0
            92px !important;

        padding:
            0
            7px !important;

        font-size:
            5px !important;

        letter-spacing:
            .35px !important;

        white-space:
            nowrap !important;
    }

}
