/* KiDd Clan design system. Same structure as Pulpa Madre OS and ChelaMix OS (sticky header with Menu / centered
 * wordmark / icons, full-screen numbered menu, hero band, footer band, bordered work surfaces).
 *
 * Brand palette (the only brand hex values; everything else reads semantic tokens):
 *   Obsidian #0A0A0A primary background · Blood Red #D62828 signature accent · Bone #F5F3EE type and light surfaces
 *   Carbon #1C1C1C cards and elevated surfaces · Ash #969696 secondary type
 * Roughly 90% neutral, 10% red. Red marks what matters: primary actions, the current page, focus, your score.
 * Contrast: Bone on Obsidian 17.9:1, on Carbon 15.4:1. Ash on Obsidian 6.7:1, on Carbon 5.8:1. Bone on Red 4.5:1.
 * Red on Obsidian is 3.95:1: fine for large type, buttons, borders and icons, never for small text (small "bad" data
 * uses --data-bad, a lighter red, 5.6:1 on Carbon).
 *
 * Data colors are functional, not brand: good (green), caution (amber), warn (orange), bad (red tint). They mark
 * fantasy states (beat projection, injury, matchup tier) and stay separate from the brand accent.
 * Typography: the Gothic KiDd lettering exists only as the logo SVG. Bebas Neue for generic display labels and
 * numbers; Barlow for everything functional. Names (KiDd Clan, teams, players) never get uppercased: use .proper. */

:root {
  --brand-black: #0A0A0A;
  --brand-red: #D62828;
  --brand-white: #F5F3EE;
  --brand-carbon: #1C1C1C;
  --brand-gray: #969696;
  /* Pop color (owner's call, 2026-10-19): gold for highlight moments, next to the red. */
  --brand-gold: #F5B700;

  /* Surfaces */
  --app-bg: var(--brand-black);
  --surface: var(--brand-carbon);
  --surface-2: color-mix(in srgb, var(--brand-carbon) 90%, var(--brand-white));
  --surface-3: color-mix(in srgb, var(--brand-carbon) 82%, var(--brand-white));
  --surface-inverse: var(--brand-white);

  /* Text */
  --text: var(--brand-white);
  --text-muted: var(--brand-gray);
  --text-inverse: var(--brand-black);
  --text-disabled: color-mix(in srgb, var(--brand-gray) 55%, transparent);

  /* Interaction */
  --action: var(--brand-red);
  --action-text: var(--brand-white);
  --action-hover: color-mix(in srgb, var(--brand-red) 82%, var(--brand-black));
  /* Red for small text on dark (Blood Red itself is too faint below ~18px). */
  --action-soft: #EC6B66;
  --accent: var(--brand-gold);
  --hover: color-mix(in srgb, var(--brand-white) 7%, transparent);
  --focus: var(--brand-red);
  --focus-halo: color-mix(in srgb, var(--brand-red) 40%, transparent);
  --danger: var(--data-bad);
  --border: color-mix(in srgb, var(--brand-white) 10%, transparent);
  --border-strong: color-mix(in srgb, var(--brand-white) 24%, transparent);

  /* Data (functional, not brand) */
  --data-good: #7CC98B;
  --data-caution: #E0A93B;
  --data-warn: #E08A4A;
  --data-bad: #EC6B66;
  /* Volatility tags: steady (sky) vs wild (amber), neither good nor bad. */
  --data-steady: #7DD3FC;
  --up: var(--data-good);
  --down: var(--data-bad);

  /* AI identity dots (tiny, low-chroma) */
  --actor-global: var(--brand-white);
  --actor-human: var(--brand-red);
  --actor-system: color-mix(in srgb, var(--brand-gray) 60%, var(--brand-black));
  --actor-lilac: #B7A9E8;
  --actor-pink: #E8A9C4;
  --actor-zest: var(--data-caution);
  --actor-gold: var(--data-warn);
  --actor-lime: var(--data-good);

  /* Position chips */
  --pos-qb: #F9A8D4;
  --pos-rb: #EC6B66;
  --pos-wr: #7DD3FC;
  --pos-te: #FBBF24;
  --pos-flex: #C4B5FD;
  --pos-k: #D8B4FE;
  --pos-def: #FB923C;

  --font-display: "Bebas Neue", Impact, system-ui, sans-serif;
  --font-ui: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --heading-sm: 1.5rem;
  --heading-md: 2rem;
  --heading-lg: 2.75rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-pill: 99px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --gutter: var(--space-5);
  --page-max: 1140px;
  --header-height: 96px;
  --shadow-pop: 0 10px 30px rgb(0 0 0 / 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

.a-global { --actor: var(--actor-global); }
.a-human { --actor: var(--actor-human); }
.a-system { --actor: var(--actor-system); }
.a-lilac { --actor: var(--actor-lilac); }
.a-pink { --actor: var(--actor-pink); }
.a-zest { --actor: var(--actor-zest); }
.a-gold { --actor: var(--actor-gold); }
.a-lime { --actor: var(--actor-lime); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--app-bg); color: var(--text); font: 400 var(--text-base)/1.5 var(--font-ui); overflow-x: hidden; }
main { max-width: var(--page-max); margin: 0 auto; padding: var(--space-6) var(--gutter) 48px; }
img { max-width: 100%; }
h1, h2, h3, .display, details.acc > summary { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; line-height: 0.95; text-transform: uppercase; }
h1 { font-size: var(--heading-lg); margin: 0 0 var(--space-3); }
h2 { font-size: var(--heading-sm); margin: 0 0 var(--space-3); }
h3 { font-size: var(--text-lg); margin: var(--space-5) 0 var(--space-2); color: var(--text-muted); }
h1 .meta, h2 .meta, h3 .meta { font: 400 var(--text-sm)/1.4 var(--font-ui); text-transform: none; letter-spacing: 0; color: var(--text-muted); margin-left: var(--space-1); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--action); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: var(--radius-sm); word-break: break-all; font-family: var(--font-mono); font-size: 0.88em; }
::selection { background: color-mix(in srgb, var(--brand-red) 45%, transparent); color: var(--brand-white); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--text-muted); }
.small { font-size: var(--text-sm); }
.center { text-align: center; }
.meta { color: var(--text-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.count { color: var(--text-muted); font: 400 var(--text-sm) var(--font-ui); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.kicker { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action-soft); margin-bottom: var(--space-2); }
/* Names keep their real capitalization (KiDd Clan, team and player names): UI face, no uppercase. */
.proper { font-family: var(--font-ui); text-transform: none; letter-spacing: -0.01em; }
h1.proper, h2.proper { font-weight: 800; line-height: 1.05; }
.kicker .proper { font-family: inherit; letter-spacing: 0.04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Wordmark: the owner's KiDd mark (inline SVG, chalk) with "Clan" in turf teal beside it. Sized by font-size. */
.wordmark { display: inline-flex; align-items: center; gap: 0.28em; font-size: 2rem; line-height: 1; color: var(--text); white-space: nowrap; }
.wm-svg { display: block; height: 1.5em; width: auto; }
/* The badge beside the wordmark: CLAN everywhere, APP in the app's header, both red. Sized from the wordmark. */
.wm-badge { font: 400 0.5em/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.4em 0.2em; border-radius: var(--radius-sm); }
.wm-badge--clan { background: var(--brand-red); color: var(--brand-white); }
.wm-badge--app { background: var(--brand-red); color: var(--brand-white); }
.wordmark--hero .wm-badge { font-size: 0.4em; }
.wordmark--header { font-size: 2.1rem; transition: font-size 0.4s ease; }
.wordmark--menu { font-size: clamp(3rem, 7vw, 5rem); }
.wordmark--footer { font-size: 1.8rem; }
.wordmark--login { font-size: 3rem; }
.wordmark--hero { font-size: clamp(3.2rem, 11vw, 7rem); }
.hero-mark { margin: var(--space-2) 0 0; line-height: 1; }
.hero-tag { margin: var(--space-4) 0 var(--space-4); font: 400 var(--heading-md)/1 var(--font-display); letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }

/* Header: sticky night bar, 3-zone grid with the wordmark dead center; shrinks once scrolled (app.js adds .scrolled). */
.top {
  position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4);
  height: var(--header-height); padding: 0 max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter)));
  background: var(--app-bg); border-bottom: 1px solid var(--border);
  transition: height 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.top.scrolled { height: calc(var(--header-height) - 22px); box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); }
