.bowlsboet-body {
  --rank-navy-bg: #061A33;
  --rank-navy-deep: #041224;
  --rank-navy-card: #092242;
  --rank-navy-border: #173F73;
  --rank-swoosh-blue: #0476B7;
  --rank-royal-blue: #133866;
  --drakes-mint: #9FD08D;
  --drakes-lime: #DBEDD6;
  --rank-row-white: #FFFFFF;
  --rank-row-stripe: #F8F9FA;
}

.bowlsboet-body .green-wash { display: none; }
.bowlsboet-body { background: #061A33; color: #fff; }
.bowlsboet-body .top { background: #041224; border-bottom: 1px solid #173F73; }
.bowlsboet-body main { background: transparent; }
.bowlsboet-body .flash-item {
  background: #092242;
  color: #e8eef6;
  border: 1px solid #173F73;
  border-left: 4px solid #9FD08D;
}
.bowlsboet-body .flash-item.error {
  color: #fecaca;
  border-color: #f87171;
  border-left-color: #f87171;
}
.bowlsboet-body .birthday-banner {
  background: #092242;
  color: #e8eef6;
  border-color: #9FD08D;
}
.bowlsboet-body .birthday-banner p { color: #e8eef6; }

.bb-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.bb-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
}
.bb-brand a, .bb-links a { color: #C2D7EE; text-decoration: none; }
.bb-brand strong { color: #DBEDD6; }
.bb-brand .sep { color: #4A6A91; margin: 0 6px; }
.bb-links { display: flex; gap: 12px; flex-wrap: wrap; }

.banner-shell {
  background: #061A33;
  border: 1px solid #173F73;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 620px) 1fr;
  margin-bottom: 16px;
}
.banner-shell.is-plain,
.hub-shell.is-plain {
  grid-template-columns: 1fr;
}
.banner-img-wrap { padding: 8px 12px; background: #061A33; }
.banner-img-wrap.is-wpb {
  container-type: inline-size;
  container-name: bb-wpb;
  padding-bottom: 8px;
}
.banner-img-wrap .bb-banner-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.banner-img-wrap.is-wpb .bb-banner {
  min-height: clamp(160px, 32cqi, 260px);
  border-radius: 6px 6px 0 0;
}
.banner-img-wrap.is-wpb .bb-banner-bg {
  border-radius: 6px 6px 0 0;
  width: 100%;
  height: 100%;
  min-height: clamp(160px, 32cqi, 260px);
  object-fit: cover;
}

.bb-banner {
  container-type: inline-size;
  container-name: bb-banner;
  position: relative;
  display: block;
  background: #061A33;
  border-radius: 6px;
  overflow: hidden;
}
.bb-banner-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.bb-banner-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24%) minmax(0, 20%);
  align-items: center;
  column-gap: 2.2%;
  padding: 3% 3.5% 3% 4%;
  min-width: 0;
}
.bb-banner-copy {
  grid-column: 1;
  min-width: 0;
  z-index: 1;
}
.bb-banner-kicker {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 0 0 0.35em;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(10px, 2.1cqi, 15px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}
.bb-banner-jacks {
  height: 1em;
  width: 1.8em;
  max-width: 1.8em;
  max-height: 1em;
  display: block;
  flex: 0 0 auto;
  border-radius: 0;
}
.bb-banner-title {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  height: auto;
  margin: 0;
  display: block;
  min-width: 0;
  font-size: clamp(16px, 4.3cqi, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-banner-partner {
  margin: 0.4em 0 0;
  font-size: clamp(10px, 2cqi, 16px);
  font-weight: 600;
  color: #e8eef6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-banner-province {
  grid-column: 2;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 88%;
  justify-self: center;
  object-fit: contain;
  z-index: 1;
}
.bb-banner-province.is-wpb {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1.4px #fff);
}
.bb-banner-sponsor {
  grid-column: 3;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 76%;
  justify-self: end;
  object-fit: contain;
  z-index: 1;
}
.bb-banner-sponsor.is-placeholder {
  height: 76%;
  max-height: 76%;
  aspect-ratio: 1;
  max-width: 100%;
  border: 2px dashed #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(9px, 1.5cqi, 13px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}
.bb-banner-inner.is-wpb {
  padding-right: 4.8%;
  column-gap: 1.8%;
}
.bb-banner-inner.is-wpb .bb-banner-kicker {
  overflow: visible;
}
.bb-banner-inner.is-wpb .bb-banner-title,
.bb-banner-inner.is-wpb .bb-banner-partner {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.bb-banner-inner.is-wpb .bb-banner-partner {
  color: #9FD08D;
}
.bb-banner-inner.is-wpb .bb-banner-sponsor {
  justify-self: center;
  max-width: 88%;
  max-height: 72%;
}
.bb-sponsor-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  column-gap: 3%;
  row-gap: 10px;
  background: #fff;
  padding: 3% 4%;
  border-radius: 0 0 6px 6px;
}
.bb-sponsor-strip img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(48px, 14cqi, 96px);
  object-fit: contain;
  min-width: 0;
  min-height: 0;
}
@container bb-wpb (max-width: 520px) {
  .bb-sponsor-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8%;
    row-gap: 12px;
    padding: 4% 6% 5%;
  }
  .bb-sponsor-strip img {
    max-height: clamp(56px, 22cqi, 110px);
  }
}
.bb-banner .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@container bb-banner (max-width: 640px) {
  .bb-banner-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 22%) minmax(0, 18%); }
  .bb-banner-province { max-height: 70%; }
  .bb-banner-sponsor { max-height: 58%; }
  .bb-banner-title { white-space: normal; }
}
@container bb-banner (max-width: 420px) {
  .bb-banner-inner { grid-template-columns: minmax(0, 1fr); }
  .bb-banner-province,
  .bb-banner-sponsor { display: none; }
  .bb-banner-inner.is-wpb {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26%) minmax(0, 22%);
  }
  .bb-banner-inner.is-wpb .bb-banner-province,
  .bb-banner-inner.is-wpb .bb-banner-sponsor {
    display: block;
    max-height: 78%;
  }
  .bb-banner-inner.is-wpb .bb-banner-title {
    font-size: clamp(13px, 5.4cqi, 20px);
    line-height: 1.08;
  }
  .bb-banner-inner.is-wpb .bb-banner-partner {
    font-size: clamp(8px, 2.7cqi, 12px);
    line-height: 1.25;
  }
  .bb-banner-title {
    font-size: clamp(14px, 6cqi, 20px);
    line-height: 1.1;
  }
}
.banner-meta {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(19, 56, 102, 0.55) 0%, rgba(6, 26, 51, 0.95) 100%);
}
.banner-meta-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.series-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.series-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(4, 118, 183, 0.25);
  border: 1px solid #0476B7;
  color: #E2F1FF;
  text-decoration: none;
}
.series-pill.mint { background: rgba(159, 208, 141, 0.16); border-color: #9FD08D; color: #DBEDD6; }
.lock-timer {
  font-size: 12px;
  font-weight: 700;
  color: #DBEDD6;
  background: rgba(1, 53, 4, 0.55);
  border: 1px solid #9FD08D;
  padding: 4px 11px;
  border-radius: 6px;
}
.pick-status {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 99px;
  vertical-align: middle;
}
.pick-status.in {
  color: #041224;
  background: #9FD08D;
  border: 1px solid #9FD08D;
}
.pick-status.pending,
.pending-picks,
button.pick-status.pending,
a.pick-status.pending {
  color: #000000;
  background: #fbbf24;
  border: 1px solid #f59e0b;
  font-weight: 800;
}
.banner-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.banner-stat {
  background: rgba(4, 18, 36, 0.65);
  border: 1px solid rgba(4, 118, 183, 0.35);
  border-radius: 8px;
  padding: 8px 11px;
}
.banner-stat .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #8EB2D9; }
.banner-stat .val { font-size: 18px; font-weight: 800; margin-top: 2px; }
.banner-stat .sub { font-size: 11px; color: #9FD08D; }
a.banner-stat {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.banner-stat.is-action {
  border-color: #9FD08D;
  box-shadow: inset 0 0 0 1px rgba(159, 208, 141, 0.35);
}
a.banner-stat.is-action .val {
  color: #F4FFF0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.banner-stat.is-action:hover,
a.banner-stat.is-action:focus-visible {
  border-color: #c8efb8;
  background: rgba(20, 70, 40, 0.55);
}

.tb-tabs {
  display: flex;
  gap: 8px;
  background: #041224;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #173F73;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tb-tab-btn {
  color: #9CB6D4;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}
.tb-tab-btn.active { background: #0476B7; color: #fff; }
.tb-tab-btn .cnt {
  margin-left: 6px;
  background: rgba(6, 26, 51, 0.6);
  color: #DBEDD6;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
}
.tb-round-filter {
  position: relative;
}
.tb-round-filter > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tb-round-filter > summary::-webkit-details-marker { display: none; }
.tb-round-filter > summary::after {
  content: "▾";
  font-size: 11px;
  line-height: 1;
}
.tb-round-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #041224;
  border: 1px solid #173F73;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.tb-round-option {
  color: #9CB6D4;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.tb-round-option:hover,
.tb-round-option.is-selected {
  background: #0476B7;
  color: #fff;
}
.tb-round-group {
  margin: 6px 8px 2px;
  padding: 2px 4px;
  color: #FBBF24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lock-timer.is-complete {
  background: #16a34a;
  color: #fff;
  border-color: #15803d;
}
.earned-pts {
  margin: 0 0 6px;
  color: #9FD08D;
  font-size: 12px;
  font-weight: 800;
}
.round-bonus {
  margin: 10px 0 0;
}

.picks-hdr { margin-bottom: 12px; }
.entrant-switcher {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #B4CBE4;
  min-width: 220px;
}
.entrant-switcher select {
  background: #041224;
  color: #fff;
  border: 1px solid #0476B7;
  border-radius: 6px;
  padding: 6px 8px;
  font-weight: 700;
}

.picks-confirm-banner {
  background: rgba(1, 53, 4, 0.55);
  border: 1px solid #9FD08D;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.picks-confirm-banner p { margin: 0; color: #DBEDD6; font-size: 14px; line-height: 1.45; }
.picks-confirm-banner.amending {
  background: rgba(4, 118, 183, 0.18);
  border-color: #0476B7;
  color: #E2F1FF;
}
.picks-confirm-actions { display: flex; gap: 8px; }
.btn-amend, .btn-cancel-amend {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #9FD08D;
  background: #9FD08D;
  color: #041224;
  cursor: pointer;
}
.btn-cancel-amend {
  background: transparent;
  color: #DBEDD6;
  border-color: #4A6A91;
  text-align: center;
}

.dh-banner {
  container-type: inline-size;
  container-name: dh-banner;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 0;
  box-sizing: border-box;
}
.dh-banner.is-prompt {
  background: #dbeafe;
  border: 1px solid #3b82f6;
  color: #1e3a8a;
}
.dh-banner.is-saved {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #14532d;
}
.dh-banner.is-done {
  background: #16a34a;
  border: 1px solid #15803d;
  color: #fff;
}
.dh-cal {
  flex: 0 0 auto;
  width: 34px;
  height: 38px;
  border-radius: 6px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 15px;
  line-height: 38px;
  text-align: center;
  box-shadow: inset 0 9px 0 #dc2626;
  padding-top: 6px;
  box-sizing: border-box;
}
.dh-copy {
  flex: 1 1 12rem;
  min-width: 0;
  container-type: inline-size;
}
.dh-headline {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(8px, 4cqi, 15px);
  max-width: 100%;
}
.dh-headline-mobile { display: none; }
.dh-signin {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  white-space: nowrap;
}
.dh-progress {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: clamp(10px, 2.8cqi, 13px);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
}
.dh-banner.is-done .dh-progress {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.dh-next {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 800;
  font-size: clamp(12px, 3cqi, 14px);
  padding: 8px 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 760px) {
  .dh-headline-desktop { display: none; }
  .dh-headline-mobile { display: block; }
  .dh-banner {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
  }
  .dh-cal { grid-column: 1; grid-row: 1; }
  .dh-copy { grid-column: 2; grid-row: 1; }
  .dh-progress { grid-column: 1 / -1; grid-row: 2; justify-self: end; margin-left: 0; }
  .dh-next { grid-column: 1 / -1; grid-row: 3; width: 100%; }
  .dh-headline {
    font-size: clamp(8px, 2.4vw, 12px);
  }
}
.locked-badge {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #DBEDD6;
  background: rgba(159, 208, 141, 0.14);
  border: 1px solid #9FD08D;
  border-radius: 6px;
  padding: 5px 8px;
}
.fixture-card.is-locked .split-select { opacity: 0.55; }
.picks-form.is-locked-in .picks-actions { display: none; }
.picks-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.fixtures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fixture-card {
  background: #092242;
  border: 1px solid #173F73;
  border-radius: 10px;
  padding: 12px 13px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fx-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8EB2D9;
  font-weight: 700;
  border-bottom: 1px solid rgba(23, 63, 115, 0.6);
  padding-bottom: 6px;
}
.fx-meta .view-card { color: #DBEDD6; text-decoration: none; }
.fx-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; flex: 1; }
.fx-team { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-team.right { text-align: right; }
.fx-team-tag { font-size: 10px; font-weight: 800; color: #0476B7; text-transform: uppercase; }
.fx-team.right .fx-team-tag { color: #9FD08D; }
.fx-team-name { font-size: 14px; font-weight: 800; line-height: 1.2; }
.fx-vs {
  font-size: 10px;
  font-weight: 800;
  color: #6788B0;
  background: #041224;
  padding: 3px 6px;
  border-radius: 99px;
  border: 1px solid #173F73;
  align-self: center;
}
.split-select {
  width: 100%;
  background: #041224;
  color: #fff;
  border: 1px solid #0476B7;
  border-radius: 6px;
  padding: 6px 8px;
  font-weight: 700;
}
.split-locked-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2em;
  background: #041224;
  color: #DBEDD6;
  border: 1px solid #173F73;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.btn-submit-picks {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #0476B7, #0590DE);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.btn-submit-picks.ghost {
  background: transparent;
  border: 1px solid #9FD08D;
  color: #DBEDD6;
}
.bb-signin-banner {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #9FD08D;
  background: rgba(1, 53, 4, 0.45);
}
.bb-signin-banner p { margin: 0 0 12px; color: #E8F6E3; }
.bb-signin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bb-signin-actions .btn-submit-picks {
  width: auto;
  margin-top: 0;
  flex: 1 1 180px;
}
.picks-actions .btn-submit-picks { width: auto; margin-top: 0; }
.bb-locked, .bb-signin { margin-top: 14px; color: #C2D7EE; }

.league-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.league-card header, .section-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #133866 0%, #092242 100%);
  border: 1px solid #173F73;
  border-left: 4px solid #0476B7;
  padding: 9px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.league-card header h2, .section-hdr h3 { font-size: 14px; margin: 0; }
.league-card header a, .section-hdr span { color: #B4CBE4; font-size: 12px; }

.rank-sheet-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rank-sheet-table thead th {
  background: #061A33;
  color: #fff;
  text-align: left;
  padding: 8px 8px;
  border-bottom: 2px solid #0476B7;
}
.rank-sheet-table tbody tr:nth-child(odd) { background: #FFFFFF; color: #061A33; }
.rank-sheet-table tbody tr:nth-child(even) { background: #F8F9FA; color: #061A33; }
.rank-sheet-table tbody td { padding: 6px 8px; border-bottom: 1px solid #DCE3EC; }
.rank-sheet-table tbody tr.highlight-user { background: #DDF0FF; font-weight: 700; }
.rank-sheet-table tbody tr.highlight-leader { background: #E7F6E3; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.table-wrap.wide { margin-top: 8px; }
.predictor-name { color: inherit; font-weight: 800; text-decoration: none; }
.predictor-name:hover { text-decoration: underline; }
.club-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #133866;
  background: #DBEDD6;
  border-radius: 99px;
  padding: 1px 7px;
}
.back-row { margin: 0 0 16px; }
.btn-back-rankings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid #9FD08D;
  background: #9FD08D;
  color: #041224;
}
.entrant-wrap .back-row:last-child { margin: 18px 0 0; }
.round-block { margin-bottom: 18px; }
.hint a { color: #DBEDD6; }

.district-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #041224;
  background: #93c5fd;
  border-radius: 99px;
  padding: 1px 7px;
}

.tourney-selector {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #173F73;
  border-radius: 14px;
  background: #041224;
}
.tourney-selector-hdr h2 { margin: 0 0 4px; font-size: 18px; }
.tourney-selector-hdr p { margin: 0 0 12px; color: #B4CBE4; font-size: 13px; }
.tourney-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tourney-card {
  background: #092242;
  border: 1px solid #173F73;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tourney-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.tourney-sponsor-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}
.tourney-sponsor-logo.is-empty { display: none; }
.tourney-card.is-selected { border-color: #9FD08D; box-shadow: inset 0 0 0 1px rgba(159, 208, 141, 0.35); }
.tourney-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 11px;
  font-weight: 800;
  color: #9FD08D;
  text-transform: uppercase;
}
.tourney-district-mark {
  height: 1em;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.tourney-card h3 { margin: 0; font-size: 16px; }
.tourney-desc { margin: 0; color: #C2D7EE; font-size: 12px; flex: 1; }
.tourney-card .btn-submit-picks { width: auto; margin-top: 4px; }
.tourney-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 0 2px;
  border-top: 1px solid rgba(23, 63, 115, 0.7);
}
.tourney-meta .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8EB2D9;
}
.tourney-meta .val { font-size: 14px; font-weight: 800; color: #fff; }
.tourney-meta .sub { font-size: 11px; color: #B4CBE4; }
.change-tourney {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid #38bdf8;
  background: rgba(14, 165, 233, 0.16);
  color: #e0f2fe !important;
  font-weight: 800;
  font-size: 12px;
}
.hub-shell {
  background: #061A33;
  border: 1px solid #173F73;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 620px) 1fr;
  margin-bottom: 16px;
}
.hub-copy { padding: 18px 20px; }
.hub-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  color: #7dd3fc;
}
.hub-copy p { margin: 0; color: #C2D7EE; font-size: 14px; line-height: 1.45; }

.spread-unlocked { color: #DBEDD6; font-size: 10px; font-weight: 800; }
.prediction-spread {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 63, 115, 0.6);
  overflow: hidden;
  min-width: 0;
}
.prediction-spread header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.prediction-spread h4 { margin: 0; font-size: 12px; line-height: 1.3; }
.prediction-spread header span { color: #8EB2D9; font-size: 11px; white-space: nowrap; }
.tendency-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: #041224;
  margin-bottom: 8px;
}
.tend-a { background: #0476B7; color: transparent; }
.tend-d { background: #9FD08D; color: transparent; }
.tend-b { background: #f59e0b; color: transparent; }

.spread-chart {
  container-type: inline-size;
  container-name: spread-chart;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.spread-cols {
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
  height: 186px;
  padding-top: 54px;
  box-sizing: border-box;
  min-width: 0;
}
.spread-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.spread-col-flags {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
  width: max-content;
  max-width: min(28cqi, 9.2rem);
  pointer-events: none;
}
.spread-col:first-child .spread-col-flags {
  left: 0;
  transform: none;
  align-items: flex-start;
}
.spread-col:last-child .spread-col-flags {
  left: auto;
  right: 0;
  transform: none;
  align-items: flex-end;
}
.spread-flag,
.spread-badge {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-weight: 800;
  line-height: 1.15;
  border-radius: 99px;
  padding: 1px 6px;
}
.spread-flag {
  font-size: clamp(5px, 2.4cqi, 9px);
  max-width: min(100%, 28cqi, 9.2rem);
}
.spread-flag.result,
.spread-badge.official {
  background: #166534;
  color: #dcfce7;
  box-shadow: 0 0 0 1px #22c55e;
}
.spread-flag.pick,
.spread-badge.yours {
  background: #041224;
  color: #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.spread-flag.crowd,
.spread-badge.crowd {
  background: #7c2d12;
  color: #ffedd5;
  box-shadow: 0 0 0 1px #fb923c;
}
.spread-col-count {
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  min-height: 8px;
  color: #C2D7EE;
  margin-bottom: 2px;
}
.spread-col-track {
  position: relative;
  width: 100%;
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 18, 36, 0.55);
  border-radius: 3px 3px 0 0;
}
.spread-col-bar {
  display: block;
  width: 78%;
  min-height: 0;
  border-radius: 2px 2px 0 0;
}
.spread-col.side-a .spread-col-bar,
.spread-row.side-a .spread-bar i { background-color: #0476B7; }
.spread-col.side-draw .spread-col-bar,
.spread-row.side-draw .spread-bar i { background-color: #94a3b8; }
.spread-col.side-b .spread-col-bar,
.spread-row.side-b .spread-bar i { background-color: #f59e0b; }
.spread-col.is-yours .spread-col-bar,
.spread-row.is-yours .spread-bar i {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.38) 0 3px,
    transparent 3px 6px
  );
}
.spread-col.is-official .spread-col-bar {
  box-shadow: 0 0 0 2px #22c55e;
}
.spread-col.is-crowd .spread-col-track::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%) rotate(45deg);
  background: #fb923c;
  box-shadow: 0 0 0 1px #7c2d12;
}
.spread-axis {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #8EB2D9;
}
.spread-axis span { white-space: nowrap; }

.spread-rows { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: 5px; }
.spread-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.9fr) minmax(0, auto) minmax(40px, 1fr) auto;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  min-width: 0;
}
.spread-row.is-official {
  outline: 1px solid #22c55e;
  outline-offset: 1px;
  border-radius: 6px;
  padding: 2px 4px;
}
.spread-row.is-crowd { box-shadow: inset 0 -2px 0 #fb923c; }
.spread-row.is-yours { color: #DBEDD6; font-weight: 800; }
.spread-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spread-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.spread-badge {
  font-size: clamp(8px, 2.5vw, 11px);
  max-width: 100%;
  flex: 0 1 auto;
}
.spread-bar { height: 6px; background: #041224; border-radius: 99px; overflow: hidden; min-width: 0; }
.spread-bar i { display: block; height: 100%; background: #0476B7; }
.spread-count { color: #8EB2D9; white-space: nowrap; }
.spread-empty { color: #8EB2D9; font-size: 11px; }
.spread-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.35em;
  row-gap: 2px;
  margin: 8px 0 0;
  min-width: 0;
  font-size: clamp(10px, 2.85vw, 12px);
  line-height: 1.35;
  color: #C2D7EE;
}
.spread-compare-piece {
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.spread-compare-piece.beat {
  color: #bbf7d0;
  font-weight: 800;
}
.spread-compare-dot { color: #8EB2D9; flex: 0 0 auto; }
.spread-summary {
  margin: 6px 0 0;
  font-size: clamp(10px, 2.7vw, 11px);
  line-height: 1.4;
  color: #C2D7EE;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .spread-chart { display: none; }
  .spread-rows { display: flex; }
  .spread-row {
    grid-template-columns: minmax(4.2rem, auto) minmax(0, 1fr) minmax(36px, 0.9fr) auto;
  }
  .spread-badge {
    font-size: clamp(7px, 2.6vw, 10px);
    padding: 1px 5px;
  }
  .spread-compare {
    font-size: clamp(9px, 2.9vw, 11px);
  }
}

.rank-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
  padding: 12px;
  background: #041224;
  border: 1px solid #173F73;
  border-radius: 10px;
}
.rank-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #B4CBE4; min-width: 180px; flex: 1; }
.rank-filters select {
  background: #061A33;
  color: #fff;
  border: 1px solid #0476B7;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 700;
}
.btn-export-top20 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fbbf24;
  color: #000000;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #f59e0b;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.filter-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  background: #041224;
  border: 1px solid #173F73;
  color: #C2D7EE;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.filter-pill.is-on { background: #0476B7; border-color: #0476B7; color: #fff; }

@media (max-width: 980px) {
  .tourney-cards { grid-template-columns: 1fr; }
}

.admin-wrap .hint { color: #C2D7EE; }
.admin-ready-warn {
  background: #3b1d12;
  border: 1px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.admin-ready-warn .hint { color: #fde68a; margin: 0 0 8px; }
.admin-ready-warn ul {
  margin: 0;
  padding-left: 18px;
  color: #fecaca;
  font-size: 13px;
}
.admin-ready-warn li { margin: 0 0 6px; }
.admin-ready-warn li:last-child { margin-bottom: 0; }
.map-row {
  display: grid;
  grid-template-columns: 1fr 160px auto;
  gap: 12px;
  align-items: end;
  background: #092242;
  border: 1px solid #173F73;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.map-row span { display: block; color: #9CB6D4; font-size: 12px; }
.map-row .input { width: 100%; }

@media (max-width: 980px) {
  .banner-shell, .hub-shell, .league-wrap, .fixtures-grid, .banner-stats-grid { grid-template-columns: 1fr; }
  .fixtures-grid { grid-template-columns: 1fr; }
}
@media (min-width: 700px) and (max-width: 980px) {
  .fixtures-grid { grid-template-columns: 1fr 1fr; }
}

.md-wrap {
  background: #f4f7fb;
  color: #061A33;
  border-radius: 12px;
  padding: 16px 18px 22px;
  margin-bottom: 20px;
}
.md-hdr {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 16px;
}
.md-hdr-copy h3 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #061A33;
}
.md-hdr .hint { margin: 0; }
.md-hdr .hint a { color: #0476B7; font-weight: 700; }
.md-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  margin: 0;
}
.md-stats div {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.md-stats dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #133866;
}
.md-stats dd {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: #061A33;
}
.md-stats p {
  margin: 0;
  font-size: 11px;
  color: #4A6A91;
}
.md-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.md-table { background: #fff; }
.md-table .md-num { text-align: right; font-variant-numeric: tabular-nums; }
.md-table .is-missed { color: #64748b; }
.md-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: #4A6A91;
}
.md-side { display: flex; flex-direction: column; gap: 12px; }
.md-panel {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  padding: 12px 14px;
}
.md-panel h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #133866;
}
.md-panel-name { margin: 0; font-weight: 800; }
.md-panel-sub { margin: 2px 0 0; font-size: 12px; color: #4A6A91; }
.md-panel-stat {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 800;
  text-align: right;
}
.md-panel-stat.is-best { color: #15803d; }
.md-panel-stat.is-quiet { color: #be123c; }
.md-movers { list-style: none; margin: 0; padding: 0; }
.md-movers li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #edf1f5;
}
.md-movers li:first-child { border-top: 0; padding-top: 0; }
.md-movers strong { display: block; font-size: 13px; }
.md-movers span { font-size: 12px; color: #4A6A91; }
.md-move {
  display: inline-block;
  min-width: 2.4em;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.md-move.is-up { color: #15803d; }
.md-move.is-down { color: #be123c; }
.md-upsets { margin-top: 22px; }
.md-upsets h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #061A33;
}
.md-upset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.md-upset {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  padding: 12px 14px;
}
.md-upset-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0476B7;
}
.md-upset h4 { margin: 0 0 6px; font-size: 14px; }
.md-upset p { margin: 0; font-size: 13px; color: #133866; }
.md-upset p:last-child { color: #334155; }

@media (max-width: 980px) {
  .md-layout, .md-stats, .md-upset-grid { grid-template-columns: 1fr; }
}
