@font-face {
    font-family: 'Druk Text Wide Cyr';
    src: url('../../fonts/DrukWideCyr/DrukWideCyr.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Eastman';
    src: url('../../fonts/Eastman-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Eastman';
    src: url('../../fonts/Eastman-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Eastman';
    src: url('../../fonts/Eastman-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --font-family: 'Eastman';
    --second-family: 'Druk Text Wide Cyr';
}

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

* {
    margin: 0;
    outline: none;
    padding: 0;
    font-family: var(--font-family);
    font-weight: 400;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    box-shadow: 0 4px 4px 0 #000000;
    font-family: var(--font-family);
    background: linear-gradient(180deg, #0e0928 0%, #0d050a 100%);
}

.header {
    position: relative;
    display: flex;
    gap: 16px;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 24px 10px 0;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.header__attempts {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    color: #f4f4f4;
    text-shadow: 1px 1px 1px #353535;
    font-family: var(--second-family);
}

.header__attempts span {
    font-family: var(--second-family);
}

.header__logo {
    width: 143px;
    height: 33px;
}

.header-lang {
    position: absolute;
    z-index: 13;
    top: 17px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    background: #161c24;
    border-radius: 8px;
}

.header-lang__current,
.header-lang__select {
    width: 24px;
    height: 24px;
}

.header-lang ul {
    width: 48px;
    background: #2C3845;
    border-radius: 8px;
    display: none;
    position: absolute;
    overflow: hidden;
    -webkit-transition: opacity 0.2s ease-in;
    transition: opacity 0.2s ease-in;
    z-index: 100;
}

.header-lang ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-lang ul li a{
    display: block;
    margin: 2px 0;
}

.header-lang ul li a.active{
    display: none;
}

.header-lang.show ul {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    margin: 0;
    top: 60px;
}

.caption {
    display: none;
}

.deal-wheel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    z-index: 10;
    min-height: 352px;
    background-image: url("../img/landing-6/scene_mob.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    flex-grow: 1;
}

#app-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 274px;
    min-height: 340px;
}

#app {
    overflow: hidden;
    max-width: 436px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: 100%;
}

.doors-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.doors {
    display: flex;
    gap: 10px 0;
    width: 100%;
    height: 80%;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.door {
    width: 30%;
    min-height: 76px;
    border-radius: 5px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-mark {
    width: 20px;
    height: 16px;
    background: url("../img/landing-6/question-mark.svg") no-repeat;
    background-size: contain;
}

.question-mark-anim1 {
    -webkit-animation: 1s infinite both alternate linear blink;
    animation: 1s infinite both alternate linear blink;
}

.question-mark-anim2 {
    -webkit-animation: .5s infinite both alternate linear blink;
    animation: .5s infinite both alternate linear blink;
}

.question-mark-anim3 {
    -webkit-animation: .7s infinite both alternate linear blink;
    animation: .7s infinite both alternate linear blink;
}

.question-mark-anim4 {
    -webkit-animation: .4s infinite both alternate linear blink;
    animation: .4s infinite both alternate linear blink;
}

.question-mark-anim5 {
    -webkit-animation: .9s infinite both alternate linear blink;
    animation: .9s infinite both alternate linear blink;
}

.question-mark-anim6 {
    -webkit-animation: .6s infinite both alternate linear blink;
    animation: .6s infinite both alternate linear blink;
}

@-webkit-keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

@keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

.boxes {
    /* opacity: 1; */
    transition: all .2s linear;
}

.opacity {
    -webkit-animation: 1s linear opacity;
    animation: 1s linear opacity;
}

@-webkit-keyframes opacity {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes opacity {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 1;
    }
}



.boxes-anim1 {
    -webkit-animation: 1s infinite both alternate linear trambling-animation;
    animation: 1s infinite both alternate linear trambling-animation;
}

.boxes-anim2 {
    -webkit-animation: .5s infinite both alternate linear trambling-animation;
    animation: .5s infinite both alternate linear trambling-animation;
}

.boxes-anim3 {
    -webkit-animation: .7s infinite both alternate linear trambling-animation;
    animation: .7s infinite both alternate linear trambling-animation;
}

.boxes-anim4 {
    -webkit-animation: .4s infinite both alternate linear trambling-animation;
    animation: .4s infinite both alternate linear trambling-animation;
}

.boxes-anim5 {
    -webkit-animation: .9s infinite both alternate linear trambling-animation;
    animation: .9s infinite both alternate linear trambling-animation;
}

.boxes-anim6 {
    -webkit-animation: .6s infinite both alternate linear trambling-animation;
    animation: .6s infinite both alternate linear trambling-animation;
}

@-webkit-keyframes trambling-animation {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }
}

@keyframes trambling-animation {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }
}

.box {
    width: 75px;
    height: 84px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    mask-image: url("../img/landing-6/case-mob.svg");
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 400%;
    height: 100%;
    background: linear-gradient(120deg,rgba(255,255,255,0) 0,rgba(255,255,255,.2) 35%,rgba(255,255,255,.35) 50%,rgba(255,255,255,.2) 65%,rgba(255,255,255,0) 100%);
    animation: 2s glow infinite linear;
}

@keyframes glow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

.shakeLootboxOnClick {
    -webkit-animation: shake 0.9s;
    animation: shake 0.9s;
    mask-image: none;
    overflow: visible;
    /* Когда анимация будет закончена, начните снова */
    -webkit-animation-iteration-count: infinite both alternate;
    animation-iteration-count: infinite both alternate;
}

.shakeLootboxOnClick::before {
    content: none;
}

@-webkit-keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg) scale(1);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg) scale(1.2);
    }
}