.top.scrolled .wordmark--header { font-size: 1.7rem; }
.top--over { background: transparent; border-bottom-color: transparent; }
.top--over.scrolled { background: color-mix(in srgb, var(--brand-black) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.top-left, .top-right { display: flex; align-items: center; gap: var(--space-2); }
.top-right { justify-content: flex-end; }
.top-right form { margin: 0; }
.brand { position: relative; display: inline-flex; align-items: center; text-decoration: none; }
.icon { display: block; width: 22px; height: 22px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text); cursor: pointer; transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: var(--hover); }
.icon-btn[aria-current="page"] { color: var(--action); background: var(--hover); }
.signin-chip, .account-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--text-sm);
}
.signin-chip { padding-left: 12px; border-color: var(--action); }
.signin-chip .icon { color: var(--action); }
.signin-chip:hover, .account-chip:hover { background: var(--hover); border-color: var(--action); }
.account-chip img { width: 28px; height: 28px; border-radius: 50%; }
.account-chip .icon { width: 26px; height: 26px; }
.hamburger { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.hamburger:hover { background: none; }
.hamburger-lines { position: relative; flex: none; width: 32px; height: 17px; }
.hamburger-lines span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.hamburger-lines span:nth-child(1) { top: 2px; }
.hamburger-lines span:nth-child(2) { top: 7.5px; width: 70%; }
.hamburger-lines span:nth-child(3) { top: 13px; width: 40%; }
.hamburger:hover .hamburger-lines span { width: 100%; }
.hamburger-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.top.scrolled .hamburger-lines span { background: var(--action); }

/* Menu overlay: full screen, a circle wipe out of the hamburger, numbered links left, the wordmark right. */
.menu {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 1.2fr 0.8fr;
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter)));
  background: radial-gradient(1100px 800px at 10% 10%, color-mix(in srgb, var(--brand-red) 30%, var(--brand-black)), var(--brand-black) 70%);
  color: var(--text); overflow-y: auto;
  clip-path: circle(0% at var(--burger-cx, 56px) var(--burger-cy, 48px)); visibility: hidden;
  transition: clip-path 0.8s cubic-bezier(0.65, 0.05, 0.36, 1), visibility 0s linear 0.8s;
}
.menu.open { clip-path: circle(150% at var(--burger-cx, 56px) var(--burger-cy, 48px)); visibility: visible; transition: clip-path 0.8s cubic-bezier(0.65, 0.05, 0.36, 1), visibility 0s; }
.menu-close { position: absolute; top: var(--burger-y, 26px); left: var(--burger-x, var(--gutter)); z-index: 2; display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.menu-close:hover { background: none; color: var(--accent); }
.menu-close-x { position: relative; flex: none; width: 32px; height: 17px; }
.menu-close-x::before, .menu-close-x::after { content: ""; position: absolute; top: calc(50% - 1px); left: 4px; width: 24px; height: 2px; background: var(--accent); }
.menu-close-x::before { transform: rotate(45deg); }
.menu-close-x::after { transform: rotate(-45deg); }
.menu-main { align-self: center; padding: 110px var(--space-6) 60px 0; }
.menu-group { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.menu-list { display: flex; flex-direction: column; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: inline-flex; align-items: baseline; width: max-content; max-width: 100%;
  font: 400 clamp(2rem, 7vw, 3.6rem)/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); text-decoration: none;
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease, color 0.3s ease;
}
.menu-list--small a { font-size: clamp(1.4rem, 4vw, 2.2rem); }
.menu.open .menu-list a { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--i, 0) * 0.06s); }
.menu.open .menu-list a:hover { color: var(--action); transform: translateX(14px); transition-delay: 0s; }
.menu-list a[aria-current="page"] { color: var(--action); }
.menu-num { font: 700 0.7rem/1 var(--font-ui); letter-spacing: 0.2em; color: var(--accent); vertical-align: super; margin-right: 0.6em; }
.menu-aside { display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: 60px 0 60px clamp(30px, 5vw, 64px); border-left: 1px solid var(--border); }
.menu-tag { margin: 0; font: 400 var(--heading-sm)/1 var(--font-display); letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }
@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; align-content: start; }
  .menu-main { padding: 96px 0 24px; }
  .menu-aside { border-left: 0; border-top: 1px solid var(--border); padding: 32px 0 48px; }
}
@media (prefers-reduced-motion: reduce) { .menu, .menu.open, .menu-list a { transition: none; } }

