:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #090909;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: #090909;
}

.gallery,
.shade {
  position: fixed;
  inset: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.gallery img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

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

main {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}

.hero {
  width: min(100%, 560px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f4cbdc;
  font-size: 15px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  margin: 18px 0 30px;
  color: #f1f1f1;
  font-size: 18px;
  line-height: 1.6;
}

.features {
  display: block;
  width: min(100%, 330px);
  height: auto;
  margin: 0 auto 34px;
}

#download {
  width: min(100%, 310px);
  min-height: 52px;
  border: 1px solid #ff4f93;
  border-radius: 6px;
  background: #d81865;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}

#download:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

#download:active {
  background: #ba104f;
}

.invite-status {
  margin: 14px 0 0;
  color: #dddddd;
  font-size: 13px;
}

.wechat-guide {
  position: fixed;
  z-index: 5;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.wechat-panel {
  width: min(100%, 640px);
  margin-left: auto;
  padding: max(12px, env(safe-area-inset-top)) 12px 0;
  text-align: center;
}

.wechat-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.wechat-panel p {
  margin: 24px 16px;
  font-size: 17px;
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  h1 {
    font-size: 44px;
  }

  .subtitle {
    margin-bottom: 26px;
    font-size: 16px;
  }

  .features {
    width: min(88%, 300px);
    margin-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
