:root {
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html,
body {
  height: 100%;
  font-size: 16px;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  max-width: 100%;
  height: auto;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  min-height: 100dvh;
}

.main-wrapper {
  position: relative;
  width: 380px;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  padding: 48px 18px 28px;
  background: url(/assets/main-bg.png) no-repeat;
  background-size: 100% 100%;
}

.main-wrapper .logo {
  width: 210px;
  height: auto;
}

.main-wrapper .redirect-title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin: 8px 0 12px;
  line-height: 1.35;
}

.main-wrapper .redirect-title .text-entry {
  color: #eec24b;
}

.main-wrapper .domain-box {
  display: inline-flex;
  margin-bottom: 22px;
  justify-content: center;
  align-items: center;
  min-height: 1.2em;
  color: #eec24b;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.main-wrapper .loader-box {
  display: flex;
  justify-content: center;
}

.main-wrapper .loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #f5e6c8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.main-wrapper .redirect-text {
  margin: 26px 0 16px;
  font-weight: 500;
}

.main-wrapper .redirect-button {
  background: none;
  border: none;
  width: min(332px, 100%);
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.main-wrapper .redirect-button img {
  width: 100%;
  display: block;
}

.main-wrapper .redirect-button:active {
  transform: translateY(1px);
  opacity: 0.92;
}

@media screen and (max-width: 767px) {
  .main-wrapper .logo {
    width: 168px;
  }

  .main-wrapper .redirect-title {
    font-size: 16px;
  }
}

@media screen and (max-width: 383px) {
  .main-wrapper {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  .main-wrapper .redirect-title {
    font-size: 14px;
  }

  .main-wrapper .domain-box {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .main-wrapper .redirect-button {
    width: min(240px, 100%);
  }

  .main-wrapper .redirect-text {
    margin: 18px 0 12px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 1023px) and (orientation: landscape) {
  .main-wrapper {
    width: 350px;
    padding: 12px 14px 10px;
  }

  .main-wrapper .logo {
    width: 120px;
  }

  .main-wrapper .redirect-title {
    font-size: 15px;
    margin: 4px 0;
  }

  .main-wrapper .domain-box {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .main-wrapper .loader {
    width: 28px;
    height: 28px;
  }

  .main-wrapper .redirect-text {
    margin: 8px 0;
    font-size: 14px;
  }

  .main-wrapper .redirect-button {
    width: min(260px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-wrapper .loader {
    animation: none;
  }
}