/* Hero bands: full-bleed, night-field gradient with faint yard lines; the header floats over them. */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  margin-top: calc(-1 * var(--header-height)); padding: calc(var(--header-height) + var(--space-6)) max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter))) 72px;
  background:
    radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--brand-red) 32%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-red) 45%, var(--brand-black)) -40%, var(--brand-black) 85%);
  text-align: center;
}
.hero--landing { min-height: 92svh; }
.hero--score { min-height: min(88svh, 760px); }
.hero--app { min-height: 0; padding-bottom: 56px; }
.field-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.07;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--brand-white) calc(10% - 1px) 10%);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 40%, transparent); mask-image: linear-gradient(180deg, transparent, black 40%, transparent);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: calc(var(--page-max) - 2 * var(--gutter)); }
.hero h1 { font-size: clamp(3rem, 9vw, 6.5rem); margin: 0 0 var(--space-4); }
.hero-body { max-width: 60ch; margin: 0 auto; font-size: var(--text-lg); color: color-mix(in srgb, var(--brand-white) 82%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }
.muted-on-hero { color: var(--text-muted); }

/* Scoreboard hero (website home) */
.scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-4); margin: var(--space-4) auto 0; max-width: 860px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.sb-name { margin: 6px 0 0; font: 700 var(--text-lg)/1.2 var(--font-ui); overflow-wrap: anywhere; }
.sb-record { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.sb-score { margin: var(--space-2) 0 0; font: 400 clamp(4rem, 13vw, 8rem)/0.85 var(--font-display); color: var(--action); font-variant-numeric: tabular-nums; }
.sb-team--opp .sb-score { color: var(--text); }
.sb-proj { margin: 0; color: var(--text-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.sb-vs { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--border-strong); font: 400 var(--text-lg)/1 var(--font-display); color: var(--text-muted); letter-spacing: 0.06em; }
.sb-line { margin: var(--space-5) 0 0; font: 400 var(--heading-sm)/1 var(--font-display); letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }

/* Buttons and forms */
input, select, textarea, button, .button { font: inherit; font-size: var(--text-base); color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px; }
textarea { width: 100%; resize: vertical; font-family: var(--font-mono); font-size: var(--text-sm); }
/* Dropdowns draw their own chevron (in the text color token) with room after it; the native arrow sits flush. */
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
input[type=checkbox], input[type=radio] { accent-color: var(--action); width: 18px; height: 18px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--action); color: var(--action-text); border-color: var(--action); font-weight: 700; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button .icon, button .icon { width: 18px; height: 18px; }
.button.big { padding: 14px 26px; font-size: var(--text-lg); border-radius: var(--radius-pill); }
.button.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); padding: 10px 18px; }
.button.ghost:hover { background: var(--hover); border-color: var(--action); }
button.secondary, .button.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--hover); border-color: var(--action); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button.danger:hover { background: var(--danger); color: var(--text-inverse); }
button.small, .button.small { padding: 4px 10px; font-size: var(--text-sm); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack label { display: flex; flex-direction: column; gap: var(--space-1); font-weight: 600; font-size: var(--text-sm); }
label small { color: var(--text-muted); font-weight: 400; font-size: var(--text-xs); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; }
.row label { display: flex; flex-direction: column; gap: var(--space-1); }
.row label.grow { flex: 1 1 240px; }
label.check { flex-direction: row; align-items: center; gap: var(--space-2); padding-bottom: 10px; }
.narrow { max-width: 460px; }
.inline { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.inline input { flex: 1 1 200px; }
.actions { display: flex; gap: var(--space-4); align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3); margin-bottom: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.filters input[type=search] { flex: 1 1 220px; min-width: 0; }

/* Surfaces */
.panel, section.panel, details.acc, form.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-4); }
.center-panel { margin: 10vh auto 0; text-align: center; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.section-head h2 { margin: 0; }
.section-title { margin: var(--space-6) 0 var(--space-3); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-3); }
.page-head h1 { margin: 0; overflow-wrap: anywhere; }
.footnote { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-xs); line-height: 1.6; color: var(--text-muted); }
.error, .notice, .hint { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--action); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); margin: 0 0 var(--space-4); }
.error { border-left-color: var(--danger); color: var(--data-bad); font-weight: 600; }
.notice { border-left-color: var(--data-good); }
.hint { border-left-color: var(--accent); }
.secret { background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); }
.secret code { display: block; margin: 6px 0 10px; padding: var(--space-2); background: var(--app-bg); }
.secret code.recovery-codes { white-space: pre; font-size: var(--text-base); line-height: 1.6; columns: 2; max-width: 320px; }

/* Freshness line on every data page */
.freshness { margin: 0 0 var(--space-4); font-size: var(--text-xs); line-height: 1.6; color: var(--text-muted); }
.freshness-note { display: block; opacity: 0.85; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--data-good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--data-good) 25%, transparent); }

/* Week picker */
.week-picker { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
/* Prev, week and next stay together; "This week" can wrap above them on a phone. */
.week-steps { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.week-picker select { min-height: 44px; background-color: var(--surface); border-radius: var(--radius-pill); padding-left: 18px; }
.week-step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.week-step:hover { background: var(--hover); border-color: var(--action); }
.week-step.off { opacity: 0.3; }
.week-now {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--action); color: var(--text); font-size: var(--text-sm); font-weight: 700; text-decoration: none;
  background: color-mix(in srgb, var(--brand-red) 14%, transparent);
}
.week-now:hover { background: color-mix(in srgb, var(--brand-red) 26%, transparent); }
.week-now svg { width: 18px; height: 18px; }

/* Badges */
.badge { display: inline-flex; align-items: center; font-size: var(--text-xs); font-weight: 600; line-height: 1.6; padding: 0 8px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); color: var(--text-muted); vertical-align: middle; white-space: nowrap; }
.injury { border: 0; }
.injury--q { background: color-mix(in srgb, var(--data-caution) 18%, transparent); color: var(--data-caution); }
.injury--d { background: color-mix(in srgb, var(--data-warn) 18%, transparent); color: var(--data-warn); }
.injury--o { background: color-mix(in srgb, var(--data-bad) 18%, transparent); color: var(--data-bad); }
.injury--x { background: var(--surface-3); color: var(--text); }
.tier { border: 0; }
.tier--k { background: color-mix(in srgb, var(--data-bad) 18%, transparent); color: var(--data-bad); }
.tier--t { background: color-mix(in srgb, var(--data-warn) 16%, transparent); color: var(--data-warn); }
.tier--n { background: var(--surface-3); color: var(--text-muted); }
.tier--l { background: color-mix(in srgb, var(--data-good) 12%, transparent); color: var(--data-good); }
.tier--e { background: color-mix(in srgb, var(--data-good) 24%, transparent); color: color-mix(in srgb, var(--data-good) 70%, var(--brand-white)); }
.bye { background: var(--surface-3); color: var(--text); border: 0; }
.low-sample { border-style: dashed; }
.matchup, .lineup-dvp { display: inline-flex; align-items: center; gap: 4px; }
.lineup-dvp { margin-top: 2px; }
.trend { font-size: var(--text-xs); font-weight: 600; }
.trend.up { color: var(--up); }
.trend.down { color: var(--down); }
.badge.blocker { background: var(--danger); border-color: var(--danger); color: var(--text-inverse); }
.badge.week { background: var(--accent); border-color: var(--accent); color: var(--text-inverse); }
.s-open { background: color-mix(in srgb, var(--data-caution) 18%, transparent); border-color: transparent; color: var(--data-caution); }
.s-archived, .s-superseded { text-decoration: line-through; }

