/* Homepage-only presentation; shared guide and download-page layouts stay independent. */
.home-page {
  color-scheme: dark;
  background:
    radial-gradient(ellipse 620px 900px at 105% 310px, #11264a 0, transparent 75%),
    #070d20;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.home-page .site-header {
  border-bottom: 1px solid #ffffff0c;
  background: rgba(7, 13, 32, 0.94);
}

.home-page .site-header .nav-wrap {
  width: min(calc(100% - 40px), 1060px);
  min-height: 66px;
}

.home-page .site-header .brand {
  gap: 10px;
  font-weight: 780;
  letter-spacing: -0.7px;
}

.home-page .site-header .brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: none;
}

.home-page .site-header .brand span {
  font-size: 18px;
}

.home-page .nav-toggle {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-page .nav-toggle::before {
  display: none;
}

.home-page .nav-toggle span,
.home-page .nav-toggle::after {
  width: 21px;
  margin: 0;
}

.home-page .nav-toggle::after {
  width: 15px;
  margin-left: 6px;
}

.home-page .nav-toggle[aria-expanded="true"] span {
  opacity: 1;
  transform: translateY(4px) rotate(45deg);
}

.home-page .nav-toggle[aria-expanded="true"]::after {
  width: 21px;
  margin-left: 0;
  transform: translateY(-4px) rotate(-45deg);
}

.home-hero {
  max-width: 1100px;
  margin: auto;
  padding: 25px 20px 0;
  line-height: normal;
}

.home-eyebrow {
  margin: 0 0 11px;
  color: #adbeda;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-eyebrow span {
  margin-right: 6px;
  color: #48d7fa;
  font-size: 14px;
  letter-spacing: -2px;
}

.home-hero h1 {
  margin: 0;
  color: white;
  font-size: 52px;
  font-weight: 850;
  letter-spacing: -2.4px;
  line-height: 0.99;
}

.home-hero h1 span {
  display: inline-block;
  padding-bottom: 4px;
  color: #48d7fa;
}

.home-hero-promise {
  margin: 15px 0 18px;
  color: #c4cde0;
  font-size: 15px;
  letter-spacing: -0.12px;
  line-height: 1.55;
}

.home-hero-promise a {
  color: #8ee6ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.home-download-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-store-badge {
  display: flex;
  width: 156px;
  height: 52px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.home-store-badge img {
  width: 156px;
  height: 52px;
  object-fit: contain;
}

/* The supplied Google badge includes its own clear space. */
.home-store-badge.is-google-play img {
  width: 177px;
  max-width: none;
  height: auto;
}

.home-download-note {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  letter-spacing: 0.1px;
  line-height: 1.8;
}

.home-download-note strong {
  color: #f1f4fc;
  font-weight: 650;
}

.home-download-note > span {
  color: #929fba;
}

.home-other-store {
  display: inline-flex;
  min-height: 44px;
  margin-top: 3px;
  align-items: center;
  gap: 7px;
  color: #a6b6d2;
  font-size: 11px;
}

.home-other-store > span:last-child {
  color: #d3ddef;
}

.home-gameplay {
  width: 100%;
  max-width: 540px;
  margin: 5px auto 0;
}

.home-gameplay img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.home-page #screenshots {
  padding-top: 32px;
}

.home-page #screenshots .section-head {
  gap: 20px;
  margin-bottom: 24px;
}

.home-page #screenshots .section-title {
  font-size: clamp(28px, 8.2vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.home-page #screenshots .section-copy {
  margin-top: 16px;
}

.home-friends-teaser {
  position: relative;
  display: grid;
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 25px 20px 28px;
  grid-template-columns: minmax(0, 1fr) 96px;
  column-gap: 6px;
  border-top: 1px solid #ffffff12;
  background: linear-gradient(130deg, #17223a88, transparent 80%);
  line-height: normal;
}

.home-friends-teaser .home-eyebrow {
  margin-bottom: 10px;
  color: #aa9fdb;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.home-friends-teaser h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.85px;
  line-height: 1.12;
}

.home-friends-teaser > img {
  width: 100%;
  height: 112px;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  object-fit: contain;
}

.home-friends-copy {
  margin: 14px 0 0;
  grid-column: 1 / -1;
  color: #a6b5cf;
  font-size: 12px;
  line-height: 1.7;
}

.home-text-link {
  display: inline-flex;
  min-height: 44px;
  grid-column: 1 / -1;
  align-items: center;
  gap: 20px;
  color: #d4e9ff;
  font-size: 12px;
  font-weight: 650;
}

.home-text-link span {
  color: #48d7fa;
}

@media (min-width: 760px) {
  .home-page .site-header .nav-wrap {
    width: min(calc(100% - 70px), 1030px);
    min-height: 80px;
  }

  .home-hero {
    display: grid;
    padding: 68px 35px 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 70px;
  }

  .home-hero .home-eyebrow {
    font-size: 12px;
  }

  .home-hero h1 {
    font-size: clamp(52px, 6.9vw, 76px);
    letter-spacing: -4px;
  }

  .home-hero-promise {
    margin-top: 22px;
    font-size: 17px;
  }

  .home-gameplay {
    margin: 0;
    justify-self: center;
  }

  .home-page #screenshots {
    padding-top: 48px;
  }

  .home-page #screenshots .section-title {
    font-size: clamp(36px, 3.8vw, 48px);
  }

  .home-friends-teaser {
    max-width: 1030px;
    padding: 35px;
    grid-template-columns: minmax(0, 1fr) 150px;
    border: 1px solid #26324b;
    border-radius: 20px;
  }

  .home-friends-teaser > img {
    height: 165px;
  }

  .home-friends-teaser h2 {
    font-size: 36px;
  }

  .home-friends-copy {
    grid-column: 1;
    font-size: 15px;
  }
}

@media (max-width: 1080px) {
  .home-page .nav-toggle {
    display: flex;
  }
}

@media (max-width: 360px) {
  .home-page .site-header .nav-wrap {
    width: calc(100% - 32px);
  }

  .home-hero {
    padding-inline: 16px;
  }

  .home-hero h1 {
    font-size: 47px;
  }

  .home-download-row {
    gap: 12px;
  }

  .home-download-note {
    font-size: 10px;
  }

  .home-hero-promise {
    font-size: 14px;
  }
}
