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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    box-sizing: border-box
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0
}

p {
    margin: 0
}

picture {
    display: block
}

img {
    display: block;
    border: none
}

img, svg {
    vertical-align: middle
}

a {
    background-color: transparent;
    color: inherit;
    text-decoration: none
}

:focus {
    outline: none
}

button {
    all: unset
}

:root {
    --font-main-weight: 400;
    --font-main-color: #fff;
    --font-main-style: normal;
    --font-main: "Black Han Sans", sans-serif;
}

body {
    line-height: 1;
    text-rendering: optimizeSpeed;
    -webkit-text-decoration-skip: objects;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-main), sans-serif;
    font-weight: var(--font-main-weight);
    color: var(--font-main-color);
    font-style: var(--font-main-style);
    text-transform: uppercase;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    position: relative;
    background: linear-gradient(
            144deg,
            #030A57 2%,
            #004391 39%,
            #004B99 44%,
            #4E029E 78%
    );
    overflow-x: hidden;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    z-index: 1;
}

.main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    opacity: 0;
    -webkit-animation: fadeInOut 5s ease-in-out infinite;
    animation: fadeInOut 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.blue-mask--bottom {
    content: "";
    position: fixed;
    inset: 0;
    height: 100%;
    width: 100%;
    background: image-set(
            url('../img/mask/blue_mask_bottom@1x.webp') 1x,
            url('../img/mask/blue_mask_bottom@2x.webp') 2x
    ) no-repeat left bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 4;
}

.blue-mask--top {
    content: "";
    position: fixed;
    inset: 0;
    height: 100%;
    width: 100%;
    background: image-set(
            url('../img/mask/blue_mask_top@1x.webp') 1x,
            url('../img/mask/blue_mask_top@2x.webp') 2x
    ) no-repeat center top;
    pointer-events: none;
    z-index: 3;
}

.content {
    position: relative;
    z-index: 1;
    gap: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto;
    width: 100%;
}

.btn {
    border-radius: 20px;
    background: #12CC78;
    padding: 10px 75px;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 38px 10px rgba(23, 255, 149, 0.6);
}

.btn:hover,
.btn:focus {
    background: #FB00FF;
    box-shadow: 0 4px 38px 10px rgba(251, 0, 255, 0.6);
}

.btn__text {
    position: relative;
}

.logo {
    position: relative;
    z-index: 20;
    margin: 0 auto;
    aspect-ratio: 452 / 70;
}

.animated-text {
    position: relative;
    z-index: 20;
    margin: 0 auto;
}

.description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.animated-text {
    aspect-ratio: 847 / 509;
}

.tabs {
    position: relative;
    z-index: 5;
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.tab {
    position: relative;
    aspect-ratio: 506 / 196;
    transition: transform 0.3s ease-in-out;
}

.blue_coin,
.green_coin,
.red_coin,
.white_coin,
.yellow_coin {
    position: absolute;
    z-index: 3;
    aspect-ratio: 1 / 1;
}

.green_coin,
.red_coin,
.white_coin {
    position: absolute;
    z-index: 3;
    animation: coin-wiggle 2s infinite ease-in-out;
    -webkit-animation: coin-wiggle 2s infinite ease-in-out;

}

.blue_coin,
.yellow_coin {
    position: absolute;
    z-index: 3;
    animation: coin-float 3.5s infinite ease-in-out;
    -webkit-animation:  coin-float 3.5s infinite ease-in-out;
}

.red_coin {
    bottom: 100%;
    left: 0;
    animation-delay: 0s; animation-duration: 2.3s;
}

.white_coin {
    bottom: 100%;
    right: 0;
    animation-delay: 0.4s; animation-duration: 2.1s;
}

.blue_coin {
    bottom: 80%;
    right: 110%;
    animation-delay: 0.2s; animation-duration: 1.8s;
}

.yellow_coin {
    bottom: 45%;
    right: 115%;
    animation-delay: 0.6s; animation-duration: 2.5s;
}

.green_coin {
    bottom: 30%;
    left: 115%;
    animation-delay: 0.3s; animation-duration: 2s;
}

.girl {
    position: absolute;
    z-index: 3;
    aspect-ratio: 450 / 1039;
}

.girl-img {
    position: static;
    height: 100%;
}

.wheel {
    position: absolute;
    z-index: 2;
    aspect-ratio: 970 / 698;
    background: image-set(
            url('../img/wheel/wheel@1x.webp') 1x,
            url('../img/wheel/wheel@2x.webp') 2x
    ) no-repeat center center;
    background-size: contain;
    overflow: hidden;
}

.wheel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: image-set(
            url('../img/wheel/wheel_mask@1x.webp') 1x,
            url('../img/wheel/wheel_mask@2x.webp') 2x
    ) no-repeat center center;
    background-size: contain;
    opacity: 0;
    -webkit-animation: fadeInOut 5s ease-in-out infinite;
    animation: fadeInOut 5s ease-in-out infinite;
    z-index: 2;
}

