@font-face {
    font-family: 'made-tommy';
    src: url('../fonts/made-tommy-black.woff2') format('woff2'),
         url('../fonts/made-tommy-black.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.made-tommy {
    font-family: 'made-tommy', sans-serif;
}
:root {
    --popup-width: 630px;
    --popup-height: 660px;
    --close-x: 26px;
    --close-y: 26px;
    --text-dist: 60px;
    --submit-width: 136px;
    --submit-height: 45px;
    --submit-radius: 23px;
    --submit-fontsize: 1.25em;
    --submit-dist: 30px;
    --thanks-button-dist: 33px;
}
#popup-aug .popup-content {
    width: var(--popup-width);
    height: var(--popup-height);
    padding: 0 15px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../images/hero/popup-back.webp);
    background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x,
            url("../images/hero/popup-back@2x.webp") 2x);
}
#popup-aug .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}
#popup-aug form {
    margin-top: var(--text-dist);
}
#popup-aug .button {
    width: var(--submit-width);
    height: var(--submit-height);
    border-radius: var(--submit-radius);
    font-size: var(--submit-fontsize);
    margin-top: var(--submit-dist);
    padding: 0.2em 0 0;
}
#popup-aug .popup-thanks .button {
    width: 235px;
    margin-top: var(--thanks-button-dist);
}
#popup-aug .popup-game {
    position: relative;
}
#popup-aug .game-text {
    position: absolute;
    top: 10%;
    left: 0%;
    z-index: 3;
    margin-bottom: 0;
    pointer-events: none;
}
#popup-aug .popup-thanks {
    justify-content: flex-end;
}
#popup-aug .thanks-bottom {
    margin: 68px -15px 0;
    max-width: calc(100% + 30px);
    width: calc(100% + 30px);
    padding-top: 38px;
    padding-bottom: 48px;
}
#popup-aug .thanks-bottom p {
    font-size: 25px;
    line-height: 117%;
    width: 550px;
    max-width: calc(100% - 30px);
}
#scratch-aug {
    aspect-ratio: 416 / 563;
    height: auto;
}
@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 13px;
        --close-y: 29px;
        --text-dist: 44px;
        --submit-dist: 33px;
        --thanks-button-dist: 27px;
    }
    #popup-aug .popup-content {
        background-image: url(../images/hero/popup-back-m.webp);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.webp") 1x,
                url("../images/hero/popup-back-m@2x.webp") 2x);
    }
    #popup-aug .popup-close {
        width: 47px;
    }
    #popup-aug .game-text {
        top: 11%;
        left: 12.5%;
    }
    #popup-aug .scratch-wrapper {
        width: 337px;
    }
    #popup-aug .popup-thanks {
    }
    #popup-aug .thanks-main {
        flex-grow: 1;
    }
    #popup-aug .thanks-bottom {
        margin: 0 -15px;
        max-width: calc(100% + 30px);
        width: calc(100% + 30px);
        padding-top: 38px;
        padding-bottom: 48px;
    }
    #popup-aug .thanks-bottom p {
        font-size: 25px;
        line-height: 117%;
        width: 550px;
        max-width: calc(100% - 30px);
    }
}