@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  1.5% {
    transform: rotate(5deg);
  }
  3% {
    transform: rotate(-5deg);
  }
  4.5% {
    transform: rotate(5deg);
  }
  6% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes instantwiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.logo-animation.heartbeat {
  animation: heartbeat 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Logo animation fade in/out */
.logo-animating {
  transition: none;
}
.logo-animating.fade-out {
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-animating.fade-in {
  opacity: 1;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

@font-face {
  font-family: 'Supercell Headline';
  src: url('//cdn.supercell.com/fonts/supercell/supercellheadline/supercellheadline-bold.eot');
  src:
    url('//cdn.supercell.com/fonts/supercell/supercellheadline/supercellheadline-bold.eot#iefix')
      format('embedded-opentype'),
    url('//cdn.supercell.com/fonts/supercell/supercellheadline/supercellheadline-bold.woff2') format('woff2'),
    url('//cdn.supercell.com/fonts/supercell/supercellheadline/supercellheadline-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Regular';
  src:
    local('../fonts/Clash-Regular.woff') format('woff'),
    url('../fonts/Clash-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'CC Back Beat';
  src:
    local('../fonts/SC_CCbackbeat-Light.woff') format('woff'),
    url('../fonts/SC_CCbackbeat-Light.woff2') format('woff2');
  font-display: swap;
}

@keyframes appear-background {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes appear-logo {
  from {
    opacity: 0;
    transform: translateY(10%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appear-goblin {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blink {
  0%,
  90% {
    opacity: 0;
  }
  96% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

* {
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --esse-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  font-family: 'Supercell Headline', sans-serif;
  color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Clash Regular', sans-serif;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
}

body {
  padding: 5% 0 0;
  margin: 0;
  width: 100%;
  min-height: 100dvh;
  /* background-color: #0a0b1a; */
  background-color: #030314;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 11px;

  @media (min-width: 640px) {
    font-size: calc(16 / 1080 * 100vw);
  }

  @media (min-width: 1080px) {
    padding: 48px 0 48px;
    font-size: 16px;
  }
}

.content {
  position: relative;
  width: 100%;
  padding: 1.5em 6.6% 0 6.6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.in-view-listener {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s,
    transform 0.6s;
  transition-delay: 0.2s;
}

.in-view-ready {
  opacity: 1;
  transform: translateY(0);
}

figure {
  margin: 0;
}

.cr-logo-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: calc(180 / 1080 * 100vw);
  max-height: 180px;
  width: 100%;
}

.cr-logo {
  width: calc(220 / 1080 * 100vw);
  max-width: 220px;
  min-width: 160px;
}

.cr-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(10%);
  animation: appear-logo 0.5s var(--esse-back) 0.2s forwards;
}

.pre-title {
  font-family: 'Supercell Headline', sans-serif;
  letter-spacing: 0.9em;
  font-size: 0.6em;
  text-transform: uppercase;
  margin-left: -0.9em;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 115%;
}
.hero-image-container {
  width: 100vw;
  max-width: 1440px;
}

.hero-image {
  aspect-ratio: calc(1080 / 1287);

  @media (min-width: 1080px) {
    width: 1080px;
  }
}

.hero-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-top: calc(180 / 1080 * 100vw);

  @media (min-width: 1080px) {
    margin-top: calc(180px - (90 * ((100vw - 1080px) / 360)));
  }

  @media (min-width: 1440px) {
    margin-top: 90px;
  }
}

.bling-container {
  position: absolute;
}

.hero-image-container .bling-container {
  bottom: 10%;
  left: 0px;
  width: 100%;
  height: 20%;
}

.logo {
  position: absolute;
  padding-left: 0.7em;
  opacity: 0;
  transform: translateY(10%);
  animation: appear-logo 0.5s var(--esse-back) 0.2s forwards;
}

.logo-image {
  width: calc(715 / 1080 * 100vw);
  height: auto;
  max-width: 715px;
  aspect-ratio: calc(715 / 466);
}

.logo-animation {
  position: relative;
  width: calc(590 / 1080 * 100vw);
  max-width: 590px;
  aspect-ratio: calc(590 / 407);
}

.logo-animation img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-container {
  margin-top: calc(-150 / 1080 * 100vw);
  margin-bottom: calc(30 / 1080 * 100vw);

  @media (min-width: 1080px) {
    margin-top: -150px;
    margin-bottom: 30px;
  }
}

.title {
  color: white;
  font-size: 2em;
  text-align: center;
  text-transform: uppercase;

  @media (min-width: 480px) {
    font-size: 3.5em;
  }

  @media (min-width: 1080px) {
    font-size: 60px;
  }
}
.sub-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 0.5em;

  @media (min-width: 480px) {
    font-size: 2.8em;
  }

  @media (min-width: 1080px) {
    font-size: 45px;
  }
}

.fake-games-letter {
  position: relative;
  display: inline-block;
}

.hide-real-letter {
  opacity: 0 !important;
}

.show-fake-letter {
  opacity: 1 !important;
}
.fake-games-img {
  position: absolute;
  left: 0;
  top: 0.1em;
  height: 1em;
  width: auto;
  vertical-align: middle;

  opacity: 0;
  transition: opacity 0.2s;
}

.fake-games-textcontent {
  opacity: 1;
  /* transition: opacity 0.2s delay 0.1s; */
}

[data-fake-letter='02-a'] {
  left: -0.03em;
}

[data-fake-letter='07-m'] {
  left: 0.1em;
}

.body-text {
  font-family: 'Supercell Headline', sans-serif;
  font-size: 1.1em;
  text-align: center;
  text-wrap: balance;

  @media (min-width: 480px) {
    font-size: 1.5em;
  }

  @media (min-width: 1080px) {
    font-size: 30px;
  }
}

.description {
  margin-bottom: calc(128 / 1080 * 100vw);
  text-align: center;

  @media (min-width: 1080px) {
    margin-bottom: 128px;
  }
}

.section-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: calc(60 / 1080 * 100vw);

  @media (min-width: 1080px) {
    margin-bottom: 60px;
  }

  > img {
    width: calc(51 / 1080 * 100vw);
    height: auto;
    object-fit: contain;
    max-width: 51px;
  }
}

/* STEPS */

.steps {
  display: flex;
  flex-direction: column;
  gap: 10%;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;

  background: radial-gradient(circle at center, #242944 0%, transparent 70%);
}

.second-step-graphics,
.third-step-graphics,
.first-step-graphics {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 2em 0 3em;
}

.step-graphics {
  width: 100%;
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fake-knight {
  align-self: flex-end;
  width: calc(347 / 1080 * 100vw);
  aspect-ratio: calc(347 / 311);
  max-width: 347px;
  height: auto;
  transform: translateX(2vw);
}

.fake-princess {
  align-self: center;
  width: calc(195 / 1080 * 100vw);
  aspect-ratio: calc(195 / 263);
  max-width: 195px;
  height: auto;
  transform: translateX(8vw);
  margin-top: 2em;

  @media (min-width: 1080px) {
    transform: translateX(4vw);
  }
}
.gold-and-gems {
  align-self: center;
  width: calc(328 / 1080 * 100vw);
  aspect-ratio: calc(328 / 270);
  max-width: 328px;
  height: auto;
  transform: translate(-4vw, 3vw);
  margin-top: 2em;

  @media (min-width: 1080px) {
    transform: translateX(-8vw);
  }
}

.cart-of-gold {
  align-self: flex-start;
  width: calc(377 / 1080 * 100vw);
  aspect-ratio: calc(377 / 373);
  max-width: 377px;
  height: auto;
  transform: translate(-8vw, -5vw);
}

.step-graphics .bling-container {
  top: 0px;
  left: 0px;
  width: 30%;
  height: 40%;
}

.fake-barbarian {
  align-self: center;
  width: calc(270 / 1080 * 100vw);
  aspect-ratio: calc(270 / 296);
  max-width: 270px;
  height: auto;
}

.chest-of-gems {
  align-self: center;
  width: calc(355 / 1080 * 100vw);
  aspect-ratio: calc(355 / 290);
  max-width: 355px;
  height: auto;
  transform: translate(8vw, 3vw);
}

.store-badge {
  height: calc(90 / 1080 * 100vw);
  width: auto;
  max-height: 90px;
  animation: wiggle 9s ease-in-out infinite;
}

.store-badge:hover {
  animation: instantwiggle 0.3s ease-in-out;
  animation-delay: 0s !important;
}

.badge-container a:first-child .store-badge {
  animation-delay: 0s;
}

.badge-container a:last-child .store-badge {
  animation-delay: 4s;
}

.badge-container a:first-child {
  transform: translate(-2vw, -10%);
}

.badge-container a:last-child {
  transform: translate(2vw, -2%);
}

.scid-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: calc(420 / 1080 * 100vw);
  max-width: 420px;
  min-width: 220px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}

/* FORM */

.form {
  color: black;
  width: calc(980 / 1080 * 100vw);

  max-width: 980px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.form-question {
  height: calc(118 / 1080 * 100vw);
  width: 100%;
  background-image:
    url('../images/form/form-header-start-2.webp'), url('../images/form/form-header-end-2.webp'),
    url('../images/form/form-header-mid.webp');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    left center,
    right center,
    center center;
  background-size:
    auto 100%,
    auto 100%,
    75% 100%;
  max-height: 118px;
  min-height: 64px;
  padding: 12px 60px 12px 40px;
  display: flex;
  align-items: center;
  z-index: 1;

  @media (min-width: 1080px) {
    height: 118px;
  }
}

.form-question-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-question-text {
  font-family: 'Clash Regular', sans-serif;
  font-size: 16px;
  color: white;
  text-align: center;
  text-wrap: balance;

  @media (min-width: 640px) {
    font-size: 1.8em;
  }

  @media (min-width: 1080px) {
    font-size: 28px;
  }
}

.form-copycat-text {
  display: inline-block;
  width: auto;
  height: 1.5em;
  vertical-align: middle;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.form-answer {
  border: 2px solid white;
  border-radius: 0.5em;
  margin: -1em 2em;

  padding: 2em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;

  font-size: 16px;
  color: white;
  text-align: center;

  @media (min-width: 640px) {
    border: 3px solid white;
    margin: -1em 3em;
    font-size: 2.4vw;
  }

  @media (min-width: 1080px) {
    font-size: 20px;
  }
}

.form-option {
  padding: 0.5em 1em;
  border-radius: 2em;
  transition: background-color 0.2s;
  cursor: pointer;
}

.form-option:has(input[type='radio']:checked) {
  background: radial-gradient(ellipse at center, white 0%, #e1e1df 100%);
}

.form-option:has(input[type='radio']:checked) label {
  color: black;
}

.form-answer input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-answer label {
  color: white;
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 1em 0;
}

.slider-container > input[type='range'] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
}

/* Reset the range appearance */

input[type='range'] {
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
  appearance: none;
  width: 100%; /* Specific width is required for Firefox. */
  background: transparent; /* Otherwise white in Chrome */
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type='range']:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

/* End reset */

/* Track */
input[type='range']::-webkit-slider-runnable-track {
  background: #e1e1df;
  height: 1.5em;
  border-radius: 1.5em;
  border: none;
}
input[type='range']::-moz-range-track {
  background: #e1e1df;
  height: 1.5em;
  border-radius: 1.5em;
}

/* Thumb */

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  width: 3em;
  height: 3em;
  background-size: contain;
  cursor: pointer;
  margin-top: -0.75em;
}

input[type='range'][data-type='gem']::-webkit-slider-thumb {
  background: url('../images/form/form-slider-gem.webp') no-repeat center;
  background-size: contain;
}

input[type='range'][data-type='coin']::-webkit-slider-thumb {
  background: url('../images/form/form-slider-coin.webp') no-repeat center;
  background-size: contain;
}

input[type='range']::-moz-range-thumb {
  -moz-appearance: none;
  border: none;
  border-radius: 1.5em;
  width: 3em;
  height: 3em;
  background-size: contain;
  cursor: pointer;
}

input[type='range'][data-type='gem']::-moz-range-thumb {
  background: url('../images/form/form-slider-gem.webp') no-repeat center;
  background-size: contain;
}

input[type='range'][data-type='coin']::-moz-range-thumb {
  background: url('../images/form/form-slider-coin.webp') no-repeat center;
  background-size: contain;
}

/* End of sliders */

.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

.submit-button-container {
  display: flex;
  justify-content: center;
  margin-top: 4em;
}

.submit-button {
  width: calc(335 / 1080 * 100vw);
  aspect-ratio: calc(335 / 98);

  max-width: 335px;
  min-width: 200px;

  background-image: url('../images/form/form-submit-button-green-2.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  /* font-size: 0;
  color: transparent; */
  transition: transform 0.2s var(--esse-back);
  cursor: pointer;

  margin-bottom: calc(60 / 1080 * 100vw);
}

.submit-button-text {
  font-family: 'Clash Regular', sans-serif;
  font-size: 2.6em;
  text-transform: uppercase;
  text-shadow:
    -0.032em -0.032em 0 black,
    0 -0.032em 0 black,
    0.032em -0.032em 0 black,
    0.032em 0 0 black,
    0.032em 0.032em 0 black,
    0.032em 0.064em 0 black,
    0 0.032em 0 black,
    0 0.064em 0 black,
    0 0.096em 0 black,
    -0.032em 0 0 black,
    -0.032em -0.032em 0 black,
    -0.032em 0.064em 0 black;

  @media (min-width: 768px) {
    font-size: 3em;
    text-shadow:
      -0.064em -0.064em 0 black,
      0 -0.064em 0 black,
      0.064em -0.064em 0 black,
      0.064em 0 0 black,
      0.064em 0.064em 0 black,
      0.064em 0.096em 0 black,
      0 0.064em 0 black,
      0 0.096em 0 black,
      0 0.128em 0 black,
      -0.064em 0 0 black,
      -0.064em -0.064em 0 black,
      -0.064em 0.096em 0 black;
  }

  @media (min-width: 1080px) {
    font-size: 48px;
  }
}

.submit-button:hover {
  transform: scale(1.02);
}

.copycat-video {
  width: calc(820 / 1080 * 100vw);
  max-width: 820px;
  min-width: 220px;
  aspect-ratio: 16 / 9;

  margin-bottom: calc(80 / 1080 * 100vw);
}

.imitators {
  margin-bottom: calc(80 / 1080 * 100vw);
}

.footer-container {
  position: relative;
  width: 200%;
  max-width: 1920px;
  transform: translate(25%, 2em);
}

.footer-container .bling-container {
  bottom: 15%;
  left: 10%;
  width: 50%;
  height: 40%;
}

.footer-gold {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rewardModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}

.rewardModalContent {
  width: 100%;
  max-width: 820px;
  margin: auto;
  opacity: 0;
  transform: translateY(2em);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.rewardModalContent.modal-show {
  opacity: 1;
  transform: translateY(0);
}

.reward-message {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  > img {
    width: calc(358 / 1080 * 100vw);
    aspect-ratio: calc(358 / 268);
    max-width: 358px;
    height: auto;
    margin-left: -4em;

    @media (min-width: 1080px) {
      width: 358px;
    }
  }
}

.reward-text {
  width: 100%;
}

/* .form-question::after {
  content: '';
  background-image: url(../images/form-coin.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: -4px;
  top: 0px;
  height: 100%;
  aspect-ratio: calc(72 / 83);
}

.form-question::after img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */
