/* Игровая область */
.whell-game {
    background-image: url(/games/whell/whell_bg.png);
    height: calc(var(--vh) * 100);
    width: 100vw;
    background-size: cover;
    padding-top: 16vh;
    overflow-x: hidden;
}

.whell-game-header-buttons {
    background-image: url(/games/whell/whell_header.png);
    aspect-ratio: 1443 / 265;
    background-size: contain;
    position: absolute;
    top: 8vh;
    height: 7.5vh;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 calc((100vw - (1vh * 1443 / 265 * 7.5)) / 2);
}

.whell-game-double-header {
    background-image: url(/games/whell/double_header.png);
    aspect-ratio: 1443 / 265;
    background-size: contain;
    position: absolute;
    top: 8vh;
    height: 7.5vh;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 calc((100vw - (1vh * 1443 / 265 * 7.5)) / 2);
}

.whell-game-header-button {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    transition: none;
}

.whell-game-header-button-img {
    height: 6vh;
    margin: 0 2vw;
}

.whell-game-deck {
    max-width: 45vh;
    aspect-ratio: 1591 / 1795;
    background-image: url(/games/whell/wood.png);
    background-size: cover;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: relative;
}

.whell-game-double-deck {
    aspect-ratio: 1580 / 1569;
    background-image: url(/games/whell/double_deck.png);
    background-size: contain;
    display: flex;
    position: relative;
    z-index: 55;
    height: 40vh;
    margin: 17vh calc((100% - 40vh) / 2);
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.whell-game-deck-whell {
    width: 38.3vh;
    position: absolute;
    left: 3.8vh;
    /* transition: transform 2s; */
    transform: rotate(0deg);
}

.whell-game-double-whell {
    width: 38vh;
    position: absolute;
    left: 1.2vh;
    top: 1vh;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 5s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.whell-game-double-whell.spinning {
    animation: spin-double 1s linear infinite;
    transition: none;
}

.whell-game-double-whell.slowing {
    transition: transform 5s ease-out !important;
}

@keyframes spin-double {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.whell-game-deck-center {
    width: 20vw;
    position: absolute;
}

.whell-game-double-center {
    width: 20vw;
    position: absolute;
}

.whell-game-deck-arrow {
    width: 12vh;
    position: absolute;
    right: -6vh;
    top: 9vh;
}

.whell-game-double-arrow {
    width: 5vh;
    position: absolute;
    right: 17.5vh;
    top: -2vh;
}

/* Хэдер игры */
.whell-game-header {
    z-index: 80;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1vh 20px 1vh 20px;
    width: 100%;
    background-color: rgba(31, 32, 49, 0.7);
    box-shadow: 0px 3px 60.76px 37.24px rgba(3, 24, 32, 0.24);
    border: 4px solid rgb(137, 57, 102);
    border-top: none;
    border-left: none;
    border-right: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.whell-game-header-balance-block {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    border-style: solid;
    border-width: 3px;
    border-color: rgb(190, 59, 159);
    background-color: transparent;
    box-shadow: inset 0px 0px 202px 0px rgba(14, 0, 16, 0.3);
    border-radius: 100px;
    margin: 0;
}

.whell-game-header-balance {
    padding: 0 5vw 0 5vw;
    font-size: 2vh;
    font-family: "El Messiri", sans-serif;
    color: white;
    font-size: 2.3vh;
    line-height: 2.3vh;
}

/* Футер игры */
.whell-game-footer {
    z-index: 20;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2vh 20px 2vh 20px;
    width: 100%;
    background-color: rgba(31, 32, 49, 0.7);
    box-shadow: 0px 3px 60.76px 37.24px rgba(3, 24, 32, 0.24);
    border: 4px solid rgb(137, 57, 102);
    border-bottom: none;
    border-left: none;
    border-right: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}


.whell-ticket-buy {
    background-image: -moz-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    box-shadow: 0px 3px 9.92px 6.08px rgba(3, 24, 32, 0.3);
    border-radius: 8vh;
    border: none;
    padding: 1vh 4vh;
    font-size: 2.5vh;
    line-height: 2.5vh;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-shadow: 0px 3px 3.6px rgba(3, 24, 32, 0.45);
}

.whell-ticket-buy-stop {
    background-image: -moz-linear-gradient(90deg, rgb(240, 48, 47) 0%, rgb(255, 159, 56) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(240, 48, 47) 0%, rgb(255, 159, 56) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(240, 48, 47) 0%, rgb(255, 159, 56) 100%);
    box-shadow: 0px 3px 9.92px 6.08px rgba(3, 24, 32, 0.3);
    border-radius: 8vh;
    border: none;
    padding: 1vh 4vh;
    margin-bottom: 2vh;
    margin-top: 1vh;
    font-size: 2.5vh;
    line-height: 2.5vh;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-shadow: 0px 3px 3.6px rgba(3, 24, 32, 0.45);
}

.whell-ticket-autobuy {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: 0.5vh;
    height: 4vh;
}

.whell-ticket-autobuy img {
    height: 3vh;
}

.whell-ticket-autobuy input {
    display: none;
}

.whell-ticket-autobuy span {
    margin-left: 3vw;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 253, 233);
    font-size: 2vh;
    line-height: 2vh;
}

.whell-ticket-price-block {
    border-style: solid;
    border-width: 4px;
    border-color: rgb(190, 68, 159);
    background-color: rgba(61, 127, 212, 0);
    box-shadow: inset 0px 0px 31.39px 11.61px rgba(14, 0, 16, 0.63);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 8vh;
}

.whell-ticket-price-title {
    font-family: "El Messiri", sans-serif;
    font-size: 2vh;
    line-height: 2vh;
    color: rgb(255, 247, 47);
    text-align: center;
    margin: 0.3vh 8vw;
}

.whell-ticket-price {
    font-size: 3vh;
    line-height: 4vh;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-align: center;
    text-shadow: 0px 3px 3.6px rgba(3, 24, 32, 0.45);
    margin: 0;
}

.whell-ticket-price-button {
    background-image: -moz-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    box-shadow: 0px 3px 9.92px 6.08px rgba(3, 24, 32, 0.3);
    border-radius: 8vh;
    border: none;
    height: 6vh;
    width: 20vw;
}

.whell-ticket-price-button-hidden {
    display: none;
}

.whell-ticket-price-button img {
    max-height: 100%;
    max-width: 100%;
}

.whell-ticket-number {
    font-size: 2vh;
    line-height: 2vh;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 255, 255);
    text-align: center;
    margin-bottom: 0;
}

.animate-whell {
    animation-duration: .1s;
    animation-name: rotate-whell;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    /* transition:2s; */
}


.whell-ready {
    animation-duration: 10s;
    animation-name: rotate-whell-ready;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* .animate-double-whell {
    transform: rotate(calc(var(--double-rotate) + var(--double-win)));
    transition: 3s all ease-out;
} */



@keyframes rotate-whell {
    0% {
        transform: rotate(0deg);
        transition: all .1s;
    }

    1% {
        transform: rotate(0deg);
        transition: all .2s;
    }

    99% {
        transform: rotate(360deg);
        transition: all .2s;
    }

    100% {
        transform: rotate(360deg);
        transition: all .1s;
    }
}

@keyframes rotate-whell-ready {
    0% {
        transform: rotate(calc(var(--rotate) + 0deg));
        transition: none;
    }

    1% {
        transform: rotate(calc(var(--rotate) + 0deg));
        transition: all .2s;
    }

    99% {
        transform: rotate(calc(var(--rotate) + 360deg));
        transition: all .2s;
    }

    100% {
        transform: rotate(calc(var(--rotate) + 360deg));
        transition: none;
    }
}


.whell-game-double {
    background: url(/games/whell/whell_bg_double.png);
    display: flex;
    width: 100vw;
    height: calc(var(--vh) * 100);
    z-index: 50;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.whell-game-double .double-red {
    background-image: -moz-linear-gradient(90deg, rgb(211, 25, 81) 0%, rgb(255, 83, 136) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(211, 25, 81) 0%, rgb(255, 83, 136) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(211, 25, 81) 0%, rgb(255, 83, 136) 100%);
    box-shadow: 0px 3px 9.92px 6.08px rgba(3, 24, 32, 0.3);
    border-radius: 8vh;
    border: none;
    padding: 1vh 4vh;
    font-size: 2.5vh;
    line-height: 2.5vh;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-shadow: 0px 3px 3.6px rgba(3, 24, 32, 0.45);
    margin: 0 2vw;
}


.whell-game-double .double-white {
    background-image: -moz-linear-gradient(90deg, rgb(242, 200, 200) 0%, rgb(255, 255, 255) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(242, 200, 200) 0%, rgb(255, 255, 255) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(242, 200, 200) 0%, rgb(255, 255, 255) 100%);
    box-shadow: 0px 3px 9.92px 6.08px rgba(3, 24, 32, 0.3);
    border-radius: 8vh;
    border: none;
    padding: 1vh 4vh;
    font-size: 2.5vh;
    line-height: 2.5vh;
    font-family: "El Messiri", sans-serif;
    font-weight: bold;
    text-shadow: 0px 3px 3.6px rgba(3, 24, 32, 0.45);
    color: rgb(64, 40, 90);
    margin: 0 2vw;
}

.hide {
    display: none;
}

.whell-rules-modal-background {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(var(--vh) * 100);
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.whell-rules-modal {
    border-radius: 10px;
    background-color: #5b2955;
    box-shadow: 0 3px 46.74px 10.26px #0318206e;
    width: 80%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 4;
    padding-bottom: 2.5vh;
    max-height: 80vh;
}

.whell-rules-modal-message {
    font-size: 1.1rem;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 253, 233);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    padding: 0 20px;
    text-align: left;
    overflow: scroll;
    padding-top: 2vh;
    padding-bottom: 3vh;
}

.whell-rules-modal-header {
    background-color: #00d29e;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.4), inset 0px 0px 0.4px 1.6px rgba(255, 255, 255, 0.2);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.3rem;
    line-height: 1.2;
    padding: 10px;
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
}


img {
    pointer-events: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.whell-game-header-fullscreen {
    background: none;
    padding: 0;
    border: none;
}


.whell-win-get-button,
.whell-win-double-button {
    width: auto !important;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.7);
    border-radius: 100px;
    text-transform: uppercase;
    font-family: "El Messiri", sans-serif;
    font-size: 1.3rem;
    padding: 5px 20px;
    font-style: italic;
    color: white;
    z-index: 4;
    box-shadow: 0px 3px 9.92px 6.08px rgba(3, 24, 32, 0.3);
}

.whell-win-get-button {
    background-image: -moz-linear-gradient(90deg, rgb(240, 48, 47) 0%, rgb(255, 159, 56) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(240, 48, 47) 0%, rgb(255, 159, 56) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(240, 48, 47) 0%, rgb(255, 159, 56) 100%);
}

.whell-win-double-button {
    background-image: -moz-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(0, 183, 0) 0%, rgb(56, 249, 60) 100%);
}


.lighters {
    width: 96%;
    height: 85%;
    position: relative;
}


.lighter {
    position: absolute;
    width: 2%;
    height: 2%;
    background: #6f3737;
    border-radius: 50%;
    border: 1px solid #878787;
}

.lighter-1 {
    left: 50%;
    top: 2%;
}

.lighter-2 {
    left: 75%;
    top: 9%;
}

.lighter-3 {
    left: 91%;
    top: 25%;
}

.lighter-4 {
    left: 98%;
    top: 50%;
}

.lighter-5 {
    left: 90%;
    top: 74%;
}

.lighter-6 {
    left: 76%;
    top: 89%;
}

.lighter-7 {
    left: 51%;
    top: 97%;
}

.lighter-8 {
    left: 24%;
    top: 89%;
}

.lighter-9 {
    left: 7%;
    top: 70%;
}

.lighter-10 {
    left: 2.5%;
    top: 48%;
}

.lighter-11 {
    left: 7%;
    top: 28%;
}

.lighter-12 {
    left: 24%;
    top: 9%;
}

.lighter-active {
    background-color: white;
    box-shadow: 0px 0px 4px 2px white;
    border: 1px solid white;
}

.whell-win-message {
    font-size: 1.7rem;
    font-family: "El Messiri", sans-serif;
    color: rgb(255, 255, 255);
    align-content: flex-start;
    flex-grow: 1;
    margin: 0;
    text-align: center;
}

.whell-win-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}