:root {
  --navy-950: #041321;
  --navy-900: #071c33;
  --navy-800: #0b2947;
  --navy-700: #123e66;
  --yellow: #f5cf16;
  --yellow-soft: #ffe56b;
  --paper: #f4f7f3;
  --white: #ffffff;
  --ink: #101820;
  --mist: #d9e3e8;
  --sky: #93b7cf;
  --green: #88d498;
  --red: #ff735c;
  --green-soft: #dff5e5;
  --red-soft: #ffe2dc;
  --font: "Frutiger", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.masthead {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 3vw;
  background: var(--navy-950);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--yellow);
}

.brand-name {
  display: grid;
  line-height: 1;
}

.brand-name small {
  margin-top: 4px;
  color: var(--sky);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-brand .brand-name strong {
  color: var(--white);
}

.landing-brand .brand-name small {
  color: var(--yellow);
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-mark path:first-child {
  fill: var(--yellow);
}

.brand-mark path:last-child {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.primary-nav {
  display: flex;
  align-self: stretch;
}

.primary-nav a {
  display: grid;
  place-items: center;
  min-width: 118px;
  padding: 0 18px;
  color: #cfdae0;
  text-decoration: none;
  font-weight: 650;
}

.primary-nav a[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
}

.account {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  min-width: 0;
  color: #d9e5ea;
}

.account form {
  margin-left: 8px;
}

.signout-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #49657a;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
}

.signout-action:hover {
  border-color: var(--yellow);
  color: var(--yellow-soft);
}

.account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
  text-align: right;
}

.account-copy small {
  color: var(--sky);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-copy strong {
  max-width: min(24vw, 260px);
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(136 212 152 / 18%);
}

main {
  min-height: calc(100vh - 142px);
}

.landing-page {
  overflow-x: hidden;
  background: var(--navy-950);
}

.landing-page main {
  min-height: 100vh;
}

.landing-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(550px, 1fr) minmax(520px, 1fr);
}

.landing-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 34px clamp(28px, 4vw, 64px) 36px;
  background: var(--navy-950);
  border-right: 1px solid #36546a;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--white);
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.landing-brand strong {
  color: var(--yellow);
}

.landing-message {
  align-self: center;
  padding-block: clamp(28px, 6vh, 56px);
}

.landing-message h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 4vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.landing-message h1 span {
  color: var(--sky);
  font-weight: 350;
}

.landing-message > p {
  max-width: 58ch;
  margin: 28px 0 0;
  color: #c5d6df;
  font-size: 1.08rem;
}

.auth-gate {
  border-top: 1px solid #36546a;
  padding-top: 24px;
}

.auth-gate-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  margin-bottom: 18px;
}

.auth-gate h2 {
  margin: 0;
  font-size: 1.15rem;
}

.auth-gate p {
  max-width: 48ch;
  margin: 0;
  color: var(--sky);
  font-size: 0.78rem;
}

.identity-provider-list {
  display: grid;
  gap: 1px;
  background: #49657a;
  border: 1px solid #49657a;
}

.provider-signin {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 20px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.provider-signin:hover {
  background: var(--yellow-soft);
}

.provider-signin svg {
  width: 24px;
  height: 24px;
  padding: 2px;
  background: var(--white);
}

.provider-signin > span {
  font-size: 1.4rem;
}

.provider-apple {
  background: var(--ink);
  color: var(--white);
}

.provider-apple svg {
  fill: var(--white);
  background: transparent;
}

.provider-apple:hover {
  background: #24313a;
}

.auth-gate > small {
  display: block;
  margin-top: 10px;
  color: #91a9b7;
  font-size: 0.68rem;
}

.landing-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--navy-800);
}

.preview-status {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--navy-900);
}

.preview-window {
  position: absolute;
  inset: 54px 0 56px;
  overflow: hidden;
}

.preview-reel {
  display: grid;
  gap: 22px;
  padding: 26px;
  animation: landing-reel 24s linear infinite;
}

.preview-reel figure {
  position: relative;
  margin: 0;
  border: 1px solid #58758a;
  background: var(--navy-900);
}

.preview-reel img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-reel figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-preview > p {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 56px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  background: var(--navy-900);
  border-top: 1px solid #36546a;
  color: #c5d6df;
  font-size: 0.8rem;
  text-align: center;
}

