/* ============================================================
   Deuce Goose — Strawberry Fizz / Candy Bento Design System
   ============================================================ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* ── Core backgrounds ── */
  --color-bg:            #FFFBF5;
  --color-bg-alt:        #FFF5EB;
  --color-card:          #FFFFFF;

  /* ── Brand primaries ── */
  --color-pink:          #f277a6;
  --color-pink-dark:     #c94d7a;
  --color-pink-pale:     #fde8f2;
  --color-lime:          #daffb0;
  --color-lime-dark:     #9ed45a;
  --color-lime-pale:     #f0ffe0;

  /* ── Legacy primary aliases (migration shim) ── */
  --color-primary:       var(--color-pink-dark);
  --color-primary-light: var(--color-pink-dark);

  /* ── Typography ── */
  --color-text:          #3b3631;
  --color-text-muted:    #7a6a62;
  --color-text-on-pink:  #ffffff;
  --color-text-on-lime:  #3b3631;

  /* ── Borders ── */
  --color-border:        #f5d0e0;
  --color-border-warm:   #E8DDD4;
  --color-ink-faint:     rgba(59,54,49,0.14);

  /* ── Semantic states ── */
  --color-success:       #2F9E44;
  --color-success-pale:  #d3f9d8;
  --color-warning:       #f59f00;
  --color-warning-pale:  #fff3bf;
  --color-danger:        #e03131;
  --color-danger-pale:   #ffe3e3;
  --color-info:          #4C6EF5;
  --color-info-pale:     #e8f4fd;

  /* ── Secondary brand ── */
  --color-secondary:     #FF922B;
  --color-amber:         #f59f00;
  --color-teal:          #059669;

  /* ── Gender ── */
  --color-gender-m:      #4C6EF5;
  --color-gender-w:      var(--color-pink-dark);

  /* ── AI / Special ── */
  --color-ai-text:       #9333ea;
  --color-ai-bg:         #f3e8ff;
  --color-team:          #8B5CF6;

  /* ── Finals groups ── */
  --color-group-red:     #E03131;

  /* ── Admin status ── */
  --color-status-complete: #2F9E44;
  --color-status-pending:  #e65100;
  --color-status-active:   #1565c0;
  --color-status-error:    var(--color-danger);

  /* ── Gradients ── */
  --gradient-primary: linear-gradient(135deg, #f277a6 0%, #e63980 60%, #c94d7a 100%);
  --gradient-soft:    linear-gradient(135deg, #fde8f2 0%, #ffe8d6 50%, #fef9e7 100%);
  --gradient-hero:    linear-gradient(160deg, #FFFBF5 0%, #fde8f2 30%, #ffe8d6 60%, #f0ffe0 100%);
  --gradient-cta:     linear-gradient(135deg, #f277a6 0%, #daffb0 100%);

  /* ── Shadows ── */
  --shadow-card:     0 2px 6px rgba(0,0,0,0.05);
  --shadow-elevated: 0 6px 24px rgba(242,119,166,0.15);
  --shadow-button:   0 4px 16px rgba(242,119,166,0.30);

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* ── Spacing ── */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   14px;
  --space-lg:   20px;
  --space-page: 16px;

  /* ── Typography ── */
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* ── Type scale ──
     2xs  → tiny labels, badges, gender tags
     xs   → captions, metadata, sub-labels
     sm   → secondary text, card descriptions
     base → body text
     md   → emphasis, sub-headings
     lg   → section headings
     xl   → page titles
     2xl  → hero display text
     3xl  → decorative / large display
  */
  --font-2xs:  9px;
  --font-xs:   11px;
  --font-sm:   13px;
  --font-base: 16px;
  --font-md:   17px;
  --font-lg:   20px;
  --font-xl:   24px;
  --font-2xl:  28px;
  --font-3xl:  36px;

  /* ── Tier tokens (pundit articles) ── */
  --tier-1-bg:    #FAD0DF;  --tier-1-text: #7A1A40;
  --tier-2-bg:    #C8DFFA;  --tier-2-text: #1A3D6A;
  --tier-3-bg:    #C2E0C8;  --tier-3-text: #1A4D24;
  --tier-4-bg:    #F0E0A0;  --tier-4-text: #6A5010;
  --tier-1-row-bg: #FFFAFB;  --tier-1-row-border: #EEB8CC;
  --tier-2-row-bg: #FAFCFF;  --tier-2-row-border: #B8D4EE;
  --tier-3-row-bg: #FAFBFA;  --tier-3-row-border: #AACFB0;
  --tier-4-row-bg: #FEFDFB;  --tier-4-row-border: #DDD09A;

}

/* ── League Theme Overrides ──
   Each league defines the SAME set of tokens so all components
   can reference them without per-league CSS selectors.           */

[data-league="diamond"] {
  /* Core brand */
  --league-accent:      #1e90ff;
  --league-accent-pale: rgba(30,144,255,0.12);
  --league-gradient-start: #38b6ff;
  --league-gradient-end:   #1e5fff;

  /* Backgrounds & gradients */
  --gradient-hero:      linear-gradient(160deg, #f0f8ff, #dbeeff, #c8e8ff, #f0ffe0);
  --gradient-soft:      linear-gradient(135deg, #e8f4fd, #dbeeff, #f0ffe0);
  --color-bg-alt:       #f0f8ff;

  /* Hero card: dark-background mode */
  --league-hero-overlay:  rgba(10, 32, 80, 0.88);
  --league-hero-divider:  rgba(255,255,255,0.08);
  --league-hero-text:     white;
  --league-hero-muted:    rgba(180, 210, 255, 0.65);
  --league-hero-stat-bg:  rgba(30, 95, 255, 0.35);
  --league-hero-link:     #90c8ff;
  --league-hero-fi-days:  #1e90ff;

  /* Hero name / tagline (on background image) */
  --league-hero-name:     #3b3631;
  --league-hero-tagline:  #7a6a62;
  --league-hero-desc:     #7a6a62;

  /* Finals section text */
  --league-finals-label:  rgba(180, 210, 255, 0.65);
  --league-finals-name:   white;
  --league-finals-meta:   rgba(180, 210, 255, 0.65);
  --league-finals-dlabel: rgba(180, 210, 255, 0.65);

  /* Progress bar */
  --league-prog-bar-bg:   rgba(255,255,255,0.15);
}

[data-league="strawberry"] {
  /* Core brand */
  --league-accent:      #1b5e38;
  --league-accent-pale: rgba(27,94,56,0.12);
  --league-gradient-start: #2d8a56;
  --league-gradient-end:   #1b5e38;

  /* Backgrounds & gradients */
  --gradient-hero:      linear-gradient(160deg, #f0fff4, #d3f9d8, #b2f2bb, #f0ffe0);
  --gradient-soft:      linear-gradient(135deg, #d3f9d8, #b2f2bb, #f0ffe0);
  --color-bg-alt:       #f0fff4;

  /* Hero card: dark-background mode */
  --league-hero-overlay:  rgba(10, 45, 22, 0.88);
  --league-hero-divider:  rgba(255,255,255,0.08);
  --league-hero-text:     white;
  --league-hero-muted:    rgba(180, 240, 200, 0.65);
  --league-hero-stat-bg:  rgba(45, 138, 86, 0.45);
  --league-hero-link:     #90dbb0;
  --league-hero-fi-days:  #1b5e38;

  /* Hero name / tagline (on green lawn background) */
  --league-hero-name:     #0a2d16;
  --league-hero-tagline:  #1b5e38;
  --league-hero-desc:     #1a4a2a;

  /* Finals section text (dark bg) */
  --league-finals-label:  rgba(180, 240, 200, 0.65);
  --league-finals-name:   white;
  --league-finals-meta:   rgba(180, 240, 200, 0.65);
  --league-finals-dlabel: rgba(180, 240, 200, 0.65);

  /* Progress bar */
  --league-prog-bar-bg:   rgba(255,255,255,0.15);
}

[data-league="dirtdevils"] {
  /* Core brand */
  --league-accent:      #e05a00;
  --league-accent-pale: rgba(224,90,0,0.1);
  --league-gradient-start: #d4602a;
  --league-gradient-end:   #a03010;

  /* Backgrounds & gradients */
  --gradient-hero:      linear-gradient(160deg, #fff8f0, #ffe0c0, #ffd4b0, #f0ffe0);
  --gradient-soft:      linear-gradient(135deg, #ffe8d6, #ffd4b0, #f0ffe0);
  --color-bg-alt:       #fff8f0;

  /* Hero card: dark-background mode */
  --league-hero-overlay:  rgba(0, 0, 0, 0.2);
  --league-hero-divider:  rgba(255,255,255,0.12);
  --league-hero-text:     white;
  --league-hero-muted:    rgba(255,255,255,0.65);
  --league-hero-stat-bg:  rgba(0,0,0,0.2);
  --league-hero-link:     #ffd060;
  --league-hero-fi-days:  #e05a00;

  /* Hero name / tagline (on clay court background) */
  --league-hero-name:     #ffffff;
  --league-hero-tagline:  rgba(255,240,200,0.9);
  --league-hero-desc:     rgba(255,225,185,0.85);

  /* Finals section text (dark bg in dirt devils) */
  --league-finals-label:  rgba(255,255,255,0.6);
  --league-finals-name:   white;
  --league-finals-meta:   rgba(255,255,255,0.6);
  --league-finals-dlabel: rgba(255,255,255,0.55);

  /* Progress bar */
  --league-prog-bar-bg:   rgba(255,255,255,0.15);
}

/* ── Diamond hero effects ── */
body[data-league="diamond"] .hero-top {
  background: linear-gradient(160deg, #b8e0ff 0%, #c4b8ff 20%, #b8f0ff 40%, #d4b8ff 60%, #b8ecff 80%, #e0d4ff 100%);
}
body[data-league="diamond"] .hero-facets {
  display: block; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image:
    linear-gradient(36deg,  transparent 42%, rgba(255,255,255,0.22) 43%, rgba(255,255,255,0.22) 44%, transparent 45%),
    linear-gradient(72deg,  transparent 38%, rgba(200,230,255,0.28) 39%, rgba(200,230,255,0.28) 40%, transparent 41%),
    linear-gradient(108deg, transparent 48%, rgba(255,255,255,0.18) 49%, rgba(255,255,255,0.18) 50%, transparent 51%),
    linear-gradient(144deg, transparent 35%, rgba(180,210,255,0.24) 36%, rgba(180,210,255,0.24) 37%, transparent 38%),
    linear-gradient(54deg,  transparent 62%, rgba(210,240,255,0.2)  63%, rgba(210,240,255,0.2)  64%, transparent 65%);
  animation: facetBreath 7s ease-in-out infinite alternate;
}
@keyframes facetBreath { 0% { opacity: 0.8; } 100% { opacity: 1; } }
body[data-league="diamond"] .hero-shimmer {
  display: block; position: absolute; inset: -20%; pointer-events: none;
  background: conic-gradient(from 195deg at 70% 45%,
    rgba(80,180,255,0.65) 0deg, rgba(160,100,255,0.55) 35deg,
    rgba(80,240,255,0.55) 70deg, rgba(140,255,200,0.45) 105deg,
    rgba(100,180,255,0.6) 140deg, rgba(200,120,255,0.5) 175deg,
    rgba(80,220,255,0.55) 210deg, rgba(255,160,220,0.35) 245deg,
    rgba(100,200,255,0.6) 280deg, rgba(80,180,255,0.65) 360deg);
  mix-blend-mode: screen;
  animation: prismSpin 8s ease-in-out infinite alternate;
}
@keyframes prismSpin {
  0%   { transform: rotate(-4deg) scale(1);    opacity: 0.7; }
  50%  { transform: rotate(0deg)  scale(1.03); opacity: 1;   }
  100% { transform: rotate(4deg)  scale(1.01); opacity: 0.8; }
}
body[data-league="diamond"] .hero-flash {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 0%, transparent 30%,
    rgba(255,255,255,0.5) 45%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.5) 55%,
    transparent 70%, transparent 100%);
  animation: lightFlash 5s ease-in-out infinite;
  transform: translateX(-120%);
}
@keyframes lightFlash {
  0%   { transform: translateX(-120%) skewX(-15deg); opacity: 0; }
  10%  { opacity: 1; }
  40%  { transform: translateX(120%) skewX(-15deg); opacity: 0; }
  100% { transform: translateX(120%) skewX(-15deg); opacity: 0; }
}
/* Diamond finals — uses global body[data-league] overlay rules */

/* ── Dirt Devils hero ── */
body[data-league="dirtdevils"] .hero-top {
  background: linear-gradient(160deg, #e8724a 0%, #d4602a 30%, #b84a1a 60%, #c25030 100%);
}
body[data-league="dirtdevils"] .hero-top .hero-name { color: var(--league-hero-name); }
body[data-league="dirtdevils"] .hero-top .hero-tagline { color: var(--league-hero-tagline); }
body[data-league="dirtdevils"] .hero-top .hero-desc { color: var(--league-hero-desc); }
/* Dirt Devils stats/finals — uses global body[data-league] overlay rules */

/* Dirt Devils clay court */
body[data-league="dirtdevils"] .clay-court { position: absolute; inset: 0; z-index: 0; }
body[data-league="dirtdevils"] .clay-base {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #e8724a 0%, #d4602a 30%, #b84a1a 60%, #c25030 100%);
}
body[data-league="dirtdevils"] .clay-grit {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 18px),
    radial-gradient(circle at 20% 30%, rgba(200,80,0,0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(220,100,0,0.12) 0%, transparent 35%);
}
body[data-league="dirtdevils"] .clay-light {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 20%, rgba(255,220,100,0.3) 0%, transparent 70%);
}
body[data-league="dirtdevils"] #dustCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 10;
}
body[data-league="dirtdevils"] .devil-watermark {
  position: absolute; right: 8px; bottom: -12px;
  font-size: 88px; line-height: 1; z-index: 4; opacity: 0.13; transform: rotate(5deg);
}
body[data-league="dirtdevils"] .hero-inner { position: relative; z-index: 5; }

/* ── Strawberries hero background ── */
body[data-league="strawberry"] .hero-top {
  background: #ceecd6;
  position: relative;
  overflow: hidden;
}

body[data-league="strawberry"] .strawberry-bg {
  position: absolute;
  inset: 0;
}

body[data-league="strawberry"] .sb-lawn {
  position: absolute; inset: 0;
  background: #ceecd6;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(27,94,56,0.1) 0px, rgba(27,94,56,0.1) 22px,
    rgba(45,138,86,0.05) 22px, rgba(45,138,86,0.05) 44px
  );
}

body[data-league="strawberry"] .sb-lawn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 15% 20%,
    rgba(255,255,255,0.3) 0%, transparent 70%);
}

body[data-league="strawberry"] #petalCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}

body[data-league="strawberry"] .sb-watermark {
  position: absolute; right: -6px; bottom: -14px;
  font-size: 96px; line-height: 1;
  z-index: 1; opacity: 0.13;
  transform: rotate(-8deg);
  animation: sbBob 4s ease-in-out infinite;
}
@keyframes sbBob {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%       { transform: rotate(-8deg) translateY(-7px); }
}

body[data-league="strawberry"] .hero-inner {
  position: relative;
  z-index: 3;
}

body[data-league="strawberry"] .hero-top .hero-name { color: var(--league-hero-name); }
body[data-league="strawberry"] .hero-top .hero-tagline { color: var(--league-hero-tagline); }
body[data-league="strawberry"] .hero-top .hero-desc { color: var(--league-hero-desc); }

/* Strawberry finals — uses global body[data-league] overlay rules */

/* ── 2. RESET / BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

body {
  font-family: var(--font-sans);
  font-size: var(--font-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); text-decoration: underline; }
a[class]:hover { text-decoration: none; }

/* Fraunces for display headings */
h1, h2,
.hero-name,
[class*="league-name"],
[class*="display"] {
  font-family: var(--font-serif);
}

/* Fraunces for large stat numbers */
.hs-val,
.hero-stat-val,
.stat-val,
.lb-total,
.fi-days,
.myteam-pts,
[class*="stat-val"],
[class*="points-val"],
[class*="countdown"] {
  font-family: var(--font-serif);
}

/* Fraunces for rank numbers */
.lb-rank,
[class*="lb-rank"],
[class*="rank-num"] {
  font-family: var(--font-serif);
}

/* Fraunces italic for taglines */
.hero-tagline,
[class*="tagline"] {
  font-family: var(--font-serif);
  font-style: italic;
}

h1 { font-size: var(--font-xl); font-weight: 900; color: var(--color-text); margin-bottom: 0.75rem; }
h2 { font-size: var(--font-sm); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin: 1.25rem 0 0.6rem; }
h3 { font-size: var(--font-sm); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin: 1rem 0 0.5rem; }
h4 { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); margin: 0.75rem 0 0.4rem; }

p { margin-bottom: 0.75rem; }
ul, ol { margin-bottom: 0.75rem; }

/* Skip navigation */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-nav:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}

/* Focus indicator */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── 3. LAYOUT ─────────────────────────────────────────────── */

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--gradient-primary);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left  { display: flex; align-items: center; gap: 8px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-title {
  font-weight: 800;
  color: #fff;
  font-size: var(--font-base);
  text-decoration: none;
}
.topbar-title:hover { color: rgba(255,255,255,0.85); text-decoration: none; }

.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: var(--font-xs);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-user-btn:hover { background: rgba(255,255,255,0.3);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb span:last-child { color: var(--color-text); font-weight: 600; }

/* Page layout */
.page-wrapper { min-height: 100vh; }
.main-content {
  padding: var(--space-page);
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 98px);
}

/* ── 4. FLASH MESSAGES ─────────────────────────────────────── */
.flash-messages { padding: 0 var(--space-page); max-width: 1100px; margin: 0 auto var(--space-sm); }
.flash {
  padding: 8px 14px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 500;
  border: 1px solid;
}
.flash--error   { border-color: rgba(224,49,49,0.3); background: rgba(224,49,49,0.06); color: var(--color-danger); }
.flash--success { border-color: rgba(47,158,68,0.3); background: rgba(47,158,68,0.06); color: var(--color-success); }

/* ── 5. BENTO COMPONENTS ───────────────────────────────────── */

/* Bento Header */
.bento-header {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 12px;
  margin-bottom: 14px;
}
.bento-grid {
  display: grid;
  gap: var(--space-sm);
}
.bento-grid--2   { grid-template-columns: repeat(2, 1fr); }
.bento-grid--3   { grid-template-columns: repeat(3, 1fr); }
.bento-grid--2-1 { grid-template-columns: 2fr 1fr; }

/* Bento Stat Card */
.bento-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.bento-card--link { text-decoration: none; color: inherit; cursor: pointer; display: block; }
.bento-card--link:hover { filter: brightness(1.08); }
.bento-card--gradient {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-elevated);
}
.bento-card__icon  { font-size: var(--font-base); line-height: 1; margin-bottom: 4px; }
.bento-card__label {
  font-size: var(--font-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.bento-card--gradient .bento-card__label { color: rgba(255,255,255,0.7); }
.bento-card__value {
  font-size: var(--font-lg);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
}
.bento-card--gradient .bento-card__value { color: #fff; }
.bento-card__sub {
  font-size: var(--font-2xs);
  color: var(--color-text-muted);
  margin-top: 3px;
}
.bento-card--gradient .bento-card__sub { color: rgba(255,255,255,0.7); }

/* ── 6. STATUS PILL ────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: var(--font-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-pill--live     { background: rgba(230,57,128,0.09); color: var(--color-primary); }
.status-pill--complete { background: rgba(47,158,68,0.09);  color: var(--color-success); }
.status-pill--upcoming { background: rgba(156,123,104,0.09); color: var(--color-text-muted); }
/* Hype Mode effective_status variants */
.status-pill--horizon  { background: rgba(156,123,104,0.09); color: var(--color-text-muted); }
.status-pill--lockin   { background: rgba(24,100,171,0.10);  color: var(--color-status-active); }
.status-pill--gotime   { background: rgba(230,119,0,0.10);   color: #d9480f; }
.status-pill--gameon   { background: rgba(230,57,128,0.09);  color: var(--color-primary); }
.status-pill--complete { background: rgba(47,158,68,0.09);   color: var(--color-success); }

/* ── 7. TOURNAMENT CARD ROW ────────────────────────────────── */
.tournament-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.tournament-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
}
.tournament-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-elevated);
  text-decoration: none;
  color: inherit;
}
.tournament-card__left   { display: flex; flex-direction: column; gap: 3px; }
.tournament-card__name   { font-weight: 700; font-size: var(--font-sm); color: var(--color-text); }
.tournament-card__meta   { font-size: var(--font-2xs); color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.tournament-card__right  { display: flex; align-items: center; gap: 8px; }

/* ── Tournament Card Skins ──────────────────────────────────── */
/* Base: all themed cards use relative+overflow for pseudo-elements */
.tournament-card[data-theme]:not([data-theme=""]) { position: relative; overflow: hidden; }

/* ─ 🍓 Strawberries & Cream ─────────────────────────────────── */
/* Upcoming: white (no change) */

/* Live: deep grass green with lawn-mowing stripes + centre line */
.tournament-card[data-theme="strawberry"][data-state="live"] {
  background: #1B6E3D;
  border-color: #145a30;
  color: #fff;
}
.tournament-card[data-theme="strawberry"][data-state="live"]::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 28px, transparent 28px 56px);
}
.tournament-card[data-theme="strawberry"][data-state="live"]::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(255,255,255,0.2); pointer-events: none;
}
.tournament-card[data-theme="strawberry"][data-state="live"] .tournament-card__name { color: #fff; }
.tournament-card[data-theme="strawberry"][data-state="live"] .tournament-card__meta { color: rgba(255,255,255,0.7); }

/* Complete: sage green, flat */
.tournament-card[data-theme="strawberry"][data-state="complete"] {
  background: #D5E8D5;
  border-color: #A8CCA8;
}
.tournament-card[data-theme="strawberry"][data-state="complete"] .tournament-card__name { color: #0F4D28; }
.tournament-card[data-theme="strawberry"][data-state="complete"] .tournament-card__meta { color: #2D7A45; }

/* ─ 💎 Diamond ───────────────────────────────────────────────── */
/* Upcoming: white (no change) */

/* Live: pearlescent gradient + multicolour sparkle stars */
.tournament-card[data-theme="diamond"][data-state="live"] {
  background: #e8f4fd;
  border-color: #1e90ff;
}
.tournament-card[data-theme="diamond"][data-state="live"]::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='600' viewBox='0 0 400 600'%3E%3Cg transform='translate(35,55) rotate(-18) scale(0.90)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3Cg transform='translate(240,35) rotate(25) scale(1.10)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3Cg transform='translate(360,115) rotate(-32) scale(0.85)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3Cg transform='translate(75,195) rotate(20) scale(1.00)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3Cg transform='translate(300,180) rotate(-10) scale(1.15)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3Cg transform='translate(50,370) rotate(33) scale(0.90)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3Cg transform='translate(195,330) rotate(-25) scale(1.05)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3Cg transform='translate(345,445) rotate(15) scale(0.95)'%3E%3Cellipse cx='0' cy='0' rx='2.5' ry='6' transform='rotate(-20 0 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='-4' rx='2.5' ry='6' fill='%23888'/%3E%3Cellipse cx='12' cy='0' rx='2.5' ry='6' transform='rotate(20 12 0)' fill='%23888'/%3E%3Cellipse cx='6' cy='10' rx='5' ry='4' fill='%23888'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 60px;
}
.tournament-card[data-theme="diamond"][data-state="live"] .tournament-card__name { color: #1a2a3a; }

/* Complete: silver-lavender, faded residual sparkles */
.tournament-card[data-theme="diamond"][data-state="complete"] {
  background: #dbeeff;
  border-color: #5a9fd4;
}
.tournament-card[data-theme="diamond"][data-state="complete"]::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M30 15 L31 12 L32 15 L35 16 L32 17 L31 20 L30 17 L27 16 Z' fill='%23534AB7' opacity='0.09'/%3E%3Cpath d='M70 10 L71 8 L72 10 L74 11 L72 12 L71 14 L70 12 L68 11 Z' fill='%23534AB7' opacity='0.08'/%3E%3Cpath d='M100 35 L101 33 L102 35 L104 36 L102 37 L101 39 L100 37 L98 36 Z' fill='%233C3489' opacity='0.09'/%3E%3C/svg%3E");
  background-size: 120px 60px;
}
.tournament-card[data-theme="diamond"][data-state="complete"] .tournament-card__name { color: #1a3a6c; }
.tournament-card[data-theme="diamond"][data-state="complete"] .tournament-card__meta { color: #1a3a6c; }

/* ─ 😈 Dirt Devils ───────────────────────────────────────────── */
/* Upcoming: white (no change) */

/* Live: rich terracotta + clay court line markings */
.tournament-card[data-theme="dirtdevils"][data-state="live"] {
  background: #B84520;
  border-color: #8a3318;
  color: #fff;
}
.tournament-card[data-theme="dirtdevils"][data-state="live"]::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  /* Court lines: centre horizontal, service-box verticals, service horizontals */
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.22) 100%),
    linear-gradient(to right, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 100%),
    linear-gradient(to right, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.22) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.22) 100%);
  background-size: 100% 1px, 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-repeat: no-repeat;
  background-position: 0 50%, 0 25%, 0 75%, 35% 0, 65% 0;
}
.tournament-card[data-theme="dirtdevils"][data-state="live"] .tournament-card__name { color: #fff; }
.tournament-card[data-theme="dirtdevils"][data-state="live"] .tournament-card__meta { color: rgba(255,255,255,0.75); }

/* Complete: dusty clay tan, flat */
.tournament-card[data-theme="dirtdevils"][data-state="complete"] {
  background: #DBBFA0;
  border-color: #C4A880;
}
.tournament-card[data-theme="dirtdevils"][data-state="complete"] .tournament-card__name { color: #4A1B0C; }
.tournament-card[data-theme="dirtdevils"][data-state="complete"] .tournament-card__meta { color: #712B13; }

/* ── 8. PODIUM LEADERBOARD ─────────────────────────────────── */
.podium-container {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.podium-label {
  font-size: var(--font-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.podium-top3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.podium-entry {
  border-radius: var(--radius-md);
  padding: 8px 12px;
  min-width: 80px;
  text-align: center;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.podium-entry--first {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
  padding: 12px 16px;
  min-width: 100px;
}
.podium-entry__medal { font-size: var(--font-base); margin-bottom: 4px; }
.podium-entry__name  { font-weight: 800; font-size: var(--font-xs); color: #fff; margin-bottom: 3px; }
.podium-entry__name a { color: inherit; text-decoration: none; }
.podium-entry__pts   { font-weight: 700; font-size: var(--font-xs); color: rgba(255,255,255,0.95); }
.podium-entry__sub   { font-size: var(--font-2xs); color: rgba(255,255,255,0.7); margin-top: 1px; }

.podium-rest { display: flex; flex-direction: column; }
.podium-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-bottom: 1px solid var(--color-border);
}
.podium-row:last-child { border-bottom: none; }
.podium-row--me { background: rgba(230,57,128,0.04); border-radius: var(--radius-sm); }
.podium-row__left  { display: flex; align-items: center; gap: 8px; }
.podium-row__right { font-size: var(--font-xs); font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }
.podium-row__bar { display: flex; width: 60px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--color-bg-alt); }
.podium-row__bar-picks { min-width: 0; }
.podium-row__bar-team { min-width: 0; }
.podium-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  font-size: var(--font-2xs);
  font-weight: 800;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.podium-name       { font-size: var(--font-xs); font-weight: 600; color: var(--color-text); }
.podium-name a     { color: inherit; text-decoration: none; }
.podium-name a:hover { color: var(--color-primary); }

/* Combined leaderboard bar chart */
.lb-list { display: flex; flex-direction: column; gap: 0; }
.lb-row {
  display: grid;
  grid-template-columns: 28px 1fr 3fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
}
.lb-row:last-child { border-bottom: none; }
.lb-row--me { background: rgba(230,57,128,0.06); font-weight: 600; }
.lb-rank { font-size: var(--font-xs); font-weight: 800; color: var(--color-text-muted); text-align: center; }
.lb-name { font-size: var(--font-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name a { color: inherit; }
.lb-bar-wrap { min-width: 0; }
.lb-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--color-bg-alt); }
.lb-bar__picks { background: var(--color-primary); min-width: 0; }
.lb-bar__team { background: var(--color-team); min-width: 0; }
.lb-pts { text-align: right; white-space: nowrap; min-width: 60px; }
.lb-pts__total { font-size: var(--font-xs); font-weight: 800; }
.lb-pts__breakdown { display: block; font-size: var(--font-2xs); color: var(--color-text-muted); font-weight: 400; }
.lb-legend { display: flex; gap: 12px; justify-content: center; margin-top: 8px; font-size: var(--font-xs); color: var(--color-text-muted); }
.lb-legend__item { display: flex; align-items: center; gap: 4px; }
.lb-legend__swatch { width: 10px; height: 10px; border-radius: 3px; }
.lb-legend__swatch--picks { background: var(--color-primary); }
.lb-legend__swatch--team { background: var(--color-team); }

/* Legacy leaderboard-grid (no longer used but kept for safety) */
.leaderboard-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  margin-top: 14px;
}

/* ── 9. PICK FORMS ─────────────────────────────────────────── */

/* Pick card (tournament hub pre-deadline) */
.pick-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.pick-card__heading {
  font-size: var(--font-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.pick-row {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pick-row--main     { background: var(--gradient-soft); }
.pick-row--wildcard { background: var(--color-bg-alt); }
.pick-row__label { flex: 1; }
.pick-row__label label {
  font-weight: 700;
  font-size: var(--font-sm);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pick-row__meta { font-size: var(--font-xs); color: var(--color-text-muted); font-style: italic; font-weight: 400; }

select {
  padding: 8px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-family: inherit;
  background: var(--color-card);
  color: var(--color-text);
  cursor: pointer;
  min-height: 40px;
  width: 100%;
}
select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }

/* Pick type badge */
.pick-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pick-badge--main     { background: var(--gradient-primary); color: #fff; }
.pick-badge--wildcard {
.pick-badge--wd { background: rgba(255,140,0,0.2); color: var(--color-warning); border-color: rgba(255,140,0,0.4); }
.pick-wd-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  background: rgba(255,146,43,0.19);
  color: var(--color-secondary);
  border: 1px solid rgba(255,146,43,0.25);
}

/* ── 10. TOURNAMENT HUB POST-DEADLINE ──────────────────────── */
.picks-locked-banner {
  background: rgba(230,57,128,0.06);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.picks-locked-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.picks-locked-box > strong:first-child {
  display: block;
  font-size: var(--font-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.picks-existing { font-size: var(--font-sm); color: var(--color-text-muted); margin-bottom: 10px; }

.tournament-deadline {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: var(--font-sm);
}

.score-section {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.score-section h3 { margin-top: 0; }

/* ── 11. COUNTDOWN TIMER ───────────────────────────────────── */
.countdown-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.countdown-label {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.6px;
}
.countdown-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.countdown-value {
  font-size: var(--font-xl);
  font-weight: 900;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 5px 10px;
  min-width: 44px;
  line-height: 1;
}
.countdown-unit-label { font-size: var(--font-2xs); font-weight: 600; opacity: 0.7; }
.countdown-sub         { font-size: var(--font-xs); opacity: 0.8; margin-top: 2px; }

/* ── 12. TEAM PAGE ─────────────────────────────────────────── */
.team-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.team-card__heading {
  font-size: var(--font-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
  flex-wrap: wrap;
}
.team-row:last-of-type { border-bottom: none; }
.team-row__left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-row__right { font-size: var(--font-sm); font-weight: 700; color: var(--color-primary); white-space: nowrap; }
body[data-league] .team-row__right { color: var(--league-accent); }

.team-total-row {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.team-total-label { font-size: var(--font-xs); font-weight: 700; color: var(--color-text-muted); }
.team-total-value { font-size: var(--font-sm); font-weight: 900; color: var(--color-primary); }
body[data-league] .team-total-value { color: var(--league-accent); }
.team-subtotal-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  font-size: var(--font-xs);
  color: var(--color-text-muted);
}

/* Tier badge */
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 5px;
  background: var(--gradient-soft);
  border-radius: 4px;
  font-size: var(--font-2xs);
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Gender indicator */
.gender-m { font-size: var(--font-2xs); font-weight: 700; color: var(--color-gender-m); }
.gender-w { font-size: var(--font-2xs); font-weight: 700; color: var(--color-gender-w); }

/* Loyalty badge */
.loyalty-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--font-2xs);
  font-weight: 700;
  background: rgba(47,158,68,0.09);
  color: var(--color-success);
}

.team-player-name { font-size: var(--font-sm); font-weight: 600; color: var(--color-text); }

/* Window banner */
.window-banner {
  background: rgba(230,57,128,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: var(--font-sm);
}

/* ── 13. CONTENT PAGES (guide / rules) ─────────────────────── */
.hero-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.hero-card__icon  { font-size: var(--font-2xl); margin-bottom: 8px; }
.hero-card__title { font-size: var(--font-md); font-weight: 900; color: var(--color-text); margin: 0 0 4px; }
.hero-card__sub   { font-size: var(--font-sm); color: var(--color-text-muted); margin: 0; }

.content-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.content-card__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-base);
  flex-shrink: 0;
}
.content-card__body  { flex: 1; }
.content-card__title { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); margin-bottom: 4px; }
.content-card__desc  { font-size: var(--font-xs); color: var(--color-text-muted); line-height: 1.5; margin: 0; }

/* Guide TOC */
.guide-toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: var(--font-sm);
  margin-bottom: 14px;
}
.guide-toc a { color: var(--color-primary); margin: 0 3px; }

/* FAQ */
.guide-faq-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.guide-faq-item:last-child { border-bottom: none; }
.guide-faq-q { font-weight: 700; font-size: var(--font-sm); margin-bottom: 4px; color: var(--color-text); }

/* Rules formula */
.rules-formula {
  background: rgba(230,57,128,0.06);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin: 10px 0 12px;
  font-size: var(--font-sm);
}

/* ── 14. DATA TABLE (admin + reference tables) ─────────────── */
.data-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 12px;
  font-size: var(--font-sm);
}
.data-table th, .data-table td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table th {
  font-size: var(--font-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-border);
}
.data-table tbody tr:hover { background: var(--color-bg-alt); }
.data-table tfoot td {
  background: var(--color-bg-alt);
  font-weight: 700;
  border-top: 2px solid var(--color-border);
}
.data-table .num { text-align: right; }
.subtotal-row td { color: var(--color-text-muted); font-size: var(--font-sm); }
.current-user-row { background: var(--league-accent-pale) !important; font-weight: 600; }
.row-withdrawn td { color: var(--color-text-muted); text-decoration: line-through; }
.table-actions { white-space: nowrap; }
.table-input {
  width: 140px;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-family: inherit;
  background: var(--color-bg);
}

/* ── 15. FORMS ─────────────────────────────────────────────── */
.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.form-stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.form-row   { display: flex; flex-direction: column; gap: 5px; }
.form-row label {
  font-weight: 700;
  font-size: var(--font-sm);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-row input {
  padding: 9px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 40px;
}
.form-row input:focus { outline: 2px solid var(--color-primary); border-color: var(--color-primary); outline-offset: 0; }

button, .btn {
  padding: 11px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
button:hover, .btn:hover { opacity: 0.9; text-decoration: none; color: #fff; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.form-row button { width: fit-content; }

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  box-shadow: none;
  min-height: auto;
  font-weight: 400;
}
.btn-link:hover { color: var(--color-primary-light); opacity: 1; }

.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.inline-form label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--font-sm); }
.inline-form button { padding: 8px 16px; font-size: var(--font-sm); min-height: 36px; }

/* Draw section (tournament / finals pre-deadline) */
.draw-section {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  max-width: 540px;
}

/* Picks confirm box */
.picks-confirm-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  max-width: 480px;
  box-shadow: var(--shadow-card);
}

/* ── 16. ADMIN ─────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}
.admin-tab {
  padding: 7px 16px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  font-weight: 600;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
}
.admin-tab:hover { background: var(--color-bg-alt); color: var(--color-text); text-decoration: none; }
.admin-tab--active {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
}
.admin-tab--active:hover { color: #fff; opacity: 0.95; }

.admin-content { max-width: 900px; }
.admin-content h2 { margin-bottom: 10px; }
.admin-content h3 { margin: 16px 0 6px; }
.data-refresh-section { margin-bottom: 20px; }

/* Status badges (admin data tables) */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: var(--font-2xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge--complete { background: rgba(47,158,68,0.09);   color: var(--color-success); }
.badge--live     { background: rgba(230,57,128,0.09);  color: var(--color-primary); }
.badge--upcoming { background: rgba(156,123,104,0.09); color: var(--color-text-muted); }
.badge--yes      { background: rgba(47,158,68,0.09);   color: var(--color-success); }
.badge--no       { background: rgba(156,123,104,0.09); color: var(--color-text-muted); }
.badge--success  { background: rgba(47,158,68,0.09);   color: var(--color-success); }
.badge--muted    { background: rgba(156,123,104,0.09); color: var(--color-text-muted); }

/* Admin inline status labels */
.admin-status { font-weight: 700; font-size: var(--font-xs); }
.admin-status--complete  { color: var(--color-status-complete); }
.admin-status--pending   { color: var(--color-status-pending); }
.admin-status--active    { color: var(--color-status-active); }
.admin-status--error     { color: var(--color-danger); }
.admin-status--overdue   { color: var(--color-danger); font-weight: 600; }
.admin-status--done      { color: var(--color-status-complete); font-weight: 600; font-size: var(--font-xs); }
.admin-row--overdue      { background: color-mix(in srgb, var(--color-danger) 5%, transparent); }

/* ── 17. LOGIN PAGE ────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(230,57,128,0.06);
  top: -50px;
  right: -50px;
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,146,43,0.07);
  bottom: -30px;
  left: -30px;
  pointer-events: none;
}
.login-circle-mid {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,107,107,0.05);
  top: 40%;
  left: 8%;
  pointer-events: none;
}

.login-wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.login-hero-wrap {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: 3px solid #fff;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card);
  font-size: 48px;
}
.login-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-title    { font-size: var(--font-xl); font-weight: 900; color: var(--color-text); letter-spacing: -0.5px; text-align: center; }
.login-subtitle { font-size: var(--font-base); font-weight: 500; color: var(--color-text-muted); text-align: center; }

.login-card {
  width: 100%;
  background: rgba(255,255,255,0.91);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 24px 22px;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-field { display: flex; flex-direction: column; gap: 5px; }
.login-field label {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
}
.login-field input {
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
  min-height: 44px;
}
.login-field input:focus { outline: 2px solid var(--color-primary); border-color: var(--color-primary); outline-offset: 0; }

.login-remember { display: flex; align-items: center; gap: 8px; }
.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.login-remember label { font-size: var(--font-sm); color: var(--color-text-muted); font-weight: 500; cursor: pointer; }

.login-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--font-base);
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  min-height: 50px;
}
.login-btn:hover { opacity: 0.9; }

.login-footer-text {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 320px;
}

/* ── 18. UTILITIES ─────────────────────────────────────────── */
.muted { color: var(--color-text-muted); font-size: 0.85em; }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.num { text-align: right; }

.section-heading {
  font-size: var(--font-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin: 14px 0 8px;
}

/* ── Emoji Picker ──────────────────────────────────────────────────────────── */
.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 12px;
}
.emoji-btn {
  background: var(--color-surface, #f5f5f5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 6px);
  padding: 4px 6px;
  font-size: var(--font-md);
  cursor: pointer;
  line-height: 1;
}
.emoji-btn:hover { border-color: var(--color-primary); }

/* ── 19. RESPONSIVE ────────────────────────────────────────── */
/* ── Season Points Chart ──────────────────────────────────────────────────── */
.season-chart-wrap {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 16px;
  margin-bottom: 1.5rem;
}
.season-chart-svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.sc-grid {
  stroke: var(--color-border);
  stroke-width: 1;
}
.sc-axis-label {
  font-size: var(--font-xs);
  fill: var(--color-text-muted);
  font-family: inherit;
}
.sc-axis-label--y { text-anchor: end; }
.sc-axis-label--x { text-anchor: middle; dominant-baseline: hanging; }
.season-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: var(--font-sm);
}
.sc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-legend-name { color: var(--color-text); font-weight: 500; }
.sc-legend-pts { color: var(--color-text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .tournament-card { transition: box-shadow 0.15s, border-color 0.15s; }
  button, .btn { transition: opacity 0.15s; }
}

/* ── Bottom navigation (always visible) ──────────────────────────── */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 6px;
  text-decoration: none;
  color: var(--color-text-muted);
  gap: 2px;
  border: none;
  background: none;
  cursor: pointer;
}
.mobile-nav-item--active { color: var(--color-primary); }
.mobile-nav-item--disabled { opacity: 0.35; cursor: default; }
.mobile-nav-item__icon { font-size: var(--font-lg); line-height: 1; }
.mobile-nav-item__label { font-size: var(--font-xs); font-weight: 600; }
.mobile-nav-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; border-radius: 99px;
  background: var(--color-pink-dark); color: #fff; border: 2px solid var(--color-card);
  font-size: var(--font-2xs); font-weight: 800; line-height: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
/* Extra bottom padding so content isn't hidden behind nav */
.main-content { padding-bottom: 72px; }

/* ── League capsule switcher ──────────────────────────────────────── */
.league-capsule {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  z-index: 99;
  background: white; border: 1px solid var(--color-border-warm);
  border-radius: 22px; padding: 3px;
  box-shadow: 0 2px 12px rgba(42,24,16,0.08);
  display: flex; align-items: center; gap: 2px;
}
.league-capsule__btn {
  border: none; background: none; cursor: pointer;
  border-radius: 19px;
  font-size: var(--font-base); line-height: 1;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .league-capsule__btn { transition: all 0.25s ease; }
}
.league-capsule__btn--inactive {
  padding: 5px 10px; opacity: 0.4; color: inherit;
}
.league-capsule__btn--inactive:hover { opacity: 0.7; text-decoration: none; }
.league-capsule__btn--active {
  padding: 5px 12px; color: white; font-weight: 700; font-size: var(--font-sm);
  display: flex; align-items: center; gap: 4px;
  background: var(--capsule-accent, var(--league-accent));
}

/* ── Utility: unstyled button (looks like surrounding text/link) ──── */
.btn-unstyled {
  background: none; border: none; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
}

/* ── Profile page rows ────────────────────────────────────────────── */
.profile-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; text-decoration: none;
  color: var(--color-text); border-bottom: 1px solid var(--color-border);
}
.profile-row:last-child { border-bottom: none; }
.profile-row:hover { background: var(--color-bg-alt); text-decoration: none; }
.profile-row--active { color: var(--color-primary); }
.profile-row__icon { font-size: var(--font-md); width: 28px; text-align: center; flex-shrink: 0; }
.profile-row__body { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.profile-row__label { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); line-height: 1.3; }
.profile-row__sub { font-size: var(--font-xs); color: var(--color-text-muted); }
.profile-row--active .profile-row__label { color: var(--color-primary); }
.profile-row__chevron { color: var(--color-text-muted); font-size: var(--font-lg); line-height: 1; flex-shrink: 0; }

@media (max-width: 640px) {
  /* Mobile layout tweaks */
  .bento-grid--3   { grid-template-columns: repeat(2, 1fr); }
  .bento-grid--2   { grid-template-columns: 1fr; }
  .bento-grid--2-1 { grid-template-columns: 1fr; }
  .leaderboard-grid { grid-template-columns: 1fr; }
  .main-content { padding: 10px 10px 72px; }
  .podium-top3 { gap: 4px; }
  .podium-entry { min-width: 70px; padding: 6px 8px; }
  .podium-entry--first { min-width: 85px; padding: 10px 10px; }
  select, .form-row input { min-height: 44px; }
  .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .admin-tab { white-space: nowrap; }
  .admin-content, .form-stack, .draw-section { max-width: 100%; }
  .picks-confirm-box, .score-section { max-width: 100%; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 420px) {
  .main-content { padding: 8px; }
  h1 { font-size: var(--font-md); }
  .topbar-title { font-size: var(--font-sm); }
  .login-card { padding: 18px 16px; }
}

@media (max-width: 390px) {
  /* Centre logo and stack welcome card on small phones (iPhone SE / 14) */
  .home-welcome-row { flex-direction: column; text-align: center; }
  .home-welcome-logo { margin: 0 auto; }
  .home-welcome-title { font-size: var(--font-base); }
  .home-welcome-sub { font-size: var(--font-2xs); }

  /* Prevent text overflow on small screens */
  .main-content { overflow-wrap: break-word; word-break: break-word; }
  .hero-name { font-size: var(--font-xl); }
  .hero-card__title { font-size: var(--font-base); }
  .bento-card__val { font-size: var(--font-lg); }
  .tournament-card__name { font-size: var(--font-xs); }
  h1 { font-size: var(--font-base); }
  .topbar-title { font-size: var(--font-xs); }
}

/* ── LEAGUE THEMING ─────────────────────────────────────────── */

/* Default league CSS vars (fallback when no league context) */
:root {
  --league-accent:           var(--color-pink);
  --league-accent-pale:      var(--color-pink-pale);
  --league-gradient-start:   #FF6B6B;
  --league-gradient-end:     var(--color-pink);
  --league-hero-overlay:     var(--color-bg-alt);
  --league-hero-divider:     var(--color-ink-faint);
  --league-hero-text:        var(--color-text);
  --league-hero-muted:       var(--color-text-muted);
  --league-hero-stat-bg:     linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-dark) 100%);
  --league-hero-link:        var(--color-pink-dark);
  --league-hero-fi-days:     var(--color-pink-dark);
  --league-hero-name:        var(--color-text);
  --league-hero-tagline:     var(--color-text-muted);
  --league-hero-desc:        var(--color-text-muted);
  --league-finals-label:     var(--color-text-muted);
  --league-finals-name:      var(--color-text);
  --league-finals-meta:      var(--color-text-muted);
  --league-finals-dlabel:    var(--color-text-muted);
  --league-prog-bar-bg:      rgba(59,54,49,0.08);
}

/* ── NEW HERO CARD (league hub redesign) ── */
.league-hero { background: var(--color-card); border: 1px solid var(--color-ink-faint); border-radius: 16px; overflow: hidden; margin-bottom: 14px; position: relative; }
body[data-league] .league-hero { background: var(--gradient-primary); border-color: transparent; }
.hero-top { background: var(--gradient-soft); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; position: relative; overflow: hidden; border-radius: 16px 16px 0 0; }
.hero-facets, .hero-shimmer, .hero-flash { display: none; }
.hero-emoji { font-size: var(--font-3xl); line-height: 1; flex-shrink: 0; margin-top: 2px; }
.hero-name { font-weight: 900; font-size: var(--font-2xl); letter-spacing: -0.03em; color: var(--color-text); line-height: 1; margin-bottom: 3px; }
.hero-tagline { font-size: var(--font-sm); font-style: italic; color: var(--color-text-muted); margin-bottom: 4px; }
.hero-desc { font-size: var(--font-sm); color: var(--color-text-muted); line-height: 1.6; margin-top: 6px; }
.hero-readmore {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--font-xs); font-weight: 700; color: var(--color-pink-dark);
  background: var(--color-pink-pale); padding: 3px 10px; border-radius: 20px;
  cursor: pointer; border: 1px solid rgba(201,77,122,0.15);
}
.hero-expanded {
  background: var(--color-bg-alt); border-top: 1px solid var(--color-ink-faint);
  padding: 12px 16px; font-size: var(--font-sm); color: var(--color-text-muted); line-height: 1.65;
  display: none;
}
.hero-expanded.open { display: block; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: none; }
.hero-stat { padding: 10px 8px; text-align: center; position: relative; }
.hero-stat + .hero-stat::before {
  content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px;
  background: var(--color-ink-faint);
}
.hero-stat.pts { background: var(--league-hero-stat-bg); }
.hs-label { font-size: var(--font-2xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 3px; }
.hero-stat.pts .hs-label { color: rgba(255,255,255,0.7); }
.hs-val { font-size: var(--font-lg); font-weight: 700; color: var(--color-text); line-height: 1; }
.hero-stat.pts .hs-val { color: white; font-size: var(--font-xl); }
.hs-sub { font-size: var(--font-2xs); color: var(--color-text-muted); margin-top: 2px; }
.hero-stat.pts .hs-sub { color: rgba(255,255,255,0.65); }
.hero-progress { padding: 8px 14px; border-top: 1px solid var(--color-ink-faint); }
.prog-row { display: flex; align-items: center; gap: 8px; }
.prog-bar { flex: 1; height: 5px; background: rgba(59,54,49,0.08); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--color-pink), var(--color-lime-dark)); border-radius: 3px; }
.prog-label { font-size: var(--font-xs); font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.hero-picks-link {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 6px 14px; border-top: 1px solid var(--color-ink-faint);
}
.hero-picks-link a { font-size: var(--font-xs); font-weight: 700; color: var(--league-hero-link); text-decoration: none; }

/* ============================================================
   LEAGUE HERO CARD — clean cascade, no !important
   Organised: shared → dirt devils → diamond → strawberry
   ============================================================ */

/* Shared: hero card uses league gradient as base */
body[data-league] .league-hero {
  background: var(--gradient-primary);
  border-color: transparent;
}

/* Shared: hero readmore button */
body[data-league] .hero-readmore {
  background: var(--league-accent-pale);
  color: var(--league-accent);
  border-color: var(--league-accent);
}

/* Shared: expanded description */
body[data-league] .hero-expanded {
  background: rgba(255,255,255,0.15);
}

/* Shared: progress bar fill */
body[data-league] .prog-fill {
  background: linear-gradient(90deg, var(--league-accent), var(--color-lime-dark));
}

/* ── Hero divider — animated gradient line between hero-top and hero-stats ── */
.hero-divider {
  height: 3px;
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--league-gradient-end),
    var(--league-gradient-start),
    var(--league-gradient-end)
  );
  background-size: 200% 100%;
  animation: heroSeamSweep 3s ease-in-out infinite;
}
@keyframes heroSeamSweep {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

/* ── ALL LEAGUES — shared hero overrides using league tokens ── */
body[data-league] .hero-stats {
  background: var(--league-hero-stat-bg);
}
body[data-league] .hero-progress,
body[data-league] .hero-picks-link,
body[data-league] .hero-finals {
  background: var(--league-hero-stat-bg);
  border-top-color: var(--league-hero-divider);
}
body[data-league] .hero-stat { background: transparent; }
body[data-league] .hero-stat + .hero-stat::before { background: var(--league-hero-divider); }
body[data-league] .hero-stat .hs-label { color: var(--league-hero-muted); font-weight: 600; }
body[data-league] .hero-stat .hs-val { color: var(--league-hero-text); }
body[data-league] .hero-stat .hs-sub { color: var(--league-hero-muted); }
body[data-league] .hero-stat.pts .hs-label { color: rgba(255,255,255,0.7); }
body[data-league] .hero-stat.pts .hs-val { color: white; font-size: var(--font-xl); }
body[data-league] .hero-stat.pts .hs-sub { color: rgba(255,255,255,0.65); }
body[data-league] .prog-label { color: var(--league-hero-muted); }
body[data-league] .prog-bar { background: var(--league-prog-bar-bg); }
body[data-league] .hero-picks-link a { color: var(--league-hero-link); }
body[data-league] .finals-label { color: var(--league-finals-label); font-weight: 600; }
body[data-league] .fi-name { color: var(--league-finals-name); }
body[data-league] .fi-meta { color: var(--league-finals-meta); }
body[data-league] .fi-days { color: var(--league-hero-fi-days); }
body[data-league] .fi-dlabel { color: var(--league-finals-dlabel); }

.hero-finals { border-top: 1px solid var(--color-ink-faint); background: var(--color-bg); }
.finals-label {
  padding: 6px 14px 3px; font-size: var(--font-2xs); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-text-muted);
}
.finals-row { display: flex; }
.final-item { flex: 1; padding: 7px 14px 10px; display: flex; align-items: center; justify-content: space-between; }
.final-item + .final-item { border-left: 1px solid var(--color-ink-faint); }
.fi-name { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); line-height: 1.2; }
.fi-meta { font-size: var(--font-xs); color: var(--color-text-muted); margin-top: 1px; }
.fi-days { font-size: var(--font-lg); font-weight: 700; color: var(--league-hero-fi-days); line-height: 1; text-align: right; }
.fi-dlabel { font-size: var(--font-2xs); color: var(--color-text-muted); text-align: right; }

/* ── SECTION LABEL ── */
.sec-label {
  font-size: var(--font-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; margin-bottom: 6px;
}
.sec-label a {
  color: var(--color-pink-dark); font-weight: 700; font-size: var(--font-xs);
  text-transform: none; letter-spacing: 0; text-decoration: none;
}
body[data-league] .sec-label { color: var(--league-accent); }
body[data-league] .sec-label a { color: var(--league-accent); }

/* ── TOURNAMENT LIST (league hub redesign) ── */
.t-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px; background: var(--color-card);
  border: 1px solid var(--color-ink-faint); margin-bottom: 5px; text-decoration: none; color: inherit;
}
.t-item:last-child { margin-bottom: 0; }
.t-item.live { border-color: var(--color-pink); background: var(--color-pink-pale); }
body[data-league] .t-item.live { border-color: var(--league-accent); background: var(--league-accent-pale); }
.t-item.nxt { border-color: rgba(158,212,90,0.4); background: var(--color-lime-pale); opacity: 0.75; }
body[data-league] .t-item.nxt { border-color: var(--league-accent); background: var(--league-accent-pale); }
body[data-league] .t-item.nxt .t-name { color: var(--league-accent); }
.t-item.done { opacity: 0.55; }
.t-left { display: flex; align-items: center; gap: 9px; }
.t-icon { font-size: var(--font-md); line-height: 1; }
.t-name { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); }
.t-item.live .t-name { color: var(--color-pink-dark); }
body[data-league] .t-item.live .t-name { color: var(--league-accent); }
.t-meta { font-size: var(--font-xs); color: var(--color-text-muted); margin-top: 1px; }
.t-badge {
  font-size: var(--font-xs); font-weight: 700; padding: 3px 9px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.t-badge.live { background: var(--color-pink-dark); color: white; }
body[data-league] .t-badge.live { background: var(--league-accent); }
.t-badge.nxt { background: var(--color-lime-dark); color: var(--color-text); }
body[data-league] .t-badge.nxt { background: var(--league-accent); color: white; opacity: 0.85; }
.t-badge.done { background: rgba(59,54,49,0.08); color: var(--color-text-muted); font-weight: 500; }
.t-badge.oth { font-size: var(--font-xs); color: var(--color-text-muted); font-weight: 500; background: none; padding-right: 0; }
.t-more {
  text-align: center; padding: 8px; font-size: var(--font-xs); font-weight: 700;
  color: var(--color-pink-dark); cursor: pointer;
  border: 1px dashed rgba(201,77,122,0.25); border-radius: 10px;
  background: var(--color-pink-pale); margin-top: 0;
}
body[data-league] .t-more {
  color: var(--league-accent); background: var(--league-accent-pale);
  border-color: color-mix(in srgb, var(--league-accent) 25%, transparent);
}
.t-hidden { display: none; }
.t-hidden.vis { display: flex; }

/* ── MY TEAM CARD (league hub redesign) ── */
.myteam-card { background: var(--color-card); border: 1px solid var(--color-ink-faint); border-radius: 14px; overflow: hidden; margin-top: 18px; }
.team-open-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--color-lime-pale);
  border-bottom: 1px solid rgba(158,212,90,0.3);
}
.team-open-icon { font-size: var(--font-md); line-height: 1; flex-shrink: 0; }
.team-open-text { flex: 1; }
.team-open-title { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); }
.team-open-sub { font-size: var(--font-xs); color: var(--color-text-muted); }
.team-open-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-lime-dark); color: var(--color-text); font-size: var(--font-xs);
  font-weight: 700; padding: 6px 12px; border-radius: 20px;
  text-decoration: none; flex-shrink: 0; white-space: nowrap;
}
body[data-league] .team-open-row {
  background: var(--league-accent-pale);
  border-color: var(--league-accent);
}
body[data-league] .team-open-row .team-open-title {
  color: var(--league-accent);
}
body[data-league] .team-open-btn {
  background: var(--league-accent);
  color: white;
}
.myteam-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px 7px; border-bottom: 1px solid var(--color-ink-faint);
}
.myteam-title { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); display: flex; align-items: center; gap: 5px; }
.myteam-pts {
  background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-dark) 100%);
  color: white; font-size: var(--font-xs); font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.myteam-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px 9px; border-top: 1px solid var(--color-ink-faint);
}
.myteam-players { padding: 0 14px 6px; }
.myteam-player {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 1px solid var(--color-border);
  font-size: var(--font-xs); color: var(--color-text);
}
.myteam-player:last-child { border-bottom: none; }
.myteam-player-name { flex: 1; font-weight: 600; }
.myteam-loyalty { font-size: var(--font-2xs); font-weight: 700; color: var(--color-pink-dark); }
.myteam-player-pts { font-weight: 700; color: var(--color-text-muted); }
.myteam-footer-note { font-size: var(--font-xs); color: var(--color-text-muted); }
.myteam-footer-link { font-size: var(--font-xs); font-weight: 700; color: var(--color-pink-dark); text-decoration: none; }
body[data-league] .myteam-pts { background: var(--gradient-primary); }
body[data-league] .myteam-footer-link { color: var(--league-accent); }

