/* Ninety — football predictions, light surface.
   Outfit carries the headline weight, Manrope everything that gets read in a
   hurry. Green is the brand, red appears only on a missed call. */

:root {
  --bg: #F1F4F0;
  --card: #FFFFFF;
  --ink: #0D1B16;
  --muted: #5F7168;
  --faint: #93A49B;

  --line: #E3E9E4;
  --line-2: #EEF2EE;

  --green-900: #06301F;
  --green-800: #0A4029;
  --green-700: #0C5C3C;
  --green-600: #10875A;
  --green-100: #E2F3E9;
  --green-50: #F1F9F4;

  --red: #D6503F;
  --red-50: #FBEDEB;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --shadow: 0 1px 2px rgba(13, 27, 22, 0.04), 0 10px 28px rgba(13, 27, 22, 0.05);
  --radius: 20px;

  --max: 1600px;
  --page-px: clamp(16px, 6vw, 100px);
  --row: 70px 190px minmax(260px, 1fr) 90px 70px 100px 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green-900);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-px);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 140ms ease, background-color 140ms ease;
}

.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.is-active { color: var(--green-900); background: #D8F0E2; }

.picks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.picks:hover { background: rgba(255, 255, 255, 0.18); }

.picks b {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-900);
  background: #D8F0E2;
  border-radius: 999px;
  min-width: 22px;
  padding: 2px 6px;
  text-align: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  font-family: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-solid { background: #fff; color: var(--green-900); }
.btn-solid:hover { background: #EAF6EF; }

.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.16); }

.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); }

.btn-block { width: 100%; margin-top: 20px; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-px) 0;
}

.hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-900);
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(1.08) brightness(1.05);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(6, 48, 31, 0.93) 0%, rgba(6, 48, 31, 0.78) 38%, rgba(6, 48, 31, 0.34) 78%, rgba(6, 48, 31, 0.2) 100%),
    linear-gradient(0deg, rgba(6, 48, 31, 0.35) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 10px 0 0;
}

.hero-lede {
  margin: 8px 0 0;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions .btn {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

/* ---------- featured pick ---------- */

.pick-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(4, 30, 20, 0.22);
}

.pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  white-space: nowrap;
}

.pill-soft { background: var(--green-50); color: var(--green-700); }

.pick-meta { font-size: 11.5px; color: var(--faint); }

.pick-fixture {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

.pick-team.away { color: var(--muted); }

.pick-vs {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--text);
}

