/* ============================================================================
   fOt Cup 2026 — design system extracted from Pickem_League_Page_Mockups.pptx
   ----------------------------------------------------------------------------
   Mockup palette (canonical):
     --ink           #1A1A1A   dark theme background
     --ink-panel     #242424   dark theme cards / table rows
     --ink-row-alt   #1F1F1F   dark theme alternating rows
     --brand-blue    #0B5FB8   primary brand (band, accent strips, navy)
     --brand-navy    #243B5F   table header strip
     --magenta       #E91E78   accent / active nav / "View Your Team" CTA
     --green         #5DBB3A   "Make Your Picks" CTA / PICK pill
     --gold          #D4A017   FEDE / winner / "WEEK LEADER" highlight
     --paper         #FFFFFF   light theme background
     --paper-2       #F0F4F8   light section band
     --paper-3       #FAFBFC   light card surface
     --muted-dark    #B8B8B8   secondary text on dark
     --muted-light   #5A5A5A   secondary text on light
     --line          #E5E7EB   subtle dividers

   Typography (Arial Black for display, Inter for UI, Georgia for serif quotes).
   Mobile-first. All tap targets >= 44px. No hover-only interactions.
   ============================================================================ */

:root {
  --ink:          #1A1A1A;
  --ink-panel:    #242424;
  --ink-row-alt:  #1F1F1F;
  --ink-2A:       #2A2A2A;

  --brand-blue:   #0B5FB8;
  --brand-blue-2: #094a93;
  --brand-navy:   #243B5F;

  --magenta:      #E91E78;
  --magenta-2:    #b81560;
  --green:        #5DBB3A;
  --green-2:      #46902a;
  --gold:         #D4A017;
  --gold-2:       #a47a09;
  --red:          #DC2626;
  --orange:       #F59E0B;
  --pick-blue:    #2563EB;

  --paper:        #FFFFFF;
  --paper-2:      #F0F4F8;
  --paper-3:      #FAFBFC;
  --line:         #E5E7EB;
  --muted-dark:   #B8B8B8;
  --muted-light:  #5A5A5A;

  --radius:       10px;
  --radius-pill:  999px;
  --tap:          44px;
  --shadow-card:  0 4px 18px rgba(11, 95, 184, 0.08);
  --shadow-dark:  0 6px 24px rgba(0, 0, 0, 0.45);

  --display: "Anton", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif:   Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Body modifier for dark-theme pages */
body.theme-dark {
  background: var(--ink);
  color: #fff;
}
body.theme-dark a { color: #fff; }

/* ----------------------------------------------------------------------------
   Top navigation bar — matches PPTX (thin, "26 / PICK'EM" badge on left,
   right-aligned uppercase links, active item underlined in magenta).
---------------------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  min-height: 60px;
  padding: 0 16px;
}
body.theme-dark .navbar {
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid #000;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand .badge26 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  border-radius: 6px;
  line-height: 1;
}
.brand .wordmark {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 900;
  color: inherit;
}
.brand:hover { text-decoration: none; }

.navbar nav {
  margin-left: auto;
  display: flex; gap: 22px; flex-wrap: wrap;
  align-items: center;
}
.navbar nav a {
  position: relative;
  color: inherit;
  font-family: var(--sans);
  font-weight: 800; text-transform: uppercase;
  font-size: 13px; letter-spacing: 1.5px;
  padding: 18px 2px;
  min-height: var(--tap);
  display: inline-flex; align-items: center;
  text-decoration: none;
  transition: color .15s ease;
}
.navbar nav a:hover { color: var(--magenta); text-decoration: none; }
.navbar nav a.active { color: var(--magenta); }
.navbar nav a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 3px; background: var(--magenta);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .navbar { padding: 0 12px; min-height: 56px; }
  .navbar nav { gap: 14px; }
  .navbar nav a { padding: 14px 2px; font-size: 11px; letter-spacing: 1px; }
  .brand .wordmark { display: none; }   /* keep just the 26 chip on phones */
}

/* ----------------------------------------------------------------------------
   Shell / containers
---------------------------------------------------------------------------- */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px env(safe-area-inset-bottom);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 18px 0 6px;
  color: inherit;
}
.section-sub {
  color: var(--muted-light);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
body.theme-dark .section-sub { color: var(--muted-dark); }

/* ----------------------------------------------------------------------------
   Page-header band — a thin coloured strip with title + subtitle (slides 4 & 6)
---------------------------------------------------------------------------- */
.page-band {
  background: var(--brand-blue);
  color: #fff;
  padding: 20px 16px;
}
.page-band .inner {
  max-width: 1280px;
  margin: 0 auto;
}
.page-band h1 {
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.page-band p {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* ----------------------------------------------------------------------------
   Hero (index.html) — matches slides 2 (light) & 3 (dark)
---------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--paper-2);
  padding: 32px 16px 28px;
  overflow: hidden;
}
body.theme-dark .hero { background: var(--ink); }

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; }
}