/* ── LEAGUE TEAMS PAGE ── */
.lt-team {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); margin-bottom: var(--space-sm); overflow: hidden;
}
.lt-team--mine { border-color: var(--color-pink); }
.lt-team-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--color-border);
}
.lt-team-name { font-weight: 700; font-size: var(--font-sm); }
.lt-team-total { font-weight: 700; font-size: var(--font-sm); color: var(--color-primary); }
.lt-players { padding: 4px 14px; }
.lt-player {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 1px solid var(--color-border);
  font-size: var(--font-xs);
}
.lt-player:last-child { border-bottom: none; }
.lt-player-name { flex: 1; font-weight: 600; }
.lt-loyalty { font-size: var(--font-2xs); font-weight: 700; color: var(--color-pink-dark); }
.lt-player-pts { font-weight: 700; color: var(--color-text-muted); }
.lt-hidden { display: none; }
.lt-more-btn {
  display: block; width: 100%; padding: 10px; margin-top: var(--space-sm);
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: var(--font-xs); font-weight: 700;
  color: var(--color-primary); cursor: pointer; text-align: center;
}
.lt-more-btn:hover { background: var(--color-border); }

/* ── LEADERBOARD (league hub redesign) ── */
.lb { background: var(--color-card); border: 1px solid var(--color-ink-faint); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.lb-header {
  padding: 9px 14px; border-bottom: 1px solid var(--color-ink-faint);
  font-size: var(--font-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); display: flex; align-items: center; justify-content: space-between;
}
.lb-legend { display: flex; gap: 10px; }
.lb-leg {
  display: flex; align-items: center; gap: 4px; font-size: var(--font-xs);
  color: var(--color-text-muted); font-weight: 500; text-transform: none; letter-spacing: 0;
}
.lb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lb-dot.p { background: var(--color-pink); }
body[data-league] .lb-dot.p { background: var(--league-accent); }
.lb-dot.t { background: var(--color-lime-dark); }
.lb-row {
  padding: 8px 12px; border-bottom: 1px solid var(--color-ink-faint);
  display: flex; align-items: center; gap: 7px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.me { background: var(--color-pink-pale); }
body[data-league] .lb-row.me { background: var(--league-accent-pale); }
.lb-row.lead { background: linear-gradient(90deg, rgba(218,255,176,0.18), transparent); }
.lb-rank {
  font-size: var(--font-base); font-weight: 700; color: var(--color-text-muted);
  width: 16px; text-align: center; flex-shrink: 0;
}
.lb-rank.g { color: #c9a227; }
.lb-rank.s { color: #8a8a8a; }
.lb-rank.b { color: #9e6240; }
.lb-av {
  width: 25px; height: 25px; border-radius: 50%; background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-sm); flex-shrink: 0; border: 1.5px solid var(--color-ink-faint);
}
.lb-row.me .lb-av { border-color: var(--color-pink); }
body[data-league] .lb-row.me .lb-av { border-color: var(--league-accent); }
.lb-name {
  font-size: var(--font-sm); font-weight: 700; color: var(--color-text); flex-shrink: 0;
  width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-row.me .lb-name { color: var(--color-pink-dark); }
body[data-league] .lb-row.me .lb-name { color: var(--league-accent); }
.lb-bars { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-bw { display: flex; align-items: center; gap: 4px; }
.lb-track {
  flex: 1; height: 9px; background: rgba(59,54,49,0.06); border-radius: 5px;
  overflow: hidden; position: relative;
}
.lb-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 5px; }
.lb-fill.p { background: var(--color-pink); }
body[data-league] .lb-fill.p { background: var(--league-accent); }
.lb-fill.t { background: var(--color-lime-dark); }
.lb-num { font-size: var(--font-2xs); font-weight: 700; flex-shrink: 0; width: 30px; text-align: right; }
.lb-num.p { color: var(--color-pink-dark); }
body[data-league] .lb-num.p { color: var(--league-accent); }
.lb-num.t { color: #3d6b1a; }
.lb-num.z { color: var(--color-ink-faint); }
.lb-total {
  font-size: var(--font-base); font-weight: 700; color: var(--color-text);
  text-align: right; flex-shrink: 0; min-width: 38px;
}
.lb-row.me .lb-total { color: var(--color-pink-dark); }
body[data-league] .lb-row.me .lb-total { color: var(--league-accent); }

/* Empty state component */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-text-muted);
}
.empty-state__icon  { font-size: 2.5rem; margin-bottom: 10px; }
.empty-state__title { font-size: var(--font-base); font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.empty-state__msg   { font-size: var(--font-sm); margin-bottom: 14px; }
.empty-state__cta   { font-size: var(--font-sm); }

/* Pick status badge on tournament cards */
.pick-status-badge { font-size: var(--font-base); line-height: 1; }

/* Swapped loyalty badge */
.loyalty-badge--swapped { opacity: 0.7; }

/* Toast stack (replaces old inline flash block) */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  background: var(--color-card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  font-size: var(--font-sm);
  transition: opacity 0.3s ease;
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.toast--error   { border-color: var(--color-primary); color: var(--color-primary); }
.toast--success { border-color: var(--color-success); color: var(--color-success); }
.toast--info    { border-color: var(--color-accent);  color: var(--color-text); }
.toast__msg  { flex: 1; }
.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: var(--font-base);
  line-height: 1;
  opacity: 0.6;
  padding: 0;
}

/* Deadline proximity labels */
.deadline-label {
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.deadline-label--normal { background: rgba(255,255,255,0.06); color: var(--color-text-muted); }
.deadline-label--soon   { background: rgba(255,165,0,0.15);  color: var(--color-warning); }
.deadline-label--urgent { background: rgba(230,57,80,0.15);  color: var(--color-danger); }

/* HTMX team breakdown panel */
.team-breakdown-panel { padding: 6px 8px 8px 48px; background: rgba(255,255,255,0.03); border-radius: 0 0 8px 8px; margin-top: -4px; }
.team-breakdown-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: var(--font-sm); color: var(--color-text-muted); }
.team-breakdown-player { flex: 1; }
.team-breakdown-pts { font-weight: 700; color: var(--color-text); }

/* ── League Theme Animations ──────────────────────────────────────────── */
@keyframes floatBerry {
  0%,100% { transform: translateY(0) rotate(var(--br)); }
  50%      { transform: translateY(-13px) rotate(calc(var(--br) + 7deg)); }
}
@keyframes berryBounce {
  0%,100% { transform: translateY(0) rotate(var(--br)); }
  40%     { transform: translateY(-9px) rotate(calc(var(--br) + 5deg)); }
  70%     { transform: translateY(-4px) rotate(calc(var(--br) - 3deg)); }
}
@keyframes floatClay {
  0%,100% { transform: translateY(0) rotate(var(--br)) scale(1); }
  40%     { transform: translateY(-10px) rotate(calc(var(--br) + 9deg)) scale(1.05); }
  70%     { transform: translateY(-5px) rotate(calc(var(--br) - 4deg)) scale(0.98); }
}
@keyframes devilSpin {
  0%,80%,100% { transform: rotate(0deg) scale(1); }
  88%         { transform: rotate(-16deg) scale(1.12); }
  94%         { transform: rotate(12deg) scale(1.08); }
}
@keyframes shimmerClay {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes seedBreath { 0%,100% { opacity: 0.07; } 50% { opacity: 0.14; } }
@keyframes dustDrift  { 0%,100% { opacity: 0.06; } 50% { opacity: 0.13; } }

/* ── Floating decoration layer ───────────────────────────────────────── */
.theme-float-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* ── Capstone ribbon ─────────────────────────────────────────────────── */
.capstone-ribbon {
  border-radius: 14px;
  padding: 11px 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--league-gradient-start), var(--league-gradient-end));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--league-accent) 40%, transparent);
}
.capstone-ribbon__hatch {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    110deg, rgba(255,255,255,.04) 0 6px, transparent 6px 14px
  );
  pointer-events: none;
}
.capstone-ribbon__orb {
  position: absolute;
  right: -24px; top: -24px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.capstone-ribbon__inner  { position: relative; z-index: 1; }
.capstone-ribbon__header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}
.capstone-ribbon__flag {
  background: rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: var(--font-2xs);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .8px;
  border: 1px solid rgba(255,255,255,0.3);
}
.capstone-ribbon__hint { font-size: var(--font-2xs); color: rgba(255,255,255,.65); font-weight: 600; }
.capstone-ribbon__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.capstone-ribbon__title {
  font-size: var(--font-base);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1.1;
}
.capstone-ribbon__sub {
  font-size: var(--font-xs);
  color: rgba(255,255,255,.75);
  font-weight: 600;
  margin-top: 1px;
}
.capstone-ribbon__days {
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  padding: 6px 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.2);
  min-width: 56px;
}
.capstone-ribbon__days-n {
  font-size: var(--font-lg);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.capstone-ribbon__days-l {
  font-size: var(--font-2xs);
  color: rgba(255,255,255,.75);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.capstone-ribbon__progress { margin-top: 10px; }
.capstone-ribbon__prog-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.capstone-ribbon__prog-label { font-size: var(--font-2xs); color: rgba(255,255,255,.7); font-weight: 600; }
.capstone-ribbon__prog-val   { font-size: var(--font-2xs); color: rgba(255,255,255,.85); font-weight: 700; }
.capstone-ribbon__track {
  height: 5px;
  background: rgba(0,0,0,.2);
  border-radius: 10px;
  overflow: hidden;
}
.capstone-ribbon__fill {
  height: 100%;
  background: rgba(255,255,255,.7);
  border-radius: 10px;
}

/* ── Tournament card textures ────────────────────────────────────────── */

/* ── Dirt Devils shimmer strip + devil emoji spin ────────────────────── */
.hero-shimmer-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(194,68,14,.85), transparent);
  background-size: 200% 100%;
  animation: shimmerClay 3s linear infinite;
}
.devil-spin { display: inline-block; animation: devilSpin 4s ease-in-out infinite; }

