/* =========================================================
   MIDNIGHT ROULETTE
   ========================================================= */

:root {
    --roulette-bg: #05050a;
    --roulette-panel: #0d0d17;
    --roulette-panel-soft: #11111d;

    --roulette-purple: #8b49ff;
    --roulette-purple-light: #b47cff;

    --roulette-gold: #e6b85c;
    --roulette-gold-light: #ffdc89;

    --roulette-text: #f7f5ff;
    --roulette-muted: #9491a5;

    --roulette-red: #d94c61;
    --roulette-red-dark: #6f1f2a;

    --roulette-black: #17171e;
    --roulette-green: #31b96d;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    min-height: 100vh;

    overflow-x: hidden;

    color: var(--roulette-text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at 50% 5%,
            rgba(120, 64, 255, .12),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #05050a,
            #07070d
        );
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

#starfield {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: -3;
}

.cursor-glow {
    position: fixed;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    pointer-events: none;

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

    z-index: -2;

    background:
        radial-gradient(
            circle,
            rgba(132, 73, 255, .07),
            transparent 70%
        );
}


.roulette-page {
    width:
        min(
            1500px,
            calc(100% - 40px)
        );

    margin: 0 auto;
}


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

.roulette-navbar {
    min-height: 82px;

    display: grid;

    align-items: center;

    gap: 24px;

    position: sticky;

    top: 0;

    z-index: 100;

    padding:
        0 18px;

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

    backdrop-filter:
        blur(18px);

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


.roulette-brand {
    display: flex;

    align-items: center;

    gap: 12px;

    color: white;

    text-decoration: none;
}


.roulette-brand-icon {
    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    font-size: 25px;

    background:
        radial-gradient(
            circle,
            #211633,
            #09090f
        );

    border:
        1px solid rgba(161,102,255,.35);

    box-shadow:
        0 0 25px rgba(127,72,255,.18);
}


.roulette-brand strong {
    display: block;

    font-size: 15px;

    letter-spacing: 2px;
}


.roulette-brand span {
    display: block;

    margin-top: 3px;

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

    font-size: 9px;

    letter-spacing: 4px;
}


.roulette-live {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--roulette-muted);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


.roulette-live span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--roulette-green);

    box-shadow:
        0 0 12px
        var(--roulette-green);
}


.roulette-user {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;
}


.roulette-balance {
    min-width: 160px;

    padding: 8px 10px;

    display: flex;

    align-items: center;

    gap: 9px;

    border-radius: 12px;

    border:
        1px solid transparent;

    background:
        linear-gradient(
            #0c0c15,
            #0c0c15
        ) padding-box,

        conic-gradient(
            from var(--midnight-angle),
            #703be7,
            #a653ff,
            #4e76ff,
            #d8aa51,
            #8f48f8,
            #703be7
        ) border-box;

    animation:
        midnightBorderSpin
        8s linear infinite;
}


.roulette-token {
    width: 30px;
    height: 30px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: #2a1906;

    font-weight: 900;

    background:
        linear-gradient(
            145deg,
            #ffe49a,
            #b87b1e
        );
}


.roulette-balance span {
    display: block;

    color: var(--roulette-muted);

    font-size: 7px;
}


.roulette-balance strong {
    display: block;

    margin-top: 3px;

    font-size: 16px;
}


.roulette-back {
    min-height: 42px;

    padding:
        0 16px;

    border-radius: 10px;

    color: white;

    font-size: 9px;

    font-weight: 900;

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

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

    transition:
        .2s;
}


.roulette-back:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(147,76,255,.25);
}


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

.roulette-main {
    padding:
        28px 0 55px;
}


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

.roulette-stage {
    min-height: 560px;

    position: relative;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1.6fr .75fr;

    gap: 20px;

    padding: 34px;

    border-radius: 28px;

    border:
        1px solid transparent;

    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(116,61,255,.18),
            transparent 34%
        ) padding-box,

        linear-gradient(
            145deg,
            #0a0a14,
            #090910
        ) padding-box,

        conic-gradient(
            from var(--midnight-angle),
            #602be2,
            #9e4fff,
            #5177ff,
            #d8a74e,
            #ffe08c,
            #9348ff,
            #602be2
        ) border-box;

    animation:
        midnightBorderSpin
        10s linear infinite;

    box-shadow:
        0 35px 100px
        rgba(0,0,0,.55);
}


.roulette-stage::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .16;

    background-image:
        radial-gradient(
            circle at 20px 20px,
            rgba(255,255,255,.3) 1px,
            transparent 1px
        );

    background-size:
        110px 110px;
}


.roulette-stage-glow {
    position: absolute;

    width: 700px;
    height: 700px;

    left: 25%;
    top: 50%;

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

    border-radius: 50%;

    filter:
        blur(40px);

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(122,72,255,.16),
            transparent 65%
        );
}


/* =========================================================
   WHEEL AREA
   ========================================================= */

.roulette-wheel-area {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


.roulette-wheel-wrap {
    position: relative;

    width: 390px;
    height: 390px;

    display: grid;

    place-items: center;
}


.roulette-pointer {
    position: absolute;

    top: -15px;
    left: 50%;

    width: 0;
    height: 0;

    transform:
        translateX(-50%);

    z-index: 8;

    border-left:
        13px solid transparent;

    border-right:
        13px solid transparent;

    border-top:
        28px solid var(--roulette-gold-light);

    filter:
        drop-shadow(
            0 0 10px
            rgba(255,220,137,.35)
        );
}


.roulette-wheel {
    width: 350px;
    height: 350px;

    position: relative;

    border-radius: 50%;

    background:
        conic-gradient(
            #16904f 0deg 9.72deg,

            #b62e42 9.72deg 19.44deg,
            #16161d 19.44deg 29.16deg,

            #b62e42 29.16deg 38.88deg,
            #16161d 38.88deg 48.60deg,

            #b62e42 48.60deg 58.32deg,
            #16161d 58.32deg 68.04deg,

            #b62e42 68.04deg 77.76deg,
            #16161d 77.76deg 87.48deg,

            #b62e42 87.48deg 97.20deg,
            #16161d 97.20deg 106.92deg,

            #b62e42 106.92deg 116.64deg,
            #16161d 116.64deg 126.36deg,

            #b62e42 126.36deg 136.08deg,
            #16161d 136.08deg 145.80deg,

            #b62e42 145.80deg 155.52deg,
            #16161d 155.52deg 165.24deg,

            #b62e42 165.24deg 174.96deg,
            #16161d 174.96deg 184.68deg,

            #b62e42 184.68deg 194.40deg,
            #16161d 194.40deg 204.12deg,

            #b62e42 204.12deg 213.84deg,
            #16161d 213.84deg 223.56deg,

            #b62e42 223.56deg 233.28deg,
            #16161d 233.28deg 243deg,

            #b62e42 243deg 252.72deg,
            #16161d 252.72deg 262.44deg,

            #b62e42 262.44deg 272.16deg,
            #16161d 272.16deg 281.88deg,

            #b62e42 281.88deg 291.60deg,
            #16161d 291.60deg 301.32deg,

            #b62e42 301.32deg 311.04deg,
            #16161d 311.04deg 320.76deg,

            #b62e42 320.76deg 330.48deg,
            #16161d 330.48deg 340.20deg,

            #b62e42 340.20deg 349.92deg,
            #16161d 349.92deg 360deg
        );

    border:
        10px solid #c49748;

    box-shadow:
        0 0 0 6px #2c1b0c,
        0 0 0 9px rgba(255,217,130,.25),
        0 30px 70px rgba(0,0,0,.55),
        0 0 70px rgba(120,64,255,.16);

    transition:
        transform 5s cubic-bezier(.12,.73,.12,1);
}


.roulette-wheel::before {
    content: "";

    position: absolute;

    inset: 28px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #1b1327 0%,
            #0d0b15 72%
        );

    border:
        2px solid rgba(255,216,126,.28);
}


.roulette-wheel-inner {
    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;
}


.roulette-center {
    width: 150px;
    height: 150px;

    position: relative;

    z-index: 4;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    color: white;

    background:
        radial-gradient(
            circle,
            #241238,
            #0b0811
        );

    border:
        2px solid rgba(183,129,255,.35);

    box-shadow:
        inset 0 0 40px rgba(129,67,255,.13),
        0 0 45px rgba(125,65,255,.18);
}


.roulette-center span {
    color: var(--roulette-purple-light);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;
}


.roulette-center strong {
    margin-top: 5px;

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

    font-size: 18px;

    letter-spacing: 2px;
}


