:root {
  /* Colors + glass from portfolio/prototypes/apple-sports */
  --blue-top: #004088;
  --blue-bottom: #06102d;
  --text: #ffffff;
  --dim: rgba(235, 240, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);     /* hairlines */
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --pill: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  --pill-shine: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.15);
  --live: #ff453a;
  --warn: #ff9f0a;
  --fav: #fdb927; /* favorite-team star (Warriors gold) */

  --page: 1600px;
  --gap: 12px;
  --pad: 16px;
}

* { box-sizing: border-box; }

html { background: var(--blue-bottom); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.3 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum"; /* fixed-width digits so scores don't jiggle */
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; cursor: pointer; }

/* Blue gradient behind everything, pinned to the screen so it doesn't scroll away */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--blue-top) 0%, var(--blue-bottom) 60%);
}

/* Frosted glass for controls (cards use a subtler version below) */
.tabs, .pill, .arrow, .cal-btn, .days, .cal {
  border: 1px solid var(--glass-border);
  background: var(--pill);
  box-shadow: var(--pill-shine);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ---------- Header ---------- */
.top {
  --arrow: 44px;     /* ‹ › and calendar buttons */
  --dates-gap: 6px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px var(--pad) var(--gap);
}
.top > * { max-width: calc(var(--page) - 2 * var(--pad)); margin: 0 auto; }
.top > * + * { margin-top: var(--gap); }
main { max-width: var(--page); margin: 0 auto; padding: 0 var(--pad) 32px; }

.top-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Sport tabs stay on the right; with 7 sports they scroll sideways when the
   screen is too narrow (no visible scrollbar). */
#views { margin-left: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#views::-webkit-scrollbar { display: none; }
#views button { flex: none; }

.pill {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 12px;
}
.pill:hover { color: var(--text); }

/* ---------- Sliding bubble ----------
   A .slider is a glass track whose buttons are see-through; one .bubble sits
   behind them and slides (JS sets its size + position) to the active one. */
.slider { position: relative; }
.slider > button { position: relative; z-index: 1; background: none; border: 0; }
.bubble {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } }

/* Sport tabs */
.tabs { display: flex; align-items: center; padding: 3px; border-radius: 999px; }
.tab-list { display: contents; } /* tabs act as direct children of the bar */
.tab {
  position: relative;
  z-index: 1; /* above the sliding bubble */
  background: none;
  border: 0;
  color: var(--dim);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s;
}
.tab:hover, .tab.active { color: var(--text); }

/* Divider + gear at the right end of the tab bar. The gap from the last tab's
   bubble to the divider equals the gap from the divider to the gear icon (8px):
   the button has no left padding, so the icon starts right at the margin. */
