/* DEEZ Fantasy League — black header band with a gold stripe, folder tabs, card layouts.
   Colors: white, navy and black from the logo, gold for small accents only. Flat, no shadows. */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f5f6f8;
  --line: #e4e7ec;
  --line-strong: #cfd4dc;
  --text: #0b0f19;
  --text-2: #2b3240;
  --muted: #5b6474;
  --navy: #011f54;      /* from the logo */
  --navy-2: #4a6aa8;    /* lighter blue for the second team */
  --navy-soft: #eef2f9;
  --gold: #e9b13b;      /* from the logo: thin accents only, never text on white */
  --side-a: var(--navy);
  --side-b: var(--navy-2);
  --radius: 14px;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Header: black band, gold stripe ──────────────────────────────────── */

.masthead {
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--text);
  color: #fff;
  border-bottom: 6px solid var(--gold);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-tile { flex: none; background: #fff; border-radius: 10px; padding: 3px 5px; }
.brand-logo { display: block; height: 46px; width: auto; }
.wordmark { display: flex; flex-direction: column; font: 400 34px/0.95 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; }
.wordmark small { font: 800 11px/1.2 var(--font-body); letter-spacing: 0.22em; color: var(--gold); margin-bottom: 3px; }
.wordmark b { font-weight: 400; color: var(--gold); }

.bar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.week { font: 800 15px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.badge-demo {
  font: 800 11px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; border: 1px solid var(--gold); padding: 5px 7px; border-radius: 4px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4);
}
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ── Folder tabs ──────────────────────────────────────────────────────── */

.tabs { display: flex; gap: 4px; margin: 28px 0 26px; border-bottom: 3px solid var(--text); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 12px 18px; text-decoration: none; white-space: nowrap;
  font: 800 16px/1 var(--font-body); color: var(--text); border-radius: 8px 8px 0 0;
}
.tab:hover { background: var(--panel-2); }
.tab[aria-current="page"] { background: var(--text); color: #fff; }

/* ── Page ─────────────────────────────────────────────────────────────── */

main { padding-bottom: calc(var(--safe-b) + 32px); }

.alert { background: var(--navy-soft); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.alert p { margin: 6px 0 0; color: var(--text-2); }
.alert ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); }
.alert code { font-family: ui-monospace, Consolas, monospace; }

.section-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0;
  font: 800 clamp(30px, 7vw, 44px)/1.1 var(--font-body); letter-spacing: -0.02em;
}
.count {
  font: 700 14px/1 var(--font-body); letter-spacing: 0; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px;
}
.section-sub { margin: 8px 0 22px; color: var(--muted); font-size: 17px; }
.sub-title { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 14px; font: 800 24px/1.2 var(--font-body); letter-spacing: -0.01em; }
.sub-title span { font: 600 14px/1.2 var(--font-body); color: var(--muted); }

.empty { color: var(--muted); text-align: center; padding: 24px; }

/* ── Home ─────────────────────────────────────────────────────────────── */

