:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text2: #8b949e;
  --green: #238636;
  --green-hover: #2ea043;
  --red: #da3633;
  --blue: #1f6feb;
  --gold: #d29922;
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Nav ─────────────────────────────────────────────────────────── */
.nav {
  /* dark overlay (first layer) sits on top of the field SVG — adjust 0.82 to taste */
  background:
    linear-gradient(rgba(13,17,23,0.82), rgba(13,17,23,0.82)),
    url('/field.svg') center / 100% 100% no-repeat;
  border: none;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}

.nav-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem 2rem 0;
  height: 120px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}
.nav-center a {
  color: #f0dfc0;
  font-size: 14px;
  font-weight: 600;
  background: #7b4220;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
  transition: background 0.15s, box-shadow 0.15s;
}
.nav-center a:hover {
  color: #fff;
  background: #9b5228;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15);
}

.nav-hamburger {
  display: none;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-mobile-menu {
  border-top: 1px solid rgba(255,255,255,.15);
  background: #0f2c0a;
}
.nav-mobile-menu a {
  display: block;
  padding: 13px 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a:hover { background: var(--bg3); }
.nav-mobile-myleagues { font-weight: 600; color: var(--blue) !important; }
.nav-mobile-signout { color: var(--text2) !important; font-size: 14px !important; }

@media (max-width: 720px) {
  .nav-center { display: none !important; }
  .nav-hamburger { display: block !important; }
  .nav-myleagues-btn { display: none !important; }
  .nav-user { display: none !important; }
  .nav-signin-btn { display: none !important; }
  .btn-tipjar { display: none !important; }
  /* Shrink nav height — only hamburger + brand visible on mobile */
  .nav-inner { height: 56px; padding: 0 1rem; align-items: center; }
  /* Prevent iOS Safari from zooming in when focusing the player search input
     (iOS auto-zooms on inputs with font-size < 16px, causing horizontal scroll
     that persists after the modal closes) */
  .modal-search input { font-size: 16px; }
}

.nav-right {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}

.btn-my-leagues {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.btn-my-leagues:hover { opacity: .85; }

.leagues-modal {
  position: fixed;
  top: 60px;
  right: 1rem;
  width: 360px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
}
.leagues-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}
.leagues-modal-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.leagues-modal-close:hover { color: var(--text); }
.leagues-modal-list { max-height: 320px; overflow-y: auto; }
.leagues-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
}
.leagues-modal-item:last-child { border-bottom: none; }
.leagues-modal-item:hover { background: var(--bg3); }
.leagues-modal-item--active { background: #0d2137; border-left: 3px solid var(--blue); }
.leagues-modal-name { font-weight: 600; font-size: 14px; }
.leagues-modal-role { font-size: 12px; color: var(--text2); text-transform: capitalize; }
.leagues-modal-empty { padding: 16px; color: var(--text2); font-size: 14px; text-align: center; }
.leagues-modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.leagues-modal-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; font-size: 12px; }
.leagues-modal-links a { color: #7aa2d4; text-decoration: none; }
.leagues-modal-links a:hover { text-decoration: underline; }
.leagues-modal-sep { color: var(--text2); user-select: none; }
.leagues-modal-link-admin { color: var(--gold) !important; }

@media (max-width: 380px) {
  .leagues-modal { width: calc(100vw - 2rem); right: 1rem; }
}

.admin-link { color: var(--gold) !important; }

/* ─── Main ─────────────────────────────────────────────────────────── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
  width: 100%;
}

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s;
}
.btn-primary:hover { background: var(--green-hover); }
.btn-primary.btn-lg { padding: 12px 28px; font-size: 16px; }

.btn-sm {
  display: inline-block;
  background: var(--bg3);
  color: var(--text) !important;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none !important;
}
.btn-sm:hover { border-color: var(--text2); }

.btn-danger { color: var(--red) !important; border-color: var(--red) !important; }
.btn-admin {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.btn-admin:hover { opacity: .85; }
.btn-admin:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-open   { background: #1f4c1f; color: #7ee787; }
.badge-locked { background: #3d2b00; color: #e3b341; }
.badge-out    { background: #3d1212; color: #f85149; font-size: 11px; }
.you-badge { background: var(--bg3); color: var(--text2); padding: 1px 6px; border-radius: 10px; font-size: 11px; }
.lb-team-name { font-weight: 600; }
.lb-real-name { font-size: 12px; color: var(--text2); margin-left: 4px; }

/* ─── Avatars ──────────────────────────────────────────────────────── */
.avatar    { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }
.avatar-sm--logo { object-fit: contain; background: var(--surface2); border-radius: 4px; }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #58a6ff, #7ee787);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.hero-sub { color: var(--text2); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ─── Rules strip ──────────────────────────────────────────────────── */
.rules-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.rule-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.rule-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.rule-card strong { display: block; margin-bottom: .25rem; }
.rule-card p { color: var(--text2); font-size: 13px; }

/* ─── Leaderboard ──────────────────────────────────────────────────── */
.leaderboard-table, .leaderboard-full {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.lb-header {
  display: grid;
  grid-template-columns: 56px 1fr 90px;
  padding: 10px 16px;
  background: var(--bg3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text2);
  letter-spacing: .04em;
}
.lb-header--weeks {
  grid-template-columns: 56px 1fr 90px repeat(var(--lb-week-cols, 0), 72px);
}
.lb-row {
  display: grid;
  grid-template-columns: 56px 1fr 90px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: background .1s;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.lb-row--weeks {
  grid-template-columns: 56px 1fr 90px repeat(var(--lb-week-cols, 0), 72px);
}
.lb-row:hover { background: var(--bg3); text-decoration: none; }
.lb-row--me { background: #1a2332 !important; }
.lb-pts { text-align: right; font-weight: 600; color: var(--green); }
.lb-rank { color: var(--text2); font-size: 13px; }
.lb-rank--medal { font-size: 12px; white-space: nowrap; }
.lb-week { text-align: right; font-size: 13px; color: var(--text2); }
.lb-empty { padding: 2rem; text-align: center; color: var(--text2); }
.link-more { display: block; text-align: center; padding: .75rem; font-size: 13px; border-top: 1px solid var(--border); }
.section { margin-top: 2.5rem; }
.section h2 { margin-bottom: 1rem; font-size: 1.1rem; }

/* ─── Podium ───────────────────────────────────────────────────────── */
@keyframes champion-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20%       { transform: translateY(-22px) rotate(-6deg); }
  40%       { transform: translateY(-18px) rotate(6deg); }
  60%       { transform: translateY(-22px) rotate(-4deg); }
  80%       { transform: translateY(-10px) rotate(3deg); }
}
@keyframes silver-taunt {
  0%, 100%  { transform: translateX(0) rotate(0deg); }
  30%       { transform: translateX(-10px) rotate(-5deg); }
  70%       { transform: translateX(4px) rotate(3deg); }
}
@keyframes bronze-shrug {
  0%, 60%, 100% { transform: rotate(0deg) translateY(0); }
  75%            { transform: rotate(8deg) translateY(-4px); }
  90%            { transform: rotate(-4deg) translateY(-2px); }
}

/* Comic speech bubbles — 20s conversation cycle */
/* Slot 1: visible ~0–6s  (0%–30%) */
@keyframes sb-talk-1 {
  0%    { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
  4%    { opacity:1; transform:translateX(-50%) scale(1)   translateY(0);   }
  26%   { opacity:1; transform:translateX(-50%) scale(1)   translateY(0);   }
  32%   { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
  100%  { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
}
/* Slot 2: visible ~7–13s (35%–65%) */
@keyframes sb-talk-2 {
  0%,33% { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
  37%    { opacity:1; transform:translateX(-50%) scale(1)   translateY(0);   }
  61%    { opacity:1; transform:translateX(-50%) scale(1)   translateY(0);   }
  67%    { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
  100%   { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
}
/* Slot 3: visible ~14–19s (68%–96%) */
@keyframes sb-talk-3 {
  0%,66% { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
  70%    { opacity:1; transform:translateX(-50%) scale(1)   translateY(0);   }
  93%    { opacity:1; transform:translateX(-50%) scale(1)   translateY(0);   }
  97%    { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
  100%   { opacity:0; transform:translateX(-50%) scale(.75) translateY(6px); }
}

.podium-wrap { margin: 2.5rem 0 2rem; }

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  overflow: visible;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  overflow: visible;
}
.podium-spot:hover { text-decoration: none; }
.podium-spot--me .podium-block { outline: 2px solid var(--blue); outline-offset: 2px; }

.podium-crown      { font-size: 1.6rem; margin-bottom: 2px; }
.podium-dunce      { margin-bottom: 2px; line-height: 0; }
.podium-loser-hat  { margin-bottom: 2px; line-height: 0; }
.podium-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
  overflow: visible;
}

.podium-spot--1st .podium-figure { animation: champion-bounce 1.4s ease-in-out infinite; }
.podium-spot--2nd .podium-figure { animation: silver-taunt 2.2s ease-in-out infinite; }
.podium-spot--3rd .podium-figure { animation: bronze-shrug 3.5s ease-in-out infinite 0.8s; }

/* Comic speech bubble */
.speech-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(.75) translateY(6px);
  transform-origin: bottom center;
  background: #fff;
  color: #111;
  border: 2.5px solid #111;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  box-shadow: 3px 3px 0 #111;
}
/* Tail: outline layer */
.speech-bubble::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #111;
}
/* Tail: fill layer (covers outline) */
.speech-bubble::before {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: -3px;
  border: 7px solid transparent;
  border-top-color: #fff;
  z-index: 1;
}

.sb--1 { animation: sb-talk-1 20s ease-in-out infinite; }
.sb--2 { animation: sb-talk-2 20s ease-in-out infinite; }
.sb--3 { animation: sb-talk-3 20s ease-in-out infinite; }

.podium-av {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.podium-av--gold { border-color: var(--gold); box-shadow: 0 0 12px rgba(210,153,34,.5); }
.podium-av--placeholder {
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.podium-belt  { margin-top: 4px; }
.belt-svg     { width: 160px; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(201,146,26,.5)); }
.podium-medal { font-size: 1.3rem; margin-top: 3px; }

.podium-label { text-align: center; margin-bottom: 6px; max-width: 110px; }
.podium-name  { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.podium-pts   { font-size: 12px; color: var(--text2); }

.podium-block {
  display: flex; align-items: center; justify-content: center;
  width: 110px;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  border-radius: var(--radius) var(--radius) 0 0;
}
.podium-block--1 { height: 120px; background: linear-gradient(160deg, #c8a830, #a07020); }
.podium-block--2 { height: 88px;  background: linear-gradient(160deg, #909090, #606060); }
.podium-block--3 { height: 64px;  background: linear-gradient(160deg, #a06030, #7a4020); }

/* ─── Roster detail page ───────────────────────────────────────────── */
.roster-header-row { display: flex; align-items: center; gap: 12px; }
.roster-header-row .avatar { width: 48px; height: 48px; }
.roster-edit-name { font-size: 0.75rem; margin-left: 8px; vertical-align: middle; text-decoration: none; opacity: 0.45; transition: opacity .15s; }
.roster-edit-name:hover { opacity: 0.9; }
.roster-breakdown {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.roster-header {
  display: grid;
  grid-template-columns: 70px 1fr 44px 90px 80px;
  padding: 10px 16px;
  background: var(--bg3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text2);
  letter-spacing: .04em;
}
.roster-row {
  display: grid;
  grid-template-columns: 70px 1fr 44px 90px 80px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  align-items: center;
  font-size: 14px;
}
.roster-row--eliminated { opacity: .55; }
.roster-row--dropped { opacity: .5; }
.roster-section-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0 .5rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text2);
}
.roster-section-divider::before,
.roster-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.roster-row--hidden { opacity: .5; font-style: italic; }
.roster-row--empty { opacity: .65; border-style: dashed; text-decoration: none; color: inherit; }
.roster-row--empty .roster-slot,
.roster-row--empty .roster-hidden-label { color: #e74c3c; }
.roster-hidden-label { color: var(--text2); font-size: 13px; }
.roster-slot { font-weight: 700; font-size: 12px; color: var(--text2); }
.roster-player { display: flex; align-items: center; gap: 6px; }
.roster-team { display: flex; align-items: center; }
.team-logo-sm { width: 28px; height: 28px; object-fit: contain; }

@media (max-width: 600px) {
  /* Collapse to 3 columns: slot | player+team | mult+pts */
  .roster-header,
  .roster-row {
    grid-template-columns: 44px 1fr auto;
  }
  /* Hide Team and Multiplier header labels on mobile */
  .roster-header span:nth-child(3),
  .roster-header span:nth-child(4) { display: none; }
  /* Hide the separate team cell — team/pos is readable in the player cell */
  .roster-team { display: none; }
  /* Stack multiplier above points in the last cell */
  .roster-mult { display: none; }
  .roster-pts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  .roster-pts::before {
    content: attr(data-mult);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 5px;
  }
  .roster-pts[data-mult="1×"]::before { background: #21262d; color: #c9d1d9; }
  .roster-pts[data-mult="2×"]::before { background: #1a3a1a; color: #7ee787; }
  .roster-pts[data-mult="3×"]::before { background: #1a2e3a; color: #79c0ff; }
  .roster-pts[data-mult="4×"]::before { background: #2d2200; color: var(--gold); }
  .roster-player { font-size: 13px; }
  .roster-player .avatar-sm { width: 28px; height: 28px; }
}
.roster-mult { text-align: center; }
.roster-pts { text-align: right; font-weight: 700; color: var(--green); }

/* ─── Page header ──────────────────────────────────────────────────── */
.page-header { margin-bottom: 1.5rem; }
.season-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.season-tab { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; background: var(--bg3); color: var(--text2); border: 1px solid var(--border); transition: background .15s; }
.season-tab:hover { background: var(--bg2); color: var(--text1); }
.season-tab--active { background: var(--blue); color: #fff; border-color: var(--blue); }
.historical-banner { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; margin-bottom: 1.25rem; font-size: 13px; color: var(--text2); }
.page-header h1 { font-size: 1.6rem; font-weight: 700; }
.page-sub { color: var(--text2); font-size: 14px; margin-top: .25rem; display: flex; align-items: center; gap: .5rem; }

/* ─── Picks grid ───────────────────────────────────────────────────── */
.picks-hint {
  background: #1a2332;
  border: 1px solid #1f6feb55;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  color: #58a6ff;
  margin-bottom: 1.25rem;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.picks-row { margin-bottom: 1.75rem; }
.picks-row-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text2);
  margin-bottom: .6rem;
}

.pick-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: relative;
  transition: border-color .2s;
}
.pick-card:hover { border-color: var(--text2); }
.pick-card--eliminated { opacity: .6; border-color: var(--red) !important; }
.pick-card--locked { border-color: var(--gold) !important; cursor: default; }
.locked-label { font-size: 11px; color: var(--gold); font-weight: 600; margin-top: 2px; }

.schedule-list { display: flex; flex-direction: column; gap: 4px; }
.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.schedule-time { color: var(--text2); }

.player-item--locked { opacity: .45; cursor: not-allowed; }
.player-item--locked:hover { background: none; }

/* ─── Bracket ──────────────────────────────────────────────────────── */
.bracket {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.bracket-side { display: flex; gap: 1rem; }
.bracket-side--nfc { flex-direction: row-reverse; }
.bracket-conf-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text2);
  align-self: center;
  padding: 0 4px;
}
.bracket-side--nfc .bracket-conf-label { transform: rotate(180deg); }

.bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; flex: 1; min-width: 0; }
.bracket-round-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text2);
  text-align: center;
  margin-bottom: 4px;
}
.bracket-game {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bracket-game--bye { opacity: .7; }
.bracket-game--sb { border-color: var(--gold); }
.bracket-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
}
.bracket-team:first-child { border-bottom: 1px solid var(--border); }
.bracket-team--out { opacity: .4; text-decoration: line-through; }
.bracket-seed { font-size: 10px; color: var(--text2); width: 14px; text-align: center; flex-shrink: 0; }
.bracket-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.bracket-score { font-size: 13px; font-weight: 700; color: var(--text); flex-shrink: 0; min-width: 24px; text-align: right; margin-left: auto; }
.bracket-bye-label { padding: 6px 10px; font-size: 11px; color: var(--text2); text-align: center; }

.bracket-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding-top: 2rem;
}
.bracket-sb-label { text-align: center; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 10px; line-height: 1.4; }
.bracket-sb-tbd { color: var(--text2); font-size: 13px; padding: 1rem; }

@media (max-width: 700px) {
  .bracket {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bracket-side {
    flex-direction: column;
  }
  .bracket-side--nfc {
    flex-direction: column;
  }
  .bracket-conf-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 0;
    margin-bottom: .25rem;
  }
  .bracket-side--nfc .bracket-conf-label {
    transform: none;
  }
  .bracket-center {
    padding-top: 0;
    order: 3;
  }
}

/* ─── Home page "this week" matchup preview (simple cards, not full bracket) ─ */
.matchup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.matchup-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.matchup-team { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.matchup-abbr { font-weight: 700; font-size: 14px; width: 36px; }
.matchup-name { flex: 1; font-size: 13px; }
.matchup-at { text-align: center; color: var(--text2); font-size: 11px; padding: 2px 0; }

.pick-slot-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text2);
  margin-bottom: .5rem;
}

.pick-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.player-headshot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}

.pick-info { flex: 1; min-width: 0; }
.pick-player-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-team { font-size: 12px; color: var(--text2); }
.pick-pts { font-size: 14px; font-weight: 700; color: var(--green); margin-top: 2px; }
.multiplier { font-size: 11px; padding: 1px 5px; border-radius: 10px; font-weight: 700; margin-left: 4px; }
/* Shared multiplier color system — used by .multiplier (picks/roster pills) and .mult-badge (landing table) */
.mult-1, .mult-badge--1 { background: #21262d; color: #c9d1d9; }
.mult-2, .mult-badge--2 { background: #1a3a1a; color: #7ee787; }
.mult-3, .mult-badge--3 { background: #1a2e3a; color: #79c0ff; }
.mult-4, .mult-badge--4 { background: #2d2200; color: var(--gold); }
.eliminated-label { font-size: 11px; color: var(--red); font-weight: 600; margin-top: 2px; }

.pick-empty { width: 100%; }
.btn-pick {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text2);
  border-radius: var(--radius);
  padding: 20px 0;
  cursor: pointer;
  font-size: 13px;
  transition: all .15s;
}
.btn-pick:hover { border-color: var(--blue); color: var(--blue); background: #1f2d40; }
.pick-empty-label { color: var(--text2); font-size: 13px; }

.pick-clear-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.pick-clear-btn:hover { background: var(--bg3); color: var(--red); }

/* ─── Modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1rem; }
.modal-close { background: none; border: none; color: var(--text2); font-size: 1.2rem; cursor: pointer; }

.modal-search { padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-search input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 7px 12px;
  font-size: 14px;
}

.player-list {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.player-item:hover { background: var(--bg3); }
.player-item img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg3);
}
.player-item-info { flex: 1; }
.player-item-name { font-weight: 500; font-size: 14px; }
.player-item-meta { font-size: 12px; color: var(--text2); }
.player-item-pts { font-size: 13px; font-weight: 600; color: var(--green); text-align: right; }
.player-item-pts-label { display: block; font-size: 10px; font-weight: 400; color: var(--text2); text-transform: uppercase; letter-spacing: .03em; }
.player-item-pts-playoff { display: block; font-size: 11px; color: var(--gold); font-weight: 600; margin-top: 2px; }

.loading { text-align: center; padding: 2rem; color: var(--text2); }

/* ─── Admin ─────────────────────────────────────────────────────────── */
.alert { background: #1a2332; border: 1px solid #1f6feb55; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 1.5rem; font-size: 14px; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.admin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.admin-card h2 { font-size: 1rem; margin-bottom: .5rem; }
.admin-card p { color: var(--text2); font-size: 13px; margin-bottom: 1rem; }
.admin-card--wide { grid-column: 1 / -1; }
.admin-card--highlight { background: #1a2332; border-color: #1f6feb; }
.btn-admin--primary { background: var(--green); font-weight: 700; }
.btn-admin--primary:hover { background: var(--green-hover); }
.sim-preview { margin: 10px 0; }
.sim-preview-row { font-size: 13px; color: var(--text2); padding: 4px 0; }

/* ─── Admin tabs ────────────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.admin-tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .15s;
}
.admin-tab-btn:hover { color: var(--text); }
.admin-tab-btn.active { color: var(--text); border-bottom-color: #1f6feb; }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

.teams-grid { display: flex; flex-direction: column; gap: 6px; }
.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--bg3);
  border-radius: var(--radius);
  font-size: 13px;
}
.team-row--out { opacity: .5; }
.team-abbr { font-weight: 700; width: 36px; flex-shrink: 0; }
.team-name { flex: 1; }

/* ─── Error page ───────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-icon { font-size: 3rem; margin-bottom: 1rem; }
.error-page h1 { margin-bottom: 1.5rem; color: var(--text2); }

/* ─── Roster clickable rows ────────────────────────────────────────── */
.roster-row--clickable { cursor: pointer; transition: background .15s; }
.roster-row--clickable:hover { background: var(--bg3); }

/* ─── Player Stats Modal ───────────────────────────────────────────── */
.stats-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.stats-modal-overlay[hidden] { display: none; }
.stats-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%; max-width: 480px;
  max-height: 85vh; overflow-y: auto;
  position: relative;
}
.stats-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text2);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.stats-modal-close:hover { color: var(--text); }

.stats-player-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 1.25rem;
}
.stats-headshot { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.stats-player-name { font-size: 1.1rem; font-weight: 700; }
.stats-player-meta { font-size: 13px; color: var(--text2); margin-top: 2px; }

.stats-week { margin-bottom: 1.25rem; }
.stats-week-header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem; margin-bottom: .6rem;
}
.stats-week-name { font-weight: 600; font-size: 14px; }
.stats-week-pts { font-size: 13px; color: var(--text2); }

.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-table th { color: var(--text2); font-weight: 600; padding: 0 0 4px; text-align: left; }
.stats-table th:nth-child(2),
.stats-table th:nth-child(3) { text-align: right; }
.stats-table td { padding: 3px 0; }
.stat-val { text-align: right; padding-right: 16px; width: 60px; }
.stat-pts { text-align: right; color: var(--green); font-weight: 600; width: 60px; }
.stat-pts.neg { color: #e05c5c; }

.stats-total-row {
  border-top: 1px solid var(--border);
  padding-top: .75rem; margin-top: .5rem;
  text-align: right; font-size: 15px;
}
.stats-na { color: var(--text2); font-size: 13px; font-style: italic; margin: .25rem 0; }
.stats-loading { color: var(--text2); font-size: 13px; text-align: center; padding: 2rem; }

/* ─── Footer ───────────────────────────────────────────────────────── */
.footer { text-align: center; padding: 1.5rem; font-size: 12px; color: var(--text2); border-top: 1px solid var(--border); }

/* ─── Tip Jar nav button ────────────────────────────────────────────── */
.btn-tipjar {
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: none; border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 12px; color: var(--text2);
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-tipjar:hover { border-color: var(--gold); color: var(--gold); }
.nav-mobile-tipjar { color: var(--gold) !important; font-weight: 600; }

/* ─── Footer support strip ──────────────────────────────────────────── */
.footer-support { margin: .75rem 0; }
.footer-support-text { font-size: 13px; color: var(--text2); margin-bottom: .5rem; }
.footer-tip-amounts { display: flex; gap: .5rem; justify-content: center; }
.footer-tip-btn {
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 14px; color: var(--text2);
  transition: border-color .15s, color .15s, background .15s;
}
.footer-tip-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--bg); }

/* ─── Tip Jar modal ─────────────────────────────────────────────────── */
.tipjar-modal {
  display: none;
  position: fixed; inset: 0; align-items: center; justify-content: center;
  z-index: 300;
}
.tipjar-modal.is-open { display: flex; }
.tipjar-inner {
  position: relative; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 2rem 1.5rem; max-width: 360px; width: calc(100% - 2rem);
  text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.tipjar-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text2);
  line-height: 1; padding: 2px 6px; border-radius: 4px;
}
.tipjar-close:hover { color: var(--text); background: var(--bg3); }
.tipjar-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.tipjar-title { font-size: 20px; font-weight: 700; margin: 0 0 .75rem; }
.tipjar-desc { font-size: 14px; color: var(--text2); line-height: 1.6; margin: 0 0 1.25rem; }
.tipjar-amounts { display: flex; gap: .75rem; justify-content: center; margin-bottom: .75rem; }
.tipjar-amount-btn {
  font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--bg3); border: 2px solid var(--border); border-radius: 12px;
  padding: 10px 20px; color: var(--text);
  transition: border-color .15s, background .15s;
}
.tipjar-amount-btn:hover { border-color: var(--gold); background: var(--bg); }
.tipjar-msg { font-size: 13px; color: var(--text2); min-height: 1.2em; margin: 0; }

/* ─── League UI ────────────────────────────────────────────────────── */
.league-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.league-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface1); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; text-decoration: none; color: inherit; transition: background .15s;
}
.league-card:hover { background: var(--bg3); }
.league-card-name { font-weight: 700; font-size: 16px; flex: 1; }
.league-card-role { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.league-card-arrow { color: var(--text2); font-size: 18px; }
.league-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.form-card {
  background: var(--surface1); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; max-width: 480px; margin: 0 auto;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-group input { width: 100%; box-sizing: border-box; }
.form-group small { display: block; color: var(--text2); font-size: 12px; margin-top: 4px; }

.manage-section {
  background: var(--surface1); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 1.25rem;
}
.manage-section h2 { margin: 0 0 .75rem; font-size: 15px; }
.manage-section h3 { margin: 0 0 .5rem; font-size: 13px; color: var(--text2); }
.invite-url-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 12px; overflow: hidden;
}
.invite-url-box code { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-info { flex: 1; }

.btn-secondary {
  display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 600;
  font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface1); color: var(--text1); transition: background .15s;
}
.btn-secondary:hover { background: var(--bg3); }
.btn-danger { background: #3d1a1a; color: #e05c5c; border-color: #5a2020; }
.btn-danger:hover { background: #5a2020; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 1rem; font-size: 14px; }
.alert--success { background: #1a3d2b; border: 1px solid #2d6b45; color: #4ade80; }
.alert--error   { background: #3d1a1a; border: 1px solid #6b2d2d; color: #f87171; }
.alert--info    { background: #1a2a3d; border: 1px solid #1f4a6f; color: #7ab8f5; }

/* ── Scoring form ──────────────────────────────────────────────────────────── */
.scoring-group { margin-bottom: 1.25rem; }
.scoring-group-title { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem; }
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.scoring-grid label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--text2);
}
.scoring-grid input[type="number"] {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); padding: 6px 8px; font-size: 14px; width: 100%;
}
.scoring-grid input[type="number"]:focus { outline: none; border-color: #1f6feb; }
fieldset[disabled] .scoring-grid input[type="number"] {
  opacity: 0.55; cursor: not-allowed;
}

.league-card-row { display: flex; align-items: center; gap: 8px; }
.league-card-row .league-card { flex: 1; }
.league-card-leave-form { flex-shrink: 0; }

.maintenance-banner {
  background: #2a1f00; border-bottom: 1px solid #78500a; color: #fbbf24;
  text-align: center; padding: 10px 16px; font-size: 13px;
}
.maintenance-splash {
  text-align: center; padding: 5rem 1rem; max-width: 480px; margin: 0 auto;
}
.maintenance-splash-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.maintenance-splash h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: .75rem; }
.maintenance-splash p { color: var(--text2); margin-bottom: .5rem; }
.maintenance-splash-eta { margin-top: 1.25rem; font-size: 14px; }

/* ─── Landing page — extended content sections ─────────────────────────── */
.landing-section {
  margin: 2.5rem 0;
}
.landing-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.landing-section-sub {
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 1.25rem;
}

/* How it works steps */
.how-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.how-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}
.how-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1f6feb22;
  border: 1px solid #1f6feb55;
  color: #58a6ff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step strong { display: block; margin-bottom: .2rem; }
.how-step p { color: var(--text2); font-size: 13px; margin: 0; }

/* Multiplier table */
.mult-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mult-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.mult-row:last-child { border-bottom: none; }
.mult-row--head {
  background: var(--bg3);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text2);
}
.mult-badge {
  font-weight: 700;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 20px;
  min-width: 36px;
  text-align: center;
}
/* .mult-badge--1 through --4 colors defined above with .mult-1 through .mult-4 */

/* Lineup slots */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .6rem;
}
.lineup-slot {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .9rem;
  font-size: 14px;
}
.pos-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.pos-qb  { background: #1f2a3a; color: #58a6ff; }
.pos-rb  { background: #1a3a1a; color: #7ee787; }
.pos-wr  { background: #3a2a1a; color: #e3b341; }
.pos-te  { background: #2a1a3a; color: #bc8cff; }
.pos-flex{ background: #1e2a2a; color: #56d364; }
.pos-k   { background: #21262d; color: #8b949e; }
.pos-dst { background: #3a1a1a; color: #f78166; }

/* Scoring highlights */
.scoring-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.sh-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}
.sh-group h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .6rem;
}
.sh-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.sh-group li {
  font-size: 13px;
  color: var(--text);
}

/* ─── Footer nav ────────────────────────────────────────────────────── */
.footer-nav { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .75rem; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--text2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

/* ─── Public leaderboard join banner ────────────────────────────────── */
.public-join-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; margin-bottom: 1.25rem; font-size: 13px; color: var(--text2); flex-wrap: wrap; }

/* ─── Landing hero desc ─────────────────────────────────────────────── */
.hero-desc { max-width: 560px; margin: .75rem auto 0; font-size: 15px; color: var(--text2); line-height: 1.6; }
.btn-secondary { display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; background: var(--bg3); color: var(--text); border: 1px solid var(--border); transition: background .15s; }
.btn-secondary:hover { background: var(--bg2); }
.btn-secondary.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }

/* ─── FAQ page ──────────────────────────────────────────────────────── */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-section { margin-bottom: 2rem; }
.faq-section-title { font-size: 1.1rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.faq-list { margin: 0; padding: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: .9rem 0; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--text2); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 1rem 0; color: var(--text2); font-size: 14px; line-height: 1.7; margin: 0; }

/* ─── How to Play page ──────────────────────────────────────────────── */
.htp-section { max-width: 720px; margin: 0 auto 2.5rem; }
.htp-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.htp-intro { font-size: 16px; line-height: 1.7; color: var(--text2); }
.htp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.htp-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.htp-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.htp-steps h3 { font-size: 15px; font-weight: 700; margin: 0 0 .3rem; }
.htp-steps p { font-size: 14px; color: var(--text2); line-height: 1.6; margin: 0; }
.htp-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.htp-tip { display: flex; gap: .75rem; align-items: flex-start; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.htp-tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.htp-tip strong { display: block; font-size: 14px; margin-bottom: .3rem; }
.htp-tip p { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0; }

/* ─── ADP / Rankings page ───────────────────────────────────────────── */
.adp-meta { font-size: 12px; color: var(--text2); margin-top: .25rem; }
.adp-rankings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adp-rankings-table thead th { padding: 8px 10px; text-align: left; font-size: 11px; color: var(--text2); font-weight: 600; text-transform: uppercase; border-bottom: 2px solid var(--border); }
.adp-rankings-table tbody tr { border-bottom: 1px solid var(--border); }
.adp-rankings-table tbody tr:hover { background: var(--bg3); }
.adp-rank-cell { padding: 8px 10px; color: var(--text2); font-size: 13px; }
.adp-pos-cell { padding: 8px 10px; font-size: 12px; font-weight: 700; }
.adp-pos-qb  { color: #c0392b; }
.adp-pos-rb  { color: #27ae60; }
.adp-pos-wr  { color: #2980b9; }
.adp-pos-te  { color: #8e44ad; }
.adp-pos-k   { color: #d68910; }
.adp-pos-def { color: #616a6b; }

/* ─── News feed section ─────────────────────────────────────────────── */
.adp-news-section { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.adp-news-heading { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.adp-news-list { display: flex; flex-direction: column; gap: 1.25rem; }
.adp-news-item { padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.adp-news-item:last-child { border-bottom: none; }
.adp-news-title { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.4; display: block; margin-bottom: .35rem; }
.adp-news-title:hover { color: var(--blue); }
.adp-news-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adp-news-meta { display: flex; gap: 1rem; align-items: center; }
.adp-news-source { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; }
.adp-news-date { font-size: 12px; color: var(--text2); }

/* ─── Explore cards (landing page) ─────────────────────────────────── */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.explore-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color .15s; }
.explore-card:hover { border-color: var(--blue); }
.explore-icon { font-size: 2rem; line-height: 1; }
.explore-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.explore-card p { font-size: 14px; color: var(--text2); line-height: 1.6; margin: 0; flex: 1; }
.explore-link { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; align-self: flex-start; }
.explore-link:hover { text-decoration: underline; }

/* ─── ADP source note ──────────────────────────────────────────────────────── */
.adp-source-note { font-size: 12px; color: var(--text2); margin-top: .75rem; }

/* ─── ADP player rows (clickable with headshots) ───────────────────────────── */
.adp-player-row { cursor: pointer; }
.adp-name-cell  { padding: 8px 10px; display: flex; align-items: center; gap: 10px; }
.adp-row-hs-wrap {
  position: relative; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  overflow: hidden;
}
.adp-row-headshot {
  position: absolute; inset: 0;
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
}
.adp-row-headshot--logo { object-fit: contain; border-radius: 0; padding: 3px; }
.adp-row-name  { font-weight: 500; font-size: 14px; }
.adp-team-cell { padding: 8px 10px; font-size: 13px; color: var(--text2); white-space: nowrap; }
.adp-team-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 5px; }

/* ─── Player modal ─────────────────────────────────────────────────────────── */
.pm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 400;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 1rem 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  overflow-y: auto;
}
.pm-overlay.open { opacity: 1; pointer-events: auto; }

.pm-modal {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 720px;
  max-height: calc(95vh - 5vh);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  flex-shrink: 0;
}

/* Header (background color driven by JS) */
.pm-header {
  position: relative;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1.25rem;
  flex-shrink: 0; background: #252525;
}
.pm-close {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.4); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pm-close:hover { background: rgba(0,0,0,.65); }

.pm-photo {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
}
.pm-photo--logo { object-fit: contain; border-radius: 10px; padding: 6px; background: rgba(255,255,255,.15); }
.pm-photo-fallback {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.25);
  display: none; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
}

.pm-header-info { flex: 1; min-width: 0; padding-right: 32px; }
.pm-name {
  font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 0 .2rem;
  line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.pm-subline { font-size: 14px; color: rgba(255,255,255,.75); margin: 0 0 .75rem; font-weight: 500; }
.pm-rank-boxes { display: flex; border-top: 1px solid rgba(255,255,255,.15); padding-top: .6rem; }
.pm-rank-box {
  flex: 1; text-align: center;
  border-right: 1px solid rgba(255,255,255,.15); padding: 0 .4rem;
}
.pm-rank-box:last-child { border-right: none; }
.pm-rank-label { font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .1rem; }
.pm-rank-val { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.2; }
.pm-rank-val--sm { font-size: 12px; }

/* Tab bar */
.pm-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  flex-shrink: 0; overflow-x: auto; scrollbar-width: none;
}
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tab {
  flex-shrink: 0; padding: .75rem 1.1rem; font-size: 13px; font-weight: 600;
  color: var(--text2); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.pm-tab:hover { color: var(--text); }
.pm-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Content panes */
.pm-content { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pm-pane { display: none; padding: 1.25rem; }
.pm-pane.active { display: block; }

/* News items in modal */
.pm-news-item {
  display: flex; flex-direction: column; gap: .3rem;
  padding: .75rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.pm-news-item:last-child { border-bottom: none; }
.pm-news-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.45; }
.pm-news-item:hover .pm-news-title { color: var(--blue); }
.pm-news-meta { font-size: 11px; color: var(--text2); }
.pm-news-source { font-weight: 700; text-transform: uppercase; }

/* Stats tables */
.pm-stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pm-stats-table th {
  padding: 6px 10px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text2); font-weight: 700;
  border-bottom: 2px solid var(--border); text-align: right; white-space: nowrap;
}
.pm-stats-table th:first-child { text-align: left; }
.pm-stats-table tbody tr { border-bottom: 1px solid var(--border); }
.pm-stats-table tbody tr:last-child { border-bottom: none; }
.pm-stats-table tbody tr:hover { background: var(--bg3); }
.pm-wk-cell { padding: 7px 10px; font-weight: 700; color: var(--text2); font-size: 12px; text-align: left; }
.pm-fpts-cell { padding: 7px 10px; font-weight: 700; color: var(--green); text-align: right; }
.pm-stat-cell { padding: 7px 10px; text-align: right; color: var(--text); }
.pm-season-table .pm-stat-cell:first-child { font-weight: 600; text-align: left; color: var(--text2); }
.pm-stats-note { font-size: 11px; color: var(--text2); margin-top: .75rem; }

/* Depth chart */
.pm-depth-pos { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); margin-bottom: .75rem; }
.pm-depth-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.pm-depth-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg);
}
.pm-depth-item--current { border-color: var(--blue); background: rgba(41,128,185,.07); }
.pm-depth-num { font-size: 12px; font-weight: 700; color: var(--text2); width: 34px; flex-shrink: 0; }
.pm-depth-name { flex: 1; font-weight: 500; font-size: 14px; }
.pm-depth-item--current .pm-depth-name { color: var(--blue); }
.pm-depth-rank { font-size: 12px; color: var(--text2); }
.pm-depth-note { font-size: 11px; color: var(--text2); margin-top: 1rem; line-height: 1.5; }

/* Loading / empty states */
.pm-loading { color: var(--text2); font-size: 14px; }
.pm-empty   { color: var(--text2); font-size: 14px; }

/* Mobile: top-anchored sheet */
@media (max-width: 600px) {
  .pm-overlay { padding: 2vh 0 0; align-items: flex-start; }
  .pm-modal { max-width: 100%; max-height: 92vh; border-radius: 12px; }
  .pm-name { font-size: 1.1rem; }
  .pm-photo, .pm-photo-fallback { width: 60px; height: 60px; }
}

/* ─── Top 100 table ───────────────────────────────────────────────────────── */
.t100-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t100-head { border-bottom: 2px solid var(--border); }
.t100-th { padding: 8px 12px; font-size: 11px; color: var(--text2); font-weight: 600; text-transform: uppercase; text-align: left; white-space: nowrap; }
.t100-th--pts { text-align: right; }
.t100-th--rank { width: 44px; }

.t100-row { border-bottom: 1px solid var(--border); transition: background .12s; cursor: pointer; }
.t100-row:hover { background: var(--bg3); }
.t100-row--you { background: #0d2137; }
.t100-row--you:hover { background: #0f2a45; }

.t100-rank { padding: 10px 12px; font-weight: 700; color: var(--text2); white-space: nowrap; font-size: 15px; width: 44px; }
.t100-rank-num { font-size: 13px; }
.t100-manager { padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.t100-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.t100-name { font-weight: 400; }
.t100-name--you { font-weight: 700; }
.t100-you-badge { font-size: 11px; color: var(--text2); background: var(--bg3); border-radius: 4px; padding: 1px 5px; }
.t100-pts { padding: 10px 12px; text-align: right; font-weight: 600; white-space: nowrap; }
.t100-footnote { font-size: 12px; color: var(--text2); margin-top: 1rem; text-align: center; }

/* ─── Roster modal (Top 100 click-through) ────────────────────────────────── */
.rm-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 2rem));
  max-height: min(90vh, 700px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 12px 48px rgba(0,0,0,.6);
  z-index: 300; display: none; flex-direction: column; overflow: hidden;
}
.rm-modal.is-open { display: flex; }
.rm-header {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  padding: 16px 16px 0; border-bottom: 1px solid var(--border);
  gap: 8px; flex-shrink: 0;
}
.rm-user-row { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.rm-avatar-lg { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rm-user-info { flex: 1; min-width: 0; }
.rm-manager-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-week-label { font-size: 12px; color: var(--text2); margin-top: 2px; }
.rm-total-pts { font-size: 18px; font-weight: 800; color: var(--green); white-space: nowrap; }
.rm-close {
  background: rgba(255,255,255,.08); border: none; border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); font-size: 14px; flex-shrink: 0;
  transition: background .15s;
}
.rm-close:hover { background: rgba(255,255,255,.18); }

.rm-weekly-strip {
  width: 100%; display: flex; gap: 0;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.rm-wk-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px; gap: 2px;
  border-right: 1px solid var(--border);
}
.rm-wk-item:last-child { border-right: none; }
.rm-wk-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); }
.rm-wk-val   { font-size: 14px; font-weight: 700; color: var(--text); }

.rm-body { flex: 1; overflow-y: auto; padding: 14px; }
.rm-loading { color: var(--text2); font-size: 13px; text-align: center; padding: 2rem 0; }
.rm-empty   { color: var(--text2); font-size: 13px; text-align: center; padding: 2rem 0; }

.rm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rm-card {
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  display: flex; flex-direction: column;
}
.rm-card--elim { opacity: .65; }
.rm-card--hidden .rm-card-body,
.rm-card--empty .rm-card-body {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px 8px; min-height: 70px;
}

.rm-slot-strip {
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.9);
  padding: 3px 8px; text-align: center;
}

.rm-card-body {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 6px; flex: 1;
}
.rm-headshot {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; background: var(--bg2);
}
.rm-player-info { flex: 1; min-width: 0; }
.rm-player-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-player-team { font-size: 10px; color: var(--text2); }
.rm-elim-badge  { font-size: 9px; font-weight: 700; color: var(--red); text-transform: uppercase; margin-top: 2px; }

.rm-pts-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.rm-pts-val  { font-size: 12px; font-weight: 700; }

.rm-lock-icon { font-size: 16px; }
.rm-lock-text { font-size: 10px; color: var(--text2); text-align: center; margin-top: 2px; }
.rm-card--hidden .rm-card-body { flex-direction: column; gap: 4px; }
.rm-empty-dash { font-size: 20px; color: var(--border); }

@media (max-width: 480px) {
  .rm-modal { top: auto; bottom: 0; left: 0; right: 0; transform: none;
    width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; }
  .rm-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .rm-player-name { font-size: 10px; }
}
