/* XClub Dynasty — "Matchday almanac" family edition.
   Paper and ink with one sporting red used for meaning: live, losses, urgency.
   Display type is Barlow-style condensed on system stacks (no external fonts),
   body is a DM Sans-like stack, long-form reading is Georgia. Spacing follows
   an 8px rhythm, rules replace shadows, every figure is tabular.
   The Night Edition is its own palette on <html data-theme="dark">, not an inversion. */
:root {
  --paper: #f5f2ea;
  --paper-2: #eeeade;
  --white: #fff;
  --ink: #171b21;
  --muted: #5f646b;
  --line: #d8d5cb;
  --line-2: #c3c0b4;
  --red: #b62b25;
  --soft: #e7e4da;
  --green: #287046;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --r1: 2px;
  --r2: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 180ms;
  --stick-top: 59px;
  --focus: #3268af;
  --focus-inv: #9cc3ff;
  --dek: #4e5359;
  --win: #14691b;
  --loss: #b3261e;
  --win-tint: #e2eee4;
  --loss-tint: #f6e1df;
  --red-tint: #f6e3e1;
  --hover: #f2efe6;
  --chip-bg: #eae7dd;
  --final-bg: #d7dde4;
  --notice-bg: #fff0cf;
  --notice-line: #a5710a;
  --art-bg: #e6e3d8;
  --art-ghost: #7d786d;
  --art-label: #66604f;
  --field-border: #8d8c86;
  --field-bg: #fff;
  --mast-bg: #16181d;
  --mast-text: #f2ede4;
  --mast-cap: #a9adb3;
  --backdrop: rgba(16, 20, 25, 0.78);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f646b' stroke-width='1.8'/%3E%3C/svg%3E");
  --glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%235f646b' stroke-width='1.8'/%3E%3Cpath d='M11 11l4 4' stroke='%235f646b' stroke-width='1.8'/%3E%3C/svg%3E");
  --chev-inv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9adb3' stroke-width='1.8'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --paper: #12151a;
  --paper-2: #1a1f26;
  --white: #1e242c;
  --ink: #e9e6df;
  --muted: #9aa1ab;
  --line: #323a45;
  --line-2: #3f4855;
  --red: #e9695d;
  --soft: #242b34;
  --green: #55a874;
  --focus: #7ba3e8;
  --dek: #a9aeb5;
  --win: #57b374;
  --loss: #e9695d;
  --win-tint: #1c3024;
  --loss-tint: #301c1e;
  --red-tint: #301c1e;
  --hover: #252c35;
  --chip-bg: #2a313b;
  --final-bg: #2c333d;
  --notice-bg: #33290f;
  --notice-line: #d8a13a;
  --art-bg: #1a1f26;
  --art-ghost: #5d6b7c;
  --art-label: #8b93a0;
  --field-border: #6b7684;
  --field-bg: #1e242c;
  --mast-bg: #1e242c;
  --mast-text: #e9e6df;
  --mast-cap: #9aa1ab;
  --backdrop: rgba(0, 0, 0, 0.75);
}