.crest {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--club, #ccc);
  color: var(--crest-ink, #fff);
  font-family: var(--text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.crest-lg { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }

.pick-call {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.pick-call b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.prob-bar {
  display: flex;
  gap: 3px;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.prob-bar i { display: block; background: #E4EBE5; border-radius: 2px; }
.prob-bar i.on { background: var(--green-600); }

.prob-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--faint);
}

.pick-card .btn-block {
  margin-top: 12px;
  height: 38px;
  font-size: 13px;
}

.prob-legend .on { color: var(--green-700); font-weight: 700; }

/* ---------- stats ---------- */

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat b.dim { color: var(--faint); }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- board ---------- */

.board {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-px) 0;
  scroll-margin-top: 80px;
}

.board-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  padding: 28px 28px 24px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.board-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0;
}

.board-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

.board-dates-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dates {
  display: flex;
  gap: 8px;
  align-items: center;
}

.date {
  width: 52px;
  padding: 6px 0 5px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #FFFFFF;
  text-align: center;
  cursor: pointer;
  font: inherit;
  transition: all 140ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

.date .date-month {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B7280;
  line-height: 1.1;
}

.date .date-day {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.1;
}

.date[aria-selected="true"] {
  background: #B9382A;
  border-color: #B9382A;
  color: #FFFFFF;
}

.date[aria-selected="true"] .date-month {
  color: rgba(255, 255, 255, 0.85);
}

.date[aria-selected="true"] .date-day {
  color: #FFFFFF;
}

.date-cal-btn {
  width: 44px;
  height: 48px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #FFFFFF;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 140ms ease;
  flex: none;
}

.date-cal-btn:hover {
  border-color: #D1D5DB;
  color: #111827;
  background: #F9FAFB;
}

/* markets */

.markets {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.markets::-webkit-scrollbar {
  display: none;
}

.market {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #F1F3F5;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: all 140ms ease;
}

.market:hover {
  background: #E5E7EB;
  color: #111827;
}

.market[aria-selected="true"] {
  background: #063A34;
  color: #FFFFFF;
  font-weight: 700;
}

/* leagues: quiet row */

.leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  border-bottom: 1px solid #E5E7EB;
}

.league {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 8px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 140ms ease;
}

.league:hover {
  color: #111827;
}

.league[aria-pressed="true"] {
  color: #063A34;
  border-bottom-color: #063A34;
}

/* ---------- table ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.table-head {
  display: grid;
  grid-template-columns: var(--row);
  gap: 12px;
  align-items: center;
  padding: 16px 14px 12px;
  border-bottom: 1px solid #E5E7EB;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  min-width: 820px;
}

.th-time { text-align: left; }
.th-league { text-align: left; }
.th-match { text-align: center; }
.th-tip { text-align: center; }
.th-odds { text-align: center; }
.th-prob { text-align: center; }
.th-action { text-align: right; }

.num { text-align: right; }

.matches {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  min-width: 820px;
}

.match {
  display: grid;
  grid-template-columns: var(--row);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 2px 0;
  transition: background-color 140ms ease;
  border: none;
}

.match:nth-child(odd) {
  background: #FFFFFF;
}

.match:nth-child(even) {
  background: #F4F6F8;
}

.match:hover {
  background: #EEF2F6;
}

.m-time {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

.m-league {
  font-size: 13px;
  font-weight: 500;
  color: #4B5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.m-fixture-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.m-fixture-home {
  justify-content: flex-end;
}

.m-fixture-away {
  justify-content: flex-start;
}

.m-team {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-team.home {
  text-align: right;
}

.m-team.away {
  text-align: left;
}

.m-vs {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: none;
  padding: 0 4px;
  text-align: center;
}

.crest {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--club, #1A1A1A);
  color: var(--crest-ink, #FFFFFF);
  flex: none;
  overflow: hidden;
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crest.crest-logo {
  background: transparent;
}

.crest-lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.m-tip {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-odds {
  font-size: 13.5px;
  font-weight: 700;
  color: #16A34A;
  text-align: center;
}

.m-prob {
  display: flex;
  align-items: center;
  justify-content: center;
}

.confidence-badge {
  background: #D1FADF;
  color: #027A48;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  text-align: center;
}

.m-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.add {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 140ms ease;
}

.add:hover {
  background: #063A34;
  border-color: #063A34;
  color: #FFFFFF;
}

.add[aria-pressed="true"] {
  background: #D1FADF;
  border-color: #A6F4C5;
  color: #027A48;
}

.add svg { width: 12px; height: 12px; }

/* Bottom Footer Buttons */

.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #E5E7EB;
  gap: 12px;
  flex-wrap: wrap;
}

.board-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.board-footer-right {
  display: flex;
  align-items: center;
}

.btn-board-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0088CC;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.btn-board-tg:hover {
  background: #0077B5;
  color: #FFFFFF;
}

.btn-board-banker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #B9382A;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.btn-board-banker:hover {
  background: #A02E22;
  color: #FFFFFF;
}

.btn-board-banker .arr,
.btn-board-all .arr {
  font-size: 16px;
  line-height: 1;
}

.btn-board-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #374151;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 140ms ease;
}

.btn-board-all:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
  color: #111827;
}

.empty {
  padding: 40px 0;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  border-bottom: 1px solid var(--line-2);
}

/* ---------- split section ---------- */

.split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  scroll-margin-top: 80px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
}

.text-link { font-size: 12.5px; font-weight: 700; color: var(--green-700); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.card-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 46ch;
}

.ledger { list-style: none; margin: 16px 0 0; padding: 0; }

.ledger li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 46px 88px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
}

.res {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 0;
  border-radius: 999px;
}

.res.win { color: var(--green-700); background: var(--green-50); }
.res.loss { color: var(--red); background: var(--red-50); }

