{% load static %}
:root {
    --paddingSmall: 4px;
    --paddingMedium: 8px;
    --marginSmall: 4px;
    --headerHeight: 36px;
    --headerHeightDynamic: 40px;
    --resultHistoryHeight: 32px;
    --betControlsHeightRow: 184px;
    --betControlsHeightColumn: 292px;
    --betControlsHeight: 292px;
    --game-field-frame-color: #2a2b2e;
    --game-field-radius: 20px;
    --fun-mode-banner-height: 23px;
    --game-field-inner-top: 0px;
    --navigationSwitcherHeight: 32px;
    --totalWinWidgetHeight: 68px;
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --tab-active-background: #2C2D30;
    --glow-blur: 80px;
    --glow-width: 450px;
    --glow-height: 200px;
    --progress-bar-inner-height: 4px;
}

html {
    height: 100%;
    background: black;
    scrollbar-color: rgba(87, 96, 102, .5) #2c2d31 !important;
    scrollbar-width: thin !important;
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin: 0;
}

body {
    margin: 0;
    height: 100%;
    font-family: Inter, sans-serif;
    background: black;
    overflow: hidden;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

*, *:before, *:after {
    box-sizing: border-box;
}

.scroll-restyle {
    scrollbar-color: transparent transparent !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
}

.scroll-restyle::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
    background: transparent !important;
}

.scroll-restyle::-webkit-scrollbar-thumb {
    background: transparent !important;
    border-radius: 5px !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

#new-header {
    width: 100%;
    height: 40px;
    background-color: #1B1C1D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    margin: 0;
}

#game-container {
    width: 100%;
    height: calc(100vh - var(--headerHeight));
    position: absolute;
    top: var(--headerHeight);
    left: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    padding: 4px;
}

#logo {
    display: block;
    width: 72px;
    height: 100%;
    background: url(/static/img/logo.svg) no-repeat center center / contain;
    margin-left: 8px;
    flex-shrink: 0;
}

#right-container {
    display: flex;
    align-items: center;
    margin-right: 8px;
    gap: 8px;
}

.top-game-widget {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    background: #2C2D30;
    border-radius: 16px;
    padding: 2px;
}

.top-widget-btn {
    height: 24px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: #A3A3A3;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.top-widget-btn:hover {
    color: #fff;
    background: #3C3D40;
}

.top-widget-time {
    min-width: 84px;
    font-weight: 700;
    background: #3C3D40;
    color: #fff;
}

.top-widget-deposit {
    color: #fff;
    background: #3C3D40;
    font-weight: 700;
}

.top-widget-deposit:hover {
    background: #47484b;
}

.top-widget-deposit.top-widget-activate {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-width: 132px;
    padding: 0 14px;
    border: 1px solid rgba(96, 165, 250, 0.62);
    background: linear-gradient(135deg, #d98e12 0%, #f5b52e 58%, #e8a020 100%);
    color: #fff;
    font-weight: 800;
    box-shadow:
        0 6px 18px rgba(59, 130, 246, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    animation: top-widget-activate-pulse 5s ease-in-out infinite;
}

.top-widget-deposit.top-widget-activate::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -60%;
    left: -45%;
    width: 34%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
    transform: rotate(18deg);
    animation: top-widget-activate-shine 4.5s ease-in-out infinite;
}

.top-widget-deposit.top-widget-activate:hover {
    color: #fff;
    filter: brightness(1.1);
    background: linear-gradient(135deg, #d98e12 0%, #f5b52e 58%, #e8a020 100%);
}

@keyframes top-widget-activate-shine {
    0%, 62% { left: -45%; opacity: 0; }
    68% { opacity: 1; }
    84% { left: 125%; opacity: 0.9; }
    100% { left: 125%; opacity: 0; }
}

@keyframes top-widget-activate-pulse {
    0%, 86%, 100% { transform: scale(1); }
    91% { transform: scale(1.025); }
    96% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .top-widget-deposit.top-widget-activate,
    .top-widget-deposit.top-widget-activate::before {
        animation: none;
    }
}

.top-widget-signal-status {
    width: fit-content;
    max-width: 190px;
    font-weight: 700;
    border: 1px solid #a02b2b;
    background: #3c1f1f;
    color: #ffd9d9;
    justify-content: flex-start;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 0 auto;
}

.top-widget-signal-status--idle {
    border-color: #a02b2b;
    background: #3c1f1f;
    color: #ffd9d9;
}

.top-widget-signal-status--ready {
    border-color: #c9a21e;
    background: #4b3b14;
    color: #ffebad;
}

.top-widget-signal-status--active {
    border-color: #2c9d41;
    background: #1f4225;
    color: #c8ffd1;
}

.top-widget-room-group {
    display: inline-flex;
    border-radius: 14px;
    overflow: visible;
    border: none;
    background: transparent;
    gap: 2px;
}

.top-widget-room {
    min-width: 74px;
}

.top-widget-room.active {
    background: #3C3D40;
    color: #ffffff;
}

.top-widget-support {
    color: #2ad487;
    background: #20252a;
    border: 1px solid rgba(42, 212, 135, 0.45);
}

.top-widget-support:hover {
    background: #243029;
    color: #55f0a5;
}

@media (max-width: 1320px) {
    #right-container {
        max-width: calc(100% - 86px);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #right-container::-webkit-scrollbar {
        display: none;
    }

    .top-game-widget {
        display: flex;
        gap: 4px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    .top-widget-btn {
        height: 26px;
        padding: 0 10px;
        font-size: 12px;
        border-radius: 14px;
    }

    .top-widget-room {
        min-width: 74px;
        height: 26px;
    }

    .top-widget-time {
        min-width: 74px;
    }
}

#balance-amount {
    color: #28A900;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    margin-right: 4px;
}

#currency {
    color: #9B9C9E;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    margin-right: 4px;
}

#burger-menu {
    width: 24px;
    height: 24px;
    background-image: url('https://aviator-demo.spribegaming.com/burger.c6267b2d55596c34.svg');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

#header {
    display: none;
}

#last-counters-wrapper {
    position: absolute;
    left: calc(20% + 4px);
    top: 4px;
    right: 4px;
    width: 2668px;
    min-height: var(--resultHistoryHeight);
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start !important;
    padding-left: 0 !important;
    padding-top: 2px;
    padding-bottom: 2px;
    margin: 0;
    border-radius: 16px;
    z-index: 1000;
}

#last-counters {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start !important;
    padding-left: 0 !important;
    overflow: visible;
    white-space: normal;
    gap: 2px;
    transition: transform 1s ease;
}

#last-counters .last-counters-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-height: 18px;
}

#last-counters p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 32px;
    overflow: visible;
    transform: translateX(0);
    opacity: 1;
    transition: transform 1s ease, opacity 1s ease;
}

#last-counters p[style*="width: 40px"] {
    width: 40px !important;
}

#last-counters .last-counters-row {
    will-change: transform;
}

#last-counters .last-counters-row.history-animating {
    pointer-events: none;
}

#last-counters p.new-counter-pop {
    transform-origin: center center;
    animation: newCounterPop 2050ms cubic-bezier(0.19, 1, 0.22, 1);
}

#last-counters p.history-shift-item {
    animation: historyShiftIn 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes historyShiftIn {
    0% {
        transform: translateX(calc(-1 * var(--history-shift-distance, 28px)));
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes newCounterPop {
    0% {
        opacity: 0;
        transform: translateY(-1px) scale(1.58);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.show-more-btn {
    position: relative;
    width: 32px;
    height: 24px;
    background: #2C2D30;
    border: solid 6px #000000;
    border-radius: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 8px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 2001;
    pointer-events: auto;
}

.show-more-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.round-history-dropdown {
    position: absolute;
    top: 5px;
    right: 0;
    max-height: 300px;
    background: #1B1C1D;
    border-radius: 13px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.round-history-dropdown.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--paddingMedium);
    border-bottom: 1px solid #2C2D30;
}

.dropdown-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A3A3A3;
    text-align: center;
}

.dropdown-content {
    padding: var(--paddingMedium);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-grow: 1;
}

.dropdown-content .round-history-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.dropdown-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 32px;
}

/* Компактная полоска и Round History на мобильных / узких экранах */
@media (max-width: 1024px) {
    #last-counters .last-counters-row {
        gap: 3px;
    }

    #last-counters p {
        margin: 0 !important;
    }

    .dropdown-content {
        gap: 4px;
    }

    .dropdown-content .round-history-row {
        gap: 3px;
    }

    .dropdown-content .round-history-row--mobile-wrap {
        column-gap: 3px;
        row-gap: 4px;
    }

    .dropdown-content p {
        margin: 0 !important;
    }
}

#balance {
    text-transform: uppercase;
    color: #30fcbe;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
    display: none;
}

#counterWrapper {
    position: absolute;
    right: 4px;
    top: calc(var(--resultHistoryHeight) + 4px);
    width: 2138px;
    height: 1146px;
    overflow: hidden;
    border-radius: var(--game-field-radius);
    border: 1px solid var(--game-field-frame-color);
    box-sizing: border-box;
    z-index: 6;
}

#counterWrapper:has(#fun-mode-banner) {
    --game-field-inner-top: var(--fun-mode-banner-height);
}

#canvas {
    width: 100%;
    height: calc(100% - var(--game-field-inner-top));
    position: absolute;
    top: var(--game-field-inner-top);
    border: none;
    border-radius: 0;
    z-index: 100;
    overflow: hidden;
}

#fun-mode-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fun-mode-banner-height);
    background-color: #E59407CC;
    border-radius: var(--game-field-radius) var(--game-field-radius) 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    z-index: 7;
}

#counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: white;
    z-index: 999;
    display: none;
}

#counter-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 100px;
    background: #34B4FF;
    border-radius: 50%;
    filter: blur(var(--glow-blur));
    opacity: 0.6;
    z-index: 90;
    display: none;
    transition: background 0.5s ease;
}

#flew-away {
    position: absolute;
    top: calc(50% - 60px);
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 35px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: white;
    z-index: 999;
    display: none;
    text-align: center;
}

@media (max-width: 1024px) {
    #counterWrapper.crash-result-active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding-top: var(--game-field-inner-top, 0px);
        box-sizing: border-box;
    }

    #counterWrapper.crash-result-active #fun-mode-banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 8;
    }

    #counterWrapper.crash-result-active #flew-away {
        order: -1;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        font-size: clamp(22px, 5.5vw, 28px);
        line-height: 1.2;
        max-width: 92%;
        padding: 0 8px;
        box-sizing: border-box;
        text-align: center;
    }

    #counterWrapper.crash-result-active #counter {
        order: 0;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        font-size: clamp(48px, 14vw, 72px);
        line-height: 1;
    }

    #counterWrapper.crash-result-active #counter-glow {
        display: none;
    }

    #counterWrapper.crash-result-active .wrapper.ng-star-inserted {
        position: absolute;
        bottom: 8px;
        right: 8px;
    }

    #counterWrapper:not(.crash-result-active) #counter {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

#bottom-container {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 2138px;
    height: var(--betControlsHeight);
    background-color: #1B1C1D;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    z-index: 5;
    margin: 0;
}

/* По умолчанию — скрыты */
#bottom-container-left,
#bottom-container-right {
    display: none;
}

/* Активные */
#bottom-container-left.active,
#bottom-container-right.active {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1B1C1D;
    border-radius: 16px;
    z-index: 5;
}