/* ============ Base ============ */
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
html[data-theme="dark"] {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
img,
svg {
  max-width: 100%;
}
svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
a,
button {
  overflow-wrap: break-word;
}
h1 {
  font: 800 clamp(40px, 11vw, 64px) / 0.94 var(--cond);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
h2 {
  font: 800 28px/1.05 var(--cond);
  text-transform: uppercase;
}
h3 {
  font: 700 22px/1.08 var(--cond);
}
.wrap {
  max-width: 1320px;
  margin: auto;
  padding-inline: 16px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.55;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.eyebrow {
  display: block;
  font: 700 11px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 99;
  padding: 12px 16px;
  background: var(--white);
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
}

/* ============ Masthead ============ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 35;
  background: var(--mast-bg);
  color: var(--mast-text);
  border-bottom: 3px solid var(--red);
}
.masthead :focus-visible {
  outline-color: var(--focus-inv);
}
.mast-inner {
  max-width: 1320px;
  margin: auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 26px/0.8 var(--cond);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.wordmark:hover {
  text-decoration: none;
}
.brand-x {
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font: 800 32px/1 var(--cond);
  height: 36px;
  width: 29px;
  transform: skew(-7deg);
}
[data-theme="dark"] .brand-x {
  background: #b62b25;
}
.brand-small {
  display: block;
  font: 600 9px/1 var(--sans);
  letter-spacing: 0.32em;
  margin-top: 6px;
}
.mast-caption {
  display: none;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font: 600 10px/1.6 var(--sans);
  letter-spacing: 0.18em;
  color: var(--mast-cap);
}
.mast-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-btn,
.sleeper-link,
.refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r1);
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}
.theme-btn:hover,
.sleeper-link:hover,
.refresh:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}
/* Icon swap stays in CSS: the page CSP blocks inline style attributes. */
.theme-btn .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-btn .icon-sun {
  display: inline;
}
[data-theme="dark"] .theme-btn .icon-moon {
  display: none;
}
.theme-label {
  display: none;
}
.refresh {
  font-size: 22px;
  padding: 0;
}

/* ============ Nav rail ============ */
.main-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-brand {
  display: none;
}
.nav-inner {
  display: flex;
  max-width: 1320px;
  margin: auto;
}
.nav-inner > a {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 8px 2px;
  font: 600 11px/1.1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.nav-inner > a:hover {
  text-decoration: none;
  color: var(--ink);
}
.nav-inner > a[aria-current="page"] {
  color: var(--red);
  background: var(--paper);
  font-weight: 700;
}
.nav-inner > a[aria-current="page"] svg {
  stroke-width: 2.2;
}
.nav-inner > a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  background: var(--red);
}
@media (max-width: 999px) {
  /* All seven tabs fit one 360px screen without swiping (51px cells at
     360px, 61px at 430px — every target stays >=44px), so there is no
     scroll treatment and no fade gradients to overlap the icons. Labels
     use the full cell width so the longest one never breaks mid-word. */
  .nav-inner > a {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 0;
    letter-spacing: 0;
  }
  .nav-inner > a:focus-visible {
    outline-offset: -4px;
  }
}
.edition-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#edition::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
}
.edition-line > span:last-child {
  text-align: right;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ============ States ============ */
.loading,
.error-state {
  padding: 48px 0;
  min-height: 52vh;
}
.loading p,
.error-state p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 52ch;
}
.loading-line {
  width: 56px;
  height: 4px;
  background: var(--red);
  margin-bottom: 24px;
}
.skeleton {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  max-width: 760px;
}
.skeleton span,
.skeleton i {
  display: block;
  height: 14px;
  border-radius: var(--r1);
  background: var(--soft);
}
.skeleton .sk-board {
  height: 72px;
  margin-bottom: 16px;
}
.skeleton .sk-kicker {
  width: 120px;
  height: 11px;
}
.skeleton .sk-head {
  height: 40px;
}
.skeleton .short {
  width: 62%;
}
.skeleton .sk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: auto;
  margin-top: 16px;
  background: none;
}
.skeleton .sk-cards i {
  height: 112px;
}
.error-state {
  border-top: 4px solid var(--red);
  margin-top: 24px;
}
.notice {
  font-size: 13px;
  background: var(--notice-bg);
  padding: 12px 16px;
  margin-top: 16px;
  border-left: 3px solid var(--notice-line);
}
.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r2);
  background: var(--paper);
}
.empty::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 46%, var(--line-2) 46% 54%, transparent 54%);
}