.ledger .fixture { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .score { font-weight: 700; text-align: right; }
.ledger .graded { font-size: 11px; color: var(--faint); text-align: right; }

/* standings */

.standings { width: 100%; border-collapse: collapse; margin-top: 12px; }

.standings th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.standings td {
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line-2);
}

.standings tr:last-child td { border-bottom: 0; }
.standings td:first-child { color: var(--faint); width: 22px; }
.standings .crest { margin-right: 8px; vertical-align: middle; width: 22px; height: 22px; border-radius: 6px; font-size: 7.5px; }
.standings .strong { font-weight: 700; }

/* ---------- method ---------- */

.method {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--page-px) 0;
  scroll-margin-top: 80px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.method h4 {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.method p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- footer ---------- */

.foot {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: #EBEFEA;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--page-px) 36px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.brand-dark { color: var(--ink); }

.foot p {
  margin: 8px 0 0;
  max-width: 52ch;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px;
  }

  .pick-card { max-width: 400px; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: minmax(0, 1fr); }

  .method-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }

}

@media (max-width: 860px) {
  .nav-links { display: none; }

  .topbar-inner { gap: 12px; }

  .board-card { padding: 18px 14px; }

  .board-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .board-dates-wrap { width: 100%; overflow-x: auto; padding-bottom: 2px; }

  .dates { overflow-x: auto; padding-bottom: 2px; }

  .board-footer { flex-direction: column; align-items: stretch; }
  .board-footer-left { width: 100%; display: flex; gap: 8px; }
  .board-footer-left .btn-board-tg,
  .board-footer-left .btn-board-banker { flex: 1; text-align: center; }
  .board-footer-right { width: 100%; }
  .btn-board-all { width: 100%; justify-content: center; }

  .ledger li { grid-template-columns: 50px minmax(0, 1fr) 44px; }
  .ledger .graded { display: none; }
}

@media (max-width: 560px) {
  .hero, .stats, .board, .split, .method { padding-left: 14px; padding-right: 14px; }
  .topbar-inner, .foot-inner { padding-left: 14px; padding-right: 14px; }

  .hero-card { padding: 24px 20px; border-radius: 20px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }

  .pick-card { padding: 16px; }

  .stat { padding: 14px 16px; }
  .stat b { font-size: 21px; }

  .card { padding: 18px; }
  .picks span { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- nav dropdowns (app routes, not mockup anchors) ---------- */

.nav-links .nav-item { position: relative; display: flex; }

.nav-links .nav-trigger {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 140ms ease, background-color 140ms ease;
}

.nav-links .nav-trigger:hover,
.nav-links .nav-item.is-open .nav-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.caret { font-size: 9px; line-height: 1; opacity: 0.75; }

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  min-width: 214px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop,
.nav-item.is-open .nav-drop { display: flex; }

.nav-links .nav-drop a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  white-space: nowrap;
}

.nav-links .nav-drop a:hover {
  color: var(--green-800);
  background: var(--green-50);
}

.standings-empty { color: var(--faint); font-size: 12.5px; text-align: center; }

@media (max-width: 860px) {
  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .picks { margin-left: auto; }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    margin-right: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links .nav-item { flex-direction: column; }

  .nav-drop {
    position: static;
    display: none;
    min-width: 0;
    width: max-content;
    margin: 4px 0 4px 4px;
    border-radius: 12px;
  }

  .nav-item:hover .nav-drop,
  .nav-item:focus-within .nav-drop { display: none; }

  .nav-item.is-open .nav-drop { display: flex; }
}

/* empty rows inside the ledger keep the list full-width */
.ledger .empty {
  display: block;
  grid-template-columns: none;
  padding: 18px 0 6px;
  text-align: left;
  border-top: 1px solid var(--line-2);
  border-bottom: 0;
  line-height: 1.5;
}

/* real club badges (API-Sports) sit on a white tile so dark crests stay visible */
.crest-logo {
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}

.crest-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crest-lg.crest-logo { padding: 4px; }

/* game result status in place of the old add-to-picks button */
.m-status {
  display: inline-block;
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.m-status.pending { color: var(--faint); background: var(--line-2); }
.m-status.won { color: var(--green-700); background: var(--green-50); }
.m-status.lost { color: var(--red); background: var(--red-50); }
