/* Hallmark · checked: 2026-11-21 · genre: modern-minimal · theme: brand · redesign: restyle
 * Fantasee hub pages (Insights, Rankings, Trade, Sit or start, Fantasee-10, Connect, Coming soon): the shared look, on /tokens.css
 * built: the project · redesign: restyle · v2.0.0 */
/* The older names the hub pages use, pointed at the shared tokens. Every page links /tokens.css before this file. */
:root {
  --bg: var(--color-paper); --surface: var(--color-paper-2); --raised: var(--color-paper-3); --sunken: var(--color-sunken);
  --line: var(--color-rule); --line-2: var(--color-rule-2);
  --fg: var(--color-ink); --muted: var(--color-muted); --faint: var(--color-faint);
  --accent: var(--color-gold); --accent-hover: var(--color-gold-2); --accent-fg: var(--color-gold-ink);
  --accent-soft: color-mix(in oklab, var(--color-gold) 12%, transparent);
  --ok: var(--color-up); --ok-soft: color-mix(in oklab, var(--color-up) 12%, transparent);
  --bad: var(--color-down); --bad-soft: color-mix(in oklab, var(--color-down) 13%, transparent);
  --warn: var(--color-warn); --warn-soft: color-mix(in oklab, var(--color-warn) 13%, transparent);
  --radius: var(--radius-panel);
  --font: var(--font-body);
  --display: var(--font-display);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }
html { background: var(--color-paper); }
body { margin: 0; background: transparent; color: var(--color-ink); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--color-gold); }
h1, h2, h3 { line-height: 1.2; margin: 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
@media (min-width: 720px) { .container { padding: 0 var(--space-xl); } }

/* header: the wordmark, the tools, one action */
.top { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--color-rule); }
.top .container { display: flex; align-items: center; gap: var(--space-sm); height: 60px; }
.logo { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); text-decoration: none;
  font-size: var(--text-xl); line-height: 1; border-radius: var(--radius-control); }
.logo:hover .fs-wordmark { color: var(--color-ink-2); }
.nav { display: flex; align-items: center; gap: var(--space-2xs); margin-left: auto; }
.nav a { color: var(--color-muted); text-decoration: none; font-size: var(--text-base); font-weight: 500; padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-control); white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
.nav a[aria-current="page"] { color: var(--color-ink); box-shadow: inset 0 -2px 0 var(--color-forest-2); border-radius: 0; }
.nav a:not(.btn):hover { color: var(--color-ink); }
.nav a:not(.btn):active { color: var(--color-gold); }
.nav .nav-hide { display: none; }
@media (min-width: 1000px) { .nav .nav-hide { display: inline-block; } }

/* sport switcher (kept for pages that still carry it) */
.sports { border-bottom: 1px solid var(--color-rule); background: var(--color-sunken); }
.sports .container { display: flex; gap: var(--space-2xs); height: 40px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.sports a { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-sm); color: var(--color-muted); text-decoration: none;
  font-size: var(--text-sm); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.sports a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-forest-2); }
.sports a:hover { color: var(--color-ink); }
.sports small { font-size: var(--text-xs); font-weight: 500; color: var(--color-faint); }

/* buttons: one filled gold action, the rest outlined */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md);
  border-radius: var(--radius-control); font: 600 var(--text-base)/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
  user-select: none; -webkit-user-select: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; background: var(--color-paper-3); color: var(--color-faint); border-color: var(--color-rule); transform: none; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; }
.btn-primary { background: var(--color-gold); color: var(--color-gold-ink); }
.btn-primary:hover { background: var(--color-gold-2); }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn-ghost:hover { border-color: var(--color-muted); background: var(--color-paper-3); }
.btn-sm { min-height: 36px; padding: 0 var(--space-sm); font-size: var(--text-sm); }
.nav .btn { color: var(--color-gold-ink); margin-left: var(--space-2xs); }
.nav .btn[aria-current="page"] { color: var(--color-gold-ink); box-shadow: none; border-radius: var(--radius-control); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-xs); border-radius: var(--radius-bar); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.badge-live { color: var(--color-up); border: 1px solid color-mix(in oklab, var(--color-up) 40%, transparent); }
.badge-soon { background: transparent; color: var(--color-faint); border: 1px solid var(--color-rule-2); }