#controle-content {
    width: 384px;
    height: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.bottom-navigation-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin-bottom: 28px;
}

#navigation-switcher {
    width: 208px;
    height: 32px;
    background: #141516;
    border-radius: 40px;
    border: solid 4px #141516;
    display: flex;
    position: relative;
    overflow: visible;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

#navigation-switcher .tab {
    width: 50%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #A3A3A3;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    transition: color 0.3s ease, background-color 0.3s ease;
}

#navigation-switcher .tab:hover:not(.active) {
    color: var(--danger);
}

#navigation-switcher .tab.active {
    color: #EBEBEB;
    background: var(--tab-active-background);
    cursor: default;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.round-plus-button {
    position: absolute;
    right: 0px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    border: solid 4px #141516;
    background: #2C2D30;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

#bet-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#bet-block-bet {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    justify-content: center;
}

.spinner {
    width: 140px;
    height: 32px;
    background: #141516;
    padding: 4px;
    border-radius: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity .1s;
    box-sizing: border-box;
}

.buttons {
    display: flex;
    align-items: center;
}

.minus, .plus {
    width: 24px;
    height: 24px;
    background: #2C2D30;
    border: none;
    border-radius: 50%;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.minus img.icon, .plus img.icon {
    width: 12px;
    height: 16px;
    object-fit: contain;
}

.plus {
    margin-left: -3px;
}

.input {
    width: 84px;
    height: 24px;
    margin: 0px;
}

#bet-input {
    width: 84px;
    height: 20px;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

#bet-input:focus {
    outline: none;
}

#bets-opt-list {
    width: 140px;
    height: 56px;
    display: grid;
    grid-template-columns: 68px 68px;
    grid-template-rows: 24px 24px;
    gap: 4px;
}

.bet-opt-btn {
    background: #141516;
    color: #FFFFFF80;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 13px;
}

.bet-opt-1, .bet-opt-5 {
    width: 68px;
    height: 24px;
    margin: 4px 0 0 0;
}

.bet-opt-2, .bet-opt-10 {
    width: 68px;
    height: 24px;
    margin: 4px 0 0 0;
}

#buttons-block {
    width: calc(100% - 148px);
    height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 0 2px 0;
    margin: 0 0 0 7px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #141516;
    border: none;
    overflow: hidden;
}

#button-bet {
    --bet-fill: #28a909;
    --bet-shell: #28a909;
    --bet-edge: #28a909;
    --bet-active-shell: #28a909;
    --bet-active-edge: #28a909;
    --bet-press-ring: rgba(20, 21, 22, 0.72);
    --bet-outline: rgba(225, 255, 219, 0.58);
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background: var(--bet-shell) !important;
    border: none !important;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 0 0 1px var(--bet-outline);
    transform: translateY(0);
    transition: filter 0.15s ease, transform 0.1s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.12s ease, height 0.12s ease, border-radius 0.12s ease,
        box-shadow 0.12s ease, background-color 0.15s ease;
}

#button-bet::before {
    display: none;
}

#button-bet::after {
    display: none;
}

#button-bet.active {
    background: var(--bet-shell) !important;
    border: none !important;
}

#button-bet.btn-state-cancel.active {
    background: var(--bet-shell) !important;
    border: none !important;
}

#button-bet.btn-state-bet {
    --bet-fill: #28a909;
    --bet-shell: #28a909;
    --bet-edge: #28a909;
    --bet-active-shell: #28a909;
    --bet-active-edge: #28a909;
    --bet-press-ring: rgba(20, 21, 22, 0.72);
    --bet-outline: rgba(225, 255, 219, 0.58);
    background: var(--bet-shell) !important;
    border: none !important;
}

#button-bet.btn-state-cashout {
    --bet-fill: #D07206;
    --bet-shell: #D07206;
    --bet-edge: #D07206;
    --bet-active-shell: #D07206;
    --bet-active-edge: #D07206;
    --bet-press-ring: rgba(20, 21, 22, 0.72);
    --bet-outline: rgba(255, 232, 198, 0.62);
    background: var(--bet-shell) !important;
    border: none !important;
}

#button-bet.btn-state-cancel {
    --bet-fill: #CB011A;
    --bet-shell: #CB011A;
    --bet-edge: #CB011A;
    --bet-active-shell: #CB011A;
    --bet-active-edge: #CB011A;
    --bet-press-ring: rgba(20, 21, 22, 0.72);
    --bet-outline: rgba(255, 205, 211, 0.62);
    background: var(--bet-shell) !important;
    border: none !important;
}

#button-bet:not(.action-pending):hover {
    filter: brightness(1.12);
}

#button-bet.action-pending-subtle {
    filter: brightness(0.96);
}

#button-bet:active,
#button-bet.is-pressed {
    margin: 0;
    background-color: var(--bet-active-shell) !important;
    background: var(--bet-active-shell) !important;
    border: none !important;
    padding: 0;
    border-radius: 16px;
    transform: translate3d(0, 3px, 0) !important;
    box-shadow: inset 0 0 0 3px var(--bet-press-ring),
        inset 0 0 0 4px rgba(255, 255, 255, 0.08) !important;
}

#button-bet:active::before,
#button-bet.is-pressed::before {
    display: none;
}

#button-bet:active::after,
#button-bet.is-pressed::after {
    display: none;
}

#bet-text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border-radius: inherit;
    position: relative;
    z-index: 2;
    transform: translate3d(0, 0, 0);
    transition: border-radius 0.12s ease,
        transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

#button-bet:active #bet-text,
#button-bet.is-pressed #bet-text {
    border-radius: inherit;
    transform: translate3d(0, 0, 0);
}

#bet-text .bet-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #FAFAFA;
    line-height: 26px;
}

#bet-text .bet-amount {
    display: flex;
    align-items: center;
}

#bet-text .bet-value {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #FAFAFA;
}

#bet-text .bet-currency {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #FAFAFA;
    margin-left: 4px;
}

#bet-text .waiting-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FAFAFA;
    margin: 2px 0 0 0;
}

#left-menu {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 20%;
    height: calc(100% - 12px);
    background-color: #1B1C1D;
    border-radius: 20px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    padding: var(--paddingMedium) var(--paddingMedium) 4px var(--paddingMedium);
    min-height: 0;
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

#left-menu::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

#left-menu::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 5px;
}

#left-menu .bets-block {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

#left-menu .navigation-switcher {
    width: 100%;
    height: var(--navigationSwitcherHeight);
    background: #141516;
    border-radius: 40px;
    border: solid 4px #141516;
    display: flex;
    position: relative;
    margin: var(--paddingMedium);
    overflow: hidden;
}

#left-menu .navigation-switcher .tab {
    width: 33.33%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #A3A3A3;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    transition: color 0.3s ease, background-color 0.3s ease;
}

#left-menu .navigation-switcher .tab:hover:not(.active) {
    color: var(--danger);
}

#left-menu .navigation-switcher .tab.active {
    color: #EBEBEB;
    background: var(--tab-active-background);
    cursor: default;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#left-menu .navigation-switcher .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tab-active-background);
    border-radius: 20px;
    z-index: -1;
    transition: background-color 0.3s ease;
}

#left-menu .data-list,
#left-menu .data-list-2,
#left-menu .data-list-3 {
    padding: 2px 2px 0 2px;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Карточки топа */
#left-menu .top-wins-list-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#left-menu .total-win-container {
    height: var(--totalWinWidgetHeight);
    width: 100%;
    background: #141516;
    border-radius: 13px;
    padding: var(--paddingMedium);
    margin-bottom: var(--paddingSmall);
}

#left-menu .total-win-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#left-menu .total-win-container .avatars {
    display: flex;
}

#left-menu .total-win-container .avatars .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: -8px;
    border: 1px solid #28A909;
}

#left-menu .total-win-container .avatars .avatar:first-child {
    margin-left: 0;
}

#left-menu .total-win-container .cashout-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #CCCCCC;
}

#left-menu .total-win-container .stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--paddingSmall);
}

#left-menu .total-win-container .stats .bets {
    display: flex;
    align-items: center;
}

#left-menu .total-win-container .stats .bets-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A3A3A3;
}

#left-menu .total-win-container .stats .bets-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A3A3A3;
    margin-left: var(--paddingSmall);
}

#left-menu .total-win-container .stats .total-win {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #7B7B7B;
}

#left-menu .total-win-container .progress {
    margin-top: 4px;
    background: #2B2B2B80;
    height: 8px;
    border-radius: 20px;
    width: 100%;
}

#left-menu .total-win-container .progress .progress-bar {
    background: var(--success);
    height: 4px;
    border-radius: 20px;
    width: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 2px;
}

#left-menu .bets-list {
    flex-grow: 1;
    overflow-y: hidden;
    margin: var(--paddingSmall) 0 0 0;
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#left-menu .data-list .bets-list,
#left-menu .data-list-2 .bets-list,
#left-menu .data-list-3 .bets-list {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
}

#left-menu .bets-list::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

#left-menu .bets-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 5px;
}

#left-menu .bets-list-header {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.95fr) minmax(0, 0.45fr) minmax(0, 0.95fr);
    column-gap: 8px;
    align-items: center;
    padding: 0 var(--paddingMedium);
    margin-bottom: var(--paddingSmall);
}

#left-menu .data-list-3 .bets-list-header {
    display: none !important;
}

#left-menu .bets-list-header-item {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A3A3A3;
    min-width: 0;
    text-align: center;
    white-space: normal;
}

#left-menu .bets-list-header-item.player {
    text-align: left;
    padding-left: 0;
}

#left-menu .bets-list-header-item.bet,
#left-menu .bets-list-header-item.x,
#left-menu .bets-list-header-item.win {
    text-align: center;
    white-space: nowrap;
}

#left-menu .bet-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.95fr) minmax(0, 0.45fr) minmax(0, 0.95fr);
    column-gap: 8px;
    align-items: center;
    background: #101112;
    border-radius: 30px;
    padding: var(--paddingSmall) var(--paddingMedium);
    margin-bottom: var(--paddingSmall);
    contain: layout style;
}

#left-menu .bet-list-item.cashout {
    background: linear-gradient(135deg, #1a3314 0%, #1f3d16 50%, #1a3314 100%);
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.12);
}

#left-menu .bet-list-item-column {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A3A3A3;
    min-width: 0;
}

#left-menu .bet-list-item-column.player {
    justify-content: flex-start;
}

#left-menu .bet-list-item-column .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: var(--paddingMedium);
}

#left-menu .bet-list-item-column .username {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A3A3A3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .top-widget-signal-status {
        width: fit-content;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 0 0 auto;
    }

    #left-menu .bets-list-header,
    #left-menu .bet-list-item {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.42fr) minmax(0, 0.9fr);
        column-gap: 6px;
    }

    #left-menu .bet-list-item-column .avatar {
        margin-right: 8px;
    }

    #left-menu .bets-list-header-item.player {
        padding-left: 0;
    }

}

#left-menu .previous-round-result {
    width: 100%;
    background: #141516;
    border-radius: 13px;
    height: 68px;
    padding: var(--paddingMedium);
    margin-bottom: var(--paddingSmall);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#left-menu .previous-round-result .result-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #BBBFC5;
    margin: 0 0 2px 0;
    width: 90px;
    text-align: center;
}

#left-menu .previous-round-result .result-multiplier {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    width: 70.2px;
    height: 29px;
    text-align: center;
}