.home { display: grid; gap: 18px; }
.home-logo { display: block; width: min(520px, 90%); height: auto; margin: 0 auto 4px; }
.home-links { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-link {
  display: grid; gap: 4px; align-content: center; min-height: 96px; padding: 18px 16px; text-decoration: none;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius);
}
.home-link:hover { background: var(--panel-2); }
.home-link span { font: 800 22px/1.1 var(--font-body); letter-spacing: -0.01em; color: var(--navy); }
.home-link small { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .home-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Home: the managers grid */
.home .sub-title { margin: 14px 0 0; flex-wrap: wrap; }
/* 3, 4 or 6 across: 12 managers always fill even rows */
.managers { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) { .managers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .managers { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mgr { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 14px 8px 12px; text-align: center; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); }
.mgr:hover { background: var(--panel-2); }
.mgr .logo-wrap, .mgr .mono { width: 64px; height: 64px; margin-bottom: 4px; }
.mgr-name { font: 800 16px/1.2 var(--font-body); color: var(--navy); }
.mgr-team, .mgr-rec { max-width: 100%; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── The DEEZ Desk (News page headline) ──────────────────────────────── */

.desk { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.desk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.desk-chip { font: 800 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.desk-ai { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.desk-ai .ic { width: 14px; height: 14px; fill: var(--gold); stroke: none; }
.headline { margin: 0; color: var(--navy); font: 400 clamp(30px, 7vw, 52px)/1 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.subhead { margin: 10px 0 0; max-width: 70ch; color: var(--text-2); font-size: 17px; line-height: 1.45; text-wrap: pretty; }

/* ── Matchup cards: two teams side by side ───────────────────────────── */

.grid { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.mu { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mu-title {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 800 13px/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--font-body); color: var(--muted); }
.tag-live { color: var(--navy); }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tag-final { color: var(--text); }

.mu-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 22px 14px 16px; }
.team { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.team .logo-wrap, .team .mono { width: 84px; height: 84px; margin-bottom: 10px; font-size: 26px; }
.logo-wrap, .mono { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.logo-wrap { overflow: hidden; background: var(--panel-2); }
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mono { display: grid; place-items: center; background: var(--navy); font: 800 17px/1 var(--font-body); color: #fff; }

.team-name { max-width: 100%; font: 800 19px/1.2 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-meta { max-width: 100%; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-rec { font-size: 13px; color: var(--muted); }
.w-badge { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 2px 5px; border-radius: 3px; background: var(--navy); color: #fff; font: 800 11px/1 var(--font-body); }

.team-num { position: relative; margin-top: 12px; }
.score { font: 400 44px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); }
.team.leading .score { color: var(--text); }
.proj { margin-top: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.score.flash { animation: flash 2s ease-out; }
@keyframes flash { 0%, 25% { color: var(--navy-2); } }
.delta { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font: 800 13px/1 var(--font-body); color: var(--navy); font-variant-numeric: tabular-nums; animation: fade 3s ease-out forwards; }
.delta.down { color: var(--text); }
@keyframes fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

.wp { padding: 0 18px 16px; }
.wp-row { display: flex; justify-content: space-between; align-items: baseline; font: 800 14px/1 var(--font-body); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.wp-row .a { color: var(--side-a); }
.wp-row .b { color: var(--side-b); }
.wp-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wp-bar { height: 6px; border-radius: 6px; background: var(--side-b); overflow: hidden; }
.wp-bar span { display: block; height: 100%; background: var(--side-a); transform-origin: left; border-right: 2px solid #fff; }

.mu-sum { margin: 0; padding: 0 18px 14px; color: var(--text-2); font-size: 15px; line-height: 1.5; }

.roast { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0 18px 16px; padding: 12px; border-radius: 10px; background: var(--navy-soft); }
.roast > .ic { width: 20px; height: 20px; color: var(--navy); margin-top: 1px; }
.roast-label { margin: 0 0 3px; font: 800 12px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.roast-label span { color: var(--text-2); letter-spacing: 0.04em; }
.roast-text { margin: 0; font-size: 15px; line-height: 1.5; }

.lu-toggle {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer;
  font: 800 14px/1 var(--font-body); color: var(--text);
}
.lu-toggle:hover { background: var(--panel-2); }
.lu-toggle .ic { width: 18px; height: 18px; }
.lu-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }

/* ── Head-to-head lineups ─────────────────────────────────────────────── */

.lineups { border-top: 1px solid var(--line); padding: 4px 0 8px; }
.lu { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.lu th, .lu td { padding: 7px 6px; vertical-align: middle; }
.lu thead th { font: 800 11px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.lu thead th.b, .lu td.b { text-align: right; }
.lu .c-pts { width: 54px; text-align: right; font: 800 15px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--muted); }
.lu .c-pts.b-pts { text-align: left; }
.lu .c-pts.hi { color: var(--text); }
.lu .pp { display: block; margin-top: 4px; font: 600 12px/1 var(--font-body); color: var(--navy-2); }
.lu .c-slot { width: 46px; text-align: center; }
.lu td.c-name { min-width: 0; }
.lu td:first-child, .lu th:first-child { padding-left: 16px; }
.lu td:last-child, .lu th:last-child { padding-right: 16px; }
.lu tbody tr + tr td { border-top: 1px solid var(--line); }

.pn { display: flex; align-items: center; gap: 5px; min-width: 0; font-weight: 700; }
.b .pn { justify-content: flex-end; }
.pn-full, .pn-short { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pn-short { display: none; }
.pm { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flag { flex: none; font: 800 10px/1 var(--font-body); letter-spacing: 0.04em; padding: 2px 4px; border-radius: 3px; background: #fbf1da; color: var(--text); }
.flag.bad { background: var(--text); color: #fff; }

.slot { display: inline-block; min-width: 38px; padding: 4px 0; border-radius: 4px; text-align: center; font: 800 11px/1 var(--font-body); background: var(--navy-soft); color: var(--navy); }

.lu .bump { animation: flash 2s ease-out; }
.lu-sep th { padding: 12px 16px 6px; text-align: center; font: 800 11px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.lu-total td { font: 800 12px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line-strong) !important; }
.lu-total .c-pts { color: var(--text); }
.lu-note { margin: 6px 16px 0; font-size: 13px; color: var(--muted); }
.lu-note b { color: var(--navy); }

/* ── Standings cards ──────────────────────────────────────────────────── */

.st-list { display: grid; gap: 12px; max-width: 760px; }
.st-card { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; }
a.st-card:hover { background: var(--panel-2); }

/* Team page */
.back { display: inline-block; min-height: 44px; margin-bottom: 4px; font-weight: 700; }
.team-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; max-width: 760px; }
.team-hero .logo-wrap, .team-hero .mono { width: 88px; height: 88px; }
.team-hero .section-title { margin: 0; }
.team-hero .team-meta { font-size: 15px; margin-top: 4px; }
.st-stats.team-stats { grid-template-columns: repeat(4, 1fr); max-width: 760px; margin-top: 18px; }
.facts { max-width: 760px; margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 1.45; }
.roster-card { max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lu.roster .c-slot { width: 64px; }
.lu.roster .c-pts { width: 76px; padding-right: 16px; }
.roster .pn-full { display: inline; }
.roster .pn-short { display: none; }

/* Champions */
.champs .ic, .team-history .ic { width: 16px; height: 16px; color: var(--gold); }
.team-history .ic { color: var(--muted); }
.team-history .hist-titles .ic { color: var(--gold); }
.st-stats.team-history { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin-top: 12px; }
.team-history dt { display: inline-flex; align-items: center; gap: 6px; }
.records { list-style: none; margin: 0; padding: 0; max-width: 760px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.records li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; }
.records li + li { border-top: 1px solid var(--line); }
.rec-value { font: 400 28px/1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.rec-label { font: 700 16px/1.3 var(--font-body); }
.rec-year { font: 600 14px/1 var(--font-body); color: var(--muted); }
.records-none { margin: 0; color: var(--muted); }
.team-history .years { margin-top: 4px; font: 600 13px/1.3 var(--font-body); color: var(--muted); }
.champs { list-style: none; margin: 0; padding: 0; max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); }
.champs li + li { border-top: 1px solid var(--line); }
.champs a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px; color: inherit; text-decoration: none; }
.champs a:hover { background: var(--panel-2); }
.champ-year { font: 400 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.champ-name { flex: 1; font: 800 17px/1.2 var(--font-body); }
.st-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.st-rank { min-width: 2ch; font: 400 34px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.st-top .logo-wrap, .st-top .mono { width: 56px; height: 56px; }
.st-who { min-width: 0; }
.st-who .team-name { font-size: 18px; }
.st-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.st-stats > div + div { border-left: 1px solid var(--line); }
.st-stats dt { font: 800 11px/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.st-stats dd { margin: 6px 0 0; font: 800 22px/1 var(--font-body); font-variant-numeric: tabular-nums; }

.cutline { display: flex; align-items: center; gap: 12px; margin: 4px 0; font: 800 11px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cutline::before, .cutline::after { content: ""; flex: 1; border-top: 2px dashed var(--gold); }

.streak { display: inline-block; min-width: 38px; text-align: center; padding: 5px 7px; border-radius: 999px; font: 800 12px/1 var(--font-body); }
.streak.w { background: var(--navy-soft); color: var(--navy); }
.streak.l { background: #eceef1; color: var(--text); }
.streak.t { background: var(--panel-2); color: var(--text-2); }

/* ── Transactions ─────────────────────────────────────────────────────── */

#txList { display: grid; gap: 12px; max-width: 760px; }
.tx { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tx-head time { font-size: 13px; color: var(--muted); }
.tx-type { font: 800 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.tx-trade { color: var(--navy); }
.tx-moves { list-style: none; margin: 0; padding: 4px 0; }
.mv { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 8px; align-items: baseline; padding: 9px 16px; }
.mv + .mv { border-top: 1px solid var(--line); }
.mv-sign { grid-row: span 2; font: 800 20px/1 var(--font-body); text-align: center; }
.mv-add .mv-sign, .mv-trade .mv-sign { color: var(--navy); }
.mv-drop .mv-sign { color: var(--text); }
.mv-who b { font-weight: 700; }
.mv-who .pm { display: inline; }
.mv-what { font-size: 14px; color: var(--text-2); }

/* ── News ─────────────────────────────────────────────────────────────── */

.articles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }
.art { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 18px; }
.art-kicker { margin: 0 0 6px; font: 800 12px/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.art-title { margin: 0 0 8px; font: 800 21px/1.2 var(--font-body); letter-spacing: -0.01em; }
.art p:not(.art-kicker) { margin: 0 0 10px; color: var(--text-2); line-height: 1.55; }
.art .art-score { font-weight: 800; color: var(--text); }
.art .art-meta { font-size: 14px; font-weight: 700; color: var(--navy); }
.art-awards { grid-column: 1 / -1; }
.older { grid-column: 1 / -1; }
.older > summary { max-width: 380px; list-style: none; }
.older > summary::-webkit-details-marker { display: none; }
.older[open] > summary { margin-bottom: 14px; }
.league-play { columns: 2 180px; margin: 0 0 18px; padding-left: 26px; line-height: 1.7; }
.league-play span { color: var(--muted); font-size: 14px; }
.award { padding-top: 12px; border-top: 1px solid var(--line); }
.art .award-title { margin-bottom: 2px; font: 800 15px/1.3 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.headlines { list-style: none; margin: 0; padding: 0; max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); }
.headlines li { display: grid; gap: 3px; padding: 13px 16px; }
.headlines li + li { border-top: 1px solid var(--line); }
.headlines a { text-decoration: none; font-weight: 700; line-height: 1.35; }
.headlines a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hl-time { font-size: 13px; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.foot a, .linklike { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.foot a:hover, .linklike:hover { color: var(--text); }

/* ── Connect screen, dialog, buttons ──────────────────────────────────── */

.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: var(--bg); overflow-y: auto; }
.gate-card { width: min(460px, 100%); text-align: center; padding: 32px 24px 24px; border: 1px solid var(--line); border-radius: 16px; }
.gate-logo { display: block; width: min(300px, 85%); height: auto; margin: 0 auto; }
.gate-card h1 { margin: 12px 0 8px; font: 800 30px/1.1 var(--font-body); letter-spacing: -0.02em; }
.gate-card p { color: var(--text-2); margin: 0 0 18px; }
.gate-actions { display: grid; gap: 10px; }
.gate-note { margin: 16px 0 0 !important; font-size: 14px; color: var(--muted) !important; }
.gate-note code { font-family: ui-monospace, Consolas, monospace; }

.btn {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px; border-radius: 10px;
  text-decoration: none; cursor: pointer; font: 800 16px/1 var(--font-body);
}
button.btn { width: 100%; border: 0; }
.btn.primary { background: var(--text); color: #fff; }
.btn.primary:hover { background: var(--navy); }
.btn.ghost { border: 1px solid var(--line-strong); background: none; color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.field { display: grid; gap: 6px; text-align: left; }
.field span { font: 800 13px/1 var(--font-body); color: var(--text-2); }
.field input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 500 16px/1 var(--font-body); }
.field-error { margin: 8px 0 0; min-height: 1em; color: var(--navy); font-weight: 700; font-size: 14px; }

.dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; border-radius: 16px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); }
.dialog::backdrop { background: rgba(11, 15, 25, 0.5); }
.dialog h2 { margin: 0 0 6px; font: 800 26px/1.1 var(--font-body); letter-spacing: -0.02em; }
.dialog p { margin: 0 0 16px; color: var(--text-2); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

body.gated { overflow: hidden; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 18px); z-index: 60; transform: translateX(-50%);
  max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 10px; background: var(--text); color: #fff; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.toast.show { opacity: 1; }
.toast.bad { background: var(--navy); }

/* ── Icons, loading placeholders ──────────────────────────────────────── */

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mu.skel { height: 300px; background: var(--panel-2); border-color: var(--panel-2); }

/* ── Small phones ─────────────────────────────────────────────────────── */

@media (max-width: 440px) {
  .bar { min-height: 72px; }
  .brand { gap: 10px; }
  .brand-logo { height: 38px; }
  .wordmark { font-size: 28px; }
  .wordmark small { font-size: 9px; letter-spacing: 0.18em; }
  .week { display: none; }
  .tabs { gap: 0; }
  .tab { padding: 12px 6px; font-size: 13px; }
  .pn-full { display: none; }
  .pn-short { display: inline; }
  .team .logo-wrap, .team .mono { width: 68px; height: 68px; }
  .team-name { font-size: 16px; }
  .score { font-size: 36px; }
  .lu .c-pts { width: 46px; }
  .lu .c-slot { width: 42px; }
  .st-card { padding: 14px 14px 12px; }
  .st-top { gap: 10px; }
  .st-rank { font-size: 28px; }
  .st-top .logo-wrap, .st-top .mono { width: 46px; height: 46px; }
  .st-stats dd { font-size: 19px; }
  .home-link { padding: 16px 12px; }
  .home-link span { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* "Who won the trade?" poll */
.poll { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.art .poll-q { margin: 0 0 8px; font-weight: 800; color: var(--text); }
.poll-opt { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; margin-bottom: 8px; padding: 10px 14px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--text); font: 700 15px/1.3 var(--font-body); text-align: left; cursor: pointer; touch-action: manipulation; }
.poll-opt:hover { border-color: var(--navy); }
.poll-opt:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.poll-opt.picked { border: 2px solid var(--navy); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--navy-soft); border-right: 3px solid var(--gold); transition: width 0.3s ease-out; }
.poll-label, .poll-pct { position: relative; }
.art .poll-total { margin: 0; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .poll-bar { transition: none; } }