@keyframes landing-reel {
  0%, 8% {
    transform: translateY(0);
  }

  46%, 58% {
    transform: translateY(calc(-33.333% - 8px));
  }

  92%, 100% {
    transform: translateY(calc(-66.666% - 16px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-reel {
    animation: none;
  }
}

.date-route {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 46px 3vw 32px;
}

.standings-route {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 46px 3vw 32px;
}

.standings-route h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.standings-route h1 span {
  color: var(--sky);
  font-weight: 350;
}

.standings-route p {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #bbced9;
  font-size: 1.05rem;
}

.month-route {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 46px 3vw 32px;
}

.month-route h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.month-route h1 span {
  color: var(--sky);
  font-weight: 350;
}

.month-route p {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #bbced9;
  font-size: 1.05rem;
}

.month-controls {
  display: flex;
  align-items: stretch;
  border: 1px solid #49657a;
}

.month-controls a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  color: #e8f0f3;
  text-decoration: none;
  font-weight: 650;
}

.month-controls a + a {
  border-left: 1px solid #49657a;
}

.month-controls a:hover {
  background: var(--navy-800);
}

.month-controls .current-month-link {
  background: var(--paper);
  color: var(--ink);
}

.month-board {
  margin-bottom: 48px;
  background: var(--paper);
  color: var(--ink);
}

.month-board > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 110px;
  padding: 24px 3vw;
  border-bottom: 1px solid var(--mist);
}

.month-board h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.month-board header p {
  margin: 5px 0 0;
  color: var(--route);
}

.month-board header > span {
  color: var(--route);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-weekdays {
  background: var(--navy-800);
  color: var(--white);
}

.month-weekdays span {
  padding: 12px 1.4vw;
  border-right: 1px solid #36546a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.month-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.month-grid li {
  min-height: 136px;
  border-right: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}

.month-grid li.is-outside {
  background: var(--mist);
}

.month-grid a {
  display: grid;
  align-content: space-between;
  min-height: 135px;
  padding: 15px 1.4vw;
  color: inherit;
  text-decoration: none;
}

.month-grid time {
  font-size: 1rem;
  font-weight: 800;
}

.month-grid small {
  color: var(--route);
  font-size: 0.68rem;
  font-weight: 700;
}

.month-grid strong {
  display: grid;
  justify-items: start;
  color: var(--route);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.month-grid strong span {
  color: var(--ink);
  font-size: 2.5rem;
  letter-spacing: -0.05em;
}

.month-grid li.has-teams a {
  background: var(--yellow);
}

.month-grid li.has-teams a:hover,
.month-grid li.has-teams a:focus-visible {
  background: var(--yellow-soft);
}

.month-grid li.is-today a {
  outline: 4px solid var(--route);
  outline-offset: -4px;
}

.month-grid li.has-season-marker a {
  box-shadow: inset 5px 0 0 var(--sky);
}

.month-season-markers {
  display: grid;
  align-self: start;
  gap: 3px;
}

.month-season-markers > span {
  width: fit-content;
  padding: 3px 5px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.month-season-markers b {
  color: var(--yellow-soft);
}

.month-marker-note {
  margin: 0;
  padding: 14px 3vw 18px;
  border-top: 1px solid var(--mist);
  color: var(--route);
  font-size: 0.72rem;
}

.month-empty {
  padding: 64px 3vw;
}

.month-empty strong {
  font-size: 1.75rem;
}

.month-empty p {
  max-width: 65ch;
  margin: 8px 0 20px;
  color: var(--route);
}

.month-empty a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.date-route h1,
.settings-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.date-route h1 span {
  color: var(--sky);
  font-weight: 350;
}

.date-route p,
.settings-intro p {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #bbced9;
  font-size: 1.05rem;
}

.date-controls {
  display: flex;
  align-items: stretch;
  border: 1px solid #49657a;
}

.date-controls a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  color: #e8f0f3;
  text-decoration: none;
  font-weight: 650;
}

.date-controls a + a {
  border-left: 1px solid #49657a;
}

.date-controls a:hover {
  background: var(--navy-800);
}

.date-controls .today-link {
  background: var(--paper);
  color: var(--ink);
}

.board-filters {
  display: flex;
  justify-content: flex-end;
  gap: 1px;
  padding: 0 3vw 22px;
}

.board-filters label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  background: var(--navy-800);
  color: var(--mist);
  cursor: pointer;
  font-size: 0.68rem;
}

.board-filters input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.board-filters label > span {
  position: relative;
  width: 32px;
  height: 18px;
  background: var(--sky);
  border-radius: 10px;
}

.board-filters label > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.board-filters input:checked + span {
  background: var(--yellow);
}

.board-filters input:checked + span::after {
  background: var(--ink);
  transform: translateX(14px);
}

.board-filters label:focus-within {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.board-filters noscript button {
  min-height: 42px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.spoiler-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px 3vw;
  background: var(--yellow);
  color: var(--ink);
}

.spoiler-route svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.spoiler-route div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.spoiler-route span {
  font-size: 0.9rem;
}

.spoiler-route a {
  font-weight: 750;
  text-underline-offset: 4px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 25vw);
  align-items: start;
  border-top: 1px solid #29465c;
  border-bottom: 1px solid #29465c;
}

.schedule-board {
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
}

.schedule-board-full {
  margin-bottom: 48px;
  border-top: 1px solid #29465c;
  border-bottom: 1px solid #29465c;
}

.board-heading,
.standings-board > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 110px;
  padding: 24px 2vw;
}

.board-heading h2,
.standings-board h2,
.settings-form h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.board-heading p,
.standings-board header p,
.setting-heading p {
  margin: 6px 0 0;
  color: #4d6472;
  font-size: 0.9rem;
}

.refresh-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4d6472;
  font-size: 0.8rem;
  font-weight: 650;
}