@keyframes strawberryBounce {
  0%, 70%, 100% { transform: translateY(0) scale(1); }
  40%           { transform: translateY(-7px) scale(1.12); }
  55%           { transform: translateY(-3px) scale(1.04); }
}
.strawberry-bounce { display: inline-block; animation: strawberryBounce 3s ease-in-out infinite; }

/* ── Tournaments section header with flourish ────────────────────────── */
.tournaments-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tournaments-header h2 { margin: 0; }
.theme-flourish { display: flex; align-items: flex-end; gap: 3px; }
.league-emoji-row { font-size: var(--font-base); letter-spacing: 2px; display: inline-flex; align-items: center; gap: 1px; }

/* ── Gaggle Filter Pills ─────────────────────────────────────────────────── */
.gaggle-filter-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.pill {
  flex-shrink: 0; padding: 5px 12px; border-radius: 20px;
  font-size: var(--font-xs); font-weight: 700; border: 1.5px solid var(--color-border);
  background: var(--color-card); color: var(--color-text-muted);
  cursor: pointer; white-space: nowrap; box-shadow: none;
}
.pill--active {
  background: var(--color-primary); color: #fff;
  border-color: var(--color-primary);
}
body[data-league] .pill--active {
  background: var(--league-accent);
  color: white;
  border-color: var(--league-accent);
}
.pill:hover:not(.pill--active) { border-color: var(--color-primary); color: var(--color-primary); }
body[data-league] .pill:hover:not(.pill--active) { border-color: var(--league-accent); color: var(--league-accent); }

