@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

:root {
    --header-background-color: #292E3F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    background-color: #EBEDF5;
}

.mt-60 {
    margin-top: 60px;
}

.inline-text {
    display: inline-block;
}

.relative {
    position: relative;
}

.wrap {
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

header.header {
    background-color: var(--header-background-color);
    padding: 10px 0;

    & > div {
        padding: 0 15px;

        a {
            display: block;
        }
    }
}

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: block;
    padding: 15px 30px;
    gap: 10px;
    border-radius: 40px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    text-transform: uppercase;
    background-color: #94D14F;
    color: #000;
    text-decoration: none;

    @media screen and (max-width: 1023px) {
        max-width: 320px;
        width: 100%;
    }

    &:hover {
        background-color: #A1E456;
    }
}

.hero {
    position: relative;
    padding: 20px 85px 0 85px;
    background: url("images/hero-background.png") no-repeat top center;

    @media screen and (max-width: 1023px) {
        padding: 20px 20px 0 20px;
    }

    @media screen and (max-width: 768px) {
        background: url("images/hero-background-768x.png") no-repeat bottom center;
        padding: 20px 0 40px 20px;
    }

    & img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    & .hero__col {
        position: relative;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 100%;
        z-index: 1;
        width: 100%;
        align-self: flex-start;
    }

    & .hero__top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        overflow: hidden;
        gap: 0;

        @media screen and (max-width: 768px) {
            gap: 20px;
        }

        & .hero__e-ticket {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;

            & > img {
                flex: 0 1 auto;
                min-width: 0;
                margin-right: 20px;
                display: inline-block;
                height: auto;

                &:first-child {
                    width: 155.52px;
                }

                &:last-child {
                    width: 232.32px;
                }
            }
        }
    }

    & .hero__bottom {
        min-height: 297px;
        overflow: visible;
        background: url("images/hero-mobile.png") no-repeat bottom right;

        @media screen and (max-width: 768px) {
            background: url("images/hero-mobile-768x.png") no-repeat top right;
        }
    }

    & p {
        position: relative;
        z-index: 0;
        color: #fff;
        font-family: 'Roboto', sans-serif;
        font-size: 17px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: 0.04em;
        max-width: 660px;

        @media screen and (max-width: 768px) {
            max-width: 550px;
        }

        &.hero__text--big {
            font-size: 36px;
            font-weight: 700;
            line-height: 111.11%;
            letter-spacing: 0.02em;
            word-wrap: break-word;
            text-shadow: 1px 2px 5px rgba(108, 72, 157, 0.54);
            margin-bottom: 14px;

            @media screen and (min-width: 481px) and (max-width: 768px) {
                font-size: 29px;
            }

            & span {
                display: inline-block;
            }

            & .hero__text--big--highlight {
                display: inline-block;
                font-size: 46px;

                @media screen and (min-width: 481px) and (max-width: 768px) {
                    font-size: 29px;
                }
            }
        }

        &::before {
            content: "";
            position: absolute;
            left: -40px;
            right: 0;
            top: 0;
            bottom: 0;
            border-radius: 50%;
            background: rgba(0, 0, 0, 1);
            filter: blur(20px);
            z-index: -1;
        }
    }

    & .hero__buttons {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin: 20px 0 0;

        & * {
            flex-grow: 0;
            flex-shrink: 0;
            flex-basis: auto;
        }
    }

    @media screen and (min-width: 769px) and (max-width: 1023px) {
        & .hero__bottom {
            min-height: 29.0323vw;
            background-size: 18.8661vw 29.0323vw;
        }

        & .hero__bottom > p {
            max-width: 64.5161vw;
            font-size: clamp(15px, 1.6618vw, 17px);

            &.hero__text--big {
                font-size: 3.5191vw;

                & .hero__text--big--highlight {
                    font-size: 4.4966vw;
                }
            }
        }

        & .hero__bottom > .hero__buttons {
            gap: 0.9775vw;
            margin: 1.955vw 0;

            & .btn {
                max-width: 31.2805vw;
                padding: 1.4663vw 2.9326vw;
                border-radius: 3.91vw;
                font-size: 1.955vw;
                line-height: 2.9326vw;
            }
        }
    }

    @media screen and (min-width: 320px) and (max-width: 768px) {
        & .hero__top {
            padding-right: 20px;
        }

        & .hero__bottom {
            background-size: auto 100%;
        }

        & .hero__bottom > p {
            max-width: 71.6146vw;
            font-size: clamp(15px, 2.2135vw, 17px);

            &.hero__text--big {
                font-size: clamp(20px, 3.776vw, 29px);

                & .hero__text--big--highlight {
                    font-size: clamp(20px, 3.776vw, 29px);
                }
            }
        }

        & .hero__buttons {
            margin: 30px 0 0;
            flex-direction: column;
            padding-right: 20px;

            & .btn {
                padding: 15px 0;
            }
        }
    }
}