.refresh-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16864a;
}

.schedule-columns,
.game-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(300px, 1.65fr) minmax(130px, 0.65fr) minmax(180px, 0.8fr);
}

.schedule-columns {
  padding: 10px 2vw;
  background: var(--ink);
  color: #cdd9de;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.game-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-row {
  min-height: 122px;
  background: var(--white);
  border-bottom: 1px solid #bdcbd2;
}

.game-row:last-child {
  border-bottom: 0;
}

.game-row > div {
  min-width: 0;
  padding: 22px 1.5vw;
}

.game-row > div + div {
  border-left: 1px solid #bdcbd2;
}

.game-row.is-followed {
  background: #f7fbe9;
}

.game-row.is-victory,
.season-game-row.is-victory {
  background: var(--green-soft);
}

.game-row.is-loss,
.season-game-row.is-loss {
  background: var(--red-soft);
}

.outcome-label {
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.is-victory .outcome-label {
  color: #205c35;
}

.is-loss .outcome-label {
  color: #8b2f25;
}

.game-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
}

.league-code {
  align-self: start;
  padding: 5px 7px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
}

.game-route time {
  justify-self: end;
  font-size: clamp(2rem, 3.1vw, 3.65rem);
  font-weight: 760;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.meridiem {
  font-size: 0.72rem;
  font-weight: 800;
}

.matchup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.matchup > div {
  display: grid;
  gap: 4px;
}

.team-code {
  color: #577180;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.matchup strong {
  font-size: 1rem;
  line-height: 1.2;
}

.team-link,
.standing-team-link {
  color: inherit;
  font-weight: 700;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.team-link:hover,
.team-link:focus-visible {
  text-decoration-color: var(--route);
}

.standing-team-link:hover,
.standing-team-link:focus-visible {
  color: var(--yellow-soft);
  text-decoration-color: var(--yellow);
}

.direction-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  font-weight: 900;
}

.followed-label {
  position: absolute;
  top: 0;
  right: 0;
  color: #255a2f;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.live-score {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.live-score {
  color: #a42515;
}

.score-wrap {
  position: relative;
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 100%;
}

.score-flap {
  display: flex;
  align-items: center;
  gap: 4px;
  perspective: 240px;
}

.score-flap > span {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 37px;
  padding: 0 6px;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
  transform-origin: 50% 50%;
}

.score-flap > span::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  border-top: 1px solid rgb(255 255 255 / 28%);
  box-shadow: 0 1px 0 rgb(0 0 0 / 35%);
}

