/* 90s TV broadcast look: navy, red, white, chrome; slanted "score bug" graphics. */
:root {
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Barlow, system-ui, sans-serif;
  --bg: #06112b;
  --surface: #0d1d45;
  --surface-2: #142a5c;
  --line: #233c7a;
  --text: #f3f6fc;
  --muted: #9aa9cc;
  --accent: #e0263f;
  --accent-ink: #ffffff;
  --gold: #ffd23f;
  --bug: #0a1f5c; /* navy graphic bars: masthead, table headers */
  --bug-ink: #ffffff;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e3e9f2 44%, #8c99b3 52%, #dfe5ee 72%, #ffffff 100%);
  --win: #35d07f;
  --win-bg: rgba(53, 208, 127, 0.16);
  --loss: #ff5d73;
  --loss-bg: rgba(255, 93, 115, 0.16);
  --tie: #ffd23f;
  --tie-bg: rgba(255, 210, 63, 0.16);
  --bye-bg: repeating-linear-gradient(45deg, transparent 0 6px, rgba(154, 169, 204, 0.14) 6px 12px);
  --radius: 4px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #e8ecf3;
    --surface: #ffffff;
    --surface-2: #eef2f8;
    --line: #cdd6e5;
    --text: #0b1a3d;
    --muted: #55627e;
    --accent: #c8102e;
    --accent-ink: #ffffff;
    --gold: #9a6b00;
    --bug: #0b2363;
    --win: #11804a;
    --win-bg: rgba(17, 128, 74, 0.12);
    --loss: #c8102e;
    --loss-bg: rgba(200, 16, 46, 0.1);
    --tie: #9a6b00;
    --tie-bg: rgba(154, 107, 0, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--body);
}
img { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: 0.02em; margin: 0; text-transform: uppercase; }
/* Section titles are red "score bug" bars, slanted like a 90s broadcast graphic. */
h2 {
  display: inline-block; font-size: 1.45rem; font-style: normal; line-height: 1.2;
  background: var(--accent); color: var(--accent-ink);
  padding: 3px 16px 2px; transform: skewX(-12deg); margin-left: 6px;
  box-shadow: 5px 0 0 var(--bug), 7px 0 0 var(--surface), 10px 0 0 var(--line);
}
.muted { color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Masthead */
/* The masthead is always a navy broadcast bar with red-and-white stripes, in both themes. */
.masthead {
  background: linear-gradient(180deg, #13307f 0%, #0a1f5c 60%, #071848 100%);
  color: #fff;
  border-bottom: 4px solid #e0263f;
  box-shadow: 0 3px 0 #ffffff, 0 6px 0 #0a1f5c;
  position: sticky; top: 0; z-index: 10;
  margin-bottom: 6px;
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; }
.brand-mark {
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.4rem; line-height: 0.95; letter-spacing: 0.03em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 #e0263f) drop-shadow(1px 1px 0 #04102e);
}
.brand-sub { color: rgba(255, 255, 255, 0.75); font: italic 700 0.85rem var(--display); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }
.lock { text-align: right; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.lock strong { display: block; color: #fff; font: italic 800 1.15rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
/* Game-clock style countdown */
.lock .count {
  display: inline-block; margin-top: 3px; padding: 2px 10px;
  background: #000; color: #ffd23f; border: 1px solid rgba(255, 255, 255, 0.25);
  font: 700 1.15rem var(--display); letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  transform: skewX(-10deg);
}

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 6px 10px; }
.tabs a {
  color: rgba(255, 255, 255, 0.78); text-decoration: none; white-space: nowrap;
  font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 14px; background: rgba(255, 255, 255, 0.07); transform: skewX(-12deg);
}
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.tabs a[aria-current="page"] { color: #fff; background: #e0263f; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }

main { padding-top: 20px; padding-bottom: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head p { margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Standings */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: left; white-space: nowrap; }
/* Table headers are navy stat-graphic bars. */
th { font: 700 0.85rem var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--bug-ink); background: var(--bug); border-bottom: 3px solid var(--accent); }
th .plink { color: var(--bug-ink); }
tbody tr + tr td { border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; }
.rank { font: italic 800 1.5rem var(--display); color: var(--muted); width: 1%; }
.rec { font-style: italic; font-weight: 800; }
tr.leader .rank { color: var(--gold); }
td.who { white-space: normal; }
.who strong { display: block; }
.who span { color: var(--muted); font-size: 0.8rem; }
.rec { font-family: var(--display); font-size: 1.35rem; }
.pos { color: var(--win); }
.neg { color: var(--loss); }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 18px; height: 18px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; display: grid; place-items: center; }
.dot.W { background: var(--win-bg); color: var(--win); }
.dot.L { background: var(--loss-bg); color: var(--loss); }
.dot.T { background: var(--tie-bg); color: var(--tie); }
.note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

@media (max-width: 640px) {
  .hide-sm { display: none; }
  th, td { padding: 9px 6px; }
  .lock { text-align: left; }
}

/* This week */
.callouts { display: grid; gap: 10px; margin-bottom: 16px; }
.callout { padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.callout .tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #1a1300; white-space: nowrap; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pcard { padding: 14px; }
.pcard-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 8px; }
.pcard-head h3 { font-size: 1.15rem; }
.pcard-head .sub { color: var(--muted); font-size: 0.8rem; }
.opt { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt.picked { background: var(--surface-2); outline: 2px solid var(--accent); outline-offset: -2px; }
.opt.out { opacity: 0.45; }
.opt .name { font-weight: 600; }
.opt .meta { color: var(--muted); font-size: 0.8rem; }
.opt .right { text-align: right; font-size: 0.8rem; }
.line { font-family: var(--display); font-size: 1rem; }
.line.fav { color: var(--win); }
.line.dog { color: var(--muted); }
.pips { display: inline-flex; gap: 2px; margin-top: 3px; }
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.pip.on { background: var(--accent); }
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 4px; }
.badge.both { background: var(--gold); color: #1a1300; }
.badge.bye { background: var(--surface-2); color: var(--muted); }
.res { font-weight: 700; }
.res.W { color: var(--win); } .res.L { color: var(--loss); } .res.T { color: var(--tie); }
.hidden-picks { font-size: 0.8rem; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }

/* Pick board + planner grids */
.board th, .board td { text-align: center; padding: 6px; }
.board th:first-child, .board td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; text-align: left; }
.board thead th { vertical-align: bottom; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; min-width: 64px; font-size: 0.72rem; }
.cell.W { background: var(--win-bg); } .cell.L { background: var(--loss-bg); } .cell.T { background: var(--tie-bg); }
.cell.pending { background: var(--surface-2); }
.cell.live { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gold); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--loss); margin-right: 5px; vertical-align: middle; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.cell.bye { background: var(--bye-bg); color: var(--muted); }
.cell.future { color: var(--muted); }
.cell .score { font-weight: 600; color: var(--text); }
.wk { font-family: var(--display); font-size: 1rem; }
.wk small { display: block; font-family: var(--body); font-size: 0.62rem; color: var(--gold); letter-spacing: 0.06em; }
td.now, th.now { box-shadow: inset 0 0 0 2px var(--accent); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 600 0.85rem var(--body); cursor: pointer; text-decoration: none; }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.status { padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 4px; }
.status strong { font-size: 0.95rem; }
.status.ok strong { color: var(--win); }
.status.bad strong { color: var(--loss); }
.status ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.85rem; }
.teamhead { display: flex; align-items: center; gap: 8px; }
.teamhead .count { color: var(--muted); font-size: 0.75rem; }

/* Odds */
.odds-link { color: inherit; font-weight: 600; text-decoration: none; }
.odds-link:hover { text-decoration: underline; }
.odds-cell { width: 45%; min-width: 120px; }
@media (max-width: 640px) { .odds-cell .bar-row { gap: 6px; } .bar-label { min-width: 50px; } }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-track { flex: 1; height: 12px; }
.bar { height: 100%; min-width: 2px; background: var(--accent); border-radius: 0 4px 4px 0; }
.bar-label { min-width: 58px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.how { padding: 14px 16px; margin-top: 14px; }
.how h3 { font-size: 1rem; text-transform: uppercase; }
.how ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; }
.how li + li { margin-top: 6px; }
.how strong { color: var(--text); }
.cell.suggest { box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.star { color: var(--accent); font-size: 0.8rem; line-height: 1; }
.note a, .how a { color: var(--accent); }

/* Rules */
.rules { padding: 18px 20px; max-width: 760px; }
.rules h2 { font-size: 1.6rem; margin-bottom: 4px; }
.rules h3 { font-size: 1.1rem; text-transform: uppercase; margin: 22px 0 6px; color: var(--accent); }
.rules p { margin: 0 0 8px; color: var(--muted); }
.rules ul { margin: 0; padding-left: 20px; }
.rules li { margin: 6px 0; }
.badge.rule-proposed { background: var(--gold); color: #1a1300; }
.badge.rule-tbd { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.rule-agreed { background: var(--win-bg); color: var(--win); }

/* Player pages */
.plink { color: inherit; text-decoration: none; }
.plink:hover { color: var(--accent); text-decoration: underline; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 4px; }
.tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.tile-value { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.log td { vertical-align: middle; }
.log .notes { white-space: normal; font-size: 0.82rem; color: var(--muted); min-width: 120px; }
.team-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.team-card { padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 0.85rem; }
.team-card strong { font-size: 1rem; }

/* Recap */
.awards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 12px; }
.award { padding: 14px; }
.award-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.award-head h3 { font-size: 1.05rem; text-transform: uppercase; }
.award-icon { font-size: 1.3rem; }
.award-note { font-size: 0.78rem; margin: 0 0 6px; }
.award-line { font-size: 0.9rem; padding: 3px 0; }
.award-line + .award-line { border-top: 1px solid var(--line); }
.season-head { margin-top: 28px; }
button.chip { cursor: pointer; }

.footer { color: var(--muted); font-size: 0.78rem; padding-bottom: 32px; }
.error { padding: 16px; color: var(--loss); }

/* ---------- Broadcast details ---------- */
.board thead th:first-child { background: var(--bug); }
.pcard, .award, .tile, .team-card, .callout { border-top: 3px solid var(--accent); }
.chip {
  border-radius: 2px; transform: skewX(-12deg);
  font: 700 0.95rem var(--display); text-transform: uppercase; letter-spacing: 0.05em;
}
.chip[aria-current="true"] { box-shadow: 3px 3px 0 var(--bug); }
.callout .tag { border-radius: 2px; transform: skewX(-12deg); font-family: var(--display); font-size: 0.85rem; }
.tile-value, .wk, .line { font-style: italic; font-weight: 800; }
.line { font-size: 1.1rem; }
.pcard-head h3, .award-head h3 { font-size: 1.25rem; }
.dot { border-radius: 2px; font-family: var(--display); font-size: 0.75rem; }
.how h3, .rules h3 { color: var(--accent); }
/* h2 inside cards (player name, rules title) shouldn't take the full-width bar look off the left edge */
.rules h2 { margin-left: 4px; margin-bottom: 10px; }
/* Logos sit in a chrome-rimmed "helmet sticker" badge. */
.logo-badge {
  display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f1f4f9 50%, #cfd7e3 100%);
  box-shadow:
    inset 0 0 0 1px #6f7d99,
    inset 0 0 0 2.5px #f4f7fb,
    inset 0 0 0 3px #9aa6be,
    0 1px 2px rgba(0, 0, 0, 0.45);
}
.blocked { font-size: 0.78rem; font-weight: 600; color: var(--loss); margin-top: 4px; }
.opt.out:has(.blocked) { opacity: 0.8; }

/* ---------- Making picks ---------- */
/* Header button: gold so it pops against the navy bar. */
.pick-cta {
  display: inline-block; margin-top: 6px; padding: 5px 14px;
  background: #ffd23f; color: #0a1f5c; text-decoration: none;
  font: 800 1rem var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  transform: skewX(-12deg); box-shadow: 3px 3px 0 #e0263f;
}
.pick-cta:hover { background: #fff; }
.pick-cta.done { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.lock { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 640px) { .lock { align-items: flex-start; } }
.tabs a.tab-pick { color: #0a1f5c; background: #ffd23f; }
.tabs a.tab-pick[aria-current="page"] { background: #fff; color: #c8102e; }

.pick-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 18px; text-decoration: none; color: var(--text);
  border-top: 3px solid #ffd23f; background: linear-gradient(90deg, var(--surface-2), var(--surface));
}
.pick-banner .pb-text { display: flex; flex-direction: column; }
.pick-banner .pb-text strong { font: italic 800 1.35rem var(--display); text-transform: uppercase; }
.pick-banner .pb-text span { color: var(--muted); font-size: 0.88rem; }
.pick-banner .pb-btn {
  background: var(--accent); color: #fff; padding: 8px 18px; transform: skewX(-12deg);
  font: 800 1.05rem var(--display); text-transform: uppercase; letter-spacing: 0.04em;
}
.pick-banner.done { justify-content: flex-start; border-top-color: var(--win); font-size: 0.95rem; }
.pick-banner:hover .pb-btn { filter: brightness(1.1); }

.pick-box { padding: 18px; max-width: 640px; }
.pick-box h3 { font-size: 1.35rem; margin-bottom: 6px; }
.pick-box p { margin: 0 0 12px; }
.name-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 12px; }
.name-btn, .pick-card { font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.name-btn {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  font: italic 800 1.25rem var(--display); text-transform: uppercase;
}
.name-btn small { font: 500 0.78rem var(--body); text-transform: none; color: var(--muted); font-style: normal; }
.name-btn:hover, .name-btn:focus-visible { border-color: var(--accent); background: var(--surface); }
.pin-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 6px 0 10px; }
.pin-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pin-input {
  width: 140px; padding: 10px 12px; font: 700 1.6rem var(--display); letter-spacing: 0.4em; text-align: center;
  background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 2px;
}
.pin-input:focus { outline: none; border-color: var(--accent); }
.btn-primary {
  border: 0; cursor: pointer; padding: 11px 22px; background: var(--accent); color: #fff;
  font: 800 1.1rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; transform: skewX(-10deg);
  box-shadow: 3px 3px 0 var(--bug);
}
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-primary.big { width: 100%; padding: 15px 22px; font-size: 1.3rem; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: 600 0.9rem var(--body); cursor: pointer; text-decoration: underline; }
.form-error { color: var(--loss); font-weight: 600; margin: 8px 0; }
.hello { margin: 0 0 10px; color: var(--muted); }

.pick-status { padding: 12px 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; font-size: 1rem; }
.pick-status.done { border-top: 3px solid var(--win); }
.pick-status.todo { border-top: 3px solid #ffd23f; }
.pick-status.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: var(--win-bg); } }
@media (prefers-reduced-motion: reduce) { .pick-status.flash { animation: none; } }

.pick-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pick-card {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  padding: 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
}
.pick-card:hover:not(:disabled) { border-color: var(--accent); }
.pick-card.selected { border-color: var(--accent); background: var(--surface-2); box-shadow: 4px 4px 0 var(--accent); }
.pick-card:disabled { cursor: not-allowed; opacity: 0.6; }
.pc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-name { font: italic 800 1.3rem var(--display); text-transform: uppercase; }
.pc-meta { color: var(--muted); font-size: 0.84rem; }
.pc-line { font: italic 800 1.4rem var(--display); color: var(--muted); }
.pc-line.fav { color: var(--win); }
.badge.best { background: var(--accent); color: #fff; font-style: normal; vertical-align: middle; }
.badge.mine { background: var(--win); color: #04120a; font-style: normal; vertical-align: middle; }

/* On phones the Lock in button sticks to the bottom of the screen. */
.confirm-bar { position: sticky; bottom: 0; padding: 12px 0; margin-top: 8px; background: linear-gradient(180deg, transparent, var(--bg) 30%); z-index: 5; }
.tracker { padding: 12px 14px; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { padding: 3px 9px; font-size: 0.82rem; border: 1px solid var(--line); color: var(--muted); border-radius: 2px; }
.tchip.done { background: var(--win-bg); color: var(--win); border-color: transparent; font-weight: 600; }
.pc-line small { font: 600 0.75rem var(--body); font-style: normal; color: var(--muted); }
/* On phones the tall header scrolls away instead of sticking, so the pick cards get the screen. */
@media (max-width: 640px) { .masthead { position: static; } .brand-mark { font-size: 2rem; } }

/* ---------- Welcome screen (league password -> who are you -> PIN) ---------- */
body.gated .tabs, body.gated #lock { display: none; }
.gate { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 0; }
.gate .pick-box { width: 100%; }
.gate-box { text-align: left; border-top: 4px solid var(--accent); }
.gate-mark {
  font: italic 800 3rem var(--display); line-height: 1; letter-spacing: 0.03em; text-align: center;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 #e0263f) drop-shadow(1px 1px 0 #04102e); margin-bottom: 10px;
}
.gate-mark.small { font-size: 2rem; margin: 0; }
.text-input {
  width: min(320px, 100%); padding: 11px 12px; font: 600 1.1rem var(--body);
  background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 2px;
}
.text-input:focus { outline: none; border-color: var(--accent); }
.league-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 8px; }
.league-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; flex: 1 1 220px; }
.gate-switch { font-size: 0.82rem; }
.pick-banner.closed { border-top-color: var(--muted); }
.closed-box { border-top: 3px solid var(--muted); }
.closed-box p { color: var(--text); }
.closed-box .btn-primary { display: inline-block; text-decoration: none; margin-top: 6px; }
.planner-cell { font-size: 0.85rem; white-space: nowrap; }
.tile .muted { font-size: 0.8rem; }
