:root {
  color-scheme: dark;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    sans-serif;
  background: #1a1a2e;
  font-synthesis: none;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 10%, #303052, #1a1a2e 58%);
}

button {
  font: inherit;
}

.desktop-showcase {
  display: none;
}

.page-container {
  position: relative;
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: #1a1a2e;
  box-shadow: 0 0 40px rgb(0 0 0 / 50%);
}

.background-slideshow,
.background-slide,
.page-overlay {
  position: absolute;
  inset: 0;
}

.background-slideshow {
  z-index: -3;
}

.background-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  animation: background-fade 12s infinite;
}

.background-slide--xiaoya {
  background-image: url("/BL-JS-60/assets/images/profile-xiaoya.webp");
}

.background-slide--ajie {
  background-image: url("/BL-JS-60/assets/images/profile-ajie.webp");
  animation-delay: 6s;
}

.page-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 20%, transparent, rgb(17 17 34 / 18%) 42%),
    linear-gradient(
      180deg,
      rgb(19 18 38 / 24%) 0%,
      rgb(21 20 43 / 76%) 48%,
      rgb(15 15 31 / 97%) 100%
    );
}

.content {
  display: flex;
  min-height: 100%;
  padding: max(25px, env(safe-area-inset-top)) 20px
    max(28px, env(safe-area-inset-bottom));
  align-items: center;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.app-header {
  display: flex;
  width: 100%;
  max-width: 340px;
  align-items: center;
  justify-content: center;
}

.app-logo {
  width: 58px;
  height: 58px;
  margin-right: 12px;
  border: 2px solid rgb(255 255 255 / 20%);
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgb(255 75 125 / 30%);
}

.brand {
  text-align: left;
}

.brand h1 {
  color: transparent;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff4b7d, #ff7a5c, #ffb347);
  background-clip: text;
  -webkit-background-clip: text;
}

.brand p {
  margin-top: 2px;
  color: rgb(255 255 255 / 70%);
  font-size: 14px;
  letter-spacing: 2px;
}

.match-banner {
  display: flex;
  margin: 17px 0 20px;
  padding: 6px 18px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(255 75 125 / 30%);
  border-radius: 30px;
  color: #fff;
  font-size: 13px;
  background: rgb(255 75 125 / 15%);
  backdrop-filter: blur(10px);
}

.match-banner strong {
  color: #ff4b7d;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  animation: live-pulse 1.5s infinite;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: clamp(310px, 40dvh, 350px);
  margin: 0 0 18px;
  touch-action: pan-y;
}

.profile-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(82%, 315px);
  height: 100%;
  max-width: none;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 20px;
  opacity: 0;
  cursor: grab;
  background: #2a2a4a;
  box-shadow:
    0 14px 34px rgb(0 0 0 / 36%),
    inset 0 0 0 1px rgb(255 255 255 / 4%);
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
  user-select: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.profile-card:nth-child(1) {
  z-index: 2;
  opacity: 1;
  transform: translate3d(-54%, 0, 0) rotate(-1.2deg);
}

.profile-card:nth-child(2) {
  z-index: 1;
  opacity: 0.72;
  transform: translate3d(-44%, 10px, 0) rotate(2.2deg) scale(0.96);
}

.profile-card:active {
  cursor: grabbing;
}

.profile-card.is-swiping {
  transition: none;
}

.profile-card.is-liked {
  transform: translate3d(70vw, -10px, 0) rotate(12deg) !important;
  opacity: 0;
}

.profile-card.is-passed {
  transform: translate3d(-120vw, -10px, 0) rotate(-12deg) !important;
  opacity: 0;
}

.profile-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.profile-card__status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  background: rgb(0 0 0 / 32%);
  backdrop-filter: blur(7px);
}

.profile-card__status::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  content: "";
  background: #20ed8a;
  box-shadow: 0 0 7px #20ed8a;
}

.profile-card__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 35px 12px 11px;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(transparent, rgb(0 0 0 / 88%));
}

.profile-card__name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.verified-badge {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  background: #1e90ff;
}

.profile-card__distance {
  color: rgb(255 255 255 / 70%);
  font-size: 12px;
}

.swipe-hint {
  display: flex;
  margin: 2px 0 20px;
  padding: 6px 18px;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  background: rgb(255 255 255 / 8%);
}

.swipe-hint span {
  color: #ff4b7d;
  font-size: 16px;
  animation: arrow-move 1.5s infinite;
}

