* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #101010;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: -36px;
  z-index: 0;
  background:
    linear-gradient(rgba(4, 4, 4, 0.62), rgba(4, 4, 4, 0.82)),
    url("/assets/download-page-4x-nobar.png?v=202606042008") center top / cover no-repeat;
  filter: blur(26px);
  transform: scale(1.04);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  line-height: 0;
  background: #222;
  overflow: hidden;
}

.promo {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.motion-row {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: clamp(10px, 2.6vw, 20px) 0 clamp(12px, 2.4vw, 18px);
  line-height: 1;
  background: #080808;
  pointer-events: none;
}

.works-motion {
  top: 55.1%;
  height: 15.6%;
}

.games-motion {
  top: 71.8%;
  height: 18.2%;
}

.motion-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 32px;
  font-size: clamp(22px, 4.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.motion-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.motion-viewport::before,
.motion-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(42px, 9vw, 78px);
  pointer-events: none;
}

.motion-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #080808 46%, rgba(8, 8, 8, 0));
}

.motion-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #080808 46%, rgba(8, 8, 8, 0));
}

.motion-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: 18px;
  padding: 0 42px;
  will-change: transform;
}

.motion-track img {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.works-track {
  animation: motion-scroll-left 12s linear infinite;
}

.works-track img {
  width: auto;
  height: 100%;
  aspect-ratio: 1220 / 680;
  border-radius: 8px;
}

.games-track {
  animation: motion-scroll-left 12s linear infinite reverse;
}

.games-track img {
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

@keyframes motion-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.download-link {
  position: absolute;
  display: block;
  height: 5.8%;
  bottom: 2.6%;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  z-index: 4;
}

.download-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.android {
  left: 3.6%;
  width: 46.2%;
}

.ios {
  right: 4%;
  width: 45.2%;
}

.service-link {
  position: absolute;
  display: block;
  top: 2.2%;
  left: 71%;
  width: 14.3%;
  height: 8.4%;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
}

.business-link {
  position: absolute;
  display: block;
  top: 2.2%;
  left: 85%;
  width: 14.2%;
  height: 8.4%;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
}

.service-link:focus-visible,
.business-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.download-modal.show {
  display: flex;
}

.download-dialog {
  position: relative;
  width: min(88vw, 360px);
  padding: 28px 24px 24px;
  text-align: center;
  line-height: 1.4;
  color: #222;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  font-size: 28px;
  line-height: 32px;
  color: #777;
  background: transparent;
  cursor: pointer;
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6a00, #7d35ff);
}

.download-dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.download-dialog p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #555;
}

.modal-download {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #7e44ff, #ff3d00);
}