.top-tab-switcher {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    margin: var(--paddingMedium);
    margin-top: var(--paddingMedium);
    border-radius: 16px;
    background: #141516;
    padding: 4px;
    box-sizing: border-box;
}

.top-tab-switcher-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.top-tab-switcher-row:last-child {
    margin-bottom: 0;
}

.top-tab-switcher__tab {
    flex: 1;
    height: 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #A3A3A3;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 20px;
}

.top-tab-switcher__tab:hover:not(.top-tab-switcher__tab--active) {
    color: var(--danger);
}

.top-tab-switcher__tab.top-tab-switcher__tab--active {
    color: #EBEBEB;
    background: var(--tab-active-background);
    cursor: default;
}

.top-wins-list-item {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 92px;
    flex-direction: column;
    margin-bottom: 4px;
    padding: 8px;
    border-radius: 16px;
    background: #101112;
    font-size: 12px;
    overflow: hidden;
}

.top-wins-list-item * {
    font-weight: 400 !important;
}

.top-wins-list-item-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.top-wins-list-item-row:first-child {
    flex: 0 0 auto;
    align-items: center;
    margin-bottom: 4px;
}

.top-wins-list-item-row:last-child {
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
}

.top-wins-list-item .column.bet-details {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.top-wins-list-item .bet-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 18px;
    margin: 0;
    gap: 4px;
}

.top-wins-list-item .bet-details-row .description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #A3A3A3;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 4px;
}

.top-wins-list-item .bet-details-row .value {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #A3A3A3;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

.top-wins-list-item .avatar {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover;
    border-radius: 50%;
}

.top-rounds-list-wrap,
.top-rounds-list-wrap.top-list {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.top-rounds-list-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 24px;
    column-gap: 6px;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 2px var(--paddingSmall);
    margin-bottom: 0;
}

.top-rounds-list-header-item {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A3A3A3;
    min-width: 0;
}

.top-rounds-list-header-item:first-child {
    text-align: left;
}

.top-rounds-list-header-item:nth-child(2) {
    text-align: center;
}

.top-rounds-list {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.top-rounds-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 24px;
    column-gap: 6px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 32px;
    margin-bottom: 2px;
    padding: 0 6px;
    border-radius: 12px;
    background: #101112;
    font-size: 12px;
}

.top-rounds-list-item-column.date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #A3A3A3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-rounds-list-item-column.x {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-rounds-list-item .fairness-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.top-rounds-list-item .fairness-btn .fairness-i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: url('/static/img/shield-icon.svg') no-repeat center center / contain;
    filter: brightness(0) invert(1);
}

#left-menu .data-list-3 .bets-list-content.top-rounds-mode {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 0 !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
    margin-top: 4px;
    padding: 0 4px;
}

#left-menu .bets-list-content {
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    flex: 1 1 auto;
    min-height: 0;
}

#left-menu .data-list .bets-list-content,
#left-menu .data-list-2 .bets-list-content,
#left-menu .data-list-3 .bets-list-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

#left-menu .bets-list-content::-webkit-scrollbar {
    width: 6px;
}
#left-menu .bets-list-content::-webkit-scrollbar-thumb {
    background: rgba(87, 96, 102, 0.5);
    border-radius: 3px;
}
#left-menu .bets-list-content::-webkit-scrollbar-thumb:hover {
    background: rgba(87, 96, 102, 0.8);
}

#left-menu .data-list .bets-list-footer,
#left-menu .data-list-2 .bets-list-footer,
#left-menu .data-list-3 .bets-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-height: 0;
    margin-top: auto;
    padding: 4px var(--paddingMedium);
    box-sizing: border-box;
    border-top: 1px solid rgba(163, 163, 163, 0.18);
    color: #8c9199;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}

#left-menu .data-list .bets-list-footer-left,
#left-menu .data-list-2 .bets-list-footer-left,
#left-menu .data-list-3 .bets-list-footer-left {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

#left-menu .bets-list-footer-left.pf-info-trigger {
    cursor: pointer;
    user-select: none;
}

#left-menu .bets-list-footer-left.pf-info-trigger:hover span {
    color: #c8c8c8;
}

#provably-fair-modal .info-link.pf-what-is-trigger {
    cursor: pointer;
}

#left-menu .data-list .bets-list-footer-right,
#left-menu .data-list-2 .bets-list-footer-right,
#left-menu .data-list-3 .bets-list-footer-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    white-space: nowrap;
}

#left-menu .data-list .bets-list-footer-shield,
#left-menu .data-list-2 .bets-list-footer-shield,
#left-menu .data-list-3 .bets-list-footer-shield {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    display: block;
    opacity: 1;
}

#left-menu .data-list .bets-list-footer-left span,
#left-menu .data-list-2 .bets-list-footer-left span,
#left-menu .data-list-3 .bets-list-footer-left span {
    font: 400 10px/1 'Inter', sans-serif;
    color: #a3a3a3;
}

#left-menu .data-list .bets-list-footer-right span,
#left-menu .data-list-2 .bets-list-footer-right span,
#left-menu .data-list-3 .bets-list-footer-right span {
    font: 400 10px/1 'Inter', sans-serif;
    color: #555555;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    line-height: 1;
}

#left-menu .data-list .bets-list-footer-right strong,
#left-menu .data-list-2 .bets-list-footer-right strong,
#left-menu .data-list-3 .bets-list-footer-right strong {
    font: 700 11px/1 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue Condensed Bold', sans-serif;
    letter-spacing: 0.01em;
    color: #9ea0a3;
    text-transform: uppercase;
}

.column.username-date {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    flex: 1;
}

.username {
    font-weight: 600;
    color: #fff;
}

.date {
    font-size: 10px;
    color: #A3A3A3;
}

.buttons-group {
    display: flex;
    gap: 8px;
    margin-right: 0;
}

.top-wins-list-item .buttons-group {
    flex: 0 0 auto;
    gap: 6px;
}

.top-wins-list-item .buttons-group .btn {
    width: 32px;
    height: 32px;
}

.top-wins-list-item .buttons-group .btn.disabled-on-game-focused {
    opacity: 1;
}

.top-wins-list-item .buttons-group .icon {
    width: 32px;
    height: 32px;
    background-color: #A3A3A3;
    background-image: none;
    mask-size: 32px 32px;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-size: 32px 32px;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    filter: none;
}

.top-wins-list-item .buttons-group .share-i {
    mask-image: url('/static/img/message-icon.svg');
    -webkit-mask-image: url('/static/img/message-icon.svg');
}

.top-wins-list-item .buttons-group .fairness-i {
    mask-image: url('/static/img/shield-icon.svg');
    -webkit-mask-image: url('/static/img/shield-icon.svg');
}

.btn {
    width: 32px;
    height: 32px;
    background: #2C2D30;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.btn.disabled-on-game-focused {
    opacity: 0.5;
}

.icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.share-i {
    background-image: url('/static/img/icon-share-i.svg');
}

.fairness-i {
    background-image: url('/static/img/icon-fairness-i.svg');
}

.top-wins-list-item .icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-position: center;
}

.divider {
    width: 100%;
    height: 1px;
    background: #141516;
    margin: 8px 0;
}

.second-row {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    height: auto;
    min-height: 24px;
    color: #ccc;
}

.auto-bet-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.auto-bet {
    display: flex;
    align-items: center;
}

.auto-bet-switcher,
.cashout-switcher {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 6px;
}

.cashout-block {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 6px;
}

.auto-bet-switcher label,
.cashout-switcher label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

.input-switch {
    width: 36px;
    height: 24px;
    background: #141516;
    border-radius: 32px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.input-switch.off {
    background: #141516;
}

.input-switch.off .oval {
    left: 2px;
    background: #2C2D30;
}

.input-switch.on .oval {
    left: 18px;
    background: #A3A3A3;
}

.input-switch .oval {
    width: 16px;
    height: 16px;
    background: #2C2D30;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 2px;
    transition: left 0.3s ease, background 0.3s ease;
}

.cashout-spinner-wrapper {
    display: flex;
    align-items: center;
}

.cashout-spinner {
    width: 80px;
    height: 24px;
    background: #141516;
    padding: 4px;
    border-radius: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cashout-spinner .spinner.small {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cashout-spinner .input.full-width {
    width: 80px;
    height: 24px;
}

.cashout-spinner .input.full-width input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    text-align: center;
}

.cashout-spinner .input.full-width input:focus {
    outline: none;
}

.cashout-spinner .input.full-width input:disabled {
    color: #ccc;
    font-size: 12px;
    text-align: center;
    cursor: not-allowed;
}

.cashout-spinner .icon-x {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1);
}

.cashout-spinner .icon-x.disabled {
    filter: brightness(0.5);
}

.cashout-spinner.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cashout-spinner.disabled input {
    background: #141516 !important;
    color: #6c757d !important;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 28px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: var(--marginSmall);
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: var(--dark);
    border-radius: 8px;
    color: var(--white);
    padding: var(--paddingMedium);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--paddingMedium);
    border-bottom: 1px solid #2c2d30;
    background: #2C2D30
}

.modal-header span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.modal-header .close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: var(--paddingMedium);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
}

.content-part {
    display: flex;
    align-items: center;
    margin-bottom: var(--marginSmall);
}

.content-part-1 {
    flex-direction: column;
    align-items: flex-start;
}

.content-part-1 span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--marginSmall);
}

.rounds-wrap {
    display: flex;
    gap: var(--marginSmall);
}

.rounds-amount {
    width: 60px;
    height: 32px;
    background: #2c2d30;
    border: none;
    border-radius: 16px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rounds-amount.active {
    background: var(--success);
}

.rounds-amount:hover:not(.active) {
    background: var(--danger);
}

.content-part .title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #ccc;
}

.content-part .title.disabled {
    color: #6c757d;
}

.content-part .spinner.big {
    width: 100px;
    height: 32px;
    background: #141516;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 var(--paddingSmall);
}

.content-part .spinner.big .input {
    flex: 1;
}

.content-part .spinner.big input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.content-part .spinner.big input:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.content-part .spinner.big .buttons button {
    width: 24px;
    height: 24px;
    background: #2c2d30;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.content-part .spinner.big .buttons button.ui-state-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.content-part .spinner.big .buttons button::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
}

.content-part .spinner.big .buttons .minus::before {
    background-image: url('/static/img/minus.svg');
}

.content-part .spinner.big .buttons .plus::before {
    background-image: url('/static/img/plus.svg');
}

.content-part .ml-1 {
    margin-left: var(--marginSmall);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: var(--paddingMedium);
    border-top: 1px solid #2c2d30;
}

.btns-wrapper {
    display: flex;
    gap: var(--marginSmall);
}

.btn.btn-sm.btn-warning {
    width: 80px;
    height: 32px;
    background: var(--warning);
    border: none;
    border-radius: 16px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.btn.btn-lg.btn-success {
    width: 100px;
    height: 40px;
    background: var(--success);
    border: none;
    border-radius: 16px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.wrapper.ng-star-inserted {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 100px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 0 4px;
    background-color: #29292980;
    border-radius: 30px;
    box-sizing: border-box;
    z-index: 10;
}

.wrapper.ng-star-inserted .avatars {
    display: flex;
}

.wrapper.ng-star-inserted .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: -8px;
    border: 1px solid #28A909;
    object-fit: cover;
}

.wrapper.ng-star-inserted .avatar:first-child {
    margin-left: 0;
}

.wrapper.ng-star-inserted .player-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 18px;
}
/* Модал настроек */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 2001;
    overflow: auto;
}