/* Slot chips: one color per position */
.slot { display: inline-grid; place-items: center; flex: none; width: 46px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-3); font: 700 0.68rem/1 var(--font-ui); letter-spacing: 0.04em; color: var(--text-muted); }
.slot--qb { color: var(--pos-qb); }
.slot--rb { color: var(--pos-rb); }
.slot--wr { color: var(--pos-wr); }
.slot--te { color: var(--pos-te); }
.slot--flex, .slot--superflex, .slot--recflex, .slot--wrrbflex { color: var(--pos-flex); }
.slot--k { color: var(--pos-k); }
.slot--def { color: var(--pos-def); }

/* Player rows (My team, Waivers) */
.prows { list-style: none; margin: 0; padding: 0; }
ul.prows.panel { padding: 0 var(--space-5); }
.prow { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: start; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.prow:last-child { border-bottom: 0; }
.prow-name { margin: 0; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.prow-sub { margin: 2px 0 0; font-size: var(--text-xs); color: var(--text-muted); }
.section-note { margin: 0 0 var(--space-3); color: var(--text-muted); font-size: var(--text-sm); }
.prow-badges { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: var(--space-2); }
.prow-nums { display: flex; gap: var(--space-5); text-align: right; font-variant-numeric: tabular-nums; }
.prow-nums > div { display: flex; flex-direction: column; align-items: flex-end; min-width: 52px; }
.num-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.num { font: 400 1.9rem/1 var(--font-display); letter-spacing: 0.02em; }
.muted-num { color: var(--text-muted); }
.num-avg { font-size: var(--text-xs); color: var(--text-muted); }
.up { color: var(--up) !important; }
.down { color: var(--data-bad) !important; }
.roster-section { padding-bottom: var(--space-2); }
.list-head { display: flex; justify-content: space-between; margin: var(--space-3) 0; font-size: var(--text-xs); color: var(--text-muted); }

/* Position chips (Waivers) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-2); }
.chip { display: inline-grid; place-items: center; min-width: 52px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-weight: 700; font-size: var(--text-sm); text-decoration: none; }
.chip:hover { border-color: var(--action); color: var(--text); }
.chip[aria-current="true"] { background: var(--action); border-color: var(--action); color: var(--action-text); }

/* Matchups */
.my-matchup .mm-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius); background: var(--surface-2); }
.mm-team { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mm-team--opp { align-items: flex-end; text-align: right; }
.mm-name { margin: 6px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.mm-pts { margin: 4px 0 0; font: 400 3.2rem/0.9 var(--font-display); color: var(--action); font-variant-numeric: tabular-nums; }
.mm-team--opp .mm-pts { color: var(--text); }
.mm-proj { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.mm-line { margin: var(--space-3) 0 0; text-align: center; font: 400 var(--text-lg)/1 var(--font-display); letter-spacing: 0.04em; color: var(--accent); }
.lineups { margin-top: var(--space-4); }
.lineups h3 { margin: var(--space-4) 0 0; }
.lineups-head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-xs); color: var(--text-muted); }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); align-items: start; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.lrow .slot { height: 34px; }
.lc { display: flex; gap: var(--space-2); min-width: 0; }
.lc--m { flex-direction: row-reverse; text-align: right; }
.lc--empty { color: var(--text-muted); font-size: var(--text-sm); }
.lc-main { flex: 1; min-width: 0; }
.lc-name { display: block; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.lc-sub { display: block; font-size: var(--text-xs); color: var(--text-muted); }
.lc-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lc--m .lc-badges { justify-content: flex-end; }
.lc-nums { display: flex; flex-direction: column; flex: none; font-variant-numeric: tabular-nums; }
.lc-nums strong { font: 400 1.5rem/1 var(--font-display); }
.lc-nums span { font-size: var(--text-xs); color: var(--text-muted); }
.lc:not(.lc--m) .lc-nums { align-items: flex-end; }
details.matchup-row { padding: var(--space-3) var(--space-4); }
details.matchup-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-3); cursor: pointer; list-style: none; }
details.matchup-row > summary::-webkit-details-marker { display: none; }
.mr-team { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.mr-team--r { justify-content: flex-end; text-align: right; }
.mr-team > span { min-width: 0; display: flex; flex-direction: column; }
.mr-team--r > span { align-items: flex-end; }
.mr-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-score { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.mr-score > span:not(.mr-dash) { display: flex; flex-direction: column; align-items: center; }
.mr-score strong { font: 400 1.5rem/1 var(--font-display); }
.mr-score small { font-size: 0.65rem; color: var(--text-muted); }

.avatar { flex: none; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.avatar--none { display: inline-block; }

/* League */
.table-panel { padding: 0; overflow-x: auto; overscroll-behavior-x: contain; } /* wide tables scroll inside the panel on phones */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); background: var(--surface-2); }
td form { margin: 0; }
.standings td:nth-child(n+3), .standings th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.standings tr.me td { background: color-mix(in srgb, var(--brand-red) 8%, transparent); }
.standings tr.me td:first-child { box-shadow: inset 3px 0 0 var(--action); }
.team-cell { display: inline-flex; align-items: center; gap: var(--space-2); }
details.roster-details > summary, details.dvp-pos > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); cursor: pointer; }
.srows { list-style: none; margin: 0; padding: 0; }
.srow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.srow .slot { width: 40px; height: 28px; }
.srow-name { font-weight: 600; }
.srow-sub { font-size: var(--text-xs); color: var(--text-muted); flex: 1; }
.show-sm { display: none; }

/* Trades */
.trade-meta { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-3); font-size: var(--text-xs); color: var(--text-muted); }
.trade-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.trade-sides h3 { margin: 0 0 var(--space-1); }
.got { margin: 0; color: var(--up); }
.gave { margin: 0; color: var(--text-muted); }

/* Landing */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); }
.feature h2 { color: var(--action); }
.feature { transition: border-color 0.2s var(--ease); }
.feature:hover { border-color: var(--border-strong); }
.feature p { margin: 0; color: var(--text-muted); }

/* Login */
section.login { margin: 12vh auto 0; text-align: left; }
.login-brand { display: flex; justify-content: center; margin-bottom: var(--space-3); text-decoration: none; }
body.area-bare main { padding-top: var(--space-6); }

