*,
::after,
::before {
  box-sizing: border-box;
}

:root {
  --pixelize-all-corners: polygon(calc(100% - 6px) 0,
  calc(100% - 6px) 2px,
  calc(100% - 4px) 2px,
  calc(100% - 4px) 4px,
  calc(100% - 2px) 4px,
  calc(100% - 2px) 6px,
  100% 6px,
  100% calc(100% - 6px),
  calc(100% - 2px) calc(100% - 6px),
  calc(100% - 2px) calc(100% - 4px),
  calc(100% - 4px) calc(100% - 4px),
  calc(100% - 4px) calc(100% - 2px),
  calc(100% - 6px) calc(100% - 2px),
  calc(100% - 6px) 100%,
  6px 100%,
  6px calc(100% - 2px),
  4px calc(100% - 2px),
  4px calc(100% - 4px),
  2px calc(100% - 4px),
  2px calc(100% - 6px),
  0 calc(100% - 6px),
  0 6px,
  2px 6px,
  2px 4px,
  4px 4px,
  4px 2px,
  6px 2px,
  6px 0);
  --pixelize-right-corners: polygon(calc(100% - 6px) 0,
  calc(100% - 6px) 2px,
  calc(100% - 4px) 2px,
  calc(100% - 4px) 4px,
  calc(100% - 2px) 4px,
  calc(100% - 2px) 6px,
  100% 6px,
  100% calc(100% - 6px),
  calc(100% - 2px) calc(100% - 6px),
  calc(100% - 2px) calc(100% - 4px),
  calc(100% - 4px) calc(100% - 4px),
  calc(100% - 4px) calc(100% - 2px),
  calc(100% - 6px) calc(100% - 2px),
  calc(100% - 6px) 100%,
  0 100%,
  0 0);

}

html {
  width: 100%;
  height: 100%;
  line-height: 1.2;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Gotham A', 'Gotham B', Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  color: #373737;
  -webkit-user-select: none;
  user-select: none;
  background-color: #0e0e0e;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media screen and (max-width: 768px) {
  body {
    touch-action: pan-y;
  }

  .lock-scroll {
    overflow-y: hidden;
    touch-action: none;
  }
}

img {
  max-width: 100%;
  height: auto;
}

.page-wrap {
  width: 100%;
  max-width: 1680px;
  height: 100%;
  margin: auto;
}

.root {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 810px;
  background: url('/images/bg-texture.jpg') no-repeat;
  background-position: center left;
  background-size: cover;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#game-container.game-container--game-over {
  background-color: #71A5A8;
}

#game-container canvas {
  position: absolute;
  top:  0;
  left: 50%;
  display: block;
  margin: auto;
  transform: translate(-50%, -50%);
  transform-origin: top left;
}

/* ===================
    Buttons
   =================== */

.pixel-art-button {
  padding: 18px;
  clip-path: var(--pixelize-all-corners);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 14px;
  color: #373737;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  cursor: pointer;
  background-color: #ffb81c;
  border: 0;
  appearance: none;
}

.pixel-art-button:hover {
  background-color: #ffc64d;
}

/* ===================
    Typography
   =================== */

.type-style-p1 {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.65px;
}

@media screen and (min-width: 1024px) {
  .type-style-p1 {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 1px;
  }
}

.type-style-p2 {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.44px;
}

@media screen and (min-width: 1024px) {
  .type-style-p2 {
    font-size: 14px;
    line-height: 1.57;
    letter-spacing: 0.65px;
  }
}

.type-style-p3 {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.44px;
}

.type-style-p4 {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.4px;
}

.type-style-p5 {
  font-size: 14px;
  line-height: 1.57;
  letter-spacing: 0.65px;
}

@media screen and (min-width: 927px) {
  .type-style-p5 {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 1px;
  }
}

@media screen and (min-width: 1024px) {
  .type-style-p5 {
    font-size: 18px;
  }
}

/* ===================
    Splash
   =================== */

.ui-splash {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: all;
  background: url('/images/bg.jpg') no-repeat;
  background-position: center left;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.25s;
}

.ui-splash--hide {
  pointer-events: none;
  opacity: 0;
}

@media screen and (-webkit-min-device-pixel-ratio: 2),
  screen and (min-resolution: 2dppx) {
  .ui-splash {
    background-image: url('/images/bg@2x.jpg');
  }
}