@keyframes shake {
    0% {
        transform: translate(2px, -15px) rotate(0deg) scale(1);
    }

    10% {
        transform: translate(-2px, -8px) rotate(-2deg);
    }

    20% {
        transform: translate(-2px, 7px) rotate(2deg);
    }

    30% {
        transform: translate(-6px, 10px) rotate(-3deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(3deg);
    }

    50% {
        transform: translate(-2px, 0px) rotate(-3deg);
    }

    60% {
        transform: translate(-9px, 9px) rotate(0deg);
    }

    70% {
        transform: translate(1px, 0px) rotate(-5deg);
    }

    80% {
        transform: translate(-14px, -7px) rotate(5deg);
    }

    90% {
        transform: translate(30px, 15px) rotate(-6deg);
    }

    100% {
        transform: translate(20px, -30px) rotate(-6deg) scale(1.2);
    }
}

.reel-img {
    width: 100%;
    height: auto;
}

.buttons {
    position: absolute;
    margin: 0 auto;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.buttons-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mooving-finger {
    width: 33px;
    height: 31px;
    position: absolute;
    bottom: -18px;
    right: 30px;
    z-index: 3;
}

.moove-finger-anim {
    -webkit-animation: 1.3s linear infinite alternate movingFinger;
    animation: 1.3s linear infinite alternate movingFinger;
}

@-webkit-keyframes movingFinger {
    0% {
        right: 30px;
    }

    100% {
        right: -30px;
    }
}

@keyframes movingFinger {
    0% {
        right: 30px;
    }

    100% {
        right: -30px;
    }
}

#spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 250px;
    height: 81px;
    border: none;
    border-radius: 5px;
    background: url('../img/landing-6/btn-bg.svg') no-repeat;
    background-size: cover;
    background-size: 100%;
    -webkit-filter: drop-shadow(0px 1.66038px 1.66038px rgba(0, 0, 0, 0.25));
    filter: drop-shadow(0px 1.66038px 1.66038px rgba(0, 0, 0, 0.25));
}

#spinner>span {
    font-size: 18px;
    line-height: 120%;
    text-transform: uppercase;
    font-family: var(--second-family);
    font-weight: 600;
    padding: 8px 5px 5px 5px;
    color: #fff;
    border: 1.25px solid #FFE160;
    border-radius: 4px;
    background-color: #CB0049;
    width: 224px;
    height: 64px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#spinner.active>span {
    background-color: #fff;
    color: #CB0049;
}