/* ── Emoji Pill Lead Cards ───────────────────────────────────────────────── */
.emoji-pill-card { display: flex; align-items: flex-start; gap: 12px; }
.emoji-pill-card__icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--pill-bg, #f3e6ff);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-md); flex-shrink: 0;
}
.emoji-pill-card__body { flex: 1; min-width: 0; }
.emoji-pill-card__title { font-weight: 700; font-size: var(--font-sm); margin-bottom: 2px; }
.emoji-pill-card__sub { font-size: var(--font-xs); color: var(--color-text-muted); }

/* Unread dot for pending gaggle requests */
.unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  display: inline-block; margin-left: 4px; vertical-align: middle; flex-shrink: 0;
}

/* ── Homepage ────────────────────────────────────────────────────────────── */
.home-welcome-card { background: var(--gradient-hero); border-radius: var(--radius-xl); padding: 18px 16px; margin-bottom: 14px; }
.home-welcome-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.home-welcome-logo { height: 72px; width: 72px; }
.home-welcome-title { font-size: var(--font-md); font-weight: 900; margin: 0; letter-spacing: -0.5px; }
.home-welcome-sub { font-size: var(--font-xs); color: var(--color-text-muted); margin: 0; }
.home-section-label { font-size: var(--font-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin-bottom: 6px; }
.home-section-label--spaced { margin-top: 14px; }
.home-actions { padding: 14px 0 0; }
.home-actions__label { font-size: var(--font-xs); font-weight: 700; color: var(--color-primary); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.home-actions .action-card { margin-bottom: 8px; }
.home-news-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.home-news-more { display: block; text-align: right; font-size: var(--font-xs); color: var(--color-primary); margin-bottom: 14px; }
.ai-badge--sm { font-size: var(--font-2xs); padding: 2px 6px; }
.home-action-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; }
.home-action-card { display: flex; align-items: center; gap: 6px; background: var(--color-card); border-radius: 10px; padding: 10px 14px; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); min-width: 200px; flex-shrink: 0; }