.settings-dialog {
    width: 320px;
    height: 530px;
    margin: 40px 8px 0 0;
    pointer-events: auto;
}

.settings-content {
    background: #2c2d30;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.settings-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

/* Верхняя часть */
.user .first-block {
    background: #2C2D30;
    padding: 8px 0;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.user-info .avatar.avatar--with-badge {
    position: relative;
    overflow: visible;
}

.user-info .avatar img:not(.avatar-verified-badge) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info .avatar img.avatar-verified-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    border-radius: 0;
    pointer-events: none;
    z-index: 2;
}

.user-info .name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.avatar-change {
    width: 95px;
    height: 42px;
    background: #252528;
    border: 1px solid #414148;
    border-radius: 21px;
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    margin-right: 8px;
}

.avatar-logo {
    width: 20px;
    height: 20px;
    background: url('/static/img/avatar-logo.svg') no-repeat center;
    background-size: contain;
    margin-right: 4px;
}

.change-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #83878e;
    display: inline;
}

/* Средняя часть */
.second-block {
    flex-grow: 1;
    padding: 0;
    overflow-y: auto;
}

.list-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

.list-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-radius: 0;
    margin: 0 0 1px 0;
    background: #1b1c1d;
    cursor: pointer;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
}

.title {
    display: flex;
    align-items: center;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 4px;
}

.sound-icon {
    background: url('/static/img/sound-icon.svg') no-repeat center;
    background-size: contain;
    width: 15px !important;
    height: 16px !important;
}

.music-icon {
    background: url('/static/img/music-icon.svg') no-repeat center;
    background-size: contain;
    width: 16px !important;
    height: 18px !important;
}

.animation-icon {
    background: url('/static/img/animation-icon.svg') no-repeat center;
    background-size: contain;
    width: 18px !important;
    height: 16px !important;
}

.star-icon {
    background: url('/static/img/star-icon.svg') no-repeat center;
    background-size: contain;
    width: 16px !important;
    height: 15px !important;
}

.history-icon {
    background: url('/static/img/history-icon.svg') no-repeat center;
    background-size: contain;
    width: 16px !important;
    height: 15px !important;
}

.limits-icon {
    background: url('/static/img/limits-icon.svg') no-repeat center;
    background-size: contain;
    width: 16px !important;
    height: 10px !important;
}

.help-icon {
    background: url('/static/img/help-icon.svg') no-repeat center;
    background-size: contain;
    width: 16px !important;
    height: 16px !important;
}

.rule-icon {
    background: url('/static/img/rule-icon.svg') no-repeat center;
    background-size: contain;
    width: 16px !important;
    height: 15px !important;
}

.fair-icon {
    background: url('/static/img/pf.0c5beb8137f06e6d.svg') no-repeat center;
    background-size: contain;
    width: 13px !important;
    height: 16px !important;
}

.multi-server-icon {
    background: url('/static/img/multi-server-icon.svg') no-repeat center;
    background-size: contain;
    width: 19px !important;
    height: 20px !important;
}

.title-text, .title-text-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.pb-3 {
    padding-bottom: 20px;
}

/* Нижняя часть */
.logout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #2c2d30;
    border-top: 1px solid #2C2D30;
    text-decoration: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.home-icon {
    width: 16px;
    height: 14px;
    background: url('/static/img/home-icon.svg') no-repeat center;
    background-size: contain;
    margin-right: 8px;
}

/*---------------Modal Free Bets---------------*/

#free-bets-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 2002;
}

#free-bets-modal .modal-dialog {
    width: 500px;
    margin-top: 28px;
    pointer-events: none;
}

#free-bets-modal .modal-content {
    width: 100%;
    pointer-events: auto;
    background: #1b1c1d;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#free-bets-modal .modal-header {
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px 0 15px;
    border-bottom: 1px solid #2c2d30;
    background: #2C2D30;
}

#free-bets-modal .modal-header span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
}

#free-bets-modal .modal-header .close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#free-bets-modal .modal-body {
    height: 282px;
    padding: 24px 11px 0 11px;
    display: flex;
    flex-direction: column;
}

#free-bets-modal .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#free-bets-modal .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

/* Block "Play with cash" */
#free-bets-modal .free-bet-item {
    width: 100%;
}

#free-bets-modal .item-wrapper {
    width: 100%;
}

#free-bets-modal .rounded-block {
    background: #141516;
    border-radius: 8px;
    padding: var(--paddingMedium);
}

#free-bets-modal .cash-block.selected {
    background: none;
    border: solid 1px #38ca07;
}

#free-bets-modal .main-row {
    display: flex;
    align-items: center;
}

#free-bets-modal .radio {
    width: 16px;
    height: 16px;
    border: 1px solid #38ca07;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
}

#free-bets-modal .radio .dot {
    width: 8px;
    height: 8px;
    background: #38ca07;
    border-radius: 50%;
}

#free-bets-modal .cash-block__text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #fff;
    font-weight: 400;
}

/* Heder "ACTIVE FREE BETS" */
#free-bets-modal .free-bets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    padding-left: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #fff;
    font-weight: 400;
}

#free-bets-modal .archive-btn {
    display: flex;
    align-items: center;
    background: #252528;
    border: 0.5px solid #b8b8b7;
    border-radius: 8px;
    padding: 0 8px 0 4px;
    cursor: pointer;
}

#free-bets-modal .history-i {
    width: 16px;
    height: 16px;
    background: url('/static/img/history-icon.svg') no-repeat center;
    background-size: contain;
    margin-right: 4px;
}

/* Block "No Active Free Bets" */
#free-bets-modal .content__none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 30px 0;
}

#free-bets-modal .free-bet-image {
    width: 100px;
    height: 100px;
    background: url('/static/img/free-bet-image.svg') no-repeat center;
    background-size: contain;
    margin-bottom: 8px;
}

#free-bets-modal .none-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #A3A3A3;
    text-align: center;
}

@media (max-width: 768px) {
    #free-bets-modal {
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.86);
        box-sizing: border-box;
        height: 100dvh;
        overflow-y: auto;
        padding: 0 8px 8px;
        z-index: 5010;
    }

    #free-bets-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 56px 0 0;
    }

    #free-bets-modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 64px);
        overflow: hidden;
        background: #1b1c1d;
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
    }

    #free-bets-modal .modal-header {
        height: 40px;
        padding: 0 8px 0 12px;
        background: #2c2d30;
    }

    #free-bets-modal .modal-header span {
        font-size: 13px;
        line-height: 1.2;
    }

    #free-bets-modal .modal-header .close {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 22px;
        line-height: 1;
    }

    #free-bets-modal .modal-body,
    #free-bets-modal .content-wrapper,
    #free-bets-modal .content {
        background: #1b1c1d;
    }

    #free-bets-modal .modal-body {
        height: auto;
        min-height: 280px;
        max-height: calc(100dvh - 104px);
        padding: 12px 10px 14px;
        overflow-y: auto;
    }

    #free-bets-modal .cash-block.selected {
        background: #101112;
    }

    #free-bets-modal .rounded-block {
        padding: 8px;
    }

    #free-bets-modal .free-bets-header {
        padding-left: 0;
        font-size: 13px;
    }

    #free-bets-modal .archive-btn {
        min-height: 24px;
        padding: 0 8px 0 5px;
    }

    #free-bets-modal .content__none {
        min-height: 170px;
        padding: 20px 0;
    }

    #free-bets-modal .free-bet-image {
        width: 82px;
        height: 82px;
    }

    #free-bets-modal .none-text {
        font-size: 13px;
    }
}

/*---------------Modal My bet history---------------*/

#my-history-modal {
    z-index: 5000 !important;
    background: rgba(0, 0, 0, 0.72) !important;
}

#my-history-modal .modal-dialog {
    width: 620px;
    margin-top: 28px;
    pointer-events: none;
}

#my-history-modal .modal-content {
    width: 100%;
    pointer-events: auto;
    background: #1b1c1d !important;
    border-radius: 10px;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#my-history-modal .modal-header {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px 0 16px;
    border-bottom: none;
    background: #2c2d30 !important;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#my-history-modal .modal-header span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #FFFFFF;
}

#my-history-modal .modal-header .close {
    background: none;
    border: none;
    color: #8a8a8a;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    opacity: 1;
    padding: 0;
    text-shadow: none;
}

#my-history-modal .modal-header .close span {
    display: inline-block;
    color: #8a8a8a;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

#my-history-modal .modal-body {
    background: #1b1c1d !important;
    padding: 8px 4px 12px;
    max-height: 520px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#my-history-modal .content-wrapper,
#my-history-modal .content {
    background: #1b1c1d !important;
}

#my-history-modal .bets-history-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #1b1c1d !important;
}

#my-history-modal .bets-history-header {
    display: flex;
    align-items: center;
    padding: 2px 8px 10px 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #6b6d71;
    margin-bottom: 0;
    background: #1b1c1d !important;
}

#my-history-modal .bets-history-header .col-date {
    flex: 0 0 26%;
    text-align: left;
}

#my-history-modal .bets-history-header .col-bet-label {
    flex: 0 0 auto;
    margin-left: 10%;
    text-align: left;
    white-space: nowrap;
}

#my-history-modal .bets-history-header .col-x-label {
    flex: 0 0 auto;
    padding-left: 8px;
    text-align: left;
    white-space: nowrap;
}

#my-history-modal .bets-history-header .col-cashout {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    padding-right: 10px;
    white-space: nowrap;
}

#my-history-modal .bets-history-table.is-empty .bets-history-content {
    min-height: 0;
}

#my-history-modal .bets-history-content {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 360px;
    padding-right: 2px;
    background: #1b1c1d !important;
}

#my-history-modal .bets-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    border-bottom: 1px solid #1f2229;
    border-radius: 7px;
}

#my-history-modal .bets-history-item.bets-history-item--win {
    box-shadow: none;
    background: rgba(38, 111, 0, 0.42);
    border: 1px solid #34910f;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 12px;
}

#my-history-modal .bets-history-item:last-child {
    border-bottom: none;
}

#my-history-modal .bets-history-item span {
    flex: 1;
    text-align: center;
}

#my-history-modal .bets-history-item .col-date {
    text-align: left;
    color: #a6acb8;
    font-size: 12px;
    line-height: 1.2;
    min-width: 104px;
}

#my-history-modal .bets-history-item .col-bet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-right: 24px;
    margin-right: 18px;
}

#my-history-modal .bets-history-item .col-bet .bet-amount {
    color: #e9edf7;
    min-width: 52px;
    text-align: right;
}

#my-history-modal .bets-history-item .col-bet .bet-x-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px !important;
    height: 18px !important;
    padding: 0 6px !important;
    border-radius: 999px;
    background: #051b34;
    font-weight: 700;
    font-size: 12px;
}

#my-history-modal .bets-history-item .col-bet .bet-x-pill.is-blue {
    color: #34b4ff;
}

#my-history-modal .bets-history-item .col-bet .bet-x-pill.is-purple {
    color: #913ef8;
}

#my-history-modal .bets-history-item .col-bet .bet-x-pill.is-pink {
    color: #ff2ccf;
}

#my-history-modal .bets-history-item .col-cashout {
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-left: 24px;
    padding-right: 0;
    margin-right: -8px;
}