.modal-overlay {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all .3s
}

.modal-overlay.active,
.modal-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active {
    z-index: 14;
}

.modal-wrapper.active {
    z-index: 15;
}

.modal-wrapper {
    width: 100%;
    max-width: 370px;
    height: 100%;
    max-height: 370px;
    position: fixed;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 0;
    transition: all .3s;
    transform: translate(-50%, -50%);
}

.modal {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow-y: auto;
    background-size: 100%;
    transition: all .3s;
}

.modal button {
    position: relative;
    background: #CB0049;
    box-shadow: 1.58348px 1.58348px 0px rgba(0, 0, 0, 0.0816916);
    border-radius: 3.95869px;
    border: 3px solid #FFE160;
    outline: none;
    padding: 9px 42px;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 17px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
}

.modal button a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.modal-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('../img/landing-6/modal-bg-mob.png') no-repeat, linear-gradient(180deg, #022F25 0%, #094732 100%);
    background-size: cover;
    width: 264px;
    height: 164px;
}

.text {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
}

.text1 {
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}

.textPrize {
    font-style: normal;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    display: flex;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(to bottom right, #F5E5A9 0%, #FFC700 61.46%, #C49C22 100%);
}

@-webkit-keyframes modal {
    0% {
        width: 0%;
        height: 0%;
        background-size: 0%;
        transform: scale(0), translate(-100%, -100%);
    }

    80% {
        background-size: 110%;
        transform: scale(1.2);
    }

    100% {
        width: 100%;
        height: 100%;
        background-size: 100%;
        transform: scale(1), translate(0%, 0%);
    }
}

/* modal */

.fireworks {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
}

.fireworks canvas {
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
    vertical-align: bottom;
}

/* ---- particles.js container ---- */
.particles-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 100%;
    transform: translate(-50%, -50%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

.count-particles {
    border-radius: 0 0 3px 3px;
}

.atCount {
    margin-left: 7px;
}

.big-win {
    display: none;
    position: fixed;
    top: 35%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.big-win.active {
    display: flex;
}

#big-win-img {
    margin-bottom: 10px;
}

#big-win-img-modal {
    z-index: 3;
    width: 267px;
    height: 147px;
}

#big-win-img-modal {
    z-index: 3;
    width: 267px;
    height: 147px;
    transform: scale(0);
    transition: transform .1s linear;
}

#big-win-img-modal.active {
    transform: scale(1);
}

.bw-barrels {
    width: 100%;
    height: 100px;
    max-width: 340px;
    position: relative;
}

#lBarrel,
#mBarrel,
#rBarrel {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    transition: transform .1s linear;
}

#lBarrel {
    left: 30%;
    z-index: 1;
    transform: translateX(-350%)
}

#mBarrel {
    left: 50%;
    top: 20%;
    z-index: 2;
    transform: translateY(350%)
}

#rBarrel {
    left: 70%;
    z-index: 1;
    transform: translateX(300%)
}

#lBarrel.active,
#mBarrel.active,
#rBarrel.active {
    transform: translate(-50%, 0);
}

.pulseAnim {
    -webkit-animation: pulse 1.2s linear infinite alternate;
    animation: pulse 1.2s linear infinite alternate;
}