.roulette-last-result {
    min-width: 190px;

    margin-top: 25px;

    padding:
        12px 18px;

    text-align: center;

    border-radius: 14px;

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

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


.roulette-last-result span {
    display: block;

    color: var(--roulette-muted);

    font-size: 7px;

    letter-spacing: 1px;
}


.roulette-last-result strong {
    display: block;

    margin-top: 5px;

    font-size: 24px;

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


/* =========================================================
   SIDE PANEL
   ========================================================= */

.roulette-side-panel {
    position: relative;

    z-index: 2;

    align-self: center;

    padding: 26px;

    border-radius: 20px;

    background:
        rgba(10,10,18,.82);

    border:
        1px solid transparent;

    background:
        linear-gradient(
            rgba(10,10,18,.94),
            rgba(10,10,18,.94)
        ) padding-box,

        conic-gradient(
            from var(--midnight-angle),
            #7139eb,
            #a550ff,
            #5078ff,
            #d4a34b,
            #8d46f5,
            #7139eb
        ) border-box;

    animation:
        midnightBorderSpin
        11s linear infinite;
}


.side-label {
    color: var(--roulette-purple-light);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1.3px;
}


.roulette-side-panel h2 {
    margin:
        9px 0 0;

    font-size: 28px;
}


.roulette-side-panel p {
    margin-top: 12px;

    color: var(--roulette-muted);

    font-size: 11px;

    line-height: 1.65;
}


.roulette-info-card {
    margin-top: 12px;

    padding: 14px;

    border-radius: 12px;

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

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


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

    color: var(--roulette-muted);

    font-size: 7px;
}


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

    margin-top: 5px;

    font-size: 14px;
}


/* =========================================================
   CONTROLS
   ========================================================= */

.roulette-controls {
    margin-top: 18px;

    display: grid;

    grid-template-columns:
        .75fr 2fr .7fr;

    gap: 16px;

    position: relative;
}

/* =========================================================
   SERIES PANEL
   ========================================================= */

.roulette-series-panel {
    position: relative;

    grid-column: 1 / -1;

    width: 100%;
    min-height: 0;

    transform: none;

    padding: 16px 18px;

    box-sizing: border-box;

    border-radius: 16px;

    z-index: 20;

    border:
        1px solid transparent;

    background:
        linear-gradient(
            #0d0d17,
            #0d0d17
        ) padding-box,

        conic-gradient(
            from var(--midnight-angle),
            #6533df,
            #9e50ff,
            #5078ff,
            #d6a64e,
            #944aff,
            #6533df
        ) border-box;

    animation:
        midnightBorderSpin
        12s linear infinite;
}


.roulette-series-header span {
    display: block;

    color:
        var(--roulette-muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1.3px;
}


.roulette-series-header strong {
    display: block;

    margin-top: 4px;

    font-size: 16px;
}


.roulette-series-list {
    margin-top: 12px;

    display: grid;

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

    gap: 8px;
}


.roulette-series-button {
    width: 100%;

    padding:
        12px 11px;

    text-align: left;

    border-radius: 10px;

    color: white;

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

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

    transition:
        .18s ease;
}


.roulette-series-button strong {
    display: block;

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

    font-size: 10px;

    letter-spacing: .7px;
}


.roulette-series-button span {
    display: block;

    margin-top: 6px;

    color:
        var(--roulette-muted);

    font-size: 8px;

    line-height: 1.5;
}


.roulette-series-button:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(155, 91, 255, .35);

    background:
        rgba(130, 70, 255, .09);

    box-shadow:
        0 7px 22px
        rgba(0,0,0,.22);
}


.roulette-series-button.selected {
    border-color:
        rgba(255, 220, 137, .6);

    background:
        rgba(230, 184, 92, .08);

    box-shadow:
        0 0 18px
        rgba(230, 184, 92, .12);
}

.roulette-bet-panel,
.roulette-board-panel,
.roulette-spin-panel {
    min-height: 300px;

    padding: 20px;

    border-radius: 18px;

    border:
        1px solid transparent;

    background:
        linear-gradient(
            #0d0d17,
            #0d0d17
        ) padding-box,

        conic-gradient(
            from var(--midnight-angle),
            #6533df,
            #9e50ff,
            #5078ff,
            #d6a64e,
            #944aff,
            #6533df
        ) border-box;

    animation:
        midnightBorderSpin
        12s linear infinite;
}


/* =========================================================
   BET PANEL
   ========================================================= */

.control-title span {
    display: block;

    color: var(--roulette-muted);

    font-size: 8px;
}


.control-title strong {
    display: block;

    margin-top: 4px;

    font-size: 16px;
}


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

    margin-top: 16px;

    padding:
        8px 12px;

    display: flex;

    align-items: center;

    gap: 10px;

    border-radius: 12px;

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

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


.roulette-coin {
    width: 30px;
    height: 30px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: #2b1a06;

    font-weight: 900;

    background:
        linear-gradient(
            145deg,
            #ffe49a,
            #b87b1e
        );
}


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

    border: 0;

    outline: 0;

    color: white;

    background: transparent;

    font-size: 17px;

    font-weight: 900;
}


.roulette-bet-input > span {
    color: var(--roulette-muted);

    font-size: 9px;
}


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

    display: grid;

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

    gap: 7px;
}


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

    border-radius: 8px;

    color: #d8d5e5;

    font-size: 9px;

    font-weight: 900;

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

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

    transition:
        .18s;
}

.roulette-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);
}


.roulette-quick-bets button:hover {
    color: white;

    border-color:
        rgba(145,79,255,.25);

    background:
        rgba(145,79,255,.09);
}


/* =========================================================
   BOARD
   ========================================================= */

.roulette-board-panel {
    display: grid;

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

    align-items: stretch;

    gap: 10px;
}


.roulette-number {
    position: relative;
    min-height: 48px;

    border-radius: 9px;

    color: white;

    font-weight: 1000;

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

    transition:
        .16s;
}




.roulette-number.zero {
    height: 156px;
    min-height: 156px;

    align-self: start;

    background:
        linear-gradient(
            180deg,
            #1e9c5b,
            #105b37
        );
}


.roulette-number-grid {
    display: grid;

    grid-template-columns:
        repeat(
            12,
            minmax(44px, 1fr)
        );

    grid-template-rows:
        repeat(
            3,
            48px
        );

    gap: 6px;

    min-width: 650px;
}

/* =========================================================
   ROULETTE SPLIT BET ZONES
   ========================================================= */

.roulette-number-grid {
    position: relative;
}


.roulette-split-zone {
    width: 16px;
    height: 16px;

    min-width: 16px;
    min-height: 16px;

    padding: 0;

    position: relative;

    z-index: 14;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 220, 137, 0);

    background:
        rgba(255, 220, 137, 0);

    box-shadow:
        none;

    cursor: pointer;

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


/*
    SPLIT KÉT VÍZSZINTESEN
    EGYMÁS MELLETTI SZÁM KÖZÖTT

    pl.:
    1-4
    2-5
    3-6
*/

.roulette-split-zone.vertical {
    justify-self: end;
    align-self: center;

    transform:
        translateX(11px);
}


/*
    SPLIT KÉT FÜGGŐLEGESEN
    EGYMÁS ALATTI SZÁM KÖZÖTT

    pl.:
    1-2
    2-3
*/

.roulette-split-zone.horizontal {
    justify-self: center;
    align-self: end;

    transform:
        translateY(11px);
}


/*
    Alaphelyzetben szinte láthatatlan.
    Hoverkor látszik, hogy ide lehet
    tenni a Split tétet.
*/

.roulette-split-zone:hover {
    border-color:
        rgba(255, 220, 137, .85);

    background:
        rgba(255, 220, 137, .22);

    box-shadow:
        0 0 12px
        rgba(255, 220, 137, .45);
}


.roulette-split-zone.vertical:hover {
    transform:
        translateX(11px)
        scale(1.2);
}


.roulette-split-zone.horizontal:hover {
    transform:
        translateY(11px)
        scale(1.2);
}


/*
    KIVÁLASZTOTT SPLIT
*/

.roulette-split-zone.selected {
    border-color:
        #ffdc89;

    background:
        #e6b85c;

    box-shadow:
        0 0 0 3px
        rgba(230, 184, 92, .18),

        0 0 18px
        rgba(255, 220, 137, .6);
}


.roulette-split-zone.selected::after {
    content: "";

    position: absolute;

    inset: 4px;

    border-radius: 50%;

    background:
        #fff3c8;
}

/* =========================================================
   STREET / CORNER / SIX LINE BET ZONES
   ========================================================= */

.roulette-inside-zone,
.roulette-zero-split-zone {
    position: relative;

    width: 18px;
    height: 18px;

    min-width: 18px;
    min-height: 18px;

    padding: 0;

    z-index: 12;

    border: 1px solid transparent;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    overflow: visible;
}


/* STREET
   pl. 1-2-3
   az adott hármas külső szélén
*/

.roulette-inside-zone.street {
    justify-self: center;
    align-self: start;

    transform:
        translateY(-12px);
}

/* CORNER
   négy szám találkozási pontja
*/

.roulette-inside-zone.corner {
    justify-self: end;

    width: 14px;
    height: 14px;

    min-width: 14px;
    min-height: 14px;

    z-index: 16;
}

.roulette-inside-zone.corner.top {
    align-self: end;

    transform:
        translate(10px, 10px);
}

.roulette-inside-zone.corner.bottom {
    align-self: end;

    transform:
        translate(10px, 10px);
}

/* SIX LINE
   két egymás melletti Street határa
*/

.roulette-inside-zone.sixline {
    justify-self: end;
    align-self: start;

    width: 14px;
    height: 14px;

    min-width: 14px;
    min-height: 14px;

    z-index: 15;

    transform:
        translate(10px, -10px);
}


/* ZERO SPLIT */

.roulette-number.zero {
    position: relative;
    overflow: visible;
}

.roulette-zero-split-zone {
    position: absolute;

    right: -9px;
}

.roulette-zero-split-zone:nth-of-type(1) {
    bottom: 8px;
}

.roulette-zero-split-zone:nth-of-type(2) {
    top: 50%;

    transform:
        translateY(-50%);
}

.roulette-zero-split-zone:nth-of-type(3) {
    top: 8px;
}

/* 0-2-3 TRIO */

.roulette-zero-trio-zone {
    position: absolute;

    right: -9px;
    top: 25%;

    width: 18px;
    height: 18px;

    min-width: 18px;
    min-height: 18px;

    padding: 0;

    transform: translateY(-50%);

    z-index: 18;

    border: 1px solid transparent;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.roulette-zero-trio-zone:hover {
    border-color: rgba(255, 220, 137, .85);

    background: rgba(255, 220, 137, .22);

    box-shadow:
        0 0 12px
        rgba(255, 220, 137, .5);
}

/* HOVER */

.roulette-inside-zone:hover,
.roulette-zero-split-zone:hover {
    border-color:
        rgba(255, 220, 137, .85);

    background:
        rgba(255, 220, 137, .22);

    box-shadow:
        0 0 12px
        rgba(255, 220, 137, .5);
}


/* LERAKOTT ZSETON */

.roulette-number[data-bet-amount]::after,
.roulette-bet-option[data-bet-amount]::after,
.roulette-split-zone[data-bet-amount]::after,
.roulette-inside-zone[data-bet-amount]::after,
.roulette-zero-split-zone[data-bet-amount]::after,
.roulette-zero-trio-zone[data-bet-amount]::after {
    content:
        attr(data-bet-amount);

    position: absolute;

    left: 50%;
    top: 50%;

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

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

    min-width: 30px;
    height: 30px;

    padding: 0 5px;

    box-sizing: border-box;

    border-radius: 50%;

    border:
        2px solid
        rgba(255, 235, 175, .95);

    background:
        radial-gradient(
            circle,
            #d8ad55 0%,
            #9d7028 72%,
            #62400f 100%
        );

    color: #fff;

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

    line-height: 1;

    white-space: nowrap;

    text-shadow:
        0 1px 2px
        rgba(0, 0, 0, .8);

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, .45);

    pointer-events: none;

    z-index: 30;
}

.roulette-number.red {
    background:
        linear-gradient(
            145deg,
            #c63a51,
            #6d1e2b
        );
}


.roulette-number.black {
    background:
        linear-gradient(
            145deg,
            #25252e,
            #111118
        );
}


.roulette-number:hover,
.roulette-bet-option:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.12);
}


.roulette-number.selected,
.roulette-bet-option.selected {
    outline:
        2px solid var(--roulette-gold-light);

    box-shadow:
        0 0 18px rgba(255,220,137,.3);
}