#my-history-modal .bets-history-item .col-cashout .cashout-amount {
    display: inline-block;
    flex: 0 0 auto;
}

#my-history-modal .bets-history-item .col-cashout .tools {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    pointer-events: none;
    user-select: none;
}

#my-history-modal .bets-history-item .col-cashout .tools .fairness-i,
#my-history-modal .bets-history-item .col-cashout .tools .share-i {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
    pointer-events: none;
    margin: 0;
}

#my-history-modal .bets-history-item .col-cashout .tools .fairness-i {
    background-image: url('/static/img/icon-fairness-i.svg');
    filter: brightness(0) saturate(100%) invert(46%) sepia(94%) saturate(1257%) hue-rotate(66deg) brightness(98%) contrast(95%);
}

#my-history-modal .bets-history-item .col-cashout .tools .share-i {
    margin-left: -9px;
}


#my-history-modal .bets-history-footer {
    margin-top: 10px;
    display: none;
    justify-content: center;
}

#my-history-modal .bets-history-load-more {
    min-width: 146px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #313642;
    background: linear-gradient(180deg, #2a303b 0%, #1d222b 100%);
    color: #a8aeb9;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
    padding: 0 24px;
    cursor: pointer;
    opacity: 0.96;
    white-space: nowrap;
}

#my-history-modal .bets-history-load-more:disabled {
    cursor: default;
    opacity: 0.6;
}

@media (max-width: 768px) {
    #my-history-modal {
        top: 0;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 8px;
        z-index: 5000;
        background: rgba(0, 0, 0, 0.72);
    }

    #my-history-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0;
        align-self: stretch;
    }

    #my-history-modal .modal-content {
        background: #1b1c1d;
        border-radius: 12px;
        max-height: calc(100vh - 16px);
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
    }

    #my-history-modal .modal-header {
        height: 40px;
        padding: 0 6px 0 12px;
        background: #2c2d30;
    }

    #my-history-modal .modal-header span {
        font-size: 12px;
    }

    #my-history-modal .modal-header .close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        font-weight: 400;
    }

    #my-history-modal .modal-header .close span {
        font-size: 20px;
        font-weight: 400;
    }

    #my-history-modal .modal-body {
        background: #1b1c1d;
        padding: 8px 4px 12px;
        max-height: calc(100vh - 120px);
    }

    #my-history-modal .content-wrapper,
    #my-history-modal .content,
    #my-history-modal .bets-history-table,
    #my-history-modal .bets-history-header,
    #my-history-modal .bets-history-content {
        background: #1b1c1d;
    }

    #my-history-modal .bets-history-header {
        padding: 2px 6px 8px 2px;
        font-size: 11px;
        color: #6b6d71;
    }

    #my-history-modal .bets-history-header .col-cashout {
        padding-right: 8px;
    }

    #my-history-modal .bets-history-content {
        max-height: calc(100vh - 250px);
        padding-right: 0;
    }

    #my-history-modal .bets-history-item {
        padding: 6px;
        font-size: 12px;
        border-radius: 10px;
    }

    #my-history-modal .bets-history-item .col-date {
        min-width: 86px;
        font-size: 11px;
    }

    #my-history-modal .bets-history-item .col-bet {
        gap: 6px;
    }

    #my-history-modal .bets-history-item .col-bet .bet-amount {
        min-width: 40px;
    }

    #my-history-modal .bets-history-item .col-bet .bet-x-pill {
        min-width: 36px !important;
        height: 18px !important;
        font-size: 11px;
        padding: 0 5px !important;
    }

    #my-history-modal .bets-history-item .col-cashout {
        font-size: 12px;
    }


    #my-history-modal .bets-history-footer {
        margin-top: 8px;
    }

    #my-history-modal .bets-history-load-more {
        min-width: 128px;
        height: 38px;
        font-size: 14px;
        padding: 0 16px;
    }
}

/*---------------Modal Game Limits---------------*/

#game-limits-modal .modal-dialog {
    width: 500px;
    margin-top: 28px;
    pointer-events: none;
}

#game-limits-modal .modal-content {
    width: 100%;
    pointer-events: auto;
    background: #1b1c1d;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#game-limits-modal .modal-header {
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 15px;
    border-bottom: 1px solid #2c2d30;
    background: #2C2D30;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#game-limits-modal .modal-header span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
}

#game-limits-modal .modal-header .close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#game-limits-modal .modal-body {
    padding: 30px 16px;
}

#game-limits-modal .list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #FFFFFF1a;
    border-radius: 8px;
    overflow: hidden;
}

#game-limits-modal .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid #FFFFFF1a;
    padding: 8px 5px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #fff;
}

#game-limits-modal .list-group-item:last-child {
    border-bottom: none;
}

#game-limits-modal .list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#game-limits-modal .list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#game-limits-modal .list-group-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#game-limits-modal .list-group-item > div span:first-child {
    font-weight: 400;
    color: #fff;
}

#game-limits-modal .list-group-item > div span:last-child {
    font-size: 12px;
    color: #A3A3A3;
    margin-left: 4px;
}

#game-limits-modal .badge {
    background-color: #123405;
    border: 1px solid #427f00;
    color: #fff;
    font-weight: 400;
    border-radius: 10px;
    padding: 2px 15px;
    font-size: 14px;
}

@media (max-width: 768px) {
    #game-limits-modal {
        top: 0;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.86);
        box-sizing: border-box;
        height: 100dvh;
        overflow-y: auto;
        padding: 0 8px 8px;
        z-index: 5010;
    }

    #game-limits-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 56px 0 0;
    }

    #game-limits-modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 64px);
        overflow: hidden;
        background: #1b1c1d;
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
    }

    #game-limits-modal .modal-header {
        height: 40px;
        padding: 0 8px 0 12px;
        background: #2c2d30;
    }

    #game-limits-modal .modal-header span {
        font-size: 13px;
        line-height: 1.2;
    }

    #game-limits-modal .modal-header .close {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 22px;
        line-height: 1;
    }

    #game-limits-modal .modal-body {
        background: #1b1c1d;
        padding: 16px 10px 18px;
    }

    #game-limits-modal .list-group {
        background: #1b1c1d;
    }

    #game-limits-modal .list-group-item {
        gap: 12px;
        min-height: 40px;
        padding: 8px 6px;
        font-size: 13px;
    }

    #game-limits-modal .badge {
        flex: 0 0 auto;
        min-width: 72px;
        padding: 2px 10px;
        text-align: center;
        font-size: 13px;
    }
}

/*---------------Modal How to play---------------*/

#how-to-play-modal .modal-dialog {
    width: 800px;
    max-width: 800px;
    height: 730px;
    margin: 28px auto 0;
    padding: 0 !important;
    pointer-events: none;
}

#how-to-play-modal .modal-content {
    width: 100%;
    height: 100%;
    background: #F5A623;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#how-to-play-modal .modal-header,
#how-to-play-modal .modal-footer {
    width: 100%;
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0;
}

#how-to-play-modal .modal-header {
    background: #E69308;
    color: #965419 !important;
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#how-to-play-modal .modal-footer {
    background: #E69308;
    height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: none;
}

/* Тело — с внутренними отступами */
#how-to-play-modal .modal-body {
    flex: 1;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

#how-to-play-modal .youtube {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
}

/* Остальные стили (видео, шаги, кнопка) — без изменений */
#how-to-play-modal .embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
}

#how-to-play-modal .embed-responsive::before {
    display: block;
    content: "";
    padding-top: 50%;
}

#how-to-play-modal .embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0px;
}

#how-to-play-modal .step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

#how-to-play-modal .bullet {
    width: 40px;
    height: 40px;
    background: #E69308;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#how-to-play-modal .step p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #5F3816;
    line-height: 1.5;
    flex: 1;
}

#how-to-play-modal .modal-footer .btn-link {
    color: #5F3816;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

#how-to-play-modal .step-icon {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

#how-to-play-modal .step-icon img {
    width: 40px;
    height: 40px;
    order: 2;
}

#how-to-play-modal .step-number {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #5F3816;
    margin: 0;
    order: 1;
}

@media (max-width: 768px) {
    #how-to-play-modal {
        top: 0;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.86);
        box-sizing: border-box;
        height: 100dvh;
        overflow-y: auto;
        padding: 0 8px 8px;
        z-index: 5010;
    }

    #how-to-play-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 56px 0 0;
        padding: 0 !important;
    }

    #how-to-play-modal .modal-content {
        width: 100%;
        height: auto;
        max-height: calc(100dvh - 64px);
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
    }

    #how-to-play-modal .modal-header {
        height: 40px;
        padding: 0 8px 0 12px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    #how-to-play-modal .modal-header span {
        font-size: 13px;
        line-height: 1.2;
    }

    #how-to-play-modal .modal-header .close {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 22px;
        line-height: 1;
    }

    #how-to-play-modal .modal-body {
        flex: 0 1 auto;
        max-height: calc(100dvh - 151px);
        overflow-y: auto;
        gap: 18px;
        padding: 0 16px 22px;
    }

    #how-to-play-modal .youtube {
        width: calc(100% + 32px);
        margin: 0 -16px 2px;
    }

    #how-to-play-modal .embed-responsive::before {
        padding-top: 56.25%;
    }

    #how-to-play-modal .step {
        gap: 12px;
    }

    #how-to-play-modal .step-icon {
        min-width: 66px;
    }

    #how-to-play-modal .step-icon img {
        width: 36px;
        height: 36px;
    }

    #how-to-play-modal .step-number {
        font-size: 14px;
    }

    #how-to-play-modal .step p {
        font-size: 15px;
        line-height: 1.45;
    }

    #how-to-play-modal .modal-footer {
        height: 40px;
        padding: 0 12px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    #how-to-play-modal .modal-footer .btn-link {
        font-size: 13px;
    }
}

/*---------------Модалка Game rules в настройках---------------*/

#game-rules-modal .modal-dialog {
    width: 1140px;
    height: 2870px;
    max-width: none;
    margin: 28px auto 0;
    pointer-events: none;
}

#game-rules-modal .modal-content {
    background: #1B1C1D;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

#game-rules-modal .modal-header {
    background: #2C2D30;
    border-bottom: 1px solid #2C2D30;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#game-rules-modal .modal-body {
    padding: 16px 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    box-sizing: border-box;
}

#game-rules-modal .text-grey {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

#game-rules-modal .modal-body > .link {
    display: inline-block;
    margin-top: 8px;
}

#game-rules-modal .link {
    color: #FF0000;
    text-decoration: none;
    font-size: 14px;
}

#game-rules-modal .section-title {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
}

#game-rules-modal .steps-subtitle {
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: left;
}

#game-rules-modal .youtube {
    margin: 16px -24px;
    width: calc(100% + 48px);
}

#game-rules-modal .embed-responsive::before {
    padding-top: 56.25%;
}

#game-rules-modal .embed-responsive-item {
    border-radius: 0;
}

#game-rules-modal .youtube {
    margin: 16px 0;
    width: 1116px;
    height: 628px;
}

#game-rules-modal .video-wrapper {
    position: relative;
    width: 1116px;
    height: 628px;
}

#game-rules-modal .embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}
/* Steps 1-2-3 — Spribe original: 320px columns, equal grid gap */
#game-rules-modal .steps-row,
#game-rules-modal .steps-container {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    justify-content: center;
    align-items: start;
    gap: 32px;
    width: 100%;
    margin: 16px 0 0;
    padding: 0 32px;
    box-sizing: border-box;
}

#game-rules-modal .step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 320px;
    max-width: 320px;
    min-width: 0;
}

#game-rules-modal .step-bg-img {
    width: 100%;
    height: 170px;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: none;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#game-rules-modal .step-bg-img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: contain;
    object-position: center center;
    vertical-align: top;
}

#game-rules-modal .step-number {
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: left;
    margin: 0 0 8px;
    line-height: 1;
}

#game-rules-modal .step-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

#game-rules-modal .step-text.pt-2 {
    padding-top: 8px;
}

#game-rules-modal .step-text span {
    color: #FF0000;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

#game-rules-modal .step-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* h6 margins come from .mt-* / .mb-* / .pt-* (see game-rules-modal.css) */

#game-rules-modal .steps-wrapper {
    margin: 0;
    padding: 0;
}

#game-rules-modal .steps-subtitle.pl-2 {
    padding-left: 8px;
}

#game-rules-modal .steps-subtitle.pt-5 {
    padding-top: 48px;
}

#game-rules-modal .steps-row.steps-container {
    margin-bottom: 0;
}

#game-rules-modal .rules-list {
    margin: 0;
    padding: 0;
}

#game-rules-modal .rules-list-title {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 12px;
}

#game-rules-modal .rules-list.pt-3 .rules-list-title {
    font-weight: 400;
}

/* rules list bullets: see game-rules-modal.css (.rules-bullet-list / .rules-bullet-item) */

#game-rules-modal .rules-pf-icon {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

/* Bootstrap spacing (original Aviator rules modal) */
#game-rules-modal .mt-3 { margin-top: 16px; }
#game-rules-modal .mt-4 { margin-top: 24px; }
#game-rules-modal .mt-5 { margin-top: 48px; }
#game-rules-modal .mb-2 { margin-bottom: 8px; }
#game-rules-modal .pt-2 { padding-top: 8px; }
#game-rules-modal .pt-3 { padding-top: 16px; }
#game-rules-modal .pl-2 { padding-left: 8px; }
#game-rules-modal .pt-5 { padding-top: 48px; }

#game-rules-modal .steps-wrapper > p.mt-3.text-grey {
    margin-top: 16px;
    margin-bottom: 24px;
}

#game-rules-modal .steps-wrapper > .rules-list.pt-3 {
    padding-top: 24px;
}

/* GAME FUNCTIONS — tight gap to first subsection */
#game-rules-modal .section-title.game-functions-heading,
#game-rules-modal h6.game-functions-heading {
    margin: 32px 0 0;
}

#game-rules-modal h6.game-functions-heading {
    margin-bottom: 4px !important;
}

#game-rules-modal .game-functions-heading + .rules-list.pt-2,
#game-rules-modal .rules-list.game-functions-first-list {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

#game-rules-modal .rules-list.pt-2 + .rules-list.pt-2 {
    margin-top: 0;
    padding-top: 16px;
}

@media (max-width: 768px) {
    #game-rules-modal {
        top: 0;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.86);
        box-sizing: border-box;
        height: 100dvh;
        overflow-y: auto;
        padding: 0 8px 8px;
        z-index: 5010;
    }

    #game-rules-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 56px 0 0;
    }

    #game-rules-modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 64px);
        overflow: hidden;
        border-radius: 10px;
        background: #1b1c1d;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
    }

    #game-rules-modal .modal-header {
        height: 40px;
        padding: 0 8px 0 12px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    #game-rules-modal .modal-header span {
        font-size: 13px;
        line-height: 1.2;
    }

    #game-rules-modal .modal-header .close {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 22px;
        line-height: 1;
    }

    #game-rules-modal .modal-body {
        max-height: calc(100dvh - 104px);
        padding: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #1b1c1d;
    }

    #game-rules-modal .text-grey {
        margin: 0 0 10px;
        font-size: 13px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    #game-rules-modal .link {
        display: inline-block;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    #game-rules-modal .section-title:not(.game-functions-heading) {
        margin: 18px 0 10px;
        font-size: 14px;
    }

    #game-rules-modal .section-title.game-functions-heading,
    #game-rules-modal h6.game-functions-heading {
        margin: 32px 0 0;
    }

    #game-rules-modal .youtube {
        width: 100%;
        height: auto;
        margin: 12px 0;
    }

    #game-rules-modal .video-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #242526;
    }

    #game-rules-modal .embed-responsive-item {
        width: 100%;
        height: 100%;
    }

    #game-rules-modal .steps-subtitle {
        margin: 12px 0 0;
        padding: 0;
        font-size: 14px;
    }

    #game-rules-modal .steps-row,
    #game-rules-modal .steps-container {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 18px;
        margin: 18px 0 0;
        padding: 0 16px;
    }

    #game-rules-modal .step {
        width: 100%;
        max-width: 100%;
    }

    #game-rules-modal .step-bg-img {
        width: 100%;
        height: auto;
        aspect-ratio: 264 / 140;
    }

    #game-rules-modal .step-bg-img img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    #game-rules-modal .step-number {
        margin: 0 0 8px;
        font-size: 20px;
    }

    #game-rules-modal .step-text {
        font-size: 13px;
        line-height: 1.45;
    }

    #game-rules-modal .step-icon {
        width: 36px;
        height: 36px;
    }
}

/* ============================================= */
/*         PROVABLY FAIR SETTINGS MODAL          */
/* ============================================= */

/* === МОДАЛЬНОЕ ОКНО: Общие размеры === */
#provably-fair-modal .modal-dialog {
    width: 800px;
    max-width: 800px;
    margin: 28px auto 0;
    pointer-events: none;
}

#provably-fair-modal .modal-content {
    background: #1B1C1D;
    padding: 0;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    overflow: hidden;
}

/* === ХЕДЕР: Заголовок + кнопка закрытия === */
#provably-fair-modal .modal-header {
    height: 36px;
    background: #2C2D30;
    border-bottom: 1px solid #2C2D30;
    border-radius: 8px 8px 0 0;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

#provably-fair-modal .modal-header span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* === КОНТЕНТ: Основная область === */
#provably-fair-modal .modal-body {
    padding: 20px 20px 0 20px;
    flex: 1;
}

/* === БЛОК 1: Информационный текст + ссылка === */
#provably-fair-modal .pf-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#provably-fair-modal .main-text {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #868B8D;
    line-height: 1.4;
    max-width: 593px;
    flex-shrink: 0;
}

#provably-fair-modal .info-link {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #e30c32;
    white-space: nowrap;
    flex-shrink: 0;
}

#provably-fair-modal .question-icon {
    width: 16px;
    height: 16px;
}

/* === РАЗДЕЛИТЕЛЬ: Полноширинная линия === */
.pf-divider {
    margin: 20px -20px;
    width: calc(100% + 40px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-sizing: border-box;
}

/* === ЗАГОЛОВКИ СЕКЦИЙ: Универсальный стиль === */
.pf-section-header {
    margin-bottom: 12px;
}

.pf-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.pf-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #A3A3A3;
    line-height: 1.4;
    margin: 0;
    padding: 0 40px;
}

/* === БЛОК CLIENT SEED: Одна строка === */
/* === CLIENT SEED: Одна строка, центрировано, компактно === */
.client-seed-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0 15px;
    background-color: #0707084d;
    border-radius: 16px;
    margin: 16px 100px 10px 55px;
    flex-wrap: nowrap;
    width: 85%;
    box-sizing: border-box;
}

.client-seed-type:not(.active) {
    background-color: #141516;
}

/* Радио + текст */
.seed-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.client-seed-type .radio {
    width: 16px;
    height: 16px;
    border: 1px solid #38ca07;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-seed-type .radio .dot {
    width: 8px;
    height: 8px;
    background: #38ca07;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.client-seed-type.active .radio .dot {
    opacity: 1;
}

.option-text {
    white-space: nowrap;
}