.hero-lockup {
  display: flex; align-items: flex-end; gap: 14px;
  flex-wrap: wrap;
}
.hero-lockup .big26 {
  font-family: var(--display);
  font-size: clamp(96px, 18vw, 180px);
  line-height: 0.82;
  color: var(--brand-blue);
  letter-spacing: -2px;
  margin: 0;
}
body.theme-dark .hero-lockup .big26 { color: var(--gold); }
.hero-lockup .pickem {
  display: flex; flex-direction: column;
  padding-bottom: 8px;
}
.hero-lockup .pickem .l1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 58px);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  line-height: 1;
}
body.theme-dark .hero-lockup .pickem .l1 { color: #fff; }
.hero-lockup .pickem .l2 {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 28px);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--brand-blue);
  margin-top: 4px;
}
body.theme-dark .hero-lockup .pickem .l2 { color: var(--magenta); }

.hero-meta { padding: 8px 0; }
.hero-meta .year {
  font-family: var(--display);
  font-size: clamp(88px, 16vw, 160px);
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: -3px;
  margin: 0;
}
body.theme-dark .hero-meta .year { color: #fff; }
.hero-meta .who {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 30px);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink);
  line-height: 1.05;
  margin: 12px 0 4px;
}
body.theme-dark .hero-meta .who { color: #fff; }
.hero-meta .who .gold { color: var(--gold); }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}

/* The little soccer-ball mark on the left of the hero (slide 2) */
.ball-mark {
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 1 / 1;
  margin: 6px 0 0;
}

/* Tribute photo card to the right of the hero (slide 2) */
.tribute-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-card);
  max-width: 320px;
  justify-self: end;
}
body.theme-dark .tribute-card {
  background: var(--ink-panel);
  border-color: #000;
  box-shadow: var(--shadow-dark);
}
.tribute-card img {
  width: 100%; height: auto; border-radius: 8px;
  aspect-ratio: 3 / 4; object-fit: cover;
}
.tribute-card .cap {
  text-align: center;
  font-family: var(--display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted-light);
  padding: 8px 4px 4px;
}
body.theme-dark .tribute-card .cap { color: var(--muted-dark); }

