html,
body {
  margin: 0;
  min-height: 100%;
  background: #141414;
  color: #fff;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #141414;
  background-image:
    linear-gradient(180deg, rgba(20, 20, 20, 0.2), #141414 420px),
    url(/download/img/new-series-BPgB1pgU.webp);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%, cover;
  font-family:
    PingFang SC,
    -apple-system,
    BlinkMacSystemFont,
    Helvetica Neue,
    Arial,
    sans-serif;
  font-stretch: normal;
  font-synthesis: none;
}

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

.page {
  box-sizing: border-box;
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
}

.logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: 64px;
  margin: 0 auto 18px;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #b9bbc2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.headline {
  margin: 16px 0 0;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.stat {
  text-align: center;
}

.statNum {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.statLabel {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.statSub {
  display: block;
  margin-top: 2px;
  color: #b9bbc2;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.rule {
  width: 1px;
  height: 56px;
  justify-self: center;
  background: rgba(255, 255, 255, 0.16);
}

.prompt {
  margin: 22px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.join,
.download {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}

.join {
  background: linear-gradient(90deg, #fb3867, #ff5b8a);
  color: #fff;
}

.download {
  gap: 8px;
  background: #fff;
  color: #141414;
}

.btnIcon {
  flex: none;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.androidIcon {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAACPklEQVR42u3Zy0sVUQDAYYue9I6iIGhRSbULWkUaQUkUErXIaOkDKhcRtJCghQRZFkFCSUIU4bJt1J/QRleZKLUwih4LxdC0a+jXNu8M96rNjHo7P5jdHM58DDPnMFN24mp12f90lAVwAAdwAAdwAAdwAAdwAAdwACcOxgV8xk+0YVnWF4wluIVhfEJDKmDswm/Tu549WIPpTeFQGuAa0UawI0PsBnwX7Upad3hStM4MwffFdzitZ/iZaFOoyAC7BznRXqb50tqGYdG6sTRl8CvRctib6rKEJvHVpoitFt+91NdhrECfaF+xPnq+LTiKRjSjDc/xFB24ics4ho3x8+kX7Rs2ZLLxwCnxtWIFTuMx3pt9H9COKizHNfHVZ7rTwmvRchiUXEMYEa0LS7MG78OE7JtCZeZ7aaxBt+x7h5WZgrEfPeavHhzIBIw6jJn/xlGbKhhNFl53UgGjxcLtEZYkBsZtC7+WRMCos3iq/ycwDiJn8TSGA3MCYzV6Fe8JKnEWA5LvC87hMB5iSuH6sWou4FbFu5s35rjkO5M3xw3Fa54VGLvxS+FGsS5v3HbJV543xyoMKtw4ymcDfqF4fdFxTkq+mug8uhSvc0ZglGNS8XLY+te4teiSfL3YlPchb1TxJrCzOJg2M68b51GHt9KrHxdRgzdm3oOCYKzGD6XTEJYXAlcrvaoKgTuUXu2FwB+VXgOxYGxWum2MAx9RulXEgRuVbpfCD/EADuAADuAADuAADuAADuAADuBCxx9yT7siGGGTdgAAAABJRU5ErkJggg==);
  filter: brightness(0);
}

.btnTip {
  margin: -4px 0 0;
  color: #b9bbc2;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.lines {
  margin-top: 22px;
  padding: 16px 12px 12px;
  border-radius: 16px;
  background: #161616;
}

.linesHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.linesTitle {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.live {
  flex: none;
  color: #3dcc7a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border-radius: 12px;
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
}

.badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 15, 83, 0.16);
  color: #ff3d74;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.lineName {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.route {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #b9bbc2;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.dot {
  display: block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dcc7a;
}

.status {
  margin: 120px 0 0;
  color: #b9bbc2;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.guideOverlay,
.safariMask {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guideOverlay {
  background: rgba(20, 20, 20, 0.9);
}

.guideOverlay[hidden],
.safariMask[hidden] {
  display: none;
}

.guideWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, 320px);
}

.guideCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  padding: 24px;
  border-radius: 16px;
  background: #26272f;
  color: #fff;
  text-align: center;
}

.guideTitle {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.guideDesc,
.guideNotice,
.stepDesc {
  color: #b9bbc2;
  font-size: 13px;
  line-height: 20px;
}

.guideDivider {
  width: 100%;
  height: 1px;
  background: #33343c;
}

.guideSteps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.guideStep {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.stepIndex {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 15, 83, 0.16);
  color: #ff3d74;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
}

.stepText {
  min-width: 0;
}

.stepTitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.guideNotice {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.guideConfirm {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #ff0f53;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.guideClose {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 32px;
  cursor: pointer;
}

.guideClose::before {
  content: "×";
}

.safariMask {
  background: rgba(0, 0, 0, 0.7);
}

.downTip {
  box-sizing: border-box;
  width: min(100% - 48px, 310px);
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  color: #323232;
  text-align: center;
}

.downTipTitle {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 26px;
}

.downTipContent,
.url {
  font-size: 15px;
  line-height: 22px;
}

.url {
  margin-top: 12px;
  color: #888;
  text-align: left;
  word-break: break-all;
}

.downTipConfirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 32px;
  margin: 24px auto 0;
  border: 0;
  border-radius: 999px;
  background: #5b92ee;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

@media (hover: hover) {
  .join:hover,
  .download:hover,
  .line:hover {
    filter: brightness(1.08);
  }
}

.join:focus-visible,
.download:focus-visible,
.line:focus-visible {
  outline: 2px solid #ff3d74;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background-color: #141414;
    background-image:
      linear-gradient(180deg, rgba(20, 20, 20, 0.72), rgba(20, 20, 20, 0.94)),
      url(/download/img/new-series-BPgB1pgU.webp);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
  }

  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 28px;
    align-items: stretch;
    width: min(1180px, 100%);
    min-height: min(720px, calc(100vh - 80px));
    margin: auto;
    padding: 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 52px 56px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(22, 22, 22, 0.78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  }

  .logo {
    width: auto;
    max-width: 260px;
    height: 72px;
    margin: 0 0 24px;
  }

  .eyebrow {
    justify-content: flex-start;
    width: fit-content;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d8dae0;
    font-size: 14px;
  }

  .eyebrow::before,
  .eyebrow::after {
    display: none;
  }

  .headline {
    max-width: 560px;
    margin-top: 20px;
    font-size: 44px;
    line-height: 1.18;
    text-align: left;
  }

  .stats {
    display: flex;
    gap: 28px;
    align-items: stretch;
    max-width: 520px;
    margin-top: 28px;
    grid-template-columns: unset;
  }

  .rule {
    align-self: stretch;
    width: 1px;
    height: auto;
    min-height: 64px;
  }

  .stat {
    flex: 1;
    text-align: left;
  }

  .statNum {
    font-size: 26px;
  }

  .prompt {
    margin-top: 28px;
    font-size: 17px;
    text-align: left;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 560px;
    margin-top: 20px;
  }

  .join,
  .download {
    flex: 1 1 200px;
    width: auto;
    max-width: 260px;
    height: 52px;
    font-size: 17px;
  }

  .lines {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding: 28px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(22, 22, 22, 0.88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  }

  .linesHead {
    margin-bottom: 16px;
    padding: 0 2px;
  }

  .linesTitle {
    font-size: 17px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    flex: 1;
  }

  .line {
    min-height: 72px;
    padding: 14px 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #232323;
  }

  .guideWrap {
    width: min(100% - 48px, 420px);
  }

  .guideCard {
    max-height: calc(100vh - 120px);
  }
}

@media (min-width: 1200px) {
  .page {
    grid-template-columns: minmax(0, 1.15fr) 480px;
    gap: 36px;
    width: min(1240px, 100%);
  }

  .hero {
    padding: 60px 64px;
  }

  .headline {
    font-size: 52px;
  }

  .lines {
    padding: 32px 28px 28px;
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  body {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .page {
    min-height: 0;
  }

  .hero {
    padding: 36px 40px;
  }

  .headline {
    font-size: 36px;
  }
}
