:root {
  --page: #d8daef;
  --page-lilac: #eadcf8;
  --page-blue: #d8edf8;
  --accent: #6970a5;
  --lime: #d7ff48;
  --paper: #ffffff;
  --ink: #17213d;
  --muted: #727a94;
  --line: rgba(42, 51, 88, .14);
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  min-height: 100vh;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top)) 14px max(34px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(240, 220, 255, .92) 0, rgba(240, 220, 255, 0) 34%),
    radial-gradient(circle at 30% 13%, rgba(216, 239, 251, .94) 0, rgba(216, 239, 251, 0) 38%),
    radial-gradient(circle at 78% 32%, rgba(208, 210, 232, .72) 0, rgba(208, 210, 232, 0) 45%),
    linear-gradient(135deg, #e6ddf6 0%, #d9e7f4 34%, #d2d4e8 70%, #ddd9eb 100%);
  background-attachment: fixed;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Microsoft YaHei", sans-serif;
}

body::before,
body::after {
  content: "⚽";
  position: fixed;
  z-index: 0;
  color: rgba(61, 72, 125, .035);
  font-size: clamp(150px, 36vw, 330px);
  line-height: 1;
  pointer-events: none;
}
body::before { top: 18vh; left: -80px; transform: rotate(-18deg); }
body::after { right: -95px; bottom: 7vh; transform: rotate(23deg); }

.stadium-lights { display: none; }

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  height: 108px;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.20);
  box-shadow: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 14px;
  pointer-events: none;
}

.hero__logo {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 50%;
  width: min(48%, 280px);
  height: auto;
  display: block;
  transform: translateY(-50%);
  background: transparent;
  filter: drop-shadow(0 5px 11px rgba(0,0,0,.16));
}
.hero__register {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 24px;
  min-width: 96px;
  height: 40px;
  padding: 0 20px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(100deg, #0da5f1 0%, #3fd4c3 56%, #a2d479 100%);
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 999px;
  box-shadow: 0 7px 17px rgba(30,174,207,.22);
  font: 800 18px/1 "Microsoft YaHei", sans-serif;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hero__register:hover { transform: translateY(calc(-50% - 2px)); box-shadow: 0 10px 22px rgba(30,174,207,.29); }
.hero__register:active { transform: translateY(-50%) scale(.97); }
.hero__register:focus-visible { outline: 3px solid rgba(105,112,165,.42); outline-offset: 3px; }

.entry {
  position: relative;
  width: 100%;
  min-height: 116px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: #ffffff;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(70, 74, 112, .13);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease;
}
.entry::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: 125px;
  height: 125px;
  border: 18px solid rgba(18,37,29,.035);
  border-radius: 50%;
}
.entry:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(70, 74, 112, .18); }
.entry:active { transform: scale(.988); }
.entry:focus-visible { outline: 3px solid rgba(105,112,165,.42); outline-offset: 3px; }