.roulette-outside-bets {
    grid-column:
        1 / -1;

    margin-top: 10px;

    display: grid;

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

    gap: 6px;
}


.roulette-bet-option {
    min-height: 42px;

    padding:
        6px;

    border-radius: 8px;

    color: white;

    font-size: 8px;

    font-weight: 900;

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

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

    transition:
        .16s;
}


.roulette-bet-option.red-bet {
    background:
        linear-gradient(
            145deg,
            #b9364a,
            #6d1f2c
        );
}


.roulette-bet-option.black-bet {
    background:
        linear-gradient(
            145deg,
            #24242d,
            #101016
        );
}


/* =========================================================
   SPIN PANEL
   ========================================================= */

.roulette-spin-panel {
    display: flex;

    flex-direction: column;

    justify-content: center;
}

/* =========================================================
   ROULETTE MODE SWITCH
   ========================================================= */

.roulette-mode-switch {
    width: 100%;

    display: grid;

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

    gap: 7px;

    margin-bottom: 12px;

    padding: 5px;

    border-radius: 12px;

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

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


.roulette-mode-button {
    min-height: 38px;

    padding:
        0 10px;

    border-radius: 8px;

    color:
        var(--roulette-muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;

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

    border:
        1px solid transparent;

    transition:
        .18s ease;
}


.roulette-mode-button:hover {
    color: white;

    border-color:
        rgba(155,91,255,.3);

    background:
        rgba(130,70,255,.08);
}


.roulette-mode-button.active {
    color: #ffffff;

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

    background:
        linear-gradient(
            135deg,
            rgba(110,56,224,.40),
            rgba(160,82,255,.22)
        );

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

.roulette-spin-button {
    min-height: 58px;

    border-radius: 12px;

    color: white;

    font-size: 12px;

    font-weight: 1000;

    letter-spacing: .8px;

    background:
        linear-gradient(
            135deg,
            #6e38e0,
            #a052ff
        );

    box-shadow:
        0 15px 35px rgba(127,67,235,.2);

    transition:
        .2s;
}


.roulette-spin-button:not(:disabled):hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 20px 45px rgba(127,67,235,.3);
}


.roulette-spin-button:disabled {
    opacity: .3;

    cursor: not-allowed;
}


.roulette-clear-button {
    min-height: 42px;

    margin-top: 10px;

    border-radius: 10px;

    color: #d2cfdd;

    font-size: 9px;

    font-weight: 900;

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

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

.roulette-clear-button {
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.roulette-clear-button:hover:not(:disabled) {
    border-color:
        rgba(184, 137, 255, .55);

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

    color:
        #f3eaff;

    box-shadow:
        0 0 16px
        rgba(141, 92, 255, .18);

    transform:
        translateY(-1px);
}


.roulette-clear-button:active:not(:disabled) {
    border-color:
        rgba(184, 137, 255, .75);

    box-shadow:
        0 0 20px
        rgba(141, 92, 255, .28);

    transform:
        translateY(0);
}

.roulette-spin-panel p {
    margin:
        16px 0 0;

    color: var(--roulette-muted);

    font-size: 9px;

    line-height: 1.5;

    text-align: center;
}


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

.roulette-history {
    margin-top: 18px;

    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        17px 20px;

    border-radius: 16px;

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

    background:
        #0d0d17;
}


.roulette-history > div:first-child span {
    display: block;

    color: var(--roulette-muted);

    font-size: 7px;
}


.roulette-history > div:first-child strong {
    display: block;

    margin-top: 4px;

    font-size: 12px;
}


.roulette-history-numbers {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 7px;
}


.history-number {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: white;

    font-size: 10px;

    font-weight: 900;
}


.history-number.red {
    background:
        #a62d40;
}


.history-number.black {
    background:
        #202029;
}


.history-number.green {
    background:
        #18834b;
}


.roulette-history .history-empty {
    min-height: 0 !important;

    display: block !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: var(--roulette-muted);

    font-size: 9px;

    text-align: right;
}


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

.roulette-result-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    opacity: 0;

    visibility: hidden;

    background:
        rgba(2,2,7,.85);

    backdrop-filter:
        blur(16px);

    transition:
        opacity .25s,
        visibility .25s;
}


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

    visibility: visible;
}


.roulette-result-modal {
    width:
        min(
            430px,
            100%
        );

    padding: 30px;

    text-align: center;

    border-radius: 22px;

    border:
        1px solid transparent;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(124,63,255,.15),
            transparent 42%
        ) padding-box,

        linear-gradient(
            #0c0c16,
            #0c0c16
        ) padding-box,

        conic-gradient(
            from var(--midnight-angle),
            #6432df,
            #a451ff,
            #4e77ff,
            #d8a74f,
            #ffdf8d,
            #9349ff,
            #6432df
        ) border-box;

    animation:
        midnightBorderSpin
        7s linear infinite;

    box-shadow:
        0 40px 120px
        rgba(0,0,0,.7);
}


.roulette-result-number {
    width: 82px;
    height: 82px;

    margin:
        0 auto;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: white;

    font-size: 30px;

    font-weight: 1000;

    background:
        #b73349;

    border:
        3px solid rgba(255,255,255,.18);

    box-shadow:
        0 0 35px rgba(188,56,79,.22);
}


.roulette-result-number.black {
    background:
        #202029;
}


.roulette-result-number.green {
    background:
        #18834b;
}


.roulette-result-modal > span {
    display: block;

    margin-top: 18px;

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

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}


.roulette-result-modal h2 {
    margin:
        8px 0 0;

    font-size: 31px;
}


.roulette-result-modal p {
    max-width: 320px;

    margin:
        12px auto 0;

    color: var(--roulette-muted);

    font-size: 10px;

    line-height: 1.6;
}


#rouletteResultPayout {
    display: block;

    margin-top: 18px;

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

    font-size: 25px;
}


#rouletteResultButton {
    width: 100%;

    min-height: 45px;

    margin-top: 20px;

    border-radius: 10px;

    color: white;

    font-size: 9px;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #713be0,
            #9b50ff
        );
}


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

@media (max-width: 1100px) {

    .roulette-stage {
        grid-template-columns:
            1fr;
    }

    .roulette-side-panel {
        width: 100%;
    }


    .roulette-controls {
        grid-template-columns:
            1fr 1fr;
    }


    .roulette-board-panel {
        grid-column:
            1 / -1;
    }

}


@media (max-width: 780px) {

    .roulette-page {
        width:
            calc(100% - 20px);
    }


    .roulette-navbar {
        grid-template-columns:
            1fr auto;
    }


    .roulette-live {
        display: none;
    }


    .roulette-balance {
        display: none;
    }


    .roulette-wheel-wrap {
        width: 310px;
        height: 310px;
    }


    .roulette-wheel {
        width: 280px;
        height: 280px;
    }


    .roulette-center {
        width: 120px;
        height: 120px;
    }


    .roulette-controls {
        grid-template-columns:
            1fr;
    }


    .roulette-board-panel {
        grid-column:
            auto;
    }


    .roulette-number-grid {
        grid-template-columns:
            repeat(6, 1fr);
    }


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


    .roulette-history {
        flex-direction: column;

        align-items: flex-start;
    }


    .roulette-history-numbers {
        justify-content:
            flex-start;
    }

}


@media (max-width: 500px) {

    .roulette-stage {
        padding:
            22px 14px;
    }


    .roulette-wheel-wrap {
        width: 260px;
        height: 260px;
    }


    .roulette-wheel {
        width: 235px;
        height: 235px;

        border-width: 7px;
    }


    .roulette-center {
        width: 100px;
        height: 100px;
    }


    .roulette-center strong {
        font-size: 14px;
    }


    .roulette-board-panel {
        grid-template-columns:
            40px 1fr;
    }


    .roulette-number-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

}

/* =========================================================
   FINAL ROULETTE WHEEL SYSTEM
   ========================================================= */

/*
    A wrapper tart mindent egy fix 390x390-es területen.
    A kerék középen marad, a nyíl és a logó pedig nem forog.
*/

.roulette-wheel-wrap {
    position: relative;

    width: 390px;
    height: 390px;

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

    flex-shrink: 0;
}


/* =========================================================
   FIX NYÍL
   ========================================================= */

.roulette-pointer {
    position: absolute;

    left: 50%;
    top: 5px;

    transform:
        translateX(-50%);

    z-index: 30;

    width: 0;
    height: 0;

    border-left:
        13px solid transparent;

    border-right:
        13px solid transparent;

    border-top:
        28px solid var(--roulette-gold-light);

    filter:
        drop-shadow(
            0 0 10px
            rgba(255, 220, 137, .35)
        );

    pointer-events: none;
}


/* =========================================================
   FORGÓ KERÉK
   ========================================================= */

.roulette-wheel {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 350px;
    height: 350px;

    margin: 0;

    transform:
        translate(-50%, -50%)
        rotate(0deg);

    transform-origin:
        50% 50%;

    transition:
        transform
        5s
        cubic-bezier(.12, .73, .12, 1);

    will-change:
        transform;

    border-radius: 50%;
}


/* =========================================================
   FIX KÖZÉPSŐ MIDNIGHT LOGÓ
   ========================================================= */

.roulette-center-fixed {
    position: absolute;

    left: 50%;
    top: 50%;

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

    width: 245px;
    height: 245px;

    z-index: 20;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            #241238 0%,
            #0b0811 78%
        );

    border:
        2px solid
        rgba(183, 129, 255, .35);

    box-shadow:
        inset
        0 0 55px
        rgba(129, 67, 255, .15),

        0 0 45px
        rgba(125, 65, 255, .24);
}


.roulette-center-fixed span {
    display: block;

    margin: 0;

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

    font-size: 11px;

    font-weight: 900;

    line-height: 1;

    letter-spacing: 3px;
}