.ui-splash__fg {
  height: 100%;
  margin: 20px 20px 0;
  color: white;
}

@media screen and (min-width: 429px) {
  .ui-splash__fg {
    margin: 20px;
  }
}

@media screen and (min-width: 927px) {
  .ui-splash__fg {
    margin: 50px 20px;
  }
}

.ui-splash__logo {
  display: block;
  width: 246px;
  margin: auto;
  margin-top: 15px;
  margin-bottom: 20px;
}

@media screen and (min-width: 927px) {
  .ui-splash__logo {
    width: auto;
    margin-top: 60px;
    margin-bottom: 40px;
  }
}

.ui-splash__copy {
  max-width: 398px;
  margin: 24px auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.4px;
}

@media screen and (min-width: 927px) {
  .ui-splash__copy {
    max-width: 606px;
    margin: 40px auto;
    font-size: 16px;
    line-height: 1.625;
    text-align: center;
    letter-spacing: 0.8px;
  }
}

.ui-splash__cat {
  position: absolute;
  right: 10px;
  bottom: 0;
  z-index: -1;
  width: 194px;
  height: auto;
}

@media screen and (min-width: 927px) {
  .ui-splash__cat {
    width: 345px;
    height: 374px;
  }
}

@media screen and (min-width: 1024px) {
  .ui-splash__cat {
    right: 70px;
  }
}

/* ===================
    Inline Email Form
   =================== */

.inline-email-form {
  display: none;
}

.inline-email-form--show {
  display: block;
}

.inline-play-button {
  display: none;
  margin: auto;
}

.inline-play-button--show {
  display: block;
}

.inline-play-button__button {
  width: 200px;
}

.inline-email-form__wrapper {
  width: 100%;
  max-width: 400px;
  margin: auto;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  .inline-email-form__wrapper {
    max-width: 434px;
  }
}

.inline-email-form__inner {
  display: flex;
  flex-direction: row;
  height: 50px;
}

.inline-email-form__input {
  box-sizing: border-box;
  flex-direction: row;
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  text-overflow: ellipsis;
  letter-spacing: 0.4px;
  background: transparent;
  border: 2px solid #f8f8f8;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.inline-email-form__input,
.inline-email-form__input::placeholder {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media screen and (min-width: 927px) {
  .inline-email-form__input,
  .inline-email-form__input::placeholder {
    font-size: 13px;
  }
}

.inline-email-form__submit {
  width: 120px;
  min-width: 120px;
  clip-path: var(--pixelize-right-corners)
}

.inline-email-form__submit--loading .inline-email-form__loader {
  display: block;
}

.inline-email-form__submit--loading .inline-email-form__submit-text {
  display: none;
}

.inline-email-form__submit--loading {
  padding: 0 18px;
  pointer-events: none;
}

.inline-email-form__loader {
  display: none;
  width: 24px;
  height: 24px;
  margin: auto;
  border: 4px solid rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: spin 0.3s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.inline-email-form__terms {
  max-width: 366px;
  margin: auto;
  font-size: 10px;
  line-height: 12px;
  color: white;
  letter-spacing: 0.4px;
}

.inline-email-form__terms a {
  color: inherit;
}

.inline-email-form__error {
  display: none;
  margin: auto;
  font-size: 12px;
  line-height: 12px;
  color: #ff3636;
  letter-spacing: 0.4px;
}

.inline-email-form__error--show {
  display: block;
}

/* ===============================
    Important Safety Information
   =============================== */

.isi {
  padding: 50px 34px 10px;
  font-size: 12px;
  line-height: 18px;
  color: #AEAEAE;
  letter-spacing: 0.4px;
  background: #202020;
}

.isi p {
  margin: 0 0 16px;
}

.isi span {
  font-weight: 500;
}

.isi a {
  color: #AEAEAE;
}

.isi .footer-legal__list, .isi .footer-legal__list ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-legal__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px!important;
}

.footer-legal__list-item {
  margin-right: 12px;
  margin-left: 12px;
  font-size: 12px;
}

.footer-legal__link {
  padding: 0 0 2px;
  font-size: inherit;
  line-height: normal;
  color: inherit;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  background-color: initial;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.footer-legal__link:hover {
  text-decoration: underline;
}

@media screen and (min-width: 927px) {
  .isi {
    padding: 40px 60px;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.8px;
  }
  
  .isi p {
    margin: 0 0 16px;
  }
}
