.roulette-page-wrapper {
    min-width: 0 !important;
}

.roulette-page-wrapper .roulette {
    width: 100% !important;
    height: 180px !important;
    min-width: 0 !important;
    margin-top: 90px !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid #2f3336 !important;
    background: #0c0d0e !important;
    box-shadow: inset 0 0 25px rgba(0,0,0,.35) !important;
}

.roulette::before,
.roulette::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    width: 220px !important;
    height: 100% !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.roulette::before {
    left: 0 !important;
    background: linear-gradient(
        to right,
        #111 0%,
        rgba(17,17,17,.7) 20%,
        rgba(17,17,17,.25) 65%,
        transparent
    ) !important;
}

.roulette::after {
    right: 0 !important;
    background: linear-gradient(
        to left,
        #111 0%,
        rgba(17,17,17,.7) 20%,
        rgba(17,17,17,.25) 65%,
        transparent
    ) !important;
}

.pointer {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 2px !important;
    height: 100% !important;
    z-index: 10 !important;
    transform: translateX(-50%) !important;
    background: rgba(255,255,255,.75) !important;
    box-shadow: 0 0 12px rgba(255,255,255,.25) !important;
}

.track {
    display: flex !important;
    height: 100% !important;
    align-items: center !important;
    gap: 15px !important;
    will-change: transform !important;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}

.card {
    width: 140px !important;
    min-width: 140px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #2f3336 !important;
    border-bottom: 3px solid #444 !important;
    background: linear-gradient(180deg,#181a1c,#101112) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: border-color .2s,background .2s !important;
}

.card img {
    width: 55px !important;
    height: 55px !important;
    object-fit: contain !important;
    background: transparent !important;
}

.roulette-page-wrapper .spin-button {
    width: 180px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 40px auto 0 !important;
    padding: 0 !important;
    border: 1px solid #2f3336 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: #0f1112 !important;
    color: #fff !important;
    font-family: "IBM Plex Mono",monospace !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: none !important;
}

.roulette-page-wrapper .spin-button:hover:not(:disabled) {
    background: #151819 !important;
    border-color: #555 !important;
}

.roulette-page-wrapper .spin-button:focus,
.roulette-page-wrapper .spin-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.roulette-page-wrapper .spin-button:active {
    transform: scale(.96) !important;
}

.roulette-page-wrapper .spin-button:disabled {
    background: #0a0c0d !important;
    border-color: #222 !important;
    color: #7f898e !important;
    cursor: default !important;
}

.result {
    height: 40px !important;
    margin-top: 25px !important;
    font-size: 28px !important;
    opacity: 0 !important;
    transition: .5s !important;
}

.result.show {
    opacity: 1 !important;
}

.roulette-page-wrapper .history {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 100px !important;
    margin-top: 100px !important;
    padding: 0 !important;
    color: #555 !important;
    font-size: 12px !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.history-title {
    margin-bottom: 10px !important;
    color: #888 !important;
    font-size: 15px !important;
}

.roulette-page-wrapper .history-list {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.history-list > .history-item,
.history-list > .history-item:visited {
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 1px solid #222 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #888 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    cursor: pointer !important;
}

.history-list > .history-item:hover,
.history-list > .history-item:active {
    background: #151515 !important;
    border-color: #555 !important;
    color: #fff !important;
}

.history-list > .history-item:first-child {
    border-color: #444 !important;
    color: #f4f6f8 !important;
}

.history-list > .history-item::before,
.history-list > .history-item::after {
    content: none !important;
    display: none !important;
}


.history-list > .history-item:hover,
.history-list > .history-item:active {
    background: #151515 !important;
    border-color: #555 !important;
    color: #fff !important;
}

.history-list > .history-item:first-child {
    border-color: #444 !important;
    color: #f4f6f8 !important;
}

.history-list > .history-item::before,
.history-list > .history-item::after {
    content: none !important;
    display: none !important;
}

.winner-popup {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 999999 !important;
    background: rgba(0,0,0,.55) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    transition: none !important;
}

.winner-popup.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.winner-content {
    position: relative !important;
    width: 500px !important;
    max-width: calc(100vw - 40px) !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    top: calc(var(--winner-top) - 46vh) !important;
    padding: 35px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    background: rgba(13,15,16,.88) !important;
    color: #fff !important;
    border: 1px solid #2f3336 !important;
    border-radius: 0 !important;
    text-align: center !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow:
        0 25px 80px rgba(0,0,0,.7),
        inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.winner-content *,
.winner-content *::before,
.winner-content *::after {
    box-sizing: border-box !important;
}

.winner-popup img,
#winnerLogo {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,.8)) !important;
    transform: scale(0) !important;
    transition: transform .45s cubic-bezier(.2,.8,.2,1) !important;
}

.winner-popup.show img,
.winner-popup.show #winnerLogo {
    transform: scale(1) !important;
}

.winner-content h2,
.winner-content #winnerName {
    width: auto !important;
    display: block !important;
    margin: 25px 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: "IBM Plex Mono",monospace !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.winner-content #winnerDescription {
    width: auto !important;
    max-width: 380px !important;
    display: block !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #888 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: "IBM Plex Mono",monospace !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

.winner-buttons {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 20px 0 0 !important;
}

.winner-buttons a,
.winner-buttons button {
    width: 130px !important;
    min-width: 130px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(22,24,25,.75) !important;
    color: #eaeaea !important;
    border: 1px solid #2f3336 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: "IBM Plex Mono",monospace !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: .5px !important;
    line-height: normal !important;
    text-decoration: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: none !important;
}

.winner-buttons a:hover,
.winner-buttons button:hover {
    background: #181a1c !important;
    border-color: #555 !important;
    color: #fff !important;
}

.winner-buttons a:focus,
.winner-buttons a:focus-visible,
.winner-buttons button:focus,
.winner-buttons button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.winner-buttons a::before,
.winner-buttons a::after,
.winner-buttons button::before,
.winner-buttons button::after {
    content: none !important;
    display: none !important;
}

.loading-dot {
    display: inline-block;
    animation: dotWave .57s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: .08s;
}

.loading-dot:nth-child(3) {
    animation-delay: .16s;
}

@keyframes dotWave {
    0%,100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width:600px) {
    .roulette-page-wrapper .roulette {
        height: 150px !important;
    }

    .roulette::before,
    .roulette::after {
        width: 120px !important;
    }

    .card {
        width: 120px !important;
        min-width: 120px !important;
        height: 100px !important;
    }

    .winner-content {
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        min-height: 420px !important;
        aspect-ratio: auto !important;
        padding: 25px !important;
    }

    .winner-content h2,
    .winner-content #winnerName {
        font-size: 24px !important;
    }

    .winner-buttons {
        flex-direction: column !important;
    }

    .winner-buttons a,
    .winner-buttons button {
        width: 150px !important;
        min-width: 150px !important;
    }
}