.roulette-center-fixed strong {
    display: block;

    margin:
        10px 0 0;

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

    font-size: 28px;

    font-weight: 900;

    line-height: 1;

    letter-spacing: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 780px) {

    .roulette-wheel-wrap {
        width: 310px;
        height: 310px;
    }


    .roulette-wheel {
        width: 280px;
        height: 280px;
    }


    .roulette-center-fixed {
        width: 195px;
        height: 195px;
    }


    .roulette-center-fixed strong {
        font-size: 22px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .roulette-wheel-wrap {
        width: 260px;
        height: 260px;
    }


    .roulette-wheel {
        width: 235px;
        height: 235px;

        border-width: 7px;
    }


    .roulette-center-fixed {
        width: 165px;
        height: 165px;
    }


    .roulette-center-fixed span {
        font-size: 8px;

        letter-spacing: 2px;
    }


    .roulette-center-fixed strong {
        margin-top: 7px;

        font-size: 18px;

        letter-spacing: 2px;
    }

}

/* =========================================================
   RULETTKERÉK SZÁMAI
   ========================================================= */

.roulette-wheel-number {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 32px;
    height: 34px;

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

    z-index: 10;

    font-size: 20px;
    font-weight: 900;
    line-height: 1;

    color: #ffffff;

    pointer-events: none;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, .95);

    letter-spacing: 0;
}


/* 0 - ZÖLD */

.roulette-wheel-number.green {
    color: #9dffc5;
}


/* PIROS SZÁMOK */

.roulette-wheel-number.red {
    color: #ffffff;
}


/* FEKETE SZÁMOK */

.roulette-wheel-number.black {
    color: #ffffff;
}

/* =========================================================
   PREMIUM ROULETTE POLISH
   ========================================================= */

.roulette-wheel {
    box-shadow:
        0 0 0 6px #2a190c,
        0 0 0 9px rgba(255, 218, 130, .28),
        0 25px 70px rgba(0, 0, 0, .65),
        0 0 65px rgba(126, 70, 255, .22);
}


/* =========================================================
   RULETT SZÁMOK
   ========================================================= */

.roulette-wheel-number {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 20px;
    height: 20px;

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

    z-index: 12;

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

    line-height: 1;

    color: #ffffff;

    pointer-events: none;

    letter-spacing: -.2px;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 1),
        0 0 3px rgba(0, 0, 0, .9);

    user-select: none;
}


/* PIROS MEZŐ SZÁM */

.roulette-wheel-number.red {
    color: #ffffff;
}


/* FEKETE MEZŐ SZÁM */

.roulette-wheel-number.black {
    color: #f4f1ff;
}


/* ZÖLD 0 */

.roulette-wheel-number.green {
    color: #ffffff;

    font-size: 9px;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 1),
        0 0 6px rgba(70, 255, 150, .5);
}


/* =========================================================
   BELSŐ KÖR FINOMÍTÁS
   ========================================================= */

.roulette-center-fixed {
    background:
        radial-gradient(
            circle at 50% 42%,
            #291743 0%,
            #171022 48%,
            #09080f 100%
        );

    border:
        2px solid rgba(180, 124, 255, .38);

    box-shadow:
        inset 0 0 65px rgba(123, 61, 255, .12),
        inset 0 0 25px rgba(255, 220, 137, .03),
        0 0 42px rgba(112, 55, 230, .22);
}


/* =========================================================
   NYÍL FINOMÍTÁS
   ========================================================= */

.roulette-pointer {
    filter:
        drop-shadow(
            0 2px 5px
            rgba(0, 0, 0, .8)
        )
        drop-shadow(
            0 0 10px
            rgba(255, 220, 137, .35)
        );
}

/* =========================================================
   ROULETTE TOPBAR V2
   MATCHED TO DICE SYSTEM
   ========================================================= */

.roulette-topbar {
    position: relative;

    z-index: 30;

    min-height: 92px;

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap: 24px;

    margin-bottom: 24px;

    padding:
        18px
        22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            transparent 60%
        ),
        rgba(7, 6, 11, 0.88);

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.28);

    backdrop-filter:
        blur(18px);

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


.roulette-topbar::before {
    content: "";

    position: absolute;

    left: 24px;
    right: 24px;
    top: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(188, 80, 119, 0.28),
            rgba(170, 103, 255, 0.18),
            transparent
        );
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.roulette-back-button {
    min-height: 44px;

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

    padding:
        0
        15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 11px;

    color:
        rgba(255, 255, 255, 0.62);

    background:
        rgba(255, 255, 255, 0.022);

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

    letter-spacing: 0.7px;

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


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

    color: #ffffff;

    border-color:
        rgba(188, 88, 123, 0.21);

    background:
        rgba(188, 75, 113, 0.045);
}


/* =========================================================
   TITLE
   ========================================================= */

.roulette-title-wrapper {
    min-width: 0;

    text-align: center;
}


.roulette-eyebrow {
    display: block;

    color:
        rgba(255, 255, 255, 0.28);

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

    letter-spacing: 2px;
}


.roulette-title {
    margin-top: 5px;

    color: #ffffff;

    font-size: 28px;
    font-weight: 1000;

    line-height: 1;

    letter-spacing:
        -0.8px;
}


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

.roulette-topbar-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


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

.roulette-balance-box {
    min-width: 126px;
    min-height: 48px;

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

    padding:
        7px
        13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 12px;

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


.roulette-balance-label {
    color:
        rgba(255, 255, 255, 0.28);

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

    letter-spacing: 1px;
}


.roulette-balance-value {
    margin-top: 3px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 950;
}


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

.roulette-topbar
.roulette-audio-control {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        7px
        9px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: 12px;

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


.roulette-topbar
.roulette-audio-button {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: #ffffff;

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


.roulette-topbar
.roulette-volume-wrap {
    width: 90px;
}


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

@media (max-width: 850px) {

    .roulette-topbar {
        grid-template-columns:
            auto
            1fr;

        gap:
            14px
            16px;
    }


    .roulette-title-wrapper {
        text-align: left;
    }


    .roulette-topbar-actions {
        grid-column:
            1 / -1;

        justify-content:
            space-between;
    }

}


@media (max-width: 560px) {

    .roulette-topbar {
        padding:
            14px;

        border-radius: 15px;
    }


    .roulette-title {
        font-size: 23px;
    }


    .roulette-topbar-actions {
        flex-wrap: wrap;
    }


    .roulette-topbar
    .roulette-audio-control {
        flex:
            1 1 150px;
    }


    .roulette-balance-box {
        flex:
            1 1 120px;
    }

}

/* =========================================================
   ROULETTE TOPBAR V2.1
   AUDIO + BALANCE ALIGNMENT FIX
   ========================================================= */

.roulette-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}


/* AUDIO BOX */

.roulette-topbar .roulette-audio-control {
    width: 150px;
    min-width: 150px;
    height: 48px;
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 7px 10px;

    box-sizing: border-box;

    overflow: hidden;
}


.roulette-topbar .roulette-audio-button {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    padding: 0;
}


.roulette-topbar .roulette-volume-wrap {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;

    display: flex;
    align-items: center;
}


.roulette-topbar .roulette-volume-slider {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
}


/* BALANCE BOX */

.roulette-balance-box {
    width: 130px;
    min-width: 130px;
    height: 48px;
    min-height: 48px;

    display: flex;
    flex-direction: column;

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

    padding: 7px 13px;

    box-sizing: border-box;

    text-align: right;

    overflow: hidden;
}


.roulette-balance-label {
    display: block;

    width: 100%;

    margin: 0;

    color: rgba(255, 255, 255, 0.32);

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

    line-height: 1;

    letter-spacing: 1.1px;

    text-align: right;
}


.roulette-balance-value {
    display: block;

    width: 100%;

    margin: 5px 0 0;

    color: #ffffff;

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

    line-height: 1;

    letter-spacing: 0.2px;

    text-align: right;

    white-space: nowrap;
}


/* =========================================================
   ROULETTE AUDIO CONTROL — BLACKJACK STYLE
   ========================================================= */

.roulette-topbar .roulette-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);
}

.roulette-topbar .roulette-audio-button {
    width: 26px;
    height: 26px;

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

    flex: 0 0 26px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #f7f5ff;

    font-size: 14px;

    cursor: pointer;

    opacity: .9;

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

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

.roulette-topbar .roulette-volume-wrap {
    width: 86px;
    min-width: 86px;

    flex: 0 0 86px;

    display: flex;
    align-items: center;
}

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

    margin: 0;

    accent-color: #b47cff;

    cursor: pointer;
}

/* =========================================================
   ROULETTE RESULT MODAL V2
   MATCH MIDNIGHT DICE
   ========================================================= */

.roulette-result-overlay {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: grid;
    place-items: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    background:
        rgba(3, 3, 8, 0.76);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transition:
        opacity 0.20s ease,
        visibility 0.20s ease;
}


.roulette-result-overlay.open {
    opacity: 1;
    visibility: visible;
}


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

.roulette-result-modal {
    position: relative;

    width:
        min(
            460px,
            100%
        );

    padding: 28px;

    overflow: hidden;

    text-align: center;

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

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(139, 73, 255, 0.12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(18, 13, 29, 0.99),
            rgba(7, 6, 12, 0.99)
        );

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, 0.58),

        0 0 45px
        rgba(127, 60, 226, 0.07);

    transform:
        translateY(12px)
        scale(0.98);

    transition:
        transform 0.22s ease;
}


.roulette-result-overlay.open
.roulette-result-modal {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   TOP ACCENT
   ========================================================= */

.roulette-result-modal::before {
    content: "";

    position: absolute;

    left: 12%;
    right: 12%;
    top: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(188, 130, 255, 0.52),
            transparent
        );
}


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

.roulette-result-number {
    width: 68px;
    height: 68px;

    margin:
        0 auto
        14px;

    display: grid;
    place-items: center;

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

    border-radius: 50%;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 35% 25%,
            rgba(255, 255, 255, 0.12),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #9e3e61,
            #6f263f
        );

    font-size: 1.65rem;
    font-weight: 950;

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

        0 0 28px
        rgba(158, 62, 97, 0.14);
}


/* =========================================================
   MIDNIGHT LABEL
   ========================================================= */

.roulette-result-modal > span {
    display: block;

    margin: 0;

    color:
        #b989ff;

    font-size: 0.64rem;
    font-weight: 900;

    letter-spacing: 0.15em;
}


/* =========================================================
   TITLE
   ========================================================= */

.roulette-result-modal h2 {
    margin:
        8px 0
        0;

    color: #ffffff;

    font-size: 1.75rem;
    font-weight: 950;

    line-height: 1.1;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.roulette-result-modal p {
    max-width: 330px;

    margin:
        8px auto
        0;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 0.86rem;

    line-height: 1.55;
}


/* =========================================================
   PAYOUT / PROFIT
   ========================================================= */

#rouletteResultPayout {
    display: block;

    margin-top: 18px;

    color:
        #f0ce78;

    font-size: 1.55rem;
    font-weight: 950;
}


/* =========================================================
   NEW SPIN BUTTON
   ========================================================= */