/* Action required cards */
.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.action-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.action-card__icon { font-size: var(--font-xl); flex-shrink: 0; }
.action-card__body { flex: 1; }
.action-card__title { font-size: var(--font-sm); font-weight: 700; }
.action-card__sub { font-size: var(--font-xs); color: var(--color-text-muted); }
.action-card__go { font-size: var(--font-xs); font-weight: 700; color: var(--color-primary); flex-shrink: 0; }
.action-card--urgent { border-color: var(--color-danger); }
.action-card--urgent .action-card__go { color: var(--color-danger); }
.action-card--soon { border-color: var(--color-warning); }
.action-card--soon .action-card__go { color: var(--color-warning); }
.home-league-card-wrap { position: relative; }
.home-league-card-wrap.dragging { opacity: 0.4; }
.drag-handle { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: var(--font-base); color: var(--color-text-muted); cursor: grab; user-select: none; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.drag-handle:hover { background: var(--color-border); }
.home-league-card { display: block; background: var(--color-card); border-radius: 14px; overflow: hidden; border: 1px solid var(--color-border); margin-bottom: 10px; text-decoration: none; color: var(--color-text); }
.home-league-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); border-color: var(--color-text-muted); text-decoration: none; color: var(--color-text); }
.home-action-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-decoration: none; color: var(--color-text); }
.home-quick-link:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-decoration: none; color: var(--color-text); }
.home-league-card__stripe { height: 6px; background: linear-gradient(135deg, var(--card-grad-start), var(--card-grad-end)); }
.home-league-card__body { padding: 12px 14px; }
.home-league-card__identity { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.home-league-card__identity-text { flex: 1; min-width: 0; }
.home-league-card__emoji { font-size: var(--font-2xl); flex-shrink: 0; }
.home-league-card__name { font-weight: 800; font-size: var(--font-base); letter-spacing: -0.3px; }
.home-league-card__tagline { font-size: var(--font-xs); color: var(--color-text-muted); font-style: italic; }
.home-league-card__rank { font-size: var(--font-xl); font-weight: 900; line-height: 1; flex-shrink: 0; color: var(--card-accent); }
.home-league-card__rank-soon { padding: 4px 10px; border-radius: 6px; font-size: var(--font-xs); font-weight: 700; flex-shrink: 0; background: color-mix(in srgb, var(--card-accent) 10%, transparent); color: var(--card-accent); }
.home-league-card__stats { display: flex; gap: 8px; margin-bottom: 10px; }
.home-league-card__stat { flex: 1; background: var(--color-bg-alt); border-radius: 8px; padding: 6px 8px; text-align: center; }
.home-league-card__stat--urgent { background: color-mix(in srgb, var(--card-accent) 6%, transparent); }
.home-league-card__stat-label { display: block; font-size: var(--font-2xs); font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; }
.home-league-card__stat-value { display: block; font-size: var(--font-sm); font-weight: 800; }
.home-league-card__stat-value--accent { color: var(--card-accent); }
.home-league-card__stat-value--sm { font-size: var(--font-xs); }
.home-league-card__progress { display: flex; align-items: center; gap: 8px; }
.home-league-card__progress-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--color-bg-alt); overflow: hidden; }
.home-league-card__progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(135deg, var(--card-grad-start), var(--card-grad-end)); }
.home-league-card__progress-label { font-size: var(--font-2xs); font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
.home-quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.home-quick-link { display: flex; align-items: center; gap: 8px; background: var(--color-card); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); }
.home-quick-link span { font-size: var(--font-md); }
.home-quick-link strong { display: block; font-size: var(--font-sm); }
.home-quick-link small { display: block; font-size: var(--font-2xs); color: var(--color-text-muted); }

