:root {
  --blue: #2177c8;
  --blue-deep: #174f85;
  --gold: #f0c15e;
  --ink: #2f2f2f;
  --soft-ink: #707070;
  --paper: rgba(255, 255, 255, 0.94);
  --paper-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(33, 119, 200, 0.16);
  --shadow: 0 24px 45px rgba(14, 26, 44, 0.18);
  --page-gutter: clamp(0.8rem, 2vw, 1.7rem);
  --content-max: 1240px;
  --shell-max: 1320px;
  --brand-shell-max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 100% Verdana, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: url('/assets/images/background3.jpg') center top / cover fixed no-repeat;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
}

code {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(33, 119, 200, 0.08);
}

.site-shell {
  min-height: 100vh;
  position: relative;
}

.masthead-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: url('/assets/images/top_fade.png') repeat-x top;
  opacity: 0.7;
  pointer-events: none;
}

.container {
  width: min(var(--content-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding-top: clamp(0.8rem, 1.8vw, 1.2rem);
}

.link-button {
    border-radius: 999px;
    padding: 0.45rem 0.1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.link-button.is-active,
.nav-cta.is-active {
    color: var(--blue);
    background: rgba(33, 119, 200, 0.12);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    background: rgba(33, 119, 200, 0.08);
    border-radius: 999px;
}


.page-content {
  padding: clamp(1rem, 2vw, 1.35rem) 0 3rem;
}

.legacy-hero,
.card,
.auth-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  border-radius: 14px;
}

.legacy-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
}

.legacy-hero__art {
  text-align: center;
}

.legacy-splash {
  max-width: 100%;
  width: min(420px, 100%);
  height: auto;
}

.legacy-hero__panel h1 {
  margin: 0.25rem 0 0.75rem;
  color: var(--soft-ink);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}

.legacy-hero__panel p,
.card p,
.auth-card p,
.muted,
.auth-switch {
  color: var(--soft-ink);
  line-height: 1.7;
}

.legacy-status {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(33, 119, 200, 0.14);
  color: var(--soft-ink);
}

.eyebrow,
.section-title {
  display: inline-block;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-grid,
.grid {
  display: grid;
  gap: 1rem;
}

.feature-grid,
.legacy-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

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

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

.grid--aside {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
}

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

.stack {
  display: grid;
  gap: 0.85rem;
}

.card,
.auth-card {
  padding: 1.15rem 1.2rem;
}

.picks-deadline-card {
  min-width: 240px;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: rgba(33, 119, 200, 0.08);
  border: 1px solid rgba(33, 119, 200, 0.16);
  color: #6e6e6e;
}

.picks-deadline-card strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  color: #2c72c8;
  font-size: 1.25rem;
}

.picks-rule-list {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: #707070;
  line-height: 1.65;
}

.picks-form-shell {
  min-width: 0;
}

.picks-summary-card {
  align-self: start;
  position: sticky;
  top: 1rem;
}

.pick-screen-hero,
.pick-screen-rules,
.pick-screen-layout {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.pick-screen-layout {
    grid-template-columns: minmax(0, 700px) minmax(250px, 280px);
    align-items: start;
}

.picks-form-shell {
  max-width: 700px;
}

.picks-summary-card {
    max-width: 280px;
    width: 100%;
    justify-self: end;
}

.pick-screen-layout .actions {
    margin-top: 0.35rem;
}

.picks-side-note {
  margin-top: 1rem;
  background: rgba(33, 119, 200, 0.04);
  box-shadow: none;
}

.auth-card {
  max-width: 560px;
  width: min(100%, 560px);
  margin: 1rem auto;
}

.auth-inline-link {
  margin: -0.35rem 0 0;
  text-align: right;
}

.auth-inline-link a {
  color: var(--accent);
  font-weight: 600;
}

.auth-login-note {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 12px;
  background: rgba(33, 119, 200, 0.05);
}

.auth-login-note p {
  margin: 0.25rem 0 0;
  color: var(--soft-ink);
  line-height: 1.5;
}

.auth-login-note strong {
  color: var(--ink);
}

.auth-help-card {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 12px;
  background: rgba(33, 119, 200, 0.04);
}

.auth-help-card p {
  margin: 0.35rem 0 0;
  color: var(--soft-ink);
  line-height: 1.5;
}

.auth-help-card--inline {
  margin-top: 1rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-header h1,
.card h2,
.auth-card h1 {
  margin: 0.15rem 0 0.65rem;
  color: var(--soft-ink);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--soft-ink);
  font-size: 0.92rem;
}

.field-help {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  color: var(--soft-ink);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-help strong {
  color: var(--ink);
}

.field-counter {
  white-space: nowrap;
}

.field-help--stacked {
  display: grid;
  gap: 0.18rem;
  justify-content: start;
}

.field-help--error {
  color: #bf4c4c;
}

.field-help--success {
  color: #2d8a57;
}

input,
select,
button,
textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(33, 119, 200, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

button {
  cursor: pointer;
}

.button,
.button.secondary {
  display: inline-flex;
  width: auto;
  min-width: 150px;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.05rem;
  font-weight: 700;
}

.button {
  background: var(--blue);
  color: white;
}

.button.secondary {
  background: #f0f0f0;
  color: var(--soft-ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.inline-form {
  display: inline;
}

.link-button {
    width: auto;
    background: none;
    border: none;
    padding: 0;
    color: var(--blue);
    font: inherit;
}

.flash {
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem 0.95rem 3.2rem;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 14px 26px rgba(23, 35, 52, 0.12);
  backdrop-filter: blur(3px);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.flash::before {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.flash.success {
  color: #23523c;
  background: rgba(244, 255, 248, 0.96);
  border: 1px solid rgba(54, 179, 126, 0.34);
}

.flash.success::before {
  content: "✓";
  color: #1f8a55;
  background: rgba(54, 179, 126, 0.16);
  border: 1px solid rgba(54, 179, 126, 0.24);
}

.flash.error {
  color: #7b3131;
  background: rgba(255, 247, 247, 0.97);
  border: 1px solid rgba(207, 82, 82, 0.34);
}

.flash.error::before {
  content: "!";
  color: #c35757;
  background: rgba(207, 82, 82, 0.12);
  border: 1px solid rgba(207, 82, 82, 0.22);
}

.rule-chip {
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(33, 119, 200, 0.08);
  border: 1px solid rgba(33, 119, 200, 0.12);
  color: var(--soft-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.rule-chip.is-complete {
  background: rgba(54, 179, 126, 0.12);
  border-color: rgba(54, 179, 126, 0.26);
}

.rule-chip.is-over {
  background: rgba(207, 82, 82, 0.1);
  border-color: rgba(207, 82, 82, 0.24);
}

.rule-chip strong {
  color: #2c72c8;
  font-size: 1rem;
  white-space: nowrap;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.team-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  min-height: 5.4rem;
  padding: 0.72rem 0.8rem;
  background: rgba(33, 119, 200, 0.04);
  border: 1px solid rgba(33, 119, 200, 0.1);
  border-radius: 8px;
}

.team-option:has(input:checked) {
  background: rgba(33, 119, 200, 0.1);
  border-color: rgba(33, 119, 200, 0.26);
}

.team-option__content {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.team-option__region {
  color: #6f7f95;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-option__name {
  color: #55606d;
  font-size: 1rem;
  line-height: 1.25;
  word-break: break-word;
}

.team-option__meta,
.list-muted {
  display: block;
  color: var(--soft-ink);
  font-size: 0.82rem;
  margin-top: 0.05rem;
}

.team-option input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
  transform: scale(1.05);
}

.summary-list {
  display: grid;
  gap: 0.7rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(33, 119, 200, 0.08);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(33, 119, 200, 0.1);
  text-align: left;
}

th {
  color: var(--soft-ink);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-content {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: var(--soft-ink);
  box-shadow: var(--shadow);
}

.classic-board {
  display: grid;
  gap: 0;
}

.legacy-hero--inside {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 1.35rem 0 1rem;
}

.classic-panel {
  background: rgba(255, 255, 255, 0.97);
  padding: 0 1.35rem 2rem;
  box-shadow: var(--shadow);
}

.classic-panel--standalone {
  border-radius: 0 0 14px 14px;
}

.classic-tabs {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 0.9rem 0 0;
  flex-wrap: wrap;
}

.classic-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0 0.95rem;
  color: #414141;
  font-size: 0.92rem;
}

.classic-tab::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  display: inline-block;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.classic-tab--standing::before,
.classic-tabs a[href*="/standings"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%232c72c8' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2.5 3.5h2'/%3E%3Cpath d='M2.5 8h2'/%3E%3Cpath d='M2.5 12.5h2'/%3E%3Cpath d='M6.5 3.5h7'/%3E%3Cpath d='M6.5 8h7'/%3E%3Cpath d='M6.5 12.5h7'/%3E%3C/g%3E%3C/svg%3E");
}

.classic-tab--leaderboards::before,
.classic-tab--graph::before,
.classic-tabs a[href*="/picked-what"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%232c72c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 13.5h11'/%3E%3Cpath d='M4.5 12V7.5'/%3E%3Cpath d='M8 12V4.5'/%3E%3Cpath d='M11.5 12V9'/%3E%3C/g%3E%3C/svg%3E");
}

.classic-tab--rules::before,
.classic-tabs a[href*="rules"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='%232c72c8'/%3E%3Crect x='7.25' y='6.25' width='1.5' height='4.5' rx='0.75' fill='white'/%3E%3Ccircle cx='8' cy='4.3' r='1' fill='white'/%3E%3C/svg%3E");
}

.classic-tab--home::before,
.classic-tabs a[href*="/league?id="]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%232c72c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5 8 3l5.5 4.5'/%3E%3Cpath d='M4.5 7v5.5h7V7'/%3E%3C/g%3E%3C/svg%3E");
}

.classic-tab--picks::before,
.classic-tabs a[href*="/picks?"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%232c72c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12.8 12.2 3.6'/%3E%3Cpath d='M10.7 3.6h1.7v1.7'/%3E%3Cpath d='M3.1 12.9 5.8 12l-1.8-1.8-.9 2.7Z' fill='%232c72c8' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

.classic-tab--active {
  color: #2c72c8;
  border-bottom: 3px solid #2c72c8;
}

.classic-settings {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: #68717d;
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-radius: 50%;
  padding: 0;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.classic-settings:hover,
.classic-settings:focus-visible {
  color: #2176c7;
  background: #eef6ff;
  border-color: #a9c9eb;
}

.classic-settings:hover {
  transform: translateY(-1px);
}

.classic-settings:focus-visible {
  outline: 2px solid rgba(33, 118, 199, 0.28);
  outline-offset: 2px;
}

.classic-settings__icon {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.classic-settings-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.classic-settings__welcome {
  color: #8b8b8b;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.classic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
}

.classic-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.classic-toolbar__controls select {
  min-width: 220px;
  background: white;
  border-color: #d5d5d5;
  color: #787878;
}

.refresh-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  background: #fafafa;
  border: 1px solid #d5d5d5;
  color: #8b8b8b;
}

.classic-toolbar__meta {
  color: #7c7c7c;
  text-align: right;
}

.classic-toolbar__meta strong,
.classic-toolbar__meta span {
  display: block;
}

.classic-table-wrap {
  background: white;
}

.classic-table {
  width: 100%;
}

.classic-table th,
.classic-table td {
  border-bottom: 1px solid #dddddd;
  padding: 1rem 0.9rem;
}

.classic-table th {
  color: #8c8c8c;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
}

.table-sort::after {
  content: ":";
  font-size: 0.78rem;
  color: #b4b4b4;
}

.table-sort.is-sorted-asc::after {
  content: "^";
  color: #2c72c8;
}

.table-sort.is-sorted-desc::after {
  content: "v";
  color: #2c72c8;
}

.classic-table td {
  font-size: 1rem;
  color: #666;
}

.classic-table th:first-child,
.classic-table td:first-child {
  width: 4.2rem;
}

.classic-table th:nth-child(2),
.classic-table td:nth-child(2) {
  width: 16rem;
}

.pick-popup-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.standings-player-name {
  min-width: 0;
  border-bottom: 1px dotted #9aa7b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-player-total {
  display: none;
  flex: 0 0 auto;
  color: #4f5f74;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-place-total {
  display: none;
}

.entry-mobile-details-row {
  display: none;
}

.entry-mobile-details-row td {
  padding: 0;
  border: none;
}

.entry-mobile-details__header {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem 0.35rem;
  color: #2c72c8;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.entry-mobile-details__header strong,
.entry-mobile-details__header span {
  display: block;
}

.entry-mobile-details__header strong {
  color: #5b6470;
  font-size: 1rem;
}

.entry-mobile-details__header span {
  margin-top: 0.18rem;
  color: #6b7480;
  font-size: 0.94rem;
  font-weight: 700;
}

.entry-mobile-details__teams-left {
  color: #6b7480;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.entry-mobile-details__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 0.9rem;
  color: #2c72c8;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.entry-mobile-details__summary::-webkit-details-marker {
  display: none;
}

.entry-mobile-details__summary::after {
  content: "+";
  float: right;
  color: #7b8ca7;
}

.entry-mobile-details[open] .entry-mobile-details__summary::after {
  content: "-";
}

.entry-mobile-details {
  display: none;
}

.entry-mobile-details[open] {
  display: block;
}


.classic-table tbody tr.is-current-user {
    background: rgba(33, 119, 200, 0.12);
}

.classic-table tbody tr.is-current-user td {
    color: #4a4a4a;
    font-weight: 700;
}

.classic-table--standings {
    border-collapse: collapse;
    table-layout: fixed;
}

.classic-table--standings thead th {
    padding: 0.72rem 0.8rem 0.78rem;
    color: #8a8a8a;
    font-size: 0.82rem;
    font-weight: 500;
    border-bottom: 1px solid #dadada;
}

.classic-table--standings tbody tr {
    border-bottom: 1px solid #e7e7e7;
}

.classic-table--standings tbody tr:nth-child(odd) {
    background: #f1f1f1;
}

.classic-table--standings tbody tr:nth-child(even) {
    background: #ffffff;
}

.classic-table--standings tbody tr:hover {
    background: #eceff4;
}

.classic-table--standings tbody tr.is-current-user {
    background: rgba(33, 119, 200, 0.14);
}

.classic-table--standings tbody tr.is-current-user td {
    color: #4e4e4e;
    font-weight: 700;
}

.classic-table--standings td {
    padding: 0.82rem 0.8rem;
    color: #6a6a6a;
    font-size: 0.93rem;
    line-height: 1.2;
    vertical-align: middle;
}

.classic-table--standings th:first-child,
.classic-table--standings td:first-child {
    width: 4.2rem;
    text-align: center;
}

.classic-table--standings th:nth-child(2),
.classic-table--standings td:nth-child(2) {
    width: 19rem;
    text-align: left;
}

.classic-table--standings th:nth-child(n + 3),
.classic-table--standings td:nth-child(n + 3) {
    text-align: center;
}

.classic-table--standings td:nth-child(3),
.classic-table--standings td:nth-child(4),
.classic-table--standings td:nth-child(5),
.classic-table--standings td:nth-child(6),
.classic-table--standings td:nth-child(7),
.classic-table--standings td:nth-child(8),
.classic-table--standings td:nth-child(9) {
    font-variant-numeric: tabular-nums;
}

.classic-table--standings .pick-popup-trigger {
    color: #6a6a6a;
    font-size: 0.93rem;
    font-weight: 500;
}

.classic-table--standings .pick-popup-trigger:hover,
.classic-table--standings .pick-popup-trigger:focus-visible {
    color: #2c72c8;
}

.classic-table--standings .classic-delta {
    font-weight: 700;
}

.classic-delta {
  color: #6e6e6e;
  font-weight: 700;
}

.classic-delta.is-up {
  color: #2a8d53;
}

.classic-delta.is-down {
  color: #c35757;
}

.classic-toolbar__meta--left {
  text-align: left;
}

.league-home-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0 1.2rem;
}

.league-home-hero--welcome {
  padding: 1.2rem 1.25rem 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(33, 119, 200, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.94)),
    radial-gradient(circle at top right, rgba(33, 119, 200, 0.12), transparent 42%);
  box-shadow: 0 18px 30px rgba(22, 40, 66, 0.08);
}

.league-home-hero--dashboard {
  padding: 1.35rem 1.35rem 1.45rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(33, 119, 200, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(241, 247, 255, 0.95)),
    radial-gradient(circle at top right, rgba(33, 119, 200, 0.16), transparent 42%);
  box-shadow: 0 20px 34px rgba(22, 40, 66, 0.1);
  align-items: stretch;
}

.league-home-hero__content {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-hero-panel {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  width: min(320px, 100%);
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(20, 49, 93, 0.92);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dashboard-hero-panel h2,
.dashboard-hero-panel p,
.dashboard-hero-panel .section-title,
.dashboard-hero-panel strong,
.dashboard-hero-panel span {
  color: inherit;
}

.dashboard-hero-panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.dashboard-hero-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero-panel__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.15rem;
  max-width: 52rem;
}

.dashboard-step {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(33, 119, 200, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #2c72c8;
  color: #fff;
  font-size: 0.95rem;
}

.dashboard-step span {
  color: #5a6675;
  line-height: 1.35;
  font-weight: 600;
}

.team-group h2 {
  margin: 0 0 0.8rem;
  color: #6d6d6d;
  font-size: 1.08rem;
}

.league-home-hero h1 {
  margin: 0 0 0.35rem;
  color: #6d6d6d;
  font-size: 2rem;
}

.league-home-hero p {
  margin: 0;
  color: #7d7d7d;
}

.league-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.dashboard-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.league-home-card--join {
  display: grid;
  gap: 1rem;
}

.league-home-card--account {
  grid-column: 1 / -1;
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-card-head p {
  max-width: 26rem;
}

.dashboard-join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.dashboard-join-form input {
  margin-bottom: 0;
}

.dashboard-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-text-link {
  color: #2c72c8;
  font-weight: 700;
}

.dashboard-mini-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(33, 119, 200, 0.05);
  border: 1px solid rgba(33, 119, 200, 0.12);
}

.dashboard-mini-note strong {
  color: #46515f;
}

.dashboard-mini-note span {
  color: #6d7580;
  line-height: 1.5;
}

.league-account-summary--dashboard {
  margin-bottom: 0.75rem;
}

.dashboard-link-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-link-list a {
  color: #2c72c8;
  font-weight: 700;
}

.league-section-heading--dashboard {
  margin-bottom: 1rem;
}

.dashboard-empty-state {
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  background: rgba(33, 119, 200, 0.05);
  border: 1px dashed rgba(33, 119, 200, 0.2);
}

.dashboard-empty-state h3 {
  margin: 0 0 0.45rem;
  color: #5f6773;
}

.dashboard-empty-state p {
  margin: 0;
  color: #76808f;
}

.league-home-card h2 {
  margin: 0.35rem 0 1rem;
  color: #6f6f6f;
}

.league-account-summary {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.league-account-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(33, 119, 200, 0.05);
  border: 1px solid rgba(33, 119, 200, 0.08);
}

.league-account-summary__row span {
  color: #7b7b7b;
  font-size: 0.9rem;
}

.league-account-summary__row strong {
  color: #555;
  font-size: 0.95rem;
  text-align: right;
  word-break: break-word;
}

.league-home-card--full {
  margin-top: 1rem;
}

.onboarding-note {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(33, 119, 200, 0.05);
  border: 1px solid rgba(33, 119, 200, 0.12);
}

.onboarding-note p {
  margin: 0;
  color: #6d7580;
  line-height: 1.55;
}

.onboarding-note strong {
  color: #434d5a;
}

.onboarding-note--welcome {
  margin-top: 0.9rem;
  max-width: 34rem;
}

.league-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.league-section-heading h2 {
  margin: 0;
}

.league-home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.league-home-stat {
  padding: 0.9rem;
  background: rgba(33, 119, 200, 0.06);
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 10px;
}

.league-home-stat strong {
  display: block;
  color: #2c72c8;
  font-size: 1.35rem;
}

.league-home-stat span {
  display: block;
  margin-top: 0.3rem;
  color: #777;
  font-size: 0.9rem;
}

.league-home-standings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.league-home-standings li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e5e5e5;
  color: #6f6f6f;
}

.league-home-standings li.is-current-user {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  border-radius: 10px;
  background: rgba(33, 119, 200, 0.08);
}

.league-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.league-cards--dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.league-card {
  padding: 1rem;
  background: rgba(33, 119, 200, 0.05);
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 12px;
}

.league-card h3 {
  margin: 0 0 0.45rem;
  color: #6f6f6f;
}

.league-card p {
  margin: 0.25rem 0;
  color: #777;
}

.league-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.league-card__subline {
  margin: 0.2rem 0 0;
  color: #7c8694;
}

.league-card__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(33, 119, 200, 0.09);
  color: #2c72c8;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.league-card__status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.league-card__status div {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(33, 119, 200, 0.08);
}

.league-card__status span,
.league-card__status strong {
  display: block;
}

.league-card__status span {
  color: #7b8594;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.league-card__status strong {
  margin-top: 0.28rem;
  color: #52606f;
}

.actions--league-card {
  margin-top: 0.95rem;
  flex-wrap: wrap;
}

.league-history-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.league-history-metric {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(33, 119, 200, 0.06);
  border: 1px solid rgba(33, 119, 200, 0.1);
}

.league-join-code-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(33, 119, 200, 0.06);
  border: 1px solid rgba(33, 119, 200, 0.12);
}

.league-join-code-card span,
.league-join-code-card small {
  color: #7a7a7a;
}

.league-join-code-card strong {
  color: #2c72c8;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.league-commissioner-note {
  display: grid;
  gap: 0.7rem;
}

.league-commissioner-note p {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: rgba(33, 119, 200, 0.05);
  border: 1px solid rgba(33, 119, 200, 0.1);
  color: #6c7280;
}

.league-members-list {
  display: grid;
  gap: 0.85rem;
}

.league-member-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(33, 119, 200, 0.05);
  border: 1px solid rgba(33, 119, 200, 0.1);
}

.league-member-row strong {
  color: #5f636b;
}

.league-member-row p,
.league-member-row small {
  margin: 0.2rem 0 0;
  color: #7a7a7a;
}

.league-member-row__meta {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: right;
}

.league-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(33, 119, 200, 0.12);
  color: #2c72c8;
  font-size: 0.85rem;
  font-weight: 700;
}

.actions--wrap {
  flex-wrap: wrap;
}

.league-history-metric span,
.league-history-metric strong {
  display: block;
}

.league-history-metric span {
  color: #7c7c7c;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.league-history-metric strong {
  margin-top: 0.2rem;
  color: #2c72c8;
  font-size: 0.95rem;
}

.league-history-dropdown {
  margin-top: 0.75rem;
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.league-history-dropdown--season {
  margin-top: 0;
  min-width: 210px;
}

.league-history-dropdown summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.8rem;
  color: #2c72c8;
  font-weight: 700;
}

.league-history-dropdown summary::-webkit-details-marker {
  display: none;
}

.league-history-dropdown summary::after {
  content: "+";
  float: right;
  color: #8295af;
}

.league-history-dropdown[open] summary::after {
  content: "-";
}

.league-history-dropdown__inner {
  padding: 0 0.8rem 0.75rem;
}

.league-history-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(33, 119, 200, 0.08);
  color: #6f6f6f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell,
.admin-card-spacer {
  margin-bottom: 1rem;
}

.admin-shell__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-shell__header h1 {
  margin: 0.2rem 0 0.45rem;
  color: #6f6f6f;
}

.admin-shell__meta {
  text-align: right;
  color: #7b7b7b;
}

.admin-shell__meta strong,
.admin-shell__meta span {
  display: block;
}

.admin-legacy-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(33, 119, 200, 0.1);
}

.admin-legacy-tab {
  color: #5d5d5d;
  padding: 0.65rem 0 0.75rem;
  border-bottom: 3px solid transparent;
}

.admin-legacy-tab--active {
  color: #2c72c8;
  border-bottom-color: #2c72c8;
  font-weight: 700;
}

.admin-year-strip {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.admin-year-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(33, 119, 200, 0.08);
  color: #5f5f5f;
}

.admin-year-pill--active {
  background: #2c72c8;
  color: white;
  font-weight: 700;
}

.admin-grid {
  align-items: start;
}

.admin-team-table input[type="text"],
.admin-team-table input[type="number"],
.admin-team-table input[type="datetime-local"],
.admin-team-table select,
.admin-games-table input[type="number"],
.admin-games-table input[type="datetime-local"],
.admin-games-table select {
  min-width: 0;
}

.admin-team-table td,
.admin-team-table th,
.admin-games-table td,
.admin-games-table th {
  vertical-align: top;
}

.admin-round-card {
  padding: 1rem;
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 12px;
  background: rgba(33, 119, 200, 0.03);
}

.admin-round-card + .admin-round-card {
  margin-top: 1rem;
}

.admin-round-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.admin-round-card__header h3 {
  margin: 0;
  color: #6f6f6f;
}

.admin-games-table select {
  min-width: 180px;
}

.admin-games-table {
  table-layout: auto;
}

.admin-games-table th:nth-child(4),
.admin-games-table th:nth-child(6),
.admin-games-table td:nth-child(4),
.admin-games-table td:nth-child(6) {
  width: 96px;
  min-width: 96px;
}

.admin-games-table input[type="number"] {
  min-width: 72px;
  width: 100%;
  text-align: center;
}

.admin-picks-summary {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(33, 119, 200, 0.06);
  color: #737373;
}

.admin-picks-summary strong {
  color: #2c72c8;
}

.admin-picks-table td {
  min-width: 170px;
}

.admin-pick-option {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: #666;
  line-height: 1.35;
}

.admin-pick-option input {
  width: auto;
  margin-top: 0.2rem;
}

.entry-picks-popup {
  position: fixed;
  z-index: 9999;
  width: min(520px, calc(100vw - 24px));
  max-height: min(540px, calc(100vh - 24px));
  overflow: hidden;
  padding: 0;
  border: 2px solid #317082;
  background: #fff;
  color: #434343;
  box-shadow: 0 18px 34px rgba(18, 34, 56, 0.22);
}

.entry-picks-popup__inner {
  position: relative;
  max-height: min(536px, calc(100vh - 28px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 0.35rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.entry-picks-popup__summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 3rem 0.55rem 0.9rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #ececec;
}

.entry-picks-popup__inner h3 {
  margin: 0;
  color: #666;
  font-size: 1.02rem;
}

.entry-picks-popup__summary p {
  margin: 0.15rem 0 0;
  color: #666;
  font-weight: 700;
}

.entry-picks-popup__teams-left {
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.92rem;
  text-align: right;
  padding-right: 0.35rem;
}

.entry-picks-popup__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #7a7a7a;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 3;
}

.entry-picks-popup__groups,
.entry-mobile-details__grid {
  display: grid;
  gap: 0.7rem;
  padding: 0 0.9rem 0.8rem;
}

.entry-picks-popup__group,
.entry-mobile-details__group {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(33, 119, 200, 0.04);
  border: 1px solid rgba(33, 119, 200, 0.1);
}

.entry-picks-popup__group h4,
.entry-mobile-details__group h4 {
  margin: 0 0 0.35rem;
  color: #6c6c6c;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-picks-popup__group p,
.entry-mobile-details__group p {
  margin: 0;
  line-height: 1.5;
}

.entry-picks-popup__board-wrap {
  padding: 0 0.9rem 0.6rem;
}

.entry-picks-popup__board {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.entry-picks-popup__board th {
  padding: 0.45rem 0.5rem;
  text-align: left;
  color: #6e6e6e;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid #e4ebf4;
}

.entry-picks-popup__board td {
  padding: 0;
  vertical-align: top;
  border-bottom: 1px solid #eef2f7;
}

.entry-picks-popup__board tbody tr:nth-child(even) td {
  background: rgba(245, 248, 252, 0.84);
}

.entry-picks-popup__seed {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0.78rem 0.35rem 0.7rem 0.45rem !important;
  color: #666;
  font-weight: 700;
}

.entry-picks-popup__team-cell {
  width: 24%;
}

.entry-picks-popup__team {
  min-height: 3rem;
  padding: 0.72rem 0.55rem 0.62rem;
  color: #7f8a98;
  line-height: 1.32;
}

.entry-picks-popup__team.is-not-picked {
  color: #a2a9b3;
}

.entry-picks-popup__team.is-win {
  color: #6fa61a;
}

.entry-picks-popup__team.is-yet {
  color: #2c72c8;
}

.entry-picks-popup__team.is-lost {
  color: #ef7c23;
  text-decoration: line-through;
}

.entry-picks-popup__team-name {
  display: block;
  font-weight: 700;
}

.entry-picks-popup__team-meta {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.73rem;
  line-height: 1.28;
  text-decoration: none;
}

.entry-picks-popup__legend {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem 0.85rem;
  color: #666;
  font-size: 0.86rem;
}

.legend-dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.12rem;
  margin-right: 0.3rem;
  vertical-align: -0.1rem;
}

.legend-dot--lost {
  background: #ef7c23;
}

.legend-dot--yet {
  background: #57a7d2;
}

.legend-dot--win {
  background: #6fa61a;
}

.entry-picks-popup .is-win,
.entry-mobile-details .is-win {
  color: #6fa61a;
}

.entry-picks-popup .is-yet,
.entry-mobile-details .is-yet {
  color: #2c72c8;
}

.entry-picks-popup .is-lost,
.entry-mobile-details .is-lost {
  color: #ef7c23;
  text-decoration: line-through;
}

.picked-graph-card--legacy {
  padding: 0.35rem 0 0;
}

.nerd-stats-dropdown {
  margin: 0 0 1rem;
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 12px;
  background: rgba(33, 119, 200, 0.04);
  overflow: hidden;
}

.nerd-stats-dropdown summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  color: #2c72c8;
  font-weight: 700;
}

.nerd-stats-dropdown summary::-webkit-details-marker {
  display: none;
}

.nerd-stats-dropdown summary::after {
  content: "+";
  float: right;
  color: #7b8ca7;
}

.nerd-stats-dropdown[open] summary::after {
  content: "-";
}

.nerd-stats-dropdown__inner {
  padding: 0 1rem 1rem;
}

.nerd-stats-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.nerd-stats-highlights__card {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(33, 119, 200, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 70, 118, 0.08);
}

.nerd-stats-highlights__label,
.nerd-stats-highlights__meta {
  display: block;
}

.nerd-stats-highlights__label {
  color: #7b8ca7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nerd-stats-highlights__value {
  display: block;
  margin-top: 0.28rem;
  color: #45566f;
  font-size: 1.3rem;
  line-height: 1.15;
}

.nerd-stats-highlights__meta {
  margin-top: 0.22rem;
  color: #2c72c8;
  font-size: 0.86rem;
  font-weight: 600;
}

.nerd-stats-table__subtext {
  display: block;
  margin-top: 0.18rem;
  color: #7b8ca7;
  font-size: 0.78rem;
  font-weight: 500;
}

.classic-table--compact th,
.classic-table--compact td {
  padding: 0.7rem 0.65rem;
  font-size: 0.92rem;
}

.picked-graph__header--compact p {
  margin: 0 0 1rem;
  color: #6e6e6e;
  font-size: 0.95rem;
}

.legacy-picked-bars {
  display: grid;
  gap: 0.42rem;
}

.legacy-picked-bars__row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) 2.4rem;
  gap: 0.65rem;
  align-items: center;
}

.legacy-picked-bars__label {
  color: #6f6f6f;
  font-size: 0.92rem;
  text-align: right;
}

.legacy-picked-bars__track {
  position: relative;
  height: 1.45rem;
  background: #edf2f8;
  border: 1px solid #d6dde5;
}

.legacy-picked-bars__fill {
  height: 100%;
  min-width: 0.8rem;
  background: linear-gradient(90deg, #4d9be0 0%, #2176c7 100%);
  border-right: 1px solid rgba(14, 56, 100, 0.24);
}

.legacy-picked-bars__fill:focus {
  outline: 2px solid #8db9ef;
  outline-offset: 2px;
}

.legacy-picked-bars__count {
  color: #5e5e5e;
  font-weight: 700;
  font-size: 0.86rem;
}

.picked-graph-card {
  padding: 1.5rem;
}

.picked-graph__header p {
  margin: 0.35rem 0 1.25rem;
  color: #8b8b8b;
  font-size: 0.95rem;
}

.graph-hover-tip {
  position: fixed;
  z-index: 10000;
  max-width: 18rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d5dce5;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.97);
  color: #6e6e6e;
  font-size: 0.78rem;
  line-height: 1.3;
  box-shadow: 0 10px 24px rgba(16, 28, 44, 0.18);
  pointer-events: none;
}

@media (max-width: 900px) {
  .legacy-hero,
  .feature-grid,
  .legacy-cards,
  .grid.two,
  .grid.three,
  .grid--aside,
  .rules-grid,
  .team-grid {
    display: block;
  }

  .page-header {
    justify-content: flex-start;
  }


  .classic-tabs {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .classic-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .league-home-hero,
  .league-home-grid,
  .league-home-stats,
  .dashboard-flow {
    display: block;
  }

  .pick-screen-layout {
    display: block;
  }

  .league-cards {
    grid-template-columns: 1fr;
  }

  .league-home-hero--dashboard {
    padding: 1rem;
  }

  .dashboard-hero-panel {
    width: 100%;
    margin-top: 0.95rem;
  }

  .dashboard-steps {
    grid-template-columns: 1fr;
  }

  .dashboard-join-form {
    grid-template-columns: 1fr;
  }

  .dashboard-help-row,
  .dashboard-card-head,
  .league-card__header {
    display: grid;
    gap: 0.75rem;
  }

  .league-card__status {
    grid-template-columns: 1fr;
  }

  .league-home-stat + .league-home-stat,
  .league-home-card + .league-home-card {
    margin-top: 0.75rem;
  }

  .pick-screen-hero,
  .pick-screen-rules,
  .pick-screen-layout,
  .picks-form-shell,
  .picks-summary-card {
    max-width: none;
  }

  .legacy-picked-bars__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .legacy-picked-bars__label {
    text-align: left;
  }

  .nerd-stats-highlights {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 720px) {
  .container {
    width: min(100%, calc(100% - (var(--page-gutter) * 2)));
  }

  .site-header {
    padding-top: 0.35rem;
  }

  .link-button {
    flex: 0 0 auto;
    padding: 0.42rem 0.82rem;
    background: rgba(33, 119, 200, 0.06);
  }

  .classic-panel--standalone {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }


  .pick-screen-hero {
    display: block;
    padding: 0.6rem 0 1rem;
  }

  .pick-screen-hero h1 {
    font-size: 1.7rem;
  }

  .picks-deadline-card {
    min-width: 0;
    width: 100%;
    margin-top: 0.9rem;
  }

  .pick-screen-rules {
    margin-top: 0.2rem;
  }

  .pick-screen-layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .picks-summary-card {
    order: -1;
    position: static;
    max-width: none;
    width: 100%;
  }

  .picks-form-shell {
    display: grid;
    gap: 0.85rem;
  }

  .rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .team-group {
    overflow: hidden;
  }

  .team-group h2 {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .team-option {
    min-height: 0;
    padding: 0.85rem 0.8rem;
    border-radius: 10px;
  }

  .team-option__content {
    min-width: 0;
  }

  .pick-screen-layout .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .pick-screen-layout .actions .button,
  .pick-screen-layout .actions .button.secondary {
    width: 100%;
    justify-content: center;
  }

  .summary-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .summary-item {
    min-width: 0;
  }

  .classic-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    padding-top: 0.55rem;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .classic-tabs::-webkit-scrollbar {
    display: none;
  }

  .classic-tab {
    flex: 0 0 auto;
    padding: 0.52rem 0.8rem 0.58rem;
    font-size: 0.92rem;
    border-radius: 999px;
    background: rgba(33, 119, 200, 0.06);
    border-bottom: none;
    white-space: nowrap;
  }

  .classic-tab--active {
    border-bottom: none;
    background: rgba(33, 119, 200, 0.14);
  }

  .classic-settings {
    margin-left: 0;
    flex: 0 0 auto;
  }

  .classic-toolbar {
    padding: 0.7rem 0 1rem;
  }

  .classic-toolbar__controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3rem;
    gap: 0.55rem;
  }

  .classic-toolbar__controls select {
    min-width: 0;
    width: 100%;
  }

  .refresh-button {
    width: 3rem;
    min-width: 3rem;
    height: auto;
  }

  .classic-toolbar__meta {
    width: 100%;
    text-align: left;
  }

  .standings-hero {
    display: none;
  }

  .classic-toolbar--standings {
    margin-top: 0.25rem;
    padding: 0.8rem 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(244, 248, 255, 0.96);
    border: 1px solid rgba(33, 119, 200, 0.1);
  }

  .classic-table thead {
    display: none;
  }

  .classic-table,
  .classic-table tbody,
  .classic-table td {
    display: block;
    width: 100%;
  }

  .classic-table tbody tr:not(.entry-mobile-details-row) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0;
    padding: 0.85rem 0.95rem 0.78rem;
    border: 1px solid #dddddd;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.96);
  }

  .classic-table tbody tr:not(.entry-mobile-details-row) td {
    width: auto;
    min-width: 0;
    padding: 0;
    border-bottom: none;
  }

  .classic-table--standings tbody tr.standings-row td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.22rem;
    color: #8a8a8a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .classic-table--standings tbody tr.standings-row td:first-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #6b6b6b;
    font-size: 1.02rem;
    font-weight: 700;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .classic-table--standings tbody tr.standings-row td:first-child::before {
    margin-bottom: 0;
    margin-right: 0.45rem;
  }

  .mobile-place-total {
    display: inline;
    color: #4f5f74;
    font-weight: 700;
  }

  .classic-table--standings tbody tr.standings-row td:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding-top: 0;
    min-width: 0;
  }

  .classic-table--standings tbody tr.standings-row td:nth-child(2)::before {
    display: none;
  }

  .classic-table--standings .pick-popup-trigger {
    display: inline-flex;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    font-size: 1.05rem;
  }

  .standings-player-total {
    display: inline-block;
  }

  .classic-table--standings tbody tr.standings-row td:nth-child(3) {
    display: none;
  }

  .classic-table--standings tbody tr.standings-row td:nth-child(n + 3) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3.65rem;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    background: rgba(33, 119, 200, 0.05);
    border: 1px solid rgba(33, 119, 200, 0.12);
    text-align: left;
    font-size: 0.98rem;
    font-variant-numeric: tabular-nums;
  }

  .classic-table--standings tbody tr.standings-row td:nth-child(4),
  .classic-table--standings tbody tr.standings-row td:nth-child(5),
  .classic-table--standings tbody tr.standings-row td:nth-child(3),
  .classic-table--standings tbody tr.standings-row td:nth-child(6),
  .classic-table--standings tbody tr.standings-row td:nth-child(7),
  .classic-table--standings tbody tr.standings-row td:nth-child(8),
  .classic-table--standings tbody tr.standings-row td:nth-child(9) {
    display: none;
  }

  .classic-table--standings tbody tr.standings-row td:nth-child(3),
  .classic-table--standings tbody tr.standings-row td:nth-child(4),
  .classic-table--standings tbody tr.standings-row td:nth-child(5),
  .classic-table--standings tbody tr.standings-row td:nth-child(6),
  .classic-table--standings tbody tr.standings-row td:nth-child(7),
  .classic-table--standings tbody tr.standings-row td:nth-child(8),
  .classic-table--standings tbody tr.standings-row td:nth-child(9) {
    text-align: left;
  }

  .entry-mobile-details-row {
    display: block !important;
    width: 100%;
    background: transparent;
  }

  .entry-mobile-details-row td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border-bottom: none;
    border: none;
  }

  .entry-mobile-details {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: -0.05rem 0 0.8rem;
    border: 1px solid rgba(33, 119, 200, 0.12);
    border-radius: 0 0 12px 12px;
    border-top: none;
    background: rgba(248, 251, 255, 0.98);
    overflow: hidden;
  }

  .entry-mobile-details[open] {
    display: block;
  }

  .entry-mobile-details:not([open]) .entry-mobile-details__header,
  .entry-mobile-details:not([open]) .entry-mobile-details__grid {
    display: none;
  }

  .entry-mobile-details__grid {
    padding-top: 0;
  }

  .entry-mobile-details__summary {
    display: none;
  }

  .entry-picks-popup {
    inset: auto 12px 12px 12px;
    width: auto;
    max-height: 78vh;
  }

  .entry-picks-popup__inner {
    max-height: 78vh;
  }

  body.entry-popup-open {
    overflow: hidden;
  }

  .auth-card {
    margin: 0.75rem auto;
    padding: 1rem 1rem 1.1rem;
  }

  .auth-card h1 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .auth-card p {
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .classic-panel--standalone {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .league-home-hero--dashboard,
  .league-home-hero--welcome {
    padding: 0.9rem 0.85rem 1rem;
    border-radius: 16px;
  }

  .league-home-hero h1 {
    font-size: 1.7rem;
  }

  .dashboard-step {
    padding: 0.7rem 0.8rem;
  }

  .league-card__code {
    justify-self: start;
  }

  .dashboard-link-list {
    display: grid;
    gap: 0.6rem;
  }

  .pick-screen-hero h1 {
    font-size: 1.5rem;
  }

  .pick-screen-rules,
  .pick-screen-layout .card,
  .picks-summary-card {
    border-radius: 12px;
  }

  .summary-list {
    grid-template-columns: 1fr;
  }

  .classic-tabs {
    gap: 0.45rem;
  }

  .classic-table tbody tr:not(.entry-mobile-details-row) {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.82rem 0.74rem 0.62rem;
  }

  .classic-table--standings tbody tr.standings-row td:first-child,
  .classic-table--standings tbody tr.standings-row td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .auth-card {
    padding: 0.95rem 0.9rem 1rem;
  }

  .auth-card h1 {
    font-size: 1.8rem;
  }

  .entry-mobile-details__header {
    display: block;
  }

  .entry-mobile-details__teams-left {
    margin-top: 0.28rem;
    text-align: left;
    white-space: normal;
  }

  .team-option {
    padding: 0.78rem 0.72rem;
  }

  .team-option__name {
    font-size: 0.96rem;
  }

.team-option__meta {
    font-size: 0.8rem;
  }
}

/* UI polish pass */
.classic-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 251, 255, 0.965));
  backdrop-filter: blur(6px);
}

.classic-tabs {
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.15rem;
}

.classic-tab {
  position: relative;
  color: #53606f;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}

.classic-tab:hover,
.classic-tab:focus-visible {
  color: #1f6fbe;
  transform: translateY(-1px);
}

.classic-tab::before {
  opacity: 0.9;
}

.classic-tab--active {
  color: #1f6fbe;
}

.standings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: end;
  margin: 0.9rem 0 1rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border: 1px solid rgba(33, 119, 200, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.95)),
    radial-gradient(circle at right top, rgba(33, 119, 200, 0.12), transparent 36%);
  box-shadow: 0 18px 32px rgba(20, 40, 64, 0.08);
}

.standings-hero__copy h1 {
  margin: 0.2rem 0 0.45rem;
  color: #616a75;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.standings-hero__copy p {
  margin: 0;
  max-width: 42rem;
  color: #6e7782;
  line-height: 1.55;
}

.standings-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.standings-stat {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(33, 119, 200, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.standings-stat span,
.standings-stat strong {
  display: block;
}

.standings-stat span {
  color: #7d8794;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.standings-stat strong {
  margin-top: 0.28rem;
  color: #2b73c5;
  font-size: 1.02rem;
}

.classic-toolbar--standings {
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(245, 249, 255, 0.92);
  border: 1px solid rgba(33, 119, 200, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.classic-toolbar__controls select,
.refresh-button {
  border-radius: 12px;
}

.refresh-button {
  background: rgba(255, 255, 255, 0.95);
  color: #6f7b8d;
}

.classic-toolbar__meta strong {
  color: #5d6774;
  font-size: 1rem;
}

.classic-toolbar__meta span {
  margin-top: 0.15rem;
  color: #7c8897;
}

.classic-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(33, 119, 200, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(18, 34, 56, 0.08);
}

.classic-table--standings {
  border-collapse: separate;
  border-spacing: 0;
}

.classic-table--standings thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(242, 247, 255, 0.98));
  backdrop-filter: blur(6px);
}

.classic-table--standings thead th:first-child {
  border-top-left-radius: 16px;
}

.classic-table--standings thead th:last-child {
  border-top-right-radius: 16px;
}

.classic-table--standings tbody tr {
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.classic-table--standings tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 999px rgba(33, 119, 200, 0.025);
}

.classic-table--standings td:first-child {
  font-size: 1.02rem;
  font-weight: 700;
  color: #5e6670;
}

.classic-table--standings td:nth-child(8),
.classic-table--standings td:nth-child(9) {
  color: #1f6fbe;
  font-weight: 700;
}

.classic-table--standings .pick-popup-trigger {
  color: #586372;
  font-weight: 600;
  border-bottom-color: rgba(105, 124, 148, 0.55);
}

.classic-table--standings .pick-popup-trigger:hover,
.classic-table--standings .pick-popup-trigger:focus-visible {
  color: #1f6fbe;
  border-bottom-color: rgba(31, 111, 190, 0.65);
}

.pick-screen-hero {
  align-items: stretch;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid rgba(33, 119, 200, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.95)),
    radial-gradient(circle at right top, rgba(33, 119, 200, 0.12), transparent 36%);
  box-shadow: 0 18px 32px rgba(20, 40, 64, 0.08);
}

.pick-screen-rules {
  border: 1px solid rgba(33, 119, 200, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}

.picks-deadline-card {
  display: grid;
  align-content: start;
  gap: 0.12rem;
  min-width: 255px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 244, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.picks-deadline-card strong {
  font-size: 1.4rem;
}

.rule-chip {
  display: grid;
  gap: 0.35rem;
  align-items: start;
  min-height: 100%;
  padding: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(237, 245, 255, 0.92));
}

.rule-chip span {
  line-height: 1.35;
}

.rule-chip strong {
  font-size: 1.15rem;
}

.team-group {
  border: 1px solid rgba(33, 119, 200, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
}

.team-group h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.team-group h2::after {
  content: "";
  width: 2.6rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(33, 119, 200, 0.22);
}

.team-grid {
  gap: 0.75rem;
}

.team-option {
  min-height: 6rem;
  padding: 0.82rem 0.88rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 255, 0.92));
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.team-option:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 119, 200, 0.22);
  box-shadow: 0 10px 18px rgba(20, 40, 64, 0.08);
}

.team-option:has(input:checked) {
  background: linear-gradient(180deg, rgba(227, 240, 255, 0.98), rgba(213, 232, 255, 0.96));
  border-color: rgba(33, 119, 200, 0.32);
  box-shadow: 0 12px 22px rgba(33, 119, 200, 0.12);
}

.team-option input[type="checkbox"] {
  accent-color: #2177c8;
  transform: scale(1.14);
}

.team-option__region {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(33, 119, 200, 0.1);
  color: #4a6f9d;
}

.team-option__name {
  color: #4f5966;
  font-weight: 700;
}

.team-option__meta {
  color: #7b8798;
}

.picks-summary-card {
  top: 1.15rem;
  border: 1px solid rgba(33, 119, 200, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95));
}

