#popup-oct {
    --popup-width: 704px;
    --popup-height: 498px;
    --close-x: 32px;
    --close-y: 34px;
    --text-dist: 38px;
    --submit-width: 206px;
    --submit-height: 40px;
    --submit-radius: 20px;
    --submit-fontsize: 1.125em;
    --submit-dist: 6.5px;
    --thanks-button-dist: 35px;
    --blue: #2a3b74;
}

html,
body {
    overflow-x: hidden;
}

#popup-oct .popup-content {
    width: 630px;
    height: 660px;
    padding: 0;
    background-image: url(../images/hero/popup-back.jpg);
    background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x,
            url("../images/hero/popup-back@2x.webp") 2x);
}

/* <picture> wrappers must not affect layout of the positioned images */
#popup-oct picture {
    display: contents;
}

#popup-oct .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: 17px;
}

#popup-oct form {
    margin-top: 41px;
    width: 571px;
}

#popup-oct .button {
    display: flex;
    width: 136px;
    padding: 0;
    height: 45px;
    margin-top: 20px;
    border-radius: 54px;
    background-color: #BF1E2E;
    color: #FFF;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

#popup-oct .popup-thanks .button {
    margin-top: 30px;
    width: 235px;
    background-color: #00AEEF;
}

#popup-oct .form-text,
#popup-oct .game-text {
    color: #FFF;
    text-align: center;
    -webkit-text-stroke-width: 6px;
    -webkit-text-stroke-color: #000;
    font-size: 38px;
    font-style: normal;
    font-weight: 700;
    line-height: 50px;
    /* 131.579% */
    paint-order: stroke fill;
}

#popup-oct .game-text {
    top: 20px;
}

#popup-oct .thanks-top {
    color: #FFF;
    text-align: center;
    -webkit-text-stroke-width: 6px;
    -webkit-text-stroke-color: #000;
    font-size: 38px;
    font-style: normal;
    font-weight: 700;
    line-height: 55px;
    /* 144.737% */
    paint-order: stroke fill;
    margin-bottom: 0;
}

#popup-oct .thanks-bottom {
    color: #000;
    text-align: center;
    font-size: 31px;
    font-style: normal;
    font-weight: 600;
    line-height: 42px;
    /* 135.484% */
}

#popup-oct .thanks-note {
    color: #000;
    text-align: center;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 35px;
    /* 125% */
}

#popup-oct .digit-thanks {
    color: #BF1E2E;
    text-align: center;
    font-size: 264.855px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    /* 32.353% */
    margin-bottom: 0;
}

#popup-oct .game-digit {
    color: #BF1E2E;
    text-align: center;
    font-size: 133px;
    font-style: normal;
    font-weight: 700;
    line-height: 0;
    top: 102px;
    position: absolute;
    margin: 0;
}

#popup-oct .scratch-text .text {
    color: #000;
    text-align: center;
    font-size: 27px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    bottom: 47px;
    position: absolute;
    margin: 0;
}

#popup-oct .chest {
    bottom: 0;
}

#popup-oct .scratch-wrapper {
    margin-top: 181px;
    width: 338px;
    height: 338px;
}

@media screen and (min-width: 568px) {
    .cursor-area {
        position: relative;
        border: none;
        cursor: none;
        /* hide real cursor only here */
    }

    #fake-cursor {
        position: absolute;
        width: 94px;
        height: 100px;
        pointer-events: none;
        background-image: url(../images/hero/coin.webp);
        background-size: contain;
        display: none;
        /* hidden by default */
        z-index: 10;
    }
}

@media screen and (max-width: 567px) {
    #popup-oct {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 16px;
        --close-y: 20px;
        --text-dist: 21px;
        --submit-width: 150px;
        --submit-height: 33px;
        --submit-radius: 17px;
        --submit-fontsize: 0.8125em;
        --submit-dist: 10px;
        --thanks-button-dist: 24px;
    }

    #popup-oct .popup-content {
        width: 100%;
        height: 100%;
        background-image: url(../images/hero/popup-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.webp") 1x,
                url("../images/hero/popup-back-m@2x.webp") 2x);
    }

    #popup-oct .form-text,
    #popup-oct .game-text {
        font-size: 6.7cqw;
        line-height: 11cqw;
    }

    #popup-oct form {
        margin-top: 5cqw;
        width: 89%;
    }

    #popup-oct .button {
        width: 35cqw;
        height: 11cqw;
        margin-top: 2cqw;
        border-radius: 5.5cqw;
        font-size: 5.5cqw;
    }

    #popup-oct .scratch-wrapper {
        width: 400px;
        height: auto;
        max-width: 75%;
        /* height: 400px; */
        /* max-height: 90%; */
        aspect-ratio: 1 / 1;
        /* top: 33cqw; */
        position: absolute;
        bottom: 16cqw;
        margin-top: 0;
        /* margin-bottom: 1%; */
    }

    #popup-oct .game-digit {
        font-size: 34cqw;
        top: 37%;
        transform: translateY(-50%);
    }

    #popup-oct .scratch-text .text {
        font-size: 7cqw;
        line-height: 8cqw;
        bottom: 5%;
        transform: translateY(-50%);
    }

    #popup-oct .chest {
        width: 100%;
    }

    #popup-oct .popup-game {
        justify-content: flex-end;
    }

    #popup-oct .game-text {
        margin-bottom: 10cqw;
    }

    #popup-oct .thanks-top {
        font-size: 7cqw;
        line-height: 7cqw;
        margin-bottom: 1cqw;
    }

    #popup-oct .digit-thanks {
        font-size: 42cqw;
        line-height: 42cqw;

    }

    #popup-oct .thanks-bottom {
        font-size: 5.5cqw;
        line-height: 8cqw;
        margin-top: 5cqw;
    }

    #popup-oct .thanks-note {
        font-size: 5cqw;
        line-height: 5cqw;
    }

    #popup-oct .popup-thanks .button {
        width: 58cqw;
    }
}