:root {
  color-scheme: light;
  --primary: #1677ff;
  --primary-dark: #075dd4;
  --success: #1fbd68;
  --success-dark: #149654;
  --ink: #152033;
  --muted: #5f6d82;
  --line: rgba(22, 119, 255, 0.13);
  --surface: #ffffff;
  --canvas: #f4f8ff;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px rgba(24, 61, 114, 0.12), 0 4px 16px rgba(24, 61, 114, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: clamp(10px, 3vw, 40px) clamp(10px, 3vw, 24px) calc(20px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(22, 119, 255, 0.15), transparent 35%),
    linear-gradient(180deg, #f8fbff 0%, var(--canvas) 100%);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
}

.page-glow--one {
  top: 8%;
  left: -160px;
  background: rgba(22, 119, 255, 0.12);
}

.page-glow--two {
  right: -180px;
  bottom: 12%;
  background: rgba(31, 189, 104, 0.08);
}

.site-shell {
  width: min(100%, 740px);
  margin: 0 auto;
}

.landing-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 5vw, 44px) clamp(16px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(24px, 7vw, var(--radius-xl));
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.landing-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #1677ff, #64a8ff, #1677ff);
  content: "";
}

.hero {
  padding: 4px 2px 2px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: clamp(66px, 17vw, 104px);
  height: auto;
  margin: 0 auto clamp(10px, 2.8vw, 20px);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(45, 87, 170, 0.14);
}

h1,
h2,
p {
  margin-top: 0;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  max-width: 620px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  font-size: clamp(25px, 6.8vw, 44px);
  line-height: 1.26;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  text-wrap: balance;
}

.keep-together {
  display: inline-block;
  white-space: nowrap;
}

.guide {
  margin-top: 10px;
}

.guide-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: zoom-in;
}

.guide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #eef6ff;
  box-shadow: 0 12px 30px rgba(22, 119, 255, 0.08);
}

.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(21, 32, 51, 0.78);
  box-shadow: 0 5px 16px rgba(21, 32, 51, 0.2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.service-card,
.bonus-card {
  margin-top: clamp(14px, 3.5vw, 28px);
  border-radius: var(--radius-lg);
}

.service-card {
  padding: clamp(12px, 2.8vw, 18px);
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 119, 255, 0.08), rgba(22, 119, 255, 0.025));
}

.service-card h2 {
  margin-bottom: 6px;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.45;
}

.copy-field {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(21, 32, 51, 0.03);
}

.copy-field input {
  min-width: 0;
  height: 40px;
  flex: 1;
  padding: 0 8px;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: 750 clamp(18px, 5.2vw, 24px)/1 var(--font);
  line-height: 1.2;
  letter-spacing: 0.015em;
  outline: 0;
}

.copy-button {
  display: inline-flex;
  min-width: 74px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 11px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.24);
  font: 700 14px/1 var(--font);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.copy-button svg,
.download-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copy-button svg {
  width: 18px;
  height: 18px;
}

.copy-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 11px 24px rgba(22, 119, 255, 0.3);
  transform: translateY(-2px);
}

.copy-button:active,
.download-button:active {
  transform: scale(0.98);
}

.copy-button:focus-visible,
.download-button:focus-visible,
.guide-zoom:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.3);
  outline-offset: 3px;
}

.bonus-card {
  padding: clamp(14px, 3.8vw, 24px);
  border: 1px solid rgba(255, 171, 26, 0.18);
  background: linear-gradient(145deg, #fff9ed, #fffdf8);
  box-shadow: 0 12px 30px rgba(192, 121, 0, 0.06);
}

.bonus-card p {
  margin-bottom: 10px;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.66;
  text-wrap: pretty;
}

.bonus-card p:last-child {
  margin-bottom: 0;
  font-weight: 680;
}

.bonus-card .platform-summary {
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.72;
  padding-bottom: 2px;
}

.platform-summary > span {
  display: block;
  white-space: nowrap;
}

.platform-summary > span:last-child {
  margin-top: 2px;
  text-align: right;
}

.bonus-copy > span {
  display: block;
}

.bonus-copy > span + span {
  margin-top: 2px;
}

.bonus-card .bonus-recharge-line {
  font-size: clamp(12px, 3.6vw, 18px);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.download-section {
  padding-top: clamp(16px, 4vw, 28px);
  text-align: center;
}

.service-promise {
  position: relative;
  margin: clamp(12px, 3vw, 20px) 0 0;
  padding: 7px 0;
  overflow: hidden;
  border-top: 1px solid rgba(22, 119, 255, 0.1);
  border-bottom: 1px solid rgba(22, 119, 255, 0.1);
  color: #3f4f66;
  background: linear-gradient(90deg, rgba(247, 250, 255, 0), #f7faff 12%, #f7faff 88%, rgba(247, 250, 255, 0));
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.promise-track {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.promise-message {
  flex: 0 0 auto;
}

.promise-message[aria-hidden="true"] {
  display: none;
}

.contact-guide {
  margin-top: clamp(20px, 4.5vw, 30px);
}

.contact-guide h2 {
  margin-bottom: 0;
  font-size: clamp(19px, 5vw, 23px);
  line-height: 1.45;
}

.download-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #27c875, var(--success));
  box-shadow: 0 14px 30px rgba(31, 189, 104, 0.24);
  font-size: clamp(15px, 4.5vw, 18px);
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.download-button span {
  white-space: nowrap;
}

.download-button:hover {
  box-shadow: 0 17px 34px rgba(31, 189, 104, 0.32);
  filter: saturate(1.08) brightness(0.98);
  transform: translateY(-2px);
}

html.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  width: min(calc(100vw - 20px), 1180px);
  max-width: none;
  max-height: calc(100dvh - 20px);
  padding: 46px 10px 10px;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(7, 25, 56, 0.34);
}

.image-lightbox::backdrop {
  background: rgba(7, 18, 36, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.image-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  touch-action: pinch-zoom;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 64px;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font: 700 14px/1 var(--font);
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 30;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(21, 32, 51, 0.92);
  box-shadow: 0 10px 30px rgba(21, 32, 51, 0.22);
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.96);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (max-width: 519px) {
  .service-promise {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .promise-track {
    width: max-content;
    justify-content: flex-start;
    gap: 0;
    animation: promise-scroll 18s linear infinite;
    will-change: transform;
  }

  .promise-message {
    padding-right: 40px;
  }

  .promise-message[aria-hidden="true"] {
    display: block;
  }

  .service-promise:hover .promise-track,
  .service-promise:focus-within .promise-track {
    animation-play-state: paused;
  }
}

@media (min-width: 640px) {
  body {
    padding: 48px 24px;
  }

  .landing-card {
    padding: 44px 42px;
  }

  .hero {
    padding-top: 2px;
  }

  .guide {
    margin-top: 16px;
  }

  .service-card {
    padding: 18px;
  }

  .bonus-card {
    padding: 24px;
  }

  .download-section {
    padding-top: 28px;
  }

  .download-button {
    min-height: 64px;
    font-size: 19px;
  }

  .toast {
    bottom: 32px;
  }
}

@media (max-width: 479px) {
  .copy-button {
    min-width: 68px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .image-lightbox {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding-right: 6px;
    padding-bottom: 6px;
    padding-left: 6px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .service-promise {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .service-promise::-webkit-scrollbar {
    display: none;
  }

  .promise-track {
    width: max-content;
    animation: none !important;
    will-change: auto;
  }

  .promise-message[aria-hidden="true"] {
    display: none;
  }
}