/* ----------------------------------------------------------------------------
   Buttons / pills
---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px;
  font-size: 13px; cursor: pointer;
  border: none; color: #fff;
  text-decoration: none;
  transition: filter .12s ease, transform .05s ease, background .12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-magenta { background: var(--magenta); }
.btn-magenta:hover { background: var(--magenta-2); }
.btn-green   { background: var(--green); color: #0a2911; }
.btn-green:hover { background: var(--green-2); }
.btn-blue    { background: var(--brand-blue); }
.btn-blue:hover { background: var(--brand-blue-2); }
.btn-gold    { background: var(--gold); color: #2a1f04; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost   {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--brand-blue);
}
body.theme-dark .btn-ghost { color: #fff; }
.btn-block { width: 100%; }

/* Small inline pill (PICK / LOCKED) */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff;
}
.pill.pick { background: var(--green); color: #0a2911; }
.pill.locked { background: var(--muted-light); }
.pill.live { background: var(--red); }
.pill.ft   { background: var(--ink); }
.pill.ns   { background: var(--brand-blue); }
.pill.high { background: var(--gold); color: #2a1f04; }
.pill.med  { background: var(--brand-blue); }
.pill.low  { background: var(--muted-light); }
.pill.pending { background: var(--paper-2); color: var(--muted-light); border: 1px solid var(--line); }

/* ----------------------------------------------------------------------------
   News ticker (under the hero band)
---------------------------------------------------------------------------- */
.ticker {
  background: var(--brand-blue);
  color: #fff;
  display: flex; align-items: center;
  overflow: hidden;
}
.ticker .label {
  background: var(--magenta); color: #fff;
  padding: 8px 14px; font-weight: 900;
  letter-spacing: 2px; font-size: 12px;
  flex-shrink: 0;
  font-family: var(--sans);
}
.ticker .scroll {
  white-space: nowrap; padding: 8px 14px;
  overflow: hidden;
  flex: 1;
}
.ticker .scroll span { margin-right: 32px; font-size: 14px; }
.ticker .scroll .when { opacity: 0.75; font-size: 12px; margin-left: 6px; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.ticker .scroll.scrolling > .inner {
  display: inline-block;
  animation: tickerScroll 60s linear infinite;
}

/* ----------------------------------------------------------------------------
   Cards, forms, alerts
---------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}
body.theme-dark .card {
  background: var(--ink-panel);
  border-color: #000;
  box-shadow: var(--shadow-dark);
}
.card h2, .card h3 {
  font-family: var(--display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: inherit;
}

label.block {
  display: block; font-weight: 700;
  margin-bottom: 6px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
}
input[type="email"], input[type="password"],
input[type="text"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%;
  font-size: 16px;       /* avoid iOS auto-zoom */
  font-family: var(--sans);
  padding: 12px 14px;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
body.theme-dark input, body.theme-dark select, body.theme-dark textarea {
  background: var(--ink-panel);
  color: #fff;
  border-color: #333;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(11, 95, 184, 0.35);
  border-color: var(--brand-blue);
}
.form-row  { margin: 12px 0; }
.form-help { font-size: 13px; color: var(--muted-light); margin-top: 6px; }
body.theme-dark .form-help { color: var(--muted-dark); }

.alert {
  padding: 12px 14px; border-radius: 10px; margin: 10px 0;
  font-weight: 600;
}
.alert-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* ----------------------------------------------------------------------------
   Stage tabs (used on picks page, matches section)
---------------------------------------------------------------------------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  padding: 10px 16px; min-height: var(--tap);
  border-radius: var(--radius-pill);
  background: var(--paper-3); border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  font-size: 12px;
  cursor: pointer; user-select: none;
  white-space: nowrap;
}
body.theme-dark .tab {
  background: var(--ink-panel);
  border-color: #2a2a2a;
  color: #fff;
}
.tab.active { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.tab[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ----------------------------------------------------------------------------
   Match cards (slide 5) — light theme card with left blue accent rail
---------------------------------------------------------------------------- */
.match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media (min-width: 720px)  { .match-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .match-grid { grid-template-columns: 1fr 1fr 1fr; } }

.match-card {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
body.theme-dark .match-card {
  background: var(--ink-panel);
  border-color: #2a2a2a;
}
.match-card::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--brand-blue);
}
.match-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted-light);
}
body.theme-dark .match-head { color: var(--muted-dark); }
.match-head .stage-pill {
  background: var(--brand-blue); color: #fff;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; letter-spacing: 1px; font-weight: 800;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
  margin: 10px 0;
}
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.team .name {
  font-family: var(--display);
  font-size: clamp(18px, 3.4vw, 26px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-dark .team .name { color: #fff; }
.team.right { justify-content: flex-end; }
.team.right .name { text-align: right; }
.score-vs {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--muted-light);
}
body.theme-dark .score-vs { color: var(--muted-dark); }
.score-vs.live { color: var(--red); font-size: 18px; }
.score-vs.final { color: var(--ink); font-size: 18px; }
body.theme-dark .score-vs.final { color: #fff; }

.venue {
  font-size: 12px;
  color: var(--muted-light);
  margin: 2px 0 10px;
  letter-spacing: 0.4px;
}
body.theme-dark .venue { color: var(--muted-dark); }

.match-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; flex-wrap: wrap;
  margin-top: 6px;
}

/* ----------------------------------------------------------------------------
   Picks UI (form parts on /picks)
---------------------------------------------------------------------------- */
.pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.pick-row.knockout { grid-template-columns: 1fr 1fr; }
.pick-opt {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 10px 8px;
  border: 2px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  cursor: pointer; user-select: none;
  font-family: var(--sans);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  font-size: 13px; text-align: center;
  transition: background .12s, color .12s, border-color .12s;
}
body.theme-dark .pick-opt {
  background: var(--ink-row-alt);
  color: #fff;
  border-color: #333;
}
.pick-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick-opt.selected {
  background: var(--brand-blue); color: #fff; border-color: var(--brand-blue);
}
.pick-opt[disabled], .pick-opt.locked {
  opacity: 0.55; cursor: not-allowed; background: var(--paper-2);
}
body.theme-dark .pick-opt[disabled], body.theme-dark .pick-opt.locked {
  background: #161616;
}
.score-pickers {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 8px; align-items: center;
  margin-top: 10px;
}
.score-pickers .x {
  font-family: var(--display); font-size: 22px; color: var(--muted-light);
  text-align: center;
}
.timing-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-top: 10px;
}

/* ----------------------------------------------------------------------------
   Standings table (slide 4 — dark theme)
   Light theme also works for legacy callsites.
---------------------------------------------------------------------------- */
.standings-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 960px) {
  .standings-wrap { grid-template-columns: 1fr 320px; }
}

.standings-table {
  background: var(--ink-panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
body:not(.theme-dark) .standings-table {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.standings-table .row {
  display: grid;
  grid-template-columns: 44px 1fr 64px 72px 64px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  font-family: var(--sans);
}
body:not(.theme-dark) .standings-table .row {
  border-top: 1px solid var(--line);
}
.standings-table .row.head {
  background: var(--brand-navy);
  border-top: none;
  font-family: var(--display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  color: #fff;
}
body:not(.theme-dark) .standings-table .row.head {
  background: var(--brand-blue);
}
.standings-table .row:nth-child(odd):not(.head) { background: var(--ink-row-alt); }
body:not(.theme-dark) .standings-table .row:nth-child(odd):not(.head) { background: var(--paper-3); }

.standings-table .row .rank {
  font-family: var(--display);
  font-size: 18px;
  color: var(--gold);
  text-align: center;
}
.standings-table .row.head .rank { color: #fff; }

.standings-table .row .player {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.standings-table .row .player img {
  width: 32px; height: 32px; border-radius: 6px;
  object-fit: cover; background: var(--ink); flex-shrink: 0;
}
.standings-table .row .player .nm {
  font-weight: 800;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body:not(.theme-dark) .standings-table .row .player .nm { color: var(--ink); }
.standings-table .row .stat {
  font-family: var(--display);
  font-size: 16px;
  text-align: center;
  color: #fff;
}
body:not(.theme-dark) .standings-table .row .stat { color: var(--ink); }
.standings-table .row .stat.points { color: var(--gold); }
.standings-table .row.head .stat { color: #fff; }

/* magenta accent rail on row hover */
.standings-table .row.pos1::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--magenta);
}

@media (max-width: 640px) {
  .standings-table .row {
    grid-template-columns: 34px 1fr 56px 56px;
    padding: 10px 10px;
  }
  .standings-table .row .stat.streak { display: none; }
}

/* Week-leader side card (slide 4 right column) */
.week-leader {
  background: var(--ink-panel);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-dark);
  color: #fff;
}
body:not(.theme-dark) .week-leader {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.week-leader .label {
  font-family: var(--display);
  letter-spacing: 2px; text-transform: uppercase;
  font-size: 12px; color: var(--muted-dark);
}
body:not(.theme-dark) .week-leader .label { color: var(--muted-light); }
.week-leader img {
  width: 120px; height: 160px; object-fit: cover;
  border-radius: 8px; margin: 12px auto;
  background: var(--ink-2A);
}
.week-leader .name {
  font-family: var(--display);
  letter-spacing: 1.5px; text-transform: uppercase;
  font-size: 22px;
}
.week-leader .streak {
  font-family: var(--sans);
  letter-spacing: 1px; font-size: 12px;
  color: var(--magenta);
  margin: 4px 0 10px;
  text-transform: uppercase;
}
.week-leader hr {
  border: none;
  border-top: 2px solid var(--gold);
  width: 60px; margin: 12px auto;
}
.week-leader .pts {
  font-family: var(--display);
  font-size: 28px;
  color: var(--gold);
}
.week-leader .pts-sub {
  font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted-dark);
}
body:not(.theme-dark) .week-leader .pts-sub { color: var(--muted-light); }

/* ----------------------------------------------------------------------------
   Public per-match picks grid (under match cards on /)
---------------------------------------------------------------------------- */
.picks-grid {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-top: 10px;
}
body.theme-dark .picks-grid {
  background: var(--ink-row-alt);
  border-color: #2a2a2a;
}
.picks-grid table {
  border-collapse: collapse; width: 100%; min-width: 520px;
  font-size: 13px;
}
.picks-grid th, .picks-grid td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px; text-align: center;
  white-space: nowrap;
}
body.theme-dark .picks-grid th, body.theme-dark .picks-grid td {
  border-bottom: 1px solid #2a2a2a;
  color: #fff;
}
.picks-grid th.sticky, .picks-grid td.sticky {
  position: sticky; left: 0; background: var(--paper);
  text-align: left; min-width: 130px; z-index: 1;
}
body.theme-dark .picks-grid th.sticky, body.theme-dark .picks-grid td.sticky {
  background: var(--ink-row-alt);
}
.picks-grid th {
  background: var(--paper-2); position: sticky; top: 0;
  font-family: var(--display);
  letter-spacing: 1px; text-transform: uppercase;
  font-size: 12px;
}
body.theme-dark .picks-grid th { background: var(--ink-panel); }
.cell.green   { background: var(--green);     color: #07260f; font-weight: 900; }
.cell.orange  { background: var(--orange);    color: #fff;    font-weight: 900; }
.cell.red     { background: var(--red);       color: #fff;    font-weight: 900; }
.cell.blue    { background: var(--pick-blue); color: #fff;    font-weight: 900; }
.cell.gray    { background: var(--line);      color: var(--muted-light); }
.cell.pending { background: rgba(11,95,184,.12); color: var(--brand-blue); font-weight: 800; }

.legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 10px 6px;
  font-size: 12px;
}
.legend .swatch {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted-light);
}
body.theme-dark .legend .swatch { color: var(--muted-dark); }
.legend .sw {
  width: 14px; height: 14px; border-radius: 3px; display: inline-block;
}
.sw-green  { background: var(--green); }
.sw-orange { background: var(--orange); }
.sw-red    { background: var(--red); }
.sw-blue   { background: var(--pick-blue); }
.sw-gray   { background: var(--line); }

/* ----------------------------------------------------------------------------
   Profile / "Your Team" (slide 6) — left photo card + stats grid + next-picks
---------------------------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .profile-grid { grid-template-columns: 320px 1fr 360px; }
}

.profile-card {
  background: var(--ink-panel);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-dark);
}
body:not(.theme-dark) .profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.profile-card img.face {
  width: 200px; height: 250px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--ink-2A);
  margin: 8px auto 14px;
  display: block;
}
.profile-card .accent-line {
  width: 90%; height: 2px;
  background: var(--gold);
  margin: 8px auto;
}
.profile-card .team-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
}
.profile-card .meta {
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 4px 0 0;
}
body:not(.theme-dark) .profile-card .meta { color: var(--muted-light); }
.profile-card .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted-dark);
  margin: 10px 0 0;
}
body:not(.theme-dark) .profile-card .quote { color: var(--muted-light); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.stat-tile {
  position: relative;
  background: var(--ink-panel);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
body:not(.theme-dark) .stat-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.stat-tile::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 0; height: 5px;
  background: var(--brand-blue);
}
.stat-tile.t-gold::before    { background: var(--gold); }
.stat-tile.t-blue::before    { background: var(--brand-blue); }
.stat-tile.t-magenta::before { background: var(--magenta); }
.stat-tile.t-green::before   { background: var(--green); }
.stat-tile .num {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
  letter-spacing: 1px;
}
.stat-tile.t-gold .num    { color: var(--gold); }
.stat-tile.t-blue .num    { color: var(--brand-blue); }
.stat-tile.t-magenta .num { color: var(--magenta); }
.stat-tile.t-green .num   { color: var(--green); }
.stat-tile .lbl {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-dark);
}
body:not(.theme-dark) .stat-tile .lbl { color: var(--muted-light); }

.next-picks {
  background: var(--ink-panel);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-dark);
}
body:not(.theme-dark) .next-picks {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.next-picks h3 {
  font-family: var(--display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-size: 18px;
}
.next-picks .underline {
  width: 32px; height: 3px;
  background: var(--magenta);
  margin: 0 0 14px;
}
.next-picks .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ink);
  border-radius: 8px;
  margin-bottom: 8px;
}
body:not(.theme-dark) .next-picks .row {
  background: var(--paper-3);
}
.next-picks .row .matchup {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.next-picks .row .pickline {
  font-size: 12px;
  color: var(--muted-dark);
  letter-spacing: 0.4px;
}
body:not(.theme-dark) .next-picks .row .pickline { color: var(--muted-light); }

/* ----------------------------------------------------------------------------
   Tribute page (slide 7) — "FEDERICO ORTIZ TELLO" big headline + photo
---------------------------------------------------------------------------- */
.tribute-section {
  background: var(--paper-2);
  padding: 36px 16px 40px;
}
body.theme-dark .tribute-section { background: var(--ink); }

.tribute-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .tribute-grid { grid-template-columns: 1.2fr 1fr; }
}
.tribute-text .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brand-blue);
}
.tribute-text .eyebrow::before {
  content: ""; display: inline-block;
  width: 40px; height: 4px; background: var(--gold);
}
.tribute-text h1 {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.92;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 12px 0 0;
  color: var(--ink);
}
body.theme-dark .tribute-text h1 { color: #fff; }
.tribute-text h1 .nm2 { color: var(--brand-blue); display: block; }
body.theme-dark .tribute-text h1 .nm2 { color: var(--gold); }

.tribute-text .lede {
  margin: 18px 0 6px;
  font-size: 17px;
  color: var(--muted-light);
}
body.theme-dark .tribute-text .lede { color: var(--muted-dark); }
.tribute-text .body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted-light);
  max-width: 56ch;
}
body.theme-dark .tribute-text .body { color: var(--muted-dark); }

.tribute-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--paper);
}
.tribute-photo img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.tribute-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 20px;
}

