:root {
  --bg: #0a101a;
  --sidebar: #0d141e;
  --surface: #121c29;
  --surface-raised: #192636;
  --line: #283445;
  --muted: #9baabd;
  --text: #f3f5f7;
  --lime: #d4fa67;
  --red: #ffaaa5;
  --display: Impact, "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  font-family: var(--body);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
  color: inherit;
  min-height: 44px;
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button,
a,
summary {
  transition:
    background 160ms ease-out,
    color 160ms ease-out;
}
a:hover {
  color: var(--lime);
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 72ch;
}
img {
  object-fit: contain;
  flex-shrink: 0;
}
select {
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 5px;
  padding: 0 28px 0 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 3;
  transform: translateY(-160%);
  background: var(--lime);
  color: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--bg);
}
.app-shell {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 36px 19px 24px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 0.93;
  letter-spacing: -0.02em;
  width: fit-content;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 42px;
  width: 45px;
  height: 54px;
  background: var(--lime);
  color: var(--bg);
  transform: skew(-6deg);
}
.brand-mark span {
  position: absolute;
  right: 2px;
  bottom: 3px;
  font: 17px var(--body);
}
.brand-period {
  color: var(--lime);
}
.league-name {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 26px 0;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 5px;
  color: var(--muted);
}
.sidebar nav a > span {
  font-size: 22px;
  width: 22px;
  text-align: center;
  font-weight: 400;
}
.sidebar nav a:hover {
  background: var(--surface-raised);
  color: var(--text);
}
.sidebar nav a[aria-current] {
  background: var(--lime);
  color: var(--bg);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 42px 9px 0;
}
.sidebar-bottom strong {
  font-size: 19px;
  line-height: 1.4;
}
.sidebar-bottom p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.season-progress {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  min-height: 44px;
  margin-top: 15px;
  color: var(--muted);
}
.workspace,
main,
section {
  min-width: 0;
}
.topbar {
  min-height: 77px;
  padding: 12px 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
}
.divider {
  color: var(--muted);
  margin: 0 11px;
}
.refresh-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--muted);
}
.refresh-link span {
  font-size: 20px;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 42px 30px;
  padding: 34px;
  max-width: 1600px;
  margin: auto;
}
#main-content,
section[id] {
  scroll-margin-top: 24px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.page-heading h1 {
  font: 52px/0.98 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.week-stamp {
  font: 40px/1 var(--display);
  color: var(--muted);
}
.week-stamp span {
  font: 10px var(--body);
  display: block;
  letter-spacing: 0.14em;
  text-align: right;
  margin-bottom: 5px;
}
.filter-bar,
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.status-tabs button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.status-tabs button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--text);
}
.status-tabs button[data-status-filter="live"][aria-pressed="true"] {
  color: var(--lime);
}
.status-tabs button:hover {
  color: var(--text);
  background: var(--surface);
}
.status-tabs button span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.filter-label select {
  color: var(--text);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
}
.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 14px 6px;
  color: var(--muted);
  font-size: 11px;
}
.game-state {
  font-weight: 700;
}
.game-status {
  overflow-wrap: anywhere;
}
.is-live .game-state {
  color: var(--lime);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 6px;
}
.game-teams {
  padding: 0 14px 10px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
}
.team-row img {
  width: 40px;
  height: 40px;
}
.team-label {
  min-width: 0;
  flex: 1;
}
.team-label strong {
  display: block;
  font-size: 16px;
}
.team-name {
  display: none;
}
.team-venue {
  font-size: 10px;
  color: var(--muted);
}
.owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c3cddd;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.owner-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--owner-color);
}
.team-score {
  font: 36px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.team-score.pending {
  color: var(--muted);
  font-family: var(--body);
  font-size: 24px;
}
.is-winner .team-score {
  color: var(--lime);
}
.game-card-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 10px;
  border-radius: 0 0 6px 6px;
}
.featured {
  grid-column: 1 / -1;
  background: #14202b;
  margin-bottom: 8px;
}
.featured.is-live {
  border-color: #566b46;
}
.featured .game-card-top {
  padding: 16px 20px;
  font-size: 12px;
}
.featured .game-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 24px 26px;
}
.featured .team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.featured .team-row img {
  width: 80px;
  height: 74px;
}
.featured .team-label {
  grid-column: 1 / -1;
  grid-row: 2;
}
.featured .team-label strong {
  font: 26px/1.15 var(--display);
  text-transform: uppercase;
  margin: 3px 0 5px;
  overflow-wrap: anywhere;
}
.featured .team-name {
  display: inline;
}
.featured .team-abbreviation {
  display: none;
}
.featured .team-score {
  grid-column: 2;
  grid-row: 1;
  font-size: 68px;
}
.featured .team-score.pending {
  font-size: 38px;
}
.featured .game-card-footer {
  padding: 13px 20px;
  background: #19262b;
}
.standings-rail {
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-heading h2 {
  font: 28px/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.section-intro {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
}
th {
  font-weight: 600;
}
thead th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.numeric {
  text-align: right;
}
.standings-table th,
.standings-table td {
  padding: 14px 5px;
}
.standings-table thead th {
  padding-top: 0;
  font-size: 10px;
}
.standings-table th:first-child,
.standings-table td:first-child {
  padding-left: 0;
}
.standings-table .rank {
  font-size: 11px;
  color: var(--muted);
}
.standings-table .owner-tag {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.standings-table small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
  margin-top: 5px;
}
.standings-wins {
  font: 28px var(--display);
}
.leader .standings-wins {
  color: var(--lime);
}
.table-note,
.result-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 16px;
}
.rail-module {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.rail-module h3,
.league-note h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
.rail-module > p,
.league-note p {
  font-size: 11px;
  color: var(--muted);
}
.week-records {
  margin: 0;
}
.week-records > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  font-size: 12px;
}
.week-records dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.owner-roster {
  border-bottom: 1px solid var(--line);
}
.owner-roster summary {
  padding: 15px 2px;
  font-size: 12px;
}
.owner-roster summary:hover {
  background: var(--surface);
}
.owner-roster summary > span {
  float: right;
  color: var(--muted);
}
.owner-roster ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.owner-roster li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  padding: 7px 0;
}
.owner-roster li > span {
  flex: 1;
}
.owner-roster li strong {
  font-weight: 500;
}
.league-note {
  margin-top: 28px;
  background: var(--surface);
  padding: 18px 15px;
  border-radius: 5px;
}
.wide-section {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.table-scroll caption {
  caption-side: bottom;
  text-align: left;
  padding: 15px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.table-scroll tbody tr:last-child > * {
  border-bottom: 0;
}
.table-scroll tbody tr:hover {
  background: var(--surface-raised);
}
.owner-matrix {
  min-width: 470px;
}
.owner-matrix .same-owner {
  color: var(--muted);
  background: #0d1621;
}
.owner-matrix tbody td {
  font: 24px var(--display);
}
.draft-table {
  min-width: 800px;
}
.draft-team {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.draft-team small {
  display: block;
  margin-top: 4px;
}
.pick-number {
  color: var(--muted);
  font-size: 12px;
}
.wins-cell {
  font-size: 18px;
  font-weight: 700;
}
.positive {
  color: var(--lime);
}
.negative {
  color: var(--red);
}
.pace {
  font-size: 11px;
  white-space: nowrap;
}
.empty-state {
  padding: 32px 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 6px;
  font-size: 13px;
  max-width: none;
}
.error-message {
  grid-column: 1 / -1;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 16px;
}
.main-footer {
  margin: 0 34px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}
.footer-brand {
  font: 20px var(--display);
}
.main-footer p,
.main-footer a {
  font-size: 11px;
}
.main-footer a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (min-width: 1500px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-height: 700px) and (min-width: 901px) {
  .sidebar {
    padding-top: 20px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .sidebar-bottom > strong,
  .sidebar-bottom > p {
    display: none;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 172px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-layout {
    padding: 26px 22px;
    gap: 34px 22px;
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .standings-rail {
    padding-left: 20px;
  }
  .featured .game-teams {
    padding-left: 18px;
    padding-right: 18px;
  }
  .featured .team-score {
    font-size: 54px;
  }
  .featured .team-row img {
    width: 66px;
  }
  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .game-card:not(.featured) .team-name {
    display: inline;
    font-size: 14px;
  }
  .game-card:not(.featured) .team-abbreviation {
    display: none;
  }
}
@media (max-width: 900px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    z-index: 2;
    height: auto;
    padding: 12px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand br {
    display: none;
  }
  .brand-mark {
    width: 25px;
    height: 29px;
    font-size: 25px;
  }
  .brand-mark span {
    font-size: 10px;
    bottom: 1px;
  }
  .league-name {
    margin: 0;
    align-self: center;
    font-size: 10px;
  }
  .sidebar nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .sidebar nav a {
    justify-content: center;
    padding: 0 4px;
    font-size: 12px;
    border-radius: 4px 4px 0 0;
  }
  .sidebar nav a > span,
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    min-height: 58px;
    padding: 6px 22px;
  }
  #main-content,
  section[id] {
    scroll-margin-top: 120px;
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .main-footer {
    margin: 0 22px;
  }
}
@media (max-width: 680px) {
  .sidebar {
    padding: 12px 14px 0;
  }
  .sidebar nav a {
    font-size: 11px;
  }
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 11px;
  }
  .divider {
    margin: 0 6px;
  }
  .content-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 26px 16px;
  }
  .content-layout > * {
    width: 100%;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 44px;
  }
  .page-heading p {
    max-width: 28ch;
  }
  .week-stamp {
    font-size: 34px;
  }
  .filter-bar {
    gap: 10px;
  }
  .status-tabs {
    width: 100%;
    gap: 2px;
  }
  .status-tabs button {
    padding: 0 8px;
    font-size: 11px;
  }
  .filter-bar > label {
    margin-left: auto;
  }
  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured .game-card-top {
    padding: 14px;
  }
  .featured .game-teams {
    gap: 20px;
    padding: 8px 14px 22px;
  }
  .featured .team-row {
    gap: 6px;
  }
  .featured .team-row img {
    width: 58px;
    height: 58px;
  }
  .featured .team-score {
    font-size: 48px;
  }
  .featured .team-label strong {
    font-size: 23px;
  }
  .game-card:not(.featured) .team-name {
    display: inline;
  }
  .standings-rail {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }
  .standings-table th,
  .standings-table td {
    padding: 14px 8px;
  }
  .standings-table .owner-tag {
    font-size: 14px;
  }
  .standings-table small {
    max-width: 24ch;
  }
  .standings-table .standings-wins {
    font-size: 32px;
  }
  .table-toolbar {
    align-items: flex-start;
    gap: 10px;
  }
  .table-toolbar .filter-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .draft-table {
    min-width: 760px;
  }
  .draft-table th,
  .draft-table td {
    padding: 12px;
  }
  .draft-team {
    gap: 8px;
    max-width: 180px;
  }
  .main-footer {
    margin: 0 16px;
    gap: 12px;
  }
  .main-footer a {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