.swipe-hint span:last-child {
  animation-delay: 750ms;
}

.swipe-hint p {
  color: rgb(255 255 255 / 60%);
  font-size: 12px;
  letter-spacing: 1px;
}

.features {
  display: flex;
  width: 100%;
  max-width: 370px;
  margin: 0 0 23px;
  justify-content: center;
  gap: 8px;
}

.feature {
  display: flex;
  min-width: 0;
  padding: 9px 7px;
  flex: 1 1 0;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 5%));
  backdrop-filter: blur(8px);
}

.feature span {
  font-size: 21px;
}

.feature p {
  color: rgb(255 255 255 / 70%);
  font-size: 11px;
  white-space: nowrap;
}

.download-guide {
  margin-bottom: 10px;
  color: rgb(255 255 255 / 82%);
  font-size: 14px;
  animation: guide-bounce 2s infinite;
}

.download-area {
  display: flex;
  width: 100%;
  margin-top: 0;
  align-items: center;
  flex-direction: column;
}

.download-button {
  position: relative;
  width: min(100%, 320px);
  max-width: none;
  padding: 15px 0;
  overflow: hidden;
  border: 0;
  border-radius: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff4b7d, #ff7a5c);
  box-shadow:
    0 12px 34px rgb(255 75 125 / 42%),
    inset 0 1px rgb(255 255 255 / 24%);
  transition: transform 180ms ease;
}

.download-button::after {
  position: absolute;
  inset: -80%;
  content: "";
  opacity: 0;
  background: radial-gradient(circle, rgb(255 255 255 / 24%), transparent 58%);
  transition: opacity 180ms ease;
}

.download-button:hover::after {
  opacity: 1;
}

.download-button:active {
  transform: scale(0.96);
}

.social-proof {
  margin-top: 12px;
  color: rgb(255 255 255 / 42%);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.browser-guide {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  padding: 20px 25px;
  align-items: flex-end;
  flex-direction: column;
  background: rgb(0 0 0 / 88%);
}

.browser-guide__arrow {
  margin: 0 18px 9px 0;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  animation: guide-arrow 1.2s ease-in-out infinite;
}

.browser-guide__panel {
  width: min(280px, 88vw);
  padding: 16px 20px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
  background: rgb(255 255 255 / 15%);
  backdrop-filter: blur(6px);
}

.browser-guide__panel strong {
  color: #ffd700;
}

.browser-guide__panel button {
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 20px;
  color: #171717;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd700, #ffa500);
}

.toast {
  position: fixed;
  z-index: 120;
  bottom: 28px;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 11px 18px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  background: rgb(20 20 34 / 92%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 34%);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.net-modal {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: none;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 70%);
  backdrop-filter: blur(8px);
}

.net-modal__panel {
  width: min(100%, 320px);
  padding: 30px 24px 24px;
  border-radius: 24px;
  color: #182135;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fff5f8);
  box-shadow: 0 24px 50px rgb(0 0 0 / 34%);
}

.net-modal__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4b7d, #ff7a5c);
}

.net-modal__icon svg {
  width: 28px;
  height: 28px;
}

.net-modal__title {
  font-size: 18px;
  font-weight: 900;
}

.net-modal__desc {
  margin-top: 10px;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.net-modal__button {
  width: 100%;
  margin-top: 20px;
  padding: 13px 0;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #ff4b7d, #ff7a5c);
}

[hidden] {
  display: none !important;
}

@keyframes background-fade {
  0%,
  25%,
  100% {
    opacity: 1;
  }

  33%,
  91% {
    opacity: 0;
  }
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px #00ff88;
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 12px #00ff88;
  }
}

@keyframes arrow-move {
  50% {
    transform: translateX(4px);
  }
}

