:root {
  color-scheme: light;
  --navy: #0a3765;
  --navy-dark: #062846;
  --blue: #1769aa;
  --blue-soft: #e9f3fb;
  --red: #c8202f;
  --ink: #162536;
  --muted: #5f6f80;
  --line: #d8e0e8;
  --surface: #ffffff;
  --background: #f2f5f8;
  --success: #18763b;
  --success-soft: #e8f7ee;
  --danger: #a51d2d;
  --danger-soft: #fff0f2;
  --shadow: 0 8px 24px rgba(16, 39, 64, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.team-logo-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 105, 170, 0.09), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(200, 32, 47, 0.07), transparent 30%),
    var(--background);
}

.team-logo-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  align-items: center;
  width: 116%;
  min-height: 116%;
  margin: -8%;
  gap: clamp(28px, 4vw, 62px);
  transform: rotate(-5deg) scale(1.04);
}

.team-logo-grid img {
  width: clamp(54px, 6.5vw, 88px);
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  opacity: 0.11;
  filter: grayscale(0.4) saturate(0.7);
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--navy);
}

.hidden {
  display: none !important;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 190px;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  text-align: left;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.site-header p {
  margin: 10px 0 0;
  color: #d7e7f5;
  font-size: 1.05rem;
}

.header-nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}

.header-nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.header-nav-button + .header-nav-button {
  margin-left: 8px;
}

.header-mark {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.compact-header {
  min-height: 160px;
}

.page-shell {
  width: min(960px, calc(100% - 32px));
  margin: -28px auto 60px;
  position: relative;
}

.narrow-shell {
  width: min(680px, calc(100% - 32px));
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 30px;
}

.status-panel h2,
.status-panel p {
  margin: 0;
}

.status-panel p {
  margin-top: 4px;
  color: var(--muted);
}

.spinner {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 4px solid #dbe6ef;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 900;
}

.error-panel {
  border-color: #f0c8ce;
}

.error-panel .status-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.access-panel {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 32px;
}

.access-panel h2,
.access-panel > p {
  margin: 0;
}

.access-panel > p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
}

.access-panel form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.access-panel .form-message {
  width: 100%;
  margin: 4px 0 0;
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.intro-panel h2,
.section-heading h2,
.host-panel h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.file-name {
  margin: 6px 0 0;
  color: var(--muted);
}

.progress-card {
  min-width: 145px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--blue-soft);
  text-align: center;
}

.progress-card strong,
.progress-card span {
  display: block;
}

.progress-card strong {
  color: var(--navy);
  font-size: 1.3rem;
}

.progress-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.player-panel {
  margin-top: 18px;
  padding: 24px 30px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 750;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #aebdcc;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.25);
  outline-offset: 2px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 4px 14px;
}

.section-heading > p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.games-list {
  display: grid;
  gap: 12px;
}

.game-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 130px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 3px 12px rgba(16, 39, 64, 0.05);
}

.game-number {
  display: grid;
  place-items: center;
  padding: 18px 10px;
  background: var(--navy);
  color: white;
  text-align: center;
}

.game-number strong,
.game-number span {
  display: block;
}

.game-number strong {
  font-size: 1.25rem;
}

.game-number span {
  margin-top: 2px;
  color: #cfe0ef;
  font-size: 0.67rem;
  line-height: 1.2;
}

.team-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.team-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 66px;
  padding: 10px 14px;
  border: 2px solid #c9d4df;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

.team-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.team-button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.team-button.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.rank-control {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  border-left: 1px solid var(--line);
  background: #f8fafc;
}

.rank-control label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.rank-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #aebdcc;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  text-align: center;
  font-weight: 800;
}

.tiebreaker-panel {
  display: grid;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 30px;
}

.tiebreaker-panel label {
  margin: 0;
  font-size: 1.08rem;
}

.tiebreaker-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tiebreaker-panel input {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.submit-section {
  padding: 28px 0 0;
  text-align: center;
}

.primary-button {
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(10, 55, 101, 0.18);
}

.primary-button:hover {
  background: var(--navy-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
}

.secondary-button:hover {
  background: var(--blue-soft);
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.submit-button {
  width: min(100%, 430px);
}

.privacy-note,
.field-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-message {
  margin: 0 auto 14px;
  padding: 11px 14px;
  border-radius: 9px;
  font-weight: 650;
}

.error-message {
  max-width: 650px;
  background: var(--danger-soft);
  color: var(--danger);
}

.success-message {
  background: var(--success-soft);
  color: var(--success);
}

.success-panel {
  padding: 52px 30px;
  text-align: center;
}

.review-header {
  padding: 28px 30px;
}

.review-header h2,
.review-header > p {
  margin: 0;
}

.review-header > p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
}

.review-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 0;
}

.review-details > div {
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--blue-soft);
}