.score-flap > i {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.score-wrap.is-flipping .score-flap > span {
  animation: flap-turn 420ms cubic-bezier(.15, .75, .2, 1);
}

.score-wrap.is-flipping .score-flap > span:last-child {
  animation-delay: 70ms;
}

.score-wrap.is-concealed .score-flap > span {
  color: transparent;
  user-select: none;
}

.score-wrap.is-concealed .score-flap > span::before {
  content: "••";
  position: absolute;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.reveal-score {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #294f68;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
}

.game-status {
  margin-top: 4px;
  color: #59717f;
  font-size: 0.75rem;
  font-weight: 650;
}

.game-live .game-status {
  color: #a42515;
}

.not-started {
  font-size: 2rem;
  color: #7c8f99;
}

.highlights {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.highlights svg {
  width: 30px;
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 1.7;
}

.highlights div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.highlights span,
.highlights small {
  color: #607682;
  font-size: 0.72rem;
}

.highlights strong {
  font-size: 0.9rem;
}

.highlights ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlights li {
  display: grid;
  min-width: 0;
}

.highlights a {
  overflow: hidden;
  color: var(--navy-700);
  font-size: 0.72rem;
  font-weight: 760;
  text-decoration-color: var(--route);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlights a:hover,
.highlights a:focus-visible {
  color: var(--route);
  text-decoration-color: var(--yellow);
}

.standings-board {
  position: sticky;
  top: 0;
  min-width: 0;
  background: var(--navy-800);
}

.standings-page {
  margin-bottom: 48px;
  background: var(--navy-800);
  border-top: 1px solid #4a6477;
  border-bottom: 1px solid #4a6477;
}

.standings-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 110px;
  padding: 24px 3vw;
}

.standings-page-heading h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.standings-page-heading p {
  margin: 6px 0 0;
  color: #bcd0dc;
  font-size: 0.9rem;
}

.standings-page .refresh-status {
  color: #bcd0dc;
}

.standings-page .league-tabs {
  padding-inline: 3vw;
  background: var(--navy-900);
}

.standings-page .standings-panel {
  width: min(100%, 1120px);
  min-height: 460px;
  margin-left: 3vw;
  border-right: 1px solid #36546a;
  border-left: 1px solid #36546a;
}

.standings-page .standings-panel table {
  font-size: 0.94rem;
}

.standings-snapshot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid #36546a;
  background: var(--navy-950);
  color: var(--sky);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-snapshot strong,
.team-standing-strip p strong {
  color: var(--yellow-soft);
}

.standings-page .standings-panel th,
.standings-page .standings-panel td {
  padding-block: 14px;
  text-align: left;
}

.standings-table-wrap {
  overflow-x: auto;
}

.standings-page .standing-note {
  width: min(calc(100% - 6vw), 1120px);
  margin: 24px 3vw 30px;
}

.team-standing-strip {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 28px;
  padding: 22px 3vw;
  background: var(--navy-800);
  border-top: 1px solid #36546a;
  border-bottom: 1px solid #36546a;
}

.team-standing-strip h2 {
  margin: 0;
  font-size: 1.25rem;
}

.team-standing-strip p {
  margin: 4px 0 0;
  color: #bcd0dc;
  font-size: 0.8rem;
}

.team-standing-strip dl {
  display: flex;
  gap: 1px;
  margin: 0;
}

.team-standing-strip dl > div {
  min-width: 128px;
  padding: 10px 16px;
  background: var(--navy-900);
}

.team-standing-strip dt {
  color: var(--sky);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-standing-strip dd {
  margin: 3px 0 0;
  color: var(--yellow-soft);
  font-size: 1.2rem;
  font-weight: 800;
}

.team-standing-strip dd small {
  display: block;
  color: var(--mist);
  font-size: 0.7rem;
  font-weight: 650;
}

.team-standing-strip > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow-soft);
  font-weight: 750;
  text-underline-offset: 4px;
}

.standings-page-empty {
  padding: 64px 3vw;
}

.standings-page-empty strong {
  font-size: 1.75rem;
}

.standings-page-empty p {
  max-width: 65ch;
  margin: 8px 0 20px;
  color: #bcd0dc;
}

.standings-page-empty a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.standings-board > header {
  display: block;
}

.standings-board header p {
  color: #bcd0dc;
}

.league-tabs {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid #4a6477;
  border-bottom: 1px solid #4a6477;
  scrollbar-width: thin;
}

.league-tabs button {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #4a6477;
  background: transparent;
  color: #d9e5eb;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
}

.league-tabs button[aria-selected="true"] {
  background: var(--yellow);
  color: var(--ink);
}

.standings-panel {
  min-height: 280px;
}

.standing-race-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--route);
}

.standing-race-toggle button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--route);
  background: var(--navy-900);
  color: var(--mist);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.standing-race-toggle button[aria-pressed="true"] {
  background: var(--sky);
  color: var(--ink);
}

.standing-race-toggle button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.standing-groups {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--route);
  scrollbar-width: thin;
}

.standing-groups button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--route);
  background: var(--navy-900);
  color: var(--mist);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.standing-groups button[aria-pressed="true"] {
  background: var(--sky);
  color: var(--ink);
}

