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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  min-height: 100dvh;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.5;
}

.page {
  width: 100%;
  max-width: 420px;
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.page-header {
  flex-shrink: 0;
  width: 68%;
  max-width: 240px;
  margin: 0 auto 0;
  line-height: 0;
}

.page-header__img {
  display: block;
  width: 100%;
  height: auto;
}

.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 2.5vh, 24px);
  width: 100%;
  padding: 8px 20px max(20px, env(safe-area-inset-bottom));
  min-height: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

.hero-icon {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 14px;
  margin-top: 30px;
}

.btn-img-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-img-link:active {
  opacity: 0.92;
  transform: scale(0.98);
}

.btn-img {
  display: block;
  height: auto;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-pill:active {
  opacity: 0.92;
  transform: scale(0.98);
}

.btn-pill__apple {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-pill--store {
  min-width: 148px;
  height: 44px;
  padding: 0 24px;
  background: linear-gradient(180deg, #5eb8ff 0%, #2e95f0 55%, #1a85ef 100%);
  box-shadow: 0 4px 14px rgba(38, 145, 245, 0.32);
}

.btn-img--pill {
  width: 135px;
  max-width: 100%;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  flex-shrink: 0;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 14px;
  background: linear-gradient(165deg, #fbfdff 0%, #f3f9fd 45%, #ebf4fb 100%);
  border: 1px solid #dceaf6;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(120, 175, 220, 0.14);
}

.option-card__icon {
  display: block;
  width: 88px;
  height: auto;
  margin-bottom: 12px;
}

.option-card .btn-img-link {
  width: 100%;
  display: flex;
  justify-content: center;
}

.notice {
  width: 100%;
  padding: 14px 16px;
  background: #f9fcfd;
  border: 1px solid #d2e6f5;
  border-radius: 14px;
  flex-shrink: 0;
}

.notice-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.55;
}

.notice-row + .notice-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(38, 145, 245, 0.22);
}

.notice-row__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  display: block;
  object-fit: contain;
}

.notice-row .hl-blue {
  color: #1a85ef;
  font-weight: 600;
}

.notice-row .hl-red {
  color: #e53e3e;
  font-weight: 600;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}

.actions .btn-img {
  width: 100%;
}

@media (max-height: 640px) {
  .page-main {
    gap: 10px;
    padding-bottom: 14px;
  }

  .hero-icon {
    width: 120px;
    margin-bottom: 10px;
  }

  .btn-img--pill {
    width: 120px;
  }

  .btn-pill--store {
    min-width: 132px;
    height: 40px;
    font-size: 14px;
  }

  .option-card {
    padding: 14px 8px 12px;
  }

  .option-card__icon {
    width: 72px;
    margin-bottom: 10px;
  }

  .notice {
    padding: 10px 12px;
  }

  .notice-row + .notice-row {
    margin-top: 8px;
    padding-top: 8px;
  }
}
