:root {
  color-scheme: dark;
  --text: #fff8ef;
  --muted: rgba(255, 248, 239, 0.78);
  --line: rgba(255, 255, 255, 0.2);
  --cta-a: #ff8a4d;
  --cta-b: #f04428;
  --cta-c: #9f170f;
  --green: #51ff9f;
  --hot-pink: #fc5693;
  --ice-blue: #50e5fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #05070b;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.hero-video,
.hero-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  background: #05070b;
}

.hero-shade {
  z-index: -2;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 0 clamp(1rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.75rem);
}

.reward-strip {
  justify-self: center;
  width: calc(100% + (clamp(1rem, 2vw, 1.75rem) * 2));
  margin-inline: calc(clamp(1rem, 2vw, 1.75rem) * -1);
  border: 0;
  border-radius: 0;
  padding: 0.9rem 1rem;
  background: #000;
  color: #fff;
  box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.4);
  font-size: clamp(1rem, 4vw, 1.42rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

.center-stage {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: clamp(0.85rem, 2.2vh, 1.25rem);
  padding-bottom: clamp(1.2rem, 5vh, 3.2rem);
}

.slogan {
  display: block;
  width: min(86vw, 760px);
  height: auto;
  cursor: pointer;
  filter:
    drop-shadow(0 1.2rem 2.8rem rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 1.8rem rgba(255, 83, 48, 0.24));
  animation: popIn 520ms ease-out both;
}

.download-button {
  position: relative;
  display: block;
  width: min(96vw, 520px);
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  appearance: none;
  cursor: pointer;
  filter:
    drop-shadow(0 0.8rem 1.5rem rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 1.4rem rgba(252, 86, 147, 0.26));
  animation: ctaImagePulse 1.35s ease-in-out infinite;
}

.download-button::after {
  content: none;
}

.download-button:hover {
  transform: translateY(-2px) scale(1.04);
}

.download-button:active {
  transform: translateY(0) scale(0.99);
}

.download-button[disabled] {
  cursor: wait;
  filter: grayscale(0.18) brightness(0.9);
  animation: none;
}

.download-button-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.status {
  min-height: 1.1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .hero-video {
    object-position: center top;
  }

  .hero {
    padding: 0 1rem max(1rem, env(safe-area-inset-bottom));
  }

  .reward-strip {
    width: calc(100% + 2rem);
    margin-inline: -1rem;
  }

  .center-stage {
    align-content: end;
    gap: 0.8rem;
    padding-bottom: 1rem;
  }

  .slogan {
    width: min(86vw, 380px);
    max-height: 18svh;
    object-fit: contain;
  }

  body[data-slogan-lang="jp"] .slogan,
  body[data-slogan-lang="kr"] .slogan {
    width: min(60vw, 260px);
  }

  .download-button {
    width: min(94vw, 430px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slogan,
  .download-button,
  .download-button::after {
    animation: none;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes ctaImagePulse {
  0%,
  100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0.8rem 1.5rem rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 1.1rem rgba(252, 86, 147, 0.22));
  }

  50% {
    transform: scale(1.045);
    filter:
      drop-shadow(0 0.9rem 1.7rem rgba(0, 0, 0, 0.48))
      drop-shadow(0 0 1.8rem rgba(80, 229, 251, 0.35));
  }
}
