/* Figtree (OFL), self-hosted for visual match with the source page. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/figtree-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  --app-layout-width: 100vw;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000;
}

body {
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
}

#app {
  width: var(--app-layout-width);
  height: 100%;
  height: 100svh;
  height: 100dvh;
  background: #000;
}

.page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.background-video,
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.video-poster {
  z-index: 0;
  opacity: 1;
  transition: opacity 0.18s ease-out;
}

.background-video {
  z-index: 1;
}

.video-poster.is-hidden {
  opacity: 0;
}

.bottom-content {
  position: absolute;
  z-index: 2;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(61px, env(safe-area-inset-bottom, 0px));
  left: max(24px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(249, 54, 183, 0.5);
  border-radius: 8.842px;
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  color: #fff;
  font-family: Figtree, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
  white-space: nowrap;
}

.hero-title {
  margin: 0;
  padding: 7px 9px;
  color: #fff;
  font-family: Figtree, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: normal;
  text-align: center;
  white-space: pre-line;
}

.enter-btn {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 17px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff1c79, #ff4791 50.157%, #ff0cdb);
  color: #fff;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.enter-btn:active {
  transform: scale(0.98);
}

.bottom-caption {
  margin: 0;
  color: #fff9;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

/* Desktop / tablet: keep the video full-bleed, constrain the CTA column. */
@media (min-width: 768px) {
  .bottom-content {
    left: 50%;
    right: auto;
    width: min(420px, calc(100% - 48px));
    transform: translateX(-50%);
    bottom: max(72px, env(safe-area-inset-bottom, 0px));
  }

  .hero-title {
    font-size: 28px;
  }
}

@media (min-width: 1200px) {
  .bottom-content {
    width: min(480px, calc(100% - 48px));
    bottom: max(80px, env(safe-area-inset-bottom, 0px));
  }

  .hero-title {
    font-size: 32px;
  }

  .brand-name {
    font-size: 22px;
  }
}

/* After width queries so short landscape keeps the CTA cluster on-screen. */
@media (max-height: 680px) {
  .bottom-content {
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .hero-title {
    font-size: 21px;
  }
}


.playback-hint[hidden] {
  display: none;
}

.playback-hint {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 24, 0.46);
}