#rouletteResultButton {
    position: relative;

    width: 100%;
    min-height: 48px;

    margin-top: 20px;

    overflow: hidden;

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

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #a56dff,
            #7345df
        );

    font-size: 0.78rem;
    font-weight: 950;

    letter-spacing: 0.04em;

    box-shadow:
        0 12px 32px
        rgba(106, 54, 207, 0.18);

    cursor: pointer;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}


#rouletteResultButton:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.07);

    box-shadow:
        0 16px 38px
        rgba(106, 54, 207, 0.26);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .roulette-result-modal {
        padding: 23px;
    }


    .roulette-result-modal h2 {
        font-size: 1.55rem;
    }


    .roulette-result-number {
        width: 62px;
        height: 62px;

        font-size: 1.5rem;
    }

}

/* =========================================================
   ROULETTE — 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 */

    .roulette-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 */

    .roulette-topbar {
        grid-template-columns:
            1fr
            auto;

        gap: 10px;

        padding: 12px;

        border-radius: 15px;

        box-sizing: border-box;
    }

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

        justify-self: start;

        min-height: 42px;
    }

    .roulette-title-wrapper {
        grid-column: 1 / -1;
        grid-row: 1;

        text-align: center;
    }

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

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

        gap: 7px;
    }

    .roulette-topbar
    .roulette-audio-control {
        width: auto;
        min-width: 0;

        height: 42px;

        padding: 0 9px;

        gap: 7px;
    }

    .roulette-topbar
    .roulette-volume-wrap {
        width: 64px;
        min-width: 64px;

        flex: 0 0 64px;
    }

    .roulette-topbar
    .roulette-volume-slider {
        width: 64px;
    }

    .roulette-balance-box {
        width: auto;
        min-width: 105px;

        height: 42px;
        min-height: 42px;

        padding: 6px 10px;
    }


    /* MAIN GAME AREA */

    .roulette-layout,
    .roulette-game-layout {
        width: 100%;
        max-width: 100%;

        grid-template-columns: 1fr;

        gap: 12px;

        box-sizing: border-box;
    }


    /* PANELS */

    .roulette-board-panel,
    .roulette-control-panel,
    .roulette-game-panel,
    .roulette-bet-panel {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;
    }


    /* ROULETTE WHEEL */

    .roulette-wheel-wrap,
    .roulette-wheel-container {
        width: 100%;
        max-width: 100%;

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

        overflow: hidden;
    }

    .roulette-wheel {
        max-width:
            min(
                82vw,
                360px
            );

        max-height:
            min(
                82vw,
                360px
            );
    }


    /* BETTING TABLE */

    .roulette-table,
    .roulette-board {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

        box-sizing: border-box;
    }

    .roulette-table-inner,
    .roulette-board-inner {
        min-width: 560px;
    }


    /* BET CONTROLS */

    .roulette-bet-controls,
    .roulette-controls {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

    .roulette-chip-row,
    .roulette-bet-buttons {
        display: grid;

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

        gap: 6px;
    }

    .roulette-chip,
    .roulette-bet-button {
        min-width: 0;
        min-height: 42px;
    }


    /* INPUTS */

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

        min-height: 46px;

        box-sizing: border-box;
    }


    /* MAIN BUTTON */

    .roulette-spin,
    .roulette-spin-button {
        width: 100%;

        min-height: 52px;

        touch-action: manipulation;
    }


    /* RESULT MODAL */

    .roulette-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;
    }

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

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

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

        overflow-y: auto;

        box-sizing: border-box;
    }


    /* PERFORMANCE */

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

}


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

@media (max-width: 420px) {

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

    .roulette-topbar {
        padding: 9px;
    }

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

    .roulette-topbar
    .roulette-volume-wrap {
        width: 50px;
        min-width: 50px;

        flex-basis: 50px;
    }

    .roulette-topbar
    .roulette-volume-slider {
        width: 50px;
    }

    .roulette-balance-box {
        min-width: 92px;
    }

    .roulette-wheel {
        max-width: 88vw;
        max-height: 88vw;
    }

    .roulette-chip-row,
    .roulette-bet-buttons {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

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

}


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

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

    .roulette-spin:hover,
    .roulette-spin-button:hover,
    .roulette-chip:hover,
    .roulette-bet-button:hover,
    #rouletteResultButton:hover {
        transform: none;
    }

}

/* =========================================================
   ROULETTE NAVBAR — CRASH STYLE
   ========================================================= */

.roulette-topbar {
    width: 100vw;

    height: 78px;
    min-height: 78px;

    margin-left:
        calc(50% - 50vw);

    margin-right:
        calc(50% - 50vw);

    padding:
        0 38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    position:
        sticky;

    top:
        0;

    z-index:
        100;

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

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

    backdrop-filter:
        blur(18px);

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


/* =========================================================
   BRAND
   ========================================================= */

.roulette-brand {
    display:
        flex;

    align-items:
        center;

    gap:
        13px;

    color:
        inherit;

    text-decoration:
        none;
}


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

    height:
        40px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        12px;

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

    font-size:
        22px;

    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);
}


.roulette-brand strong {
    display:
        block;

    font-size:
        14px;

    font-weight:
        900;

    letter-spacing:
        3px;
}


.roulette-brand span {
    display:
        block;

    margin-top:
        4px;

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

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        4px;
}


/* =========================================================
   LIVE STATUS
   ========================================================= */

.roulette-live {
    position:
        absolute;

    left:
        50%;

    transform:
        translateX(-50%);

    padding:
        10px 15px;

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

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

    border-radius:
        999px;

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

    color:
        #b9f7d8;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        2px;
}


.roulette-live span {
    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--roulette-green);

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


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.roulette-user {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        16px;
}


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

.roulette-audio-control {
    height:
        42px;

    padding:
        0 12px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    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);
}


.roulette-audio-button {
    width:
        26px;

    height:
        26px;

    padding:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        0;

    outline:
        0;

    background:
        transparent;

    color:
        var(--roulette-text);

    font-size:
        14px;

    cursor:
        pointer;

    opacity:
        .9;
}


.roulette-volume-slider {
    width:
        86px;

    height:
        4px;

    margin:
        0;

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

    cursor:
        pointer;
}


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

.roulette-balance {
    min-width:
        0;

    padding:
        0;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    border:
        0;

    border-radius:
        0;

    background:
        none;

    animation:
        none;
}


.roulette-token {
    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);
}


.roulette-balance span {
    display:
        block;

    color:
        var(--roulette-muted);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.8px;
}


.roulette-balance strong {
    display:
        block;

    margin-top:
        3px;

    font-size:
        14px;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

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

    padding:
        0 16px;

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

    border-radius:
        10px;

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

    color:
        var(--roulette-text);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1px;

    cursor:
        pointer;

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


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

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

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


/* =========================================================
   ROULETTE NAVBAR — FINAL DESKTOP OVERRIDE
   ========================================================= */

@media (min-width: 851px) {

    .roulette-topbar {
        width: 100vw !important;

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

        margin-left:
            calc(50% - 50vw) !important;

        margin-right:
            calc(50% - 50vw) !important;

        margin-bottom:
            0 !important;

        padding:
            0 38px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            space-between !important;

        gap:
            0 !important;

        position:
            sticky !important;

        top:
            0 !important;

        border-radius:
            0 !important;
    }


    .roulette-live {
        position:
            absolute !important;

        left:
            50% !important;

        transform:
            translateX(-50%) !important;
    }


    .roulette-user {
        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            flex-end !important;

        gap:
            16px !important;
    }


    .roulette-audio-control {
        width:
            auto !important;

        min-width:
            0 !important;

        height:
            42px !important;

        padding:
            0 12px !important;

        gap:
            10px !important;

        overflow:
            visible !important;
    }


    .roulette-volume-slider {
        width:
            86px !important;

        height:
            4px !important;
    }


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

        padding:
            0 !important;

        border:
            0 !important;

        background:
            none !important;

        animation:
            none !important;
    }

}

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

.roulette-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);
}


.roulette-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
   ========================================================= */

.roulette-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;
}


.roulette-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);
}


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


/* =========================================================
   ICON WRAPPER
   ========================================================= */

#rouletteAudioIcon {
    width: 17px;
    height: 17px;

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

    line-height: 0;

    color: currentColor;

    pointer-events: none;
}


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

.roulette-audio-icon {
    width: 17px;
    height: 17px;

    display: block;

    color: currentColor;

    pointer-events: none;
}


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

.roulette-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 */

.roulette-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)
        );
}


.roulette-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;
}


.roulette-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 */

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

    border: 0;

    border-radius: 999px;

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


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

    border-radius: 999px;

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


.roulette-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
   ========================================================= */

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

    outline-offset: 2px;
}

/* =========================================================
   SERIES PANEL RESPONSIVE POSITION
   ========================================================= */

@media (max-width: 1500px) {

    .roulette-series-panel {
        position: relative;

        left: auto;
        top: auto;

        width: 100%;
        min-height: 0;

        transform: none;

        grid-column:
            1 / -1;

        margin-bottom: 4px;
    }

}


@media (max-width: 780px) {

    .roulette-series-list {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 8px;
    }

}


@media (max-width: 500px) {

    .roulette-series-list {
        grid-template-columns:
            1fr;
    }

}

.roulette-round-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: fit-content;
    min-width: 190px;

    margin: 18px auto 0;
    padding: 10px 18px;

    border: 1px solid rgba(180, 120, 255, 0.18);
    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(24, 17, 38, 0.88),
            rgba(12, 10, 20, 0.92)
        );

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    color: rgba(255, 255, 255, 0.68);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roulette-round-timer strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

.roulette-round-timer small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 700;
}

.roulette-round-timer[hidden] {
    display: none !important;
}


/* =========================================================
   ROULETTE — MULTIPLAYER PLAYERS PANEL
   ========================================================= */

.roulette-players-panel {
    margin-top: 18px;

    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015)
        );

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

    backdrop-filter: blur(16px);
}


.roulette-players-panel[hidden] {
    display: none !important;
}


.roulette-players-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 14px;
}


