/* The illustration is decorative context; live rank, month and scores stay in HTML. */
#rankingSection .ranking-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  background: #09080e;
}

.ranking-hero-art,
.ranking-hero .ranking-heading {
  grid-area: 1 / 1;
  min-width: 0;
}

.ranking-hero-art {
  position: relative;
  align-self: start;
}

.ranking-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

.ranking-hero .ranking-heading {
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  width: 27%;
  padding: 22px 16px 22px 24px;
  box-sizing: border-box;
}

.ranking-hero .ranking-heading h3 {
  max-width: 100%;
  margin: 0;
  color: #ffe1a6;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.35;
  letter-spacing: .015em;
  text-wrap: wrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.ranking-hero .ranking-heading > strong {
  max-width: 100%;
  color: #c1f8e4;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* On phones the entire group stays visible, with the live heading below their faces. */
@media (max-width: 760px) {
  #rankingSection .ranking-hero {
    grid-template-rows: auto auto;
  }

  .ranking-hero-art::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22%;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, #09080e);
  }

  .ranking-hero .ranking-heading {
    grid-area: 2 / 1;
    width: 100%;
    gap: 6px;
    padding: 14px 18px 20px;
  }

  .ranking-hero .ranking-heading h3 {
    font-size: clamp(23px, 5vw, 30px);
    text-wrap: pretty;
  }
}