.entry--main {
  min-height: 244px;
  padding-top: 20px;
  padding-bottom: 68px;
  justify-content: flex-start;
  color: var(--ink);
  background: linear-gradient(135deg, #f3f0f9 0%, #ebe9f5 48%, #e3e2f0 100%);
  border: 0;
}
.entry--main::before { display: none; }
.entry--main::after { border-color: rgba(42,51,88,.035); }
.promo-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.promo-title {
  margin: 0;
  color: #17213d;
  font-size: clamp(28px, 5.5vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.promo-title span { font-size: .78em; }
.promo-trust {
  margin: 8px 0 0;
  color: #626b87;
  font-size: 16px;
  font-weight: 600;
}
.promo-benefit {
  margin: 8px 0 0;
  color: #59627f;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.promo-features {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  color: #68718d;
  font-size: 14px;
  font-weight: 600;
}
.promo-cta {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 12px;
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: #17213d;
  background: #ffffff;
  border: 1px solid rgba(88,94,145,.11);
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(70,74,112,.10);
  font-size: 18px;
  font-weight: 900;
}
.promo-cta b { font-size: 21px; }

.entry--image {
  min-height: 92px;
  padding: 17px 24px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}
.entry--image .line--title {
  width: auto;
  min-height: 0;
  font-size: clamp(28px, 5.5vw, 38px);
  line-height: 1.1;
  white-space: nowrap;
}
.entry--with-visual { padding-right: 48%; }
.entry--with-visual::after { display: none; }
.entry__visual {
  position: absolute;
  z-index: 0;
  top: 4px;
  right: 4px;
  bottom: 0;
  width: 47%;
  height: calc(100% - 4px);
  display: block;
  object-fit: contain;
  object-position: right bottom;
  border-radius: 0;
  transform: translateY(-36px);
}
.entry--with-visual .line,
.entry--with-visual .hint,
.entry--with-visual .image-mark { position: relative; z-index: 1; }
.line { position: relative; z-index: 1; width: 100%; min-height: 1.36em; font-family: "Microsoft YaHei", sans-serif; font-size: clamp(17px, 4.5vw, 20px); font-weight: 700; line-height: 1.36; }
.line--title { font-size: clamp(23px, 6vw, 31px); font-weight: 900; }
.hint { position: relative; z-index: 1; margin-top: 7px; color: var(--muted); font: 600 14px/1.4 "Microsoft YaHei", sans-serif; }
.entry--main .hint { color: var(--muted); }
.entry--main .hint b { color: var(--accent); font-size: 20px; }
.image-mark { width: auto; height: auto; display: block; color: inherit; background: transparent; border-radius: 0; font: 42px/1 "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.device-download {
  min-height: 202px;
  padding: 25px 26px 23px;
  display: block;
  text-align: left;
  background: #f7efe9;
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.device-download::after { display: none; }
#download-safew { background: #edf1f8; }
.device-download__content {
  position: relative;
  z-index: 2;
  width: 61%;
  min-height: 154px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.device-download__heading,
.device-download__account,
.device-download__cta {
  position: relative;
  z-index: 1;
  width: 100%;
}
.device-download__heading {
  color: #6d7488;
  font-size: clamp(17px, 3.8vw, 21px);
  font-weight: 800;
  line-height: 1.35;
}
.device-download__account {
  display: flex;
  align-items: center;
  color: #d94c37;
  font-size: clamp(31px, 7vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
}
.device-download__cta {
  min-height: 48px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  background: #e45740;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(202, 63, 43, .20);
  font-size: clamp(16px, 3.8vw, 19px);
  font-weight: 900;
  line-height: 1;
}
.device-download__cta::after { content: "›"; font: 700 30px/1 Arial, sans-serif; }
.device-download__beauty {
  position: absolute;
  z-index: 1;
  right: 5px;
  bottom: 0;
  width: 39%;
  height: 96%;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.modal { position: fixed; inset: 0; z-index: 100; padding: 18px; display: none; place-items: center; background: rgba(3,15,10,.86); }
.modal.is-open { display: grid; }
.modal-card { position: relative; width: min(100%, 760px); padding: 0; display: block; background: transparent; border: 0; border-radius: 20px; box-shadow: none; }
.close { position: absolute; top: -13px; right: -8px; z-index: 5; width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink); background: #ffffff; border: 3px solid var(--accent); border-radius: 50%; font: 700 26px/1 Arial, sans-serif; cursor: pointer; }
.carousel { position: relative; width: 100%; touch-action: pan-y; user-select: none; }
.carousel-viewport { width: 100%; overflow: hidden; border-radius: 14px; }
.carousel-track { display: flex; width: 100%; transition: transform .3s ease; will-change: transform; }
.carousel-slide { min-width: 100%; display: grid; place-items: center; }
.carousel-slide img { width: 100%; max-height: 78vh; display: block; object-fit: contain; border-radius: 14px; -webkit-user-drag: none; }
.carousel-missing { width: 100%; min-height: min(68vh, 560px); padding: 30px; display: none; place-items: center; color: #ffffff; text-align: center; border: 1px dashed rgba(255,255,255,.55); border-radius: 14px; font: 700 16px/1.7 "Microsoft YaHei", sans-serif; }
.carousel-slide.is-missing .carousel-missing { display: grid; }
.carousel-slide.is-missing img { display: none; }
.carousel-arrow { position: absolute; z-index: 3; top: 50%; width: 46px; height: 56px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); color: rgba(255,255,255,.92); background: transparent; border: 0; border-radius: 0; font: 700 38px/1 Arial, sans-serif; text-shadow: 0 1px 5px rgba(0,0,0,.75); cursor: pointer; backdrop-filter: none; }
.carousel-arrow--prev { left: 10px; }
.carousel-arrow--next { right: 10px; }
.carousel-arrow:focus-visible, .close:focus-visible, .carousel-dot:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.carousel-dots { min-height: 32px; padding-top: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.carousel-dot { width: 10px; height: 10px; padding: 0; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.is-active { width: 25px; background: #ffffff; border-radius: 999px; }

@media (max-width: 430px) {
  body { padding-inline: 11px; }
  .page { gap: 11px; }
  .hero { height: 88px; border-radius: 15px; }
  .hero__logo { left: 14px; width: 50%; }
  .hero__register { right: 14px; min-width: 78px; height: 36px; padding: 0 15px; font-size: 16px; }
  .entry { padding: 22px 18px 20px; border-radius: 15px; }
  .entry--main { min-height: 224px; padding-top: 13px; padding-bottom: 58px; }
  .promo-title { font-size: 28px; }
  .promo-trust { margin-top: 6px; font-size: 14px; }
  .promo-benefit { margin-top: 6px; font-size: 11px; white-space: normal; line-height: 1.35; }
  .promo-features { margin-top: 9px; gap: 6px 7px; font-size: 12px; }
  .promo-cta { left: 10px; right: 10px; bottom: 10px; min-height: 44px; margin: 0; padding: 0 14px; font-size: 16px; }
  .entry--image { min-height: 84px; padding: 14px 17px; gap: 12px; }
  .entry--image .line--title { font-size: 26px; }
  .entry--image .image-mark { font-size: 36px; }
  .entry--with-visual { padding-right: 43%; }
  .entry__visual { top: 2px; right: 2px; bottom: 0; width: 47%; height: calc(100% - 2px); border-radius: 0; transform: translateY(-42px); }
  .device-download { min-height: 184px; padding: 20px 18px 17px; }
  .device-download__content { width: 63%; min-height: 147px; gap: 7px; }
  .device-download__heading { font-size: 16px; }
  .device-download__account { font-size: 32px; }
  .device-download__cta { min-height: 46px; padding-inline: 14px; font-size: 15px; }
  .device-download__beauty { right: -2px; width: 40%; height: 97%; }
  .modal { padding: 12px; }
  .carousel-arrow { width: 42px; height: 50px; }
  .carousel-arrow--prev { left: 6px; }
  .carousel-arrow--next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) { .entry, .carousel-track, .carousel-dot { transition: none; } }