.roulette-players-header > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.roulette-players-header span {
    color: var(--roulette-muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


.roulette-players-header strong {
    color: #ffffff;

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

    letter-spacing: 0.2px;
}


.roulette-players-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 74px;

    padding: 7px 10px;

    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;

    background:
        rgba(168, 85, 247, 0.08);

    color: #c084fc !important;

    font-size: 8px !important;
    font-weight: 900 !important;
}


.roulette-players-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.roulette-player-row {
    display: grid;

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

    align-items: center;

    gap: 14px;

    min-height: 58px;

    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 13px;

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


.roulette-player-user {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 10px;
}


.roulette-player-avatar {
    width: 36px;
    height: 36px;

    min-width: 36px;

    border-radius: 50%;

    object-fit: cover;

    border: 1px solid rgba(255, 255, 255, 0.12);

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


.roulette-player-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
    font-weight: 900;
}


.roulette-player-user > div {
    min-width: 0;
}


.roulette-player-user strong {
    display: block;

    overflow: hidden;

    color: #ffffff;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}


.roulette-player-user span {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: var(--roulette-muted);

    font-size: 8px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.roulette-player-bet,
.roulette-player-result {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 3px;
}


.roulette-player-bet span,
.roulette-player-result span {
    color: var(--roulette-muted);

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

    letter-spacing: 1px;

    text-transform: uppercase;
}


.roulette-player-bet strong,
.roulette-player-result strong {
    color: #ffffff;

    font-size: 10px;
    font-weight: 900;
}


.roulette-player-result.pending strong {
    color: rgba(255, 255, 255, 0.58);
}


.roulette-player-result.win strong {
    color: #4ade80;
}


.roulette-player-result.loss strong {
    color: #fb7185;
}


.roulette-player-result.push strong {
    color: #facc15;
}


.roulette-players-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 12px;

    border: 1px dashed rgba(255, 255, 255, 0.07);
    border-radius: 13px;

    color: var(--roulette-muted);

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

    text-align: center;
}


@media (max-width: 760px) {

    .roulette-player-row {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 10px;
    }


    .roulette-player-result {
        grid-column: 1 / -1;

        flex-direction: row;

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

        padding-top: 8px;

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


    .roulette-player-bet {
        min-width: 100px;
    }

}

/* =========================================================
   ROULETTE PLAYERS — 3 SOR + BELSŐ GÖRGETÉS
   ========================================================= */

.roulette-players-list {
    max-height: 190px;
    overflow-y: auto;

    padding-right: 4px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(168, 85, 247, 0.45)
        rgba(255, 255, 255, 0.035);
}


.roulette-players-list::-webkit-scrollbar {
    width: 5px;
}


.roulette-players-list::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, 0.025);

    border-radius: 999px;
}


.roulette-players-list::-webkit-scrollbar-thumb {
    background:
        rgba(168, 85, 247, 0.45);

    border-radius: 999px;
}


.roulette-players-list::-webkit-scrollbar-thumb:hover {
    background:
        rgba(168, 85, 247, 0.65);
}


/* =========================================================
   MIDNIGHT ROULETTE
   FINAL RESPONSIVE DEVICE LAYER

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

   TABLET / FOLD:
   Surface Duo
   Galaxy Z Fold 5
   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 RESPONSIVE SAFETY
   ========================================================= */

@media (max-width: 1280px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    .roulette-page {
        max-width: 100%;
        box-sizing: border-box;
    }


    .roulette-main,
    .roulette-stage,
    .roulette-controls,
    .roulette-series-panel,
    .roulette-bet-panel,
    .roulette-board-panel,
    .roulette-spin-panel,
    .roulette-history,
    .roulette-players-panel {
        min-width: 0;
        box-sizing: border-box;
    }


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

        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch;
    }


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

        overflow-y: auto !important;
    }

}


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

