:root {
  --popup-width: 704px;
  --popup-height: 480px;
  --close-x: 32px;
  --close-y: 34px;
  --text-dist: 38px;
  --submit-width: 221px;
  --submit-height: 42px;
  --submit-radius: 20px;
  --submit-fontsize: 1.125em;
  --submit-dist: 6.5px;
  --thanks-button-dist: 35px;
}

.border-gray {
  border-color: rgb(118, 118, 118);
}

#popup-aug {
  --blue: #2a3b74;
}

#popup-aug-game .game-inner {
  width: 853px;
  height: 552px;
}

form.uni-style .form-field input,
form.uni-style .form-field textarea,
form.uni-style .form-field select {
  border-color: #a3a3a6;
}

#popup-aug .popup-content {
  overflow: hidden;
  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.jpg);
  background-image: -webkit-image-set(url("../images/hero/popup-back.jpg") 1x, url("../images/hero/popup-back@2x.jpg") 2x);
}

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

#popup-aug form {
  margin-top: 25px;
}

#popup-aug .button {
  padding: 0;
  width: 10em;
  height: 2em;
  border-radius: 1em;
  font-size: 1.4em;
  margin-top: 5px;
  line-height: 1;
  padding-top: 2px;
  color: white !important;
  border: none !important;
  z-index: 2;
  background-color: #ed1d24;
}

#popup-aug .popup-thanks .button {
  margin-top: 20px;
}

#popup-aug .form-action {
  text-align: center;
}

#popup-aug .form-text-top {
  font-size: 34px;
  line-height: 1.1;
  text-align: center;
  margin: 0 auto;
  margin-top: 10px;
  letter-spacing: -0.04em;
}

#popup-aug .image {
  bottom: -15px;
  right: -1.5em;
  width: 10em;
}

#popup-aug .thanks-top {
  font-size: 30px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 25px;
}

#popup-aug .thanks-bottom {
  font-size: 24px;
  color: #022247;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  max-width: 400px;
}

#popup-aug .popup-thanks .button {
  margin-top: 27px;
}

#popup-aug .scratch-game {
  width: 275px;
  height: auto;
}
#popup-aug .scratchpad {
  width: 300px;
  height: 382px;
  margin-bottom: -22px;
}

#popup-aug .game-text-top {
  font-size: 27px;
  line-height: 1.2;
}

.cursor-area {
  position: relative;
  border: none;
  cursor: none; /* hide real cursor only here */
}

#popup-aug .thanks-img {
  top: -3em;
  left: -12em;
}

@supports (background: -webkit-named-image(i)) {
  #popup-aug .button {
    padding-top: 2px;
  }
}

@media screen and (min-width: 568px) {
  #fake-cursor {
    position: absolute;
    width: 89px;
    height: 95px;
    pointer-events: none;
    background-image: url(../images/hero/coin.png);
    background-size: contain;
    display: none; /* hidden by default */
    z-index: 10;
  }

  #fake-cursor .game-text {
    margin-top: -3em;
  }
}

@media screen and (max-width: 567px) {
  :root {
    --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-aug .popup-content {
    padding: 0;
    height: 100%;
    width: 100%;
    background-image: url(../images/hero/popup-back-m.jpg);
    background-image: -webkit-image-set(url("../images/hero/popup-back-m.jpg") 1x, url("../images/hero/popup-back-m@2x.jpg") 2x);
  }

  #popup-aug .popup-form {
    width: 100%;
  }

  #popup-aug form.uni-style {
    width: calc(100% - 40px);
  }

  #popup-aug .button {
    font-size: 1.2em;
  }

  #popup-aug .form-text-top {
    font-size: 35px;
    line-height: 39px;
    max-width: 300px;
  }

  #popup-aug .thanks-top {
    font-size: 25px;
    z-index: 1;
    position: relative;
  }

  #popup-aug .thanks-bottom {
    font-size: 22px;
    font-weight: 500;
    max-width: 325px;
    z-index: 1;
    position: relative;
  }

  #popup-aug .popup-game {
    flex-direction: column;
    justify-content: center;
  }

  #fake-cursor .game-text {
    margin-top: 0;
  }
  #popup-aug .game-text-top {
    font-size: 31px;
    margin-bottom: 24px;
    max-width: 313px;
    line-height: 1.1;
  }
  #popup-aug .scratch-game {
    margin-top: 36px;
    width: 275px;
    height: 273px;
  }
  #popup-aug .thanks-img {
    top: unset;
    left: unset;
    right: 0;
    bottom: 0;
    z-index: 0;
  }
  @supports (background: -webkit-named-image(i)) {
    #popup-aug .button {
      padding-top: 2px;
    }
  }
}