.tabs-divider { flex: none; width: 1px; height: 18px; margin: 0 8px; background: rgba(255, 255, 255, 0.22); }
.settings-btn {
  flex: none;
  height: 30px;
  padding: 0 8px 0 0;
  border: 0;
  background: none;
  color: var(--dim);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.settings-btn:hover, .settings-btn[aria-expanded="true"] { color: var(--text); }
.settings-btn svg { width: 18px; height: 18px; }

/* Date row: ‹ [Sun … Sat] › [calendar] */
/* ‹ [strip] › — symmetric, so the strip and its selected day are centered */
.dates { display: flex; gap: var(--dates-gap); }
/* An explicit width (not just flex-basis): Firefox and Safari size the
   calendar's wrapper from the button's content otherwise, and the button
   then pokes past the right edge. */
.arrow svg { width: 24px; height: 24px; }
.arrow {
  padding: 0; /* same reason: keep the chevrons centered on iOS */
  flex: none;
  width: var(--arrow);
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.arrow:hover { border-color: rgba(255, 255, 255, 0.4); }
/* Date strip: 7 visible days; the bubble is fixed on the middle one and the
   row of dates slides underneath it (JS sets the row's translateX). */
.days { position: relative; flex: 1; padding: 3px; border-radius: 14px; min-width: 0; }
.days .bubble {
  opacity: 1;
  top: 3px;
  bottom: 3px;
  left: calc(3px + (100% - 6px) * 3 / 7);
  width: calc((100% - 6px) / 7);
  border-radius: 11px;
  transition: none;
}
.days-view { position: relative; z-index: 1; overflow: hidden; border-radius: 11px; }
.days-row { display: flex; transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .days-row { transition: none; } }
.day {
  flex: 0 0 calc(100% / 7);
  min-width: 0;
  background: none;
  border: 0;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--dim);
  transition: color 0.2s;
}
.day:hover, .day.selected { color: var(--text); }
.day .dow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.day .dom { font-size: 14px; font-weight: 600; white-space: nowrap; }
.day .short { display: none; }
/* Phones: "S 28" instead of "SUN Nov 28" */
@media (max-width: 640px) {
  .top { --arrow: 36px; --dates-gap: 4px; }
  .day .mon, .day .long { display: none; }
  .day .short { display: inline; }
}

/* Right of the full date: calendar (square glass button), then "Today".
   The calendar popover opens centered under the date row, so it never runs
   off a phone screen. */
.date-right { display: flex; align-items: center; gap: 6px; }
.cal-wrap { display: flex; }
.cal-btn {
  padding: 0; /* iOS Safari pads buttons by default, which pushes the icon off center */
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.cal-btn svg { width: 16px; height: 16px; }
.cal-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.cal {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 50%;
  width: 288px;
  padding: 14px;
  border-radius: 20px;
  /* solid: the header already blurs what is behind it, so a see-through panel
     would let the cards show through its controls */
  background: linear-gradient(180deg, rgb(22, 56, 120), rgb(8, 20, 55));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--pill-shine);
  opacity: 0;
  transform: translate(-50%, -6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.18s, transform 0.18s;
}
.cal.open { opacity: 1; transform: translate(-50%, 0); }
.cal button { background: none; border: 0; border-radius: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.cal-nav { width: 32px; height: 32px; font-size: 18px; color: var(--dim); }
.cal-nav:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.cal-title {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 10px;
  font-weight: 600;
  color: var(--text);
}
.cal-title svg { width: 16px; height: 16px; color: var(--dim); }
.cal-title:not(:has(svg)) { padding: 4px 10px; } /* the year (no caret) stays centered */
.cal-title:hover { background: rgba(255, 255, 255, 0.1); }
/* Month picker: 3 × 4 months, same height as the 6 rows of days */
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 0; }
.cal-month { padding: 18px 0; font-size: 14px; font-weight: 500; }
.cal-month:hover { background: rgba(255, 255, 255, 0.1); }
.cal-month.is-today { color: var(--live); font-weight: 700; }
.cal-month.selected { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.cal-dows, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-dows { font-size: 11px; font-weight: 600; color: var(--dim); margin-bottom: 4px; }
.cal-day { aspect-ratio: 1; font-size: 14px; font-weight: 500; }
.cal-day:hover { background: rgba(255, 255, 255, 0.1); }
.cal-day.out { color: rgba(235, 240, 255, 0.3); }
.cal-day.is-today { color: var(--live); font-weight: 700; }
.cal-day.selected { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.cal-today {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}
.cal-today:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* ---------- Settings (gear, at the end of the sport tabs) ---------- */
/* Same glass popover as the calendar, opening below the right end of the tab bar.
   It lives outside the tab bar so the bar's sideways scroll can't clip it. */
.cal.settings {
  left: auto;
  right: 0;
  width: min(340px, calc(100vw - 2 * var(--pad)));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
}
.cal.settings.open { transform: none; }
.settings h3 {
  margin: 4px 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.settings h3 + * { margin-bottom: 16px; }
.league-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.settings .chip {
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}
.settings .chip.on { color: var(--text); background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); }
.fav-list { display: flex; flex-direction: column; gap: 6px; }
.fav-chip, .team-results button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  text-align: left;
}
.fav-chip { background: rgba(255, 255, 255, 0.08); }
.fav-chip span, .team-results span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.fav-chip small, .team-results small { color: var(--dim); font-size: 11px; }
.chip-star { width: 12px; height: 12px; flex: none; fill: var(--fav); }
.fav-chip button { width: 24px; height: 24px; font-size: 16px; color: var(--dim); border-radius: 6px; }
.fav-chip button:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
#team-search {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px+ so iPhone Safari doesn't zoom in on focus */
}
#team-search::placeholder { color: var(--dim); }
.team-results { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.team-results button:hover { background: rgba(255, 255, 255, 0.1); }
.hint { margin: 2px; font-size: 13px; color: var(--dim); }

/* Drag to reorder: chips can be grabbed (touch-action: none so a finger drags
   the chip instead of scrolling the panel); the one being dragged lifts. */
.settings h3 span { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; }
.settings .chip, .fav-chip { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.settings .dragging {
  position: relative;
  z-index: 2;
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.22);
}

/* Full date under the strip; the "Today" link (return arrow icon) sits beside it (only when not on today)
   without pushing the date off center. */
/* Centered on the page, right under the selected day (the strip is centered too). */
.date-title { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.date-title h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.today-link {
  white-space: nowrap; /* icon always stays left of "Today", never above */
  background: none;
  border: 0;
  padding: 2px 6px;
  font-size: 13px;
  color: var(--dim);
  border-radius: 6px;
}
.today-link:hover { color: var(--text); }
/* Icon is 1em square and shifted so its middle sits at the middle of Inter's
   capital letters (caps are 0.7275em tall: middle = 0.364em above the baseline,
   so the icon's bottom goes 0.5em − 0.364em = 0.136em below it). Font-based,
   so it lands in the same place in every browser. */
.today-link svg { width: 1em; height: 1em; vertical-align: -0.136em; margin-right: 0.15em; }
/* Phones: smaller date + gap so the longest date ("Wednesday, Nov 25") and
   "Today" still fit with the date centered, even on 320px phones. */
@media (max-width: 640px) {
  .date-title { gap: 8px; }
  .date-title h1 { font-size: 15px; }
  .today-link { padding: 2px; }
  .cal-btn { width: 28px; height: 28px; }
  .date-right { gap: 4px; }
}
/* "Next game": same look as Today. Phones say just "Next" so the date stays centered. */
.next-short { display: none; }
@media (max-width: 640px) {
  .next-long { display: none; }
  .next-short { display: inline; }
}

/* Very narrow phones: just the arrow (label stays for screen readers), so a
   long date + calendar + link still fit with the date centered. */
@media (max-width: 374.98px) {
  .today-text { display: none; }
  .today-link svg { margin-right: 0; }
}

/* ---------- Sections + grid ---------- */
.league + .league { margin-top: 28px; }
/* Section header (All view): name + chevron. The chevron points up while open
   and turns clockwise to point down when the section collapses; the section
   slides shut (grid row 1fr → 0fr animates the height). */
.collapse {
  display: inline-flex;
  align-items: center;
  gap: 2px; /* chevron sits close to the name */
  padding: 2px 4px 2px 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.collapse:hover { color: var(--text); }
.chev { width: 18px; height: 18px; transition: transform 0.35s ease; }
.league.collapsed .chev { transform: rotate(180deg); }
.league-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.35s ease; }
.league.collapsed .league-body { grid-template-rows: 0fr; }
.league-inner { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .chev, .league-body { transition: none; } }
.league-title {
  margin: 0 0 var(--gap);
  font-size: 13px;
  color: var(--dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* As many columns as fit with cards at least 300px wide (the size that
   looked right), up to 5 at the 1600px page width; 1 column on phones. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--gap);
}
/* Between ~870px and the point where 3 × 300px cards fit (956px), use 3
   slightly smaller cards (~270–300px) instead of 2 wide ones, so more games
   fit on screen. */
@media (min-width: 870px) and (max-width: 955.98px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 2 columns from 570px (instead of 644). Cards here use the compact phone
   scale (see "Phones" below); the widest possible card needs ≥ 261px (measured:
   "OT 2:11" + "NBC/Peacock · GSW -10.5"), which 570px gives with a bit spare. */
@media (min-width: 570px) and (max-width: 643.98px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.message { color: var(--dim); text-align: center; padding: 48px 0; margin: 0; }

/* ---------- Card ----------
   [6:30 PM                Prime Video   POR -8.5]   ← .info
   [logo GSW 10-8                            110]   ← .team
   [logo POR 12-6                            129]   ← .team

   Everything inside scales with the card's width. --u is one "design pixel":
   sizes below are written for a card --ref px wide, and grow or shrink with
   the real card. Proportions never change, so nothing can start overlapping
   as the card resizes. */
.card {
  container-type: inline-size;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--glass-shine);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.body {
  /* The widest possible card fits from 310 up (measured); 400 leaves room. */
  --ref: 400;
  --u: calc(100cqi / var(--ref));
  --logo: calc(30 * var(--u));
  /* Inter's capital letters are 0.7275 of the font size, so this font size
     makes scores exactly as tall as the logo box. */
  --big: calc(var(--logo) / 0.7275);
  --pad-x: calc(16 * var(--u));
  padding: calc(20 * var(--u)) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--u)); /* space between the time row and the away team */
}

/* Top row: time / live clock on the left, TV + spread on the right */
.info {
  display: flex;
  align-items: center; /* TV/spread sit on the same center line as the time */
  gap: calc(12 * var(--u));
  color: var(--dim);
  font-size: calc(16 * var(--u));
  white-space: nowrap;
}
/* If the top row is ever too tight (4-letter college code in the spread +
   "NBC/Peacock" on a small card), TV/spread gets "…" — it's the least
   important text. The time never shrinks. */
.info .extras { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.info .when { flex: none; margin-right: auto; color: var(--text); font-size: calc(20 * var(--u)); font-weight: 600; }

/* With 2+ columns, cards can get wide (up to ~455px around 950px windows).
   Past 360px the contents stop growing: the card just gets more room, so it
   stays a normal height and more games fit on screen. Single column (phones)
   keeps scaling as before. */
@media (min-width: 644px) {
  .body { --u: min(100cqi / var(--ref), 360px / var(--ref)); }
}

.teams { display: flex; flex-direction: column; gap: calc(18 * var(--u)); min-width: 0; }

/* Team row = [logo] [abbr] [record] [score].
   - Logos sit in a square box; round logos (Warriors, Nuggets) fill it fully,
     so the box height is the height scores match.
   - The abbreviation column is a fixed width (the widest code, "MEM"), so
     records line up on the left in both rows.
   - Logo, code, record and score are centered on one line. Text boxes are
     trimmed to capital height, so "centered" means the middle of the letters.
   - The score never shrinks and keeps a gap; last resort, the record clips
     with "…" instead of running under the score. */
.team { position: relative; display: flex; align-items: center; gap: calc(10 * var(--u)); }
.team img {
  width: var(--logo);
  height: var(--logo);
  object-fit: contain;
  flex: none;
  transform: scale(var(--logo-scale, 1)); /* per-team, from LOGO_SCALE in cards.js */
}
/* Placeholder logo: a gray circle the size of a round logo (they fill 92% of the slot) */
.logo-ph {
  flex: none;
  width: var(--logo);
  height: var(--logo);
  border-radius: 50%;
  background: rgba(235, 240, 255, 0.18);
  transform: scale(0.92);
}

/* Favorite team: a small gold star in the card's left padding, just left of
   the logo (taken out of the flow, so the logo and name don't move), and a
   soft gold glow on the logo. Logos scaled up by LOGO_SCALE stick out of their
   slot a little, so the star steps left by that much; it never goes past the
   card's padding. */
.fav-star {
  --star: calc(8 * var(--u));
  /* how far the visible logo sticks out of its slot on each side (0 if it doesn't) */
  --overhang: max(0px, var(--logo) * (0.92 * var(--logo-scale, 1) - 1) / 2);
  position: absolute;
  top: 50%;
  left: max(calc(-1 * var(--pad-x) + 1px), calc(-1 * (var(--star) + calc(3 * var(--u)) + var(--overhang))));
  width: var(--star);
  height: var(--star);
  transform: translateY(-50%);
  fill: var(--fav);
}
/* Two stacked glows: a tight brighter one hugging the logo + a wider soft halo */
.team.fav img {
  filter:
    drop-shadow(0 0 calc(3 * var(--u)) rgba(253, 185, 39, 0.6))
    drop-shadow(0 0 calc(8 * var(--u)) rgba(253, 185, 39, 0.4));
}
.team .name { display: flex; align-items: center; gap: calc(10 * var(--u)); min-width: 0; }
.team .abbr, .team .rec, .team .score {
  line-height: 1;
  text-box: trim-both cap alphabetic;
}
.team .abbr, .team .rec { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .abbr { flex: none; width: 2.48em; font-size: calc(29.4 * var(--u)); font-weight: 700; }
.team .rec { color: var(--dim); font-size: calc(17 * var(--u)); }

/* College: AP rank before the team code (blank slot for unranked teams so the
   codes still line up), and a wider code column: ESPN college codes are at
   most 4 letters, the widest being "MONM" at 3.40em (measured, 2025 seasons). */
.team .rank {
  flex: none;
  width: 1.5em;
  margin-right: calc(-4 * var(--u)); /* sit a little closer to the code */
  text-align: right;
  font-size: calc(15 * var(--u));
  font-weight: 600;
  color: var(--dim);
  line-height: 1;
  text-box: trim-both cap alphabetic;
}
.card.college .abbr { width: 3.42em; }

/* UFC: fighter name instead of a team code (flexible width, "…" if too long),
   record pushed to the right where the score would be. */
.card.fight .name { flex: 1; }
.card.fight .abbr {
  width: auto;
  flex: 0 1 auto;
  font-size: calc(22 * var(--u));
  /* Names have lowercase letters that dip below the line (y, g, j); the box is
     trimmed to capital height and clips (for "…"), so give the clip room below
     without moving the text. */
  padding-bottom: 0.25em;
  margin-bottom: -0.25em;
}
.card.fight .rec { flex: none; margin-left: auto; }
.card.fight .score { display: none; }
.team .score {
  flex: none;
  margin-left: auto;
  padding-left: calc(12 * var(--u));
  font-size: var(--big);
  font-weight: 700;
  /* Proportional digits (a "1" is narrow) + slightly tight tracking, so "111"
     doesn't look spaced out. The rest of the page keeps fixed-width digits. */
  font-feature-settings: "tnum" 0;
  letter-spacing: -0.02em;
}

/* Phones and small windows (under 644px: 1 column, or 2 from 570px): a
   fixed, compact scale instead of growing with the card. 1 design px = 0.8px, so the time is 16px, the record 12px, and logos,
   codes and scores follow at the same scale. Less padding and row spacing
   makes cards shorter. The widest possible card needs at least 261px
   wide: true on 320px phones (288px) and for 2 columns from 570px. */
@media (max-width: 643.98px) {
  .body {
    --u: 0.8px;
    --pad-x: calc(14 * var(--u));
    padding: calc(14 * var(--u)) var(--pad-x);
    gap: calc(13 * var(--u));
  }
  .teams { gap: calc(12 * var(--u)); }
  .team .rec { font-size: calc(15 * var(--u)); }
  .card.college .abbr { font-size: calc(25 * var(--u)); } /* 4-letter codes + rank on small cards */
}

/* Status colors: live = red (incl. Halftime, End of Q4 / OT), problem = amber,
   everything else white (upcoming time, Final) */
.card.in:not(.alert) .info .when { color: var(--live); }
.card.alert .info .when { color: var(--warn); }
.card.off { opacity: 0.55; }
.card.post .team.loser { color: var(--dim); }
.card.post .team.loser img { opacity: 0.5; }