@media (max-width: 680px) {

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

    .roulette-page {
        width:
            calc(100% - 8px) !important;

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

        margin:
            0 auto !important;

        padding-bottom:
            calc(
                24px +
                env(safe-area-inset-bottom)
            ) !important;
    }


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

    .roulette-topbar {
        position:
            sticky !important;

        top:
            0 !important;

        width:
            100vw !important;

        height:
            auto !important;

        min-height:
            0 !important;

        margin-left:
            calc(50% - 50vw) !important;

        margin-right:
            calc(50% - 50vw) !important;

        padding:
            8px !important;

        display:
            grid !important;

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

        grid-template-rows:
            auto
            auto !important;

        align-items:
            center !important;

        column-gap:
            7px !important;

        row-gap:
            7px !important;

        overflow:
            visible !important;

        border-radius:
            0 !important;

        z-index:
            100 !important;
    }


    /* BRAND */

    .roulette-brand {
        grid-column:
            1 !important;

        grid-row:
            1 !important;

        min-width:
            0 !important;

        gap:
            8px !important;
    }


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

        height:
            37px !important;

        min-width:
            37px !important;

        flex:
            0 0 37px !important;

        border-radius:
            10px !important;

        font-size:
            19px !important;
    }


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

        letter-spacing:
            1.5px !important;

        white-space:
            nowrap !important;
    }


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

        font-size:
            5px !important;

        letter-spacing:
            2.3px !important;
    }


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

    .roulette-live {
        position:
            static !important;

        grid-column:
            2 !important;

        grid-row:
            1 !important;

        justify-self:
            end !important;

        left:
            auto !important;

        right:
            auto !important;

        top:
            auto !important;

        bottom:
            auto !important;

        margin:
            0 !important;

        transform:
            none !important;

        display:
            flex !important;

        padding:
            7px
            9px !important;

        gap:
            5px !important;

        font-size:
            5.5px !important;

        letter-spacing:
            .7px !important;

        white-space:
            nowrap !important;
    }


    .roulette-live span {
        width:
            5px !important;

        height:
            5px !important;

        min-width:
            5px !important;

        flex:
            0 0 5px !important;
    }


    /* =====================================================
       USER ROW
       AUDIO + BALANCE + CASINO
       ===================================================== */

    .roulette-user {
        grid-column:
            1 / -1 !important;

        grid-row:
            2 !important;

        width:
            100% !important;

        min-width:
            0 !important;

        display:
            flex !important;

        flex-direction:
            row !important;

        align-items:
            center !important;

        justify-content:
            space-between !important;

        gap:
            6px !important;

        padding-top:
            7px !important;

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


    /* AUDIO — ICON ONLY */

    .roulette-audio-control {
        position:
            relative !important;

        width:
            38px !important;

        min-width:
            38px !important;

        height:
            38px !important;

        flex:
            0 0 38px !important;

        padding:
            0 !important;

        margin:
            0 !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        gap:
            0 !important;

        overflow:
            hidden !important;
    }


    .roulette-audio-button {
        width:
            36px !important;

        height:
            36px !important;

        min-width:
            36px !important;

        flex:
            0 0 36px !important;
    }


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


    /* BALANCE */

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

        flex:
            1 1 auto !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            flex-start !important;

        gap:
            7px !important;

        overflow:
            hidden !important;
    }


    .roulette-token {
        width:
            29px !important;

        height:
            29px !important;

        min-width:
            29px !important;

        flex:
            0 0 29px !important;
    }


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

        letter-spacing:
            .65px !important;

        white-space:
            nowrap !important;
    }


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

        font-size:
            9px !important;

        white-space:
            nowrap !important;
    }


    /* BACK */

    .roulette-back {
        min-width:
            93px !important;

        min-height:
            38px !important;

        flex:
            0 0 93px !important;

        padding:
            0 7px !important;

        font-size:
            5.6px !important;

        letter-spacing:
            .35px !important;

        white-space:
            nowrap !important;
    }


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

    .roulette-main {
        padding:
            8px 0
            24px !important;
    }


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

    .roulette-stage {
        width:
            100% !important;

        min-height:
            0 !important;

        display:
            grid !important;

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

        gap:
            10px !important;

        padding:
            18px
            10px !important;

        border-radius:
            17px !important;

        overflow:
            hidden !important;
    }


    .roulette-wheel-area {
        width:
            100% !important;

        min-width:
            0 !important;

        padding:
            8px 0 !important;
    }


    /* WHEEL */

    .roulette-wheel-wrap {
        width:
            min(
                76vw,
                285px
            ) !important;

        height:
            min(
                76vw,
                285px
            ) !important;

        max-width:
            285px !important;

        max-height:
            285px !important;

        margin:
            0 auto !important;

        flex:
            0 0 auto !important;

        overflow:
            visible !important;
    }


    .roulette-wheel {
        width:
            calc(100% - 24px) !important;

        height:
            calc(100% - 24px) !important;

        max-width:
            none !important;

        max-height:
            none !important;

        border-width:
            7px !important;
    }


    .roulette-center-fixed {
        width:
            58% !important;

        height:
            58% !important;
    }


    .roulette-center-fixed span {
        font-size:
            7px !important;

        letter-spacing:
            1.7px !important;
    }


    .roulette-center-fixed strong {
        margin-top:
            6px !important;

        font-size:
            16px !important;

        letter-spacing:
            1.7px !important;
    }


    .roulette-pointer {
        top:
            3px !important;

        border-left-width:
            9px !important;

        border-right-width:
            9px !important;

        border-top-width:
            20px !important;
    }


    /* TIMER */

    .roulette-round-timer {
        min-width:
            0 !important;

        width:
            fit-content !important;

        max-width:
            100% !important;

        margin:
            12px auto
            0 !important;

        padding:
            8px
            11px !important;

        font-size:
            7px !important;
    }


    .roulette-round-timer strong {
        font-size:
            11px !important;
    }


    /* LAST */

    .roulette-last-result {
        margin-top:
            10px !important;
    }


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

    .roulette-side-panel {
        width:
            100% !important;

        padding:
            16px
            13px !important;

        border-radius:
            14px !important;
    }


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


    .roulette-side-panel h2 {
        margin-top:
            7px !important;

        font-size:
            22px !important;
    }


    .roulette-side-panel p {
        margin-top:
            8px !important;

        font-size:
            8px !important;

        line-height:
            1.55 !important;
    }


    .roulette-info-card {
        margin-top:
            7px !important;

        padding:
            10px !important;
    }


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


    .roulette-info-card strong {
        margin-top:
            4px !important;

        font-size:
            10px !important;

        overflow-wrap:
            anywhere;
    }


    /* =====================================================
       CONTROLS
       ===================================================== */

    .roulette-controls {
        width:
            100% !important;

        margin-top:
            9px !important;

        display:
            grid !important;

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

        gap:
            8px !important;

        overflow:
            visible !important;
    }


    .roulette-series-panel,
    .roulette-bet-panel,
    .roulette-board-panel,
    .roulette-spin-panel {
        width:
            100% !important;

        min-width:
            0 !important;

        grid-column:
            1 !important;

        padding:
            13px !important;

        border-radius:
            14px !important;
    }


    /* =====================================================
       SERIES
       ===================================================== */

    .roulette-series-list {
        grid-template-columns:
            1fr !important;

        gap:
            6px !important;

        margin-top:
            9px !important;
    }


    .roulette-series-button {
        padding:
            10px !important;
    }


    .roulette-series-button strong {
        font-size:
            8px !important;
    }


    .roulette-series-button span {
        margin-top:
            4px !important;

        font-size:
            6.5px !important;

        line-height:
            1.4 !important;
    }


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

    .roulette-bet-input {
        width:
            100% !important;

        min-height:
            47px !important;

        padding:
            0
            10px !important;
    }


    .roulette-bet-input input {
        min-width:
            0 !important;

        font-size:
            14px !important;
    }


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

        gap:
            5px !important;
    }


    .roulette-quick-bets button {
        min-width:
            0 !important;

        min-height:
            37px !important;

        font-size:
            7px !important;
    }


    /* =====================================================
       ROULETTE BOARD

       KEEP 12-COLUMN LOGIC SO SPLIT/CORNER BETS
       DO NOT BREAK
       ===================================================== */

    .roulette-board-panel {
        grid-template-columns:
            34px
            minmax(0, 1fr) !important;

        align-items:
            start !important;

        gap:
            4px !important;

        overflow:
            hidden !important;
    }


    .roulette-number.zero {
        width:
            34px !important;

        min-width:
            34px !important;

        height:
            117px !important;

        min-height:
            117px !important;

        font-size:
            8px !important;
    }


    .roulette-number-grid {
        width:
            100% !important;

        min-width:
            0 !important;

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

        grid-template-rows:
            repeat(
                3,
                37px
            ) !important;

        gap:
            2px !important;
    }


    .roulette-number {
        min-width:
            0 !important;

        min-height:
            37px !important;

        height:
            37px !important;

        border-radius:
            5px !important;

        padding:
            0 !important;

        font-size:
            clamp(
                6px,
                1.9vw,
                8px
            ) !important;
    }


    .roulette-outside-bets {
        grid-column:
            1 / -1 !important;

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

        gap:
            4px !important;

        margin-top:
            7px !important;
    }


    .roulette-bet-option {
        min-width:
            0 !important;

        min-height:
            38px !important;

        padding:
            4px !important;

        font-size:
            7px !important;

        white-space:
            normal !important;
    }


    /* BET CHIP */

    .roulette-number[data-bet-amount]::after,
    .roulette-bet-option[data-bet-amount]::after,
    .roulette-split-zone[data-bet-amount]::after,
    .roulette-inside-zone[data-bet-amount]::after,
    .roulette-zero-split-zone[data-bet-amount]::after,
    .roulette-zero-trio-zone[data-bet-amount]::after {
        min-width:
            20px !important;

        height:
            20px !important;

        padding:
            0 3px !important;

        border-width:
            1px !important;

        font-size:
            6px !important;
    }


    /* =====================================================
       MODE / SPIN
       ===================================================== */

    .roulette-mode-switch {
        width:
            100% !important;

        display:
            grid !important;

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

        gap:
            5px !important;
    }


    .roulette-mode-button {
        min-width:
            0 !important;

        min-height:
            40px !important;

        font-size:
            7px !important;
    }


    .roulette-spin-button {
        width:
            100% !important;

        min-height:
            48px !important;

        font-size:
            8px !important;
    }


    .roulette-clear-button {
        width:
            100% !important;

        min-height:
            40px !important;

        font-size:
            7px !important;
    }


    .roulette-spin-panel p {
        margin-top:
            10px !important;

        font-size:
            7px !important;
    }


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

    .roulette-history {
        width:
            100% !important;

        min-height:
            0 !important;

        margin-top:
            9px !important;

        padding:
            13px !important;

        display:
            flex !important;

        flex-direction:
            column !important;

        align-items:
            stretch !important;

        gap:
            9px !important;
    }


    .roulette-history-numbers {
        width:
            100% !important;

        justify-content:
            flex-start !important;

        gap:
            5px !important;
    }


    .history-number {
        width:
            29px !important;

        height:
            29px !important;

        font-size:
            8px !important;
    }


    /* =====================================================
       MULTIPLAYER PLAYERS
       ===================================================== */

    .roulette-players-panel {
        width:
            100% !important;

        margin-top:
            9px !important;

        padding:
            13px !important;

        border-radius:
            14px !important;
    }


    .roulette-player-row {
        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        gap:
            8px !important;
    }


    .roulette-player-result {
        grid-column:
            1 / -1 !important;

        flex-direction:
            row !important;

        align-items:
            center !important;

        justify-content:
            space-between !important;
    }


    .roulette-player-bet {
        min-width:
            70px !important;
    }


    /* MODAL */

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

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

        padding:
            21px
            16px !important;

        border-radius:
            18px !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
   GALAXY Z FOLD 5 / S8+ / IPHONE SE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

    .roulette-page {
        width:
            calc(100% - 5px) !important;
    }


    .roulette-topbar {
        padding:
            7px
            6px !important;
    }


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

        height:
            34px !important;

        min-width:
            34px !important;

        flex-basis:
            34px !important;
    }


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


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


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

        font-size:
            5px !important;
    }


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


    .roulette-audio-control {
        width:
            35px !important;

        min-width:
            35px !important;

        height:
            35px !important;

        flex-basis:
            35px !important;
    }


    .roulette-audio-button {
        width:
            33px !important;

        height:
            33px !important;

        min-width:
            33px !important;

        flex-basis:
            33px !important;
    }


    .roulette-token {
        width:
            27px !important;

        height:
            27px !important;

        min-width:
            27px !important;

        flex-basis:
            27px !important;
    }


    .roulette-balance span {
        font-size:
            4.4px !important;
    }


    .roulette-balance strong {
        font-size:
            8px !important;
    }


    .roulette-back {
        min-width:
            85px !important;

        flex-basis:
            85px !important;

        padding:
            0 5px !important;

        font-size:
            5px !important;
    }


    .roulette-wheel-wrap {
        width:
            245px !important;

        height:
            245px !important;
    }


    .roulette-board-panel {
        padding:
            9px 6px !important;

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

        gap:
            3px !important;
    }


    .roulette-number.zero {
        width:
            30px !important;

        min-width:
            30px !important;
    }


    .roulette-number-grid {
        gap:
            1.5px !important;
    }


    .roulette-number {
        font-size:
            6px !important;
    }

}


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

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

    .roulette-page {
        width:
            calc(100% - 18px) !important;

        margin:
            0 auto !important;
    }


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

    .roulette-topbar {
        position:
            sticky !important;

        top:
            0 !important;

        width:
            100vw !important;

        height:
            74px !important;

        min-height:
            74px !important;

        margin-left:
            calc(50% - 50vw) !important;

        margin-right:
            calc(50% - 50vw) !important;

        padding:
            0
            14px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            space-between !important;

        gap:
            8px !important;

        overflow:
            visible !important;

        border-radius:
            0 !important;
    }


    .roulette-brand {
        min-width:
            128px !important;

        flex:
            0 0 auto !important;

        gap:
            7px !important;
    }


    .roulette-brand-icon {
        width:
            36px !important;

        height:
            36px !important;

        min-width:
            36px !important;

        flex:
            0 0 36px !important;

        border-radius:
            10px !important;
    }


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

        letter-spacing:
            1.8px !important;
    }


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

        letter-spacing:
            2.3px !important;
    }


    /* TRUE CENTER LIVE */

    .roulette-live {
        position:
            absolute !important;

        left:
            50% !important;

        top:
            50% !important;

        right:
            auto !important;

        bottom:
            auto !important;

        margin:
            0 !important;

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

        display:
            flex !important;

        padding:
            7px
            9px !important;

        gap:
            5px !important;

        font-size:
            5.5px !important;

        letter-spacing:
            .7px !important;

        z-index:
            10 !important;
    }


    /* RIGHT SIDE */

    .roulette-user {
        width:
            auto !important;

        min-width:
            0 !important;

        margin-left:
            auto !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            flex-end !important;

        gap:
            5px !important;
    }


    .roulette-audio-control {
        width:
            86px !important;

        min-width:
            86px !important;

        height:
            38px !important;

        flex:
            0 0 86px !important;

        padding:
            0 6px !important;

        gap:
            5px !important;

        overflow:
            hidden !important;
    }


    .roulette-audio-button {
        width:
            25px !important;

        height:
            25px !important;

        min-width:
            25px !important;

        flex:
            0 0 25px !important;
    }


    .roulette-volume-slider {
        display:
            block !important;

        width:
            45px !important;

        min-width:
            45px !important;

        flex:
            0 0 45px !important;
    }


    .roulette-balance {
        min-width:
            94px !important;

        gap:
            6px !important;
    }


    .roulette-token {
        width:
            28px !important;

        height:
            28px !important;

        min-width:
            28px !important;

        flex:
            0 0 28px !important;
    }


    .roulette-balance span {
        font-size:
            4.5px !important;

        letter-spacing:
            .7px !important;
    }


    .roulette-balance strong {
        font-size:
            8.5px !important;

        white-space:
            nowrap !important;
    }


    .roulette-back {
        min-width:
            82px !important;

        min-height:
            37px !important;

        flex:
            0 0 82px !important;

        padding:
            0 7px !important;

        font-size:
            5.2px !important;
    }


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

    .roulette-main {
        padding:
            13px 0
            32px !important;
    }


    .roulette-stage {
        min-height:
            0 !important;

        grid-template-columns:
            1fr !important;

        gap:
            13px !important;

        padding:
            23px !important;
    }


    .roulette-wheel-wrap {
        width:
            330px !important;

        height:
            330px !important;
    }


    .roulette-wheel {
        width:
            300px !important;

        height:
            300px !important;
    }


    .roulette-center-fixed {
        width:
            205px !important;

        height:
            205px !important;
    }


    .roulette-side-panel {
        width:
            100% !important;

        padding:
            20px !important;
    }


    /* CONTROLS */

    .roulette-controls {
        grid-template-columns:
            1fr
            1fr !important;

        gap:
            10px !important;
    }


    .roulette-series-panel {
        grid-column:
            1 / -1 !important;
    }


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


    .roulette-board-panel {
        grid-column:
            1 / -1 !important;

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

        gap:
            6px !important;

        padding:
            16px !important;
    }


    .roulette-number.zero {
        width:
            42px !important;

        height:
            132px !important;

        min-height:
            132px !important;
    }


    .roulette-number-grid {
        min-width:
            0 !important;

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

        grid-template-rows:
            repeat(
                3,
                42px
            ) !important;

        gap:
            4px !important;
    }


    .roulette-number {
        min-width:
            0 !important;

        min-height:
            42px !important;

        height:
            42px !important;

        font-size:
            8px !important;
    }


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

        gap:
            5px !important;
    }


    .roulette-spin-panel,
    .roulette-bet-panel {
        min-height:
            0 !important;
    }


    .roulette-history {
        align-items:
            flex-start !important;
    }

}


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

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

    .roulette-page {
        width:
            calc(100% - 24px) !important;

        margin:
            0 auto !important;
    }


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

    .roulette-topbar {
        position:
            sticky !important;

        top:
            0 !important;

        width:
            100vw !important;

        height:
            76px !important;

        min-height:
            76px !important;

        margin-left:
            calc(50% - 50vw) !important;

        margin-right:
            calc(50% - 50vw) !important;

        padding:
            0 22px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            space-between !important;

        gap:
            14px !important;

        overflow:
            visible !important;

        border-radius:
            0 !important;
    }


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

        flex:
            0 0 auto !important;

        gap:
            10px !important;
    }


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

        height:
            40px !important;

        min-width:
            40px !important;

        flex:
            0 0 40px !important;
    }


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


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


    .roulette-live {
        position:
            absolute !important;

        left:
            50% !important;

        top:
            50% !important;

        right:
            auto !important;

        margin:
            0 !important;

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

        display:
            flex !important;

        z-index:
            10 !important;
    }


    .roulette-user {
        width:
            auto !important;

        min-width:
            0 !important;

        margin-left:
            auto !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            flex-end !important;

        gap:
            7px !important;
    }


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

        min-width:
            112px !important;

        height:
            40px !important;

        flex:
            0 0 112px !important;

        padding:
            0 8px !important;

        gap:
            7px !important;
    }


    .roulette-volume-slider {
        display:
            block !important;

        width:
            60px !important;

        min-width:
            60px !important;
    }


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

        gap:
            7px !important;
    }


    .roulette-token {
        width:
            31px !important;

        height:
            31px !important;

        min-width:
            31px !important;

        flex:
            0 0 31px !important;
    }


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


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

        white-space:
            nowrap !important;
    }


    .roulette-back {
        min-width:
            92px !important;

        min-height:
            39px !important;

        flex:
            0 0 92px !important;

        padding:
            0 9px !important;

        font-size:
            5.8px !important;
    }


    /* MAIN */

    .roulette-main {
        padding:
            14px 0
            34px !important;
    }


    .roulette-stage {
        grid-template-columns:
            1fr !important;

        gap:
            14px !important;

        padding:
            26px !important;
    }


    .roulette-wheel-wrap {
        width:
            350px !important;

        height:
            350px !important;
    }


    .roulette-wheel {
        width:
            320px !important;

        height:
            320px !important;
    }


    .roulette-center-fixed {
        width:
            220px !important;

        height:
            220px !important;
    }


    .roulette-controls {
        grid-template-columns:
            1fr
            1fr !important;

        gap:
            11px !important;
    }


    .roulette-series-panel,
    .roulette-board-panel {
        grid-column:
            1 / -1 !important;
    }


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


    .roulette-board-panel {
        grid-template-columns:
            45px
            minmax(0, 1fr) !important;
    }


    .roulette-number-grid {
        min-width:
            0 !important;

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

}