.extra-chance {
    background: url("images/bg-slime.png") top center / 100% auto no-repeat,
        linear-gradient(to top, #450022 0%, rgba(183, 38, 42, 1) 100%);

    & img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    & .extra-chance-inner {
        position: relative;
        display: flex;
        margin: 0 85px;
        padding: 70px 0;

        @media screen and (min-width: 769px) and (max-width: 1023px) {
            margin: 0 20px;

            & > .extra-chance__box {
                & p {
                    font-size: 2.2483vw;
                }

                & .extra-chance__box--title {
                    & > p {
                        font-size: 3.6168vw;
                    }

                    & .extra-chance__box--extra-chance {
                        width: 11.827vw;
                        height: 11.9257vw;

                        & img {
                            width: 100%;
                            height: auto;
                        }
                    }
                }

                & .extra-chance__box--subtitle {
                    font-size: 2.4438vw;
                }
            }
        }

        @media screen and (max-width: 768px) {
            margin: 0 20px;
            flex-wrap: wrap;
            gap: 20px;
        }

        & > .extra-chance__box {
            flex: 1 1 50%;

            & p {
                font-family: 'Roboto', sans-serif;
                font-weight: 400;
                font-size: 23px;
                color: #fff;
                line-height: 110%;
                letter-spacing: 0.04em;
            }

            & .extra-chance__box--title {
                display: flex;
                gap: 10px;
                align-items: center;
                margin-bottom: 10px;

                & > p {
                    font-weight: 700;
                    font-size: 37px;
                    vertical-align: middle;
                    letter-spacing: 0.04em;
                }

                & .extra-chance__box--extra-chance {
                    flex-shrink: 0;
                }
            }

            & .extra-chance__box--subtitle {
                font-weight: 700;
                font-size: 25px;
                margin-bottom: 12px;
                letter-spacing: 0.04em;
            }

            &.extra-chance__box--pumpkin {
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: -webkit-center;
                max-width: 430px;

                @media screen and (max-width: 1023px) {
                    max-width: 100%;
                }
            }
        }
    }

    @media screen and (min-width: 320px) and (max-width: 480px) {
        & .extra-chance-inner > .extra-chance__box--texts {
            & p {
                font-size: 4.7917vw;
            }

            & .extra-chance__box--title {
                & > p {
                    font-size: 7.7083vw;
                }

                & .extra-chance__box--extra-chance {
                    width: 25.2083vw;
                    height: 25.4167vw;

                    & img {
                        width: 100%;
                        height: auto;
                    }
                }
            }

            & .extra-chance__box--subtitle {
                font-size: 5.2083vw;
            }
        }
    }
}

.fifty-chance {
    position: relative;
    background: linear-gradient(to bottom, #450022 0%, rgba(183, 38, 42, 1) 100%);
    width: 100%;

    & .fifty-chance__background {
        display: block;
        width: 100%;
        height: auto;
    }

    & .fifty-chance__content {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    & .fifty-chance--title {
        padding-top: 75px;
        margin: 0 auto;
        text-align: center;

        @media screen and (max-width: 768px) {
            text-align: left;
            padding: 40px 20px 0;
            margin: 0;
        }

        & p {
            color: rgba(30, 218, 0);
            font-size: 55px;
            font-family: 'Abhaya Libre', serif;
            font-weight: 500;
            line-height: 78%;
            word-wrap: break-word;
            text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.64);

            & span {
                font-size: 64.33px;
                line-height: 78%;
                font-weight: 800;
            }
        }
    }

    & .fifty-chance--text {
        width: 915px;
        text-align: left;
        padding: 85px 0 0 170px;

        @media screen and (max-width: 768px) {
            padding: 55px 20px 0;
            width: 750px;
        }

        & p {
            color: #000;
            font-size: 25px;
            font-family: 'Roboto', sans-serif;
            font-weight: 400;
            line-height: 110%;
            letter-spacing: 0.04em;
            word-wrap: break-word;
        }
    }

    @media screen and (min-width: 769px) and (max-width: 1200px) {
        & .fifty-chance--title {
            padding-top: 6.25vw;

            & p {
                font-size: 4.5833vw;

                & span {
                    font-size: 5.3608vw;
                }
            }
        }

        & .fifty-chance--text {
            width: 76.25vw;
            padding: 7.0833vw 0 0 14.1667vw;

            & p {
                font-size: 2.0833vw;
            }
        }

    }

    @media screen and (min-width: 320px) and (max-width: 768px) {
        & .fifty-chance--title {
            padding: 7.1615vw 2.6042vw 0;
            margin: 0;

            & p {
                font-size: 9.375vw;

                & span {
                    font-size: 10.15625vw;
                }
            }
        }

        & .fifty-chance--text {
            padding: 7.1615vw 2.6042vw 0;
            width: 100%;
            margin: 0;

            & p {
                font-size: clamp(16px, 3.2552vw, 25px);
            }
        }
    }

    @media screen and (min-width: 320px) and (max-width: 480px) {
        & .fifty-chance--text {
            & p {
                font-size: 3.2552vw;
            }
        }
    }
}

.game {
    position: relative;
    background: url("images/wall.png") repeat;

    @media screen and (max-width: 768px) {
        padding: 20px 0 0;
    }

    & > .cauldrons {
        display: flex;
        flex-wrap: wrap;
        gap: 19px;
        padding: 9px;
        counter-reset: cauldrons-counter;
        counter-set: cauldrons-counter 0;
        user-select: none;
        max-width: 1024px;
        margin: 0 auto;

        @media screen and (min-width: 768px) and (max-width: 1023px) {
            max-width: 768px;
            gap: 15px;
            padding: 7.5px 14px;
        }

        @media screen and (min-width: 601px) and (max-width: 768px) {
            max-width: 601px;
            gap: 13px;
            padding: 7.5px 14px;
        }

        @media screen and (min-width: 481px) and (max-width: 600px) {
            max-width: 481px;
            gap: 17px;
            padding: 7.5px 14px;
        }

        @media screen and (max-width: 480px) {
            padding: 7.5px 14px;
            max-width: 320px;
            gap: 14px;
        }

        & .cauldrons__item {
            position: relative;
            aspect-ratio: 1/1;
            width: 100%;
            height: 100%;
            max-width: 185px;
            max-height: 185px;
            counter-increment: cauldrons-counter;

            @media screen and (min-width: 601px) and (max-width: 1023px) {
                max-width: 133px;
                max-height: 133px;
            }

            @media screen and (max-width: 600px) {
                max-width: 139px;
                max-height: 139px;
            }

            &.cauldrons__item--last {
                max-width: 590px;
                aspect-ratio: auto;
                height: 139px;

                @media screen and (max-width: 1023px) {
                    max-width: 380px;

                    & img {
                        max-width: unset;
                        width: 99%;
                    }
                }

                @media screen and (min-width: 769px) and (max-width: 1023px) {
                    max-width: 428px;
                    height: 133px;
                }

                @media screen and (min-width: 601px) and (max-width: 768px) {
                    max-width: 281px;
                    height: 133px;
                }

                @media screen and (min-width: 481px) and (max-width: 600px) {
                    max-width: 296px;
                }

                @media screen and (max-width: 480px) {
                    max-width: 292px;
                }
            }

            &.cauldrons__item--active {
                cursor: pointer;

                &:not(.cauldrons__item--opened) {
                    animation: pulse-animation 2s infinite;
                }
            }

            & a {
                position: absolute;
                display: block;
                width: 100%;
                height: 100%;
                z-index: 1;
                top: 0;
                left: 0;
            }

            & img {
                max-width: 100%;
                height: auto;
                display: block;
                width: 100%;
            }
        }

        & .alchemy-accessories {
            position: absolute;
            width: 901px;
            height: 220px;
            background: url('images/alchemy-accessories.png') no-repeat center top;
            bottom: 0;
            right: 0;
            background-size: contain;

            @media screen and (min-width: 1101px) and (max-width: 1188px) {
                right: -100px;
            }

            @media screen and (min-width: 1024px) and (max-width: 1100px) {
                right: -180px;
            }

            @media screen and (min-width: 901px) and (max-width: 1023px) {
                height: 160px;
                right: -120px;
            }

            @media screen and (min-width: 769px) and (max-width: 900px) {
                height: 160px;
                right: -180px;
            }

            @media screen and (min-width: 601px) and (max-width: 768px) {
                height: 160px;
                right: -350px;
            }

            @media screen and (min-width: 481px) and (max-width: 600px) {
                display: none;
            }

            @media screen and (min-width: 320px) and (max-width: 480px) {
                background: url('images/alchemy-accessories-480x.png') no-repeat center top;
                width: 151px;
                height: 159px;
            }
        }
    }
}

.text__content {
    background: url("images/bg-slime-2.png") top center / 100% auto no-repeat, #5D5A74;
    color: #FFF;
    padding: 40px 14px 60px;

    & h2 {
        text-align: center;
        font-family: 'Roboto', sans-serif;
        font-size: 38px;
        font-style: normal;
        font-weight: 700;
        line-height: 110%;
        letter-spacing: 0.04em;
        margin-bottom: 40px;

        @media screen and (max-width: 480px) {
            font-size: 25px;
        }
    }

    & p > a {
        text-decoration: underline;
        color: #FFFFFF;
    }

    & > p {
        font-family: 'Roboto', sans-serif;
        font-size: 21px;
        font-style: normal;
        font-weight: 400;
        letter-spacing: 0.04em;
        line-height: 110%;
        margin-left: auto;
        margin-right: auto;
        max-width: 1027px;

        &:not(:last-child) {
            margin-bottom: 24px;
        }

        @media screen and (max-width: 1023px) {
            font-size: 15px;
            letter-spacing: 0.04em;

            &:not(:last-child) {
                margin-bottom: 15px;
            }
        }
    }

    & .text__content--content {
        display: flex;
        align-items: center;
        gap: 33px;
        margin: 0 0 40px;

        @media screen and (max-width: 768px) {
            flex-direction: column;
            gap: 20px;
            margin: 0 auto 20px;
        }

        & > div {
            &:first-child {
                @media screen and (min-width: 768px) {
                    flex: none;
                }
            }
        }

        & .text__content--content__highlight {
            color: #F66C10;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.50);
            font-family: "Abhaya Libre", serif;
            font-weight: 800;
            font-size: 51px;
            line-height: 45.29%;
            letter-spacing: 0.02em;

            @media screen and (max-width: 480px) {
                font-size: 38px;
                text-align: center;
                line-height: 110%;
            }

            & span {
                font-size: 70px;
                letter-spacing: 0.02em;
                line-height: 110%;

                @media screen and (max-width: 480px) {
                    font-size: 52px;
                }
            }
        }

        & .text__content--content__simple {
            font-family: 'Roboto', sans-serif;
            font-size: 21px;
            font-style: normal;
            font-weight: 400;
            line-height: 110%;
            letter-spacing: 0.04em;
            padding-bottom: 10px;
        }
    }

    & .text__content--grid_content {
        max-width: 1024px;

        @media screen and (min-width: 1024px) {
            gap: 93px;
            margin: 0 auto 60px auto;
        }

        @media screen and (max-width: 1023px) {
            margin: 0 auto 20px auto;
        }

        @media screen and (min-width: 700px) {
            gap: 34px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        & .text__content--grid_content__item {
            max-width: 280px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 34px;
            margin: 0 auto;

            @media screen and (max-width: 1023px) {
                max-width: 188px;
                gap: 12px;
            }

            @media screen and (max-width: 700px) {
                &:not(:last-child) {
                    margin-bottom: 20px;
                }
            }

            & p {
                text-align: center;
                font-family: 'Roboto', sans-serif;
                font-size: 22px;
                font-style: normal;
                font-weight: 500;
                line-height: 110%;
                letter-spacing: 0.02em;

                @media screen and (max-width: 1023px) {
                    font-size: 15px;
                    letter-spacing: 0.02em;
                }

                &.text__content--grid_content__item__title {
                    color: #fff;
                    text-align: center;
                    font-family: 'Roboto', sans-serif;
                    font-size: 26px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 110%;
                    letter-spacing: 0.02em;
                    border-radius: 8px;
                    background: #292338;
                    padding: 10px;

                    @media screen and (max-width: 1023px) {
                        font-size: 18px;
                        letter-spacing: 0.02em;
                    }
                }
            }
        }
    }

    & .text__content--cta {
        display: flex;
        place-content: center;
        margin-bottom: 124px;

        @media screen and (max-width: 1023px) {
            margin-bottom: 40px;
        }
    }

    & .text__content--buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 80px;
        justify-content: center;
        align-items: center;

        @media screen and (max-width: 1023px) {
            gap: 20px;
        }
    }
}

footer {
    font-family: 'Roboto', sans-serif;
    color: #FFF;

    a {
        display: inline-block;
        white-space: nowrap;
        color: #FFF;
        text-decoration: none;
    }

    & .footer__top {
        background-color: #2a2e3f;
        padding: 35px 0;

        & .footer__top__inner {
            display: flex;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            justify-content: space-between;

            @media screen and (max-width: 768px) {
                flex-direction: column;
                gap: 20px;
                align-items: center;
                text-align: center;
            }

            & > div {
                flex: 1 1 100%;

                &.footer__top__left {
                    & ul {
                        margin: 0;
                        padding: 0;
                        list-style: none;
                        display: flex;
                        align-items: center;
                        gap: 30px;

                        @media screen and (max-width: 768px) {
                            flex-direction: column;
                            gap: 20px;
                            align-items: center;
                            text-align: center;
                        }

                        & li {
                            & a {
                                text-decoration: none;
                                color: #FFF;
                                display: flex;
                                align-items: center;

                                img {
                                    margin-right: 6px;
                                    filter: brightness(0) saturate(100%) invert(94%) sepia(9%) saturate(3559%) hue-rotate(24deg) brightness(88%) contrast(82%);
                                    max-height: 20px;
                                }
                            }
                        }
                    }
                }

                &.footer__top__right {
                    text-align: right;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-end;

                    @media screen and (max-width: 768px) {
                        flex-direction: column;
                        align-items: center;
                        text-align: center;
                    }

                    ul {
                        margin: 0;
                        padding: 0;
                        list-style: none;
                        display: flex;
                        align-items: center;
                        gap: 10px;

                        & li {
                            & a {
                                text-decoration: none;
                                display: block;

                                img {
                                    filter: brightness(0) saturate(100%) invert(94%) sepia(9%) saturate(3559%) hue-rotate(24deg) brightness(88%) contrast(82%);
                                    height: 28px;
                                }
                            }
                        }
                    }
                }
            }
        }

        & p {
            font-family: 'Oswald', sans-serif;
            font-size: 20px;
            text-transform: uppercase;
            margin-bottom: 15px;
        }
    }

    & .footer__bottom {
        background: #93cf2c;
        text-align: center;
        padding: 40px 0;

        p {
            text-align: left;
            font-size: 12px;
        }

        & .footer__bottom__inner {
            max-width: 1200px;
            padding: 0 15px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;

            @media screen and (max-width: 768px) {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 30px;
            }
        }

        & .footer__bottom__item {
            display: flex;
            align-items: center;
            gap: 10px;

            @media screen and (max-width: 768px) {
                flex-direction: column;
                justify-content: center;
                text-align: center;
                gap: 0;

                p {
                    text-align: center;
                }
            }

            & .footer__bottom__item__logo--18 img {
                width: 56px;
                height: 56px;
            }
        }
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;

    & img {
        max-width: 100%;
        height: auto;
    }

    &.modal--visible {
        display: flex;
    }

    & .modal__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    & .modal__content {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 1024px;
        margin: 0 16px;
        padding: 40px;
        border-radius: 16px;
        background: #2B2F3E;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        box-sizing: border-box;
        color: #fff;

        @media (max-width: 480px) {
            padding: 20px 16px 16px;
            border-radius: 12px;
        }

        & .modal__scroll {
            max-height: calc(90vh - 40px);
            overflow-y: auto;
        }

        & .modal__close {
            position: absolute;
            top: -16px;
            right: -16px;
            width: 32px;
            height: 32px;
            padding: 0;
            border: none;
            background: transparent url("images/close.png") no-repeat center center;
            background-size: contain;
            cursor: pointer;
        }

        & .modal__body {
            font-family: 'Roboto', sans-serif;
            text-align: center;
            max-width: 671px;
            margin: 0 auto;
        }

        & .modal__title {
            font-size: 60px;
            font-family: 'Abhaya Libre', sans-serif;
            font-weight: 600;
            line-height: 110%;
            padding-bottom: 16px;
        }

        & .modal__text {
            font-size: 20px;
            font-family: 'Roboto', sans-serif;
            font-weight: 500;
            margin-bottom: 20px;
            line-height: 110%;
            letter-spacing: 0.04em;
            text-align: left;
        }

        & .modal__screen-top {
            height: 50px;
            background: #000000;
        }

        & .modal__video {
            background: #000000;
            height: auto;
            width: 100%;

            & video {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }

        & .modal__screen-bottom {
            height: 80px;
            background: #000000;

            & > .btn {
                background: #FFAF1C;
                color: #000;
                width: 100%;
                max-width: 300px;
                margin: 0 auto;
                display: none;

                &.visible {
                    display: block;
                }

                &:hover {
                    background: #FFCE1C;
                }
            }
        }
    }
}

@media screen and (min-width: 320px) and (max-width: 768px) {
    .modal .modal__content .modal__title {
        font-size: clamp(38px, 7.8125vw, 60px);
        padding-bottom: 2.0833vw;
    }

    .modal .modal__content .modal__text {
        font-size: clamp(15px, 2.6042vw, 20px);
        margin-bottom: 2.6042vw;
    }
}