/* ---------- Chart panels on the turf (xG race, momentum) ---------- */

/* The charts wait behind the statistics window and show when it is minimised,
   the same way the public leaderboard picker does. */
.pitch-site--app .stage-statpanel--chart {
  --theme-away: var(--theme-away-turf);
  z-index: 0;
}

.pitch-site--app .stage-statpanel--chart .xg-race__grid line {
  stroke: rgb(255 251 240 / 0.12);
}

.pitch-site--app .stage-statpanel--chart .xg-race__axes line,
.pitch-site--app .stage-statpanel--chart .momentum__axis {
  stroke: rgb(255 251 240 / 0.4);
}

.pitch-site--app .stage-statpanel--chart .xg-race__axes text,
.pitch-site--app .stage-statpanel--chart .momentum__ticks text {
  fill: var(--ps-cream-soft);
}

.pitch-site--app .stage-statpanel--chart .xg-race__goal {
  stroke: var(--ps-ink);
}

/* ---------- Competition cards ---------- */

.pitch-site--app .competition-card {
  position: relative;
}

.pitch-site--app .competition-card__link {
  padding-inline-end: var(--space-xl);
}

.pitch-site--app .competition-card__identity {
  flex: 1 1 0;
  min-width: 0;
}

.pitch-site--app .competition-card--locked .competition-card__link {
  opacity: 0.72;
}

.pitch-site--app .competition-card__lock {
  align-items: center;
  color: var(--color-ink-medium);
  display: inline-flex;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.pitch-site--app .competition-card__lock svg {
  height: 0.875rem;
  width: 0.875rem;
}

.pitch-site--app .competition-card__favorite {
  inset-block-start: var(--space-xxs);
  inset-inline-end: var(--space-xxs);
  position: absolute;
}

/* Competition overview: the teams laid out on the turf. */

.pitch-site--app .competition-stage {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 0 clamp(12px, 3vw, 40px);
  pointer-events: auto;
  width: 100%;
}

.pitch-site--app .competition-stage__lead {
  color: var(--ps-cream-soft);
  margin: 0;
  max-width: 62ch;
  text-align: center;
  text-shadow: 0 1px 8px rgba(6, 20, 11, 0.8);
}

.pitch-site--app .competition-stage__teams {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 0;
  max-width: 76rem;
  padding: 0;
  width: 100%;
}

.pitch-site--app .competition-stage__team {
  align-items: center;
  backdrop-filter: blur(6px);
  background: var(--ps-chrome);
  border: 2px solid var(--ps-ink);
  border-radius: 12px;
  box-shadow: var(--ps-chrome-shadow);
  color: var(--ps-cream);
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  text-decoration: none;
}

.pitch-site--app .competition-stage__team:hover {
  border-color: var(--ps-yellow);
  color: var(--ps-yellow);
}

.pitch-site--app .competition-stage__name {
  font-size: 13.5px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-site--app .competition-stage__empty {
  color: var(--ps-cream-soft);
  margin: 0;
  text-shadow: 0 1px 8px rgba(6, 20, 11, 0.8);
}

@media (min-width: 75rem) {
  .pitch-site--app .competition-stage {
    padding-inline-start: clamp(200px, 17vw, 300px);
  }
}