/* =========================================================
   SURFACE PRO 7
   901 — 960px
   COMPACT NAVBAR
   ========================================================= */

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

    .roulette-topbar {
        height:
            72px !important;

        min-height:
            72px !important;

        padding:
            0 14px !important;

        gap:
            8px !important;
    }


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

        gap:
            7px !important;
    }


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

        height:
            35px !important;

        min-width:
            35px !important;

        flex-basis:
            35px !important;
    }


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


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


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

        font-size:
            5.5px !important;
    }


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


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

        min-width:
            94px !important;

        flex-basis:
            94px !important;
    }


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

        min-width:
            43px !important;
    }


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


    .roulette-token {
        width:
            28px !important;

        height:
            28px !important;

        min-width:
            28px !important;

        flex-basis:
            28px !important;
    }


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


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


    .roulette-back {
        min-width:
            78px !important;

        flex-basis:
            78px !important;

        padding:
            0 6px !important;

        font-size:
            5.1px !important;
    }

}


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

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

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


    .roulette-topbar {
        height:
            68px !important;

        min-height:
            68px !important;

        padding:
            0 20px !important;
    }


    .roulette-main {
        padding-top:
            10px !important;
    }


    .roulette-stage {
        padding:
            20px !important;
    }


    .roulette-wheel-wrap {
        width:
            300px !important;

        height:
            300px !important;
    }


    .roulette-wheel {
        width:
            272px !important;

        height:
            272px !important;
    }


    .roulette-center-fixed {
        width:
            185px !important;

        height:
            185px !important;
    }

}


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

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

    .roulette-page {
        width:
            calc(100% - 28px) !important;

        max-width:
            1120px !important;

        margin:
            0 auto !important;
    }


    .roulette-topbar {
        position:
            sticky !important;

        top:
            0 !important;

        width:
            100vw !important;

        height:
            72px !important;

        min-height:
            72px !important;

        margin-left:
            calc(50% - 50vw) !important;

        margin-right:
            calc(50% - 50vw) !important;

        padding:
            0 24px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            space-between !important;

        gap:
            12px !important;

        overflow:
            visible !important;
    }


    .roulette-brand {
        min-width:
            165px !important;

        flex:
            0 0 auto !important;
    }


    .roulette-live {
        position:
            absolute !important;

        left:
            50% !important;

        top:
            50% !important;

        right:
            auto !important;

        margin:
            0 !important;

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

        display:
            flex !important;

        z-index:
            10 !important;
    }


    .roulette-user {
        width:
            auto !important;

        min-width:
            0 !important;

        margin-left:
            auto !important;

        display:
            flex !important;

        align-items:
            center !important;

        gap:
            8px !important;
    }


    .roulette-audio-control {
        width:
            118px !important;

        min-width:
            118px !important;

        height:
            40px !important;

        flex:
            0 0 118px !important;

        padding:
            0 8px !important;

        gap:
            7px !important;
    }


    .roulette-volume-slider {
        display:
            block !important;

        width:
            65px !important;

        min-width:
            65px !important;
    }


    .roulette-balance {
        min-width:
            125px !important;
    }


    .roulette-back {
        min-width:
            92px !important;

        min-height:
            38px !important;

        flex:
            0 0 92px !important;

        font-size:
            5.8px !important;
    }


    .roulette-main {
        padding:
            14px 0
            34px !important;
    }


    .roulette-stage {
        grid-template-columns:
            1fr !important;

        gap:
            14px !important;

        padding:
            26px !important;
    }


    .roulette-side-panel {
        width:
            100% !important;
    }


    .roulette-controls {
        grid-template-columns:
            .9fr
            1.1fr !important;

        gap:
            12px !important;
    }


    .roulette-series-panel,
    .roulette-board-panel {
        grid-column:
            1 / -1 !important;
    }


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


    .roulette-number-grid {
        min-width:
            0 !important;

        grid-template-columns:
            repeat(
                12,
                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;
    }


    .roulette-topbar {
        height:
            68px !important;

        min-height:
            68px !important;
    }


    .roulette-main {
        padding-top:
            10px !important;
    }


    .roulette-stage {
        padding:
            20px !important;
    }


    .roulette-wheel-wrap {
        width:
            320px !important;

        height:
            320px !important;
    }


    .roulette-wheel {
        width:
            290px !important;

        height:
            290px !important;
    }


    .roulette-center-fixed {
        width:
            195px !important;

        height:
            195px !important;
    }

}


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

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

    .roulette-back:hover,
    .roulette-spin-button:hover,
    .roulette-clear-button:hover,
    .roulette-mode-button:hover,
    .roulette-quick-bets button:hover,
    .roulette-series-button:hover,
    .roulette-number:hover,
    .roulette-bet-option:hover,
    #rouletteResultButton:hover {
        transform:
            none !important;
    }

}


/* =========================================================
   MIDNIGHT ROULETTE
   FINAL WHEEL NUMBERS + MOBILE BACK BUTTON FIX
   ========================================================= */


/* =========================================================
   WHEEL NUMBERS
   ALL RESPONSIVE DEVICES
   ========================================================= */

@media (max-width: 1280px) {

    .roulette-wheel-number {
        left:
            50% !important;

        top:
            50% !important;

        width:
            18px !important;

        height:
            18px !important;

        margin:
            0 !important;

        padding:
            0 !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        font-size:
            7px !important;

        font-weight:
            900 !important;

        line-height:
            1 !important;

        letter-spacing:
            0 !important;

        pointer-events:
            none !important;

        user-select:
            none !important;
    }


    .roulette-wheel-number.green {
        font-size:
            7.5px !important;
    }

}


/* =========================================================
   PHONES
   ========================================================= */

@media (max-width: 680px) {

    .roulette-wheel-number {
        width:
            16px !important;

        height:
            16px !important;

        font-size:
            6.5px !important;
    }


    .roulette-wheel-number.green {
        font-size:
            7px !important;
    }


    /* =====================================================
       BACK TO CASINO BUTTON
       ===================================================== */

    .roulette-back {
        position:
            static !important;

        width:
            105px !important;

        min-width:
            105px !important;

        max-width:
            105px !important;

        height:
            38px !important;

        min-height:
            38px !important;

        flex:
            0 0
            105px !important;

        align-self:
            center !important;

        margin:
            0 !important;

        padding:
            0
            7px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        transform:
            none !important;

        font-size:
            5.5px !important;

        font-weight:
            900 !important;

        line-height:
            1.15 !important;

        letter-spacing:
            .25px !important;

        text-align:
            center !important;

        white-space:
            normal !important;

        overflow:
            hidden !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
   Z FOLD 5 / GALAXY S8+ / IPHONE SE
   ========================================================= */

@media (max-width: 380px) {

    .roulette-wheel-number {
        width:
            15px !important;

        height:
            15px !important;

        font-size:
            6px !important;
    }


    .roulette-wheel-number.green {
        font-size:
            6.5px !important;
    }


    .roulette-back {
        width:
            94px !important;

        min-width:
            94px !important;

        max-width:
            94px !important;

        flex-basis:
            94px !important;

        padding:
            0
            5px !important;

        font-size:
            5px !important;
    }

}


/* =========================================================
   IPAD / SURFACE / FOLD / NEST HUB
   ========================================================= */

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

    .roulette-wheel-number {
        width:
            18px !important;

        height:
            18px !important;

        font-size:
            7px !important;
    }


    .roulette-wheel-number.green {
        font-size:
            7.5px !important;
    }

}
