/* JJ's Cheatsheet: printed box-score look. Paper and ink, thin rules, condensed headlines. */
:root {
  --bg: #f2eee5;
  --paper: #fbf9f4;
  --ink: #1b1814;
  --ink-2: #4a443b;
  --muted: #7b7366;
  --rule: #d8d0c1;
  --accent: #c43f1d;
  --out: #b3261e;
  --gtd: #a86b12;
  --good: #2c7a4b;
  --info: #2a5a88;
  --tint: #e9e2d3;
  --tint-light: #d9e8d7;
  --z-hi: #bfe0c6;
  --z-up: #e1efe0;
  --z-dn: #f6e0d9;
  --z-lo: #efc2b6;
  --backdrop: rgba(27, 24, 20, .55);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13120f; --paper: #1b1916; --ink: #ece6da; --ink-2: #c3bbad; --muted: #8e8679;
    --rule: #322e28; --accent: #e8643c; --out: #ec6a5c; --gtd: #dda23f; --good: #63b283; --info: #74a6d8;
    --tint: #26231e; --tint-light: #1e3325; --z-hi: #1f4a2c; --z-up: #1d3324; --z-dn: #3d2620; --z-lo: #5a2c22; --backdrop: rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13120f; --paper: #1b1916; --ink: #ece6da; --ink-2: #c3bbad; --muted: #8e8679;
  --rule: #322e28; --accent: #e8643c; --out: #ec6a5c; --gtd: #dda23f; --good: #63b283; --info: #74a6d8;
  --tint: #26231e; --tint-light: #1e3325; --z-hi: #1f4a2c; --z-up: #1d3324; --z-dn: #3d2620; --z-lo: #5a2c22; --backdrop: rgba(0, 0, 0, .65);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { margin: 0; }
b { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Header */
.topbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 16px 24px 10px; background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 34px; line-height: .9;
  text-transform: uppercase; letter-spacing: -.01em;
}
.wordmark span { color: var(--accent); }
.tag {
  margin: 0; color: var(--muted); font-family: var(--display); font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em;
}
.top-actions { display: flex; align-items: center; gap: 8px; }
#updated { font-size: 12px; color: var(--muted); margin-right: 4px; }

.btn {
  font-family: var(--display); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .05em;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 2px;
  padding: 6px 14px 5px; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn:focus-visible, .chip:focus-visible, .tabs button:focus-visible, .star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.star {
  background: none; border: 0; cursor: pointer; font-size: 19px; color: var(--muted);
  padding: 2px 4px; line-height: 1;
}
.star.on, .star:hover { color: var(--accent); }

/* Tabs */
.tabs {
  display: flex; gap: 22px; padding: 0 24px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule);
  overflow-x: auto; background: var(--bg); position: sticky; top: var(--topbar-h, 69px); z-index: 19;
  scrollbar-width: none;
}
.tabs button {
  font-family: var(--display); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .04em;
  background: none; border: 0; color: var(--muted); padding: 10px 0 8px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.pill { color: var(--accent); font-size: 14px; margin-left: 4px; }
.pill:empty { display: none; }

/* Scores strip */
.ticker { background: var(--paper); border-bottom: 1px solid var(--rule); }
.ticker[hidden] { display: none; }
.ticker-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.ticker-inner::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.ticker-label {
  font-family: var(--display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
  display: flex; flex-direction: column; justify-content: center; padding: 6px 14px 6px 0; margin-right: 2px;
  border-right: 2px solid var(--ink); white-space: nowrap; line-height: 1.1;
}
.ticker-label small { font-family: var(--body); font-weight: 400; font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.tick {
  display: grid; grid-template-columns: auto; align-content: center; gap: 1px; flex-shrink: 0;
  background: none; border: 0; border-right: 1px solid var(--rule); color: var(--ink);
  padding: 6px 14px; cursor: pointer; font: inherit; text-align: left; min-width: 104px;
}
.tick:hover { background: var(--tint); }
.tk-team { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.tk-team img { width: 16px; height: 16px; }
.tk-abbr { font-weight: 600; min-width: 3ch; }
.tk-team b { margin-left: auto; padding-left: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.tick.final .tk-team { color: var(--muted); }
.tick.final .tk-team.win { color: var(--ink); }
.tick.final .tk-team.win b { font-weight: 700; }
.tk-status { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.tk-status.live { color: var(--out); font-weight: 600; }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--out);
  margin-right: 5px; vertical-align: 1px; animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
#todayHead { scroll-margin-top: calc(var(--topbar-h, 69px) + 60px); }

main { max-width: 1240px; margin: 0 auto; padding: 8px 24px 48px; }
.tab { display: none; }
.tab.active { display: block; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  flex-wrap: wrap; margin: 26px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1;
  text-transform: uppercase; letter-spacing: -.005em;
}
.section-head h2::before {
  content: ""; display: inline-block; width: .32em; height: .72em; margin-right: .32em;
  background: var(--accent); vertical-align: .02em;
}
.section-head p { margin: 0; font-size: 14px; }
.tab > p.muted { font-size: 14px; max-width: 70ch; margin: 0 0 14px; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
input[type="search"], select, .scoring input {
  font-family: var(--body); background: var(--paper); border: 1px solid var(--rule); color: var(--ink);
  padding: 8px 10px; border-radius: 2px; font-size: 14px;
}
input[type="search"] { min-width: 240px; flex: 1; max-width: 400px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.check { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.check input { accent-color: var(--accent); }

/* Segmented switch */
.chips { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; }
.chip {
  font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .05em;
  background: transparent; border: 0; border-left: 1px solid var(--ink); color: var(--ink);
  padding: 4px 12px 3px; cursor: pointer;
}
.chip:first-child { border-left: 0; }
.chip.active { background: var(--ink); color: var(--bg); }

/* Lists & cards */
.list { display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.games { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px;
  padding: 14px 16px;
}
.card.clickable { cursor: pointer; transition: border-color .12s, transform .15s ease, box-shadow .15s ease; }
.card.clickable:hover { border-color: var(--ink); }
.grid .card.clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) {
  .card.clickable { transition: border-color .12s; }
  .grid .card.clickable:hover { transform: none; }
}
/* Team colors (set per card from the scoreboard feed) */
.player-card[style*="--team"] { border-top: 3px solid var(--team); }
#injList .card[style*="--team"] { border-left: 3px solid var(--team); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  [style*="--team"] .headshot, .headshot[style*="--team"] { background: color-mix(in srgb, var(--team) 30%, var(--tint)); }
}

.player-row { display: flex; gap: 12px; align-items: flex-start; }
.headshot {
  width: 54px; height: 54px; border-radius: 2px; background: var(--tint);
  object-fit: cover; object-position: top; flex-shrink: 0;
}
.headshot.lg { width: 104px; height: 104px; }
.team-logo { width: 18px; height: 18px; vertical-align: -3px; }
.team-logo.lg { width: 34px; height: 34px; }
.player-main { flex: 1; min-width: 0; }
.player-name {
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.05; letter-spacing: .005em;
}
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 4px 10px; align-items: center; flex-wrap: wrap; margin-top: 3px; }

.status {
  display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 6px 1px; border-radius: 2px; text-transform: uppercase; line-height: 1.2;
}
.status.out { background: var(--out); color: #fff; }
.status.dtd { background: var(--gtd); color: #fff; }
.status.ok { color: var(--muted); padding-left: 0; font-weight: 600; }
.new-badge {
  font-family: var(--display); color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; margin-left: 4px;
}
.injury-comment { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.impact {
  margin-top: 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent);
  font-size: 14px; color: var(--ink-2);
}
.impact b { color: var(--ink); }

/* Team cards */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stat-strip > div { padding: 6px 0 5px; text-align: center; border-left: 1px solid var(--rule); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip .v { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05; }
.stat-strip .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trend-up { color: var(--good); }
.trend-down { color: var(--out); }
.next-game { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.spark { display: flex; gap: 3px; align-items: flex-end; height: 30px; margin-top: 12px; }
.spark span { flex: 1; background: var(--ink); opacity: .22; min-height: 2px; }
.spark span:last-child { background: var(--accent); opacity: 1; }
.spark span.dnp { background: var(--rule); opacity: 1; }

.alerts { list-style: none; margin: -14px 0 20px; padding: 0; }
.alert {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px;
}
.alert-tag {
  font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
}
.alert.bad .alert-tag { color: var(--out); }
.alert.warn .alert-tag { color: var(--gtd); }
.alert.info .alert-tag { color: var(--info); }
.alert.good .alert-tag { color: var(--good); }

.empty {
  text-align: center; padding: 40px 20px; color: var(--ink-2); border: 1px solid var(--rule);
  border-radius: 3px; background: var(--paper);
}
.empty h3 { font-family: var(--display); font-size: 24px; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.empty p { max-width: 52ch; margin: 0 auto; }
.empty .btn { margin: 16px 4px 0; }

/* News */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
#newsList { gap: 0; }
.news-item {
  display: flex; gap: 16px; background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0; padding: 16px 0;
}
.news-item:first-child { padding-top: 4px; }
.news-item img { width: 160px; height: 104px; object-fit: cover; flex-shrink: 0; background: var(--tint); }
.news-item h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { color: var(--accent); }
.news-item p { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.news-layout aside {
  position: sticky; top: calc(var(--topbar-h, 69px) + 60px); border-top: 2px solid var(--ink);
  padding-top: 8px; max-height: calc(100vh - var(--topbar-h, 69px) - 80px); overflow: auto;
}
.news-layout aside h3 {
  font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag-btn {
  font-family: var(--body); background: transparent; border: 1px solid var(--rule); color: var(--ink-2);
  font-size: 12px; border-radius: 2px; padding: 2px 8px; cursor: pointer;
}
.tag-btn:hover { border-color: var(--ink); color: var(--ink); }
.flag { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--out); text-transform: uppercase; letter-spacing: .05em; }
.small-list { gap: 0; }
.small-list .card { padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.small-list .card:hover { border-color: var(--rule); }
.small-list .card p { margin: 4px 0 0; font-size: 13px; }

/* Schedule */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--rule); text-align: center; white-space: nowrap; }
th {
  font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--ink); position: sticky; top: 0;
}
th .small { font-family: var(--body); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
th.light-day { color: var(--good); }
td.team-cell { text-align: left; font-weight: 600; }
td.game { background: var(--tint); color: var(--ink); }
td.game.light { background: var(--tint-light); }
td.game.b2b { box-shadow: inset 0 -3px 0 var(--gtd); }
td.count { font-family: var(--display); font-weight: 700; font-size: 18px; }
td.count.c4 { color: var(--good); }
td.count.c2 { color: var(--out); }
tr.mine td.team-cell { box-shadow: inset 4px 0 0 var(--accent); padding-left: 12px; }

/* League leaders */
.star-key { color: var(--accent); }
.leader-jump {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px;
  position: sticky; top: calc(var(--topbar-h, 69px) + 45px); z-index: 5; background: var(--bg); padding: 6px 0;
}
.leader-jump button {
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 2px;
  padding: 3px 10px 2px; cursor: pointer; flex-shrink: 0;
}
.leader-jump button:hover { border-color: var(--ink); }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 24px; align-items: start; }
.board { scroll-margin-top: calc(var(--topbar-h, 69px) + 112px); }
.board h3 {
  display: flex; align-items: baseline; gap: 10px; padding-bottom: 4px; border-bottom: 2px solid var(--ink);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .03em;
}
.board h3 span:first-child { font-size: 26px; font-weight: 700; line-height: 1; }
.board h3 .muted { font-size: 14px; font-weight: 600; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center;
  padding: 4px 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.board li:hover b { color: var(--accent); }
.board li.mine { background: var(--tint); }
.board li:nth-child(-n+3) .rk { color: var(--ink); }
.board .rk { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--muted); text-align: right; }
.board .who { min-width: 0; line-height: 1.15; }
.board .who b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .who .small { display: block; font-size: 11.5px; }
.board .val { font-family: var(--display); font-weight: 700; font-size: 19px; padding-right: 2px; }
.board li:first-child .val { color: var(--accent); }

/* Trade checker */
#tab-trade > p.muted a { color: var(--ink); }
.trade-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.trade-side h3 {
  font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .03em;
  padding-bottom: 4px; border-bottom: 2px solid var(--ink); margin-bottom: 10px;
}
.trade-side[data-side="get"] h3 { border-bottom-color: var(--accent); }
.trade-search { position: relative; }
.trade-search input { width: 100%; max-width: none; min-width: 0; }
.trade-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 10;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  max-height: 340px; overflow: auto;
}
.trade-suggest[hidden], .trade-suggest:empty { display: none; }
.trade-suggest p { margin: 0; padding: 10px 12px; }
.trade-suggest button {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: 7px 12px; cursor: pointer; color: var(--ink); font-family: var(--body);
}
.trade-suggest button:hover, .trade-suggest button:focus-visible { background: var(--tint); outline: none; }
.trade-suggest button b { display: block; font-weight: 600; font-size: 14px; }
.trade-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.trade-quick:empty { display: none; }
.trade-list { list-style: none; margin: 10px 0 0; padding: 0; }
.trade-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.trade-list li:hover .who b { color: var(--accent); }
.trade-list li.placeholder { display: block; cursor: default; font-size: 14px; }
.trade-list .who { min-width: 0; line-height: 1.2; }
.trade-list .who b { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; }
.trade-list .who .small { display: block; }
.trade-list .val { font-family: var(--display); font-weight: 700; font-size: 22px; text-align: right; line-height: 1; }
.trade-list .unit { display: block; font-family: var(--body); font-weight: 400; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trade-list .remove {
  background: none; border: 1px solid var(--rule); color: var(--muted); border-radius: 2px;
  width: 28px; height: 28px; font-size: 18px; line-height: 1; cursor: pointer;
}
.trade-list .remove:hover { color: var(--out); border-color: var(--out); }

.verdict { border-top: 4px solid var(--ink); background: var(--paper); padding: 16px 18px; margin-bottom: 16px; border-radius: 0 0 3px 3px; }
.verdict.great, .verdict.good { border-top-color: var(--good); }
.verdict.bad, .verdict.awful { border-top-color: var(--out); }
.verdict.fair { border-top-color: var(--gtd); }
.verdict-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.verdict-label { font-family: var(--display); font-weight: 700; font-size: 34px; text-transform: uppercase; line-height: 1; }
.verdict.great .verdict-label, .verdict.good .verdict-label { color: var(--good); }
.verdict.bad .verdict-label, .verdict.awful .verdict-label { color: var(--out); }
.verdict.fair .verdict-label { color: var(--gtd); }
.verdict-net { font-family: var(--display); font-weight: 700; font-size: 30px; }
.verdict-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.verdict-net small { font-size: 13px; color: var(--muted); margin-left: 4px; text-transform: uppercase; letter-spacing: .05em; }
.verdict p { margin: 8px 0 12px; color: var(--ink-2); max-width: 70ch; }
.verdict-bar { display: flex; height: 10px; gap: 2px; }
.verdict-bar .give { background: var(--ink); opacity: .35; }
.verdict-bar .get { background: var(--accent); }
.verdict-key { display: flex; justify-content: space-between; margin-top: 4px; }
.trade-table th:first-child, .trade-table tbody th { text-align: left; }
.trade-table tbody th { font-family: var(--display); font-size: 15px; letter-spacing: .04em; position: static; border-bottom: 1px solid var(--rule); }
.trade-table td { font-variant-numeric: tabular-nums; font-size: 14px; }
.trade-table td.chg { font-weight: 600; }
.trade-table td.chg.up { color: var(--good); }
.trade-table td.chg.down { color: var(--out); }
.trade-notes { margin: 14px 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.trade-notes li { margin-bottom: 4px; }

/* 9-cat */
.value-note { margin: -8px 0 16px; max-width: 80ch; }
.value-note:empty { display: none; }
.legend-key { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.legend-key span { font-size: 11px; padding: 1px 7px; border-radius: 2px; color: var(--ink-2); white-space: nowrap; }
.cat-line { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; margin-top: 8px; }
.cat-line > div { text-align: center; padding: 3px 0 2px; background: var(--bg); border-radius: 2px; }
.cat-line .l { font-size: 9.5px; color: var(--muted); letter-spacing: .03em; }
.cat-line .v { font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.1; }
.z-hi { background: var(--z-hi) !important; }
.z-up { background: var(--z-up) !important; }
.z-dn { background: var(--z-dn) !important; }
.z-lo { background: var(--z-lo) !important; }
.z-hi .l, .z-lo .l { color: var(--ink-2); }
.spark span.neg { background: var(--out); opacity: .35; }
.kpi.cat { text-align: left; }
.board.overall h3 { border-bottom-color: var(--accent); }
.board.overall h3 span:first-child { color: var(--accent); }
.proj-cats-head { margin: 18px 0 8px; font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.proj-cats td { padding: 8px 6px; vertical-align: top; }
@media (max-width: 860px) {
  .proj-cats th, .proj-cats td { padding: 6px 2px; }
  .proj-cats th { font-size: 12px; }
  .proj-cats td b { font-size: 17px; }
  .proj-cats td .small { font-size: 9.5px; }
}
.proj-cats td b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.1; }
.proj-cats td .small { display: block; }

/* League settings */
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.setting > span { font-weight: 600; }
#settings h3 { font-family: var(--display); font-size: 18px; text-transform: uppercase; margin: 16px 0 2px; }
#catsNote { margin: 12px 0 18px; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px;
}
.section-head #tradeLeague { font-size: 14px; }

/* Week projection */
.proj { margin-top: 12px; }
.proj > p.muted { font-size: 14px; max-width: 70ch; margin: 0 0 14px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-table th.left, .proj-table td.left { text-align: left; }
.proj-table th.today { color: var(--accent); }
.proj-table tbody tr.clickable { cursor: pointer; }
.proj-table tbody tr.clickable:hover td.proj-player b { color: var(--accent); }
.proj-player { min-width: 150px; white-space: normal; }
.proj-table .left { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--rule); }
.proj-table thead th.left { z-index: 2; }
.proj-inline { display: none; }
.proj-player b { display: block; font-family: var(--display); font-size: 17px; line-height: 1.1; }
.note-out { color: var(--out); }
.note-gtd { color: var(--gtd); }
.proj-table td.day.play { background: var(--tint); color: var(--ink); }
.proj-table td.day.past { color: var(--muted); opacity: .6; }
.proj-table td.day.out { color: var(--out); text-decoration: line-through; }
.proj-table td.num { font-family: var(--display); font-weight: 600; font-size: 17px; }
.proj-table td.proj-val { color: var(--accent); font-weight: 700; font-size: 19px; }
.proj-table tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; background: var(--paper); }
.proj-table tfoot td.left { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
tbody tr:hover td:not(.game) { background: var(--bg); }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; }
.legend .lg-game::before { background: var(--tint); border: 1px solid var(--rule); }
.legend .lg-light::before { background: var(--tint-light); }
.legend .lg-b2b::before { background: var(--gtd); height: 3px; vertical-align: 2px; }
.legend .lg-mine::before { background: var(--accent); width: 4px; }

.game-card .teams { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game-card .side { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.game-card .side .small { font-family: var(--body); font-weight: 400; }
.game-card .score { font-family: var(--display); font-size: 30px; font-weight: 700; }
.game-card .info {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px;
}
.game-card .flags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-family: var(--display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid currentColor; border-radius: 2px; padding: 1px 6px 0;
}
.badge.bad { color: var(--out); }
.badge.good { color: var(--good); }
.badge.warn { color: var(--gtd); }
.game-card .outs { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.game-card .outs b { color: var(--out); font-family: var(--display); letter-spacing: .04em; }
.game-card .outs.gtd b { color: var(--gtd); }

/* Modal */
.modal {
  position: fixed; inset: 0; background: var(--backdrop); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto;
}
.modal.hidden { display: none; }
.modal-box {
  background: var(--paper); border-top: 4px solid var(--ink); border-radius: 2px;
  width: 100%; max-width: 960px; padding: 24px 28px 28px; position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.modal-box.narrow { max-width: 500px; }
.modal-box > h2 { font-family: var(--display); font-size: 30px; text-transform: uppercase; margin-bottom: 4px; }
.close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.close:hover { color: var(--ink); }
.profile-head { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--ink); padding-right: 28px; }
.profile-head h2 { font-family: var(--display); font-size: 40px; line-height: 1; text-transform: uppercase; }
.kpis {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  margin: 16px 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.kpi { padding: 8px 10px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kpi .v { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.05; }
.kpi .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi:first-child .v { color: var(--accent); }
.blurb { border-left: 3px solid var(--ink); padding: 2px 0 2px 14px; margin: 16px 0; }
.blurb h4 { margin: 0 0 6px; font-family: var(--display); font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.blurb p { margin: 0; font-size: 14px; color: var(--ink-2); }
.modal h3 { margin: 22px 0 8px; font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
td.fp { font-weight: 700; color: var(--accent); }

.scoring { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin: 16px 0 20px; }
.scoring label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.scoring input { width: 72px; padding: 4px 6px; text-align: right; }
.row { display: flex; gap: 8px; }

.loading { color: var(--muted); padding: 24px; text-align: center; font-size: 14px; }
.loading::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid var(--rule); border-top-color: var(--ink); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

footer {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

/* Support modal */
.tip-links { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid var(--rule); }
.tip-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.tip-link:hover { color: var(--accent); }
.tip-link[href*="stripe.com"] .go {
  background: var(--accent); color: #fff; padding: 6px 14px 5px; border-radius: 2px;
}
.tip-link[href*="stripe.com"]:hover .go { filter: brightness(1.08); }
.tip-link .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.tip-link .go { margin-left: auto; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; }
.tip-setup { border-left: 3px solid var(--gtd); padding: 4px 0 4px 12px; font-size: 13px; margin-top: 16px; }

@media (max-width: 860px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-layout aside { position: static; max-height: none; }
  .news-item img { width: 96px; height: 68px; }
  .topbar { padding: 12px 16px 8px; flex-wrap: wrap; }
  .wordmark { font-size: 26px; }
  .tag, #updated { display: none; }
  .top-actions { gap: 6px; }
  .tabs { padding: 0 16px; gap: 18px; }
  .tabs::after {
    content: ""; position: sticky; right: -16px; flex: 0 0 32px; margin-left: -32px; margin-right: -16px;
    background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none;
  }
  .ticker-inner { padding: 0 16px; }
  .tick { padding: 6px 12px; min-width: 96px; }
  main { padding: 4px 16px 40px; }
  .section-head h2 { font-size: 26px; }
  .profile-head h2 { font-size: 30px; }
  .alert { grid-template-columns: 72px 1fr; gap: 10px; }
  .trade-sides { grid-template-columns: 1fr; gap: 20px; }
  .verdict-label { font-size: 28px; }
  .proj-player { min-width: 128px; }
  .proj-inline { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; text-transform: none; letter-spacing: 0; font-family: var(--body); }
  .proj-inline b { display: inline; font-family: var(--body); font-size: 12px; color: var(--accent); }
  .modal-box { padding: 20px 18px 22px; }
  .scoring { grid-template-columns: 1fr; }
  footer { padding: 16px; }
}

/* About and privacy pages */
.doc { max-width: 720px; padding-top: 0; }
.doc h1 {
  font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; text-transform: uppercase;
  margin: 28px 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.doc h2 {
  font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase;
  margin: 34px 0 10px;
}
.doc h2::before {
  content: ""; display: inline-block; width: .32em; height: .72em; margin-right: .32em;
  background: var(--accent); vertical-align: .02em;
}
.doc h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin: 4px 0; }
.doc b { color: var(--ink); }
.doc .lede { font-size: 18px; color: var(--ink); }
.doc .updated { font-size: 13px; margin: 0 0 22px; }
.doc .doc-cta { display: inline-block; margin-top: 4px; text-decoration: none; }
.doc .doc-cta:hover { color: #fff; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .doc h1 { font-size: 36px; }
  .doc p, .doc li { font-size: 15px; }
}