/* === КОНТЕЙНЕР КЛЮЧА: Компактный, чёрный, в одну строку === */
.client-seed-type .key-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 380px;
    width: 100%;
    margin-top: 0;
    padding: 2px 23px 1px 20px;
    background-color: #000;
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.client-seed-type .key {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #fff;
    word-break: break-all;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-seed-type .key .current {
    color: #A3A3A3;
    margin-right: 4px;
    flex-shrink: 0;
}

.copy-icon {
    width: 16px;
    height: 16px;
    background: url('/static/img/copy-icon.svg') no-repeat center;
    background-size: contain;
    cursor: pointer;
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.copy-icon:hover {
    opacity: 1;
}

/* Кнопка Change — только для manual */
.btn-change {
    width: 80px;
    height: 32px;
    background: #28a909;
    border: 1px solid #b2f2a3;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
}

.btn-change:hover {
    background: #34B4FF;
    border-color: #34B4FF;
}

/* === БЛОК 3: SERVER SEED === */
.server-seed-block {
    margin-top: 16px;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
}

.server-seed-value-block .key-container {
    background: #000;
    padding: 12px 20px;
    margin: 0 89px 20px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.server-seed-value-block .key {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    word-break: break-all;
}

/* === ИКОНКИ === */
.client-icon {
    width: 32px;
    height: 25px;
    background: url('/static/img/client-seed-icon.svg') no-repeat center;
    background-size: contain;
    display: inline-block;
}

.server-icon {
    width: 32px;
    height: 31px;
    background: url('/static/img/server-seed-icon.svg') no-repeat center;
    background-size: contain;
    display: inline-block;
}

/* === СКРЫТИЕ СТАРЫХ ЗАГОЛОВКОВ (если остались в блоках) === */
.client-seed-block .client-seed-title,
.server-seed-block .server-seed-title {
    display: none;
}

/* === ФУТЕР: Нижняя подпись === */
#provably-fair-modal .modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #868B8D;
    text-align: center;
    border-top: 1px solid #2C2D30;
    background: #2C2D30;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

@media (max-width: 768px) {
    #provably-fair-modal {
        top: 0;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.86);
        box-sizing: border-box;
        height: 100dvh;
        overflow-y: auto;
        padding: 0 8px 8px;
        z-index: 5010;
    }

    #provably-fair-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 56px 0 0;
    }

    #provably-fair-modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 64px);
        overflow: hidden;
        background: #1b1c1d;
        border-radius: 10px !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
    }

    #provably-fair-modal .modal-header,
    #what-is-provably-fair-modal .modal-header {
        height: 40px;
        padding: 0 8px 0 12px;
        border-radius: 10px 10px 0 0;
    }

    #provably-fair-modal .modal-header span,
    #what-is-provably-fair-modal .modal-header .text-uppercase {
        font-size: 13px;
        line-height: 1.2;
    }

    #provably-fair-modal .modal-header .close {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 22px;
        line-height: 1;
    }

    #provably-fair-modal .modal-body {
        max-height: calc(100dvh - 144px);
        padding: 14px 12px 0;
        overflow-x: hidden;
        overflow-y: auto;
        background: #1b1c1d;
    }

    #provably-fair-modal .pf-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #provably-fair-modal .main-text {
        max-width: none;
        width: 100%;
        flex-shrink: 1;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    #provably-fair-modal .info-link {
        white-space: normal;
        font-size: 13px;
    }

    #provably-fair-modal .pf-divider {
        width: calc(100% + 24px);
        margin: 16px -12px;
    }

    #provably-fair-modal .pf-section-header {
        margin-bottom: 10px;
    }

    #provably-fair-modal .pf-section-title {
        font-size: 13px;
    }

    #provably-fair-modal .pf-section-subtitle {
        padding: 0;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    #provably-fair-modal .client-seed-type {
        width: 100%;
        margin: 10px 0;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-radius: 12px;
    }

    #provably-fair-modal .seed-option {
        white-space: normal;
        font-size: 13px;
    }

    #provably-fair-modal .option-text {
        white-space: normal;
    }

    #provably-fair-modal .client-seed-type .key-container {
        max-width: none;
        width: 100%;
        padding: 10px 12px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    #provably-fair-modal .client-seed-type .key {
        min-width: 0;
        font-size: 12px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }

    #provably-fair-modal .client-seed-type .key p {
        margin: 0;
    }

    #provably-fair-modal .btn-change {
        width: 100%;
        height: 34px;
        margin: 0;
    }

    #provably-fair-modal .server-seed-block {
        margin-top: 10px;
    }

    #provably-fair-modal .server-seed-value-block .key-container {
        width: 100%;
        margin: 0 0 16px;
        padding: 10px 12px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    #provably-fair-modal .server-seed-value-block .key {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    #provably-fair-modal .modal-footer {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 12px;
        line-height: 1.35;
        border-radius: 0 0 10px 10px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #free-bets-modal,
    #game-limits-modal,
    #how-to-play-modal,
    #game-rules-modal,
    #provably-fair-modal {
        top: 0;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.78);
        box-sizing: border-box;
        height: 100dvh;
        overflow-y: auto;
        padding: 28px 20px;
        z-index: 5010;
    }

    #free-bets-modal .modal-dialog,
    #game-limits-modal .modal-dialog,
    #how-to-play-modal .modal-dialog,
    #game-rules-modal .modal-dialog,
    #provably-fair-modal .modal-dialog {
        width: 100%;
        max-width: min(760px, calc(100vw - 40px));
        height: auto;
        margin: 0 auto;
    }

    #free-bets-modal .modal-content,
    #game-limits-modal .modal-content,
    #how-to-play-modal .modal-content,
    #game-rules-modal .modal-content,
    #provably-fair-modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 56px);
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
    }

    #free-bets-modal .modal-header,
    #game-limits-modal .modal-header,
    #how-to-play-modal .modal-header,
    #game-rules-modal .modal-header,
    #provably-fair-modal .modal-header,
    #what-is-provably-fair-modal .modal-header {
        height: 40px;
        padding: 0 12px 0 16px;
    }

    #free-bets-modal .modal-header span,
    #game-limits-modal .modal-header span,
    #how-to-play-modal .modal-header span,
    #game-rules-modal .modal-header span,
    #provably-fair-modal .modal-header span,
    #what-is-provably-fair-modal .modal-header .text-uppercase {
        font-size: 14px;
        line-height: 1.2;
    }

    #free-bets-modal .modal-header .close,
    #game-limits-modal .modal-header .close,
    #how-to-play-modal .modal-header .close,
    #game-rules-modal .modal-header .close,
    #provably-fair-modal .modal-header .close {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 22px;
        line-height: 1;
    }

    #free-bets-modal .modal-body,
    #game-limits-modal .modal-body,
    #how-to-play-modal .modal-body,
    #game-rules-modal .modal-body,
    #provably-fair-modal .modal-body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    #free-bets-modal .modal-body {
        height: auto;
        min-height: 260px;
        max-height: calc(100dvh - 96px);
        padding: 16px 14px;
        background: #1b1c1d;
    }

    #game-limits-modal .modal-body {
        padding: 20px 16px;
        background: #1b1c1d;
    }

    #game-limits-modal .list-group-item {
        gap: 14px;
        min-height: 42px;
        font-size: 14px;
    }

    #how-to-play-modal .modal-dialog {
        max-width: min(920px, calc(100vw - 40px));
    }

    #how-to-play-modal .modal-body {
        max-height: calc(100dvh - 136px);
        gap: 16px;
        padding: 0 20px 18px;
    }

    #how-to-play-modal .youtube {
        width: calc(100% + 40px);
        margin: 0 -20px 2px;
    }

    #how-to-play-modal .embed-responsive::before {
        padding-top: 42%;
    }

    #how-to-play-modal .step {
        gap: 12px;
    }

    #how-to-play-modal .step p {
        font-size: 15px;
        line-height: 1.4;
    }

    #how-to-play-modal .modal-footer {
        height: 40px;
    }

    #game-rules-modal .modal-dialog {
        max-width: min(920px, calc(100vw - 40px));
    }

    #game-rules-modal .modal-body {
        max-height: calc(100dvh - 96px);
        padding: 16px;
        background: #1b1c1d;
    }

    #game-rules-modal .text-grey,
    #game-rules-modal .link {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    #game-rules-modal .section-title:not(.game-functions-heading) {
        margin: 18px 0 10px;
        font-size: 14px;
    }

    #game-rules-modal .section-title.game-functions-heading,
    #game-rules-modal h6.game-functions-heading {
        margin: 32px 0 0;
    }

    #game-rules-modal .youtube,
    #game-rules-modal .video-wrapper {
        width: 100%;
        height: auto;
        margin: 12px 0;
    }

    #game-rules-modal .video-wrapper {
        aspect-ratio: 16 / 9;
        background: #242526;
    }

    #game-rules-modal .steps-subtitle {
        margin: 12px 0 0;
        padding: 0;
        font-size: 14px;
    }

    #game-rules-modal .steps-row,
    #game-rules-modal .steps-container {
        display: grid;
        grid-template-columns: repeat(3, 320px);
        justify-content: center;
        gap: 32px;
        margin: 16px 0 0;
        padding: 0 32px;
    }

    #game-rules-modal .step-number {
        font-size: 24px;
    }

    #game-rules-modal .step-text {
        font-size: 14px;
        line-height: 1.5;
    }

    #provably-fair-modal .modal-dialog {
        max-width: min(920px, calc(100vw - 40px));
    }

    #provably-fair-modal .modal-body {
        max-height: calc(100dvh - 136px);
        padding: 16px 16px 0;
        background: #1b1c1d;
    }

    #provably-fair-modal .pf-info-row {
        gap: 16px;
    }

    #provably-fair-modal .main-text {
        max-width: 58%;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    #provably-fair-modal .info-link,
    #provably-fair-modal .pf-section-subtitle {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    #provably-fair-modal .pf-section-subtitle {
        padding: 0 12px 0 40px;
    }

    #provably-fair-modal .client-seed-type {
        width: 100%;
        margin: 12px 0;
        padding: 10px 12px;
        gap: 10px;
    }

    #provably-fair-modal .seed-option {
        min-width: 150px;
        white-space: normal;
        font-size: 13px;
    }

    #provably-fair-modal .option-text {
        white-space: normal;
    }

    #provably-fair-modal .client-seed-type .key-container {
        min-width: 0;
        max-width: none;
        padding: 8px 12px;
    }

    #provably-fair-modal .client-seed-type .key {
        min-width: 0;
        font-size: 12px;
        white-space: nowrap;
    }

    #provably-fair-modal .server-seed-value-block .key-container {
        width: 100%;
        margin: 0 0 16px;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    #provably-fair-modal .server-seed-value-block .key {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    #provably-fair-modal .modal-footer {
        min-height: 40px;
        padding: 8px 16px;
        font-size: 12px;
        line-height: 1.35;
    }
}

/* ============================================= */
/*         WHAT IS PROVABLY FAIR MODAL           */
/*         (Spribe original styling)             */
/* ============================================= */

/* Spribe: fixed dim backdrop + scrollable modal window on top */
#what-is-provably-fair-modal.modal {
    --color-modal-body: #2d3c27;
    --what-is-pf-green: #62c13b;
    --what-is-pf-text: #b8beb4;
    --what-is-pf-text-muted: #9ea59a;
    position: fixed;
    inset: 0;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    box-sizing: border-box;
    z-index: 5010;
}

#what-is-provably-fair-modal .what-is-pf-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

#what-is-provably-fair-modal .what-is-pf-scroll {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8px;
    box-sizing: border-box;
}

#what-is-provably-fair-modal .what-is-pf-scroll .modal-dialog {
    display: block;
    width: min(1200px, calc(100% - 16px));
    max-width: 1200px;
    height: auto;
    max-height: none;
    margin: 0 auto;
    pointer-events: none;
    flex-shrink: 0;
}

#what-is-provably-fair-modal .modal-content.what-is-pf-content {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    pointer-events: auto;
    outline: 0;
    color: #fff;
    background: #2d3c27;
    border: 0;
    border-radius: 8px;
    overflow: visible;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
}

#what-is-provably-fair-modal .modal-header {
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 15px;
    background: #2c2d30;
    border-bottom: 1px solid #2c2d30;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

#what-is-provably-fair-modal .text-uppercase {
    text-transform: uppercase;
}

#what-is-provably-fair-modal .text-center {
    text-align: center;
}

#what-is-provably-fair-modal .modal-header .text-uppercase {
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.02em;
}

#what-is-provably-fair-modal .modal-header .close {
    width: auto;
    min-width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #97a4ae;
    text-shadow: 0 1px 0 #97a4ae;
    text-transform: none;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

#what-is-provably-fair-modal .modal-header .close span {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-shadow: inherit;
}

#what-is-provably-fair-modal .modal-header .close:hover,
#what-is-provably-fair-modal .modal-header .close:focus {
    color: #97a4ae;
    text-shadow: 0 1px 0 #97a4ae;
    opacity: 1;
}

#what-is-provably-fair-modal .modal-body {
    padding: 12px 14px 14px;
    margin: 0;
    overflow: visible;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    background-color: #2d3c27;
    text-align: left;
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#what-is-provably-fair-modal .modal-bottom-radius {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#what-is-provably-fair-modal .d-flex {
    display: flex;
}

#what-is-provably-fair-modal .justify-content-center {
    justify-content: center;
}

#what-is-provably-fair-modal .mb-1 {
    margin-bottom: 8px;
}

/* Spribe Provably Fair logo: div.fairness-i + background SVG 80×90 */
#what-is-provably-fair-modal .modal-body .d-flex.justify-content-center.mb-1 > .fairness-i {
    display: block;
    width: 80px;
    height: 90px;
    min-width: 80px;
    min-height: 90px;
    flex-shrink: 0;
    background: url('/static/img/icon-provabyfair.svg') no-repeat center center / contain;
    background-image: url('/static/img/icon-provabyfair.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

#what-is-provably-fair-modal .what-is-pf-tagline {
    text-align: center;
    margin: 12px 0 20px;
}

#what-is-provably-fair-modal .what-is-pf-tagline span {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
}

#what-is-provably-fair-modal .top-text.description {
    margin: 0 0 24px;
    padding: 20px;
    background: #1b2418;
    border-radius: 8px;
    color: #999;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

#what-is-provably-fair-modal .top-text.description span {
    display: block;
}

#what-is-provably-fair-modal .modal-body .text-center.text-uppercase {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin: 20px 0 12px;
    letter-spacing: 0.04em;
}

#what-is-provably-fair-modal .what-is-pf-subhead {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 8px;
}

#what-is-provably-fair-modal .what-is-pf-subhead--spaced {
    margin-top: 16px;
}

#what-is-provably-fair-modal .description {
    margin: 0 0 12px;
    color: #999;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

