@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/dm-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #101411;
  --surface: #171d18;
  --surface-raised: #1e261f;
  --line: #303a31;
  --text: #f0f3ed;
  --muted: #a5b0a7;
  --accent: #b6ed78;
  --accent-ink: #15220f;
  --red: #f0a6a0;
  --radius: 16px;
  --page-width: 1200px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Manrope", var(--font);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
.page-shell {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: 32px;
}
.main-content-shell {
  padding-top: 44px;
  padding-bottom: 72px;
  min-height: calc(100vh - 185px);
}
h1,
h2,
h3,
h5,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h5 {
  font-family: var(--display);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
}
h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
h3,
h5 {
  font-size: 20px;
  margin-bottom: 8px;
}
p {
  color: var(--muted);
  margin-bottom: 18px;
}
.accent {
  color: var(--accent);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.muted,
.subtitle,
.help-text {
  color: var(--muted);
}
.help-text {
  font-size: 12px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 20, 17, 0.96);
}
.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font: 800 18px var(--display);
  letter-spacing: -0.6px;
}
.brand-light {
  font-weight: 500;
  margin-left: 4px;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 32px;
  line-height: 1;
  position: relative;
  padding-bottom: 4px;
}
.brand-mark span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  font-size: 22px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 600;
}
.site-nav > a {
  padding-block: 10px;
  color: var(--muted);
}
.site-nav > a:hover,
.site-nav > a[aria-current] {
  color: var(--text);
}
.site-nav > a[aria-current] {
  box-shadow: 0 2px var(--accent);
}
.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}
.nav-user {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
}
.site-nav .nav-cta {
  color: var(--accent-ink);
  padding: 11px 16px;
}
.menu-toggle {
  display: none !important;
}
.button,
.btn,
.submit-btn,
.btn-submit {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.button-primary,
.submit-btn,
.btn-submit {
  background: var(--accent);
  color: var(--accent-ink);
}
.button-primary:hover,
.submit-btn:hover,
.btn-submit:hover {
  background: #c8f69b;
  color: var(--accent-ink);
}
.button-quiet,
.pagination-btn,
.clear-btn {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line);
}
.button-quiet:hover,
.pagination-btn:hover:not(:disabled),
.clear-btn:hover {
  background: #29352b;
  border-color: #566a54;
  color: var(--text);
}
.text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading p {
  max-width: 600px;
  margin-bottom: 0;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 24px;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  padding: 26px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.panel-heading h2 {
  font-size: 20px;
}
.panel-heading p {
  font-size: 13px;
  margin-bottom: 0;
}
.panel-heading .count-badge {
  align-self: flex-start;
}
.panel-body {
  padding: 24px 28px;
}
.count-badge,
.sport-tag {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.kpi-card .kpi-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}
.kpi-value {
  font: 700 32px/1.1 var(--display);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.kpi-card small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 12px;
}
.positive {
  color: var(--accent);
}
.negative {
  color: var(--red);
}
.filter-grid,
.form-row,
.selectors-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 24px 28px;
}
.filter-field,
.form-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.filter-field label,
.form-group label,
.auth-form label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
input:not([type="hidden"]),
select {
  background: #121813;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
input::placeholder {
  color: #849087;
}
input:disabled,
select:disabled {
  opacity: 0.45;
}
select {
  padding-right: 24px;
}
input[type="date"] {
  font-size: 12px;
}
.clear-btn,
.pagination-btn {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  min-height: 42px;
  padding: 9px 13px;
}
.table-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 0 28px 20px;
}
.table-toolbar .filter-field:first-child {
  flex: 1;
  max-width: 360px;
}
.table-toolbar .filter-field:last-child {
  max-width: 100px;
  margin-left: auto;
}
.table-scroll,
.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #4c5b4e var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
thead {
  background: #1c241d;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid #29342b;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 28px;
}
th:last-child,
td:last-child {
  padding-right: 28px;
}
tbody tr:last-child > * {
  border-bottom: none;
}
tbody tr:hover {
  background: #1c251e;
}
td {
  color: #dce4dc;
}
td.num,
th.num {
  text-align: right;
}
th[data-col] {
  cursor: pointer;
}
th[data-col]::after {
  content: " ↕";
  opacity: 0.4;
}
th[aria-sort="ascending"]::after {
  content: " ↑";
  opacity: 1;
  color: var(--accent);
}
th[aria-sort="descending"]::after {
  content: " ↓";
  opacity: 1;
  color: var(--accent);
}
th[data-col]:hover {
  color: var(--text);
}
#activeTable,
#pastTable {
  min-width: 930px;
}
#lbTable {
  min-width: 770px;
}
#lbTable td:not(:first-child),
#lbTable th:not(:first-child) {
  text-align: right;
}
.performance-table th:first-child,
.performance-table td:first-child {
  width: 45%;
}
.performance-table td,
.performance-table thead th:not(:first-child) {
  text-align: right;
}
.performance-table tbody th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.performance-table th,
.performance-table td {
  padding-block: 13px;
}
.performance-table td:last-child {
  color: var(--accent);
}
.performance-note {
  margin: 0;
  padding: 15px 28px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: #263322;
  color: var(--accent);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.outcome::before {
  content: "";
  height: 4px;
  width: 4px;
  background: currentColor;
  border-radius: 50%;
}
.outcome-loss {
  background: #372624;
  color: var(--red);
}
.outcome-push,
.outcome-pending,
.outcome-cancelled {
  background: #2b302c;
  color: #b7c0b9;
}
.cancel-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
}
.cancel-btn:hover {
  color: var(--red);
  border-color: var(--red);
}
.pagination-controls {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.pagination-controls span {
  color: var(--muted);
  font-size: 12px;
  margin-right: auto;
}
.pagination-btn {
  min-height: 34px;
  padding: 6px 10px;
}
.empty-state {
  padding: 48px 28px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--text);
}
.empty-state p {
  font-size: 13px;
}
.empty-state .button {
  margin-top: 4px;
}
.empty-state.compact {
  padding: 24px;
}
.alert {
  padding: 15px 20px;
  background: #243122;
  border: 1px solid #3d5236;
  color: #d8edcd;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 24px;
}
.alert-danger,
.alert-error {
  background: #32201f;
  border-color: #68433e;
  color: #f4c2be;
}
.alert-info,
.alert-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.footer-brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.site-footer > a:last-child {
  margin-left: auto;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -70px;
  z-index: 20;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

/* The opening moment */
.home-page .main-content-shell {
  padding-top: 48px;
}
.home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.home-intro .eyebrow {
  margin: 0;
}
.edition {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.quote-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  border-radius: 22px;
  border: 1px solid #394935;
  background: radial-gradient(
    ellipse at 100% 30%,
    #35472a 0%,
    #202d1d 40%,
    #182119 75%
  );
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-hero::after {
  content: "12";
  font: 800 410px/0.8 var(--display);
  letter-spacing: -40px;
  color: rgba(182, 237, 120, 0.035);
  position: absolute;
  right: 35px;
  top: 28px;
  z-index: -1;
  transform: rotate(-6deg);
}
.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero-topline .eyebrow {
  margin: 0;
  color: #c2d5b5;
  font-size: 10px;
}
.tb-mark {
  white-space: nowrap;
  flex-shrink: 0;
  font: 800 18px var(--display);
  letter-spacing: -1px;
  color: var(--accent);
  border: 1px solid #647854;
  border-radius: 7px;
  padding: 6px 9px;
}
.hero-quote {
  margin: 32px 0;
  max-width: 890px;
}
.hero-quote p {
  font-family: var(--display);
  font-size: clamp(29px, 4.3vw, 54px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.quote-credit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}
.quote-credit::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.quote-credit strong {
  font-weight: 600;
  color: var(--text);
}
.quote-credit a {
  font-size: 10px;
  border-bottom: 1px solid #55654b;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.quote-shuffle {
  background: transparent;
  border: 1px solid #4c6042;
  color: #cfdfc3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote-shuffle:hover {
  border-color: var(--accent);
}
.hero-bottom > span {
  font-size: 11px;
  color: #9aae8e;
}
.home-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 38px 0 40px;
}
.home-next h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 8px;
}
.home-next p {
  font-size: 14px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 30px;
  gap: 40px;
}
.feature-number {
  font-family: var(--display);
  color: #758871;
  font-size: 12px;
  margin-bottom: 15px;
  display: block;
}
.feature-grid h2 {
  font-size: 17px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.feature-grid p {
  font-size: 12px;
  max-width: 310px;
}
.feature-grid a {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

/* Sign in and pick flows */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 570px;
}
.auth-intro h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  max-width: 450px;
}
.auth-intro p {
  max-width: 380px;
}
.auth-emblem {
  font: 800 140px/1 var(--display);
  color: #283925;
  letter-spacing: -10px;
  margin-top: 50px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  justify-self: end;
}
.auth-card h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.auth-card > p {
  font-size: 12px;
  margin-bottom: 26px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form label:not(:first-child) {
  margin-top: 8px;
}
.auth-form input {
  min-height: 48px;
}
.auth-form .button {
  margin-top: 16px;
  width: 100%;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 65px;
}
.password-field button {
  position: absolute;
  right: 12px;
  top: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  padding: 0;
}
.auth-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.auth-links a {
  color: var(--accent);
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  min-height: 330px;
}
.mode-card:hover {
  border-color: #758d60;
  color: var(--text);
  background: #1c251c;
}
.mode-icon {
  font-size: 32px;
  font-family: var(--display);
  color: var(--accent);
  margin-bottom: 32px;
}
.mode-card h2 {
  font-size: 28px;
}
.mode-card p {
  max-width: 390px;
  font-size: 13px;
}
.mode-card .text-link {
  margin-top: auto;
  padding-top: 24px;
}
.mode-card small {
  color: var(--muted);
  font-size: 11px;
}
.picks-container,
.dashboard-container,
.leaderboard-container,
.container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.selectors-row {
  grid-template-columns: 180px 1fr 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.selectors-row .filter-field {
  display: flex;
}
.selectable,
.pick-option {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 18px;
  min-width: 170px;
  cursor: pointer;
  background: #121813;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
  font-size: 12px;
  text-align: left;
}
.selectable:hover,
.pick-option:hover {
  border-color: #688455;
  background: #202d1c;
}
.selectable.selected,
.pick-option.selected {
  background: #273a20;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.selected .price-line,
.selected .odds-text {
  color: var(--accent);
}
.team-line,
.pick-option strong {
  font-weight: 500;
  font-size: 12px;
}
.price-line,
.odds-text {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pick-option {
  width: 100%;
}
.picks-table {
  min-width: 660px;
}
.picks-table th {
  white-space: normal;
}
.pick-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  gap: 16px;
}
.pick-submit-row p {
  font-size: 11px;
  margin: 0;
}
.selection-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.form-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.games-section,
.picks-summary {
  min-width: 0;
}
.games-card,
.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.games-header,
.summary-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.games-header h5,
.summary-header h5 {
  margin: 0;
  font-size: 16px;
}
.game-count {
  font-size: 10px;
  color: var(--muted);
}
.games-table {
  min-width: 790px;
}
.games-table th,
.games-table td {
  padding: 14px 16px;
}
.game-info {
  max-width: 180px;
  font-weight: 500;
}
.game-date {
  color: var(--muted);
  white-space: nowrap;
}
.picks-summary {
  position: sticky;
  top: 24px;
}
.pick-count {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.selected-picks-list {
  padding: 0 24px;
}
.selected-pick-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.pick-teams {
  font-size: 12px;
  font-weight: 600;
}
.pick-details {
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
}
.no-picks {
  padding: 32px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.summary-card .btn-submit {
  width: calc(100% - 48px);
  margin: 12px 24px 24px;
}
.success-panel {
  padding: 70px 36px;
  text-align: center;
}
.success-symbol {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: #273b20;
  color: var(--accent);
  border-radius: 50%;
  font-size: 30px;
  margin: 0 auto 24px;
}
.success-panel .hero-actions {
  justify-content: center;
  margin-top: 28px;
}
.chart-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
}
.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
  padding: 0 28px 20px;
}
.chart-legend {
  border-top: 1px solid var(--line);
  padding: 20px 28px;
}
.chart-legend h3 {
  font: 500 11px var(--font);
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 14px;
}
#selectedUsers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.user-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 11px;
}
.user-color-box {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.remove-user-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 4px;
}
.add-user-btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #23341d;
  color: var(--accent);
  width: 30px;
  height: 30px;
  font-size: 16px;
}
.add-user-btn:hover:not(:disabled) {
  border-color: var(--accent);
}
.chart-message {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  padding: 0 28px 18px;
}
.rank-marker {
  font-size: 11px;
  color: var(--muted);
  margin-right: 12px;
  display: inline-block;
  min-width: 20px;
}
.rank-marker.top-rank {
  color: var(--accent);
}

@media (max-width: 1050px) {
  .site-nav {
    gap: 18px;
  }
  .nav-user {
    max-width: 90px;
  }
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .main-content {
    grid-template-columns: 1fr;
  }
  .picks-summary {
    position: static;
  }
  .auth-layout {
    gap: 40px;
  }
  .quote-hero {
    padding: 40px;
  }
  .kpi-card {
    padding: 20px;
  }
  .selectors-row {
    grid-template-columns: 150px 1fr 150px;
  }
}
@media (max-width: 760px) {
  .page-shell {
    padding-inline: 20px;
  }
  .header-inner {
    height: 72px;
    position: relative;
  }
  .menu-toggle {
    display: inline-flex !important;
    gap: 12px;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    background: #171e18;
    z-index: 10;
    padding: 20px;
    box-shadow: 0 15px 30px #0005;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 14px 24px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-divider {
    display: none;
  }
  .main-content-shell {
    padding-top: 30px;
    padding-bottom: 48px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .kpi-value {
    font-size: 28px;
  }
  .kpi-card {
    padding: 18px;
  }
  .kpi-card .kpi-label {
    margin-bottom: 12px;
  }
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 20px;
  }
  .panel-heading {
    padding: 22px 20px 0;
  }
  .panel-heading h2 {
    font-size: 18px;
  }
  .panel-body {
    padding: 20px;
  }
  .filter-grid .clear-btn {
    align-self: end;
  }
  .table-toolbar {
    padding: 0 20px 20px;
  }
  .table-toolbar .filter-field:first-child {
    min-width: 0;
  }
  .pagination-controls {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  .pagination-controls span {
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
  }
  .performance-note {
    padding: 15px 20px;
  }
  .chart-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chart-container {
    padding: 0 14px 20px;
    height: 310px;
  }
  .chart-legend {
    padding: 20px;
  }
  .site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .site-footer > span {
    width: calc(100% - 120px);
    text-align: right;
  }
  .site-footer > a:last-child {
    margin-left: 0;
    width: 100%;
  }
  .home-page .main-content-shell {
    padding-top: 30px;
  }
  .edition {
    font-size: 9px;
  }
  .quote-hero {
    min-height: 430px;
    padding: 26px;
    border-radius: 16px;
  }
  .hero-quote {
    margin: 36px 0;
  }
  .hero-quote p {
    font-size: 32px;
  }
  .quote-credit {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
  }
  .quote-credit::before {
    margin-top: 9px;
  }
  .quote-credit a {
    margin-left: 34px;
  }
  .hero-bottom > span {
    display: none;
  }
  .quote-hero::after {
    font-size: 290px;
    right: 15px;
    top: 95px;
  }
  .home-next {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 30px 0;
  }
  .home-next h1 {
    font-size: 30px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .button {
    flex: 1;
    gap: 10px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 26px;
  }
  .feature-grid > article {
    display: grid;
    grid-template-columns: 34px 1fr;
  }
  .feature-number {
    grid-row: span 3;
    margin-top: 3px;
  }
  .feature-grid p {
    max-width: none;
    margin-bottom: 10px;
  }
  .feature-grid h2 {
    margin-bottom: 7px;
  }
  .feature-grid a {
    grid-column: 2;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }
  .auth-intro h1 {
    font-size: 34px;
  }
  .auth-intro p {
    margin: 0;
    font-size: 13px;
  }
  .auth-emblem {
    display: none;
  }
  .auth-card {
    max-width: none;
    padding: 26px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mode-card {
    padding: 26px;
    min-height: 280px;
  }
  .mode-icon {
    margin-bottom: 24px;
  }
  .selectors-row,
  .form-row {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .selectors-row {
    gap: 16px;
  }
  .pick-submit-row {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .pick-submit-row .button {
    width: 100%;
  }
  .games-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .success-panel {
    padding: 46px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.matchup {
  min-width: 125px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}
.matchup span {
  color: var(--muted);
}
.matchup strong {
  font-weight: 500;
  color: var(--text);
}
#activeTable td:nth-child(5),
#pastTable td:nth-child(5) {
  max-width: 190px;
  font-size: 11px;
}
@media (max-width: 760px) {
  .picks-table,
  .games-table {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .picks-table thead,
  .games-table thead {
    display: none;
  }
  .picks-table tbody,
  .games-table tbody {
    display: block;
    width: 100%;
  }
  .picks-table tr,
  .games-table .game-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--line);
  }
  .picks-table td,
  .games-table td {
    display: block;
    padding: 0 !important;
    border: 0;
    min-width: 0;
  }
  .picks-table td:first-child,
  .games-table .game-info,
  .games-table .game-date {
    grid-column: 1/-1;
    max-width: none;
  }
  .picks-table td:first-child {
    font-weight: 600;
    font-size: 12px;
  }
  .games-table .game-date {
    font-size: 11px;
    margin-top: -6px;
  }
  .picks-table .selectable,
  .games-table .pick-option {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
  }
  .table-scroll:has(#activeTable, #pastTable, #lbTable)::before {
    content: "Swipe to view all columns →";
    display: block;
    position: sticky;
    left: 0;
    padding: 10px 20px;
    font-size: 10px;
    color: var(--muted);
    background: var(--surface);
  }
  #lbTable th:first-child,
  #lbTable td:first-child {
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
    min-width: 125px;
  }
  #lbTable th:first-child {
    background: #1c241d;
  }
}
