/* ============ Tokens ============ */
:root {
  --bg: #f3f0e8; --surface: #fffdf8; --surface-2: #f7f3ea; --surface-3: #eee8da;
  --ink: #15201b; --ink-2: #38433d; --muted: #67706a; --line: #e3dccb; --line-strong: #cec5b0;
  --turf: #123d2b; --turf-2: #1b5a3e; --brand: #1d7a4f; --brand-soft: #deefe5;
  --gold: #c98a12; --gold-soft: #fbefd0; --live: #d63a3a; --good: #1b8750; --bad: #c0412e;
  --side-a: #2f6ad8; --side-a-soft: #e3ebfb; --side-b: #d45a22; --side-b-soft: #fbe8dc;
  --h1: #d5e0ee; --h2: #e7ebeb; --h3: #f3ebd4; --h4: #f5cf93; --h5: #ee9a5d;
  --shadow: 0 1px 2px rgba(21, 32, 27, .05), 0 8px 24px -12px rgba(21, 32, 27, .18);
  --radius: 18px; --radius-sm: 12px;
  --display: 'Rubik', 'Arial Rounded MT Bold', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1210; --surface: #131b18; --surface-2: #18221e; --surface-3: #1e2a25;
    --ink: #e8eee9; --ink-2: #c1cbc4; --muted: #8a958e; --line: #25322c; --line-strong: #34443c;
    --turf: #0f2e21; --turf-2: #17452f; --brand: #43c083; --brand-soft: #16352a;
    --gold: #f0b43c; --gold-soft: #3a2e12; --live: #ff5d5d; --good: #4cc586; --bad: #ff7d68;
    --side-a: #74a2ff; --side-a-soft: #1a2747; --side-b: #ff9460; --side-b-soft: #3b2418;
    --h1: #1c2c40; --h2: #26312d; --h3: #3a3520; --h4: #6a4a1d; --h5: #8e421d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1210; --surface: #131b18; --surface-2: #18221e; --surface-3: #1e2a25;
  --ink: #e8eee9; --ink-2: #c1cbc4; --muted: #8a958e; --line: #25322c; --line-strong: #34443c;
  --turf: #0f2e21; --turf-2: #17452f; --brand: #43c083; --brand-soft: #16352a;
  --gold: #f0b43c; --gold-soft: #3a2e12; --live: #ff5d5d; --good: #4cc586; --bad: #ff7d68;
  --side-a: #74a2ff; --side-a-soft: #1a2747; --side-b: #ff9460; --side-b-soft: #3b2418;
  --h1: #1c2c40; --h2: #26312d; --h3: #3a3520; --h4: #6a4a1d; --h5: #8e421d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.fine-print { color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* ============ Top bar ============ */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand b { color: var(--brand); font-weight: 700; }
.brand-ball { width: 28px; height: 28px; }
.brand-ball ellipse { fill: #b8612e; }
.brand-ball path { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.tabs { display: flex; gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 999px; margin-left: 8px; }
.tab { position: relative; text-decoration: none; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tab-live { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--live); padding: 2px 6px; border-radius: 999px; animation: pulse 1.6s ease-in-out infinite; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; min-width: 38px; justify-content: center; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.spinning svg { animation: spin .9s linear infinite; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-sun { display: none; } :root:not([data-theme="light"]) .icon-moon { display: block; } }
.jump-wrap { position: relative; }
.jump-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; display: grid; }
.jump-menu a { text-decoration: none; padding: 9px 12px; border-radius: 9px; font-weight: 500; }
.jump-menu a:hover { background: var(--surface-2); }

/* ============ Layout ============ */
.shell { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 18px; min-width: 0; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel-grid > .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 23px; text-transform: uppercase; }
.panel-head p { color: var(--muted); margin-top: 5px; max-width: 60ch; }
.head-note { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.view { animation: fadeIn .25s ease; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; border-radius: 24px; padding: 30px; color: #f4f1e8;
  background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .055) 58px 60px), radial-gradient(120% 140% at 0% 0%, var(--turf-2), var(--turf) 60%); }
.hero::after { content: ''; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(233, 176, 60, .18), transparent); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #f0c56a; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 7vw, 78px); text-transform: uppercase; margin: 14px 0 12px; line-height: .95; }
.tagline { max-width: 46ch; color: rgba(244, 241, 232, .82); font-size: 16px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; }
.hero-chip b { color: #f0c56a; font-weight: 700; }
/* Square so the banner art (speech bubble on top, title along the bottom) is never cropped. */
.hero-art { position: relative; z-index: 1; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; width: 100%; max-width: 440px; align-self: center; justify-self: end; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .12); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { display: none; position: absolute; inset: 0; place-items: center; background: repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .06) 34px 36px); }
.hero-art.is-empty .hero-placeholder { display: grid; }
.hero-placeholder span { width: 150px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #9a4f25; color: #fff4e3; font: 800 54px/1 var(--display); transform: rotate(-18deg); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .18), 0 18px 40px -12px rgba(0, 0, 0, .6); position: relative; }
.hero-placeholder span::before, .hero-placeholder span::after { content: ''; position: absolute; top: 12px; bottom: 12px; width: 3px; background: rgba(255, 255, 255, .7); border-radius: 2px; }
.hero-placeholder span::before { left: 22px; } .hero-placeholder span::after { right: 22px; }

/* ============ Buttons / inputs ============ */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: var(--surface); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-strong); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.select-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
select { appearance: none; -webkit-appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23889' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 34px 9px 12px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); max-width: 100%; cursor: pointer; }
.info-btn { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font: 700 10px/1 var(--body); cursor: pointer; display: inline-grid; place-items: center; padding: 0; vertical-align: 1px; flex: none; }
.info-btn:hover { color: var(--brand); border-color: var(--brand); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.live { background: var(--live); color: #fff; }
.pill.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.pill.final { background: var(--ink); color: var(--bg); }
.pill.toss { background: var(--gold); color: #1d1606; }
.pill.upset { background: var(--bad); color: #fff; }
.pill.playoff { background: var(--brand); color: #fff; }
.good { color: var(--good); } .bad { color: var(--bad); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; display: inline-grid; place-items: center; font: 800 13px/1 var(--display); color: var(--ink-2); border: 1px solid var(--line); }
.avatar.lg { width: 44px; height: 44px; font-size: 18px; }

/* ============ Power rankings ============ */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto 40px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, transform .15s; }
.rank-row:hover { border-color: var(--line-strong); }
.rank-row[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.rank-num { font: 800 22px/1 var(--display); color: var(--muted); text-align: center; }
.rank-row:nth-child(1) .rank-num { color: var(--gold); }
.rank-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-team > div { min-width: 0; }
.rank-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-stats { display: flex; gap: 14px; }
.rank-stat { text-align: right; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.rank-stat b { display: block; font: 600 16px/1.2 var(--body); color: var(--ink); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.rank-power { text-align: right; min-width: 64px; }
.rank-power b { display: block; font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.rank-power small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.power-bar { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 5px; overflow: hidden; }
.power-bar i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.rank-move { font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.rank-move.up { color: var(--good); } .rank-move.down { color: var(--bad); } .rank-move.same { color: var(--muted); }
.formula { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--ink-2); }
.formula span { display: inline-flex; align-items: center; gap: 5px; }
.formula-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; color: var(--muted); }

/* ============ Team report ============ */
.report { position: sticky; top: 76px; }
.report-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.report-hero h3 { font-size: 19px; text-transform: uppercase; }
.report-hero p { color: var(--muted); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.stat-card.wide { grid-column: span 2; }
.stat-card small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat-card strong { display: block; font-size: 19px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 12px; color: var(--muted); }
.odds-meter { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.odds-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.spark { width: 100%; height: 46px; margin-top: 4px; display: block; }
.spark polyline { fill: none; stroke: var(--brand); stroke-width: 2; }
.spark circle { fill: var(--brand); }
.spark line { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.report-prompt { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.report-prompt span { font-size: 28px; }
.report-prompt b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 1020px) { .report-prompt .point-left { transform: rotate(90deg); } }
.report-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ============ Awards ============ */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.award { position: relative; border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 14px; min-width: 0; overflow: hidden; }
.award-icon { font-size: 26px; line-height: 1; }
.award h3 { font-size: 15px; text-transform: uppercase; margin-top: 10px; display: flex; align-items: center; gap: 6px; color: var(--muted); letter-spacing: .03em; }
.award-team { font-weight: 700; font-size: 16px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.award.pending .award-team { color: var(--muted); font-weight: 600; font-size: 14px; }
.award-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============ Tables ============ */
.data-table { border-collapse: separate; border-spacing: 3px; width: 100%; font-variant-numeric: tabular-nums; }
.data-table th { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; text-align: center; white-space: nowrap; }
.data-table th[scope="row"] { text-align: left; color: var(--ink); font-size: 13.5px; text-transform: none; letter-spacing: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.data-table td { text-align: center; padding: 8px 6px; border-radius: 8px; font-weight: 600; font-size: 13.5px; min-width: 62px; }
.data-table.heat { width: auto; }
.heat td { min-width: 76px; }
.heat td small { display: block; font-size: 10.5px; font-weight: 600; opacity: .7; }
.h1 { background: var(--h1); } .h2 { background: var(--h2); } .h3 { background: var(--h3); } .h4 { background: var(--h4); } .h5 { background: var(--h5); }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.heat-legend i { width: 22px; height: 12px; border-radius: 3px; }
.swap td { background: var(--surface-2); }
.swap td.better { background: color-mix(in srgb, var(--good) 18%, var(--surface)); }
.swap td.worse { background: color-mix(in srgb, var(--bad) 16%, var(--surface)); }
.swap td.same { background: var(--surface-3); color: var(--ink-2); }
.swap td.actual { outline: 2px solid var(--ink); outline-offset: -2px; }
.table-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Grid labels: the same bordered tag on every row and column header, sticky as the grid scrolls. */
.data-table th { padding: 0; }
.data-table th[scope="row"] { max-width: 180px; overflow: visible; }
.grid-label { display: block; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
th[scope="row"] .grid-label { padding: 9px 10px; max-width: 180px; }
.heat td.heat-future { border: 1px dashed var(--line); background: transparent; }
.heat td.heat-avg { background: var(--surface-2); }

/* ============ Draft postmortem ============ */
.draft-scroll { overflow: auto; max-height: 560px; border-radius: var(--radius-sm); overscroll-behavior: contain; }
.data-table.draft { width: auto; border-spacing: 4px; }
.draft thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.draft thead th:first-child { left: 0; z-index: 3; }
.draft th[scope="row"] .grid-label { display: flex; align-items: center; height: 62px; padding: 0 10px; font-family: var(--display); font-weight: 800; }
.draft td { padding: 0; min-width: 128px; vertical-align: top; }
.draft-team { text-transform: none; letter-spacing: 0; text-align: left; width: 128px; }
.draft-team small { display: block; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.draft-team b { display: block; color: var(--ink); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.draft-pick { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 128px; height: 62px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; font: inherit; line-height: 1.25; color: var(--ink); text-align: left; cursor: pointer; }
.draft-pick + .draft-pick { margin-top: 4px; }
.draft-pick:hover { border-color: var(--ink-2); }
.draft-pick b { font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-pick small { font-size: 11px; font-weight: 600; color: var(--ink-2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-full { display: none; }
.draft-pick.ungraded { background: var(--surface-2); border-color: var(--line); }
.draft-pick.gone, .heat-legend i.gone { background: var(--surface-3) repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--muted) 30%, transparent) 7px 9px); border-color: var(--line-strong); }
.draft-pick.gone b, .draft-pick.gone small { color: var(--muted); }
.draft-pick em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; color: #fff; }
.draft-pick em.dropped { background: var(--bad); }
.draft-pick em.traded { background: #6941a5; }
.draft-none { display: flex; align-items: center; justify-content: center; height: 62px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
/* Phones: bigger picks that are easier to read and tap; the board scrolls sideways for more teams. */
@media (max-width: 620px) {
  .draft td { min-width: 178px; }
  .draft-team { width: 178px; height: 64px; display: flex; flex-direction: column; justify-content: center; white-space: normal; }
  .draft-team b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2; }
  .draft th[scope="row"] .grid-label { width: 90px; height: 90px; }
  .draft-pick { width: 178px; height: 90px; padding: 8px 10px; }
  .draft-pick b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; font-size: 13.5px; line-height: 1.2; }
  .pick-full { display: inline; }
  .pick-short { display: none; }
  .draft-pick small { font-size: 11.2px; }
  .draft-pick em { font-size: 10px; }
  .draft-none { height: 90px; }
}

/* ============ Profiles chart ============ */
.profile-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mini-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.mini-tile small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mini-tile strong { display: block; font: 800 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.mini-tile span { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { font-family: var(--body); fill: var(--muted); font-size: 12px; }
.chart-svg .team-label { fill: var(--ink); font-weight: 600; font-size: 13px; }
.chart-svg .grid { stroke: var(--line); }
.chart-svg .range { stroke: var(--line-strong); stroke-width: 6; stroke-linecap: round; }
.chart-svg .end { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.chart-svg .avg { fill: var(--brand); }
.chart-svg .league { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 5; }
.chart-svg .val { font-size: 11px; font-weight: 600; }

/* ============ Bump chart ============ */
.bump-scroll { overflow-x: auto; }
.bump { min-width: 640px; }
.bump .series { cursor: pointer; transition: opacity .2s; }
.bump .series polyline { fill: none; stroke: var(--c); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.bump .series .hit { stroke: transparent; stroke-width: 16; }
.bump .series circle { fill: var(--surface); stroke: var(--c); stroke-width: 2.5; }
.bump .series text { fill: var(--c); font-weight: 700; font-size: 12.5px; }
.bump.focusing .series { opacity: .14; }
.bump.focusing .series.on { opacity: 1; }
.bump.focusing .series.on polyline:not(.hit) { stroke-width: 4.5; }
.bump-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bump-key { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bump-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.bump-key[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }

/* ============ Moves ============ */
.controls-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.controls-row .select-label select { max-width: min(420px, 78vw); }
.move-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface-2); }
.move-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.move-kicker { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.move-head h3 { font-size: 19px; margin-top: 4px; }
.move-swap { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13.5px; }
.move-swap b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.move-swap .in b { color: var(--good); } .move-swap .out b { color: var(--bad); }
.verdict { text-align: right; min-width: 150px; }
.verdict strong { display: block; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.verdict span { font-size: 12.5px; color: var(--muted); }
.move-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.move-weeks { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.move-weeks th { text-align: right; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.move-weeks td { text-align: right; padding: 8px; border-bottom: 1px solid var(--line); }
.move-weeks th:first-child, .move-weeks td:first-child { text-align: left; }
.move-list { display: grid; gap: 6px; margin-top: 12px; }
.move-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; }
.move-mini[aria-pressed="true"] { border-color: var(--brand); }
.move-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.move-mini b { font-variant-numeric: tabular-nums; }

/* ============ History ============ */
.champs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.champ { flex: none; min-width: 210px; border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, var(--gold-soft), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.champ small { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.champ strong { display: block; font: 800 17px/1.15 var(--display); text-transform: uppercase; margin-top: 3px; }
.champ span { font-size: 12.5px; color: var(--muted); }
.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.lb th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.lb th button { all: unset; cursor: pointer; padding: 8px 10px; display: block; }
.lb th button:focus-visible { outline: 2px solid var(--brand); }
.lb th[aria-sort] button { color: var(--ink); }
.lb th[aria-sort="descending"] button::after { content: ' ▾'; }
.lb th[aria-sort="ascending"] button::after { content: ' ▴'; }
.lb th:nth-child(-n+2), .lb td:nth-child(-n+2) { text-align: left; }
.lb td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.lb td.place { font: 800 17px/1 var(--display); color: var(--muted); width: 36px; }
.lb tr:nth-child(1) td.place { color: var(--gold); }
.lb .who { display: flex; align-items: center; gap: 10px; }
.lb .who small { display: block; color: var(--muted); font-size: 12px; }
.lb .trophies { letter-spacing: -2px; }
.history-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ============ Matchups ============ */
.week-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.week-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.matchup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.matchup { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); padding: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.matchup:hover { border-color: var(--line-strong); }
.matchup.selected { border-color: var(--ink-2); }
.matchup.toss-up { border: 2px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface-2) 70%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); padding: 13px; }
.matchup-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.matchup-top .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.matchup-top .when { font-size: 12px; color: var(--muted); font-weight: 600; }
.side { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.side-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-score { text-align: right; font-variant-numeric: tabular-nums; }
.side-score b { display: block; font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.side-score small { font-size: 11.5px; color: var(--muted); }
.side.winner .side-score b { color: var(--good); }
.side.loser { opacity: .72; }
.odds { margin-top: 10px; }
.odds-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.odds-bar i { display: block; height: 100%; transition: width .5s ease; }
.odds-bar .a { background: var(--side-a); } .odds-bar .b { background: var(--side-b); }
.odds-labels { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-top: 5px; font-variant-numeric: tabular-nums; }
.odds-labels .a { color: var(--side-a); } .odds-labels .b { color: var(--side-b); }
.odds-labels em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.pregame { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ============ Play-by-play ============ */
.live-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.live-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.pbp-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 14px; min-width: 0; }
.pick { flex: none; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; cursor: pointer; text-align: left; max-width: 250px; }
.pick[aria-selected="true"] { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.pick.toss-up { border-color: var(--gold); }
.pick span { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.sb-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-team.b { flex-direction: row-reverse; text-align: right; }
.sb-team > div { min-width: 0; }
.sb-team strong { display: block; font: 800 16px/1.15 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-team small { color: var(--muted); font-size: 12px; }
.sb-mid { text-align: center; }
.sb-scores { display: flex; align-items: baseline; gap: 12px; font: 800 36px/1 var(--display); font-variant-numeric: tabular-nums; }
.sb-scores .a { color: var(--side-a); } .sb-scores .b { color: var(--side-b); }
.sb-scores em { font-size: 16px; color: var(--muted); font-style: normal; }
.sb-mid small { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.pbp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-top: 14px; align-items: start; }
.lineups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lineup h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-radius: 8px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lineup.a h4 { background: var(--side-a-soft); color: var(--side-a); }
.lineup.b h4 { background: var(--side-b-soft); color: var(--side-b); }
.slot { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.slot-pos { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.slot-name .inj { color: var(--bad); font-weight: 700; font-size: 10.5px; }
.slot-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-game { display: block; font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-game.in { color: var(--live); font-weight: 700; }
.slot-pts { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-pts small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.slot.flash { animation: flash 1.6s ease; }
.feed-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 720px; overflow-y: auto; padding-right: 4px; }
.play { border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.play.a { border-left-color: var(--side-a); } .play.b { border-left-color: var(--side-b); }
.play.both { border-left-color: var(--gold); }
.play.big { background: linear-gradient(90deg, var(--gold-soft), var(--surface-2) 60%); }
.play.fresh { animation: slideIn .5s ease; }
.play-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.play-text { font-size: 13px; margin: 5px 0 7px; color: var(--ink-2); }
.play-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); }
.ptag.a { background: var(--side-a-soft); color: var(--side-a); } .ptag.b { background: var(--side-b-soft); color: var(--side-b); }
.ptag b { font-variant-numeric: tabular-nums; }
.pbp-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ============ Game center ============ */
.pick-group { margin-bottom: 12px; min-width: 0; }
.pick-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pick-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pick-row.wrap { flex-wrap: wrap; overflow: visible; }
.pick-empty { font-size: 13px; color: var(--muted); }
.pick[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.pick.game { min-width: 118px; }
.pick.league { min-width: 220px; }
.pick.league.is-live > span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s infinite; }
.chip-line { display: flex; justify-content: space-between; gap: 14px; margin-top: 2px; }
.chip-line b { font-weight: 600; white-space: nowrap; }
.chip-proj em { font-style: normal; font-weight: 500; color: var(--muted); opacity: .8; margin-right: 4px; }
.chip-score i { font-style: normal; font-weight: 700; }
.sc-g { color: var(--good); } .sc-r { color: var(--bad); } .sc-z { color: var(--muted); }
.pick.game em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 2px; }
.pick.game.is-live small { color: var(--live); font-weight: 700; }
.pick.game.is-final i { font-style: normal; font-weight: 700; }
.pick.game.is-final i.sc-z { color: inherit; }
.game-slots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.game-slot { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; }
.slot-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding-top: 10px; }
.pphoto { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-3); display: inline-grid; place-items: center; border: 1px solid var(--line); }
.pphoto i { font: 800 12px/1 var(--display); font-style: normal; color: var(--muted); visibility: hidden; }
.pphoto.no-img i { visibility: visible; }
.pphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pphoto.team img { object-fit: contain; padding: 3px; background: var(--surface); }
.pphoto.xs { width: 24px; height: 24px; }
.pphoto.xs i { font-size: 9px; }
.pphoto.sm { width: 34px; height: 34px; }
.pphoto.xl { width: 84px; height: 84px; }
.pphoto.xl i { font-size: 26px; }
.linkish { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.linkish:hover { text-decoration-color: currentColor; }
.slot { grid-template-columns: 30px minmax(0, 1fr) auto; }
.slot-who { all: unset; cursor: pointer; display: flex; align-items: center; gap: 7px; min-width: 0; }
.slot-who > span { min-width: 0; }
.slot-who:hover .slot-name { text-decoration: underline; }
.slot-who:focus-visible { outline: 2px solid var(--brand); border-radius: 6px; }
.ptag { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-3); max-width: 100%; }
.ptag:focus-visible { outline: 2px solid var(--brand); }
.ptag.a { background: var(--side-a-soft); color: var(--side-a); }
.ptag.b { background: var(--side-b-soft); color: var(--side-b); }
.ptag.owned { background: var(--gold-soft); }
.ptag-who { display: grid; min-width: 0; line-height: 1.25; }
.ptag-who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptag-who small { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptag b { font-variant-numeric: tabular-nums; margin-left: 2px; }
.play.owned { border-left-color: var(--gold); }
.game-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.gb-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gb-team.home { flex-direction: row-reverse; text-align: right; }
.gb-team img { width: 46px; height: 46px; object-fit: contain; }
.gb-team strong { display: block; font: 800 24px/1 var(--display); }
.gb-team small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.gb-score { font: 800 38px/1 var(--display); font-variant-numeric: tabular-nums; margin: 0 auto 0 12px; }
.gb-team.home .gb-score { margin: 0 12px 0 auto; }
.game-tabs { margin: 14px 0 12px; }
.ov-key { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 4px 0 6px; }
.ov-key span:last-child { text-align: right; }
.ov-key small { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ov-group h5 { font: 800 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--brand); margin: 16px 0 6px; }
.ov-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ov-cell { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.ov-cell:hover { background: var(--surface-2); }
.ov-cell:focus-visible { outline: 2px solid var(--brand); border-radius: 8px; }
.ov-cell.home { flex-direction: row-reverse; text-align: right; }
.ov-cell.empty { cursor: default; }
.ov-who { display: grid; min-width: 0; flex: 1; }
.ov-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-owner { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-cell.owned .ov-owner { color: var(--gold); }
.ov-line { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.ov-pts { display: grid; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.ov-cell.home .ov-pts { text-align: left; }
.ov-pts b { font: 800 17px/1.1 var(--display); }
.ov-pts small { font-size: 11px; color: var(--muted); }

/* ============ Player card ============ */
.player-dialog { padding: 0; width: min(920px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 32px); overflow: hidden; }
.player-dialog #playerBody { padding: 20px; max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; }
.pd-head { display: flex; gap: 16px; align-items: center; position: relative; padding-right: 44px; }
.pd-id h3 { font-size: 24px; text-transform: uppercase; }
.pd-id p { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; }
.pd-pos .pill { margin-right: 4px; }
.pd-bio { color: var(--muted) !important; }
.pd-owner b { color: var(--brand); }
.pd-close { position: absolute; top: 0; right: 0; font-size: 15px; }
.pd-seasons { margin: 16px 0 12px; }
.pd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pd-log { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-log th { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); padding: 6px 7px; text-align: center; border-bottom: 1px solid var(--line-strong); }
.pd-log tr.grp th { border-bottom: 0; padding-bottom: 0; text-transform: uppercase; color: var(--ink-2); }
.pd-log td { padding: 7px; text-align: center; border-bottom: 1px solid var(--line); }
.pd-log td:nth-child(2) { font-weight: 700; }
.pd-log td.fpts { font-weight: 800; background: color-mix(in srgb, var(--brand) 10%, transparent); }
.pd-log td.proj { color: var(--muted); }
.pd-log tr.bye td { color: var(--muted); background: var(--surface-2); }
.pd-log tfoot td { font-weight: 800; border-top: 2px solid var(--line-strong); }

/* ============ Dialog / toast / footer ============ */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8, 12, 10, .5); backdrop-filter: blur(2px); }
dialog h3 { font-size: 20px; text-transform: uppercase; }
dialog p { margin-top: 10px; color: var(--ink-2); }
.info-example { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
dialog form { margin-top: 16px; text-align: right; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .25s ease; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.footer { max-width: 1240px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: 12.5px; text-align: center; }

@keyframes pulse { 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); background: var(--gold-soft); } }
@keyframes flash { 0%, 40% { background: var(--gold-soft); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .panel-grid { grid-template-columns: 1fr; gap: 0; }
  .report { position: static; }
  .pbp-layout { grid-template-columns: 1fr; }
  .rank-stats .hide-md { display: none; }
}
@media (max-width: 760px) {
  .topbar-inner { gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
  .brand { font-size: 16px; }
  .brand-ball { width: 24px; height: 24px; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .tab { flex: 1; justify-content: center; }
  .jump-toggle span { display: none; }
  .hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .panel { padding: 16px 14px; border-radius: 16px; }
  .panel-head h2 { font-size: 20px; }
  .matchup-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 28px minmax(0, 1fr) auto 32px; gap: 8px; padding: 10px; }
  .rank-stats { display: none; }
  .rank-num { font-size: 19px; }
  .rank-power { min-width: 50px; }
  .rank-power b { font-size: 18px; }
  .profile-summary, .move-tiles { grid-template-columns: 1fr; }
  .verdict { text-align: left; }
  .sb-scores { font-size: 30px; gap: 10px; justify-content: center; }
  .scoreboard { padding: 12px; gap: 10px 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sb-team.a { grid-column: 1; grid-row: 1; }
  .sb-team.b { grid-column: 2; grid-row: 1; }
  .sb-mid { grid-column: 1 / -1; grid-row: 2; }
  .sb-team .avatar { width: 32px; height: 32px; }
  .sb-team strong { font-size: 15px; }
  .week-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-summary .mini-tile strong { font-size: 19px; }
  .hero-art { max-width: 420px; justify-self: center; }
  .lineups { grid-template-columns: 1fr; }
  .game-slot { grid-template-columns: 1fr; gap: 4px; }
  .slot-title { padding-top: 0; }
  .game-board { padding: 12px; gap: 6px; }
  .gb-team img { width: 30px; height: 30px; }
  .gb-team strong { font-size: 18px; }
  .gb-score { font-size: 28px; margin-left: 6px; }
  .gb-team.home .gb-score { margin-right: 6px; }
  .ov-row { gap: 4px; }
  .ov-cell { padding: 7px 4px; gap: 6px; }
  .ov-cell .pphoto { display: none; }
  .ov-name { font-size: 13px; }
  .pd-head { gap: 12px; }
  .pphoto.xl { width: 60px; height: 60px; }
  .pd-id h3 { font-size: 19px; }
  .pd-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .player-dialog #playerBody { padding: 14px; }
  html { scroll-padding-top: 118px; }
  .report { top: 0; }
}