/* ── Pundit article styles ──────────────────────────────────────────────────── */
.header-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.header-pill { font-size: var(--font-xs); font-weight: 600; padding: 4px 12px; border-radius: 20px; background: #3D7A4A; color: #fff; flex-shrink: 0; }
.header-title { font-size: var(--font-base); font-weight: 600; color: var(--color-text); margin: 0; }
.header-sub { font-size: var(--font-sm); color: var(--color-text-muted); margin: 0; }
.tier-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tier-grid .tier-badge { background: none; height: auto; min-width: auto; padding: 0; border-radius: 0; }
.tier-row { border-radius: var(--radius-lg); border: 1px solid var(--color-border); padding: 12px 14px; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 12px; }
.tier-row.t1 { background: var(--tier-1-row-bg); border-color: var(--tier-1-row-border); }
.tier-row.t2 { background: var(--tier-2-row-bg); border-color: var(--tier-2-row-border); }
.tier-row.t3 { background: var(--tier-3-row-bg); border-color: var(--tier-3-row-border); }
.tier-row.t4 { background: var(--tier-4-row-bg); border-color: var(--tier-4-row-border); }
.tier-badge { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tier-label { font-size: var(--font-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding: 2px 8px; border-radius: 20px; align-self: center; }
.t1 .tier-label { background: var(--tier-1-bg); color: var(--tier-1-text); }
.t2 .tier-label { background: var(--tier-2-bg); color: var(--tier-2-text); }
.t3 .tier-label { background: var(--tier-3-bg); color: var(--tier-3-text); }
.t4 .tier-label { background: var(--tier-4-bg); color: var(--tier-4-text); }
.tier-range { font-size: var(--font-xs); color: var(--color-text-muted); text-align: center; white-space: nowrap; }
.player-info { min-width: 0; }
.player-name { font-size: var(--font-base); font-weight: 600; color: var(--color-text); margin: 0 0 2px; }
.player-sub { font-size: var(--font-sm); color: var(--color-text-muted); margin: 0 0 6px; }
.martina-note { font-size: var(--font-sm); line-height: 1.5; color: var(--color-text-muted); font-style: italic; margin: 0; }
.right-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.gender-chip { font-size: var(--font-xs); font-weight: 600; padding: 2px 9px; border-radius: 20px; }
.chip-w { background: #FFE0EE; color: #880033; }
.chip-m { background: #DDE8FF; color: #003388; }
.loyalty-chip { font-size: var(--font-xs); font-weight: 600; padding: 2px 9px; border-radius: 20px; background: #E8F7E0; color: #2A6010; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.stat-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px; text-align: center; }
.stat-card .num { font-size: var(--font-lg); font-weight: 600; color: var(--color-text); margin: 0; }
.stat-card .lbl { font-size: var(--font-xs); color: var(--color-text-muted); margin: 2px 0 0; }
.loyalty-banner { background: #F0F9E8; border: 1px solid #90C870; border-radius: var(--radius-md); padding: 9px 14px; font-size: var(--font-sm); color: #2A5A10; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.loyalty-tag { font-size: var(--font-xs); font-weight: 600; padding: 2px 10px; border-radius: 20px; background: #C8EAA8; color: #2A5A10; }

.profile-card { background: linear-gradient(135deg, #FAE6E2, #FDF4F0, #FFF0E8); border: 1px solid #E8C4B8; border-radius: var(--radius-xl); padding: 1.25rem 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #C04A7A, #E8956D); display: flex; align-items: center; justify-content: center; font-size: var(--font-xl); flex-shrink: 0; border: 2px solid #fff; }
.profile-name { font-size: var(--font-md); font-weight: 600; color: var(--color-text); margin: 0 0 2px; }
.profile-sub { font-size: var(--font-sm); color: var(--color-text-muted); margin: 0 0 6px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: var(--font-xs); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.badge-grass { background: #D6EDD9; color: #2A6235; }
.badge-lefty { background: #EDD9F7; color: #5A1A7A; }
.badge-hard { background: #D6E6F7; color: #1A4D7A; }
.rule-banner { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 8px 14px; margin-bottom: 14px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rule-item { font-size: var(--font-sm); color: var(--color-text-muted); }
.rule-item strong { font-weight: 600; color: var(--color-text); }
.section-title { font-size: var(--font-xs); font-weight: 600; letter-spacing: .08em; color: var(--color-text-muted); text-transform: uppercase; margin: 0 0 10px; }
.picks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.pick-card { border-radius: var(--radius-lg); border: 1px solid #E0C8C0; padding: 14px; position: relative; overflow: hidden; }
.pick-card.main-men { background: linear-gradient(140deg, #EDF6FF, #F8FBFF); border-color: #B8D4EE; }
.pick-card.wild-men { background: linear-gradient(140deg, #F3EFF8, #FAF8FD); border-color: #CDB8E8; }
.pick-card.main-women { background: linear-gradient(140deg, #FFF0F6, #FFF7FA); border-color: #EEB8CC; }
.pick-card.wild-women { background: linear-gradient(140deg, #FFF5EC, #FFFAF6); border-color: #E8C4A0; }
.pick-type-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pick-type-label { font-size: var(--font-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.wild-badge { font-size: var(--font-xs); font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #F5E6A0; color: #7A6010; }
.pick-player { font-size: var(--font-md); font-weight: 600; color: var(--color-text); margin: 0 0 3px; line-height: 1.2; }
.pick-seed { font-size: var(--font-sm); color: var(--color-text-muted); margin: 0 0 10px; }
.martina-quote { font-size: var(--font-sm); line-height: 1.5; color: var(--color-text-muted); border-left: 2px solid #D48090; padding-left: 8px; font-style: italic; margin: 0; }
.pick-card.wild-men .martina-quote { border-color: #A080C8; }
.pick-card.main-women .martina-quote { border-color: #D04880; }
.pick-card.wild-women .martina-quote { border-color: #C87840; }
.seed-chip { font-size: var(--font-xs); padding: 2px 7px; border-radius: 20px; font-weight: 600; position: absolute; top: 12px; right: 12px; }
.chip-main { background: #DCF0FF; color: #1A5080; }
.chip-wild { background: #EDE0FF; color: #4A1A80; }
.stats-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.stat-chip { flex: 1; min-width: 60px; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px 12px; text-align: center; }
.stat-chip .num { font-size: var(--font-lg); font-weight: 600; color: var(--color-text); margin: 0; }
.stat-chip .lbl { font-size: var(--font-xs); color: var(--color-text-muted); margin: 2px 0 0; }
.multiplier-note { font-size: var(--font-xs); color: var(--color-text-muted); text-align: center; margin-top: 6px; padding: 6px; background: var(--color-bg-alt); border-radius: var(--radius-md); }
@media (max-width: 480px) {
  .tier-row { grid-template-columns: 70px 1fr; }
  .tier-row .right-col { display: none; }
  .picks-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── News cards ─────────────────────────────────────────────────────────────── */
.news-card { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-card); transition: box-shadow .15s; text-decoration: none; color: var(--color-text); }
.news-card:hover { box-shadow: var(--shadow-card); }
.news-card--unread { border-color: var(--color-primary); }

/* Unread dot — top-right of card */
.news-card__unread-dot {
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-pink); border: 2px solid #fff;
  display: block; flex-shrink: 0;
}

/* AI badge */
.ai-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--font-xs); font-weight: 700;
  color: var(--color-ai-text); background: var(--color-ai-bg); border-radius: 99px;
  padding: 2px 8px;
}

/* Section header with AI badge */
.section-header-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-weight: 700; font-size: var(--font-sm);
  color: var(--color-text);
}

/* Admin sub-tabs (news management) */
.admin-sub-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-sub-tab {
  padding: 6px 12px; border-radius: var(--radius-md);
  font-size: var(--font-xs); font-weight: 600;
  color: var(--color-text-muted); text-decoration: none;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
}
.admin-sub-tab--active { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-card); }

/* News admin cards (pending review) */
.news-admin-cards { display: flex; flex-direction: column; gap: 12px; }
.news-admin-card { padding: 14px; }
.news-admin-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-admin-card__title { font-size: var(--font-sm); font-weight: 700; margin-bottom: 6px; }
.news-admin-card__body { font-size: var(--font-xs); color: var(--color-text-muted); margin-bottom: 8px; }
.news-admin-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Checklist for generate news */
.checklist-league-group { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 12px; }
.checklist-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: var(--font-sm); }
.checklist-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--color-primary); flex-shrink: 0; }
.checklist-item__type { font-weight: 600; }
.checklist-item__context { font-size: var(--font-xs); }
.checklist-item__count { margin-left: auto; }

/* Notice card variants */
.notice-card { border-radius: var(--radius-md); padding: 10px 14px; font-size: var(--font-sm); }
.notice-card--warning { background: var(--color-warning-pale); border: 1px solid var(--color-warning); color: #5C3B00; }
.notice-card--info { background: #E8F4FD; border: 1px solid #4C6EF5; color: #1E3A8A; }

/* Filter pills */
.pill {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border-radius: 99px; font-size: var(--font-xs); font-weight: 600;
  white-space: nowrap; text-decoration: none;
  background: var(--color-bg-alt); color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.pill--active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── Error Pages (404, 500) ─────────────────────────────────────────── */
.err-page {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary);
}
.err-card {
  background: var(--color-card); border-radius: 20px; padding: 40px 36px;
  text-align: center; max-width: 380px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.err-emoji { font-size: 3rem; margin-bottom: 12px; }
.err-code  { font-size: 4rem; font-weight: 900; color: var(--color-primary); line-height: 1; margin-bottom: 8px; }
.err-msg   { font-size: var(--font-base); font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.err-sub   { font-size: var(--font-sm); color: var(--color-text-muted); margin-bottom: 24px; }
.err-cta   { display: inline-block; background: var(--color-primary); color: #fff; padding: 10px 24px; border-radius: 8px; font-weight: 700; font-size: var(--font-base); text-decoration: none; }
.err-cta:hover { background: var(--color-primary-light); }

/* ══════════════════════════════════════════════════════════════════════
   Tournament Hub Redesign (post-deadline)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Pill Modifiers ─────────────────────────────────────────────────── */
.pill--neutral  { background: var(--color-bg-alt);      color: var(--color-text-muted); border-color: var(--color-border); }
.pill--main     { background: var(--color-pink-pale);    color: var(--color-pink-dark);  border-color: transparent; }
.pill--wild     { background: var(--color-lime);         color: var(--color-text);       border-color: transparent; }
.pill--league   { background: var(--league-accent);      color: #fff;                    border-color: transparent; }
.pill--gi       { background: var(--color-lime);         color: var(--color-text);       border-color: transparent; }

/* ── Tournament Header ──────────────────────────────────────────────── */
.tournament-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.tournament-header__info {
  background: var(--color-card);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
}
.tournament-header__name {
  font-family: var(--font-serif);
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}
.tournament-header__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
.tournament-header__lock {
  background: var(--league-accent);
  border-radius: var(--radius-lg);
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
}
.tournament-header__lock-icon { font-size: var(--font-lg); }
.tournament-header__lock-label {
  font-family: var(--font-sans);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}
.tournament-header__lock-date {
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  font-weight: 500;
  color: #fff;
  text-align: center;
}

@media (max-width: 480px) {
  .tournament-header { grid-template-columns: 1fr; }
  .tournament-header__lock {
    flex-direction: row;
    justify-content: space-between;
    min-width: unset;
  }
}

/* ── Picks Progress Track ───────────────────────────────────────────── */
.picks-track {
  background: var(--color-card);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-md);
}
.picks-track__heading {
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.picks-track__rounds {
  display: flex;
  padding-left: 110px;
  padding-right: 56px;
  margin-bottom: var(--space-xs);
}
.picks-track__round-label {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--color-text-muted);
  flex: 1;
  text-align: center;
}
.picks-track__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}
.picks-track__player {
  font-family: var(--font-serif);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-text);
  min-width: 80px;
  flex-shrink: 0;
}
.picks-track__type {
  font-family: var(--font-sans);
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  min-width: 24px;
  flex-shrink: 0;
}
.picks-track__line {
  display: flex;
  align-items: center;
  flex: 1;
}
.picks-track__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
}
.picks-track__dot--reached {
  background: var(--color-pink-dark);
  border-color: var(--color-pink-dark);
}
.picks-track__dot--current {
  background: var(--color-pink);
  border-color: var(--color-pink-dark);
  box-shadow: 0 0 0 3px var(--color-pink-pale);
}
.picks-track__connector {
  flex: 1;
  height: 2px;
  background: var(--color-border);
}
.picks-track__connector--active {
  background: var(--color-pink);
}
.picks-track__pts {
  font-family: var(--font-serif);
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
  min-width: 40px;
  flex-shrink: 0;
}
.picks-track__pts-label {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--color-text-muted);
  text-align: right;
}
.picks-track__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--color-border);
  padding-top: var(--space-sm);
  margin-top: var(--space-xs);
}
.picks-track__total-label {
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}
.picks-track__total-value {
  font-family: var(--font-serif);
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--color-pink-dark);
}

/* ── Analysis Card ──────────────────────────────────────────────────── */
.analysis-card {
  background: var(--color-card);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-md);
}
.analysis-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.analysis-card__title {
  font-family: var(--font-sans);
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--color-text);
}
.analysis-card__headline {
  font-family: var(--font-serif);
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.analysis-card__section {
  margin-bottom: var(--space-sm);
}
.analysis-card__section:last-child { margin-bottom: 0; }
.analysis-card__section-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--league-accent);
  margin-bottom: 3px;
}
.analysis-card__body {
  font-family: var(--font-sans);
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}
.analysis-card__divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border) 30%, var(--color-border) 70%, transparent);
  margin: var(--space-sm) 0;
}
.analysis-card__link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-pink-dark);
  text-decoration: none;
}

/* ── Tournament Picks (grouped list) ────────────────────────────────── */
.tourney-picks {
  background: var(--color-card);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.tourney-picks__heading {
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: var(--space-md) var(--space-md) var(--space-sm);
}
.tourney-picks__group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-alt);
  border-bottom: 0.5px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.tourney-picks__group--current {
  background: var(--color-pink-pale);
  color: var(--color-pink-dark);
}
.tourney-picks__group-pts {
  font-family: var(--font-serif);
  font-size: var(--font-sm);
  font-weight: 600;
}
.tourney-picks__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-bottom: 0.5px solid var(--color-border);
}
.tourney-picks__row--zero { opacity: 0.4; }
.tourney-picks__player {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  color: var(--color-text);
}
.tourney-picks__round {
  font-family: var(--font-sans);
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  min-width: 30px;
  text-align: right;
}
.tourney-picks__pts {
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-text);
  min-width: 32px;
  text-align: right;
}
.tourney-picks__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-pink-dark);
  text-decoration: none;
  text-align: right;
}
