.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);
}

/*
 * Competition marks on the dark theme. A good share are drawn in a deep brand
 * colour for a white page — the Premier League's purple lion, the Champions
 * League's navy — and on the dark card they all but vanish. A hairline of
 * light around the mark's own shape brings the edge back without laying a
 * light tile under every competition in a dark list. The box's sunken fill
 * comes off the loaded image so the shadow traces the artwork, not the box.
 * Club crests are left alone: nearly all carry white or a bright field, and
 * the home list shows hundreds of them, too many to put a filter on each.
 */
:root[data-theme="dark"] img.logo--league {
  background: none;
  filter: drop-shadow(0 0 1px rgb(var(--text-rgb) / 0.6));
}

.logo--monogram {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  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: calc(46px * var(--scale));
  padding: var(--space-1) 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: calc(22px * var(--scale));
  padding: var(--space-05) 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: var(--control-md);
  height: var(--control-md);
  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: var(--tap);
  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-on-inverse);
}

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