/* App: hero with Sleeper account and AI tiles */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-6); text-align: left; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.agent-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3); }
.agent-tile { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: 14px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius); color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--brand-black) 40%, transparent); }
.agent-tile:hover { border-color: var(--action); z-index: 5; }
.agent-tile--add { justify-content: center; border-style: dashed; color: var(--action-soft); }
.agent-tile--add .icon { color: var(--action); }
.agent-logo { display: block; flex: none; width: 30px; height: 30px; color: var(--text); }
.agent-logo--none { display: grid; place-items: center; border-radius: 50%; background: var(--actor); color: var(--text-inverse); font: 400 var(--text-base)/1 var(--font-display); }
.status-dot { flex: none; width: 12px; height: 12px; margin-left: auto; border-radius: 50%; }
.status-dot.on { background: var(--data-good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--data-good) 28%, transparent); }
.status-dot.off { border: 2.5px solid var(--text-muted); }
.agent-tile .meta { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; width: max-content; max-width: min(320px, 80vw); background: var(--surface-3); color: var(--text); border-radius: var(--radius-sm); padding: 6px 10px; box-shadow: var(--shadow-pop); font-size: var(--text-xs); line-height: 1.45; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s, visibility 0s linear 0.15s; }
.agent-tile:hover .meta, .agent-tile:focus-visible .meta { opacity: 1; visibility: visible; transition: opacity 0.15s 0.4s, visibility 0s 0.4s; }


/* App home: this week, per league (loaded after the page by app.js). */
.week-cards { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.week-cards--several { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.week-card { margin: 0; min-height: 180px; }
.wk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.wk-head h2 { margin: var(--space-1) 0 0; font-size: var(--heading-sm); }
.wk-open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: var(--text-sm); white-space: nowrap; }
.wk-open .icon { width: 16px; height: 16px; }
.wk-match { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.wk-team { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.wk-team > div { min-width: 0; display: flex; flex-direction: column; }
.wk-team strong.proper { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-team .meta { margin: 0; }
.wk-score { margin-left: auto; font: 400 1.9rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.wk-team:first-child .wk-score { color: var(--action-soft); }
.wk-line { margin: var(--space-4) 0 0; color: var(--text-muted); }
.wk-line strong { color: var(--text); font-variant-numeric: tabular-nums; }
.wk-line > strong:first-child { color: var(--accent); }
.wk-season { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-6); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.wk-stat strong { display: block; font: 400 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.wk-spark { margin-left: auto; }
.wk-spark .meta { margin: 4px 0 0; max-width: 22ch; }
.spark { display: block; margin-top: 4px; overflow: visible; }
.spark-base { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.spark-line { fill: none; stroke: var(--action-soft); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--action-soft); stroke: var(--surface); stroke-width: 2; }
.spark-hit { fill: transparent; cursor: default; }
.wk-timeline { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--border); display: grid; gap: var(--space-2); }
.wk-timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--space-3); align-items: baseline; }
.wk-when { color: var(--action-soft); font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.wk-what .meta { margin-left: 4px; }
@media (max-width: 560px) {
  .wk-match { grid-template-columns: 1fr; }
  .wk-spark { margin-left: 0; flex-basis: 100%; }
  .wk-timeline li { grid-template-columns: 6.5rem 1fr; }
}

/* App home: the latest briefing from the login's AI, and recent activity. */
.briefing { margin-top: var(--space-4); border-left: 3px solid var(--action); }
.briefing .kicker { color: var(--action-soft); }
.briefing-title { margin: var(--space-2) 0 var(--space-1); font: 700 var(--heading-sm)/1.2 var(--font-ui); text-transform: none; letter-spacing: 0; color: var(--text); }
.briefing-body { margin-top: var(--space-3); max-width: 72ch; }
.briefing-body p, .briefing-body ul, .briefing-body ol { margin: 0 0 var(--space-3); }
.briefing-body ul, .briefing-body ol { padding-left: 1.3em; }
.briefing-body li + li { margin-top: 4px; }
.briefing-body h4 { margin: var(--space-4) 0 var(--space-2); font: 700 var(--text-sm)/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.briefing-earlier { margin-top: var(--space-4); border-top: 1px solid var(--border); padding-top: var(--space-3); }
.briefing-earlier h3 { margin: 0 0 var(--space-2); font-size: var(--text-base); }
.briefing-earlier details { padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.briefing-earlier summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); }
.activity h2 { margin: 0 0 var(--space-3); font-size: var(--heading-sm); }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.activity-list li:first-child { border-top: 0; padding-top: 0; }
.activity-list a { font-weight: 600; color: var(--text); text-decoration: none; }
.activity-list a:hover { text-decoration: underline; }
.activity-list .meta { margin: 2px 0 0; }
.activity-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2, color-mix(in srgb, var(--text) 8%, transparent)); color: var(--text-muted); }
.activity-icon .icon { width: 16px; height: 16px; }

/* App home: next steps. One action per card; done cards go quiet. */
.next-steps { margin: var(--space-6) 0 var(--space-5); }
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--space-3); }
.step-card { display: flex; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-card[hidden] { display: none; }
.step-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--action) 18%, transparent); color: var(--action-soft); }
.step-icon .icon { width: 20px; height: 20px; }
.step-body { min-width: 0; display: flex; flex-direction: column; }
.step-body h3 { margin: 0 0 var(--space-1); color: var(--text); font: 700 var(--text-base)/1.3 var(--font-ui); text-transform: none; letter-spacing: 0; }
.step-body p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }
.step-actions:empty { display: none; }
.step-actions .button { min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); font-size: var(--text-sm); }
.step-actions .text-button { padding: 0 8px; font-size: var(--text-sm); }
.step-actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: var(--text-sm); }
.step-card.is-done { background: transparent; }
.step-card.is-done .step-actions { margin-top: 0; padding-top: var(--space-1); }
.step-card.is-done .step-icon { background: color-mix(in srgb, var(--data-good) 16%, transparent); color: var(--data-good); }
.step-card [data-os] { display: none; }
.step-card[data-os="ios"] [data-os="ios"], .step-card[data-os="android"] [data-os="android"] { display: inline; }
.inline-icon .icon { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.15em; }

