/* Sigma Ball homepage — white canvas, longer league cards. */
.sb-home {
  position: relative;
  isolation: isolate;
  padding: 1.15rem 0 0;
  background: #ffffff;
  color: #141820;
  overflow: hidden;
}
.sb-home__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.sb-home > .container,
.sb-home > .sw-brand-band {
  position: relative;
  z-index: 1;
}
.sb-home__intro {
  text-align: center;
  margin-bottom: 1.25rem;
}
.sb-home__intro h1 {
  font-family: var(--font-display, Cinzel, "Times New Roman", serif);
  color: #b8860b;
  font-size: clamp(1.45rem, 6vw, 2.35rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.sb-home__intro p,
.league-toast {
  color: #1f2430;
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
}

.league-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.9rem;
}

.league-pair {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  width: 100%;
}

.league-card {
  position: relative;
  display: grid;
  grid-template-columns: 5.2rem 1fr 4.8rem;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 7.2rem;
  padding: 0.85rem 0.8rem;
  border: 1px solid rgba(20, 24, 32, 0.14);
  border-radius: 18px;
  background: #fff;
  color: #141820;
  text-align: left;
  font: inherit;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 24, 32, 0.07);
}
.league-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--card-accent, #d4a017);
}

.league-card__mark {
  z-index: 1;
  width: 5.2rem;
  height: 6.1rem;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.2rem;
  overflow: hidden;
  isolation: isolate;
}
.league-card__mark img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 92%;
  object-fit: contain;
  display: block;
}
.league-card__copy,
.league-card__photo,
.league-card__lock {
  position: relative;
  z-index: 2;
  background: #fff;
}
.league-card__copy {
  min-width: 0;
}
.league-card__copy strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #11151c;
  font-weight: 800;
}
.league-card__lock {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6170;
  font-weight: 800;
}
.league-card__photo {
  z-index: 1;
  width: 4.8rem;
  height: 6.1rem;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f6;
}
.league-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.league-card.is-open {
  cursor: pointer;
  border-color: #b8860b;
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.4), 0 10px 24px rgba(184, 134, 11, 0.1);
}
.league-card.is-open:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 3px;
}
.league-card.is-locked {
  cursor: not-allowed;
  filter: grayscale(0.22);
  opacity: 0.86;
}

.league-toast {
  margin: 0.9rem auto 1.2rem;
  text-align: center;
  min-height: 1.2em;
}

@media (min-width: 768px) {
  .sb-home {
    padding: 1.6rem 0 0;
  }
  .league-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
  }
  .league-pair {
    flex-direction: row;
    flex: 0 0 auto;
    width: auto;
    gap: 1rem;
  }
  .league-pair .league-card {
    flex: 0 0 11.4rem;
    width: 11.4rem;
  }
  .league-card {
    flex: 0 0 11.4rem;
    width: 11.4rem;
    grid-template-columns: 1fr;
    grid-template-rows: 9.5rem auto 1fr auto;
    min-height: 24rem;
    padding: 1.05rem 0.85rem 0.95rem;
    text-align: center;
    justify-items: center;
  }
  .league-card::before {
    width: auto;
    height: 4px;
    inset: 0 0 auto 0;
  }
  .league-card__mark {
    width: 100%;
    height: 9.5rem;
  }
  .league-card__photo {
    width: 100%;
    height: 8.6rem;
  }
  .league-card__lock {
    margin-top: 0.5rem;
    text-align: center;
  }
}

html[data-theme="dark"] .sb-home {
  background: #ffffff;
  color: #141820;
}
html[data-theme="dark"] .sb-home__intro p,
html[data-theme="dark"] .league-toast {
  color: #1f2430;
}
