/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.community-hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(255, 255, 255, 0.015) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(60, 41, 227, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #05050a 0%, #0a0a12 100%);
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 35%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(ellipse at 20% 70%, rgba(60, 41, 227, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #05050a 0%, #0a0a12 100%);
}

.community-hero__overlay {
  min-height: 90vh;
  display: flex;
  align-items: center;
  width: 100%;
}

.community-hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  height: 90vh;
  display: flex;
  align-items: center;
}

.community-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.community-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(20, 20, 28, 0.6),
      rgba(20, 20, 28, 0.3));
  z-index: 1;
}

.community-hero__overlay {
  position: relative;
  z-index: 2;
}

.community-hero__content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1160px, calc(100% - 120px));
}

.community-hero__content .hero__title {
  font-size: 52px;
  line-height: normal;
}

.community-hero .hero__body {
  max-width: 580px;
  line-height: 1.6;
  font-size: 16px;
}

.community-hero__arrow {
  display: inline-block;
  margin-top: 8px;
}


/* ─── Shared section layout ─────────────────────────────────────────────────── */

.community-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-section__inner {
  width: min(1160px, calc(100% - 120px));
  margin: 0 auto;
}


/* ─── Globe section ─────────────────────────────────────────────────────────── */

.community-section--network {
  min-height: 620px;
  background: var(--Obsidian);
}

.community-section__inner--globe {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.72fr);
  align-items: center;
  gap: 48px;
  margin: 0px auto;
  width: min(1184px, calc(100% - 64px));
}

.community-globe {
  min-height: 520px;
  position: relative;
}

.community-network__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-network__copy .panel__body {
  max-width: 500px;
  margin-right: 40px
}


/* ─── Feature list ──────────────────────────────────────────────────────────── */

.community-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.community-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  /* matches your other lists */
  line-height: 1.5;
}

.community-feature-list img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}



/* ─── Track section ─────────────────────────────────────────────────────────── */

.community-section--track {
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(28, 28, 36, 0.38) 0%, rgba(28, 28, 36, 0.56) 100%),
    linear-gradient(180deg, #0a0d16 0%, #0d1020 100%);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.community-section__inner--split {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(400px, 1fr);
  gap: 64px;
  align-items: center;
}

.community-track__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-track__mockup {
  margin: 0;
}

.community-track__mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.community-panel-3 {
  position: relative;
  overflow: hidden;
}

.community-panel-3__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.community-panel-3::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(20, 20, 28, 0.6),
      rgba(20, 20, 28, 0.6));
  z-index: 0;
}

.community-panel-3__grid {
  position: relative;
  z-index: 2;
}


/* ─── Globe dots & cluster ───────────────────────────────────────────────────── */

.cluster-dot {
  box-shadow: 0 0 8px rgba(76, 210, 228, 0.7);
}

.friend-tiles {
  display: flex;
  flex-direction: row;
  gap: 5px;
  position: absolute;
  top: 70px;
  transform: translateX(-50%);
  z-index: 1000;
}

/* ─── Friend tile card ───────────────────────────────────────────────────────── */

.friend-tile {
  width: 200px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  z-index: 1000;
  font-family: var(--font-family-base);
}

.friend-tile-background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.friend-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

.friend-avatar-ring {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(91deg, #3c29e3 -1.49%, #4392f3 33.58%, #4cd2e4 67.16%, #10f9ab 102.23%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-avatar-ring.offline {
  background: #454756;
}

.friend-avatar-gap {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 5px;
  right: 10px;
  width: 12px;
  height: 12px;
  background-color: #3cb4cc;
  border: 3px solid #000;
  border-radius: 50%;
}

.friend-username {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  padding-top: 30px;
  font-family: var(--font-family-base);
}

.friend-fullname {
  color: #ccc;
  font-size: 14px;
}

.friend-location {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.location-flag {
  width: 18px;
  height: 12px;
  margin-right: 5px;
}

.friend-location-text {
  color: #fff;
  font-size: 14px;
}




/* ─── Panel 3 — Track. Compare. Compete. ────────────────────────────────────── */

.community-panel-3 {
  padding: 20px 0;
  background: var(--Obsidian);
}

.community-panel-3__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.community-panel-3__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-panel-3__visual {
  display: flex;
  justify-content: center;
  max-width: 459px;
}

.community-panel-3__visual img {
  width: min(520px, 100%);
  height: auto;
  border-radius: 12px;
}


/* ─── Panel 4 — Rising Players ──────────────────────────────────────────────── */

.community-panel-4 {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--Obsidian);
  text-align: center;
}

.community-panel-4__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.community-panel-4__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.community-panel-4__inner .panel__body {
  max-width: 640px;
}

.community-panel-4__mockup {
  width: 100vw;
  margin-top: 8px;
}

.community-panel-4__mockup img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}


/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1300px) {


  .community-section__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: min(1160px, calc(100% - 120px));
    margin: 0 auto;
    gap: 40px;
    padding: 40px 0;
  }

  .community-globe {
    min-height: 410px;
    height: 100%;
    max-width: 620px;
    background-color: transparent;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 0;
  }

  .community-panel-4 {
    padding: 0px 0;
  }

  .community-panel-4__inner {
    gap: 14px;
  }


}


@media (max-width: 1080px) {

  .community-section__inner {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .community-network__copy .panel__body {
    max-width: unset;
  }

}


@media (max-width: 960px) {

  .community-hero,
  .community-hero__overlay {
    min-height: 680px;
  }


  .community-hero__content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(1160px, calc(100% - 120px));
  }

  .community-hero__content .hero__title {
    font-size: 42px;
  }

  .community-section--network {
    padding: 52px 0px;
  }

  .community-section__inner--globe {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 0;
    gap: 32px;
    width: min(1160px, calc(100% - 120px));
  }

  .community-globe {
    min-height: 380px;
  }

  .community-network__copy .panel__body {
    max-width: none;
  }

  .community-panel-2__grid,
  .community-panel-3__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .community-panel-3__visual {
    justify-content: center;
  }

  .community-panel-4__mockup img {
    height: auto;
    border-radius: 12px;
    width: 140%;
    max-width: none;
    margin-left: -20%;
  }

}

@media (max-width: 720px) {

  .community-hero__content {
    width: min(1160px, calc(100% - 80px));
    margin: 0 auto;
  }


}

@media (max-width: 640px) {


  .community-section__inner {
    width: min(1160px, calc(100% - 80px));
    margin: 0 auto;
  }

  .community-globe {
    min-height: 300px;
  }


  .community-hero .hero__body {
    font-size: 14px;
  }

  .community-panel-4 {
    padding: 0px 0;
  }

  .community-section__inner {
    gap: 12px;
  }
}