/* App: cards, brain */
.brain-line { padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
.brain-line p { margin: 0; }
.brain-line p + p { margin-top: var(--space-1); }
.brain-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); }
.brain-line a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-lg); }
.brain-line a .icon { width: 18px; height: 18px; }
details.acc { padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
details.acc > summary { cursor: pointer; font-size: var(--text-lg); }
details.acc > summary::marker { color: var(--action); }
details.acc[open] > summary { margin-bottom: var(--space-3); }
details.acc.home-card > summary { list-style: none; display: block; font: inherit; text-transform: none; }
details.acc.home-card > summary::-webkit-details-marker { display: none; }
details.acc.home-card > summary::before { content: "+"; display: inline-block; width: 1.1em; margin-right: var(--space-1); font: 400 var(--heading-sm)/1 var(--font-display); color: var(--action); }
details.acc.home-card[open] > summary::before { content: "\2212"; }
.home-card > summary h2 { display: inline; margin: 0; }
.home-card .preview { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.home-card .preview .more { display: inline-block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--text-muted); }
.home-card[open] .preview { display: none; }
.home-card .preview a { text-decoration: none; font-weight: 600; }
.card-foot { margin: var(--space-3) 0 0; }
.ok { color: var(--data-good); font-weight: 700; }
.bad { color: var(--danger); font-weight: 700; }
ul.entries { list-style: none; margin: 0; padding: 0; }
ul.entries li { padding: 10px 0; border-bottom: 1px solid var(--border); }
ul.entries li:last-child { border-bottom: 0; }
ul.entries a { text-decoration: none; font-weight: 600; }
ul.entries a:hover { text-decoration: underline; text-decoration-color: var(--action); }
.body, .snippet { white-space: pre-wrap; color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-1); }
.who { white-space: nowrap; }
.who .agent-logo { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; color: var(--text); }
.who--claude .agent-logo { color: #d97757; }
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--actor, var(--actor-system)); }
.dot.off { background: transparent; border: 2.5px solid var(--actor, var(--actor-system)); }
.dot.sm { width: 8px; height: 8px; margin-right: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); padding: var(--space-1); margin: 0 0 var(--space-4); width: fit-content; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tab { padding: 7px 14px; color: var(--text-muted); border-radius: calc(var(--radius) - 4px); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.tab:hover { color: var(--text); background: var(--hover); }
.tab.on { color: var(--action-text); background: var(--action); }
.crumb { margin: 0 0 var(--space-2); font-size: var(--text-sm); }
.crumb a { text-decoration: none; color: var(--text-muted); }
.footer-line { margin-top: var(--space-4); }
.promote { align-items: center; }
.entry-meta { font-size: var(--text-sm); }
details.disclose { margin-top: var(--space-3); }
details.disclose > summary { cursor: pointer; font-weight: 600; }
details.disclose > form { margin-top: var(--space-3); }
.setup-steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--space-4); }
.qr { width: 200px; max-width: 100%; margin: var(--space-3) 0; padding: var(--space-2); background: var(--brand-white); border-radius: var(--radius-sm); }
.qr svg { display: block; width: 100%; height: auto; }