.summary-list {
  gap: 0.8rem;
}

.summary-item {
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(33, 119, 200, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.summary-item strong {
  color: #5c6673;
}

.summary-item div {
  color: #1f6fbe;
  font-weight: 700;
  text-align: right;
}

.pick-screen-layout .actions {
  margin-top: 0.7rem;
}

.pick-screen-layout .actions .button,
.pick-screen-layout .actions .button.secondary {
  min-width: 180px;
}

.entry-mobile-details {
  box-shadow: 0 14px 24px rgba(18, 34, 56, 0.08);
}

.entry-mobile-details__summary {
  font-size: 0.98rem;
}

.entry-mobile-details__group {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 119, 200, 0.1);
}

@media (max-width: 900px) {
  .standings-hero {
    grid-template-columns: 1fr;
  }

  .standings-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pick-screen-layout {
    grid-template-columns: 1fr;
  }

  .picks-form-shell,
  .picks-summary-card {
    max-width: none;
  }

  .picks-summary-card {
    justify-self: stretch;
    position: static;
    order: -1;
  }

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

@media (max-width: 720px) {
  .standings-hero,
  .standings-hero__stats {
    display: none !important;
  }

  .classic-toolbar--standings {
    margin-top: 0.35rem;
    padding: 0.85rem;
    border-radius: 14px;
  }

  .classic-table tbody tr:not(.entry-mobile-details-row) {
    gap: 0.65rem;
    padding: 0.85rem 0.85rem 0.72rem;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 10px 18px rgba(18, 34, 56, 0.05);
  }

  .classic-table--standings tbody tr.standings-row td:first-child {
    font-size: 1.02rem;
  }

  .entry-mobile-details {
    margin-top: -0.05rem;
    border-radius: 0 0 16px 16px;
  }

  .entry-mobile-details__summary {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .rule-chip {
    padding: 0.82rem;
  }

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

  .pick-screen-hero {
    padding: 1rem;
    border-radius: 16px;
  }

  .picks-deadline-card {
    min-width: 0;
  }

  .pick-screen-layout .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .pick-screen-layout .actions .button,
  .pick-screen-layout .actions .button.secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .standings-hero__copy h1 {
    font-size: 1.7rem;
  }

  .classic-tabs {
    padding-top: 0.45rem;
  }

  .classic-tab {
    font-size: 0.88rem;
  }

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

  .team-option {
    min-height: 0;
  }
}

/* Rebuilt top shelf */
.top-shelf {
  width: min(1210px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.top-shelf--brand-only {
  width: min(980px, calc(100% - (var(--page-gutter) * 2)));
}

.top-shelf__header {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.75rem 0.42rem;
  background:
    linear-gradient(180deg, rgba(68, 121, 195, 0.98), rgba(54, 107, 183, 0.98)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 36%);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
}

.top-shelf__header--brand-only {
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 0.7rem;
}

.top-shelf__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.top-shelf__brand img {
  display: block;
  width: min(100%, 176px);
  height: auto;
}

.top-shelf__scoreboard {
  position: relative;
  min-width: 0;
  padding: 0 2.7rem;
}

.top-shelf__ticker {
  width: 100%;
}

.top-shelf__ticker-track {
  --ticker-columns: 4;
  --ticker-gap: 0.5rem;
  display: flex;
  gap: var(--ticker-gap);
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
}

.top-shelf__ticker-track::-webkit-scrollbar {
  display: none;
}

.top-shelf__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(97, 103, 112, 0.88);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  cursor: pointer;
  padding: 0;
}

.top-shelf__arrow-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.top-shelf__arrow--left {
  left: 0.1rem;
}

.top-shelf__arrow--right {
  right: 0.1rem;
}

.top-shelf__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.top-scorecard {
  width: calc((100% - (var(--ticker-columns) - 1) * var(--ticker-gap)) / var(--ticker-columns));
  min-width: calc((100% - (var(--ticker-columns) - 1) * var(--ticker-gap)) / var(--ticker-columns));
  max-width: calc((100% - (var(--ticker-columns) - 1) * var(--ticker-gap)) / var(--ticker-columns));
  background: rgba(255, 255, 255, 0.995);
  border-radius: 7px;
  overflow: hidden;
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-shadow: 0 4px 10px rgba(18, 34, 56, 0.12);
}

.top-scorecard__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.42rem;
  background: #f1f1f1;
  color: #757575;
  font-size: 0.68rem;
  font-weight: 700;
}

.top-scorecard__meta strong {
  color: #ef7c23;
  border: 1px solid #ef7c23;
  border-radius: 999px;
  padding: 0.02rem 0.32rem;
  background: #fff;
}

.top-scorecard__row {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid #f0f0f0;
  color: #6c6c6c;
  font-size: 0.74rem;
}

.top-scorecard__seed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.86rem;
  background: #d9d9d9;
  color: #797979;
  font-weight: 700;
}

.top-scorecard__name,
.top-scorecard__score {
  display: flex;
  align-items: center;
  min-width: 0;
}

.top-scorecard__name {
  padding: 0.3rem 0.42rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-scorecard__score {
  justify-content: flex-end;
  padding: 0.3rem 0.42rem 0.3rem 0.24rem;
  font-weight: 700;
}

.top-scorecard__row--winner {
  background: #fdf4ee;
  color: #ef7c23;
  font-weight: 700;
}

.top-scorecard__row--winner .top-scorecard__seed {
  color: #ef7c23;
}

.top-shelf__nav {
  background: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow);
  padding: 0.7rem 1.05rem 0.75rem;
}

.top-shelf__nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.top-shelf__nav nav a,
.top-shelf__nav .link-button {
  border-radius: 999px;
  padding: 0.42rem 0.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.top-shelf__nav nav a.is-active,
.top-shelf__nav .link-button.is-active,
.top-shelf__nav .nav-cta.is-active {
  color: var(--blue);
  background: rgba(33, 119, 200, 0.12);
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.top-shelf__nav .nav-cta {
  padding: 0.42rem 0.9rem;
  background: rgba(33, 119, 200, 0.08);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .top-shelf,
  .top-shelf--brand-only {
    width: min(100%, calc(100% - (var(--page-gutter) * 2)));
  }

  .top-shelf__header {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .top-shelf__brand img {
    width: min(100%, 165px);
  }

  .top-shelf__nav nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .top-shelf__nav nav::-webkit-scrollbar {
    display: none;
  }

  .top-shelf__nav nav a,
  .top-shelf__nav .link-button {
    flex: 0 0 auto;
    background: rgba(33, 119, 200, 0.06);
    padding: 0.42rem 0.82rem;
  }
}

@media (max-width: 720px) {
  .top-shelf__header {
    padding: 0.6rem 0.7rem 0.3rem;
    border-radius: 18px 18px 0 0;
  }

  .top-shelf__brand img {
    width: min(100%, 118px);
  }

  .top-shelf__scoreboard {
    padding: 0.1rem 2.7rem 0.55rem;
  }

  .top-shelf__ticker-track {
    --ticker-columns: 1;
    --ticker-gap: 0.45rem;
  }

  .top-shelf__arrow {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .top-shelf__arrow-icon {
    width: 17px;
    height: 17px;
  }

  .top-scorecard {
    border-radius: 14px;
  }

  .top-scorecard__meta {
    padding: 0.34rem 0.58rem;
    font-size: 0.75rem;
  }

  .top-scorecard__row {
    font-size: 0.92rem;
  }

  .top-shelf__nav {
    padding: 0.55rem 0.75rem 0.65rem;
    border-radius: 0 0 18px 18px;
  }
}
