:root {
  --design-width: 440;
  --page-bg: #eefaff;
  --brand-blue: #4586f8;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  color: #183b73;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

.page-shell {
  position: relative;
  width: min(100vw, 440px);
  margin: 0 auto;
  overflow-x: clip;
  padding-bottom: calc(88px + var(--safe-bottom));
  background: var(--page-bg);
}

.stage {
  position: relative;
  width: 100%;
  padding-top: 0;
}

.hero-section {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 560;
  overflow: hidden;
  background: var(--page-bg);
}

.fixed-header,
.bottom-bar {
  position: fixed;
  left: 50%;
  z-index: 20;
  width: min(100vw, 440px);
  transform: translateX(-50%);
}

.fixed-header {
  top: 0;
  height: calc(58 / 440 * min(100vw, 440px));
  max-height: 58px;
  overflow: hidden;
  background: linear-gradient(180deg, #4389f7 0%, #4084ef 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset;
}

.header-brand {
  position: absolute;
  left: calc(10 / 440 * 100%);
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0;
  width: calc(213 / 440 * 100%);
  transform: translateY(-50%);
}

.header-logo,
.header-vip,
.bottom-letter {
  display: block;
  pointer-events: none;
  user-select: none;
}

.header-logo {
  flex: 0 0 calc(115 / 213 * 100%);
  width: calc(115 / 213 * 100%);
  height: auto;
  object-fit: contain;
}

.header-vip {
  flex: 0 0 calc(98 / 213 * 100%);
  width: calc(98 / 213 * 100%);
  height: auto;
  object-fit: contain;
  transform: translateY(4px);
}

.bottom-bar {
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: calc(88 / 440 * min(100vw, 440px) + var(--safe-bottom));
  max-height: calc(88px + var(--safe-bottom));
  padding: 10px 11px calc(10px + var(--safe-bottom));
  overflow: hidden;
  border: 1px solid rgba(123, 173, 255, 0.9);
  background: linear-gradient(180deg, #4389f7 0%, #3d82ec 100%);
  color: #ffffff;
  box-shadow: 0 -2px 12px rgba(28, 96, 220, 0.14);
}

.hit-area {
  position: absolute;
  display: block;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.hit-area:focus-visible,
.banner-dots button:focus-visible {
  outline: 2px solid #fee900;
  outline-offset: 2px;
}

.header-register {
  position: absolute;
  right: calc(16 / 440 * 100%);
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(88 / 440 * 100%);
  height: 30px;
  border: 1px solid rgba(236, 246, 255, 0.72);
  border-radius: 999px;
  background: rgba(142, 184, 250, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 4px 10px rgba(38, 105, 225, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-50%);
}

.banner-carousel {
  position: absolute;
  left: calc(10 / 440 * 100%);
  top: calc(74 / 560 * 100%);
  z-index: 5;
  width: calc(420 / 440 * 100%);
  aspect-ratio: 420 / 482;
  height: auto;
  border-radius: 0;
  isolation: isolate;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}

.banner-main-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 406;
  overflow: hidden;
}

.banner-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #eefaff url("assets/top-bg.png") center top / cover no-repeat;
}

.banner-track,
.banner-strip-track {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-strip-viewport {
  position: absolute;
  left: 0;
  top: calc(406 / 482 * 100%);
  width: 100%;
  height: calc(76 / 482 * 100%);
  overflow: hidden;
}

.banner-slide,
.banner-strip {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: translateX(7%);
  transition: opacity 780ms ease, transform 780ms ease;
  user-select: none;
}

.banner-strip {
  transform: translateY(-84.232365%) translateX(7%);
}

.banner-slide.is-active,
.banner-strip.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
}

.banner-strip.is-active {
  transform: translateY(-84.232365%) translateX(0);
}

.banner-slide.is-prev,
.banner-strip.is-prev {
  z-index: 1;
  opacity: 0;
  transform: translateX(-7%);
}

.banner-strip.is-prev {
  transform: translateY(-84.232365%) translateX(-7%);
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}

.banner-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(69, 134, 248, 0.55);
  box-shadow: 0 1px 4px rgba(20, 62, 120, 0.22);
  cursor: pointer;
}

.banner-dots button.is-active {
  width: 18px;
  background: #fee900;
  border-color: #ffffff;
}

.hero-register {
  left: calc(22 / 440 * 100%);
  top: calc(481 / 560 * 100%);
  width: calc(132 / 440 * 100%);
  height: calc(72 / 560 * 100%);
  z-index: 6;
}

.image-section {
  position: relative;
  width: calc(420 / 440 * 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-image {
  display: block;
  width: calc(420 / 440 * 100%);
  height: auto;
  margin-right: auto;
  margin-left: auto;
  user-select: none;
}

.fifa-section {
  margin-top: 0;
}

.platform-section {
  margin-top: 28px;
  padding-top: 24px;
}

.platform-main-image {
  width: 100%;
}

.platform-top-image {
  position: absolute;
  top: -24px;
  left: 50%;
  z-index: 4;
  display: block;
  width: calc(155 / 420 * 100%);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.platform-section + .section-image,
.section-image + .section-image {
  margin-top: 16px;
}

.section-image[src$="section-payments.png"] {
  margin-top: 22px;
}

.electronic-section {
  width: calc(420 / 440 * 100%);
  min-height: calc(374 / 440 * min(100vw, 440px));
  margin: 16px auto 0;
  padding: 16px 10px 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
}

.section-heading span {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 126, 242, 0), rgba(59, 126, 242, 0.8), rgba(59, 126, 242, 0));
}

.section-heading h2 {
  margin: 0;
  color: #143979;
  font-size: 26px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
  letter-spacing: 0;
}

.section-subtitle {
  margin: 6px 0 0;
  color: rgba(20, 57, 121, 0.68);
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}

.electronic-game-card {
  flex: 0 0 91px;
  width: 91px;
  height: 115px;
  margin-right: 12px;
  text-align: center;
}

.electronic-game-scroller {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding: 0 10px 8px;
  overflow: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.electronic-game-row {
  width: 100%;
  height: 115px;
  overflow: hidden;
}

.electronic-game-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.electronic-game-scroller::-webkit-scrollbar {
  display: none;
}

.electronic-game-card img {
  display: block;
  width: 91px;
  margin: 0 auto;
  user-select: none;
}

.electronic-game-card:not(.is-full) img {
  height: 91px;
}

.electronic-game-card.is-full img {
  height: 115px;
}

.electronic-game-card span {
  display: block;
  margin-top: 8px;
  color: rgba(20, 57, 121, 0.8);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.platform-register {
  right: 10px;
  top: 42px;
  width: 78px;
  height: 78px;
  z-index: 6;
}

.service-copy {
  left: 344px;
  bottom: 8px;
  width: 48px;
  height: 26px;
  z-index: 6;
}

.bottom-letter-link {
  display: block;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.bottom-letter {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.bottom-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 1px;
}

.bottom-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.bottom-desc {
  margin: 0;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.bottom-desc strong,
.bottom-service-id strong {
  color: #fee900;
  font-weight: 700;
}

.bottom-service-id {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.bottom-actions {
  display: flex;
  flex: 0 0 88px;
  flex-direction: column;
  gap: 7px;
}

.bottom-download-app,
.bottom-download-letter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  appearance: none;
}

.bottom-download-button {
  font-size: 12px;
  font-weight: 500;
}

.bottom-download-app,
.bottom-download-letter {
  width: 88px;
  height: 31px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.bottom-download-letter {
  border-color: transparent;
  background: #ffffff;
  color: #3d80ed;
}

.bottom-copy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 41px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  appearance: none;
}

.floating-kefu {
  position: fixed;
  right: max(0px, calc((100vw - 440px) / 2));
  bottom: calc(96px + var(--safe-bottom));
  z-index: 34;
  display: block;
  width: 108px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(17, 59, 132, 0.24));
}

.floating-kefu img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-register,
.platform-register,
.service-copy {
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.hero-register::after,
.platform-register::after,
.service-copy::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 8px 16px rgba(48, 111, 230, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hero-register:focus-visible::after,
.platform-register:focus-visible::after,
.service-copy:focus-visible::after {
  opacity: 1;
  transform: translateY(-2px) scale(1.03);
}

.header-register:active,
.hero-register:active,
.platform-register:active,
.bottom-download-app:active,
.bottom-download-letter:active,
.service-copy:active,
.bottom-copy:active {
  filter: brightness(1.08);
  transform: translateY(1px) scale(0.98);
}

.header-register:active {
  transform: translateY(calc(-50% + 1px)) scale(0.98);
}

.hero-register:active::after,
.platform-register:active::after,
.service-copy:active::after {
  opacity: 0.86;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 3px 10px rgba(48, 111, 230, 0.16);
  transform: translateY(1px) scale(0.98);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(112px + var(--safe-bottom));
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 55, 100, 0.92);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

@media (hover: hover) {
  .banner-dots button:hover {
    filter: brightness(1.05);
    transform: translateZ(0) scale(1.01);
  }

  .hero-register:hover,
  .platform-register:hover,
  .bottom-download-app:hover,
  .bottom-download-letter:hover,
  .service-copy:hover,
  .bottom-copy:hover {
    filter: brightness(1.08);
  }

  .header-register:hover {
    filter: brightness(1.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 5px 14px rgba(38, 105, 225, 0.24);
  }

  .hero-register:hover::after,
  .platform-register:hover::after,
  .service-copy:hover::after {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
  }

  .bottom-copy:hover {
    box-shadow: 0 2px 8px rgba(38, 105, 225, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