@-webkit-keyframes pulse {

    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

@media (min-width: 1024px) {
    .header {
        gap: 0;
        flex-direction: row;
        align-items: flex-start;
        min-height: 148px;
        padding: 25px 48px;
        margin: 0 auto -52px;
    }

    .header__attempts {
        position: absolute;
        left: 48px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
    }

    .header__logo {
        width: 257px;
        height: 63px;
    }

    .header-lang {
        top: 50%;
        transform: translateY(-50%);
        right: 48px;
    }

    .caption {
        margin: 0 auto -155px;
        width: 687px;
        height: 172px;
        font-family: var(--second-family);
        font-weight: 500;
        font-size: 29px;
        line-height: 113%;
        text-transform: uppercase;
        text-align: center;
        letter-spacing: 2px;
        color: #F4F4F4;
        display: flex;
        justify-content: center;
        align-items: center;
        text-shadow: 1px 1px 1px #353535;
        background: url('../img/landing-6/board.png') no-repeat center bottom;
        background-size: 100%;
        z-index: 11;
    }

    #app-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 1200px;
        min-height: 738px;
    }

    #app {
        max-width: 100%;
        width: 780px;
        height: 556px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-size: 100%;
    }

    .doors-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .doors {
        gap: 20px;
    }

    .door {
        width: 30%;
        height: 210px;
        margin: 0;
    }

    .box {
        position: relative;
        height: 177px;
        width: 159px;
        mask-image: url("../img/landing-6/case.svg");
    }

    .buttons {
        bottom: 40px;
    }

    .mooving-finger {
        width: 79px;
        height: 72px;
        bottom: -38px;
        right: 38px;
        z-index: 3;
    }

    .add-finger {
        bottom: -60px;
    }

    .moove-finger-anim {
        -webkit-animation: 1.3s linear infinite alternate movingFinger;
        animation: 1.3s linear infinite alternate movingFinger;
    }

    @-webkit-keyframes movingFinger {
        0% {
            right: 38px;
        }

        100% {
            right: -68px;
        }
    }

    @keyframes movingFinger {
        0% {
            right: 38px;
        }

        100% {
            right: -68px;
        }
    }

    #spinner {
        width: 330px;
        height: 106px;
        background: url('../img/landing-6/btn-bg.svg') no-repeat;
        -webkit-filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
        filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
        justify-content: center;
        align-items: center;
    }

    #spinner>span {
        width: 305px;
        height: 90px;
        font-size: 25px;
        line-height: 34px;
        font-weight: 600;
        color: #fff;
        border: 3px solid #FFE160;
        border-radius: 10px;
        padding: 10px 15px;
        text-align: center;
        justify-content: center;
        align-items: center;
        margin-left: 3px;
    }

    #lever.active {
        transform: matrix(1.5, 0, 0, -1.5, 3, 15);
    }

    .question-mark {
        width: 29px;
        height: 50px;
        background: url("../img/landing-6/question-mark.svg") no-repeat;
        background-size: contain;
        margin: 0 20px 0 15px;
    }

    .reel-img {

    }

    .deal-wheel-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        min-height: 779px;
        max-width: 1440px;
        background-image: url("../img/landing-6/scene.webp");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top center;
    }

    #big-win-img,
    #big-win-img-modal {
        width: 626px;
        height: 344px;
    }

    .modal-text {
        background: url('../img/landing-6/modal-bg.png') no-repeat, linear-gradient(180deg, #022F25 0%, #094732 100%);
        background-size: cover;
        width: 506px;
        height: 320px;
    }

    .text {
        margin-bottom: 25px;
    }

    .text1 {
        color: #fff;
        text-transform: uppercase;
        font-family: Eastman;
        font-size: 30px;
        line-height: 41px;
        font-weight: 600;
        letter-spacing: 0em;
        text-align: center;
    }

    .textPrize {
        font-weight: 600;
        font-size: 50px;
        line-height: 69px;
    }

    .btn-spin {
        height: 151px;
        width: 151px;
    }

    .modal-overlay {
        height: 100vh;
        width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 14;
        opacity: 0;
        visibility: hidden;
        transition: all .3s
    }

    .modal-wrapper {
        width: 100%;
        max-width: 700px;
        height: 100%;
        max-height: 680px;
        position: fixed;
        top: 50%;
        left: 50%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        z-index: 15;
        visibility: hidden;
        opacity: 0;
        transition: all .3s;
        transform: translate(-50%, -50%);
    }

    .modal {
        display: flex;
        width: 650px;
        height: 665px;
        max-width: 100%;
        flex-direction: column;
        margin: 0 auto;
        overflow-y: auto;
        transition: all .3s;
    }

    .modal button {
        border-radius: 8.59561px;
        font-size: 26px;
        line-height: 37px;
    }

}