.modal-card {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  --modal-tab-height: 4.5rem;
  --modal-close-inset: 1.15rem;
  display: flex;
  flex-direction: column;
  width: min(70rem, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  padding: 3.2cqi 3.4cqi 2.6cqi;
  border-radius: 3.35cqi;
  background: #f8f8ff;
  box-shadow: 0 24px 64px rgba(40, 32, 80, 0.18);
  color: #252842;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif;
}

.modal-android-tab {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  width: min(18.5rem, 44.7%);
  height: var(--modal-tab-height);
  min-height: var(--modal-tab-height);
  align-items: center;
  justify-content: flex-end;
  gap: 1.6cqi;
  padding: 0.7rem var(--modal-close-inset) 0.4rem 3rem;
  box-sizing: border-box;
  color: #502c24;
  pointer-events: none;
}

.modal-android-tab-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.modal-android-label {
  position: relative;
  z-index: 1;
  flex: 1;
  color: #502c24;
  font-size: clamp(1.15rem, 3.4cqi, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
}

.modal-close {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  flex: 0 0 auto;
  width: 4.1cqi;
  height: 4.1cqi;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #502c24;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.modal-close svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-close:focus {
  outline: none;
}

.modal-close:focus-visible svg {
  stroke-width: 2.35;
}

.modal-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5cqi 2cqi;
  align-items: start;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding-top: 0.4cqi;
  padding-right: 0.5cqi;
}

.modal-headline {
  margin: 0 0 3.2cqi;
  max-width: 18ch;
  color: #535bea;
  font-size: clamp(1.7rem, 4.05cqi, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.modal-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.15cqi;
}

.modal-steps li {
  display: grid;
  grid-template-columns: 4.7cqi minmax(0, 1fr);
  gap: 1.15cqi;
  align-items: flex-start;
}

.step-num {
  display: flex;
  width: 4.7cqi;
  min-width: 36px;
  height: 4.7cqi;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 1.1cqi;
  background: #eceefe;
  color: #7b82e8;
  font-size: clamp(0.75rem, 1.35cqi, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.step-body h3 {
  margin: 0 0 0.35cqi;
  color: #252842;
  font-size: clamp(1rem, 1.85cqi, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.step-body p {
  margin: 0;
  max-width: 34ch;
  color: #8a8da8;
  font-size: clamp(0.88rem, 1.45cqi, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
}

.modal-qr-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.8cqi;
  align-items: center;
  margin-top: 1.2cqi;
  padding: 1.5cqi 2cqi;
  border-radius: 2.2cqi;
  background: #fff;
  box-shadow: 0 10px 30px rgba(70, 64, 120, 0.06);
}

.download-qr {
  width: 7.6cqi;
  min-width: 72px;
  height: 7.6cqi;
  min-height: 72px;
  background: #fff;
}

.qr-copy h3 {
  margin: 0 0 0.35cqi;
  color: #252842;
  font-size: clamp(1rem, 1.85cqi, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.qr-copy p {
  margin: 0;
  color: #8a8da8;
  font-size: clamp(0.82rem, 1.35cqi, 0.98rem);
  font-weight: 500;
  line-height: 1.4;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7cqi;
  min-height: 4.6cqi;
  padding: 0.85cqi 1.3cqi 0.85cqi 1.6cqi;
  border-radius: 999px;
  background: #fc7d5d;
  color: #fff;
  font-size: clamp(0.92rem, 1.55cqi, 1.12rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.play-btn:focus {
  outline: 2px solid rgba(83, 91, 234, 0.75);
  outline-offset: 3px;
}

.play-btn-icon {
  display: flex;
  width: 2.15cqi;
  min-width: 22px;
  height: 2.15cqi;
  min-height: 22px;
}

.play-btn-icon svg {
  width: 100%;
  height: 100%;
}

.play-btn-icon circle {
  fill: #3a241c;
}

.play-btn-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir="rtl"] .modal-android-tab {
  right: auto;
  left: 0;
  padding: 0.7rem 3rem 0.4rem var(--modal-close-inset);
  justify-content: flex-start;
}

[dir="rtl"] .modal-android-tab-bg {
  transform: scaleX(-1);
}

[dir="rtl"] .modal-steps li,
[dir="rtl"] .modal-qr-bar {
  direction: rtl;
}

@media (max-width: 820px) {
  .modal-card {
    --modal-tab-height: 3.75rem;
    --modal-close-inset: 1rem;
    width: min(34rem, calc(100vw - 20px));
    max-height: calc(100svh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 0 18px 16px;
    border-radius: 22px;
  }

  .modal-android-tab {
    width: min(13.75rem, 70%);
    height: var(--modal-tab-height);
    min-height: var(--modal-tab-height);
    padding: 0.5rem var(--modal-close-inset) 0.3rem 2.2rem;
  }

  .modal-android-label {
    font-size: 1.15rem;
    text-align: right;
  }

  .modal-close {
    width: 32px;
    height: 32px;
  }

  .modal-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-right: 0;
    padding-top: calc(var(--modal-tab-height) + 0.6rem);
  }

  .modal-headline {
    margin-bottom: 18px;
    max-width: none;
    font-size: 1.7rem;
  }

  .modal-steps {
    gap: 14px;
  }

  .modal-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.75rem;
  }

  .step-body h3 {
    font-size: 1rem;
  }

  .step-body p {
    font-size: 0.88rem;
  }

  .modal-qr-bar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .download-qr {
    width: 72px;
    height: 72px;
  }

  .play-btn {
    grid-column: 1 / -1;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .play-btn-icon {
    width: 22px;
    height: 22px;
  }

  [dir="rtl"] .modal-android-label {
    text-align: left;
  }
}

.modal-desktop-guide {
  display: none;
}

#device-modal.is-desktop .modal-steps,
#device-modal.is-desktop .modal-qr-bar,
#device-modal.is-desktop .modal-android-label,
#device-modal.is-desktop .modal-headline,
#device-modal.is-android .modal-desktop-guide {
  display: none !important;
}

#device-modal.is-desktop .modal-desktop-guide:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

#device-modal.is-desktop .modal-card {
  --modal-tab-height: 4.15rem;
  --modal-close-inset: 1.15rem;
  width: min(26.5rem, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0 1.35rem 1.35rem;
  border-radius: 1.6rem;
}

#device-modal.is-desktop .modal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  min-height: 0;
  overflow: auto;
  padding: calc(var(--modal-tab-height) + 0.7rem) 0 0.15rem;
}

#device-modal.is-desktop .modal-copy {
  display: none;
}

.desktop-platform-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  max-width: 100%;
  min-width: 0;
}

.desktop-platform-text {
  margin: 0;
  max-width: 100%;
  color: #535bea;
  font-size: clamp(1.05rem, 4.4cqi, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.desktop-download-qr {
  display: block;
  width: 7.25rem;
  height: 7.25rem;
  min-width: 104px;
  min-height: 104px;
  max-width: min(7.25rem, 100%);
  aspect-ratio: 1;
  padding: 0.5rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(70, 64, 120, 0.08);
}

@media (max-width: 820px) {
  #device-modal.is-desktop .modal-card {
    --modal-tab-height: 3.75rem;
    --modal-close-inset: 1rem;
    width: min(26.5rem, calc(100vw - 20px));
    max-height: calc(100svh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 0 1.1rem 1.1rem;
  }

  #device-modal.is-desktop .modal-main {
    padding: calc(var(--modal-tab-height) + 0.65rem) 0 0.1rem;
  }

  .desktop-download-qr {
    width: 6.5rem;
    height: 6.5rem;
    min-width: 104px;
    min-height: 104px;
    padding: 8px;
  }
}

@media (max-height: 680px) {
  .modal-card {
    max-height: calc(100svh - 16px);
    max-height: calc(100dvh - 16px);
  }

  #device-modal.is-desktop .modal-desktop-guide:not([hidden]) {
    gap: 0.75rem;
  }

  #device-modal.is-desktop .desktop-platform-text {
    font-size: clamp(1rem, 3.8cqi, 1.15rem);
  }

  #device-modal.is-desktop .desktop-download-qr {
    width: 6rem;
    height: 6rem;
    min-width: 96px;
    min-height: 96px;
  }
}

#device-modal.is-android .modal-card {
  width: min(30rem, calc(100vw - 32px));
  padding: 0 1.45rem 1.35rem;
  border-radius: 1.6rem;
}

#device-modal.is-android .modal-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  overflow: auto;
  padding-top: calc(var(--modal-tab-height) + 0.65rem);
}

#device-modal.is-android .modal-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

#device-modal.is-android .modal-headline {
  max-width: none;
  margin: 0;
  font-size: clamp(1.7rem, 7cqi, 2.2rem);
}

#device-modal.is-android .modal-steps {
  width: 100%;
  gap: 0;
}

#device-modal.is-android .modal-qr-bar .download-qr,
#device-modal.is-android .modal-qr-bar .qr-copy {
  display: none !important;
}

#device-modal.is-android .modal-qr-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  margin-top: 0;
  padding: 20px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 820px) {
  #device-modal.is-android .modal-card {
    width: min(30rem, calc(100vw - 20px));
    max-height: calc(100svh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 0 18px 16px;
    border-radius: 22px;
  }

  #device-modal.is-android .modal-main {
    gap: 0.85rem;
    padding-top: calc(var(--modal-tab-height) + 0.6rem);
  }

  #device-modal.is-android .modal-qr-bar {
    justify-content: stretch;
  }

  #device-modal.is-android .play-btn {
    width: 100%;
    grid-column: auto;
  }
}

@media (max-height: 680px) {
  #device-modal.is-android .modal-main {
    gap: 0.7rem;
  }
}