@keyframes guide-bounce {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes guide-arrow {
  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 760px) {
  :root {
    color-scheme: light;
    background: #f8f9fc;
  }

  body {
    position: relative;
    min-height: 100dvh;
    padding: 36px;
    isolation: isolate;
    overflow: auto;
    background:
      radial-gradient(circle at 14% 18%, rgb(255 85 155 / 18%), transparent 18%),
      radial-gradient(circle at 87% 78%, rgb(88 127 255 / 17%), transparent 20%),
      linear-gradient(rgb(24 32 52 / 3%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(24 32 52 / 3%) 1px, transparent 1px),
      #f8f9fc;
    background-size: auto, auto, 48px 48px, 48px 48px, auto;
  }

  body::before,
  body::after {
    position: fixed;
    z-index: -1;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    content: "";
    filter: blur(72px);
    pointer-events: none;
  }

  body::before {
    top: 8%;
    left: 8%;
    background: rgb(255 81 153 / 25%);
  }

  body::after {
    right: 7%;
    bottom: 8%;
    background: rgb(72 113 255 / 22%);
  }

  .page-container {
    width: min(398px, calc(100vw - 72px));
    height: min(820px, calc(100dvh - 72px));
    min-height: 640px;
    border: 8px solid rgb(255 255 255 / 94%);
    border-radius: 46px;
    box-shadow:
      0 36px 80px rgb(29 37 57 / 22%),
      0 8px 24px rgb(29 37 57 / 11%),
      inset 0 0 0 1px rgb(20 28 46 / 8%);
  }

  .page-container::before {
    position: absolute;
    z-index: 50;
    top: 10px;
    left: 50%;
    width: 92px;
    height: 25px;
    border-radius: 999px;
    content: "";
    background: #050505;
    box-shadow: 0 2px 9px rgb(0 0 0 / 24%);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .page-container::after {
    position: absolute;
    z-index: 50;
    bottom: 9px;
    left: 50%;
    width: 112px;
    height: 4px;
    border-radius: 99px;
    content: "";
    background: rgb(255 255 255 / 72%);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .content {
    padding-top: 46px;
  }
}

@media (min-width: 900px) {
  body {
    grid-template-columns: minmax(310px, 520px) 398px;
    gap: clamp(38px, 6vw, 110px);
    place-content: center;
  }

  .desktop-showcase {
    position: relative;
    display: block;
    max-width: 520px;
    color: #151b2b;
  }

  .desktop-showcase::before {
    position: absolute;
    z-index: -1;
    top: -72px;
    left: -65px;
    width: 145px;
    height: 145px;
    border: 1px solid rgb(223 30 91 / 16%);
    border-radius: 50%;
    content: "";
    box-shadow:
      0 0 0 22px rgb(223 30 91 / 4%),
      0 0 0 44px rgb(223 30 91 / 2%);
  }

  .desktop-showcase__eyebrow {
    color: #db1d59;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
  }

  .desktop-showcase h1 {
    margin-top: 18px;
    font-size: clamp(43px, 4.5vw, 64px);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .desktop-showcase h1 span {
    color: transparent;
    background: linear-gradient(100deg, #df1e5a, #a338df 55%, #4769df);
    background-clip: text;
    -webkit-background-clip: text;
  }

  .desktop-showcase__description {
    max-width: 480px;
    margin-top: 24px;
    color: #6b7285;
    font-size: 17px;
    line-height: 1.85;
  }

  .desktop-showcase__features {
    display: grid;
    gap: 10px;
    margin-top: 29px;
  }

  .desktop-showcase__features > span {
    display: flex;
    width: fit-content;
    min-width: 230px;
    padding: 10px 16px 10px 11px;
    align-items: center;
    gap: 11px;
    border: 1px solid rgb(24 33 54 / 7%);
    border-radius: 999px;
    color: #343b4e;
    font-size: 14px;
    font-weight: 750;
    background: rgb(255 255 255 / 76%);
    box-shadow: 0 8px 25px rgb(27 39 66 / 6%);
    backdrop-filter: blur(8px);
  }

  .desktop-showcase__features b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    background: linear-gradient(145deg, #ec3268, #993bdb);
  }

  .desktop-showcase__trust {
    display: flex;
    margin-top: 28px;
    align-items: baseline;
    gap: 10px;
    color: #8b91a0;
    font-size: 13px;
  }

  .desktop-showcase__trust strong {
    color: #1d2332;
    font-size: 25px;
  }
}

@media (max-width: 759px) and (max-height: 720px) {
  .content {
    padding-top: 20px;
  }

  .app-logo {
    width: 50px;
    height: 50px;
  }

  .brand h1 {
    font-size: 28px;
  }

  .card-stack {
    height: 280px;
  }

  .feature {
    padding-block: 7px;
  }
}

@media (max-width: 350px) {
  .content {
    padding-inline: 12px;
  }

  .card-stack {
    height: 300px;
  }

  .feature p {
    font-size: 10px;
  }
}

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