/* ----------------------------------------------------------------------------
   Avatar wrap (account / admin user list)
---------------------------------------------------------------------------- */
.avatar-wrap { display: flex; align-items: center; gap: 14px; }
.avatar-img {
  width: 54px; height: 54px; border-radius: 10px;
  background: var(--paper-2);
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.badge {
  display: inline-block; padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted-light);
}
body.theme-dark .badge {
  background: var(--ink-panel);
  border-color: #2a2a2a;
  color: var(--muted-dark);
}

/* ----------------------------------------------------------------------------
   Footer / misc
---------------------------------------------------------------------------- */
.footer {
  padding: 26px 12px 50px;
  text-align: center;
  color: var(--muted-light);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
body.theme-dark .footer { color: var(--muted-dark); }
.footer strong { color: var(--gold); font-weight: 800; }

/* Accessibility */
button:focus-visible, .btn:focus-visible,
.pick-opt:focus-visible, .tab:focus-visible {
  outline: 3px solid rgba(233, 30, 120, 0.55);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
   Avatar crop editor (account page) — preview canvas, zoom slider, actions.
   The canvas matches the server's stored aspect ratio (400x500 / 4:5 portrait)
   so the user gets a true WYSIWYG preview before upload.
---------------------------------------------------------------------------- */
.crop-editor {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
body.theme-dark .crop-editor { border-top-color: #2a2a2a; }

.crop-stage {
  display: flex; justify-content: center;
  margin: 10px 0 14px;
}
.crop-stage canvas {
  width: auto;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  height: auto;
  background: var(--ink-2A);
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  touch-action: none;            /* allow drag-to-pan on touch without page scroll */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.crop-stage canvas:active { cursor: grabbing; }
body.theme-dark .crop-stage canvas { border-color: #2a2a2a; }

.crop-controls { margin: 6px 0 10px; }
.crop-controls input[type="range"] {
  width: 100%;
  min-height: var(--tap);
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.crop-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px; background: var(--line);
}
body.theme-dark .crop-controls input[type="range"]::-webkit-slider-runnable-track {
  background: #333;
}
.crop-controls input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px; background: var(--line);
}
body.theme-dark .crop-controls input[type="range"]::-moz-range-track {
  background: #333;
}
.crop-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--magenta);
  border: 2px solid #fff;
  margin-top: -8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.crop-controls input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--magenta);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.crop-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 6px;
}