.review-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-details dd {
  margin: 2px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.review-email-field {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.review-email-field label span {
  color: var(--muted);
  font-weight: 650;
}

.review-email-field p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.review-games {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.review-game {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 3px 12px rgba(16, 39, 64, 0.05);
}

.review-game-number {
  align-self: stretch;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-weight: 900;
}

.review-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 800;
}

.review-team .team-logo {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.review-rank {
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  background: #f8fafc;
  text-align: center;
}

.review-rank span,
.review-rank strong {
  display: block;
}

.review-rank span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-rank strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.review-actions {
  padding-top: 24px;
  text-align: center;
}

.review-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.success-check {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 2rem;
  font-weight: 900;
}

.success-panel h2,
.success-panel p {
  margin: 0;
}

.download-button {
  display: inline-block;
  margin-top: 24px;
  text-decoration: none;
}

.success-panel p {
  margin-top: 6px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 0.84rem;
}

.host-panel {
  padding: 32px;
}

.host-main-panel {
  border-top: 6px solid var(--red);
}

.host-main-panel .host-impact-note {
  padding: 13px 15px;
  border-left: 4px solid var(--red);
  border-radius: 7px;
  background: #fff3f4;
  color: var(--ink);
}

.host-report-section {
  margin-top: 28px;
}

.host-report-heading {
  margin: 0 4px 12px;
}

.host-report-heading h2,
.host-report-heading p {
  margin: 0;
}

.host-report-heading h2 {
  font-size: 1.35rem;
}

.host-report-heading > p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.host-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.host-report-panel {
  padding: 22px;
  border-top: 4px solid var(--blue);
  box-shadow: 0 8px 24px rgba(10, 46, 77, 0.08);
}

.host-report-panel h2 {
  font-size: 1.3rem;
}

.host-report-panel > p:not(.eyebrow) {
  min-height: 42px;
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.host-report-button {
  width: 100%;
  margin-top: 8px;
}

.host-panel > p:not(.eyebrow) {
  margin: 8px 0 26px;
  color: var(--muted);
}

.host-main-panel > .host-impact-note {
  margin-bottom: 26px;
  color: var(--ink);
}

.host-panel form {
  display: grid;
  gap: 10px;
}

.host-panel label:not(:first-child) {
  margin-top: 10px;
}

.host-panel .field-help {
  margin: -4px 0 8px;
}

.host-panel .primary-button {
  margin-top: 8px;
}

.back-link {
  text-align: center;
}

.standings-shell {
  width: min(1180px, calc(100% - 32px));
}

.standings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}

.standings-toolbar h2 {
  margin: 0;
  font-size: 1.65rem;
}

.standings-actions {
  display: flex;
  gap: 10px;
}

.standings-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.standings-frame {
  display: block;
  width: 100%;
  height: min(76vh, 820px);
  min-height: 560px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.standings-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.standings-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.standing-summary-card {
  min-height: 142px;
  padding: 22px 24px;
  border-top: 5px solid var(--blue);
  background: linear-gradient(145deg, white, #f2f7fb);
}

.standing-summary-card span,
.standing-summary-card strong,
.standing-summary-card small {
  display: block;
}

.standing-summary-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.standing-summary-card strong {
  overflow: hidden;
  margin-top: 7px;
  color: var(--navy);
  font-size: 1.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standing-summary-card small {
  margin-top: 3px;
  color: var(--muted);
}

.standing-summary-card small b {
  color: var(--red);
  font-size: 1.05rem;
}

.weekly-leader-card {
  border-top-color: #d39c14;
  background: linear-gradient(145deg, #fffdf5, #fff7d9);
}

.season-leader-card {
  border-top-color: var(--red);
  background: linear-gradient(145deg, white, #fff1f2);
}

.clean-standings-panel {
  overflow: hidden;
  margin-top: 16px;
}

.standings-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
  background: var(--navy-dark);
}

.standings-tab {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d7e7f5;
  cursor: pointer;
  font-weight: 850;
}

.standings-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.standings-tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.standings-view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 18px;
}

.standings-view-heading h2,
.standings-view-heading p {
  margin: 0;
}

.standings-view-heading h2 {
  font-size: 1.45rem;
}

.standings-view-heading > p {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.clean-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.clean-standings-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

#season-standings-view .clean-standings-table {
  min-width: 1080px;
}

.clean-standings-table th,
.clean-standings-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.clean-standings-table th {
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

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

.clean-standings-table tbody tr:hover {
  background: var(--blue-soft);
}

.clean-standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.clean-standings-table .standing-name {
  min-width: 175px;
  color: var(--navy);
  font-weight: 850;
  text-align: left;
}

.standing-rank-badge {
  display: inline-grid;
  min-width: 38px;
  height: 32px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: #e7edf3;
  color: var(--navy);
  font-weight: 900;
}

.standing-score {
  color: var(--red);
  font-size: 1.08rem;
  font-weight: 900;
}

.standing-place-1 {
  background: #fff9dc !important;
}

.standing-place-1 .standing-rank-badge {
  background: #d39c14;
  color: white;
}

.standing-place-2 .standing-rank-badge {
  background: #82909c;
  color: white;
}

.standing-place-3 .standing-rank-badge {
  background: #a6683a;
  color: white;
}

.standing-movement {
  font-weight: 850;
}

.movement-up {
  color: var(--success);
}

.movement-down {
  color: var(--danger);
}

.picks-shell {
  width: min(1280px, calc(100% - 32px));
}

.picks-toolbar,
.picks-filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}

.picks-toolbar h2 {
  max-width: 780px;
  margin: 0;
  font-size: 1.55rem;
}

.picks-report-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.picks-report-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.picks-filter-panel {
  margin-top: 16px;
  background: var(--navy);
  color: white;
}

.picks-filter-panel > div:first-child strong,
.picks-filter-panel > div:first-child span {
  display: block;
}

.picks-filter-panel > div:first-child strong {
  font-size: 1.25rem;
}

.picks-filter-panel > div:first-child span {
  color: #d7e7f5;
  font-size: 0.84rem;
}

.member-filter-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-filter-control label {
  margin: 0;
  white-space: nowrap;
}

.member-filter-control select {
  min-width: 220px;
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #aebdcc;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.selection-card {
  overflow: hidden;
}

.selection-card-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
}

.selection-card-header h3 {
  margin: 0;
  font-size: 1.18rem;
}

.selection-card-header > div:nth-child(2) span {
  color: #d7e7f5;
  font-size: 0.76rem;
}

.member-rank-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.member-tie-score {
  min-width: 70px;
  text-align: center;
}

.member-tie-score span,
.member-tie-score strong {
  display: block;
}

.member-tie-score span {
  color: #d7e7f5;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.member-tie-score strong {
  font-size: 1.2rem;
}

.member-picks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.released-pick {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.released-pick-context {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.released-pick-choice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.released-pick-choice img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.released-pick-choice strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.released-confidence {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-score-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 18px 22px;
  border-left: 5px solid var(--red);
}

.live-score-bar strong,
.live-score-bar span {
  display: block;
}

.live-score-bar strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.live-score-bar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.compact-button {
  min-height: 42px;
  padding: 8px 16px;
  white-space: nowrap;
}

#score-error {
  margin-top: 14px;
}

.running-leaderboard {
  overflow: hidden;
  margin-top: 16px;
}

.tracker-section-heading,
.games-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tracker-section-heading {
  padding: 22px 26px 18px;
}

.tracker-section-heading h2,
.games-section-heading h2,
.tracker-section-heading p,
.games-section-heading p {
  margin: 0;
}

.tracker-section-heading h2,
.games-section-heading h2 {
  font-size: 1.45rem;
}

.tracker-section-heading > p,
.games-section-heading > p {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.leaderboard-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.leaderboard-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.leaderboard-table th {
  background: var(--navy);
  color: white;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.leaderboard-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.leaderboard-table .leaderboard-name {
  min-width: 190px;
  text-align: left;
  font-weight: 800;
}

.leaderboard-place,
.leaderboard-score {
  color: var(--navy);
  font-weight: 900;
}

.leaderboard-score {
  font-size: 1.12rem;
}

.leaderboard-lost {
  color: var(--danger);
  font-weight: 800;
}

.leader-place-1 {
  background: #fff9dc !important;
}

.games-section-heading {
  margin: 30px 4px 12px;
}

.game-tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tracked-game {
  overflow: hidden;
}

.tracked-game-live {
  border: 2px solid var(--red);
  box-shadow: 0 10px 30px rgba(200, 32, 47, 0.14);
}

.tracked-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--navy-dark);
  color: white;
}

.tracked-game-live .tracked-game-header {
  background: var(--red);
}

.tracked-game-header strong,
.tracked-game-header span {
  display: block;
}

.tracked-game-header span {
  color: #d7e7f5;
  font-size: 0.72rem;
}

.game-status-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white !important;
  font-size: 0.75rem !important;
  font-weight: 850;
}

.tracked-scoreboard {
  border-bottom: 1px solid var(--line);
}

.tracked-score-team {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px 16px;
}

.tracked-score-team + .tracked-score-team {
  border-top: 1px solid var(--line);
}

.tracked-score-team img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.tracked-score-team div strong,
.tracked-score-team div span {
  display: block;
}

.tracked-score-team div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracked-score-team div span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.tracked-team-score {
  min-width: 38px;
  color: var(--navy);
  font-size: 1.65rem;
  text-align: right;
}

.score-team-winner {
  background: var(--success-soft);
}

.score-team-winner .tracked-team-score::after {
  content: " ✓";
  color: var(--success);
  font-size: 0.9rem;
}

.score-team-loser {
  background: #fafbfc;
  color: #778491;
}

.tracked-picks-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-pick-column {
  min-width: 0;
  padding: 13px;
}

.team-pick-column + .team-pick-column {
  border-left: 1px solid var(--line);
}

.team-pick-column h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  font-size: 0.82rem;
}

.team-pick-column h3 img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.team-pick-list {
  display: grid;
  gap: 5px;
}

.tracked-player-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27px;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 4px 5px 4px 9px;
  border-radius: 7px;
  background: #f2f5f8;
}

.tracked-player-pick span {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracked-player-pick strong {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 0.72rem;
}

.winning-pick-column {
  background: var(--success-soft);
}

.winning-pick-column .tracked-player-pick strong {
  background: var(--success);
}

.losing-pick-column {
  background: var(--danger-soft);
}

.losing-pick-column .tracked-player-pick {
  opacity: 0.72;
}

.losing-pick-column .tracked-player-pick strong {
  background: var(--danger);
}

.no-team-picks {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}

.game-details-link {
  display: block;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.game-details-link:hover {
  background: var(--blue-soft);
}

@media (max-width: 1050px) {
  .picks-grid,
  .game-tracker-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .team-logo-grid {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    min-height: 140%;
    gap: 30px 22px;
  }

  .team-logo-grid img {
    width: clamp(48px, 16vw, 72px);
    opacity: 0.09;
  }

  .site-header {
    align-items: flex-start;
    min-height: 175px;
    padding-top: 30px;
  }

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

  .host-report-grid {
    grid-template-columns: 1fr;
  }

  .header-mark {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 0.85rem;
  }

  .intro-panel,
  .section-heading,
  .standings-toolbar,
  .picks-toolbar,
  .picks-filter-panel,
  .live-score-bar,
  .tracker-section-heading,
  .games-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .standings-view-heading > p {
    text-align: left;
  }

  .tracker-section-heading > p,
  .games-section-heading > p {
    text-align: left;
  }

  .header-nav-button + .header-nav-button {
    margin-left: 0;
  }

  .picks-report-actions,
  .member-filter-control {
    width: 100%;
  }

  .live-score-bar .compact-button {
    width: 100%;
  }

  .picks-report-actions a {
    flex: 1;
  }

  .member-filter-control select {
    width: 100%;
    min-width: 0;
  }

  .standings-actions {
    width: 100%;
  }

  .standings-actions a {
    flex: 1;
  }

  .standings-frame {
    min-height: 480px;
  }

  .section-heading > p {
    text-align: left;
  }

  .progress-card {
    width: 100%;
  }

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

  .game-number {
    grid-row: 1 / span 2;
  }

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

  .team-button {
    justify-content: flex-start;
  }

  .rank-control {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tiebreaker-panel {
    grid-template-columns: 1fr;
  }

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

  .review-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.8rem;
  }

  .page-shell {
    width: min(100% - 20px, 960px);
  }

  .intro-panel,
  .player-panel,
  .tiebreaker-panel,
  .host-panel {
    padding: 22px 18px;
  }

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

  .game-number {
    padding-inline: 4px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .review-header {
    padding: 22px 18px;
  }

  .review-buttons {
    flex-direction: column;
  }

  .standings-actions {
    flex-direction: column;
  }

  .picks-report-actions,
  .member-filter-control {
    align-items: stretch;
    flex-direction: column;
  }

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

  .tracked-picks-sides {
    grid-template-columns: 1fr;
  }

  .team-pick-column + .team-pick-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .selection-card-header {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 15px 14px;
  }

  .member-rank-badge {
    width: 40px;
    height: 40px;
  }
}