/* Settings */
.linked { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.league-choices { display: grid; gap: var(--space-2); }
.league-choice { display: flex !important; flex-direction: row !important; align-items: center; gap: var(--space-3) !important; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400 !important; }
.league-choice:has(input:checked) { border-color: var(--action); background: var(--hover); }
.how { padding-left: 1.1em; display: grid; gap: var(--space-2); color: var(--text-muted); }
.how strong { color: var(--text); }

/* Footer band */
.app-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-6) var(--gutter) var(--space-4); }
.app-footer__inner { max-width: calc(var(--page-max) - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); }
.app-footer__inner > a { text-decoration: none; }
.app-footer__line { margin: 0; text-align: center; font: 400 var(--heading-md)/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.app-footer nav a { font-weight: 600; text-decoration: none; color: var(--text-muted); }
.app-footer nav a:hover { color: var(--text); }
.app-footer__legal { max-width: calc(var(--page-max) - 2 * var(--gutter)); margin: var(--space-5) auto 0; font-size: var(--text-xs); color: var(--text-muted); }

@media (max-width: 760px) {
  :root { --gutter: var(--space-4); --header-height: 76px; }
  main { padding-top: var(--space-5); }
  h1 { font-size: var(--heading-md); }
  .wordmark--header { font-size: 1.7rem; }
  .top.scrolled .wordmark--header { font-size: 1.45rem; }
  .top.scrolled { height: calc(var(--header-height) - 10px); }
  .hamburger-label, .signin-chip span, .account-chip span { display: none; }
  .signin-chip, .account-chip { padding: 6px; min-width: 44px; justify-content: center; }
    .top-left, .top-right { gap: 0; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .agent-tiles { grid-template-columns: 1fr 1fr; }
  .agent-tile { padding: 12px; gap: 8px; }
  .scoreboard { gap: var(--space-2); }
  .sb-vs { width: 40px; height: 40px; font-size: var(--text-base); }
  .sb-name { font-size: var(--text-base); }
  .prow { grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); }
  .prow .slot { width: 40px; }
  .prow-nums { grid-column: 2; justify-content: flex-start; text-align: left; }
  .prow-nums > div { align-items: flex-start; }
  ul.prows.panel { padding: 0 var(--space-4); }
  .panel, section.panel, details.acc, form.panel { padding: var(--space-4); }
  .lrow { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: var(--space-2); }
  .lrow .slot { width: 36px; font-size: 0.6rem; }
  .lc { flex-direction: column-reverse; gap: 2px; }
  .lc--m { flex-direction: column-reverse; align-items: flex-end; }
  .lc-nums { flex-direction: row; gap: 6px; align-items: baseline; }
  .lc--m .lc-nums { justify-content: flex-end; }
  .mr-team .avatar { display: none; }
  .mm-pts { font-size: 2.6rem; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .app-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* Interaction states and loading */
button, .button, .chip, .week-step, .icon-btn, .agent-tile, .panel, .signin-chip, .account-chip { transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.12s var(--ease); }
button:active, .button:active, .chip:active, .week-step:active { transform: translateY(1px); }
button:disabled, .button[aria-disabled="true"], input:disabled, select:disabled, textarea:disabled { opacity: 1; color: var(--text-disabled); background-color: var(--surface-2); border-color: var(--border); cursor: not-allowed; }
/* A thin red line while the next page loads (app.js adds .is-loading on navigation). */
body::before { content: ""; position: fixed; z-index: 300; top: 0; left: 0; height: 2px; width: 0; background: var(--brand-red); opacity: 0; pointer-events: none; }
body.is-loading::before { opacity: 1; animation: kc-load 8s var(--ease) forwards; }
@keyframes kc-load { 0% { width: 0; } 20% { width: 45%; } 100% { width: 92%; } }
@media (prefers-reduced-motion: reduce) {
  body.is-loading::before { animation: none; width: 100%; }
  button:active, .button:active, .chip:active, .week-step:active { transform: none; }
}

/* Player photos (Sleeper CDN). The circle is the fallback when a photo is missing. */
.headshot { position: relative; flex: none; display: inline-block; width: var(--hs, 40px); height: var(--hs, 40px); border-radius: 50%; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); }
.headshot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.headshot--team { background: var(--surface-2); }
.headshot--team img { object-fit: contain; padding: 12%; }
.prow-who { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.prow-id { min-width: 0; }
.lc-who { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.lc--m .lc-who { flex-direction: row-reverse; }
.lc-who > div { min-width: 0; }
.srow .headshot { margin-right: 2px; }
@media (max-width: 760px) {
  .lc-who { align-items: flex-start; flex-direction: column; gap: 4px; }
  .lc--m .lc-who { flex-direction: column; align-items: flex-end; }
}

/* Context chips on player rows: Vegas implied team total, usage trend, FAAB bid. */
.chip-sm { display: inline-flex; align-items: center; gap: 3px; font-size: var(--text-xs); font-weight: 600; line-height: 1.6; padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-muted); white-space: nowrap; }
.usage--up { color: var(--data-good); }
.usage--down { color: var(--data-bad); }
.chip-sm.bid { background: var(--accent); color: var(--text-inverse); font-weight: 700; }

/* Win chance */
.sb-first { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-sm); }
.sb-first .proper { color: var(--text); font-weight: 600; }
.sb-line time[data-countdown] { font-variant-numeric: tabular-nums; }
.sb-win { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-sm); }
.sb-win strong { color: var(--text); font-size: var(--text-lg); }
.sb-win a { color: var(--accent); text-decoration-color: var(--accent); }
.mm-proj .win { color: var(--text); }

/* Start / sit */
.start-sit { border-color: color-mix(in srgb, var(--brand-red) 40%, var(--border)); }
.ss-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-3) 0 var(--space-4); }
.ss-odds > div { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-2); }
.ss-pct { font: 400 2.6rem/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.ss-pct--best { color: var(--accent); }
.ss-pct--opp { color: var(--text-muted); }
.ss-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ss-changes li { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); }
.ss-swap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.ss-tag { font: 400 var(--text-sm)/1 var(--font-display); letter-spacing: 0.08em; padding: 4px 7px 3px; border-radius: var(--radius-sm); }
.ss-tag--in { background: var(--action); color: var(--action-text); }
.ss-tag--out { background: var(--surface-3); color: var(--text-muted); }
.ss-who { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.ss-who > span:last-child { display: flex; flex-direction: column; }
.ss-who small { color: var(--text-muted); font-size: var(--text-xs); }
.ss-why { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.ss-why strong { color: var(--data-good); }
.ss-ok { margin: 0; color: var(--data-good); font-weight: 600; }
.ss-flags { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--text-sm); }

/* Playoff odds bar inside the standings */
.odds { position: relative; display: inline-block; min-width: 54px; padding: 1px 6px; border-radius: var(--radius-sm); background: linear-gradient(90deg, color-mix(in srgb, var(--brand-red) 45%, transparent) var(--p), var(--surface-3) var(--p)); font-weight: 700; text-align: right; }

/* Trade lab */
.lab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.lab-pick { margin: 0; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-height: 560px; overflow-y: auto; }
.lab-pick legend { padding: 0 6px; font-weight: 700; }
.lab-player { display: flex; align-items: center; gap: var(--space-2); padding: 8px 6px; border-radius: var(--radius-sm); cursor: pointer; }
.lab-player:hover { background: var(--hover); }
.lab-player:has(input:checked) { background: color-mix(in srgb, var(--brand-red) 14%, transparent); }
.lab-player > span:nth-of-type(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lab-player small { color: var(--text-muted); font-size: var(--text-xs); }
.lab-val { font: 400 1.3rem/1 var(--font-display); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lab-submit { position: sticky; bottom: var(--space-3); display: flex; justify-content: center; margin-top: var(--space-4); }
.lab-sides { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.lab-side { padding: var(--space-4); border-radius: var(--radius); background: var(--surface-2); }
.lab-side h3 { margin: 0 0 var(--space-2); color: var(--text); }
.lab-big { margin: 0 0 var(--space-2); font: 400 2.4rem/1 var(--font-display); }
.lab-d { font-size: 1.4rem; margin-left: 6px; }
@media (max-width: 760px) {
  .ss-odds { grid-template-columns: 1fr 1fr; }
  .ss-odds > div:last-child { grid-column: span 2; }
  .lab-cols, .lab-sides { grid-template-columns: 1fr; }
}

/* Phone alerts settings */
.alert-enable { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.alert-enable .big { border-radius: var(--radius-pill); padding: 12px 22px; }
.how-steps { padding-left: 1.2em; display: grid; gap: 4px; }
.how-notes { padding-left: 1.2em; display: grid; gap: 6px; margin: var(--space-2) 0 0; }
.schedule-table td { vertical-align: top; }
.schedule-table code { white-space: nowrap; }
.alert-prefs { margin-top: var(--space-4); }
.alert-pref { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: var(--space-3) !important; padding: var(--space-2) 0; font-weight: 400 !important; }
.alert-pref input { margin-top: 3px; }
.alert-pref span { display: flex; flex-direction: column; }
.alert-pref small { color: var(--text-muted); font-size: var(--text-xs); }
/* Home-screen app: keep content clear of the notch / home indicator. */
@supports (padding: max(0px)) {
  .top { padding-top: env(safe-area-inset-top); height: calc(var(--header-height) + env(safe-area-inset-top)); }
  .top.scrolled { height: calc(var(--header-height) - 14px + env(safe-area-inset-top)); }
  .hero { margin-top: calc(-1 * (var(--header-height) + env(safe-area-inset-top))); padding-top: calc(var(--header-height) + env(safe-area-inset-top) + var(--space-6)); }
}

/* Intelligence tags (src/tags.ts): the word on the chip, the math in the tooltip. */
.tag {
  position: relative; display: inline-flex; align-items: center; gap: 3px; font-size: var(--text-xs); font-weight: 700; line-height: 1.6;
  padding: 0 8px; border-radius: var(--radius-pill); white-space: nowrap; cursor: default; outline-offset: 2px;
  background: var(--surface-3); color: var(--text-muted);
}
.tag--great { background: color-mix(in srgb, var(--data-good) 24%, transparent); color: color-mix(in srgb, var(--data-good) 70%, var(--brand-white)); }
.tag--good { background: color-mix(in srgb, var(--data-good) 13%, transparent); color: var(--data-good); }
.tag--neutral { background: var(--surface-3); color: var(--text-muted); }
.tag--meh { background: color-mix(in srgb, var(--data-warn) 16%, transparent); color: var(--data-warn); }
.tag--bad { background: color-mix(in srgb, var(--data-bad) 18%, transparent); color: var(--data-bad); }
.tag--steady { background: color-mix(in srgb, var(--data-steady) 14%, transparent); color: var(--data-steady); }
.tag--wild { background: color-mix(in srgb, var(--data-caution) 16%, transparent); color: var(--data-caution); }
.tag--gold { background: var(--accent); color: var(--text-inverse); }
.tag-arrow { font-weight: 800; }
h2 .tag { vertical-align: middle; margin-left: 6px; font-family: var(--font-ui); letter-spacing: 0; text-transform: none; }
.tag::after {
  content: attr(data-tip); position: absolute; z-index: 60; left: 0; top: calc(100% + 8px); width: max-content; max-width: 280px;
  padding: 8px 10px; border-radius: var(--radius-sm); background: var(--brand-black); border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop);
  color: var(--text); font: 500 var(--text-xs)/1.45 var(--font-ui); white-space: normal; text-align: left; letter-spacing: 0; text-transform: none;
  display: none; pointer-events: none; /* not just invisible: a hidden bubble must not widen the page */
}
/* Hover/focus: a half-second pause (like a browser tooltip), then a quick fade, so passing the mouse over a row doesn't
   flash bubbles. A tap opens it at once. The bubble only takes layout space while shown, so it never widens the page. */
.tag:hover::after, .tag:focus-visible::after { display: block; animation: tip-in 0.15s ease-out 0.5s both; }
.tag.tip-open::after { display: block; animation: none; }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
.tag.tip-open { box-shadow: 0 0 0 2px var(--action); }
/* The right-hand team on Matchups opens its bubbles leftward, so they stay on screen. */
.lc--m .tag::after { left: auto; right: 0; }
@media (max-width: 760px), (hover: none) {
  /* Phones: tap a tag and its explanation sits at the bottom of the screen (never off the edge). */
  .tag::after { position: fixed; top: auto; left: var(--gutter); right: var(--gutter); bottom: max(var(--gutter), env(safe-area-inset-bottom)); width: auto; max-width: none; font-size: var(--text-sm); padding: 12px 14px; }
  .tag:hover::after, .tag:focus-visible::after { display: none; }
  .tag.tip-open::after { display: block; }
}

/* A tag with its caption above ("VEGAS" over "Cooking Up"), so each word reads in context. */
.tagbox { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tag-cap { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); opacity: 0.8; padding-left: 2px; line-height: 1; }
/* Row tags share one width (the longest label, "Benchwarmer ↓", fits) so the columns line up from row to row. */
.tagbox .tag { width: 104px; justify-content: center; }
.lab-who .prow-badges { margin-top: 6px; gap: 6px 8px; }
/* No verdict (Too Early, Low Volume, No Data, Pass, Bye, N/A, No Line): dimmer and dashed, so it never reads as a result. */
.tag--none { background: transparent; color: var(--text-muted); border: 1px dashed var(--border-strong); line-height: calc(1.6em - 2px); }
/* Injury / bye beside the player's name. */
.name-flags { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: 2px; }
.name-flags .badge { font-size: var(--text-xs); }
/* Phones: "This week" shrinks to a round icon button so the week controls stay on one row (no jump between weeks). */
@media (max-width: 480px) {
  .week-now { width: 44px; padding: 0; justify-content: center; flex: none; }
  .week-now span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .week-picker { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
  .week-steps { min-width: 0; flex: 1; }
  .week-picker select { min-width: 0; flex: 1; }
}

/* First sign-in setup (/app/setup): progress, one step per panel, a skip link. */
.setup { max-width: 720px; margin: 0 auto; }
.setup-progress { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.setup-progress a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--text-sm); min-width: 0; }
.setup-num { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); font-size: var(--text-xs); }
.setup-num svg { width: 14px; height: 14px; }
.setup-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-progress .current a { border-color: var(--action); color: var(--text); }
.setup-progress .current .setup-num { background: var(--action); color: var(--action-text); }
.setup-progress .done .setup-num { background: color-mix(in srgb, var(--data-good) 20%, transparent); color: var(--data-good); }
.setup-panel h1 { margin-top: 0; }
.setup-panel h2 { font-size: var(--text-lg); margin-top: var(--space-5); }
.setup-actions { margin-top: var(--space-4); }
.setup-later { margin-top: var(--space-3); }
.setup-skip { text-align: center; }
.text-button { background: none; border: 0; color: var(--text-muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px; min-height: 44px; }
.text-button:hover { background: none; color: var(--text); }
@media (max-width: 480px) {
  .setup-progress a { gap: 6px; padding: 6px 8px; font-size: var(--text-xs); }
  .setup-num { width: 20px; height: 20px; }
}

/* Manager playbook: the text to paste into an AI, in a scrollable box with a copy button. */
.playbook { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); margin: var(--space-3) 0; }
.playbook-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--border); }
.playbook-head .kicker { margin: 0; }
.playbook-text { margin: 0; padding: 14px; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 var(--text-sm)/1.55 var(--font-mono); color: var(--text); }
.playbook-uses { margin: var(--space-3) 0; color: var(--text-muted); }
.playbook-uses strong { color: var(--text); }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* Several leagues: the header chip names the league on screen and opens the list (/switch/:id). */
.league-switch { position: relative; }
.league-switch > summary { list-style: none; cursor: pointer; }
.league-switch > summary::-webkit-details-marker { display: none; }
.league-switch > summary .icon:last-child { width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.2s; }
.league-switch[open] > summary .icon:last-child { transform: rotate(180deg); }
.league-switch > summary .proper { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 240px; max-width: calc(100vw - 2 * var(--gutter)); padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); }
.league-menu-label { margin: 4px 10px 6px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.league-menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; padding: 8px 10px; line-height: 1.3; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 600; }
.league-menu a:hover { background: var(--hover); }
.league-menu a[aria-current] { color: var(--text); background: color-mix(in srgb, var(--action) 14%, transparent); }
.league-menu a[aria-current] .icon { width: 18px; height: 18px; color: var(--action-soft); }
.league-menu .league-menu-account { justify-content: flex-start; gap: 10px; margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); color: var(--text-muted); }
.league-menu .league-menu-account .icon { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .league-switch > summary .icon:last-child { display: none; }
  .hero--app .hero-leagues { justify-content: center; }
}
.league-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.league-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.hero-leagues { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-4); }
.hero-league { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: var(--text-sm); }
.hero-league:hover { border-color: var(--action); color: var(--text); }
.hero-league.is-current { border-color: var(--action); color: var(--text); background: color-mix(in srgb, var(--action) 16%, transparent); }
.playbook-league { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: var(--space-2) 0; padding: 0 12px; }
.playbook-league > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.playbook-league[open] { padding-bottom: 2px; }
.playbook-how { font-size: var(--text-base); margin: var(--space-5) 0 var(--space-2); }