/* ============ Controls ============ */
.solid-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 0 20px;
  border-radius: var(--r1);
  font: 700 15px/1 var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
}
.solid-button:hover {
  background: var(--red);
  text-decoration: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover {
  color: var(--red);
}
.context-note {
  margin-block: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 78ch;
}
.context-note a {
  text-decoration: underline;
  color: var(--ink);
}
label {
  cursor: pointer;
}
select,
input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: var(--r1);
  padding: 8px 36px 8px 12px;
  background: var(--field-bg) var(--chev) no-repeat right 12px center;
  color: var(--ink);
  font-size: 16px;
}
input[type="search"] {
  padding: 8px 12px 8px 38px;
  background: var(--field-bg) var(--glass) no-repeat 12px center;
}
select:hover,
input[type="search"]:hover {
  border-color: var(--ink);
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--r1);
}
.filters > div {
  min-width: 0;
}
.filters .search-field {
  grid-column: 1/-1;
}
.filters label {
  display: block;
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.tab-switch {
  display: flex;
  margin: 0 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--r1);
  overflow: hidden;
}
.tab-switch button {
  flex: 1 1 0;
  min-height: 44px;
  padding: 6px 14px;
  font: 700 15px/1.1 var(--cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* Labels are fixed strings; never wrap them onto a lone word. */
  white-space: nowrap;
  color: var(--ink);
}
.tab-switch button + button {
  border-left: 1px solid var(--ink);
}
.tab-switch button:hover {
  background: var(--hover);
}
.tab-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.tab-switch button:focus-visible {
  outline-offset: -5px;
}
@media (max-width: 599px) {
  /* Below desk width the two board tabs stack full width, so their
     fixed labels fit on one line and the active tab never wraps. */
  .tab-switch {
    flex-direction: column;
  }
  .tab-switch button + button {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}

/* ============ Chips & marks ============ */
.status-chip,
.pos-chip,
.live-badge,
.final-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: var(--r1);
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-final,
.final-badge {
  background: var(--final-bg);
  color: var(--ink);
}
.status-live,
.live-badge {
  background: var(--red);
  color: var(--white);
}
[data-theme="dark"] .status-live,
[data-theme="dark"] .live-badge {
  color: #16181d;
}
.status-live::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-preview {
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.pos-chip {
  min-width: 30px;
  min-height: 18px;
  padding: 0 4px;
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--muted);
  font: 700 13px/1 var(--cond);
  text-transform: uppercase;
}
.team-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team-link:hover {
  text-decoration: none;
}
.team-link:hover .team-title,
.team-link:hover > span:last-child {
  color: var(--red);
}

/* ============ Page structure ============ */
.view {
  padding-top: 24px;
  min-width: 0;
}
.view:focus {
  outline: none;
}
#view-home {
  padding-top: 16px;
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}
.section-heading h2 {
  font: 800 24px/1.05 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section-heading .small {
  margin-left: auto;
  text-align: right;
}
.page-intro {
  padding: 8px 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-intro .eyebrow::before {
  content: "";
  flex: 0 0 24px;
  height: 3px;
  background: var(--red);
}
.page-intro h1 {
  margin-top: 12px;
  font-size: clamp(36px, 9vw, 52px);
}
.page-intro p {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dek);
}
.page-intro p:empty {
  display: none;
}

/* ============ Score strip ============ */
.scoreboard {
  margin: 0 -16px 24px;
  background: var(--white);
  border-block: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}
.score-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.board-kicker {
  margin-right: 8px;
  font: 800 15px/1 var(--cond);
  letter-spacing: 0.04em;
  color: var(--red);
}
.score-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  white-space: nowrap;
}
.score-scroll {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  /* Edge fades mark the strip as swipeable; disabled at desk width
     where the row stops scrolling. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16px calc(100% - 16px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 16px calc(100% - 16px), transparent);
}
.score-tile {
  flex: 0 0 180px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
}
.score-tile:last-child {
  border-right: 0;
}
.score-tile:hover {
  background: var(--hover);
  text-decoration: none;
}
.score-tile:focus-visible {
  outline-offset: -4px;
}
.score-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  /* Tighter gap: more width for team names, so they wrap at word
     boundaries instead of fragmenting into orphaned bits. */
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  min-height: 28px;
  color: var(--muted);
}
.score-mini-row span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.score-mini-row strong {
  font: 700 20px/1 var(--cond);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score-mini-row.winner {
  color: var(--ink);
  font-weight: 700;
}

/* ============ Home ============ */
.home-layout {
  display: grid;
  gap: 40px;
}
.home-main {
  min-width: 0;
}
.lead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.lead h1 {
  max-width: 18ch;
  font: 800 clamp(36px, 9.4vw, 58px)/0.96 var(--cond);
  text-transform: none;
  letter-spacing: -0.01em;
}
.lead h1 a:hover {
  text-decoration: none;
  color: var(--red);
}
.lead .eyebrow {
  margin-bottom: 12px;
}
.lead-dek {
  margin-top: 16px;
  color: var(--dek);
  font-size: 17px;
  line-height: 1.55;
  max-width: 56ch;
}
.lead-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 20px;
  min-height: 232px;
  display: flex;
  align-items: flex-end;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(127, 122, 113, 0.08) 14px 15px),
    var(--art-bg);
  border-bottom: 4px solid var(--red);
}
.feature-art .big-score {
  position: absolute;
  left: 14px;
  top: 4px;
  font: 800 clamp(72px, 22vw, 120px)/0.95 var(--cond);
  letter-spacing: -0.03em;
  color: var(--art-ghost);
  opacity: 0.55;
  z-index: -1;
}
.feature-art .art-label {
  position: absolute;
  left: 18px;
  top: 112px;
  font: 700 11px/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--art-label);
  z-index: 1;
}
.feature-art .draft-card {
  width: 62%;
  max-width: 320px;
  margin: 0 0 28px auto;
  display: block;
}
.story-grid {
  display: grid;
  column-gap: 32px;
  margin-top: 24px;
}
.story-card {
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.story-card .eyebrow {
  margin-bottom: 8px;
}
.story-card h3 {
  font: 700 24px/1.04 var(--cond);
}
.story-card h3 a:hover {
  color: var(--red);
  text-decoration: none;
}
.story-card p {
  font-size: 14px;
  color: var(--dek);
  line-height: 1.6;
  margin-top: 8px;
}
.story-card .text-link {
  font-size: 12px;
  margin-top: 4px;
}
.award-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.award {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 12px;
  min-width: 0;
}
a.award:hover {
  text-decoration: none;
  border-top-color: var(--red);
}
.award .award-label {
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.award strong {
  font: 700 18px/1.1 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.award .award-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.home-aside {
  display: grid;
  gap: 32px;
  align-content: start;
  min-width: 0;
}
.home-aside .section-heading h2 {
  font-size: 20px;
}
.rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
  min-width: 0;
}
.rail-list .rail-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}
.rail-list .rank {
  width: 18px;
  font: 800 20px/1 var(--cond);
  color: var(--muted);
  text-align: center;
}
.rail-list .record {
  min-width: 52px;
  text-align: right;
  white-space: nowrap;
  font: 700 17px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.rail-transaction {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.rail-transaction .eyebrow {
  font-size: 10px;
  margin-bottom: 4px;
  color: var(--muted);
}
.rail-transaction p + p {
  margin-top: 2px;
}

/* ============ Scores ============ */
.games-grid {
  display: grid;
  gap: 16px;
}
.game {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  min-width: 0;
}
.game-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  min-height: 48px;
}
.game-week {
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.game-top .close-label {
  margin-left: auto;
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.game-sides {
  padding: 4px 16px;
}
.game-side {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  min-height: 72px;
}
.game-side + .game-side {
  border-top: 1px solid var(--line);
}
.game-side .avatar {
  width: 40px;
  height: 40px;
}
.game-side .team-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
a.game-side:hover .team-name {
  color: var(--red);
}
.game-side .small {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}
.side-rec {
  color: var(--ink);
  font-weight: 700;
}
.game-side .score {
  text-align: right;
  font: 800 40px/0.9 var(--cond);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.game-side .score .small {
  font: 600 11px/1.3 var(--sans);
  margin-top: 6px;
}
.is-final .game-side:not(.winner) .score,
.is-final .game-side:not(.winner) .team-name {
  color: var(--muted);
}
.game-side.winner .team-name::after {
  content: "◂" / "";
  margin-left: 6px;
  color: var(--red);
  font-size: 12px;
}
.game-side.leader .team-name::after {
  content: "◂" / "";
  margin-left: 6px;
  color: var(--red);
  font-size: 12px;
}
.split-bar {
  display: flex;
  height: 4px;
  margin: 0 16px 8px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.split-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
}
.game-live .split-bar span {
  background: var(--red);
}
.game-preview .split-bar span {
  background: var(--muted);
}
.game-foot {
  padding: 8px 16px 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ============ Tables ============ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r1);
}
.table-wrap:focus-visible {
  outline-offset: -3px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  padding: 12px;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
th {
  text-align: left;
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 8px;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
  white-space: nowrap;
  vertical-align: bottom;
}
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
tbody tr:last-child > td {
  border-bottom: 0;
}
tbody tr:hover > td {
  background: var(--hover);
}
th.num,
td.num {
  text-align: right;
  white-space: nowrap;
}
td.team-cell {
  min-width: 140px;
}
td .team-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
td .small {
  display: block;
  font-size: 11px;
}
.rank-col {
  width: 28px;
  text-align: center;
  font: 800 20px/1 var(--cond);
  color: var(--muted);
}
tr.cutoff td {
  border-bottom: 2px solid var(--red);
}
tr.cutoff td:first-child {
  position: relative;
}
tr.cutoff td:first-child::after {
  content: "Playoff line";
  position: absolute;
  left: 4px;
  bottom: -9px;
  z-index: 1;
  padding: 0 6px;
  background: var(--white);
  color: var(--red);
  font: 700 11px/16px var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============ Teams ============ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 16px;
  min-width: 0;
}
.team-card:hover {
  text-decoration: none;
  border-color: var(--ink);
}
.team-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.team-card-head .avatar {
  width: 44px;
  height: 44px;
}
.team-card-id {
  min-width: 0;
}
.team-card-head strong {
  display: block;
  font: 800 20px/1.05 var(--cond);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.team-card:hover .team-card-head strong {
  color: var(--red);
}
.team-card-head .rank {
  margin-left: auto;
  font: 800 34px/1 var(--cond);
  color: var(--muted);
}
.team-card.in-playoffs .rank {
  color: var(--ink);
}
.team-card-record .rec {
  font: 800 24px/1 var(--cond);
  margin-right: 4px;
}
.team-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.team-card-stats b {
  color: var(--ink);
  font: 700 16px/1 var(--cond);
}
.team-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  overflow: hidden;
}
.team-banner > .avatar {
  width: 56px;
  height: 56px;
  margin-top: 30px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line-2);
  font-size: 22px;
}
.team-banner .page-intro {
  position: relative;
  border: 0;
  margin: 0;
  padding-bottom: 8px;
}
.team-rank-mark {
  position: absolute;
  right: -4px;
  top: -12px;
  font: 800 150px/1 var(--cond);
  color: var(--soft);
  pointer-events: none;
}
.team-rank-mark::before {
  content: "#";
  font-size: 0.5em;
  vertical-align: 0.8em;
}
.team-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}
.team-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  padding: 12px 14px;
  min-width: 0;
}
.team-stat > span:first-child {
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-stat strong {
  font: 800 28px/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
.result-card {
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  padding: 14px 16px;
  margin-bottom: 4px;
}
.result-card .result-score {
  font: 800 34px/1 var(--cond);
}
.result-card .win,
.result-card .loss,
.result-card .tie {
  font: 700 14px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--win);
}
.result-card .loss {
  color: var(--loss);
}
.result-card .tie {
  color: var(--muted);
}
.roster-slot {
  font: 700 11px/1 var(--cond);
  letter-spacing: 0.06em;
  min-width: 44px;
  text-align: center;
  padding: 3px 4px;
  border-radius: var(--r1);
  background: var(--chip-bg);
  color: var(--muted);
  white-space: nowrap;
}
.roster-table .name-cell {
  min-width: 150px;
}
.roster-table .player-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.tools-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-size: 13px;
}

/* ============ Draft room ============ */
.draft-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
}
.draft-verified.partial {
  color: var(--muted);
}
.draft-round-heading {
  position: sticky;
  top: var(--stick-top);
  z-index: 3;
  margin: 16px 0 0;
  padding: 8px 0;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font: 800 18px/1.1 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.draft-round-heading .small {
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.draft-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.draft-row .pick {
  flex: 0 0 52px;
  font: 800 15px/1 var(--cond);
  color: var(--muted);
  white-space: nowrap;
}
.draft-row .name {
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.draft-row .name .player-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.draft-row .drafter {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.draft-row .num {
  font: 700 17px/1 var(--cond);
}
.market-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 20px;
  margin-top: 40px;
}
.market-card .market-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--r1);
  background: var(--red);
  color: var(--white);
  font: 800 12px/1 var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-theme="dark"] .market-card .market-chip {
  color: #16181d;
}
.market-card h3 {
  margin: 10px 0 8px;
  font: 800 26px/1.02 var(--cond);
}
.market-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dek);
  margin-top: 10px;
}
.market-card p:first-of-type {
  margin-top: 12px;
}
.market-examples {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.market-examples li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.market-examples .slot {
  font: 800 16px/1 var(--cond);
  color: var(--muted);
  white-space: nowrap;
}
.market-examples .delta {
  font: 800 16px/1 var(--cond);
  white-space: nowrap;
}
.market-examples .delta.ahead {
  color: var(--win);
}
.market-examples .delta.behind {
  color: var(--loss);
}
.market-examples strong {
  overflow-wrap: anywhere;
}
.market-source {
  margin-top: 16px;
  padding: 12px;
  background: var(--paper-2);
  border-left: 3px solid var(--line-2);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.market-source a {
  text-decoration: underline;
  color: var(--ink);
}

/* ============ Future picks ============ */
.pick-grid {
  display: grid;
  gap: 12px;
}
.pick-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 16px;
  min-width: 0;
}
.pick-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  min-width: 0;
}
.pick-card-head h3 {
  font: 800 20px/1.05 var(--cond);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.pick-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  min-width: 0;
}
.pick-row:last-child {
  border-bottom: 0;
}
.pick-row .round-chip {
  font: 800 14px/1 var(--cond);
  color: var(--muted);
  white-space: nowrap;
}
.pick-row .owner {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pick-row .owner .small {
  font-weight: 500;
  margin-top: 2px;
}
.pick-row .traded-mark {
  font: 700 12px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
.pick-row .traded-mark.own {
  color: var(--muted);
}

/* ============ Wire ============ */
.wire-list {
  position: relative;
}
.wire-week {
  position: sticky;
  top: var(--stick-top);
  z-index: 3;
  margin: 16px 0 0;
  padding: 8px 0;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font: 800 18px/1.1 var(--cond);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wire-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.wire-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.wire-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--muted);
}
.wire-item.trade::after {
  box-shadow: inset 0 0 0 5px var(--ink);
}
.wire-item > .avatar {
  grid-column: 1;
  margin-top: 2px;
}
.wire-copy {
  grid-column: 2;
  min-width: 0;
}
.wire-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 4px;
}
.wire-type {
  font: 800 13px/1.2 var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wire-type.trade {
  color: var(--red);
}
.wire-type.waiver {
  color: var(--ink);
}
.wire-type.free_agent {
  color: var(--muted);
}
.wire-copy p {
  margin: 2px 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wire-bid {
  grid-column: 3;
  padding: 4px 8px;
  border-radius: var(--r1);
  background: var(--chip-bg);
  font: 800 16px/1.1 var(--cond);
  color: var(--ink);
  white-space: nowrap;
}

/* ============ Footer ============ */
.site-footer {
  margin: 64px 0 24px;
  padding-top: 24px;
  border-top: 3px solid var(--ink);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  font: 800 28px/1 var(--cond);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer-brand:hover {
  text-decoration: none;
  color: var(--red);
}
.site-footer p + p {
  margin-top: 4px;
}
.site-footer a:not(.footer-brand) {
  text-decoration: underline;
}
.methodology {
  margin-top: 16px;
  max-width: 80ch;
  border-block: 1px solid var(--line);
}
.methodology summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
}
.methodology p {
  margin: 10px 0;
}
.site-footer #buildInfo {
  font-size: 11px;
  margin-top: 16px;
}

/* ============ 600px and up ============ */
@media (min-width: 600px) {
  .wrap,
  .mast-inner {
    padding-inline: 24px;
  }
  .theme-label {
    display: inline;
  }
  .mast-caption {
    display: block;
  }
  .scoreboard {
    margin-inline: 0;
  }
  .lead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
  }
  .feature-art {
    margin-top: 0;
    min-height: 300px;
    height: 100%;
  }
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .award-grid,
  .team-grid,
  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-switch {
    display: inline-flex;
  }
  .filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .filters .search-field {
    grid-column: 1/-1;
  }
  .team-hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-banner > .avatar {
    width: 72px;
    height: 72px;
  }
  .team-rank-mark {
    font-size: 200px;
  }
}

