/* Homepage only. Loads after site.css and reuses its tokens. */

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4.5rem 0;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.05;
  text-wrap: balance;
  background: var(--text-title);
  -webkit-background-clip: text;
  background-clip: text;
  /* background-clip: text only paints inside the box, so give descenders (g, y, p) room below the last line */
  padding-bottom: .12em;
  color: transparent;
  filter: var(--title-fx);
}

.section-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 60ch;
  margin-top: .9rem;
  text-shadow: var(--text-fx);
}

.center {
  text-align: center;
}

.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ── HERO ── */
#hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-halo {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 440px;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  opacity: .9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 14px 30px rgba(0, 0, 0, .55), 0 0 46px rgba(183, 99, 207, .55);
  animation: icon-pop 420ms var(--ease-pop) both;
}

@keyframes icon-pop {
  from {
    transform: scale(.6);
  }

  to {
    transform: scale(1);
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1;
  text-wrap: balance;
  background: var(--text-title);
  -webkit-background-clip: text;
  background-clip: text;
  /* background-clip: text only paints inside the box, so give descenders (g, y, p) room below the last line */
  padding-bottom: .12em;
  color: transparent;
  filter: var(--title-fx);
}

.hero-headline span {
  display: block;
}

.hero-subdesc {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  max-width: 62ch;
  margin: 1.25rem auto 0;
  text-shadow: var(--text-fx);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--surface-slot);
  border: 1px solid var(--rule-soft);
}

.stars {
  color: var(--gold);
  letter-spacing: .1em;
  text-shadow: var(--text-fx);
}

.stat-label {
  color: var(--text-body);
  font-size: .95rem;
  text-decoration: none;
}

.stat-bold {
  font-weight: 900;
  color: var(--text-white);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.hero-actions .store-badges {
  justify-content: center;
}

.hero-actions .store-badges img {
  height: 60px;
}

.hero-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1rem;
  font-size: .95rem;
  color: var(--text-dim);
}

.hero-tagline {
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--text-dim);
}

/* ── PLAYABLE ── */
#playable .section-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3.5rem;
}

.playable-note {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: .95rem;
}

.playable-frame {
  width: 360px;
  height: 640px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .65), 0 0 0 3px rgba(255, 255, 255, .28), 0 0 46px rgba(183, 99, 207, .55);
}

.playable-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  #playable .section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  #playable .section-lead {
    margin-left: auto;
    margin-right: auto;
  }

  /* narrower than the screen so a thumb can scroll past the game */
  .playable-frame {
    width: min(300px, 100vw - 6rem);
    height: calc(min(300px, 100vw - 6rem) * 16 / 9);
    margin: 0 auto;
  }
}

/* ── FEATURES ── */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.tile {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-tile);
  background: linear-gradient(180deg, #2B1F55 0%, #3A2668 100%);
  border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-tile);
  text-align: left;
}

.tile img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
}

.tile h3 {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--text-white);
  text-shadow: var(--text-fx);
}

.tile p {
  margin-top: .35rem;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    grid-template-columns: 56px 1fr;
    padding: 1.2rem;
  }

  .tile img {
    width: 56px;
    height: 56px;
  }
}

/* league ladder under the tiles */
.ladder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--r-tile);
  background: var(--surface-slot);
  border: 2px solid var(--rule-gold);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35);
}

.ladder ol {
  list-style: none;
  display: flex;
  gap: clamp(.5rem, 2vw, 1.5rem);
}

.ladder li {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* the tier icons have different proportions; a square box keeps every label on one line */
.ladder li img {
  width: clamp(44px, 7vw, 64px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto .2rem;
}

.ladder p {
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: var(--text-fx);
}

@media (max-width: 720px) {
  .ladder {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
}

/* ── CLUBS ── */
#clubs .section-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

#clubs .btn {
  margin-top: 1.75rem;
}

.club-rows {
  list-style: none;
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border-radius: var(--r-lg);
  background: var(--surface-panel);
  border: 2px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-card);
}

.club-rows li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface-row);
}

.club-rows img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
}

.club-rows h3 {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-white);
  text-shadow: var(--text-fx);
}

.club-rows p {
  font-size: .95rem;
  line-height: 1.55;
  margin-top: .15rem;
}

@media (max-width: 860px) {
  #clubs .section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── GUIDES ── */
.guide-groups {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.guide-group h3 {
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.guide-group ul {
  list-style: none;
  display: grid;
  gap: .75rem;
}

.guide-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--surface-row);
  border: 2px solid rgba(255, 255, 255, .1);
  color: var(--text-body);
  text-decoration: none;
  transition: transform 140ms var(--ease-pop), border-color 140ms ease, background 140ms ease;
}

.guide-link:hover {
  color: var(--text-body);
  background: rgba(43, 31, 85, .9);
  border-color: rgba(95, 201, 234, .5);
  transform: translateY(-2px);
}

.guide-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-white);
  text-shadow: var(--text-fx);
}

.guide-desc {
  display: block;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin-top: .15rem;
}

.guide-link svg {
  width: 22px;
  height: 22px;
  color: var(--text-cyan);
}

/* "start here": the one guide a newcomer should open first */
.guide-link.featured {
  background: var(--surface-card);
  border-color: rgba(255, 255, 255, .25);
  box-shadow: var(--shadow-tile);
  padding: 1.3rem 1.4rem;
}

.guide-link.featured .guide-desc {
  color: rgba(255, 255, 255, .86);
}

.guide-link.featured svg {
  color: var(--text-white);
}

.start-here {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .2rem;
}

@media (max-width: 860px) {
  .guide-groups {
    grid-template-columns: 1fr;
  }
}
