.logo {
  flex: none;
  display: grid;
  place-items: center;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  /* The whole badge, never a crop: the resizer pads a tall crest onto a
     square (images.js), and this is the same rule for the origin fallback,
     which arrives at its native 78x150. */
  object-fit: contain;
}

.logo--round {
  border-radius: var(--radius-full);
}

.logo--league {
  border-radius: var(--radius-md);
}

.logo--monogram {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  user-select: none;
}

/*
 * Status pill on a match row. Borderless fill — the value is the information,
 * and time is scannable content, not metadata, hence secondary rather than
 * muted.
 */
.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 46px;
  padding: 4px var(--space-2);
  background: var(--surface-sunken);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/*
 * The same pill with the fill taken out. Inside a fixture card the status
 * column repeats on every row, and a filled chip per row would tile the card
 * with grey — bare type carries the information, and it leaves the highlight
 * below as the only status in the column wearing a colour, which is the
 * point of it.
 */
.pill--quiet {
  background: none;
  color: var(--text-secondary);
}

/*
 * Live. No fill and no glow — the colour is the whole signal, so it goes on the
 * type rather than behind it, and the column reads as one set of numbers in
 * three weights rather than one row wearing a badge the others don't.
 *
 * Same box as .pill--quiet, deliberately: both are fill-less, so the status
 * column keeps its metrics and a match kicking off never nudges the team names
 * beside it.
 */
.pill--live {
  background: none;
  color: var(--highlight);
  font-weight: var(--weight-bold);
}

/*
 * Gold tier status. Icon and label share one `color` — the crown glyph is a
 * font character, so it inherits currentColor rather than needing its own
 * rule. Inactive reuses the same neutral as the default pill's background,
 * spelled out as its own modifier so the two states read as a pair in markup.
 */
.pill--gold-active {
  min-width: 0;
  background: var(--gold-bg);
  color: var(--gold);
}

.pill--gold-inactive {
  min-width: 0;
  background: var(--surface-sunken);
  color: var(--text-muted);
}

.badge {
  flex: none;
  min-width: 22px;
  padding: 2px var(--space-1);
  background: var(--surface-sunken);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Round white chip — same card material as every other surface, at button
   size; on the white page its border and shadow are what lift it. */
.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.icon-btn:active {
  background: var(--surface-sunken);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 44px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/*
 * "Primary" = the accent fill, which tokens.css reserves for selection and
 * CTAs. The accent glow belongs under exactly this — a filled-primary element —
 * and nowhere else.
 */
.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-accent);
}

.btn--primary:active,
.btn--primary[data-pressed="true"] {
  background: var(--accent-pressed);
}

/*
 * "Secondary" = the dark pill. It anchors a row without competing with the
 * primary blue, which stays reserved for selection and CTAs.
 */
.btn--secondary {
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

.btn--secondary:active {
  opacity: 0.88;
}
