/* ---------- Pitch views: the key under the stats ---------- */

.pitch-site .stage-shots--one-side .stage-shots__shot--home:not(.stage-shots__shot--goal) {
  fill-opacity: 0.8;
}

.pitch-site .stage-pitch-key {
  border-top: 1px solid rgb(255 251 240 / 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  max-width: 34ch;
  padding-top: 10px;
}

.pitch-site .stage-pitch-key__title {
  color: var(--ps-yellow);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.pitch-site .stage-pitch-key__summary {
  color: var(--ps-cream);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.pitch-site .stage-pitch-key__scope,
.pitch-site .stage-pitch-key__empty {
  color: var(--ps-cream-soft);
  font-size: 11.5px;
  line-height: 1.45;
  margin: 0;
}

.pitch-site .stage-pitch-key__legend {
  color: var(--ps-cream-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 11.5px;
  gap: 4px 14px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.pitch-site .stage-pitch-key__legend li {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.pitch-site .stage-pitch-key__dot {
  border: 1.5px solid var(--ps-ink);
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.pitch-site .stage-pitch-key__dot--shot {
  background: var(--theme-home);
}

.pitch-site .stage-pitch-key__dot--goal {
  background: var(--ps-yellow);
}

.pitch-site .stage-pitch-key__dot--small,
.pitch-site .stage-pitch-key__dot--big {
  background: var(--ps-cream-soft);
}

.pitch-site .stage-pitch-key__dot--small {
  height: 6px;
  width: 6px;
}

.pitch-site .stage-pitch-key__dot--big {
  height: 13px;
  width: 13px;
}

.pitch-site .stage-pitch-key__swatches {
  display: inline-flex;
  gap: 2px;
}

.pitch-site .stage-pitch-key__swatch {
  border-radius: 2px;
  display: inline-block;
  height: 10px;
  outline: 1px solid rgb(255 251 240 / 0.12);
  width: 14px;
}

.pitch-site .stage-pitch-key__swatch--level-1 { background: var(--stage-heat-level-1); }
.pitch-site .stage-pitch-key__swatch--level-2 { background: var(--stage-heat-level-2); }
.pitch-site .stage-pitch-key__swatch--level-3 { background: var(--stage-heat-level-3); }
.pitch-site .stage-pitch-key__swatch--level-4 { background: var(--stage-heat-level-4); }
.pitch-site .stage-pitch-key__swatch--level-5 { background: var(--stage-heat-level-5); }

.pitch-site .stage-pitch-key__arrow {
  color: var(--ps-cream);
  font-weight: 700;
}

.pitch-site .stage-pitch-key__arrow--portrait {
  display: none;
}

@media (orientation: portrait) {
  .pitch-site .stage-pitch-key__arrow--landscape {
    display: none;
  }

  .pitch-site .stage-pitch-key__arrow--portrait {
    display: inline;
  }
}

.pitch-site .stage-pitch-key__filter {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.pitch-site .stage-pitch-key__filter-label {
  color: var(--ps-cream-soft);
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pitch-site .stage-pitch-key__select {
  background: rgb(6 20 11 / 0.6);
  border: 1px solid rgb(255 251 240 / 0.3);
  border-radius: 8px;
  color: var(--ps-cream);
  flex: 1 1 auto;
  font-size: 12px;
  height: auto;
  line-height: 1.3;
  min-height: 0;
  min-width: 0;
  padding: 4px 8px;
}

.pitch-site .stage-pitch-key__select:focus-visible {
  border-color: var(--ps-yellow);
  outline: 2px solid var(--ps-yellow);
  outline-offset: 1px;
}

/* Below the full stage the panels stack in the page: the keyed panel starts
   under the turf so the drawing is seen before the numbers. */
@media (max-width: 74.999rem) {
  .pitch-site .stage-statpanel--keyed {
    margin-top: max(0px, calc(100svh - 250px));
  }
}