/* footer */
.foot { border-top: 1px solid var(--color-rule); margin-top: var(--space-3xl); padding: var(--space-lg) 0 var(--space-xl); color: var(--color-faint); font-size: var(--text-sm); }
.foot .container { display: grid; gap: var(--space-xs); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.foot nav a { color: var(--color-muted); text-decoration: none; border-radius: var(--radius-control); }
.foot nav a:hover { color: var(--color-ink); }
.foot p { margin: 0; max-width: 680px; }

/* boards: ranked player lists with tabs (home page and Insights) */
.boards { display: grid; gap: var(--space-lg); }
@media (min-width: 960px) { .boards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.board { background: var(--raise-fill), var(--color-paper-2); box-shadow: var(--raise-shadow); border: 1px solid var(--color-rule); border-radius: var(--radius-panel); padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.board h3 { font-size: var(--text-md); font-weight: 600; display: flex; align-items: center; gap: var(--space-xs);
  padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.board h3 svg { width: 18px; height: 18px; stroke: var(--color-muted); flex: 0 0 auto; }
.board h3 small { margin-left: auto; font-size: var(--text-xs); font-weight: 500; color: var(--color-faint); }
.tabs { display: flex; gap: var(--space-2xs); background: var(--color-sunken); border: 1px solid var(--color-rule); border-radius: var(--radius-control); padding: 3px; }
.tabs button { flex: 1; font: 600 var(--text-sm)/1 var(--font-body); color: var(--color-muted); background: none; border: 0; border-radius: var(--radius-bar);
  min-height: 34px; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.tabs button:hover { color: var(--color-ink); }
.tabs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.tabs button[aria-selected="true"] { background: var(--color-select); color: var(--color-ink); box-shadow: inset 0 -2px 0 var(--color-forest-2); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding: var(--space-xs) 2px;
  border-top: 1px solid var(--color-rule); min-height: 52px; }
.rows li:first-child { border-top: 0; }
.rows .n { color: var(--color-faint); font-size: var(--text-sm); font-variant-numeric: tabular-nums; text-align: right; }
.rows .who { min-width: 0; }
.rows .who b { display: block; font-weight: 600; font-size: var(--text-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .who span { font-size: var(--text-sm); color: var(--color-muted); }
.rows .v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.rows .v small { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--color-faint); }
.rows .up { color: var(--color-up); } .rows .down { color: var(--color-down); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--space-xs); border-radius: var(--radius-bar); font-size: var(--text-xs); font-weight: 700; }
.chip-Out, .chip-IR, .chip-PUP { background: var(--bad-soft); color: var(--color-down); }
.chip-Doubtful { background: var(--warn-soft); color: var(--color-warn); }
.chip-Questionable { background: var(--accent-soft); color: var(--color-gold); }
.tag { margin-left: 6px; vertical-align: 1px; }
.more { font: 600 var(--text-sm)/1 var(--font-body); color: var(--color-gold); background: none; border: 0; padding: var(--space-xs) 2px 0; cursor: pointer;
  align-self: flex-start; margin-top: auto; text-decoration: none; border-radius: var(--radius-control); }
.more:hover { color: var(--color-gold-2); }
.skel { height: 14px; border-radius: var(--radius-bar); background: linear-gradient(90deg, var(--color-rule) 0 40%, var(--color-rule-2) 50%, var(--color-rule) 60% 100%);
  background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.board .err { display: block; color: var(--color-muted); font-size: var(--text-base); margin: 0; }
.source { color: var(--color-faint); font-size: var(--text-sm); margin: var(--space-sm) 2px 0; }
@media (min-width: 760px) { .boards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* call to action between sections */
.nudge { margin-top: var(--space-2xl); display: grid; gap: var(--space-sm); align-items: center; background: var(--color-paper-2);
  border: 1px solid var(--color-rule-2); border-radius: var(--radius-panel); padding: var(--space-lg); }
.nudge h2, .nudge h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); }
.nudge p { margin: var(--space-2xs) 0 0; color: var(--color-muted); }
@media (min-width: 760px) { .nudge { grid-template-columns: minmax(0, 1fr) auto; padding: var(--space-lg) var(--space-xl); } }

/* section headings */
section { scroll-margin-top: 76px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-sm); margin: var(--space-2xl) 0 var(--space-md); flex-wrap: wrap; }
.sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); }
.sec-head p { margin: var(--space-2xs) 0 0; color: var(--color-muted); font-size: var(--text-md); }

@media (max-width: 400px) { .xs-hide { display: none; } .logo { font-size: var(--text-lg); } }

/* player photos */
.face { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--color-paper-3); border: 1px solid var(--color-rule-2); color: var(--color-muted); font: 600 var(--text-xs)/1 var(--font-body); }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity var(--dur-short) ease; }
.face.has-img { color: transparent; }
.face.has-img img { opacity: 1; }
.face.lg { width: 56px; height: 56px; font-size: var(--text-base); }

/* Fantasee-10: a gold dot on the menu link until this week's questions are picked */
.nav a.dot::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--color-gold); vertical-align: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* glass on the hub pages: the shared wash behind the page, frosted cards on top */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--backdrop); }
.board, .nudge { background: var(--glass-card); border-color: var(--glass-edge); box-shadow: var(--glass-shadow); }