.standing-groups button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.standing-division-filter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--route);
  background: var(--navy-900);
}

.standing-division-filter > span {
  padding: 0 12px;
  color: var(--sky);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.standing-division-filter select {
  min-width: 0;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 0;
  border-left: 1px solid var(--route);
  background: var(--navy-800);
  color: var(--white);
  font: inherit;
}

.standing-division-filter select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.standings-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.standings-panel caption {
  padding: 18px 1.4vw 10px;
  color: var(--white);
  text-align: left;
  font-weight: 750;
}

.standings-panel th,
.standings-panel td {
  padding: 11px 0.75vw;
  border-bottom: 1px solid #36546a;
  text-align: right;
}

.standings-panel th:first-child,
.standings-panel td:first-child {
  padding-left: 1.4vw;
}

.wild-card-panel section + section {
  border-top: 1px solid var(--route);
}

.wild-card-panel td:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.wild-card-slot {
  flex: 0 0 auto;
  padding: 3px 5px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
}

.wild-card-panel tr.is-wild-card {
  background: rgb(147 183 207 / 11%);
}

.wild-card-gap {
  font-weight: 800;
}

.wild-card-note {
  margin: 0;
  padding: 14px 1.4vw 18px;
  color: var(--sky);
  font-size: 0.68rem;
  text-align: left;
}

.standings-panel th {
  color: #9eb4c1;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-panel tr.is-followed {
  background: #154b56;
  color: var(--yellow-soft);
}

.standings-panel .standings-empty {
  padding: 24px 1.4vw;
  color: var(--mist);
  text-align: left;
}

.standing-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 1.4vw 28px;
  color: #bcd0dc;
  font-size: 0.76rem;
}

.standing-note svg {
  flex: 0 0 auto;
  width: 22px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 3vw;
  background: var(--navy-950);
  color: #93aebd;
  font-size: 0.75rem;
}

.site-footer strong {
  color: var(--green);
}

.feedback-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feedback-trigger:hover,
.feedback-trigger:focus-visible {
  color: var(--yellow-soft);
}

.feedback-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid #49657a;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.feedback-dialog::backdrop {
  background: rgb(4 19 33 / 82%);
}

.feedback-dialog-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px;
  background: var(--navy-900);
  color: var(--white);
}

.feedback-dialog-header h2,
.feedback-dialog-header p {
  margin: 0;
}