/* ============ 720px and up: draft filters in one row ============ */
@media (min-width: 720px) {
  /* Once there is room, the draft filters align in a single row: a
     wider text search plus the two select columns, with minimums
     that keep select option text readable. */
  .filters.draft-filters {
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
  }
  .filters.draft-filters .search-field {
    grid-column: auto;
  }
}

/* ============ 1000px and up: desk rail ============ */
@media (min-width: 1000px) {
  :root {
    --stick-top: 53px;
  }
  html {
    scroll-padding-top: 72px;
  }
  body {
    padding-bottom: 0;
  }
  .wrap,
  .mast-inner {
    padding-inline: 32px;
  }
  .masthead {
    position: relative;
  }
  .mast-inner {
    padding-block: 16px;
    min-height: 92px;
  }
  .wordmark {
    font-size: 40px;
  }
  .brand-x {
    height: 52px;
    width: 42px;
    font-size: 46px;
  }
  .brand-small {
    font-size: 11px;
    letter-spacing: 0.55em;
    margin-top: 9px;
  }
  .mast-caption {
    font-size: 11px;
    margin-left: 8px;
  }
  .main-nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 max(32px, calc((100% - 1320px) / 2 + 32px));
    background: var(--paper);
    border-top: 0;
    border-bottom: 1px solid var(--ink);
  }
  .nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 800 24px/1 var(--cond);
    white-space: nowrap;
    margin-right: 28px;
  }
  .nav-brand:hover {
    text-decoration: none;
  }
  .nav-brand .brand-x {
    width: 24px;
    height: 30px;
    font-size: 26px;
  }
  .nav-inner {
    flex: 1;
    max-width: none;
    margin: 0;
    gap: clamp(16px, 2vw, 28px);
  }
  .nav-inner > a {
    flex: none;
    padding: 0;
    min-height: 52px;
    font: 700 15px/1 var(--cond);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-inner > a[aria-current="page"] {
    color: var(--ink);
    background: none;
  }
  .nav-inner svg {
    display: none;
  }
  .nav-inner > a[aria-current="page"]::before {
    top: auto;
    bottom: -1px;
    left: 0;
    right: 0;
  }
  .edition-line {
    padding-block: 12px;
  }
  .view {
    padding-top: 32px;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }
  .home-aside {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
    padding-left: 32px;
  }
  .lead {
    gap: 32px;
  }
  .feature-art {
    min-height: 340px;
  }
  .score-scroll {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .score-tile {
    flex: 1;
    min-width: 0;
  }
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  td {
    padding: 14px 12px;
    font-size: 14px;
  }
  th {
    padding-inline: 12px;
  }
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 48px;
    margin-top: 80px;
  }
  .site-footer > * {
    grid-column: 2;
  }
  .site-footer > .footer-brand {
    grid-column: 1;
    grid-row: 1 / span 4;
  }
}
@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: no-preference) {
  a,
  button,
  .team-card,
  .score-tile,
  select,
  input {
    transition:
      color var(--t) var(--ease),
      background-color var(--t) var(--ease),
      border-color var(--t) var(--ease);
  }
  .view:not([hidden]) {
    animation: view-in 200ms var(--ease);
  }
  .refresh:not(:disabled):hover {
    transform: rotate(30deg);
    transition: transform 0.15s ease;
  }
  .status-live::before {
    animation: live-pulse 1.6s ease-in-out infinite;
  }
  .skeleton span,
  .skeleton i {
    background: linear-gradient(90deg, var(--soft) 0 40%, var(--paper-2) 50%, var(--soft) 60% 100%) 0 0 / 300% 100%;
    animation: shimmer 1.4s linear infinite;
  }
  .skeleton .sk-cards {
    background: none;
    animation: none;
  }
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes live-pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