#what-is-provably-fair-modal .description.mt-2 {
    margin-top: 8px;
}

#what-is-provably-fair-modal .description.mt-2 + .what-is-pf-subhead {
    margin-top: 16px;
}

/* Provably Fair seed diagram (Spribe pf-scheme.svg background) */
#what-is-provably-fair-modal .my-sm-4 {
    margin-top: 16px;
    margin-bottom: 16px;
}

#what-is-provably-fair-modal .pf-scheme {
    display: block;
    width: 500px;
    height: 513px;
    max-width: 100%;
    flex-shrink: 0;
    background: url('/static/img/pf-scheme.svg') no-repeat center center / contain;
    box-sizing: border-box;
}

#what-is-provably-fair-modal .description.mt-4 {
    margin-top: 16px;
    margin-bottom: 0;
}

#what-is-provably-fair-modal .description.mt-4 > div {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #what-is-provably-fair-modal .what-is-pf-scroll {
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    #what-is-provably-fair-modal .what-is-pf-scroll .modal-dialog {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    #what-is-provably-fair-modal .modal-content.what-is-pf-content {
        width: 100%;
        min-width: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-x: hidden;
    }

    #what-is-provably-fair-modal .modal-header {
        height: 40px;
        min-height: 40px;
        padding: 0 8px 0 12px;
        border-radius: 0;
    }

    #what-is-provably-fair-modal .modal-header .text-uppercase {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 8px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #what-is-provably-fair-modal .modal-header .close {
        flex-shrink: 0;
        min-width: 40px;
        min-height: 40px;
    }

    #what-is-provably-fair-modal .modal-body {
        padding: 12px 12px 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        overflow-x: hidden;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    #what-is-provably-fair-modal .modal-body .d-flex.justify-content-center.mb-1 > .fairness-i {
        width: 64px;
        height: 72px;
        min-width: 64px;
        min-height: 72px;
    }

    #what-is-provably-fair-modal .what-is-pf-tagline {
        margin: 10px 0 14px;
    }

    #what-is-provably-fair-modal .what-is-pf-tagline span {
        font-size: 13px;
        line-height: 1.35;
        padding: 0 2px;
    }

    #what-is-provably-fair-modal .top-text.description {
        margin: 0 0 18px;
        padding: 14px 12px;
        font-size: 13px;
    }

    #what-is-provably-fair-modal .modal-body .text-center.text-uppercase {
        font-size: 13px;
        margin: 16px 0 10px;
        letter-spacing: 0.03em;
    }

    #what-is-provably-fair-modal .what-is-pf-subhead {
        font-size: 13px;
    }

    #what-is-provably-fair-modal .description {
        font-size: 13px;
        line-height: 1.45;
    }

    #what-is-provably-fair-modal .my-sm-4 {
        width: 100%;
        margin: 12px 0;
        overflow: hidden;
    }

    #what-is-provably-fair-modal .pf-scheme {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 500 / 513;
        margin: 0 auto;
    }

    #what-is-provably-fair-modal .description.mt-4 {
        margin-top: 14px;
    }

    #what-is-provably-fair-modal .description.mt-4 > div {
        margin-bottom: 8px;
    }

    #what-is-provably-fair-modal .description.mt-4 > div:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    #what-is-provably-fair-modal .modal-header .text-uppercase {
        font-size: 12px;
    }

    #what-is-provably-fair-modal .modal-body {
        padding: 10px 10px 14px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    #what-is-provably-fair-modal .modal-body .d-flex.justify-content-center.mb-1 > .fairness-i {
        width: 56px;
        height: 63px;
        min-width: 56px;
        min-height: 63px;
    }

    #what-is-provably-fair-modal .what-is-pf-tagline span {
        font-size: 12px;
    }

    #what-is-provably-fair-modal .top-text.description {
        padding: 12px 10px;
        font-size: 12px;
    }

    #what-is-provably-fair-modal .modal-body .text-center.text-uppercase,
    #what-is-provably-fair-modal .what-is-pf-subhead,
    #what-is-provably-fair-modal .description {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    #what-is-provably-fair-modal .what-is-pf-scroll {
        padding: 12px;
    }

    #what-is-provably-fair-modal .what-is-pf-scroll .modal-dialog {
        width: min(1200px, calc(100vw - 24px));
    }

    #what-is-provably-fair-modal .pf-scheme {
        width: min(500px, calc(100vw - 48px));
        height: auto;
        aspect-ratio: 500 / 513;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #what-is-provably-fair-modal .what-is-pf-scroll {
        padding: 20px;
    }

    #what-is-provably-fair-modal .what-is-pf-scroll .modal-dialog {
        width: min(1200px, calc(100vw - 40px));
        max-width: 1200px;
    }
}

@media (min-width: 1025px) {
    #what-is-provably-fair-modal .what-is-pf-scroll .modal-dialog {
        width: min(1200px, 94vw);
        max-width: 1200px;
    }

    #what-is-provably-fair-modal .modal-body {
        padding: 12px 20px 16px;
    }
}

/* ============================================= */
/*              CHANGE ROOM MODAL                */
/* ============================================= */

#change-room-modal .modal-dialog {
    width: 500px;
    max-width: 90%;
    margin: 28px auto 0;
    pointer-events: none;
}

#change-room-modal .modal-content {
    background: #1B1C1D;
    border-radius: 8px;
    padding: 0;
    pointer-events: auto;
}

#change-room-modal .modal-header {
    height: 36px;
    background: #2C2D30;
    border-bottom: 1px solid #2C2D30;
    border-radius: 8px 8px 0 0;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#change-room-modal .modal-header span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
}

#change-room-modal .modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#change-room-modal .text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #A3A3A3;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* === Список комнат === */
.change-server-item {
    width: 100%;
}

.change-server-item .item-wrapper {
    width: 100%;
}

.change-server-item .rounded-block {
    background: #141516;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-server-item .rounded-block.chosen {
    background: transparent;
    border: 1px solid #38ca07;
}

.change-server-item .main-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.change-server-item .radio {
    width: 16px;
    height: 16px;
    border: 1px solid #38ca07;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.change-server-item .radio .dot {
    width: 8px;
    height: 8px;
    background: #38ca07;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.change-server-item .rounded-block.chosen .radio .dot {
    opacity: 1;
}

.change-server-item .server-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #fff;
    font-weight: 400;
}

/* === КНОПКА CHANGE: Неактивное состояние === */
#change-room-modal .btn-success.disabled {
    width: 30%;
    height: 40px;
    background: #205515;
    border: 1px solid #577252;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #747675;
    cursor: not-allowed;
    margin: 16px auto 0 auto;
    display: block;
    transition: all 0.2s ease;
}

/* === КНОПКА CHANGE: Активное состояние === */
#change-room-modal .btn-success:not(.disabled) {
    width: 30%;
    height: 40px;
    background: #28A909;
    border: 1px solid #B2F2A3;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FBFDFA;
    cursor: pointer;
    margin: 16px auto 0 auto;
    display: block;
    transition: all 0.2s ease;
}

#change-room-modal .btn-success:not(.disabled):hover {
    background: #36cb12;
    border-color: #B2F2A3;
    color: #fff;
}

/* Big win confetti overlay (cashout >= 10x, aligned to #game-container via JS) */
#big-win-confetti {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 3500;
    overflow: hidden;
    visibility: hidden;
}

#big-win-confetti canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Cash Out Notification Modal */
.cashout-notification-modal {
    position: fixed;
    top: 48px; /* Ниже хедера (40px) + отступ */
    left: 50%;
    transform: translateX(-50%);
    width: 344px;
    height: 48px;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.cashout-notification-modal.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.cashout-notification-stack {
    position: fixed;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.cashout-notification-stack .cashout-notification-modal {
    position: relative;
    top: auto;
    left: auto;
    transform: translateY(-6px);
    width: 344px;
    height: 48px;
    z-index: auto;
    pointer-events: none;
    opacity: 0;
}

.cashout-notification-stack .cashout-notification-modal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .cashout-notification-modal,
    .cashout-notification-stack {
        z-index: 5000;
    }

    .cashout-notification-modal,
    .cashout-notification-stack .cashout-notification-modal {
        transition: transform 0.3s ease;
    }
}

.cashout-notification-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #1F1F1E, #254B1A);
    border: 1px solid #26773F;
    border-radius: 24px; /* Чтобы было красиво закруглено */
    display: flex;
    align-items: center;
    padding: 0 12px 0 0;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    justify-content: space-between;
}

.cashout-left {
    margin-left: 43px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cashout-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    opacity: 0.5;
    margin-left: 0;
}

.cashout-multiplier {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: left;
    margin-top: 4px;
    margin-left: 40px;
}

.cashout-win-badge {
    position: relative;
    width: 111px;
    height: 38px;
    background: #50822D;
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: visible;
}

.cashout-win-badge__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
}

.cashout-win-stars-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 99px;
    padding: 1px 0 0;
    gap: 0;
}

.cashout-win-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 17px;
    gap: 2px;
}

.cashout-win-side--left {
    align-items: flex-start;
    margin-right: 5px;
}

.cashout-win-side--left .cashout-win-star--sm {
    align-self: flex-end;
    margin-left: 6px;
    margin-top: 0;
}

.cashout-win-side--right {
    align-items: flex-end;
    margin-left: 5px;
}

.cashout-win-side--right .cashout-win-star--sm {
    align-self: flex-start;
    margin-right: 6px;
    margin-top: 0;
}

.cashout-win-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 52px;
}

.cashout-win-star {
    flex-shrink: 0;
    display: flex;
    line-height: 0;
    pointer-events: none;
    color: #8FAF7E;
}

.cashout-win-star svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cashout-win-star--lg {
    width: 16px;
    height: 16px;
}

.cashout-win-star--sm {
    width: 9px;
    height: 9px;
}

.win-label {
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #FFFFFF;
    opacity: 0.8;
    line-height: 1;
    white-space: nowrap;
}

.win-amount {
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.cashout-close-btn {
    width: 28px;
    height: 28px;
    background: #2E5125;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.cashout-close-btn:hover {
    background: #3a6030;
}

.cashout-close-btn svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 12px;
    gap: 2px;
    background: #2C2D30;
    border-radius: 16px;
    padding: 2px;
}

.language-switcher .lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #A3A3A3;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.language-switcher .lang-btn:hover {
    color: #fff;
    background: #3C3D40;
}

.language-switcher .lang-btn.active {
    background: #28A909;
    color: #fff;
}

/* Game rules — list spacing (must win over cached / missing game-rules-modal.css) */
#game-rules-modal .rules-list .list-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 0 0 16px !important;
    list-style: none !important;
    border: none !important;
    background: transparent !important;
}

#game-rules-modal .rules-list .list-group-item {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 0 0 12px !important;
    border: none !important;
    background: transparent !important;
    color: #b8b8b8 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#game-rules-modal .rules-list .list-group-item::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 10px !important;
    height: 16px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16'%3E%3Cpath d='M1.5 2 7.5 8 1.5 14' fill='none' stroke='%23E50539' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

#game-rules-modal .rules-list-title {
    margin-bottom: 8px !important;
}

#game-rules-modal .rules-list.pt-3 .rules-list-title {
    margin-bottom: 12px !important;
}

#game-rules-modal .rules-list.pt-2 + .rules-list.pt-2 {
    padding-top: 16px !important;
}
