:root {
  --page: #f2eee4;
  --ink: #0c1218;
  --ink-2: #151f28;
  --navy: #07111a;
  --green: #073a2d;
  --green-2: #0b6849;
  --line: rgba(12, 18, 24, 0.11);
  --line-strong: rgba(12, 18, 24, 0.22);
  --muted: #687269;
  --panel: #fffdf7;
  --panel-soft: #e7dfcf;
  --yellow: #efbd3d;
  --good: #008f5a;
  --warn: #d98512;
  --danger-playoff: #b84532;
  --bad: #d62849;
  --blue: #1e73be;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, #0b1118 0 72px, transparent 72px),
    repeating-linear-gradient(90deg, rgba(12, 18, 24, 0.025) 0 1px, transparent 1px 88px),
    var(--page);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.35;
}

[hidden] {
  display: none !important;
}

body,
button,
select {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin: 0;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(206px, 1fr) auto minmax(206px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 0 max(22px, calc((100vw - 1240px) / 2));
  color: #fff;
  background:
    linear-gradient(180deg, #10171f 0%, #080e14 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(5, 9, 13, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 206px;
  color: #fffdf6;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  object-fit: contain;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  color: #fffdf6;
  font-size: 22px;
  line-height: 1;
}

.brand-accent {
  color: #10d35f;
}

.primary-nav {
  display: flex;
  justify-self: center;
  justify-content: center;
  gap: 28px;
}

.primary-nav a,
.signin-link,
.nav-social-link,
.season-indicator,
.eyebrow,
.table-controls button,
.source-badge,
.control-select span,
.season-select span {
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 24px 0 21px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.primary-nav a.is-active,
.primary-nav a:hover {
  color: #fff;
}

.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  background: var(--yellow);
}

.nav-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.season-indicator {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.season-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #38c172;
  box-shadow: 0 0 0 3px rgba(56, 193, 114, 0.22);
}

.signin-link {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  min-width: 78px;
  padding: 8px 14px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.auth-label-signed-in {
  display: none;
}

html.has-auth-snapshot .auth-label-signed-out {
  display: none;
}

html.has-auth-snapshot .auth-label-signed-in {
  display: inline;
}

.signin-link:hover,
.signin-link.is-signed-in,
html.has-auth-snapshot .signin-link {
  border-color: rgba(239, 189, 61, 0.72);
  color: var(--yellow);
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.nav-social-link:hover {
  border-color: rgba(239, 189, 61, 0.72);
  color: var(--yellow);
}

.signin-disabled {
  cursor: default;
  opacity: 0.58;
  pointer-events: none;
}

.auth-panel {
  position: sticky;
  top: 66px;
  z-index: 29;
  color: #fff;
  background: #0e151c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 34px rgba(5, 9, 13, 0.2);
}

.auth-panel-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(120px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.auth-panel-inner.is-signed-in {
  grid-template-columns: minmax(210px, 0.55fr) minmax(360px, 1fr) auto auto;
  gap: 8px 14px;
  align-items: end;
  padding: 14px 0 16px;
}

.auth-heading {
  min-width: 130px;
}

.auth-panel-inner.is-signed-in .auth-heading {
  min-width: 0;
  align-self: center;
}

.auth-heading .eyebrow {
  color: rgba(255, 255, 255, 0.54);
}

.auth-heading h2 {
  margin-top: 1px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-panel-inner.is-signed-in .auth-heading h2 {
  font-size: 17px;
}

.auth-form,
.profile-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.profile-form {
  grid-column: 2;
}

.auth-form.is-account-actions {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
}

.auth-panel-inner.is-signed-in .profile-form {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(220px, 360px) auto;
  gap: 10px 12px;
  align-items: end;
  justify-content: start;
}

.auth-panel-inner.is-signed-in .profile-checkbox {
  min-width: 0;
}

.auth-panel-inner.is-signed-in .auth-close {
  grid-column: 4;
  grid-row: 1;
  align-self: end;
}

.auth-form label,
.profile-form label:not(.profile-checkbox) {
  display: grid;
  gap: 3px;
  min-width: min(210px, 100%);
}

.auth-form label[hidden],
.auth-form button[hidden],
.profile-form[hidden] {
  display: none;
}

.auth-form span,
.profile-form span {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input,
.profile-form input[type="text"],
.profile-form textarea {
  height: 34px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  padding: 0 10px;
  outline: 0;
  background: rgba(2, 8, 12, 0.34);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.profile-form textarea {
  height: 52px;
  resize: none;
  padding-top: 8px;
  line-height: 1.25;
}

.auth-form input::placeholder,
.profile-form input::placeholder,
.profile-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.profile-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
}

.profile-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--yellow);
}

.auth-button,
.auth-close {
  min-height: 34px;
  border: 0;
  padding: 0 12px;
  color: #111;
  background: var(--yellow);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-button-secondary,
.auth-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.auth-button:disabled,
.auth-close:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-status {
  grid-column: 2 / 4;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-panel-inner.is-signed-in .auth-status {
  grid-column: 2 / 5;
  text-align: left;
}

.auth-legal-note {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.auth-legal-note a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-decoration-color: rgba(239, 189, 61, 0.72);
  text-underline-offset: 2px;
}

.auth-form.is-account-actions .auth-legal-note {
  display: none;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 34px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.7);
  background: #0c131a;
  border-top: 3px solid var(--yellow);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.site-footer-brand,
.site-footer-links {
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer-brand {
  color: #fff;
  font-size: 14px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--yellow);
}

.how-page {
  padding-bottom: 54px;
}

.how-hero {
  margin-bottom: 14px;
}

.how-score-layout {
  margin-top: 0;
}

.how-example-grid {
  margin-top: 12px;
}

.below-match-center.how-example-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.below-match-center.how-example-grid .zone-legend,
.below-match-center.how-example-grid .zone-spacer {
  min-height: 35px;
}

.below-match-center.how-example-grid .zone-legend {
  flex-wrap: nowrap;
  padding: 0;
}

.below-match-center.how-example-grid .legend-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 4px;
  font-size: 10px;
  letter-spacing: 0.035em;
  line-height: 1.1;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}

.how-page .builder-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.how-summary-grid,
.creator-links {
  margin-top: 18px;
  background: var(--panel);
  border-top: 3px solid rgba(12, 18, 24, 0.78);
  box-shadow: 0 16px 32px rgba(28, 23, 14, 0.08);
}

.how-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.how-summary-main {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.how-summary-main h2 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.how-summary-main p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.how-summary-stats {
  display: grid;
}

.how-summary-stats div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.how-summary-stats div:last-child {
  border-bottom: 0;
}

.how-summary-stats dt {
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-summary-stats dd {
  font-size: 18px;
  font-weight: 900;
}

.creator-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.creator-video-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.creator-video-card:last-child {
  border-right: 0;
}

.creator-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111820;
}

.creator-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.creator-video-card a {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 18px;
  font-size: 20px;
  font-weight: 900;
}

.creator-video-card a:hover {
  background: #efe8db;
}

.creator-video-card > a span {
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-prediction-shell {
  padding: 0 14px 16px;
}

.creator-prediction-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.creator-prediction-table th {
  height: 28px;
  padding: 6px 8px;
  color: rgba(255, 253, 247, 0.68);
  background: #111820;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.creator-prediction-table th:last-child,
.creator-prediction-table td:last-child {
  width: 64px;
  text-align: right;
}

.creator-prediction-table td {
  height: 30px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  background: #f7f3ea;
}

.creator-prediction-table td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.creator-prediction-table .creator-rank {
  flex: 0 0 22px;
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 900;
}

.creator-prediction-table .creator-club-cell {
  flex: 1 1 auto;
  gap: 7px;
}

.creator-prediction-table .club-badge {
  width: 21px;
  height: 23px;
  border-radius: 6px 6px 8px 8px;
  font-size: 9px;
}

.creator-prediction-table .club-name {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 11px 10px;
  background: #ded6c8;
  border-top: 2px solid var(--yellow);
}

.creator-score-card span,
.creator-score-card em {
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-score-card strong {
  grid-row: span 2;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.creator-score-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-group-prediction-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  padding: 0;
}

.room-group-prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px;
}

.room-group-prediction-card {
  border: 1px solid var(--line);
  background: #fffaf0;
}

.room-group-prediction-card .group-builder-head {
  padding: 8px 10px;
}

.room-group-prediction-card .group-builder-list {
  margin: 0;
}

.room-group-prediction-card .builder-row {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 38px;
  background: #f8f3e8;
}

.room-group-prediction-card .club-cell {
  min-width: 0;
}

.room-group-prediction-card .club-name {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-group-prediction-shell .creator-score-card {
  align-content: center;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.league-masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 15px 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 26, 0.99), rgba(7, 58, 45, 0.98) 58%, rgba(11, 104, 73, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 78px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 18px 42px rgba(25, 21, 13, 0.16);
}

.league-mark {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow:
    inset 0 -5px 0 rgba(239, 189, 61, 0.92),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.league-mark.has-logo {
  background: rgba(255, 253, 246, 0.96);
  color: var(--ink);
  box-shadow: inset 0 -5px 0 rgba(224, 178, 58, 0.92);
}

.league-mark img {
  grid-area: 1 / 1;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.league-mark .league-mark-text {
  grid-area: 1 / 1;
}

.league-mark.has-logo:not(.is-loaded) img {
  opacity: 0;
}

.league-mark.has-logo.is-loaded .league-mark-text {
  display: none;
}

.league-mark.site-brand-badge {
  background: #061018;
  box-shadow:
    inset 0 0 0 1px rgba(16, 211, 95, 0.26),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.league-mark.site-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
}

.league-masthead .eyebrow,
.league-masthead p {
  color: rgba(255, 255, 255, 0.72);
}

.league-masthead .season-rule {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.league-copy h1 {
  margin: 0 0 1px;
  overflow: hidden;
  padding-bottom: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.league-actions {
  --league-action-height: 36px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px 10px;
  flex-wrap: wrap;
}

.control-select,
.season-select {
  display: grid;
  gap: 4px;
  position: relative;
}

.control-select::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 15px;
  width: 10px;
  height: 6px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

.control-select span,
.season-select span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.control-select select,
.season-select select,
.source-badge,
.how-works-cta,
.build-cta {
  height: var(--league-action-height);
  min-height: var(--league-action-height);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(2, 8, 12, 0.34);
  color: #fff;
}

.control-select select,
.season-select select {
  min-width: 132px;
  padding: 0 42px 0 18px;
  border-radius: 2px;
  font-weight: 800;
  appearance: none;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
}

.build-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.how-works-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(2, 8, 12, 0.34);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.how-works-cta:hover {
  border-color: rgba(239, 189, 61, 0.72);
  color: var(--yellow);
}

.league-status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 12px;
  overflow: hidden;
  color: #fff;
  background: #0e151c;
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-summary {
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.status-cutoff {
  display: block;
  flex: 0 0 auto;
  width: 1px;
  height: 24px;
  margin-inline: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.popular-label {
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.58);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav::-webkit-scrollbar,
.table-controls::-webkit-scrollbar,
.league-switch-rail::-webkit-scrollbar {
  display: none;
}

.league-switch-rail {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  gap: 6px;
  scrollbar-width: none;
}

.league-switch-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  flex: 1 1 0;
  gap: 0 5px;
  width: auto;
  min-width: 0;
  padding: 5px 6px 7px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.league-switch-link .league-switch-icon {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  align-self: center;
  color: #111820;
  background: var(--yellow);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.league-switch-icon img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.league-switch-icon b {
  grid-area: 1 / 1;
}

.league-switch-icon.has-logo:not(.is-loaded) img {
  opacity: 0;
}

.league-switch-icon.has-logo {
  padding: 2px;
  background: rgba(255, 255, 255, 0.95);
}

.league-switch-icon.has-logo.is-loaded b {
  display: none;
}

.league-switch-icon b {
  font: inherit;
}

.league-switch-link strong,
.league-switch-link em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-switch-link strong {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.league-switch-link em {
  color: rgba(255, 255, 255, 0.46);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.league-switch-link:hover,
.league-switch-link.is-current {
  color: #fff;
  background: #0e151c;
}

.league-switch-link.is-current {
  box-shadow: inset 0 -4px 0 var(--yellow);
}

.league-switch-link.is-current .league-switch-icon {
  color: #fff;
  background: var(--green-2);
}

.league-switch-link.is-current .league-switch-icon.has-logo {
  background: #fff;
}

.match-center-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.scoreboard-main {
  grid-column: span 8;
  min-width: 0;
  background:
    linear-gradient(180deg, #fffdf8 0%, #fbf6eb 100%);
  border-top: 4px solid var(--green-2);
  border-inline: 1px solid rgba(12, 18, 24, 0.08);
  box-shadow: 0 18px 38px rgba(28, 23, 14, 0.13);
}

.scoreboard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--line);
}

.scoreboard-heading h2 {
  max-width: 30ch;
  margin: 1px 0 5px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.02;
}

.scoreboard-heading p:not(.eyebrow) {
  max-width: 70ch;
  color: var(--muted);
  font-size: 13px;
}

.score-total-inline {
  min-width: 128px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  text-align: right;
}

.score-total-inline span {
  display: block;
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-total-inline strong {
  display: block;
  margin-top: 2px;
  font-size: 36px;
  line-height: 0.95;
  font-weight: 900;
}

.score-principle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101820;
}

.score-principle-row span {
  min-width: 0;
  padding: 7px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.score-principle-row span:last-child {
  border-right: 0;
}

.score-principle-row strong,
.score-principle-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-principle-row strong {
  color: #fff;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-principle-row em {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.table-controls {
  display: flex;
  gap: 1px;
  max-width: 100%;
  padding: 0 18px;
  overflow-x: auto;
  background: #d8d0c0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.table-controls button {
  border: 0;
  border-radius: 0;
  padding: 8px 13px;
  color: #58615c;
  background: transparent;
  font-size: 12px;
}

.table-controls button.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.score-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding: 0 16px 14px;
  -webkit-overflow-scrolling: touch;
}

.score-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.score-table th,
.score-table td {
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.score-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px 8px;
  color: rgba(255, 253, 247, 0.72);
  background: #111820;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.score-table th:first-child {
  background: #0b6849;
}

.score-table th:nth-child(2),
.score-table td:nth-child(2) {
  text-align: left;
}

.score-table th:first-child,
.score-table td:first-child,
.score-table th:nth-child(3),
.score-table td:nth-child(3),
.score-table th:nth-child(4),
.score-table td:nth-child(4),
.score-table th:nth-child(5),
.score-table td:nth-child(5),
.score-table th:nth-child(6),
.score-table td:nth-child(6) {
  width: 74px;
  text-align: center;
}

.score-table th:nth-child(5),
.score-table td:nth-child(5) {
  width: 132px;
}

.score-table th:nth-child(6),
.score-table td:nth-child(6) {
  width: 112px;
}

.score-table td {
  height: 40px;
  padding: 5px 10px;
  background: var(--panel);
  font-weight: 700;
}

.score-table td:first-child {
  color: #101820;
  background: #eee6d7;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.score-table tbody tr:nth-child(even) td {
  background: #f8f3e9;
}

.score-table tbody tr:hover td {
  background: #f0eadc;
}

.score-row.row-spot-on td:first-child {
  box-shadow: inset 3px 0 0 var(--good);
}

.score-row.row-close td:first-child {
  box-shadow: inset 3px 0 0 var(--blue);
}

.score-row.row-drift td:first-child {
  box-shadow: inset 3px 0 0 var(--warn);
}

.score-row.row-miss td:first-child,
.score-row.row-big-miss td:first-child,
.score-row.row-worst-call td:first-child {
  box-shadow: inset 3px 0 0 var(--bad);
}

.row-zone-cl td:first-child,
.row-zone-clq td:first-child,
.row-zone-clq .row-rank,
.row-zone-cl .row-rank {
  box-shadow: inset 3px 0 0 var(--blue);
}

.row-zone-el td:first-child,
.row-zone-auto td:first-child,
.row-zone-auto .row-rank,
.row-zone-el .row-rank {
  box-shadow: inset 3px 0 0 var(--good);
}

.row-zone-conf td:first-child,
.row-zone-po td:first-child,
.row-zone-third td:first-child,
.row-zone-third .row-rank,
.row-zone-po .row-rank,
.row-zone-conf .row-rank {
  box-shadow: inset 3px 0 0 var(--yellow);
}

.row-zone-relp td:first-child,
.row-zone-relp .row-rank {
  box-shadow: inset 3px 0 0 var(--danger-playoff);
}

.row-zone-rel td:first-child,
.row-zone-out td:first-child,
.row-zone-out .row-rank,
.row-zone-rel .row-rank {
  box-shadow: inset 3px 0 0 var(--bad);
}

.row-zone-mid td:first-child,
.row-zone-mid .row-rank {
  box-shadow: inset 3px 0 0 rgba(16, 21, 27, 0.18);
}

.current-row.row-route-cl .row-rank {
  box-shadow: inset 3px 0 0 var(--blue);
}

.current-row.row-route-el .row-rank {
  box-shadow: inset 3px 0 0 var(--good);
}

.current-row.row-route-conf .row-rank {
  box-shadow: inset 3px 0 0 var(--yellow);
}

.club-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.club-badge {
  --badge-bg: #23313b;
  --badge-accent: rgba(255, 255, 255, 0.16);
  position: relative;
  width: 28px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(16, 21, 27, 0.14);
  border-radius: 7px 7px 9px 9px;
  background:
    linear-gradient(180deg, var(--badge-accent), transparent 45%),
    var(--badge-bg);
  color: #fff;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.club-badge.has-logo {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-shadow: none;
  box-shadow: none;
}

.club-badge img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.club-badge.has-logo:not(.is-loaded) img {
  opacity: 0;
}

.club-badge.has-logo.is-loaded .badge-initials {
  opacity: 0;
}

.how-example-grid .club-badge.has-logo img {
  opacity: 1;
}

.how-example-grid .club-badge.has-logo .badge-initials {
  opacity: 0;
}

.creator-prediction-table .club-badge.has-logo img {
  opacity: 1;
}

.creator-prediction-table .club-badge.has-logo .badge-initials {
  opacity: 0;
}

.country-flag {
  width: 30px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(16, 21, 27, 0.16);
  background: rgba(16, 21, 27, 0.08);
  box-shadow: 0 1px 0 rgba(16, 21, 27, 0.08);
}

.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.club-badge.tone-0 {
  --badge-bg: #243844;
  --badge-accent: rgba(224, 178, 58, 0.32);
}

.club-badge.tone-1 {
  --badge-bg: #234f3f;
  --badge-accent: rgba(255, 255, 255, 0.18);
}

.club-badge.tone-2 {
  --badge-bg: #583146;
  --badge-accent: rgba(224, 178, 58, 0.2);
}

.club-badge.tone-3 {
  --badge-bg: #315272;
  --badge-accent: rgba(255, 255, 255, 0.2);
}

.club-badge.tone-4 {
  --badge-bg: #6a5c24;
  --badge-accent: rgba(255, 255, 255, 0.16);
}

.club-badge.tone-5 {
  --badge-bg: #412f5d;
  --badge-accent: rgba(255, 255, 255, 0.15);
}

.club-badge.tone-6 {
  --badge-bg: #74333d;
  --badge-accent: rgba(224, 178, 58, 0.22);
}

.club-badge.tone-7 {
  --badge-bg: #35404a;
  --badge-accent: rgba(255, 255, 255, 0.16);
}

.club-name {
  font-size: 14px;
  font-weight: 800;
}

.error-zero {
  color: var(--good);
  background: rgba(7, 136, 79, 0.09) !important;
}

.error-close {
  color: var(--blue);
  background: rgba(31, 111, 181, 0.08) !important;
}

.error-miss {
  color: var(--warn);
  background: rgba(208, 130, 19, 0.1) !important;
}

.error-worst {
  color: var(--bad);
  background: rgba(207, 36, 70, 0.12) !important;
}

.score-table td.error-zero,
.score-table td.error-close,
.score-table td.error-miss,
.score-table td.error-worst {
  font-size: 14px;
  font-weight: 900;
}

.impact-meter {
  --impact: 0;
  display: inline-grid;
  grid-template-columns: 42px 18px;
  align-items: center;
  gap: 7px;
  min-width: 70px;
}

.impact-meter span {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: rgba(16, 21, 27, 0.1);
}

.impact-meter span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--impact) / 7) * 100%);
  background: currentColor;
}

.impact-meter strong {
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.impact-zero {
  color: var(--good);
}

.impact-close {
  color: var(--blue);
}

.impact-drift {
  color: var(--warn);
}

.impact-miss {
  color: var(--bad);
}

.zone-pill,
.change-pill,
.zone-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zone-pill {
  min-width: 46px;
  padding: 4px 8px;
  color: var(--ink);
  background: rgba(16, 21, 27, 0.08);
}

.builder-row .zone-pill {
  display: none;
}

.zone-cl,
.zone-clq {
  color: var(--blue);
  background: rgba(31, 111, 181, 0.13);
}

.zone-el {
  color: var(--good);
  background: rgba(7, 136, 79, 0.14);
}

.zone-auto {
  color: var(--good);
  background: rgba(7, 136, 79, 0.14);
}

.zone-conf {
  color: #8b6610;
  background: rgba(224, 178, 58, 0.22);
}

.zone-po {
  color: #8b6610;
  background: rgba(224, 178, 58, 0.22);
}

.zone-relp {
  color: var(--danger-playoff);
  background: rgba(184, 69, 50, 0.16);
}

.zone-third {
  color: #8b6610;
  background: rgba(224, 178, 58, 0.22);
}

.zone-rel {
  color: var(--bad);
  background: rgba(207, 36, 70, 0.16);
}

.zone-out {
  color: var(--bad);
  background: rgba(207, 36, 70, 0.16);
}

.zone-mid {
  color: #59615c;
  background: rgba(16, 21, 27, 0.08);
}

.change-pill {
  min-width: 74px;
  padding: 4px 8px;
  color: #59615c;
  background: rgba(16, 21, 27, 0.07);
}

.change-pill.is-promoted {
  color: var(--good);
  background: rgba(7, 136, 79, 0.14);
}

.zone-guide {
  min-width: 112px;
  justify-content: flex-start;
  color: #535b56;
}

.status-pill {
  display: inline-flex;
  min-width: 82px;
  justify-content: center;
  padding: 5px 9px 4px;
  border-left: 4px solid currentColor;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.status-spot-on {
  background: rgba(0, 143, 90, 0.18);
  color: var(--good);
}

.status-close {
  background: rgba(30, 115, 190, 0.16);
  color: var(--blue);
}

.status-drift {
  background: rgba(217, 133, 18, 0.2);
  color: var(--warn);
}

.status-miss,
.status-big-miss,
.status-worst-call {
  background: rgba(214, 40, 73, 0.19);
  color: var(--bad);
}

.status-cl,
.status-close {
  background: rgba(31, 111, 181, 0.16);
  color: var(--blue);
}

.status-el,
.status-spot-on {
  background: rgba(7, 136, 79, 0.18);
  color: var(--good);
}

.status-conf,
.status-drift {
  background: rgba(224, 178, 58, 0.2);
  color: #8b6610;
}

.status-rel {
  background: rgba(207, 36, 70, 0.18);
  color: var(--bad);
}

.status-mid {
  background: rgba(16, 21, 27, 0.1);
  color: #4f5852;
}

.score-summary-panel {
  grid-column: span 4;
  align-self: start;
  color: #fff;
  background: #0b1118;
  border-top: 4px solid var(--yellow);
  position: sticky;
  top: 82px;
  box-shadow: 0 18px 38px rgba(16, 21, 27, 0.24);
}

.summary-head {
  padding: 18px 22px 15px;
  background:
    linear-gradient(135deg, rgba(11, 63, 52, 0.9), rgba(16, 21, 27, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 74px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-head .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.summary-head strong {
  display: block;
  margin-top: 8px;
  font-size: 64px;
  line-height: 0.9;
  font-weight: 900;
}

.summary-head span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.summary-list {
  display: grid;
}

.summary-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-list dt {
  color: rgba(255, 255, 255, 0.58);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-list dd {
  color: #fff;
  font-weight: 800;
}

.score-movement-panel {
  margin-top: 16px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7efe0 100%);
  border-top: 3px solid var(--green-2);
  box-shadow: 0 16px 32px rgba(28, 23, 14, 0.08);
}

.movement-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.movement-metric {
  min-width: 0;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.56);
}

.movement-metric:last-child {
  border-right: 0;
}

.movement-metric span,
.movement-row .movement-time {
  display: block;
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.movement-metric strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  padding-bottom: 1px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-metric em {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-metric.is-improved strong {
  color: var(--good);
}

.movement-metric.is-slipped strong {
  color: var(--bad);
}

.movement-metric.is-steady strong,
.movement-metric.is-new strong {
  color: var(--warn);
}

.movement-list {
  display: grid;
  list-style: none;
  padding: 8px 18px 14px;
}

.movement-row {
  display: grid;
  grid-template-columns: 116px minmax(120px, 1fr) 54px minmax(130px, 0.7fr);
  gap: 12px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid rgba(12, 18, 24, 0.08);
}

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

.movement-row.is-latest {
  color: var(--ink);
}

.movement-bar {
  display: block;
  height: 8px;
  background: rgba(12, 18, 24, 0.08);
}

.movement-bar span {
  display: block;
  width: var(--score-width);
  height: 100%;
  background: linear-gradient(90deg, var(--good), var(--yellow), var(--bad));
}

.movement-row strong {
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.movement-row em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.below-match-center {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 20px;
  margin-top: 12px;
}

@media (min-width: 761px) {
  #predicted-current > .builder-compact > .module-heading,
  #predicted-current > .current-table-compact > .module-heading {
    min-height: 77px;
  }
}

.builder-compact,
.current-table-compact,
.public-user-profile,
.profile-progress,
.owned-predictions,
.private-rooms,
.public-leaderboard {
  background: var(--panel);
  border-top: 3px solid rgba(12, 18, 24, 0.78);
  box-shadow: 0 16px 32px rgba(28, 23, 14, 0.08);
}

.season-archive-select {
  display: grid;
  gap: 4px;
  min-width: 148px;
}

.season-archive-select span {
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-archive-select select {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  padding: 0 34px 0 11px;
  color: var(--ink);
  background: #fffaf0;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-user-profile,
.profile-progress,
.owned-predictions,
.private-rooms,
.public-leaderboard {
  margin-top: 18px;
  border-top: 3px solid var(--ink);
}

.public-user-profile {
  background:
    linear-gradient(135deg, rgba(16, 211, 95, 0.1), rgba(255, 250, 240, 0) 58%),
    var(--panel);
}

.public-user-bio {
  max-width: 720px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-stats.public-profile-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px;
}

.public-profile-competition-rail {
  border-top: 1px solid var(--line);
}

.community-league-switch {
  display: grid;
  grid-template-columns: minmax(176px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.community-league-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.community-league-copy strong {
  font-size: 16px;
  line-height: 1;
}

.community-league-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.community-league-switch .popular-label {
  color: var(--muted);
}

.community-league-switch .league-switch-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  flex: 1 1 auto;
  overflow: visible;
}

.community-league-switch .league-switch-link {
  min-width: 0;
  color: rgba(16, 21, 27, 0.66);
  background: #f4efe5;
  border-color: var(--line);
}

.community-league-switch .league-switch-link strong {
  color: var(--ink);
}

.community-league-switch .league-switch-link:hover,
.community-league-switch .league-switch-link.is-current {
  color: var(--ink);
  background: #fffaf0;
  border-color: rgba(239, 189, 61, 0.72);
}

.community-league-switch .league-switch-link em {
  color: var(--muted);
}

.profile-progress {
  display: grid;
  gap: 12px;
  padding: 15px 18px 16px;
  background:
    linear-gradient(135deg, rgba(16, 211, 95, 0.12), rgba(239, 189, 61, 0.08) 42%, rgba(255, 250, 240, 0) 72%),
    var(--panel);
}

.profile-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.profile-progress h2 {
  font-size: 24px;
  line-height: 1;
}

.profile-progress-level,
#profile-progress-level {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-stat {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 10px;
  background: rgba(255, 250, 240, 0.72);
}

.profile-stat strong {
  font-size: 24px;
  line-height: 1;
}

.profile-stat em {
  overflow: hidden;
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-progress.is-signed-out .profile-stat {
  border-color: var(--line);
  background: rgba(16, 21, 27, 0.04);
}

.module-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 13px 18px 10px;
  border-bottom: 1px solid var(--line);
}

.module-heading h2 {
  font-size: 20px;
  line-height: 1;
}

.module-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.module-note {
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.builder-compact.is-group-mode .module-heading > div {
  flex: 1 0 auto;
}

.builder-compact.is-group-mode .module-note {
  max-width: 225px;
}

.reset-board-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #efe8db;
}

.reset-board-button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.reset-board-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.zone-legend,
.zone-spacer {
  min-height: 35px;
  background: #ded6c8;
  border-bottom: 1px solid var(--line);
}

.zone-legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 1px;
  padding: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 10px;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.builder-list,
.current-list {
  list-style: none;
  padding: 4px 0 10px;
}

body.app-loading #league-switch-rail {
  min-height: 32px;
}

body.app-loading #builder-list,
body.app-loading #current-table-list {
  min-height: var(--tp-h, 654px);
}

.community-page #leaderboard-list {
  min-height: 176px;
}

@media (max-width: 720px) {
  body.app-loading #builder-list,
  body.app-loading #current-table-list {
    min-height: var(--tp-hm, var(--tp-h, 654px));
  }
}

.builder-list.is-group-builder,
.current-list.is-group-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
}

.group-builder-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.group-builder-head {
  padding: 8px 10px 7px;
  color: var(--ink);
  background: #ded6c8;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.builder-row,
.current-row {
  display: grid;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.group-builder-list .builder-row,
.group-builder-list .current-row {
  padding: 0 10px;
}

.builder-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.current-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.builder-list.is-group-builder .builder-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.builder-row.row-zone-cl,
.builder-row.row-zone-clq,
.current-row.row-zone-cl,
.current-row.row-zone-clq {
  background: rgba(31, 111, 181, 0.14);
}

.builder-row.row-zone-el,
.builder-row.row-zone-auto,
.current-row.row-zone-el,
.current-row.row-zone-auto {
  background: rgba(7, 136, 79, 0.14);
}

.builder-row.row-zone-conf,
.builder-row.row-zone-po,
.builder-row.row-zone-third,
.current-row.row-zone-conf,
.current-row.row-zone-po,
.current-row.row-zone-third {
  background: rgba(224, 178, 58, 0.2);
}

.builder-row.row-zone-relp,
.current-row.row-zone-relp {
  background: rgba(184, 69, 50, 0.12);
}

.builder-row.row-zone-rel,
.builder-row.row-zone-out,
.current-row.row-zone-rel,
.current-row.row-zone-out {
  background: rgba(207, 36, 70, 0.15);
}

.builder-row.row-zone-mid,
.current-row.row-zone-mid {
  background: rgba(16, 21, 27, 0.035);
}

.current-row.row-route-cl {
  background: rgba(31, 111, 181, 0.14);
}

.current-row.row-route-el {
  background: rgba(7, 136, 79, 0.14);
}

.current-row.row-route-conf {
  background: rgba(224, 178, 58, 0.2);
}

.builder-row .club-badge,
.current-row .club-badge,
.builder-row .country-flag,
.current-row .country-flag {
  width: 23px;
  height: 17px;
  font-size: 10px;
}

.builder-row .club-badge,
.current-row .club-badge {
  height: 25px;
}

.builder-row .club-name,
.current-row .club-name {
  font-size: 13px;
}

.builder-row:last-child,
.current-row:last-child {
  border-bottom: 0;
}

.row-rank {
  color: #687169;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 800;
  text-align: center;
}

.drag-handle {
  color: #8a8f89;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 800;
}

.builder-row[draggable="true"] {
  cursor: grab;
}

.builder-row.is-drag-over {
  background: rgba(31, 111, 181, 0.08);
}

.builder-list.is-locked .builder-row {
  cursor: default;
}

.builder-actions {
  display: grid;
  grid-template-columns:
    minmax(132px, 1fr)
    minmax(146px, 1fr)
    minmax(320px, 2.1fr);
  align-items: center;
  gap: 6px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
  background: #efe8db;
}

.builder-actions button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 0;
  padding: 0 6px;
  color: #fff;
  background: var(--ink);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.builder-actions .scorecard-actions {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: minmax(78px, 0.95fr) minmax(112px, 1.15fr) minmax(78px, 0.95fr);
  gap: 6px;
}

.builder-actions .action-export {
  color: #111;
  background: var(--yellow);
}

.builder-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.builder-actions span {
  grid-column: 1 / -1;
  margin-left: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.builder-actions span a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(12, 18, 24, 0.35);
  text-underline-offset: 3px;
}

.builder-actions span a:hover {
  color: var(--green-2);
  text-decoration-color: currentColor;
}

.builder-actions span:empty {
  display: none;
}

.current-row .row-points {
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.owned-predictions-list,
.private-rooms-list,
.leaderboard-list {
  list-style: none;
  padding: 5px 12px 12px;
}

.private-room-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 0.8fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 10px 12px;
  background: #efe8db;
  border-bottom: 1px solid var(--line);
}

.private-room-actions label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.private-room-actions span {
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.private-room-actions input {
  min-height: 32px;
  width: 100%;
  border: 1px solid var(--line-strong);
  padding: 0 10px;
  color: var(--ink);
  background: #fffaf0;
  font: inherit;
  font-weight: 800;
}

.private-room-actions button {
  min-height: 32px;
  border: 0;
  padding: 0 12px;
  color: #fff;
  background: var(--ink);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.private-room-actions .room-secondary {
  color: var(--ink);
  background: rgba(16, 21, 27, 0.1);
}

.private-room-actions button:disabled,
.private-room-actions input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.owned-prediction-row,
.private-room-row,
.owned-prediction-empty,
.private-room-empty,
.leaderboard-row,
.leaderboard-empty {
  display: grid;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}

.owned-prediction-row {
  grid-template-columns: minmax(0, 1.2fr) 72px minmax(150px, 0.8fr) auto auto;
  gap: 12px;
  padding: 6px 8px 6px 12px;
}

.private-room-row {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.45fr) auto auto;
  gap: 10px;
  padding: 6px 8px 6px 12px;
}

.owned-prediction-row.is-editing {
  background: rgba(7, 136, 79, 0.08);
}

.private-room-row.is-selected {
  background: rgba(7, 136, 79, 0.08);
}

.leaderboard-row {
  grid-template-columns: 54px minmax(0, 1fr) 72px;
}

.leaderboard-row.is-current {
  background: rgba(7, 136, 79, 0.08);
}

.leaderboard-rank,
.owned-prediction-score strong,
.leaderboard-score {
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-weight: 800;
  text-align: center;
}

.leaderboard-rank {
  color: var(--green-2);
  font-size: 20px;
}

.leaderboard-person {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.owned-prediction-main,
.private-room-main,
.private-room-code,
.owned-prediction-meta,
.owned-prediction-score {
  display: grid;
  min-width: 0;
}

.owned-prediction-main strong,
.private-room-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-prediction-main em,
.private-room-main em,
.private-room-code em,
.owned-prediction-meta em,
.owned-prediction-score em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.private-room-code strong {
  overflow: hidden;
  color: var(--green-2);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.owned-prediction-score {
  justify-items: center;
}

.owned-prediction-score strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.owned-prediction-meta a {
  overflow: hidden;
  color: var(--green-2);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.owned-edit-button,
.owned-share-button {
  min-height: 30px;
  border: 0;
  padding: 0 13px;
  color: #fff;
  background: var(--ink);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.owned-share-button {
  color: var(--ink);
  background: var(--yellow);
}

.private-room-button {
  min-height: 30px;
  border: 0;
  padding: 0 12px;
  color: #fff;
  background: var(--ink);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.private-room-button.is-copy {
  color: var(--ink);
  background: var(--yellow);
}

.private-room-close {
  color: var(--ink);
  background: rgba(16, 21, 27, 0.12);
}

.private-room-button.is-added,
.private-room-button:disabled {
  cursor: default;
  color: var(--ink);
  background: rgba(16, 21, 27, 0.12);
}

.private-room-row.is-selected .private-room-button[data-private-room-id] {
  color: var(--ink);
  background: rgba(16, 21, 27, 0.12);
}

.room-competition-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: #efe8db;
  border-bottom: 1px solid var(--line);
}

.room-competition-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--muted);
  background: #f7f3ea;
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.room-competition-link:hover,
.room-competition-link.is-current {
  color: var(--ink);
  background: #fffaf0;
  border-color: rgba(239, 189, 61, 0.78);
}

.room-member-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 14px 18px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.room-member-heading h3 {
  font-size: 20px;
  line-height: 1;
}

.room-prediction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 0;
}

.room-prediction-card {
  min-width: 0;
  background: #fbf8f0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.room-prediction-card:nth-child(3n) {
  border-right: 0;
}

.room-prediction-card.is-grouped {
  grid-column: 1 / -1;
  border-right: 0;
}

.room-prediction-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.room-prediction-card-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-prediction-card-head span {
  flex: none;
  color: var(--ink);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.owned-prediction-row.is-editing .owned-edit-button {
  color: var(--ink);
  background: var(--yellow);
}

.leaderboard-person strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-person a {
  flex: none;
  color: var(--muted);
  font-family: "Roboto Condensed", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.leaderboard-score {
  color: var(--ink);
  font-size: 24px;
}

.owned-prediction-empty,
.private-room-empty,
.leaderboard-empty {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .top-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 16px;
  }

  .primary-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .primary-nav a {
    flex: none;
    padding: 4px 0 8px;
  }

  .primary-nav a.is-active::after {
    bottom: 2px;
  }

  .nav-meta {
    justify-content: space-between;
  }

  .auth-panel {
    position: static;
  }

  .auth-panel-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100% - 32px, 760px);
  }

  .auth-panel-inner.is-signed-in {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 10px;
  }

  .auth-heading,
  .auth-form,
  .auth-status {
    grid-column: 1 / -1;
  }

  .auth-panel-inner.is-signed-in .auth-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .auth-panel-inner.is-signed-in .auth-form.is-account-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .auth-panel-inner.is-signed-in .auth-close {
    grid-column: 3;
    grid-row: 1;
  }

  .auth-panel-inner.is-signed-in .profile-form {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 320px) auto auto;
  }

  .auth-panel-inner.is-signed-in .auth-status {
    grid-column: 1 / -1;
  }

  .auth-status {
    text-align: left;
  }

  .auth-close {
    grid-column: 2;
    grid-row: 1;
  }

  .site-shell {
    width: min(100% - 20px, 760px);
    padding-top: 12px;
  }

  .league-masthead {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 15px 16px;
  }

  .league-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .league-copy h1 {
    font-size: 2.2rem;
  }

  .match-center-layout,
  .below-match-center {
    grid-template-columns: 1fr;
  }

  .below-match-center.how-example-grid {
    grid-template-columns: 1fr;
  }

  .how-summary-grid,
  .creator-video-grid {
    grid-template-columns: 1fr;
  }

  .how-summary-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .creator-video-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .creator-video-card:last-child {
    border-bottom: 0;
  }

  .builder-list.is-group-builder,
  .current-list.is-group-current {
    grid-template-columns: 1fr;
  }

  .scoreboard-main,
  .score-summary-panel {
    grid-column: auto;
  }

  .score-summary-panel {
    order: 2;
    position: static;
    top: auto;
  }

  .scoreboard-main {
    order: 1;
  }

  .scoreboard-heading {
    padding: 16px;
  }

  .scoreboard-heading h2 {
    max-width: 18ch;
    font-size: 2rem;
  }

  .score-total-inline strong {
    font-size: 40px;
  }

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

  .movement-metric:nth-child(2n) {
    border-right: 0;
  }

  .movement-row {
    grid-template-columns: 104px minmax(90px, 1fr) 46px;
  }

  .movement-row em {
    grid-column: 2 / -1;
    padding-bottom: 8px;
  }

  .owned-prediction-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .private-room-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .private-room-actions .room-secondary {
    grid-column: 1 / -1;
  }

  .private-room-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .private-room-code {
    grid-column: 1;
  }

  .owned-prediction-meta {
    grid-column: 1;
  }

  .owned-prediction-score {
    grid-column: 2;
    grid-row: 1;
  }

  .owned-share-button {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .owned-edit-button {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, #10151b 0 96px, transparent 96px),
      var(--page);
  }

  .top-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

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

  .brand-word {
    font-size: 20px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 14px;
    max-width: 100%;
  }

  .primary-nav a {
    font-size: 11px;
  }

  .nav-meta {
    grid-column: 2;
    grid-row: 1;
  }

  .signin-link {
    padding: 7px 10px;
    font-size: 10px;
  }

  .nav-social-link {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .auth-panel-inner {
    width: min(100% - 24px, 760px);
    gap: 8px;
    padding: 10px 0;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 18px 0 20px;
  }

  .site-footer-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .auth-panel-inner.is-signed-in {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .auth-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
    align-items: end;
  }

  .auth-form.is-account-actions {
    display: flex;
  }

  .auth-panel-inner.is-signed-in .profile-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .auth-panel-inner.is-signed-in .profile-form label:not(.profile-checkbox) {
    grid-column: 1 / -1;
  }

  .auth-form label {
    min-width: 0;
  }

  .auth-button {
    padding-inline: 8px;
  }

  .season-indicator {
    display: none;
  }

  .site-shell {
    width: min(100% - 16px, 760px);
    padding-top: 10px;
  }

  .league-masthead {
    gap: 12px;
    padding: 12px;
  }

  .league-mark {
    width: 48px;
    height: 48px;
    font-size: 15px;
  }

  .league-copy h1 {
    font-size: 1.9rem;
  }

  .how-page .league-copy h1 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .league-masthead .season-rule {
    font-size: 11px;
  }

  .league-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .league-status-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px 10px;
    padding: 7px 12px;
  }

  .status-summary {
    flex: 1 1 100%;
  }

  .status-cutoff {
    display: none;
  }

  .league-actions .control-select {
    min-width: 0;
  }

  .control-select select,
  .season-select select {
    width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 32px;
    font-size: 14px;
  }

  .control-select::after {
    right: 10px;
  }

  .source-badge,
  .how-works-cta,
  .build-cta {
    justify-content: center;
    min-width: 0;
  }

  .league-switch-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 100%;
    margin-top: 1px;
    overflow: visible;
  }

  .league-switch-link {
    width: 100%;
    min-width: 0;
    padding: 5px 6px 7px;
  }

  .league-switch-link strong,
  .league-switch-link em {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .league-switch-link strong {
    font-size: 9px;
  }

  .league-switch-link em {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .community-league-switch {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0 12px;
  }

  .community-league-switch .league-switch-rail {
    width: 100%;
  }

  .profile-progress {
    padding: 13px 12px 14px;
  }

  .profile-progress-head {
    flex-direction: column;
    gap: 9px;
  }

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

  .match-center-layout {
    gap: 10px;
    margin-top: 12px;
  }

  .score-summary-panel {
    order: 2;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .scoreboard-main {
    order: 1;
  }

  .module-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .module-note {
    max-width: none;
    text-align: left;
  }

  .builder-row {
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
  }

  .how-page .builder-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .builder-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .builder-actions .scorecard-actions {
    display: contents;
  }

  .builder-actions button {
    min-height: 38px;
    padding-inline: 8px;
    line-height: 1.05;
    white-space: normal;
  }

  .zone-legend {
    min-height: 44px;
  }

  .legend-item {
    padding-inline: 5px;
    font-size: 10px;
    letter-spacing: 0.035em;
    line-height: 1;
    white-space: normal;
  }

  .private-room-actions {
    grid-template-columns: 1fr;
  }

  .private-room-row {
    grid-template-columns: minmax(0, 1fr) minmax(80px, auto);
  }

  .private-room-code {
    grid-column: 1 / -1;
  }

  .private-room-button {
    width: 100%;
  }

  .private-room-button[data-private-room-id] {
    grid-column: 1;
  }

  .private-room-button.is-copy {
    grid-column: 1 / -1;
  }

  .room-prediction-grid {
    grid-template-columns: 1fr;
  }

  .room-prediction-card,
  .room-prediction-card:nth-child(3n) {
    border-right: 0;
  }

  .room-group-prediction-shell {
    grid-template-columns: 1fr;
  }

  .room-group-prediction-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .room-group-prediction-shell .creator-score-card {
    border-top: 2px solid var(--yellow);
    border-left: 0;
  }

  .builder-row .change-pill {
    display: none;
  }

  .how-summary-main {
    padding: 16px;
  }

  .how-summary-main h2 {
    font-size: 24px;
  }

  .how-summary-stats div {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: 0;
    padding: 10px 14px;
  }

  .scoreboard-heading {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .scoreboard-heading h2 {
    max-width: none;
    font-size: 1.55rem;
    line-height: 1;
  }

  .scoreboard-heading p:not(.eyebrow) {
    font-size: 13px;
  }

  .score-total-inline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    text-align: left;
  }

  .score-principle-row {
    display: none;
  }

  .table-controls {
    padding-inline: 10px;
  }

  .table-controls button {
    flex: none;
    padding-inline: 11px;
  }

  .score-table-wrap {
    overflow-x: visible;
    padding: 8px 10px 12px;
  }

  .score-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    font-size: 12px;
  }

  .score-table thead {
    display: none;
  }

  .score-table tbody {
    display: grid;
    gap: 6px;
  }

  .score-table tr.score-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 5px 8px;
    align-items: center;
    padding: 7px 8px;
    border-left: 3px solid rgba(16, 21, 27, 0.18);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
  }

  .score-row.row-spot-on {
    border-left-color: var(--good);
  }

  .score-row.row-close {
    border-left-color: var(--blue);
  }

  .score-row.row-drift {
    border-left-color: var(--warn);
  }

  .score-row.row-miss,
  .score-row.row-big-miss,
  .score-row.row-worst-call {
    border-left-color: var(--bad);
  }

  .score-table th,
  .score-table td {
    width: auto !important;
    border-bottom: 0;
    background: transparent !important;
    white-space: normal;
  }

  .score-table td {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .score-table td:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-content: center;
    min-height: 38px;
    background: #ede6d8 !important;
    box-shadow: none !important;
    font-family: "Roboto Condensed", Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
  }

  .score-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .score-table td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
  }

  .score-table td:nth-child(3)::before {
    content: "Now";
    color: var(--muted);
    font-family: "Roboto Condensed", Inter, Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .score-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    min-width: 54px;
    font-size: 13px;
  }

  .score-table td:nth-child(4)::before {
    content: "Diff";
    margin-right: 5px;
    color: var(--muted);
    font-family: "Roboto Condensed", Inter, Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .score-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-left: 70px;
  }

  .score-table td:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .score-table .club-cell {
    width: 100%;
  }

  .score-table .club-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .impact-meter {
    grid-template-columns: 30px 14px;
    gap: 4px;
    min-width: 48px;
  }

  .impact-meter span {
    height: 5px;
  }

  .status-pill {
    min-width: 58px;
    padding: 4px 6px 3px;
    font-size: 10px;
  }

  .summary-head strong {
    font-size: 46px;
  }

  .summary-head {
    padding: 14px;
  }

  .summary-head span {
    font-size: 12px;
  }

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

  .summary-list div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 10px;
  }

  .summary-list .summary-item-overrated,
  .summary-list .summary-item-underrated,
  .summary-list .summary-item-source {
    display: none;
  }

  .summary-list dt {
    font-size: 9px;
  }

  .summary-list dd {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .score-movement-panel {
    margin-top: 10px;
  }

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

  .movement-metric {
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .movement-metric strong {
    font-size: 20px;
  }

  .movement-list {
    padding: 6px 14px 12px;
  }

  .movement-row {
    grid-template-columns: 86px minmax(70px, 1fr) 38px;
    gap: 8px;
    min-height: 32px;
  }

  .movement-row .movement-time {
    font-size: 9px;
  }

  .movement-row strong {
    font-size: 17px;
  }

  .movement-row em {
    font-size: 11px;
  }
}