.feedback-dialog-header h2 {
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.feedback-dialog-header p {
  margin-top: 6px;
  color: var(--sky);
}

.feedback-dialog-header button {
  align-self: start;
  width: 44px;
  height: 44px;
  border: 1px solid #49657a;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
}

.feedback-dialog form {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.feedback-dialog label {
  display: grid;
  gap: 8px;
  color: #314b5d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-dialog select,
.feedback-dialog textarea {
  width: 100%;
  border: 1px solid #91a9b7;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.feedback-dialog select {
  min-height: 48px;
  padding: 0 12px;
}

.feedback-dialog textarea {
  min-height: 144px;
  padding: 12px;
  resize: vertical;
}

.feedback-dialog select:focus,
.feedback-dialog textarea:focus {
  border-color: var(--navy-700);
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.feedback-status {
  min-height: 1.45em;
  margin: -4px 0 0;
  color: #49657a;
  font-size: 0.82rem;
}

.feedback-status[data-state="success"] {
  color: #216134;
  font-weight: 750;
}

.feedback-status[data-state="error"] {
  color: #a42e1c;
  font-weight: 750;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.feedback-actions button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 0;
  cursor: pointer;
  font-weight: 850;
}

.feedback-cancel {
  border: 1px solid #49657a;
  background: transparent;
  color: var(--ink);
}

.feedback-submit {
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.feedback-submit:hover {
  background: var(--yellow-soft);
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.settings-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 64px max(3vw, calc((100vw - 1280px) / 2)) 54px;
}

.settings-intro > div {
  max-width: 780px;
}

.settings-intro > a {
  padding-bottom: 8px;
  color: #d7e5eb;
  font-weight: 700;
  text-underline-offset: 5px;
}

.saved-message {
  padding: 16px max(3vw, calc((100vw - 1280px) / 2));
  background: var(--green);
  color: #092416;
}

.settings-form {
  background: var(--paper);
  color: var(--ink);
}

.settings-form > section {
  padding: 48px max(3vw, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid #b9c9d1;
}

.setting-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 28px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #aebfc8;
  border-left: 1px solid #aebfc8;
}

.route-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 100px;
  padding: 18px;
  border-right: 1px solid #aebfc8;
  border-bottom: 1px solid #aebfc8;
  cursor: pointer;
}

.route-choice input,
.team-choice-list input,
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-code {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 850;
}

.route-choice > span:nth-child(3) {
  display: grid;
  gap: 3px;
}

.route-choice strong {
  font-size: 0.9rem;
}

.route-choice small {
  color: #5e747f;
}

.route-choice svg {
  width: 24px;
  fill: none;
  stroke: #82969f;
  stroke-width: 2;
}

.route-choice:has(input:checked) {
  background: var(--yellow);
}

.route-choice:has(input:checked) svg {
  stroke: var(--ink);
}

.route-choice:focus-within {
  outline: 3px solid var(--navy-700);
  outline-offset: -4px;
}

.team-search {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(220px, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--sky);
  background: var(--white);
}

.team-search label {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 18px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.team-search input {
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.team-search input:focus {
  outline: 3px solid var(--navy-700);
  outline-offset: -3px;
}

.team-search p {
  min-width: 110px;
  margin: 0;
  padding: 0 16px;
  color: var(--route);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
}

.team-choice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #aebfc8;
  border: 1px solid #aebfc8;
}

.team-route-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
}

.team-route-group summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
  background: var(--navy-900);
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.team-route-group summary::-webkit-details-marker {
  display: none;
}

.team-route-group summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.team-route-group summary small {
  color: var(--sky);
  font-size: 0.68rem;
}

.team-route-group summary svg {
  width: 22px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.team-route-group[open] summary svg {
  transform: rotate(180deg);
}

.team-route-group summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.team-options {
  max-height: 420px;
  overflow-y: auto;
}

.team-options label {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #c9d4d9;
  cursor: pointer;
}

.team-options label[hidden] {
  display: none;
}

.team-options label span {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: #dce5e8;
  font-size: 0.68rem;
  font-weight: 850;
}

.team-options label strong {
  padding: 0 12px;
  font-size: 0.82rem;
}

.team-options label:has(input:checked) span {
  background: var(--yellow);
}

.team-options label:has(input:checked) {
  background: #f7fbe9;
}

.team-options label:focus-within {
  outline: 3px solid var(--navy-700);
  outline-offset: -3px;
}

.settings-form > .spoiler-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  background: var(--navy-800);
  color: var(--white);
}

.spoiler-setting p {
  max-width: 65ch;
  margin: 8px 0 0;
  color: #c1d2dc;
}

.switch {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch span {
  position: relative;
  width: 58px;
  height: 32px;
  background: #78909d;
  border-radius: 18px;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.switch input:checked + span {
  background: var(--yellow);
}

.switch input:checked + span::after {
  transform: translateX(26px);
  background: var(--ink);
}

.switch:focus-within {
  outline: 3px solid var(--yellow);
  outline-offset: 8px;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px max(3vw, calc((100vw - 1280px) / 2)) 42px;
}

.settings-actions button {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.settings-actions button:hover {
  background: var(--yellow-soft);
}

.settings-actions a {
  color: #3d5967;
  font-weight: 700;
}

.team-season-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  padding: 42px 3vw 46px;
  background: var(--navy-900);
  color: var(--white);
}

.team-season-hero > a:first-child {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--mist);
  font-weight: 700;
  text-underline-offset: 5px;
}

.team-season-hero > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 18px;
}

.season-league-code {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 850;
}

.team-season-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.team-season-hero h1 span {
  color: var(--sky);
  font-weight: 350;
}

.team-season-hero p {
  margin: 0;
  color: var(--mist);
}

.season-spoiler-action {
  align-self: end;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 0 22px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.season-spoiler-action:hover,
.season-spoiler-action:focus-visible {
  background: var(--yellow-soft);
}

.season-hero-actions {
  align-self: end;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  justify-items: stretch;
}

.season-hero-actions form {
  display: grid;
}

.season-preference-action {
  display: flex;
  place-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--sky);
  background: var(--navy-800);
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
  width: 100%;
}

.season-preference-action:hover,
.season-preference-action:focus-visible {
  background: var(--route);
}

.season-preference-action.is-preferred {
  border-color: var(--yellow);
  color: var(--yellow-soft);
}

.season-preference-action span {
  font-size: 1rem;
}

.team-preference-status {
  grid-column: 1 / -1;
  color: var(--sky);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.season-warning {
  display: flex;
  gap: 18px;
  padding: 16px 3vw;
  background: var(--yellow);
  color: var(--ink);
}

.season-board {
  background: var(--paper);
  color: var(--ink);
}

.season-board > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 110px;
  padding: 24px 3vw;
}

.season-board h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.season-board header p {
  margin: 6px 0 0;
  color: var(--route);
}

.season-board header > span {
  color: var(--route);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.season-columns,
.season-game-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(280px, 1.7fr) minmax(140px, 0.7fr) minmax(140px, 0.8fr);
}

.season-columns {
  min-height: 38px;
  align-items: center;
  padding: 0 3vw;
  background: var(--navy-900);
  color: var(--mist);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.season-game-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.season-game-group {
  border-bottom: 1px solid var(--navy-900);
}

.season-game-group > summary,
.season-game-group > header {
  min-height: 58px;
  padding: 0 3vw;
  background: var(--navy-800);
  color: var(--white);
}

.season-game-group > summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.season-game-group > summary::-webkit-details-marker {
  display: none;
}

.season-game-group > summary span,
.season-game-group > header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.season-game-group > summary small,
.season-game-group > header small {
  color: var(--sky);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-game-group > summary i {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.season-game-group[open] > summary i {
  transform: rotate(225deg);
}

.season-game-group > header {
  display: flex;
  align-items: center;
}

.season-game-group > header > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.season-game-group-remaining > header {
  background: var(--navy-900);
}

.season-group-empty {
  margin: 0;
  padding: 28px 3vw;
  background: var(--white);
  color: var(--route);
}

.season-game-row {
  min-height: 104px;
  border-bottom: 1px solid var(--mist);
  background: var(--white);
}

.season-game-row > div {
  min-width: 0;
  padding: 18px 3vw;
}

.season-game-row > div + div {
  border-left: 1px solid var(--mist);
}

.season-date {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.season-date time {
  display: grid;
  min-width: 52px;
  text-align: center;
}

.season-date time span,
.season-matchup > span,
.season-matchup small,
.season-status span {
  color: var(--route);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-date time strong {
  font-size: 2rem;
  line-height: 0.9;
}

.season-date > span {
  font-weight: 700;
}

.season-matchup,
.season-status {
  display: grid;
  align-content: center;
  gap: 5px;
}

.season-highlight-action {
  justify-self: start;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--route);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.season-highlight-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

.season-highlights {
  min-width: 0;
  margin-top: 5px;
  color: var(--route);
  font-size: 0.68rem;
}

.season-highlights ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.season-highlights li {
  display: grid;
  min-width: 0;
}

.season-highlights a {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-highlights small {
  color: #607682;
}

.season-matchup strong {
  font-size: 1rem;
}

.season-result {
  display: grid;
  align-content: center;
}

.season-empty {
  padding: 64px 3vw;
  border-bottom: 1px solid var(--mist);
}

.season-empty strong {
  font-size: 1.75rem;
}

.season-empty p {
  max-width: 65ch;
  margin: 8px 0 0;
  color: var(--route);
}

@keyframes flap-turn {
  0% {
    filter: brightness(1);
    transform: rotateX(0deg);
  }
  45% {
    filter: brightness(.35);
    transform: rotateX(-86deg);
  }
  55% {
    filter: brightness(.35);
    transform: rotateX(86deg);
  }
  100% {
    filter: brightness(1);
    transform: rotateX(0deg);
  }
}

@media (max-width: 1100px) {
  .board-layout {
    grid-template-columns: 1fr;
  }

  .standings-board {
    position: static;
  }

  .standings-panel {
    min-height: 0;
  }

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

@media (max-width: 1100px) {
  .landing-hero {
    display: block;
  }

  .landing-copy {
    min-height: 100svh;
    padding: 24px 20px 30px;
    border-right: 0;
  }

  .landing-message {
    padding-block: 52px 36px;
  }

  .landing-message h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .auth-gate-intro {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .landing-preview {
    min-height: 92svh;
  }

  .preview-window {
    position: absolute;
  }

  .preview-reel {
    padding: 18px;
  }
}

@media (max-width: 780px) {
  .masthead {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 0 18px;
  }

  .primary-nav {
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    height: 62px;
    background: var(--navy-950);
    border-top: 1px solid #36536a;
  }

  .primary-nav a {
    flex: 1;
    min-width: 0;
  }

  .account-copy small {
    display: none;
  }

  .account-copy strong {
    max-width: 30vw;
    font-size: 0.72rem;
  }

  .date-route,
  .standings-route,
  .month-route,
  .settings-intro {
    display: grid;
    padding: 36px 18px 28px;
  }

  .date-route h1,
  .standings-route h1,
  .month-route h1,
  .settings-intro h1 {
    font-size: clamp(3rem, 16vw, 4.75rem);
  }

  .standings-page-heading {
    display: grid;
    gap: 14px;
    padding: 22px 18px;
  }

  .standings-page .league-tabs {
    padding-inline: 0;
  }

  .standings-page .standings-panel {
    width: 100%;
    margin-left: 0;
    border-inline: 0;
  }

  .team-standing-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px;
  }

  .team-standing-strip dl {
    overflow-x: auto;
  }

  .date-controls {
    width: 100%;
  }

  .date-controls a,
  .month-controls a {
    flex: 1;
    justify-content: center;
  }

  .month-controls {
    width: 100%;
  }

  .month-board > header {
    min-height: 96px;
    padding: 20px 18px;
  }

  .month-grid li,
  .month-grid a {
    min-height: 96px;
  }

  .month-grid a {
    padding: 10px 8px;
  }

  .month-grid small {
    display: none;
  }

  .month-season-markers > span {
    max-width: 72px;
    padding: 2px 4px;
    font-size: 0.5rem;
  }

  .month-season-markers b {
    display: block;
  }

  .month-grid strong span {
    font-size: 1.75rem;
  }

  .spoiler-route {
    grid-template-columns: auto 1fr;
    padding: 15px 18px;
  }

  .board-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 18px 22px;
  }

  .board-filters label {
    justify-content: center;
    padding: 0 10px;
  }

  .spoiler-route div {
    display: grid;
    gap: 2px;
  }

  .spoiler-route a {
    grid-column: 2;
  }

  .board-heading {
    min-height: 96px;
    padding: 20px 18px;
  }

  .schedule-columns {
    display: none;
  }

  .game-row {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 0;
  }

  .game-row > div {
    padding: 16px;
  }

  .game-row > div + div {
    border-left: 1px solid #bdcbd2;
  }

  .game-route {
    grid-row: span 2;
    grid-template-columns: 1fr auto;
    align-content: start;
  }

  .game-route time {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 22px;
    font-size: 2.5rem;
  }

  .matchup {
    min-height: 88px;
    padding-top: 26px !important;
    border-bottom: 1px solid #bdcbd2;
  }

  .game-result {
    grid-column: 1;
    min-height: 108px;
    border-left: 0 !important;
    border-top: 1px solid #bdcbd2;
  }

  .highlights {
    min-height: 108px;
  }

  .site-footer {
    margin-bottom: 62px;
    flex-direction: column;
    padding: 20px 18px;
  }

  .settings-form > section {
    padding: 36px 18px;
  }

  .setting-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .choice-grid,
  .team-choice-list {
    grid-template-columns: 1fr;
  }

  .team-search {
    grid-template-columns: 1fr;
  }

  .team-search label {
    min-height: 38px;
    place-items: center start;
  }

  .team-search p {
    min-height: 32px;
    padding: 8px 16px;
    text-align: left;
  }

  .settings-form > .spoiler-setting {
    grid-template-columns: 1fr;
  }

  .team-season-hero {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }

  .team-season-hero > div {
    grid-template-columns: auto 1fr;
  }

  .season-hero-actions {
    grid-template-columns: 1fr;
  }

  .season-spoiler-action,
  .season-preference-action {
    justify-self: stretch;
  }

  .team-preference-status {
    text-align: left;
  }

  .season-board > header {
    min-height: 96px;
    padding: 20px 18px;
  }

  .season-columns {
    display: none;
  }

  .season-game-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .season-game-row > div {
    padding: 16px 18px;
  }

  .season-date {
    grid-row: span 3;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .season-matchup {
    border-bottom: 1px solid var(--mist);
  }

  .season-result {
    border-left: 0 !important;
  }

  .settings-actions {
    padding: 24px 18px 36px;
  }
}

@media (max-width: 460px) {
  .account-copy,
  .presence {
    display: none;
  }

  .account form {
    margin-left: 0;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .date-route h1 span {
    display: block;
  }

  .date-controls a {
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .refresh-status {
    display: none;
  }

  .game-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .game-row > div {
    padding: 14px 11px;
  }

  .matchup {
    gap: 7px;
  }

  .matchup strong {
    font-size: 0.84rem;
  }

  .direction-arrow {
    width: 23px;
    height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