.chips {
    position: absolute;
    z-index: 3;
    aspect-ratio: 1 / 1;
    background: image-set(
            url('../img/chips/blue_chips@1x.webp') 1x,
            url('../img/chips/blue_chips@2x.webp') 2x
    ) no-repeat center center;
    background-size: contain;
    overflow: hidden;
}

.chips::before {
    content: "";
    position: absolute;
    inset: 0;
    background: image-set(
            url('../img/chips/violet_chips@1x.webp') 1x,
            url('../img/chips/violet_chips@2x.webp') 2x
    ) no-repeat center center;
    background-size: contain;
    opacity: 0;
    -webkit-animation: fadeInOut 5s ease-in-out infinite;
    animation: fadeInOut 5s ease-in-out infinite;
    z-index: 3;
}

@media (orientation: portrait) and (min-width: 0px) {
    .content--portrait-tablet {
        display: none;
    }

    .main {
        justify-content: flex-start;
        background: image-set(
                url('../img/bg/bg_mobile@1x.webp') 1x,
                url('../img/bg/bg_mobile@2x.webp') 2x
        ) no-repeat center center;
        background-size: cover;
    }

    .main::before {
        background: image-set(
                url('../img/bg/bg_mask_mobile@1x.webp') 1x,
                url('../img/bg/bg_mask_mobile@2x.webp') 2x
        ) no-repeat center center;
        background-size: cover;
    }

    .content--portrait-mobile {
        padding: 15px 15px 10px;
    }

    .description {
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: clamp(10px, 3vw, 20px);
    }

    .top {
        height: 45vh;
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        width: clamp(180px, 35vw, 330px);
        margin-bottom: clamp(10px, 3vw, 60px);
    }

    .girl {
        height: 85%;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .chips {
        width: clamp(80px, 10vw, 290px);
        right: 10%;
        top: 15%;
    }

    .wheel {
        width: 100%;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
    }

    .btn {
        margin-top: auto;
        font-size: clamp(30px, 5vw, 100px);
        border-radius: 14px;
    }

    .btn__text {
        position: relative;
        top: 3px;
    }

    .bottom {
        width: 100%;
    }

    .glide__slide {
        width: 100%;
        height: 100%;
    }

    .tab {
        max-width: 260px;
        margin: 0 auto;
    }

    .animated-text {
        margin-bottom: 10px;
    }

    .blue-mask--bottom {
        inset: auto;
        z-index: 0;
        left: 0;
        right: 0;
    }

    .red_coin {
        bottom: 80%;
        left: -30%;
        width: clamp(30px, 7vw, 95px);
    }

    .white_coin {
        bottom: 50%;
        left: 110%;
        width: clamp(36px, 7vw, 98px);
    }

    .blue_coin {
        bottom: 60%;
        right: 110%;
        width: clamp(30px, 7vw, 75px);
    }

    .yellow_coin {
        bottom: 25%;
        right: 120%;
        width: clamp(28px, 7vw, 85px);
    }

    .green_coin {
        bottom: 30%;
        left: 110%;
        width: clamp(32px, 7vw, 87px);
    }
}

@media (orientation: portrait) and (min-width: 400px) and (min-height: 800px) {
    .top {
        height: 52vh;
    }

    .red_coin {
        width: clamp(30px, 8vw, 95px);
    }

    .white_coin {
        width: clamp(36px, 8vw, 98px);
    }

    .blue_coin {
        width: clamp(30px, 8vw, 75px);
    }

    .yellow_coin {
        width: clamp(28px, 8vw, 85px);
    }

    .green_coin {
        width: clamp(32px, 8vw, 87px);
    }
}

@media (orientation: portrait) and (min-width: 600px) {
    .content--portrait-mobile,
    .description--portrait-mobile,
    .blue-mask--top {
        display: none;
    }

    .content--portrait-tablet {
        display: flex;
        height: 100%;
        padding: clamp(30px, 5vw, 80px)  clamp(20px, 5vw, 60px) clamp(30px, 6vw, 100px);
    }

    .main {
        background: image-set(
                url('../img/bg/bg_desktop@1x.webp') 1x,
                url('../img/bg/bg_desktop@2x.webp') 2x
        ) no-repeat center center;
        background-size: cover;
    }

    .main::before {
        background: image-set(
                url('../img/bg/bg_mask_desktop@1x.webp') 1x,
                url('../img/bg/bg_mask_desktop@2x.webp') 2x
        ) no-repeat center center;
        background-size: cover;
    }

    .description {
        max-width: 52%;
    }

    .tabs {
        width: 100%;
        max-width: 100%;
    }

    .tab:nth-child(1),
    .tab:nth-child(3) {
        width: calc(100% / 3 - 15px);
    }

    .tab:nth-child(2) {
        width: calc(100% / 3 - 30px);
    }

    .girl {
        height: 70%;
        right: 250px;
        bottom: 130px;
        left: calc(100% - 30px);
        transform: translateX(-100%);
    }

    .chips {
        width: clamp(100px, 10vw, 290px);
        right: -1%;
        top: 18%;
    }

    .wheel {
        width: 80%;
        bottom: 11%;
        left: 4%;
        transform: translateX(0%);
    }

    .blue-mask--top {
        display: none;
    }

    .blue-mask--bottom {
        background-position: center bottom;
        inset: auto;
        left: 0;
        right: 0;
        bottom: -40%;
        z-index: 4;
    }

    .red_coin {
        bottom: 100%;
        left: 0;
    }

    .white_coin {
        bottom: 100%;
        right: auto;
        left: 70%;
    }

    .blue_coin {
        bottom: 80%;
        right: 90%;
    }

    .yellow_coin {
        bottom: 45%;
        right: 100%;
    }

    .green_coin {
        bottom: 30%;
        left: 85%;
    }

    .red_coin {
        width: clamp(30px, 6vw, 95px);
    }

    .white_coin {
        width: clamp(36px, 6vw, 98px);
    }

    .blue_coin {
        width: clamp(30px, 6vw, 75px);
    }

    .yellow_coin {
        width: clamp(28px, 6vw, 85px);
    }

    .green_coin {
        width: clamp(32px, 6vw, 87px);
    }
}

@media (orientation: portrait) and (min-width: 600px) and (min-height: 900px) {
    .red_coin {
        width: clamp(40px, 9vw, 95px);
    }

    .white_coin {
        width: clamp(46px, 9vw, 98px);
    }

    .blue_coin {
        width: clamp(40px, 9vw, 75px);
    }

    .yellow_coin {
        width: clamp(38px, 9vw, 85px);
    }

    .green_coin {
        width: clamp(42px, 9vw, 87px);
    }
}

@media (orientation: portrait) and (min-width: 1024px) and (min-height: 900px) {
    .red_coin {
        width: clamp(40px, 7vw, 95px);
    }

    .white_coin {
        width: clamp(46px, 7vw, 98px);
    }

    .blue_coin {
        width: clamp(40px, 7vw, 75px);
    }

    .yellow_coin {
        width: clamp(38px, 7vw, 85px);
    }

    .green_coin {
        width: clamp(42px, 7vw, 87px);
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    .content--portrait-mobile {
        display: none;
    }

    .content--landscape {
        max-width: clamp(700px, 70vw, 1600px);
        gap: clamp(10px, 2vw, 48px);
    }

    .main {
        padding: 15px;
        background: image-set(
                url('../img/bg/bg_desktop@1x.webp') 1x,
                url('../img/bg/bg_desktop@2x.webp') 2x
        ) no-repeat center center;
        background-size: cover;
    }

    .main::before {
        background: image-set(
                url('../img/bg/bg_mask_desktop@1x.webp') 1x,
                url('../img/bg/bg_mask_desktop@2x.webp') 2x
        ) no-repeat center center;
        background-size: cover;
    }

    .description {
        max-width: 40%;
    }

    .logo {
        width: clamp(100px, 20vw, 452px);
        margin-bottom: clamp(10px, 1vw, 60px);
    }

    .tab:nth-child(1),
    .tab:nth-child(3) {
        width: calc(100% / 3 - 15px);
    }

    .tab:nth-child(2) {
        width: calc(100% / 3 - 30px);
    }

    .btn {
        margin-top: auto;
        font-size: clamp(16px, 4vw, 100px);
        border-radius: 14px;
        padding: 10px clamp(40px, 3.5vw, 75px);
    }

    .btn__text {
        top: 2px;
    }

    .animated-text {
        margin-bottom: clamp(10px, 2vw, 20px);
    }

    .girl {
        height: 100%;
        right: clamp(50px, 10vw, 150px);
        bottom: 0;
    }

    .chips {
        width: clamp(60px, 10vw, 290px);
        right: 0;
    }

    .wheel {
        width: 60%;
        max-width: 970px;
        right: 0;
        bottom: 15%;
    }

    .blue-mask--bottom {
        inset: auto;
        left: 0;
        right: 0;
        bottom: -35%;
        z-index: 4;
    }

    .red_coin {
        width: clamp(30px, 4vw, 95px);
    }

    .white_coin {
        width: clamp(36px, 4vw, 98px);
    }

    .blue_coin {
        width: clamp(30px, 4vw, 75px);
    }

    .yellow_coin {
        width: clamp(28px, 4vw, 85px);
    }

    .green_coin {
        width: clamp(32px, 4vw, 87px);
    }
}

@media (orientation: landscape) and (min-width: 1024px) and (min-height: 600px) {
    .logo {
        margin-bottom: clamp(10px, 3vw, 60px);
    }

    .btn__text {
        top: 4px;
    }

    .content--landscape {
        max-width: clamp(700px, 90vw, 1400px);
    }

    .blue-mask--bottom {
        inset: auto;
        left: 0;
        right: 0;
        bottom: -30%;
        z-index: 4;
    }
}

@media (orientation: landscape) and (min-width: 1440px) and (min-height: 940px) {
    .description {
        max-width: 52%;
    }

    .animated-text {
        width: 100%;
    }

    .wheel {
        right: -5%;
        bottom: 15%;
    }

    .btn__text {
        top: 7px;
    }

    .red_coin {
        bottom: 100%;
        left: 0;
    }

    .white_coin {
        bottom: 100%;
        right: 0;
    }

    .blue_coin {
        bottom: 80%;
        right: 110%;
    }

    .yellow_coin {
        bottom: 45%;
        right: 115%;
    }

    .green_coin {
        bottom: 30%;
        left: 115%;
    }
}

@media (orientation: landscape) and (min-width: 1600px) and (min-height: 1250px) {
    .content--landscape {
        max-width: clamp(700px, 90vw, 1600px);
    }
}

@keyframes hover-pulse-green {
    0% { box-shadow: 0 0 0 0 #13AA65; }
}

@-webkit-keyframes hover-pulse-green {
    0% { box-shadow: 0 0 0 0 #13AA65; }
}

@keyframes hover-pulse-violet {
    0% { box-shadow: 0 0 0 0 rgb(111, 53, 174); }
}

@-webkit-keyframes hover-pulse-violet {
    0% { box-shadow: 0 0 0 0 #13AA65; }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        -webkit-opacity: 0;
    }
    30% {
        opacity: 1;
        -webkit-opacity: 1;
    }
    70% {
        opacity: 1;
        -webkit-opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-opacity: 0;
    }
}

@-webkit-keyframes fadeInOut {
    0% {
        opacity: 0;
        -webkit-opacity: 0;
    }
    30% {
        opacity: 1;
        -webkit-opacity: 1;
    }
    70% {
        opacity: 1;
        -webkit-opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-opacity: 0;
    }
}

@keyframes coin-wiggle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-1px, 1px) rotate(-2deg);
    }
    50% {
        transform: translate(1px, -1px) rotate(1.5deg);
    }
    75% {
        transform: translate(-0.5px, 1.5px) rotate(-1deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@-webkit-keyframes coin-wiggle {
    0% {
        -webkit-transform: translate(0, 0) rotate(0deg);
    }
    25% {
        -webkit-transform: translate(-1px, 1px) rotate(-2deg);
    }
    50% {
        -webkit-transform: translate(1px, -1px) rotate(1.5deg);
    }
    75% {
        -webkit-transform: translate(-0.5px, 1.5px) rotate(-1deg);
    }
    100% {
        -webkit-transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes coin-float {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(0.8px, -0.8px) rotate(0.4deg);
    }
    50% {
        transform: translate(-0.8px, 0.8px) rotate(-0.4deg);
    }
    75% {
        transform: translate(0.6px, -0.6px) rotate(0.2deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

@-webkit-keyframes coin-float {
    0% {
        -webkit-transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        -webkit-transform: translate(0.8px, -0.8px) rotate(0.4deg);
    }
    50% {
        -webkit-transform: translate(-0.8px, 0.8px) rotate(-0.4deg);
    }
    75% {
        -webkit-transform: translate(0.6px, -0.6px) rotate(0.2deg);
    }
    100% {
        -webkit-transform: translate(0px, 0px) rotate(0deg);
    }
}
