body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #182016;
  background:
    radial-gradient(circle at 20% 0%, rgba(180, 134, 65, 0.22), transparent 32rem),
    linear-gradient(135deg, #f7f1df 0%, #e6ead7 52%, #d6e0c0 100%);
}

[hidden] {
  display: none !important;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #fff9e8;
  background: #1f4d35;
  cursor: pointer;
}

button:hover {
  background: #183c2a;
}

button.secondary-button {
  color: #1f4d35;
  background: #e6ead7;
}

button.secondary-button:hover {
  background: #d8dfc2;
}

.app-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 180px;
}

.hero {
  margin-bottom: 16px;
  padding: 28px;
  border-radius: 28px;
  color: #fff9e8;
  background: linear-gradient(135deg, #163626 0%, #24553a 52%, #8c6226 100%);
  box-shadow: 0 24px 60px rgba(31, 77, 53, 0.22);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 0.92;
}

.hero-copy {
  max-width: 700px;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 22px;
  background: rgba(255, 252, 241, 0.86);
  box-shadow: 0 12px 32px rgba(31, 77, 53, 0.10);
}

.prematch-panel {
  display: grid;
  gap: 16px;
}

.prematch-weather-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 10%, rgba(232, 193, 93, 0.16), transparent 14rem),
    #fffaf0;
}

.prematch-weather-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.prematch-weather-head strong {
  display: block;
  font-size: 22px;
}

.prematch-weather-head span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.prematch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prematch-title {
  display: grid;
  gap: 2px;
}

.prematch-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
}

.prematch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prematch-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 18px;
}

.prematch-content {
  display: grid;
  gap: 16px;
}

.prematch-panel.is-collapsed .prematch-content {
  display: none;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-card,
.landing-detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 12px 32px rgba(31, 77, 53, 0.10);
}

.landing-card {
  align-content: space-between;
  min-height: 180px;
}

.landing-card.is-active {
  border-color: rgba(13, 74, 125, 0.26);
  box-shadow: 0 16px 36px rgba(13, 74, 125, 0.14);
}

.landing-card.is-disabled {
  opacity: 0.72;
}

.landing-card-copy {
  display: grid;
  gap: 8px;
}

.landing-card-copy strong,
.landing-detail-card h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.landing-card-copy span,
.landing-detail-card p {
  color: #68715c;
}

.landing-hero {
  display: grid;
  gap: 24px;
  padding: 36px 32px 32px;
  border-radius: 30px;
  background-color: #031020;
  background-size: cover;
  background-position: center;
  color: #f8fbf8;
  overflow: hidden;
  min-height: 520px;
}

.landing-hero-guest {
  background-image: radial-gradient(circle at top left, rgba(54, 154, 121, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(34, 90, 132, 0.12), transparent 16%);
}

.landing-hero-logged-in {
  background-image: radial-gradient(circle at top left, rgba(235, 186, 80, 0.12), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(33, 111, 185, 0.12), transparent 16%);
}

.landing-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.landing-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.landing-hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.landing-hero-brand-label {
  color: rgba(255, 255, 255, 0.84);
}

.landing-hero-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.topbar-link {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.landing-hero-account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-user {
  font-weight: 700;
}

.topbar-button {
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #031020;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.landing-hero-body {
  display: grid;
  gap: 26px;
  max-width: 920px;
}

.landing-hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.92;
}

.landing-hero-copy p {
  max-width: 72ch;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.landing-hero-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.landing-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.landing-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-button,
.hero-secondary-button {
  min-width: 180px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-button {
  background: #38a169;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero-secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fbf8;
}

.landing-grid-highlight {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.recent-activity-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  grid-column: 1 / -1;
}

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

.recent-activity-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: #fffaf0;
  border: 1px solid rgba(31, 77, 53, 0.14);
}

.recent-activity-item strong {
  display: block;
  margin-bottom: 6px;
}

.recent-activity-item button {
  min-width: 130px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: #1b79e0;
  color: #ffffff;
  cursor: pointer;
}

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

@media (max-width: 720px) {
  .landing-hero {
    padding: 24px;
  }

  .landing-hero-copy h1 {
    font-size: 2.6rem;
  }
}

.county-season-card {
  gap: 18px;
}

.county-season-intro-grid,
.county-season-summary-grid,
.county-season-layout,
.county-division-grid {
  display: grid;
  gap: 12px;
}

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

.county-season-layout,
.county-division-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.county-season-nested {
  box-shadow: none;
}

.county-squad-list,
.county-fixture-list,
.county-table {
  display: grid;
  gap: 8px;
}

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

.county-squad-list > span,
.county-fixture-row,
.county-table-row {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 12px;
  background: rgba(255, 252, 241, 0.76);
}

.county-squad-list small,
.county-fixture-row span,
.county-fixture-row small,
.county-table-row small {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.player-skill-stars {
  display: inline-block;
  margin-left: 4px;
  color: #6f6431;
  white-space: nowrap;
}

.player-form-arrow {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  margin-left: 6px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  vertical-align: -1px;
}

.player-form-arrow.is-max-up {
  color: #11642f;
}

.player-form-arrow.is-up {
  color: #589b36;
}

.player-form-arrow.is-neutral {
  color: #b49b2e;
}

.player-form-arrow.is-down {
  color: #c47a26;
}

.player-form-arrow.is-max-down {
  color: #b7352b;
}

.player-fatigue-label {
  display: inline-block;
  margin-left: 8px;
  color: #68715c;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.player-fatigue-label.is-fresh {
  color: #2e7d55;
}

.player-fatigue-label.is-fine {
  color: #637049;
}

.player-fatigue-label.is-tired {
  color: #a86d1d;
}

.player-fatigue-label.is-heavy {
  color: #a63b32;
}

.player-availability-label {
  display: inline-block;
  margin-left: 8px;
  color: #8b2f2f;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.player-availability-label.is-available {
  color: #2e7d55;
}

.player-availability-label.is-duty {
  color: #315f8a;
}

.player-availability-label.is-rested {
  color: #7c6841;
}

.xi-player.is-unavailable {
  cursor: not-allowed;
  opacity: 0.52;
}

.xi-column.is-locked {
  background: rgba(247, 244, 235, 0.66);
}

.xi-column.is-locked .xi-player {
  cursor: default;
  opacity: 0.92;
}

.xi-column.is-locked .xi-player:not(.is-selected) {
  opacity: 0.45;
}

.county-fixture-row.is-next,
.county-table-row.is-selected {
  border-color: rgba(31, 77, 53, 0.30);
  background: #edf5e7;
}

.county-table-row {
  grid-template-columns: minmax(130px, 1fr) repeat(6, 42px);
  align-items: center;
}

.county-table-preview .county-table-row {
  grid-template-columns: minmax(220px, 1fr) repeat(5, 42px);
  gap: 8px;
}

.county-table-preview .county-table-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
}

.county-table-preview .county-table-team-logo {
  flex: 0 0 auto;
}

.county-table-team-img,
.county-table-team-fallback {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.county-table-team-img {
  display: block;
  object-fit: contain;
  background: #fffdfa;
  border: 1px solid rgba(13, 37, 60, 0.16);
  box-shadow: 0 3px 8px rgba(13, 37, 60, 0.12);
}

.county-table-team-fallback {
  display: inline-grid;
  place-items: center;
  background: #edf4ea;
  color: #173552;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
}

.county-table-preview .county-table-team-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.county-table-preview .county-table-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.county-table-preview .county-table-team small {
  display: inline;
  flex: 0 0 auto;
  color: #637058;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.county-round-results {
  display: block;
}

.county-round-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.county-round-results-summary::-webkit-details-marker {
  display: none;
}

.county-round-results-summary span {
  display: grid;
  gap: 4px;
}

.county-round-results-summary strong {
  color: #1f2c1e;
}

.county-round-results-summary em {
  color: #5c6658;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.county-round-results[open] .county-round-results-summary {
  margin-bottom: 12px;
}

.county-round-results[open] .county-round-results-summary em::before {
  content: "Hide";
}

.county-round-results[open] .county-round-results-summary em {
  font-size: 0;
}

.county-round-results[open] .county-round-results-summary em::before {
  font-size: 12px;
}

.county-report-date-stamp {
  display: grid;
  gap: 4px;
  min-width: 122px;
  line-height: 1.05;
}

.county-report-date-stamp strong,
.county-report-date-stamp span {
  display: block;
}

.county-report-date-stamp span {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.county-report-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 16px;
  align-items: stretch;
}

.county-report-news-grid .series-report-meta {
  padding-top: 12px;
}

.county-season-review {
  border-color: rgba(89, 83, 59, 0.40);
}

.county-season-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.county-season-review-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(124, 111, 90, 0.38);
  background: rgba(255,255,255,0.20);
}

.county-season-review-grid strong {
  color: #21190f;
  font-size: 20px;
  line-height: 1.1;
}

.county-season-review-grid span {
  color: #4f4738;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.county-next-season-setup {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(31, 77, 53, 0.16);
  background: rgba(246, 249, 255, 0.42);
}

.county-next-season-setup p,
.county-next-season-setup small {
  margin: 0;
}

.county-next-season-setup p {
  color: #21190f;
  font-size: 16px;
}

.county-next-season-setup small {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.county-next-season-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.county-next-season-grid div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  background: rgba(255, 252, 241, 0.66);
}

.county-next-season-grid strong {
  color: #17344d;
}

.county-next-season-grid span {
  color: #4f4738;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.county-offseason-summary {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(124, 111, 90, 0.22);
  background: rgba(255, 252, 241, 0.72);
}

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

.county-offseason-stepper button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 8px;
  padding: 10px;
  border: 1px solid rgba(14, 64, 101, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: #17344d;
  text-align: left;
  cursor: pointer;
}

.county-offseason-stepper button.is-active {
  border-color: rgba(14, 64, 101, 0.5);
  background: #f8fbff;
  box-shadow: inset 0 0 0 2px rgba(14, 64, 101, 0.08);
}

.county-offseason-stepper small {
  grid-row: span 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #0e4065;
  color: #fff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.county-offseason-stepper strong {
  color: #17344d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-offseason-stepper span {
  color: #59604f;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.county-offseason-panel {
  display: grid;
  gap: 10px;
}

.county-offseason-panel[hidden] {
  display: none;
}

.county-offseason-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(124, 111, 90, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
}

.county-offseason-actions span {
  margin-right: auto;
  color: #59604f;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.county-offseason-choice-review li span {
  text-align: right;
}

.county-offseason-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.county-offseason-summary strong {
  color: #17344d;
}

.county-offseason-summary span,
.county-offseason-summary small {
  color: #59604f;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.county-offseason-summary ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.county-offseason-summary li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(124, 111, 90, 0.18);
}

.county-offseason-summary b {
  color: #21190f;
}

.county-transfer-verdict-list {
  border: 1px solid rgba(14, 64, 101, 0.16);
  border-radius: 10px;
  background: rgba(240, 247, 252, 0.64);
}

.county-transfer-verdict-list li:first-child,
.county-offseason-summary ul li:first-child {
  border-top: 0;
}

.county-transfer-interest-panel ul {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.county-transfer-interest-panel li {
  display: grid;
  align-items: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(124, 111, 90, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
}

.county-transfer-interest-panel li > span,
.county-transfer-interest-panel li > small {
  line-height: 1.35;
}

.county-transfer-interest-button {
  justify-self: start;
  margin-top: 4px;
  padding: 7px 11px;
  border: 1px solid rgba(14, 64, 101, 0.28);
  border-radius: 999px;
  background: #f8fbff;
  color: #0e4065;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.county-transfer-interest-button.is-active {
  border-color: rgba(24, 112, 68, 0.45);
  background: #e5f3e8;
  color: #17643d;
}

.county-transfer-interest-button.is-backup {
  border-color: rgba(142, 99, 23, 0.42);
  background: #f4ead3;
  color: #6b4510;
}

@media (max-width: 760px) {
  .county-offseason-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-offseason-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .county-offseason-actions span {
    margin-right: 0;
  }

  .county-offseason-choice-review li span {
    text-align: left;
  }
}

.county-report-next-box,
.county-report-around,
.county-report-flash {
  border: 1px solid rgba(124, 111, 90, 0.48);
  background: rgba(255,255,255,0.20);
}

.county-report-next-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  font-family: Georgia, "Times New Roman", serif;
}

.county-report-next-box p,
.county-report-next-box strong,
.county-report-next-box span,
.county-report-next-box em {
  margin: 0;
}

.county-report-next-box strong {
  font-size: 17px;
  line-height: 1.12;
}

.county-report-next-box span,
.county-report-next-box em {
  font-size: 14px;
  line-height: 1.3;
}

.county-report-next-box em {
  font-style: normal;
  font-weight: 700;
}

.county-report-around {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.county-report-flash {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
}

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

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

.county-report-around-grid p,
.county-report-flash-grid p {
  display: grid;
  gap: 3px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.county-report-around-grid strong,
.county-report-flash-grid strong {
  font-size: 14px;
  line-height: 1.15;
}

.county-report-around-grid span,
.county-report-flash-grid span {
  font-size: 13px;
  line-height: 1.25;
}

.county-news-inbox {
  display: grid;
  gap: 12px;
}

.county-news-list {
  display: grid;
  gap: 8px;
}

.county-news-item {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 10px;
  background: rgba(255, 252, 241, 0.78);
}

.county-news-item strong,
.county-news-item span {
  line-height: 1.25;
}

.county-squad-overview .county-round-results-summary strong small {
  margin-left: 6px;
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.county-squad-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.county-squad-summary-grid p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 10px;
  background: rgba(255, 252, 241, 0.78);
}

.county-squad-summary-grid strong {
  color: #1f2c1e;
  font-size: 19px;
  line-height: 1;
}

.county-squad-summary-grid span,
.county-squad-watchlist span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.county-squad-watchlist {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(49, 95, 138, 0.16);
  border-radius: 10px;
  background: rgba(246, 249, 255, 0.78);
}

.county-squad-watchlist strong {
  color: #17344d;
}

.county-squad-table th,
.county-squad-table td {
  color: #102235;
  vertical-align: middle;
}

.county-squad-table th {
  color: #5f6c79;
}

.county-squad-table td strong {
  color: #102235;
}

.county-squad-table td:first-child {
  min-width: 170px;
}

.county-squad-table td:first-child strong,
.county-squad-table td:first-child small {
  display: block;
}

.county-squad-table td:first-child small {
  margin-top: 2px;
  color: #596b55;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: capitalize;
}

.county-squad-table .player-form-arrow,
.county-squad-table .player-fatigue-label,
.county-squad-table .player-availability-label,
.county-squad-table .player-skill-stars {
  margin-left: 0;
}

.county-squad-table-row.is-unavailable {
  background: rgba(139, 47, 47, 0.055);
}

.county-dashboard-details .county-squad-table-row.is-unavailable td,
.county-dashboard-details .county-squad-table-row.is-unavailable strong {
  color: #495766;
}

.county-tab-panel[data-county-tab-panel="squad"] .county-squad-overview {
  color: #102235;
}

.county-tab-panel[data-county-tab-panel="squad"] .county-squad-summary-grid p,
.county-tab-panel[data-county-tab-panel="squad"] .county-squad-watchlist {
  background: rgba(255, 253, 247, 0.94);
}

.county-tab-panel[data-county-tab-panel="squad"] .county-squad-watchlist span,
.county-tab-panel[data-county-tab-panel="squad"] .county-squad-summary-grid span {
  color: #536477;
}

.county-sim-scorecard {
  margin-top: 6px;
}

.county-sim-scorecard summary {
  color: #4a5e46;
  cursor: pointer;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.county-sim-scorecard-body {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 8px;
  background: rgba(255, 252, 241, 0.70);
}

.county-sim-innings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.county-sim-innings-grid p,
.county-sim-session-list p,
.county-sim-performances p {
  margin: 0;
}

.county-sim-innings-grid p,
.county-sim-session-list p {
  display: grid;
  gap: 3px;
}

.county-sim-innings-grid strong,
.county-sim-innings-grid span,
.county-sim-session-list strong,
.county-sim-session-list span,
.county-sim-session-list em,
.county-sim-performances p,
.county-sim-scorecard-body small {
  font-family: "Trebuchet MS", sans-serif;
}

.county-sim-innings-grid strong,
.county-sim-session-list strong {
  color: #1f2c1e;
  font-size: 13px;
}

.county-sim-innings-grid span,
.county-sim-session-list span,
.county-sim-session-list em,
.county-sim-performances p,
.county-sim-scorecard-body small {
  color: #5c6658;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.county-sim-session-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.county-sim-session-list p {
  padding: 7px;
  border: 1px solid rgba(31, 77, 53, 0.10);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.county-sim-session-list em {
  font-style: normal;
}

.county-full-scorecard-list {
  display: grid;
  gap: 10px;
}

.county-generated-innings-card {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
}

.county-generated-innings-card h4 {
  margin: 0;
  color: #1f2c1e;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
}

.county-mini-score-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
}

.county-mini-score-table td {
  padding: 3px 4px;
  border-bottom: 1px solid rgba(31, 77, 53, 0.08);
  color: #4f5a4c;
  vertical-align: top;
}

.county-mini-score-table td:first-child {
  color: #1f2c1e;
  font-weight: 900;
}

.county-mini-score-table td:nth-child(n+3) {
  text-align: right;
  white-space: nowrap;
}

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

.county-round-report-grid div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 10px;
  background: rgba(255, 252, 241, 0.72);
}

.county-round-report-grid strong {
  color: #1f2c1e;
}

.county-round-report-grid span {
  color: #5c6658;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.county-points-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.county-points-cell strong {
  min-width: 18px;
  text-align: right;
}

.county-movement {
  display: inline-flex;
  min-width: 20px;
  justify-content: center;
  font-size: 11px;
}

.county-movement-up {
  color: #247147;
}

.county-movement-down {
  color: #a83d32;
}

.county-movement-flat {
  color: #8b8b7a;
}

.county-table-team {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.county-table-team-logo {
  display: inline-grid;
  place-items: center;
}

.county-table-team-logo .county-dashboard-badge {
  width: 30px;
  height: 30px;
  border-width: 1px;
  font-size: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 4px 9px rgba(0, 0, 0, 0.12);
}

.county-table-team-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.county-table-team strong {
  min-width: 0;
  line-height: 1.12;
}

.county-table-team-compact {
  display: none;
}

.county-table-team small {
  display: block;
  line-height: 1;
}

.county-dashboard-shell {
  display: grid;
  gap: 14px;
  padding-bottom: 78px;
}

.county-tab-panels,
.county-tab-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.county-tab-panel[hidden] {
  display: none;
}

.county-overview-nav {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 -4px;
  padding: 10px;
  border: 1px solid rgba(197, 215, 235, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(10, 33, 56, 0.96) 0%, rgba(5, 20, 36, 0.98) 100%);
  box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.county-overview-nav button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(248, 251, 255, 0.76);
  background: rgba(255, 255, 255, 0.06);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
}

.county-overview-nav button:hover,
.county-overview-nav button:focus-visible {
  color: #fffdf7;
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.11);
}

.county-overview-nav button.is-active {
  color: #071b30;
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, #fffdf7 0%, #dce6f0 100%);
}

.county-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.county-dashboard-left,
.county-dashboard-right,
.county-dashboard-details {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.county-dashboard-left .series-report-sheet,
.county-dashboard-paper .series-report-sheet {
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.20);
}

.county-dashboard-left .series-report-headline {
  overflow-wrap: anywhere;
  font-size: clamp(30px, 3.8vw, 54px);
  max-width: 100%;
}

.county-dashboard-left .series-report-subline {
  font-size: clamp(17px, 1.6vw, 22px);
}

.county-dashboard-hero,
.county-dashboard-section,
.county-dashboard-highlights {
  border: 1px solid rgba(197, 215, 235, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.035) 100%),
    rgba(11, 34, 58, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.county-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(300px, 1.15fr) minmax(170px, 0.7fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  overflow: hidden;
}

.county-dashboard-team {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.county-dashboard-team h3 {
  margin: 0;
  color: #fffdf7;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
}

.county-dashboard-team span,
.county-dashboard-last,
.county-dashboard-next span,
.county-dashboard-next em {
  color: rgba(248, 251, 255, 0.78);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.county-dashboard-crest,
.county-dashboard-result-row > span {
  flex: 0 0 auto;
}

.county-dashboard-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 32% 32% 42% 42%;
  color: #fff8df;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.34), rgba(255,255,255,0) 34%),
    linear-gradient(145deg, var(--county-primary, #173f68) 0%, var(--county-secondary, #d5b45a) 100%);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.16),
    0 7px 16px rgba(0, 0, 0, 0.18);
}

.county-dashboard-badge.county-brand-yorkshire {
  color: #14223a;
  text-shadow: none;
}

.county-dashboard-logo-badge {
  overflow: hidden;
  padding: 3px;
  color: transparent;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,0.84), rgba(255,255,255,0) 40%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(223, 229, 232, 0.92));
  text-shadow: none;
}

.county-dashboard-logo-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.24));
}

.county-dashboard-record {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-self: stretch;
  min-width: 0;
}

.county-dashboard-record p {
  display: grid;
  place-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.county-dashboard-record span,
.county-dashboard-section-head span,
.county-dashboard-result-card small,
.county-dashboard-story-grid small,
.county-dashboard-stat-leaders span,
.county-dashboard-highlight-grid span {
  color: rgba(232, 240, 250, 0.72);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.county-dashboard-record strong {
  color: #fffdf7;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
}

.county-dashboard-record .is-position {
  color: #ff6d5f;
  font-size: 22px;
}

.county-dashboard-next {
  display: grid;
  gap: 5px;
  align-self: stretch;
  padding: 10px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.county-dashboard-next strong {
  color: #fffdf7;
  font-size: 15px;
  line-height: 1.15;
}

.county-dashboard-next em {
  font-style: normal;
  text-transform: none;
}

.county-dashboard-next button {
  margin-top: 4px;
}

.county-dashboard-last {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-transform: none;
}

.county-dashboard-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.county-dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.county-dashboard-story-grid,
.county-dashboard-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.county-dashboard-story-grid article,
.county-dashboard-result-card,
.county-dashboard-stat-leaders,
.county-dashboard-lower-grid .county-overview-table {
  border: 1px solid rgba(16, 30, 48, 0.12);
  border-radius: 7px;
  background: linear-gradient(180deg, #fffdf7 0%, #ece8dd 100%);
  color: #091b31;
}

.county-dashboard-story-grid article {
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 12px;
}

.county-story-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(12, 27, 45, 0.10);
  border-radius: 50%;
  color: #0d2c4a;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.84), rgba(255,255,255,0) 42%),
    linear-gradient(145deg, #eef3ea 0%, #d6dfce 100%);
  line-height: 1;
}

.county-story-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.county-story-icon-medical svg {
  fill: currentColor;
  stroke: none;
}

.county-story-icon-bat {
  color: #173f68;
  background: linear-gradient(145deg, #eef5ff 0%, #d8e6f5 100%);
}

.county-story-icon-medical {
  color: #245f3d;
  background: linear-gradient(145deg, #f4fbf2 0%, #dcebd8 100%);
}

.county-story-icon-chart {
  color: #7a5420;
  background: linear-gradient(145deg, #fff7e1 0%, #ead8a8 100%);
}

.county-dashboard-story-grid small,
.county-dashboard-result-card small,
.county-dashboard-stat-leaders span {
  color: #30445c;
}

.county-dashboard-story-grid strong {
  color: #0b1728;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.12;
}

.county-dashboard-story-grid article,
.county-dashboard-result-card,
.county-dashboard-stat-leaders,
.county-dashboard-lower-grid .county-overview-table,
.county-dashboard-details .series-stats-card,
.county-dashboard-right .county-news-inbox {
  color: #0b1728;
}

.county-dashboard-story-grid span {
  color: #26384f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.25;
}

.county-dashboard-story-grid button {
  align-self: end;
  justify-self: start;
  border: 0;
  background: transparent;
  color: #0d4a7d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.county-dashboard-story-grid button:hover {
  color: #062d52;
  text-decoration: underline;
}

.county-story-reader-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 20, 36, 0.62);
  backdrop-filter: blur(7px);
}

.county-story-reader {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(720px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(68, 58, 42, 0.18);
  border-radius: 10px;
  padding: 26px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.72), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #fff9ed 0%, #efe4d1 100%);
  color: #20170f;
  box-shadow: 0 24px 60px rgba(3, 13, 25, 0.38);
}

.county-story-reader-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: #0b1728;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.county-story-reader small,
.county-story-archive small {
  color: #3f5166;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.county-story-reader h3 {
  max-width: 620px;
  margin: 0;
  color: #1c140e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.94;
  text-transform: uppercase;
}

.county-story-reader-standfirst {
  margin: 0;
  color: #574c3a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.35;
}

.county-story-reader-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(32, 23, 15, 0.18);
  padding-top: 12px;
}

.county-story-reader-body p,
.county-story-impact span {
  margin: 0;
  color: #241b13;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.42;
}

.county-story-impact {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(32, 23, 15, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.38);
}

.county-story-impact p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.county-story-impact strong {
  color: #0c2b47;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-story-archive {
  margin-top: 10px;
  border: 1px solid rgba(176, 197, 221, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
}

.county-story-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f8fbff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.county-story-archive summary span {
  color: #d6e0ec;
  font-size: 11px;
}

.county-story-archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.county-story-archive-filters button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(214, 224, 236, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #dcecff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 6px 9px;
  text-transform: uppercase;
  cursor: pointer;
}

.county-story-archive-filters button.is-active {
  border-color: rgba(255, 253, 247, 0.8);
  background: #fffdf7;
  color: #082746;
}

.county-story-archive-filters button span {
  color: inherit;
  font-size: 10px;
  opacity: 0.72;
}

.county-story-archive-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.county-story-archive article {
  display: grid;
  gap: 5px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.county-story-archive strong {
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.county-story-archive span {
  color: #d6e0ec;
  font-size: 13px;
  line-height: 1.3;
}

.county-story-archive-list button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #dcecff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.county-story-archive-list button:hover {
  color: #ffffff;
  text-decoration: underline;
}

.county-story-archive-filters button:hover {
  text-decoration: none;
}

.county-story-archive-empty {
  margin: 4px 0 0;
  color: #d6e0ec;
  font-size: 13px;
}

.county-dashboard-result-card {
  display: grid;
  grid-template-rows: auto 1fr auto 1fr auto;
  gap: 8px;
  min-height: 194px;
  padding: 10px;
}

.county-dashboard-result-ground,
.county-dashboard-result-bonus {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.county-dashboard-result-bonus {
  color: #30445c;
  letter-spacing: 0.08em;
}

.county-dashboard-result-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.county-dashboard-result-row .county-dashboard-badge {
  width: 32px;
  height: 32px;
  color: #fff8df;
  font-size: 9px;
}

.county-dashboard-result-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.county-dashboard-result-row strong {
  min-width: 0;
  overflow: hidden;
  color: #0b1728;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.county-dashboard-result-row p {
  display: -webkit-box;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #13263e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.county-dashboard-result-card em {
  color: #243953;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.county-dashboard-result-card .county-result-pill {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(13, 42, 72, 0.18);
  border-radius: 7px;
  color: #fffdf7;
  background: linear-gradient(180deg, #0d355a 0%, #061d34 100%);
  font-size: 11px;
  text-align: center;
}

.county-dashboard-result-card .county-result-pill.is-draw {
  min-height: 34px;
  padding: 6px 10px;
  color: #102235;
  background: linear-gradient(180deg, #f5f5f1 0%, #d9d7cf 100%);
}

.county-dashboard-wide-button {
  justify-self: center;
  min-width: 220px;
}

.county-dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 10px;
  align-items: start;
}

.county-dashboard-table-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
  min-width: 0;
}

.county-dashboard-lower-grid .county-overview-table {
  margin: 0;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  min-width: 0;
}

.county-dashboard-lower-grid .county-table-row {
  grid-template-columns: 28px minmax(104px, 1fr) repeat(6, minmax(26px, 34px));
  gap: 4px;
}

.county-dashboard-lower-grid .county-table-head span:first-child {
  grid-column: 1 / span 2;
}

.county-dashboard-lower-grid .county-table-row:not(.county-table-head)::before {
  content: counter(county-row);
  color: #26384f;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.county-dashboard-lower-grid .county-table {
  counter-reset: county-row;
}

.county-dashboard-lower-grid .county-table-row:not(.county-table-head) {
  counter-increment: county-row;
}

.county-dashboard-stat-leaders {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.county-dashboard-stat-leaders p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(12, 27, 45, 0.12);
}

.county-dashboard-stat-leaders p:last-of-type {
  border-bottom: 0;
}

.county-dashboard-stat-leaders strong {
  color: #0b1728;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.12;
}

.county-dashboard-stat-leaders em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #0b2a48;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.county-dashboard-highlights {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.county-dashboard-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.county-dashboard-highlight-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.county-dashboard-highlight-grid p:last-child {
  padding-right: 0;
  border-right: 0;
}

.county-dashboard-highlight-grid strong {
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.12;
}

.county-dashboard-highlight-grid em {
  color: rgba(248, 251, 255, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: normal;
}

.county-scorecard-toggle {
  justify-self: stretch;
  margin-top: 2px;
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
}

.county-highlight-scorecard {
  min-width: 0;
}

.county-highlight-scorecard[hidden] {
  display: none;
}

.county-highlight-scorecard .county-sim-scorecard {
  margin-top: 0;
}

.county-highlight-scorecard .county-sim-scorecard summary {
  color: #f8fbff;
}

.county-highlight-scorecard .county-sim-scorecard-body {
  background: rgba(255, 253, 247, 0.94);
}

.county-feature-scorecard {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 207, 187, 0.95);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(244, 238, 225, 0.98));
  box-shadow: 0 16px 32px rgba(3, 16, 31, 0.20);
  color: #102235;
}

.county-feature-scorecard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(19, 35, 52, 0.16);
}

.county-feature-scorecard-head h4 {
  margin: 2px 0 4px;
  color: #102235;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
}

.county-feature-scorecard-head span,
.county-feature-scorecard-head em,
.county-feature-scorecard-note {
  color: #5b6570;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.county-feature-scorecard-head em {
  padding: 7px 10px;
  border: 1px solid rgba(19, 35, 52, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.county-feature-performance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.county-feature-performance-strip p {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(19, 35, 52, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #102235;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.12;
}

.county-feature-performance-strip span {
  color: #65717d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.county-feature-innings-list {
  display: grid;
  gap: 14px;
}

.county-feature-innings-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(19, 35, 52, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #102235;
}

.county-feature-innings-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.county-feature-innings-card h5 {
  margin: 1px 0 0;
  color: #102235;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
}

.county-feature-innings-card header strong {
  display: grid;
  gap: 2px;
  min-width: 92px;
  color: #09213b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.county-feature-innings-card header strong span {
  color: #65717d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.county-feature-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.county-feature-table-title {
  margin: 0 0 6px;
  color: #536477;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-feature-score-table {
  width: 100%;
  border-collapse: collapse;
  color: #102235;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
}

.county-feature-score-table th,
.county-feature-score-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(19, 35, 52, 0.10);
  color: #283848;
  text-align: left;
  vertical-align: top;
}

.county-feature-score-table th {
  color: #697786;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-feature-score-table td:first-child {
  color: #102235;
  font-weight: 900;
}

.county-feature-score-table td:nth-child(n+3),
.county-feature-score-table th:nth-child(n+3),
.county-feature-bowling-table td:nth-child(n+2),
.county-feature-bowling-table th:nth-child(n+2) {
  text-align: right;
  white-space: nowrap;
}

.county-feature-score-table strong {
  color: #071c33;
}

.county-dashboard-details {
  margin-top: 6px;
}

.county-season-command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(260px, 0.64fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(197, 215, 235, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(15, 43, 70, 0.98), rgba(5, 24, 43, 0.98));
  color: #f8fbff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.county-season-command-strip h3 {
  margin: 3px 0 6px;
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1;
}

.county-season-command-strip .eyebrow {
  color: rgba(248, 251, 255, 0.68);
}

.county-season-command-strip > div:first-child span,
.county-season-command-next span,
.county-season-command-next em,
.county-season-command-stats span {
  color: rgba(248, 251, 255, 0.74);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-season-command-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.county-season-command-stats p {
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 12px;
}

.county-season-command-stats strong {
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.county-season-command-next {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
}

.county-season-command-next strong {
  min-width: 0;
  overflow: hidden;
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.county-season-command-next button {
  width: fit-content;
  min-height: 34px;
  margin-top: 4px;
  padding: 7px 14px;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fffdf7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.county-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.county-cup-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.county-cup-race-board {
  border-color: rgba(218, 174, 68, 0.26);
  background:
    linear-gradient(135deg, rgba(7, 28, 48, 0.96) 0%, rgba(13, 50, 78, 0.9) 42%, rgba(245, 239, 222, 0.94) 42.1%, rgba(255, 252, 242, 0.98) 100%);
}

.county-cup-race-board > .series-overview-head {
  color: #fffdf7;
}

.county-cup-race-board > .series-overview-head h3,
.county-cup-race-board > .series-overview-head span {
  color: inherit;
}

.county-cup-race-status {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(4, 20, 36, 0.58);
}

.county-cup-race-status small {
  color: rgba(255, 253, 247, 0.72);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.county-cup-race-status.is-qualified {
  border-color: rgba(141, 186, 105, 0.52);
}

.county-cup-race-status.is-eliminated {
  border-color: rgba(190, 70, 70, 0.5);
}

.county-cup-race-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.county-cup-race-strip article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96) 0%, rgba(239, 233, 218, 0.94) 100%);
  box-shadow: 0 14px 32px rgba(4, 20, 36, 0.1);
}

.county-cup-summary-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(16, 30, 48, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7 0%, #f0eadc 100%);
}

.county-cup-summary-grid small,
.county-cup-race-strip small,
.county-cup-table-title span,
.county-cup-table-head,
.county-cup-fixture-row small {
  color: #5f6c79;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-cup-summary-grid strong {
  color: #102235;
  font-size: 16px;
}

.county-cup-race-strip strong {
  color: #102235;
  font-size: 17px;
}

.county-cup-summary-grid span {
  color: #485767;
  font-size: 12px;
  font-weight: 800;
}

.county-cup-race-strip span {
  color: #485767;
  font-size: 12px;
  font-weight: 800;
}

.county-cup-fixture-row.is-completed {
  border-color: rgba(8, 63, 105, 0.22);
  background: rgba(232, 242, 248, 0.82);
}

.county-cup-table-wrap {
  display: grid;
  gap: 12px;
  width: 100%;
}

.county-cup-table {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(16, 30, 48, 0.1);
  border-radius: 13px;
  background: rgba(255, 252, 241, 0.58);
}

.county-cup-table.is-selected-group {
  border-color: rgba(218, 174, 68, 0.42);
  box-shadow: inset 0 0 0 1px rgba(218, 174, 68, 0.16);
}

.county-cup-table-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.county-cup-table-title strong {
  color: #102235;
}

.county-cup-table-head,
.county-cup-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px 30px 54px 36px;
  gap: 7px;
  align-items: center;
}

.county-cup-table-head {
  padding: 0 8px;
}

.county-cup-table-row {
  padding: 7px 8px;
  border: 1px solid rgba(16, 30, 48, 0.1);
  border-radius: 10px;
  background: rgba(255, 252, 241, 0.82);
  color: #102235;
  font-size: 12px;
  font-weight: 800;
}

.county-cup-table-row.is-qualifying {
  border-left: 4px solid #8aac69;
}

.county-cup-table-row.is-selected-team {
  border-color: rgba(8, 79, 131, 0.35);
  background: linear-gradient(90deg, rgba(222, 240, 249, 0.94) 0%, rgba(255, 252, 241, 0.9) 100%);
  box-shadow: 0 7px 18px rgba(8, 79, 131, 0.08);
}

.county-cup-qualification-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #785d13;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.county-cup-qualification-line::before,
.county-cup-qualification-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 174, 68, 0.8), transparent);
}

.county-cup-table-row > span:first-child {
  display: flex;
  min-width: 0;
  gap: 7px;
  align-items: center;
}

.county-cup-table-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.county-cup-bracket {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(218, 174, 68, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(7, 28, 48, 0.92) 0%, rgba(12, 48, 75, 0.88) 34%, rgba(255, 252, 241, 0.9) 34.2%, rgba(255, 252, 241, 0.96) 100%);
}

.county-cup-bracket .series-overview-copy strong {
  color: #fffdf7;
}

.county-cup-bracket .series-overview-copy span {
  color: rgba(255, 253, 247, 0.78);
}

.county-cup-bracket-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 10px;
}

.county-cup-bracket-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.county-cup-bracket-column h4 {
  margin: 0 0 2px;
  color: #fffdf7;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-cup-bracket-row {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 30, 48, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #102235;
}

.county-cup-bracket-row.is-projected {
  border-style: dashed;
}

.county-cup-bracket-row small,
.county-cup-bracket-row em {
  color: #5f6c79;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.county-cup-bracket-row span {
  font-weight: 900;
}

.county-cup-bracket-row span.is-winner {
  color: #084f83;
}

@media (max-width: 900px) {
  .county-cup-race-board {
    background: linear-gradient(180deg, rgba(7, 28, 48, 0.96) 0%, rgba(14, 53, 82, 0.9) 170px, rgba(255, 252, 242, 0.98) 170px, rgba(255, 252, 242, 0.98) 100%);
  }

  .county-cup-race-strip,
  .county-cup-summary-grid,
  .county-cup-bracket-grid {
    grid-template-columns: 1fr;
  }

  .county-cup-table-head,
  .county-cup-table-row {
    grid-template-columns: minmax(0, 1fr) 26px 26px 26px 48px 34px;
    gap: 5px;
  }
}

.county-dashboard-details .series-stats-card,
.county-dashboard-right .county-news-inbox {
  border-color: rgba(197, 215, 235, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

.county-tab-panel[data-county-tab-panel="season"] .series-stats-card,
.county-tab-panel[data-county-tab-panel="season"] .series-overview-card,
.county-tab-panel[data-county-tab-panel="season"] .county-result-card,
.county-tab-panel[data-county-tab-panel="season"] .county-season-result-row,
.county-tab-panel[data-county-tab-panel="season"] .county-sim-scorecard-body,
.county-tab-panel[data-county-tab-panel="season"] .county-generated-innings-card {
  color: #102235;
}

.county-tab-panel[data-county-tab-panel="season"] .series-overview-copy strong,
.county-tab-panel[data-county-tab-panel="season"] .series-overview-copy span,
.county-tab-panel[data-county-tab-panel="season"] .series-overview-copy em,
.county-tab-panel[data-county-tab-panel="season"] .series-overview-copy small,
.county-tab-panel[data-county-tab-panel="season"] .county-round-results-summary strong,
.county-tab-panel[data-county-tab-panel="season"] .county-table-row span,
.county-tab-panel[data-county-tab-panel="season"] .county-table-row strong {
  color: #102235;
}

.county-tab-panel[data-county-tab-panel="season"] .eyebrow,
.county-tab-panel[data-county-tab-panel="season"] .series-stats-head span,
.county-tab-panel[data-county-tab-panel="season"] .county-round-results-summary em,
.county-tab-panel[data-county-tab-panel="season"] .county-table-team small,
.county-tab-panel[data-county-tab-panel="season"] .series-overview-status {
  color: #5f6c79;
}

.county-results-list {
  gap: 10px;
}

.county-season-result-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16, 30, 48, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf7 0%, #eee9dc 100%);
  box-shadow: 0 10px 22px rgba(8, 28, 46, 0.08);
}

.county-season-result-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.county-season-result-team {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.county-season-result-team .county-dashboard-badge {
  width: 36px;
  height: 36px;
  font-size: 9px;
}

.county-season-result-team div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.county-season-result-team strong,
.county-season-result-team span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.county-season-result-team strong {
  color: #102235;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.08;
  white-space: nowrap;
}

.county-season-result-team span {
  display: -webkit-box;
  color: #26384f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.county-season-result-row .county-result-pill {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 42, 72, 0.18);
  border-radius: 8px;
  color: #fffdf7;
  background: linear-gradient(180deg, #0d355a 0%, #061d34 100%);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.county-season-result-row .county-result-pill.is-draw {
  color: #102235;
  background: linear-gradient(180deg, #f5f5f1 0%, #d9d7cf 100%);
}

.county-season-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(16, 30, 48, 0.10);
  color: #5f6c79;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.county-season-result-meta span,
.county-season-result-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.county-season-result-meta small {
  color: #30445c;
}

.county-table-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.county-table-summary::-webkit-details-marker {
  display: none;
}

.county-table-summary span {
  display: grid;
  gap: 4px;
}

.county-table-summary strong {
  color: #1f2c1e;
}

.county-table-summary em {
  color: #5c6658;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.county-overview-table[open] .county-table-summary {
  margin-bottom: 12px;
}

.county-table-headline {
  display: none;
}

.county-table-head {
  color: #3f493a;
  background: #e6ead7;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-detail-card {
  gap: 16px;
}

.saved-match-list {
  display: grid;
  gap: 10px;
}

.saved-match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.saved-match-copy {
  display: grid;
  gap: 4px;
}

.saved-match-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saved-match-copy strong {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.saved-match-badge {
  display: inline-block;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5efe0;
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.saved-match-badge-season {
  background: #edf3fb;
  color: #1c4d7d;
}

.saved-match-copy span {
  color: #68715c;
}

.saved-match-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.landing-detail-quiet {
  min-height: 120px;
  align-content: center;
}

.custom-setup-card {
  gap: 18px;
}

.series-setup-card {
  display: grid;
  gap: 18px;
}

.season-setup-card {
  display: grid;
  gap: 20px;
}

.season-intro-grid {
  grid-template-columns: 1.4fr 0.9fr;
  align-items: start;
}

.season-calendar-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 12px;
}

.season-calendar-card {
  gap: 6px;
}

.season-calendar-card-wide {
  align-content: start;
}

.season-month-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.season-month-chip-row span {
  padding: 6px 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.season-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 20px;
  background: #fffaf0;
}

.season-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.season-section-head strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.season-section-head span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.season-slot-list {
  display: grid;
  gap: 14px;
}

.season-slot-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.season-slot-card-odi {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.season-slot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.season-slot-head strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.season-slot-head span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.season-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.season-slot-grid-tri {
  grid-template-columns: 0.9fr 1fr 1fr;
}

.season-slot-empty {
  gap: 6px;
}

.season-slot-footer {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 12px;
}

.season-requirement-card {
  gap: 6px;
  background: linear-gradient(180deg, #fffaf0 0%, #f7f1df 100%);
}

.season-requirement-card strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.season-schedule-card {
  gap: 6px;
}

.season-schedule-edit-grid {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.season-schedule-edit-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(180px, 0.9fr);
  align-items: center;
  gap: 10px;
}

.season-schedule-edit-row span {
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.season-schedule-edit-row > select {
  width: 100%;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 14px;
  padding: 11px 12px;
  color: #182016;
  background: #fffaf0;
  font: inherit;
}

.season-schedule-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.season-schedule-chip-row span {
  padding: 6px 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.world-cup-setup-card {
  display: grid;
  gap: 18px;
}

.world-cup-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.world-cup-summary-card {
  gap: 6px;
  background: linear-gradient(180deg, #fffaf0 0%, #f7fafc 100%);
}

.world-cup-summary-card strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.world-cup-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.world-cup-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.world-cup-selected-list span {
  padding: 6px 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.world-cup-team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.world-cup-team-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 16px;
  color: #1f4d35;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  text-align: left;
}

.world-cup-team-button:hover {
  background: #eef4e8;
}

.world-cup-team-button.is-selected {
  color: #fff9e8;
  background: linear-gradient(135deg, #163626 0%, #24553a 100%);
}

.world-cup-team-button.is-selected:hover {
  background: linear-gradient(135deg, #163626 0%, #1f4d35 100%);
}

.world-cup-team-button:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.world-cup-team-rank {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #1c4d7d;
  background: #edf3fb;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.world-cup-team-button.is-selected .world-cup-team-rank {
  color: #fff9e8;
  background: rgba(255, 249, 232, 0.14);
}

.world-cup-team-copy {
  display: grid;
  gap: 2px;
}

.world-cup-team-copy strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.world-cup-team-copy small,
.world-cup-team-state {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.world-cup-team-copy small {
  color: #68715c;
}

.world-cup-team-button.is-selected .world-cup-team-copy small,
.world-cup-team-button.is-selected .world-cup-team-state {
  color: rgba(255, 249, 232, 0.88);
}

.world-cup-schedule-grid {
  gap: 10px;
}

.world-cup-schedule-row {
  grid-template-columns: 92px minmax(240px, 1.4fr) minmax(180px, 0.9fr);
}

.world-cup-schedule-copy {
  display: grid;
  gap: 2px;
}

.world-cup-schedule-copy strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.world-cup-schedule-copy small {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.series-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 16px;
  background: #fffaf0;
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.series-schedule-list {
  display: grid;
  gap: 14px;
}

.series-schedule-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 18px;
  background: #fffaf0;
}

.series-schedule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.series-schedule-head strong {
  font-size: 20px;
}

.series-schedule-head span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.series-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.xi-setup-card {
  display: grid;
  gap: 18px;
}

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

.xi-column {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 18px;
  background: #fffaf0;
}

.xi-column-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 34px;
}

.xi-column-head strong {
  font-size: 22px;
}

.xi-column-head span,
.xi-hint {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.xi-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  align-items: flex-start;
}

.xi-status span {
  padding: 5px 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: #f4f6eb;
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.xi-status.is-valid span {
  background: #e5efe0;
}

.xi-selection-hints {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(49, 95, 138, 0.16);
  border-radius: 12px;
  background: rgba(246, 249, 255, 0.78);
}

.xi-selection-hints strong {
  color: #17344d;
  font-size: 14px;
}

.xi-selection-hints span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.xi-player-list {
  display: grid;
  gap: 8px;
}

.xi-player-row {
  display: grid;
  gap: 6px;
}

.xi-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #203226;
  text-align: left;
}

.xi-player.is-selected {
  border-color: rgba(23, 91, 161, 0.30);
  background: #eef5ff;
}

.xi-player:disabled {
  opacity: 0.55;
}

.xi-player-copy {
  display: grid;
  gap: 3px;
}

.xi-player-copy strong {
  font-size: 16px;
}

.xi-player-copy small,
.xi-player-state {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.xi-wk-toggle {
  justify-self: end;
  padding: 6px 10px;
  border: 1px solid rgba(23, 91, 161, 0.18);
  border-radius: 999px;
  background: #f6f9ff;
  color: #2b5f99;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.xi-wk-toggle.is-active {
  background: #1f67b6;
  border-color: #1f67b6;
  color: #ffffff;
}

.custom-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.custom-preview-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.custom-section {
  display: grid;
  gap: 8px;
}

.setup-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-pill-row .chip-button[data-coming-soon="true"] {
  opacity: 0.7;
}

.custom-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.custom-tournament-meta-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px);
  column-gap: 24px;
  max-width: 860px;
  align-items: end;
}

.inline-date-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
}

.inline-date-grid select {
  width: 100%;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 14px;
  padding: 11px 12px;
  color: #182016;
  background: #fffaf0;
  font: inherit;
}

.custom-summary-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 77, 53, 0.12);
}

.custom-start-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 77, 53, 0.12);
}

.custom-status {
  display: grid;
  gap: 4px;
}

.custom-status span {
  color: #68715c;
  font-size: 14px;
}

.custom-start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.prematch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.prematch-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: left;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 800;
}

.prematch-field span {
  font-size: 12px;
  color: #68715c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prematch-field select,
.prematch-field input[type="text"],
.prematch-field input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 14px;
  padding: 11px 12px;
  color: #182016;
  background: #fffaf0;
  font: inherit;
}

.prematch-team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.prematch-team-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #4f5f4a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.prematch-team-meta .is-custom {
  border-color: rgba(201, 164, 74, 0.50);
  background: rgba(201, 164, 74, 0.16);
  color: #7b5b12;
}

.prematch-team-meta .is-warning {
  border-color: rgba(154, 45, 36, 0.22);
  background: rgba(154, 45, 36, 0.08);
  color: #9a2d24;
}

.prematch-team-edit {
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 999px;
  background: #1f4d35;
  color: #fff9e8;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.prematch-team-edit:hover {
  background: #173c2a;
}

.prematch-field-static {
  align-content: start;
  padding: 11px 12px;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 14px;
  background: #fffaf0;
}

.prematch-field-static strong {
  color: #182016;
  font-size: 16px;
}

.prematch-field-static small {
  color: #68715c;
  font-size: 12px;
  font-weight: 800;
}

.prematch-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #68715c;
}

.prematch-summary strong {
  color: #182016;
}

.toss-panel:empty {
  display: none;
}

.opening-setup-panel:empty {
  display: none;
}

.opening-setup-panel:not(:empty) {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 16px;
  width: min(1120px, calc(100% - 28px));
  max-height: 54vh;
  overflow: auto;
  transform: translateX(-50%);
  z-index: 12;
  border-color: rgba(154, 45, 36, 0.30);
  box-shadow: 0 18px 48px rgba(31, 77, 53, 0.22);
}

.toss-card {
  display: grid;
  gap: 16px;
}

.toss-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
}

.toss-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.toss-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toss-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: #f8fbff;
  color: #31513b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

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

.toss-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.toss-briefing-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.toss-briefing-card strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.toss-briefing-card p {
  margin: 0;
  color: #31513b;
  line-height: 1.5;
}

.toss-briefing-card small {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.opening-card {
  display: grid;
  gap: 16px;
}

.opening-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
}

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

.opening-actions {
  display: flex;
  justify-content: flex-end;
}

.match-center {
  display: grid;
  gap: 16px;
}

.score-hero-card {
  padding: 22px;
  border-radius: 24px;
  color: #fff9e8;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 193, 93, 0.22), transparent 18rem),
    linear-gradient(135deg, #193a29 0%, #24553a 56%, #6e5225 100%);
}

.score-hero-v2 {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  min-height: 260px;
  overflow: hidden;
  padding: 22px 28px;
  border-radius: 0 0 26px 26px;
  background:
    linear-gradient(90deg, rgba(3, 17, 35, 0.94) 0%, rgba(6, 25, 45, 0.78) 42%, rgba(6, 25, 45, 0.34) 100%),
    linear-gradient(0deg, rgba(4, 20, 38, 0.88) 0%, rgba(4, 20, 38, 0.18) 58%, rgba(4, 20, 38, 0.62) 100%),
    var(--ground-hero-image, url("../assets/grounds/default-county-ground.jpg")) center / cover no-repeat;
  box-shadow: 0 22px 42px rgba(2, 14, 28, 0.28);
}

.score-hero-v2::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(2, 14, 28, 0.84), rgba(2, 14, 28, 0));
}

.score-hero-v2-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.score-hero-v2-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.score-hero-v2-meta .team-strip {
  margin: 0;
}

.score-hero-v2-competition,
.score-hero-v2-venue {
  margin: 0;
  color: rgba(248, 251, 255, 0.86);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-hero-v2-competition {
  font-size: 13px;
}

.score-hero-v2-venue {
  margin-top: 7px;
  color: rgba(248, 251, 255, 0.74);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.score-hero-v2-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.score-hero-v2-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.26);
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.score-hero-v2-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 380px);
  gap: 22px;
  align-items: end;
}

.score-hero-v2 .score-hero-score h2 {
  max-width: 760px;
  margin: 0 0 6px;
  color: #f8fbff;
  font-size: clamp(26px, 4.6vw, 42px);
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

.score-hero-v2 .score-hero-score > strong {
  color: #f8fbff;
  font-size: clamp(42px, 6.4vw, 70px);
  line-height: 0.9;
}

.score-hero-v2-subline {
  margin: 10px 0 0;
  color: #ffd44f;
  font-family: "Trebuchet MS", sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 900;
  line-height: 1.15;
}

.score-hero-commentary-strap {
  max-width: 980px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fbff;
  background: rgba(5, 22, 41, 0.76);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(12px);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.score-hero-commentary-strap span {
  display: inline-flex;
  margin-right: 9px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 253, 247, 0.82);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: 1px;
}

.score-hero-card .subtle {
  color: rgba(255, 249, 232, 0.78);
}

.score-hero-card h2 {
  margin: 0;
  font-size: clamp(42px, 10vw, 86px);
  line-height: 0.9;
}

.score-hero-card h2 span {
  font-size: 0.36em;
}

.team-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 249, 232, 0.22);
  border-radius: 999px;
  background: rgba(255, 249, 232, 0.10);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
}

.team-badge span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 28px;
  border-radius: 999px;
  color: #193a29;
  background: #fff9e8;
  font-size: 12px;
}

.team-badge.is-batting {
  background: rgba(232, 193, 93, 0.20);
  border-color: rgba(232, 193, 93, 0.45);
}

.versus {
  color: rgba(255, 249, 232, 0.72);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.match-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.batting-side {
  grid-column: 1 / span 2;
  display: grid;
  gap: 8px;
  align-content: start;
}

.batting-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.match-card,
.mini-card {
  padding: 16px;
  border-radius: 18px;
  background: #fffaf0;
  border: 1px solid rgba(31, 77, 53, 0.12);
}

.match-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 150px;
}

.bowling-card {
  gap: 8px;
  min-height: 0;
  padding: 12px;
}

.mini-card span,
.subtle {
  color: #68715c;
}

.mini-card strong {
  display: block;
  margin-top: 4px;
}

.player-line,
.metric-row,
.meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.player-line span,
.metric-row span,
.meter-head span,
.condition-main span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-line strong,
.metric-row strong,
.condition-main strong {
  font-size: 18px;
}

.bowling-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  flex-wrap: wrap;
}

.bowling-actions button {
  width: fit-content;
  padding: 7px 10px;
  font-size: 12px;
}

.bowling-actions span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.captaincy-block {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.bowling-card .captaincy-block {
  gap: 5px;
  margin-top: 2px;
}

.batters-stack {
  display: grid;
  gap: 12px;
}

.batter-control-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(13, 74, 125, 0.10);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.batter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.keep-strike-btn.is-active {
  color: #fff9e8;
  background: #8c6226;
}

.keep-strike-btn.is-active:hover {
  background: #75511f;
}

.captaincy-label {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-button {
  padding: 8px 12px;
  color: #1f4d35;
  background: #e6ead7;
  font-size: 12px;
  font-weight: 900;
}

.chip-button:hover {
  background: #d8dfc2;
}

.chip-button.is-active {
  color: #fff9e8;
  background: #1f4d35;
}

.condition-main {
  display: grid;
  gap: 4px;
}

.condition-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.condition-pills span {
  padding: 6px 8px;
  border-radius: 999px;
  color: #31513b;
  background: #e6ead7;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.meter {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e1dcc6;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9a2d24, #e8c15d 45%, #2f7d46);
}

.stamina-meter span {
  transition: width 180ms ease;
}

.stamina-meter.is-fresh span {
  background: #188a55;
}

.stamina-meter.is-working span {
  background: #8fcf74;
}

.stamina-meter.is-tiring span {
  background: #d58a25;
}

.stamina-meter.is-spent span {
  background: #b7352d;
}

.new-ball-card {
  background: #fff2c7;
  border-color: rgba(140, 98, 38, 0.32);
}

.new-ball-notice {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.new-ball-notice button {
  width: fit-content;
  padding: 9px 12px;
  color: #182016;
  background: #e8c15d;
}

.new-ball-notice button:hover {
  background: #d8ab3b;
}

.new-ball-banner {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(140, 98, 38, 0.30);
  border-radius: 16px;
  background: #fff2c7;
  font-family: "Trebuchet MS", sans-serif;
}

.new-ball-banner strong {
  font-size: 16px;
}

.new-ball-banner span {
  color: #68715c;
  font-size: 13px;
  font-weight: 800;
}

.new-ball-banner button {
  width: fit-content;
  padding: 9px 12px;
  color: #182016;
  background: #e8c15d;
}

.new-ball-banner button:hover {
  background: #d8ab3b;
}

.weather-interruption {
  margin-top: 8px;
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.forecast-block {
  display: grid;
  gap: 10px;
}

.forecast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forecast-head span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.forecast-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 1px 6px;
  scrollbar-width: none;
}

.forecast-strip::-webkit-scrollbar {
  display: none;
}

.forecast-card {
  flex: 0 0 auto;
  min-width: 116px;
  padding: 11px 12px;
  border: 1px solid rgba(31, 77, 53, 0.10);
  border-radius: 16px;
  background: #f8f5e9;
}

.forecast-card.is-active {
  border-color: rgba(47, 125, 70, 0.24);
  background: #eef3dd;
}

.forecast-card strong,
.forecast-card span,
.forecast-card em,
.forecast-card small {
  display: block;
}

.forecast-card strong {
  font-size: 18px;
}

.forecast-card span,
.forecast-card small {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.forecast-card em {
  margin: 8px 0 4px;
  font-style: normal;
  font-weight: 800;
}

.innings-summary {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 77, 53, 0.12);
}

.summary-line {
  margin-top: 5px;
  font-weight: 800;
}

.action-bar {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 241, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(31, 77, 53, 0.16);
}

.action-bar button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.match-info-panel {
  display: grid;
  gap: 16px;
}

.match-micro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 77, 53, 0.10);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.92);
}

.partnership-card {
  min-height: 0;
  margin-top: -2px;
  padding: 10px 16px;
  border-color: rgba(31, 77, 53, 0.12);
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  align-content: center;
}

.match-card.partnership-card {
  min-height: 0;
  gap: 0;
}

.partnership-card strong {
  font-size: 15px;
  text-align: right;
}

.match-micro-label {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-micro-strip strong {
  font-size: 15px;
  text-align: right;
}

.match-micro-strip.is-complete {
  border-color: rgba(140, 98, 38, 0.24);
  background: linear-gradient(180deg, #fff6df 0%, #fff0c6 100%);
}

.match-micro-strip.is-complete strong {
  color: #5e4316;
}

.match-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.match-insight-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.match-insight-label {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-insight-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.match-insight-details {
  border-top: 1px solid rgba(31, 77, 53, 0.10);
  padding-top: 10px;
}

.match-insight-details summary {
  color: #0d4a7d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
}

.match-insight-details p {
  margin: 10px 0 0;
  color: #516273;
  line-height: 1.55;
}

.debug-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 800;
}

.action-bar .toggle-switch {
  min-height: 40px;
  gap: 8px;
  padding: 0 2px;
}

.action-bar .toggle-label {
  font-size: 13px;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 800;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  border: 1px solid #cbd6e1;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef3f8 0%, #e1e8f0 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 36, 0.08);
  transition: background 140ms ease, border-color 140ms ease;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 36, 0.18);
  transition: transform 140ms ease;
}

.toggle-label {
  color: var(--ink);
  white-space: nowrap;
}

.toggle-switch input:checked + .toggle-slider {
  border-color: rgba(13, 74, 125, 0.32);
  background: linear-gradient(180deg, #1b6ba5 0%, #0d4a7d 100%);
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(14px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid rgba(13, 74, 125, 0.28);
  outline-offset: 2px;
}

.over-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31, 77, 53, 0.10);
}

.overs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overs-head .eyebrow {
  margin-bottom: 2px;
}

.overs-nav {
  display: flex;
  gap: 6px;
}

.overs-nav.is-side {
  flex: 0 0 auto;
}

.feed-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

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

.feed-visibility-toggle,
.feed-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  user-select: none;
}

.feed-visibility-toggle > span:first-child {
  min-width: 18px;
  transition: color 120ms ease;
}

.feed-visibility-toggle > span.is-active {
  color: var(--ink);
}

.feed-mode-toggle > span:first-child,
.feed-mode-toggle > span:last-child {
  transition: color 120ms ease;
}

.feed-mode-toggle > span.is-active {
  color: var(--ink);
}

.feed-visibility-toggle input,
.feed-mode-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feed-visibility-toggle .toggle-slider,
.feed-mode-toggle .toggle-slider {
  width: 34px;
  height: 20px;
}

.feed-visibility-toggle input:checked + .toggle-slider,
.feed-mode-toggle input:checked + .toggle-slider {
  border-color: rgba(13, 74, 125, 0.32);
  background: linear-gradient(180deg, #1b6ba5 0%, #0d4a7d 100%);
}

.feed-visibility-toggle input:checked + .toggle-slider::after,
.feed-mode-toggle input:checked + .toggle-slider::after {
  transform: translateX(14px);
}

.overs-nav button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
}

.overs-strip {
  margin-top: 2px;
  max-width: 100%;
  min-width: 0;
}

.overs-container {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.over-card {
  flex: 0 0 auto;
  min-width: 178px;
  padding: 9px 11px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 16px;
  background: #fffaf0;
  scroll-snap-align: end;
}

.over-card.is-live {
  border-color: rgba(47, 125, 70, 0.28);
  background: #eef3dd;
}

.over-marker-card {
  min-width: 164px;
  border-style: dashed;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

.over-marker-card span {
  color: var(--ink);
}

.over-card > span,
.current-over-line > span {
  display: block;
  margin-bottom: 5px;
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.over-card em {
  color: #68715c;
  font-style: normal;
}

.current-over-line {
  display: none;
}

.feed-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.feed-stack > section {
  min-width: 0;
  max-width: 100%;
}

.events-container,
.commentary-container {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.event-card,
.commentary-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  width: min(320px, calc(100% - 8px));
  max-width: calc(100% - 8px);
  min-height: 68px;
  padding: 9px 11px;
  border: 1px solid rgba(31, 77, 53, 0.10);
  border-radius: 14px;
  background: #fffaf0;
  scroll-snap-align: start;
}

.commentary-card {
  display: grid;
  align-content: start;
  min-height: 52px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

.overs-container::-webkit-scrollbar,
.events-container::-webkit-scrollbar,
.commentary-container::-webkit-scrollbar {
  display: none;
}

.commentary-card strong,
.event-card strong {
  display: block;
}

.commentary-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.commentary-card span,
.event-card span {
  display: block;
  margin-top: 2px;
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.commentary-card span {
  font-size: 11px;
}

.event-card em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #31513b;
  background: #e6ead7;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-wicket em,
.event-stoppage em {
  color: #fff9e8;
  background: #9a2d24;
}

.event-newBall em,
.event-declaration em,
.event-followOn em {
  color: #182016;
  background: #e8c15d;
}

.ball-chip {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e6ead7;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
}

.ball-chip.boundary {
  color: #fff;
  background: #2f7d46;
}

.ball-chip.wicket {
  color: #fff;
  background: #9a2d24;
}

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

th {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(31, 77, 53, 0.18);
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(31, 77, 53, 0.10);
}

.scorecard-shell {
  display: grid;
  gap: 16px;
}

.scorecard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.scorecard-head h2 {
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 0.95;
}

.scorecard-total {
  min-width: 120px;
  padding: 14px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 16px;
  background: #fffaf0;
  text-align: right;
}

.scorecard-total span {
  display: block;
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scorecard-total strong {
  display: block;
  font-size: 30px;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 16px;
}

.scorecard-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 18px;
  background: #fffaf0;
}

.table-scroll {
  overflow-x: auto;
}

.score-table {
  min-width: 560px;
}

.bowling-table {
  min-width: 0;
}

.score-table td:nth-child(n + 3),
.score-table th:nth-child(n + 3) {
  text-align: right;
}

.score-table tr.is-current-player {
  background: rgba(232, 193, 93, 0.16);
}

.score-table tr.is-current-player td:first-child {
  border-radius: 12px 0 0 12px;
}

.score-table tr.is-current-player td:last-child {
  border-radius: 0 12px 12px 0;
}

.extras-line {
  margin-top: 12px;
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

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

pre {
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  color: #d7f5ce;
  background: #182016;
}

@media (max-width: 760px) {
  .match-info-grid,
  .scorecard-grid,
  .debug-grid,
  .prematch-grid,
  .opening-grid,
  .landing-grid,
  .custom-team-grid,
  .xi-grid,
  .series-schedule-grid {
    grid-template-columns: 1fr;
  }

  .prematch-head {
    align-items: stretch;
    flex-direction: column;
  }

  .custom-start-row {
    align-items: stretch;
    flex-direction: column;
  }

  .custom-start-actions {
    justify-content: flex-start;
  }

  .inline-date-grid {
    grid-template-columns: 1fr;
  }

  .scorecard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .scorecard-total {
    text-align: left;
  }

  .bowling-table {
    min-width: 470px;
  }

  .toss-card {
    align-items: stretch;
    flex-direction: column;
  }

  .toss-main {
    flex-direction: column;
  }

  .toss-meta {
    justify-content: flex-start;
  }

  .score-hero-card {
    padding: 18px;
  }

  .team-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .versus {
    display: none;
  }

  .action-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    max-height: 58px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 30px rgba(15, 23, 36, 0.14);
    scrollbar-width: none;
  }

  .action-bar::-webkit-scrollbar {
    display: none;
  }

  .action-bar > * {
    flex: 0 0 auto;
  }

  .action-bar button {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .debug-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    white-space: nowrap;
  }

  .toggle-switch {
    min-height: 40px;
    gap: 8px;
    padding: 0 4px;
    white-space: nowrap;
  }

  .app-shell {
    padding-bottom: 122px;
  }

  .opening-setup-panel:not(:empty) {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 92px;
    width: auto;
    max-height: 48vh;
    overflow: auto;
    margin: 0;
    transform: none;
  }
}

:root {
  --page-bg: #eef2f7;
  --page-tint: #dfe7f1;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --surface-soft: #f2f5f9;
  --line: #d7dee8;
  --line-strong: #c5d0dc;
  --ink: #0f1724;
  --muted: #5d6a79;
  --accent: #0d4a7d;
  --accent-strong: #083a63;
  --accent-soft: #dceaf7;
  --gold: #c8921f;
  --gold-soft: #f8edd1;
  --success: #0f6a44;
  --danger: #a22f2f;
  --danger-soft: #f8e2e2;
  --shadow-lg: 0 22px 48px rgba(15, 23, 36, 0.10);
  --shadow-md: 0 10px 24px rgba(15, 23, 36, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 23, 36, 0.05);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 74, 125, 0.10), transparent 34rem),
    linear-gradient(180deg, #f7f9fc 0%, var(--page-bg) 46%, var(--page-tint) 100%);
}

button {
  border: 1px solid transparent;
  border-radius: 14px;
  color: #f8fbff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button:hover {
  background: linear-gradient(180deg, #0e548d 0%, #073252 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

button.secondary-button,
.chip-button {
  border-color: var(--line);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
}

button.secondary-button:hover,
.chip-button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaf0f6 100%);
}

button.secondary-button.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
}

button.secondary-button.is-locked:hover {
  transform: none;
  box-shadow: none;
}

.app-shell {
  width: min(1240px, calc(100% - 32px));
  padding-top: 18px;
}

.hero {
  margin-bottom: 12px;
  padding: 16px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 146, 31, 0.22), transparent 16rem),
    linear-gradient(135deg, #0a2238 0%, #0f3b60 62%, #1d6b88 100%);
  box-shadow: 0 18px 34px rgba(8, 28, 46, 0.16);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(24px, 4.8vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.hero-copy {
  max-width: 780px;
  margin: 8px 0 0;
  color: rgba(248, 251, 255, 0.82);
  font-size: 14px;
  line-height: 1.35;
}

.app-shell.is-live-match .hero,
.app-shell.is-series-prep .hero,
.app-shell.is-toss-match .hero {
  display: none;
}

.app-shell.is-live-match .hero-topline {
  align-items: center;
  margin-bottom: 0;
}

.app-shell.is-live-match .hero h1 {
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.05;
}

.app-shell.is-live-match .hero-copy {
  display: none;
}

.app-shell.is-live-match .hero .eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.app-shell.is-live-match .hero-badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 9px;
}

.app-shell.is-live-match .hero-actions {
  gap: 8px;
}

.app-shell.is-live-match #authMount .auth-status {
  gap: 6px;
}

.app-shell.is-live-match #authMount .auth-status strong {
  font-size: 12px;
}

.app-shell.is-live-match #authMount button {
  padding: 8px 12px;
  font-size: 13px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-badge-local {
  color: #fff6dd;
  background: rgba(154, 45, 36, 0.22);
  border-color: rgba(255, 214, 170, 0.28);
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-user {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-button {
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 34, 56, 0.42);
  backdrop-filter: blur(6px);
}

.auth-modal-card {
  width: min(460px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 20px 48px rgba(8, 28, 46, 0.18);
}

.auth-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.auth-modal-head h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.auth-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 14px;
  padding: 11px 12px;
  color: #182016;
  background: #fffaf0;
  font: inherit;
}

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

.auth-error {
  margin: 0;
  color: #9a2d24;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.series-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 34, 56, 0.52);
  backdrop-filter: blur(6px);
}

.series-modal-card {
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf7 0%, #f5f0e6 100%);
  box-shadow: 0 24px 60px rgba(8, 28, 46, 0.24);
}

.series-modal-card.county-dashboard-modal {
  width: min(1480px, calc(100vw - 24px));
  max-height: min(94vh, 980px);
  padding: 16px;
  border-color: rgba(176, 197, 221, 0.18);
  background:
    radial-gradient(circle at 18% 8%, rgba(42, 88, 132, 0.55), rgba(42, 88, 132, 0) 34%),
    linear-gradient(135deg, #061d34 0%, #0b2a48 46%, #06182c 100%);
  color: #f8fbff;
}

.county-dashboard-modal .series-modal-head {
  padding: 4px 4px 0;
}

.county-dashboard-modal .series-modal-head h2 {
  color: #f8fbff;
}

.county-dashboard-modal .series-modal-body {
  gap: 12px;
}

.county-dashboard-modal .series-modal-actions {
  padding: 0 4px 2px;
}

.county-dashboard-modal .auth-close {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
}

.series-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.series-modal-head h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.series-modal-body {
  display: grid;
  gap: 16px;
}

.series-modal-scoreline {
  margin: 0;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #18355a;
}

.series-modal-error {
  margin: 0;
  color: #9a2d24;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.series-modal-lock-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(160, 117, 21, 0.22);
  border-radius: 14px;
  background: rgba(255, 244, 214, 0.9);
  color: #6f4b00;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.series-report-sheet {
  padding: 18px 18px 16px;
  border: 1px solid #b8ae98;
  background:
    radial-gradient(circle at top left, rgba(103, 84, 50, 0.06), transparent 34%),
    radial-gradient(circle at bottom right, rgba(103, 84, 50, 0.05), transparent 28%),
    linear-gradient(180deg, #f8f2e4 0%, #f4ecdd 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36);
  color: #211a11;
}

.series-report-head {
  display: grid;
  grid-template-columns: minmax(0, 112px) 1fr minmax(0, 112px);
  align-items: center;
  gap: 12px;
}

.series-report-stamp {
  padding: 8px 10px;
  border: 1px solid #8f8572;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255,255,255,0.22);
}

.series-report-stamp-right {
  justify-self: end;
}

.series-report-masthead-wrap {
  min-width: 0;
  text-align: center;
}

.series-report-masthead {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.series-report-deck {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.series-report-rule {
  height: 1px;
  margin: 14px 0;
  background: #9b907b;
}

.series-report-body {
  display: grid;
  gap: 12px;
}

.series-report-headline {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 0.96;
  text-align: center;
  text-transform: uppercase;
}

.series-report-subline {
  margin: 0 auto;
  max-width: 62ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
}

.series-report-meta {
  display: grid;
  gap: 4px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(124, 111, 90, 0.46);
}

.series-report-meta p,
.series-report-highlights p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.45;
}

.series-report-highlights {
  display: grid;
  gap: 5px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(124, 111, 90, 0.34);
}

.season-report-sheet {
  margin: 0 0 18px;
}

.season-report-briefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(124, 111, 90, 0.34);
}

.season-report-brief {
  display: grid;
  gap: 6px;
  padding: 0 14px 0 0;
  border-right: 1px solid rgba(124, 111, 90, 0.24);
  font-family: Georgia, "Times New Roman", serif;
}

.season-report-brief:last-child {
  padding-right: 0;
  border-right: 0;
}

.season-report-brief strong {
  font-size: 18px;
  line-height: 1.1;
}

.season-report-brief span {
  font-size: 15px;
  line-height: 1.38;
}

.season-report-dates-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 111, 90, 0.35);
  background: rgba(255,255,255,0.24);
}

.season-report-dates-list {
  display: grid;
  gap: 8px;
}

.season-report-date-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(124, 111, 90, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.4;
}

.season-report-date-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.season-report-date-row strong {
  font-weight: 700;
}

.season-report-date-row span {
  color: #4c4336;
  text-align: right;
}

.series-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.team-editor-card {
  width: min(1120px, calc(100vw - 28px));
}

.team-editor-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(260px, 1fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
}

.team-editor-panel,
.team-editor-readiness,
.team-editor-saved-drafts {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.team-editor-panel-head,
.team-editor-readiness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-editor-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.team-editor-panel-head .eyebrow,
.team-editor-readiness .eyebrow,
.team-editor-saved-drafts .eyebrow {
  margin-bottom: 2px;
}

.team-editor-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}

.team-editor-field input,
.team-editor-field select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fffdf7;
  font: inherit;
  text-transform: none;
}

.team-editor-field input[type="color"] {
  min-height: 42px;
  padding: 4px;
  cursor: pointer;
}

.team-editor-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-editor-range input {
  padding: 0;
}

.team-editor-range span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.team-editor-bowling-status {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(31, 77, 53, 0.13);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.82);
  font-family: "Trebuchet MS", sans-serif;
}

.team-editor-bowling-status strong,
.team-editor-bowling-status span {
  display: block;
}

.team-editor-bowling-status strong {
  font-size: 12px;
  font-weight: 900;
}

.team-editor-bowling-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.team-editor-bowling-status.is-bowler {
  border-color: rgba(45, 127, 83, 0.32);
  background: rgba(61, 153, 95, 0.12);
}

.team-editor-bowling-status.is-bowler strong {
  color: #17613b;
}

.team-editor-bowling-status.is-part-time {
  border-color: rgba(196, 130, 42, 0.32);
  background: rgba(196, 130, 42, 0.10);
}

.team-editor-bowling-status.is-part-time strong {
  color: #8a5514;
}

.team-editor-bowling-status.is-non-bowler {
  border-color: rgba(154, 45, 36, 0.18);
  background: rgba(154, 45, 36, 0.07);
}

.team-editor-bowling-status.is-non-bowler strong {
  color: #9a2d24;
}

.team-editor-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.team-editor-toggle input {
  width: 18px;
  height: 18px;
}

.team-editor-logo-slot {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(31, 77, 53, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,0.78), rgba(255,255,255,0) 42%),
    linear-gradient(145deg, var(--team-primary, #1f4d35) 0%, var(--team-secondary, #c9a44a) 100%);
  color: #fff9e8;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.20),
    0 8px 18px rgba(31, 77, 53, 0.16);
  overflow: hidden;
}

.team-editor-logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-editor-player-list {
  display: grid;
  gap: 7px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.team-editor-player {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 12px;
  color: var(--ink);
  background: #fffdf7;
  text-align: left;
  box-shadow: none;
}

.team-editor-player:hover,
.team-editor-player.is-active {
  color: #fff9e8;
  background: linear-gradient(180deg, #1f4d35 0%, #173c2a 100%);
}

.team-editor-player span,
.team-editor-player small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-editor-player small {
  opacity: 0.78;
  font-size: 11px;
}

.team-editor-checks {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.team-editor-checks span {
  padding: 6px 9px;
  border-radius: 999px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.team-editor-checks .is-ok,
.team-editor-readiness .is-ready {
  color: #17613b;
}

.team-editor-checks .is-ok {
  background: rgba(61, 153, 95, 0.14);
}

.team-editor-checks .is-missing,
.team-editor-readiness .is-not-ready {
  color: #9a2d24;
}

.team-editor-checks .is-missing {
  background: rgba(154, 45, 36, 0.11);
}

.team-editor-draft-list {
  display: grid;
  gap: 8px;
}

.team-editor-draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 12px;
  background: #fffdf7;
}

.team-editor-draft-row.is-active {
  border-color: rgba(201, 164, 74, 0.72);
  box-shadow: 0 0 0 2px rgba(201, 164, 74, 0.14);
}

.team-editor-draft-row strong,
.team-editor-draft-row span {
  display: block;
}

.team-editor-draft-row span {
  margin-top: 2px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.team-editor-draft-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.team-editor-draft-badges small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(31, 77, 53, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  color: #4f5f4a;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.team-editor-draft-badges .is-playable {
  border-color: rgba(45, 127, 83, 0.34);
  background: rgba(61, 153, 95, 0.14);
  color: #17613b;
}

.team-editor-draft-badges .is-needs-work {
  border-color: rgba(154, 45, 36, 0.22);
  background: rgba(154, 45, 36, 0.08);
  color: #9a2d24;
}

.team-editor-draft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.team-editor-draft-actions .secondary-button {
  padding: 7px 9px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .team-editor-layout {
    grid-template-columns: 1fr;
  }

  .team-editor-readiness,
  .team-editor-draft-row {
    align-items: stretch;
    flex-direction: column;
  }

  .team-editor-checks,
  .team-editor-draft-actions {
    justify-content: flex-start;
  }

  .team-editor-player-list {
    max-height: 260px;
  }
}

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

.series-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.series-overview-card.is-next {
  border-color: rgba(201, 164, 74, 0.6);
  box-shadow: 0 10px 26px rgba(24, 61, 90, 0.12);
}

.series-overview-card.is-final {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 244, 228, 0.92));
}

.series-overview-copy {
  display: grid;
  gap: 6px;
}

.series-overview-copy strong,
.series-overview-copy span,
.series-overview-copy em {
  display: block;
}

.series-overview-copy em {
  color: #516273;
  font-style: normal;
}

.series-match-preview {
  display: grid;
  gap: 2px;
}

.series-match-preview span {
  color: #203226;
  font-weight: 800;
}

.series-match-preview em {
  margin-top: 2px;
}

.series-tournament-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(201, 164, 74, 0.36);
  border-radius: 14px;
  background: rgba(250, 244, 228, 0.76);
}

.series-tournament-note div {
  display: grid;
  gap: 4px;
}

.series-tournament-note strong,
.series-tournament-note span,
.series-tournament-note em {
  display: block;
}

.series-tournament-note em {
  color: #5c4b1e;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.series-fixture-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.series-next-pill,
.series-qualifier-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(201, 164, 74, 0.2);
  color: #70560f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.series-fixture-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.series-fixture-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.series-fixture-team strong {
  color: #17231b;
}

.series-fixture-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(17, 34, 28, 0.08);
}

.series-fixture-flag img,
.series-fixture-flag .team-flag-fallback {
  width: 100%;
  height: 100%;
}

.series-fixture-v {
  color: #68715c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.series-fixture-label {
  color: #506070;
}

.score-table tr.is-qualifier td:first-child {
  border-left: 4px solid #c9a44a;
}

.score-table tr.is-qualifier td:first-child strong {
  margin-right: 8px;
}

.series-overview-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.series-overview-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 59, 99, 0.08);
  color: #0f4978;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.series-stats-shell {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.series-stats-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(31, 77, 53, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.series-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.series-stats-head span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.series-flow-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.series-flow-copy {
  display: grid;
  gap: 4px;
}

.series-flow-copy strong,
.series-flow-copy span {
  display: block;
}

.series-flow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 720px) {
  .series-modal-backdrop {
    padding: 14px;
  }

  .series-modal-card {
    width: min(100vw - 16px, 920px);
    padding: 18px;
    border-radius: 20px;
  }

  .series-modal-head h2 {
    font-size: 26px;
  }

  .series-overview-card {
    display: grid;
    align-items: start;
  }

  .series-overview-actions {
    justify-items: start;
  }

  .series-overview-actions button {
    width: 100%;
  }

  .series-tournament-note {
    align-items: stretch;
    flex-direction: column;
  }

  .series-tournament-note em {
    text-align: left;
  }

  .series-modal-actions {
    justify-content: stretch;
  }

  .series-modal-actions button {
    width: 100%;
  }

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

  .series-report-stamp,
  .series-report-stamp-right {
    justify-self: stretch;
  }

  .series-report-subline {
    font-size: 17px;
  }

  .series-flow-shell {
    display: grid;
    align-items: start;
  }

  .series-flow-actions {
    justify-content: stretch;
  }

  .series-flow-actions button {
    width: 100%;
  }
}

.panel,
.prematch-weather-card,
.match-card,
.scorecard-card,
.scorecard-total,
.commentary-card,
.event-card,
.over-card {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  box-shadow: var(--shadow-md);
}

.panel {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,249,252,0.98) 100%);
}

.eyebrow,
.prematch-field span,
.player-line span,
.metric-row span,
.meter-head span,
.condition-main span,
.captaincy-label,
.forecast-head span,
th,
.over-card > span,
.current-over-line > span,
.event-card em,
.scorecard-total span {
  color: var(--muted);
}

.prematch-panel,
.match-center,
.scorecard-shell,
.feed-stack {
  gap: 14px;
}

.prematch-weather-card,
.scorecard-card,
.match-card {
  border-radius: 18px;
}

.prematch-head,
.scorecard-head,
.overs-head,
.forecast-head {
  align-items: center;
}

.prematch-head h2,
.opening-card h2,
.toss-card h2 {
  letter-spacing: -0.02em;
}

.prematch-summary {
  gap: 8px;
  align-items: center;
}

.prematch-summary span,
.prematch-summary strong {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fbfd;
}

.prematch-versus {
  padding: 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.prematch-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.summary-flag {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,0.45), rgba(255,255,255,0) 44%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 0 1px rgba(15, 23, 36, 0.12),
    0 2px 5px rgba(15, 23, 36, 0.12);
}

.summary-flag svg,
.summary-flag img {
  display: block;
  width: 100%;
  height: 100%;
}

.summary-flag img,
.team-flag img {
  object-fit: cover;
}

.summary-flag::after {
  content: "";
  position: absolute;
  inset: 2px 4px auto 4px;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 75%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.summary-team-copy {
  display: grid;
  gap: 1px;
}

.summary-team-copy b,
.summary-team-copy small {
  display: block;
}

.summary-team-copy small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-hero-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 146, 31, 0.22), transparent 18rem),
    linear-gradient(140deg, #0b2338 0%, #133f61 55%, #175370 100%);
  box-shadow: 0 28px 56px rgba(9, 32, 52, 0.18);
}

.score-hero-card h2 {
  font-size: clamp(40px, 10vw, 78px);
  font-weight: 700;
}

.team-strip {
  gap: 12px;
  margin-bottom: 14px;
}

.team-badge {
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.team-badge[style*="--team-primary"] {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--team-secondary) 28%, transparent), transparent 8rem),
    linear-gradient(135deg,
      color-mix(in srgb, var(--team-primary) 34%, rgba(255,255,255,0.08)) 0%,
      color-mix(in srgb, var(--team-secondary, var(--team-primary)) 24%, rgba(255,255,255,0.08)) 100%);
}

.team-badge span {
  background: none;
}

.team-flag {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.5), rgba(255,255,255,0) 44%),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 0 0 1px rgba(255,255,255,0.14),
    0 6px 14px rgba(8, 28, 46, 0.16);
}

.team-flag svg,
.team-flag img {
  display: block;
  width: 100%;
  height: 100%;
}

.summary-flag .team-flag-fallback,
.team-flag .team-flag-fallback {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #173047;
  background: linear-gradient(145deg, #f6f9fc, #cdd8e4);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.summary-flag .team-flag-custom-badge,
.team-flag .team-flag-custom-badge {
  color: #fff9e8;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.46), rgba(255,255,255,0) 42%),
    linear-gradient(145deg, var(--team-primary, #1f4d35) 0%, var(--team-secondary, #c9a44a) 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.team-flag::after {
  content: "";
  position: absolute;
  inset: 3px 6px auto 6px;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.10) 72%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.team-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.team-copy strong {
  color: #f8fbff;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 1px rgba(8, 28, 46, 0.18);
}

.team-copy small {
  color: rgba(248, 251, 255, 0.78);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-badge span:not(.team-flag):not(.team-copy) {
  min-width: 42px;
  min-height: 30px;
  color: #eff5fb;
  background: rgba(255, 255, 255, 0.12);
}

.team-badge.is-batting {
  border-color: color-mix(in srgb, var(--team-secondary, #c8921f) 64%, rgba(255,255,255,0.44));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--team-secondary, #c8921f) 28%, transparent),
    0 8px 18px rgba(8, 28, 46, 0.14);
}

.new-ball-banner,
.new-ball-card {
  border-color: rgba(200, 146, 31, 0.36);
  background: linear-gradient(180deg, #fff8e8 0%, var(--gold-soft) 100%);
}

.new-ball-banner button,
.new-ball-notice button {
  color: #1f2430;
  background: linear-gradient(180deg, #f1ca72 0%, var(--gold) 100%);
}

.new-ball-banner button:hover,
.new-ball-notice button:hover {
  background: linear-gradient(180deg, #f6d58d 0%, #b78012 100%);
}

.match-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  min-height: 176px;
  padding: 18px;
}

.composite-card {
  align-content: start;
  gap: 12px;
}

.composite-divider {
  height: 1px;
  margin: 2px 0;
  background: rgba(215, 222, 232, 0.85);
}

.compact-ground strong {
  font-size: 17px;
}

.condition-pills span,
.chip-button,
.keep-strike-btn,
.team-badge,
.prematch-summary span,
.prematch-summary strong {
  font-family: "Trebuchet MS", sans-serif;
}

.condition-pills span {
  border: 1px solid #dde5ee;
  color: #254056;
  background: #eef4fa;
}

.meter {
  height: 10px;
  background: #e6ebf1;
}

.meter span {
  background: linear-gradient(90deg, #b13838 0%, #dba236 48%, #11815c 100%);
}

.stamina-meter.is-fresh span {
  background: #188a55;
}

.stamina-meter.is-working span {
  background: #8fcf74;
}

.stamina-meter.is-tiring span {
  background: #d58a25;
}

.stamina-meter.is-spent span {
  background: #b7352d;
}

.captaincy-block,
.bowling-actions {
  padding-top: 6px;
  border-top: 1px solid rgba(215, 222, 232, 0.75);
}

.bowling-card .captaincy-block,
.bowling-card .bowling-actions {
  padding-top: 5px;
}

.chip-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
}

.chip-button.is-active,
.keep-strike-btn.is-active {
  border-color: transparent;
  color: #f8fbff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.keep-strike-btn.is-active:hover,
.chip-button.is-active:hover {
  background: linear-gradient(180deg, #0e548d 0%, #073252 100%);
}

.forecast-card {
  min-width: 126px;
  border-color: #dbe2ea;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  box-shadow: none;
}

.forecast-card.is-active {
  border-color: rgba(13, 74, 125, 0.22);
  background: linear-gradient(180deg, #edf5fc 0%, #dcebf9 100%);
}

.action-bar {
  top: 10px;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 20px 36px rgba(15, 23, 36, 0.10);
}

.overs-nav button,
.prematch-toggle {
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

.overs-nav button:hover,
.prematch-toggle:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8eef4 100%);
}

.overs-strip,
.commentary-container,
.events-container {
  padding-top: 2px;
}

.over-card {
  min-width: 196px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.over-card.is-live {
  border-color: rgba(13, 74, 125, 0.28);
  background: linear-gradient(180deg, #edf5fc 0%, #e4eff9 100%);
}

.event-card,
.commentary-card {
  gap: 10px;
  min-height: 68px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.event-card em {
  border: 1px solid #d9e1ea;
  background: #eef4fa;
}

.event-wicket em,
.event-stoppage em {
  border-color: transparent;
  background: var(--danger);
}

.event-newBall em,
.event-declaration em,
.event-followOn em,
.event-captaincy em {
  border-color: transparent;
  background: linear-gradient(180deg, #f1ca72 0%, var(--gold) 100%);
}

table {
  font-variant-numeric: tabular-nums;
}

th {
  border-bottom-color: var(--line-strong);
  background: #f5f8fb;
}

td {
  border-bottom-color: #e7edf3;
}

.score-table {
  min-width: 100%;
}

.score-table.batting-table {
  min-width: 620px;
}

.score-table.bowling-table {
  min-width: 420px;
}

.score-table tr.is-current-player {
  background: linear-gradient(90deg, rgba(13, 74, 125, 0.08) 0%, rgba(13, 74, 125, 0.03) 100%);
}

.scorecard-head h2 {
  letter-spacing: -0.02em;
}

.scorecard-total {
  min-width: 140px;
  border-color: #dde5ee;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}

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

.save-panel {
  margin-top: 20px;
}

.save-panel-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.save-panel-copy {
  display: grid;
  gap: 4px;
}

.save-panel-copy strong {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.save-panel-copy span,
.save-panel-note {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.save-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.save-panel-note {
  margin: 10px 0 0;
}

.scorecard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scorecard-tab {
  display: grid;
  gap: 2px;
  min-width: 172px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  box-shadow: none;
  text-align: left;
}

.scorecard-tab span {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scorecard-tab strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.scorecard-tab.is-active {
  border-color: rgba(13, 74, 125, 0.26);
  color: #f8fbff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.scorecard-tab.is-active span {
  color: rgba(248, 251, 255, 0.72);
}

.scorecard-tab.is-active strong {
  color: #f8fbff;
}

.scorecard-export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.scorecard-export-note {
  flex-basis: 100%;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.scorecard-card .eyebrow {
  margin-bottom: 10px;
}

.table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c4d0dd transparent;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c4d0dd;
}

pre {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

@media (max-width: 980px) {
  .landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toss-briefing-grid {
    grid-template-columns: 1fr;
  }

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

  .scorecard-grid {
    grid-template-columns: 1fr;
  }

  .save-panel-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .save-panel-actions {
    width: 100%;
  }

  .save-panel-actions button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100%, calc(100% - 18px));
    padding-bottom: 122px;
  }

  .hero {
    padding: 16px 16px 18px;
  }

  .hero-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .panel {
    padding: 14px;
    border-radius: 18px;
  }

  .score-hero-card {
    padding: 18px;
  }

  .match-info-grid {
    grid-template-columns: 1fr;
  }

  .season-intro-grid,
  .season-calendar-strip,
  .season-slot-grid,
  .season-slot-grid-tri,
  .season-slot-footer {
    grid-template-columns: 1fr;
  }

  .match-card {
    min-height: 0;
  }

  .match-insight-grid {
    grid-template-columns: 1fr;
  }

  .match-micro-strip {
    align-items: start;
    flex-direction: column;
  }

  .match-micro-strip strong {
    text-align: left;
  }

  .action-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    max-height: 58px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 30px rgba(15, 23, 36, 0.14);
    scrollbar-width: none;
  }

  .action-bar::-webkit-scrollbar {
    display: none;
  }

  .action-bar > * {
    flex: 0 0 auto;
  }

  .action-bar button {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .debug-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    white-space: nowrap;
  }

  .over-card {
    min-width: 168px;
  }

  .event-card {
    width: min(286px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
  }
}

.score-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.score-hero-score {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 160px;
  text-align: right;
}

.score-hero-score strong {
  color: #fff9e8;
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.score-hero-score span {
  color: rgba(255, 249, 232, 0.84);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .score-hero-top {
    align-items: stretch;
    flex-direction: column;
  }

  .score-hero-score {
    min-width: 0;
    text-align: left;
  }
}

.team-strip-venue {
  color: rgba(248, 251, 255, 0.80);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 6px;
}

.score-hero-topline {
  min-width: 0;
}

.score-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 20px;
}

.score-hero-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.score-hero-score {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  margin-top: 0;
  text-align: left;
}

.score-hero-score > div:first-child {
  min-width: 0;
}

.score-hero-score .eyebrow {
  margin-bottom: 6px;
  color: rgba(248, 251, 255, 0.76);
}

.score-hero-score strong {
  display: block;
}

.score-hero-score strong span {
  font-size: 0.25em;
  vertical-align: middle;
}

.score-hero-essentials {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
}

.hero-essential {
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-essential span,
.hero-conditions-strip span {
  color: rgba(248, 251, 255, 0.74);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-essential strong {
  color: #f8fbff;
  font-size: 13px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.score-hero-card.score-hero-v2 {
  min-height: 218px;
  padding: 18px 28px 20px;
  border: 0;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(90deg, rgba(3, 17, 35, 0.92) 0%, rgba(6, 25, 45, 0.72) 44%, rgba(6, 25, 45, 0.24) 100%),
    linear-gradient(0deg, rgba(4, 20, 38, 0.82) 0%, rgba(4, 20, 38, 0.08) 58%, rgba(4, 20, 38, 0.52) 100%),
    var(--ground-hero-image, url("../assets/grounds/default-county-ground.jpg")) center / cover no-repeat;
  box-shadow: 0 18px 34px rgba(2, 14, 28, 0.22);
}

.score-hero-v2 .score-hero-essentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
}

.score-hero-v2 .hero-essential {
  min-width: 108px;
  padding: 7px 9px;
  border-radius: 12px;
}

.score-hero-card.score-hero-v2 .score-hero-v2-top {
  align-items: flex-start;
  margin-bottom: 6px;
}

.score-hero-card.score-hero-v2 .score-hero-v2-body {
  grid-template-columns: 1fr;
}

.score-hero-card.score-hero-v2 .score-hero-score h2 {
  margin-bottom: 4px;
  font-size: clamp(20px, 3.4vw, 32px);
}

.score-hero-card.score-hero-v2 .score-hero-score > strong {
  font-size: clamp(38px, 5.2vw, 58px);
}

.score-hero-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-top: 8px;
}

.score-hero-card.score-hero-v2 .score-hero-v2-subline {
  flex: 1 1 auto;
  min-width: 220px;
  margin: 0;
  font-size: clamp(13px, 1.35vw, 15px);
}

.score-hero-card.score-hero-v2 .score-hero-commentary-strap {
  max-width: 920px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.score-hero-user-menu,
.score-hero-user-menu-button {
  position: relative;
  flex: 0 0 auto;
  color: #f8fbff;
  font-family: "Trebuchet MS", sans-serif;
}

.score-hero-user-menu summary,
.score-hero-user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  cursor: pointer;
  list-style: none;
}

.score-hero-user-menu summary::-webkit-details-marker {
  display: none;
}

.score-hero-user-menu span,
.score-hero-user-menu-button span {
  max-width: 130px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-hero-user-menu strong,
.score-hero-user-menu-button strong {
  font-size: 15px;
  line-height: 1;
}

.score-hero-user-menu div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 130px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(5, 22, 41, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.score-hero-user-menu div button {
  width: 100%;
  min-height: 32px;
  border: 0;
  color: #f8fbff;
  background: transparent;
  text-align: left;
}

.score-hero-card.score-hero-v2 {
  gap: 10px;
  min-height: 174px;
  padding: 12px 28px 14px;
}

.score-hero-card.score-hero-v2 .score-hero-v2-top {
  margin-bottom: 0;
}

.score-hero-card.score-hero-v2 .score-hero-v2-competition {
  max-width: min(760px, calc(100vw - 190px));
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-hero-card.score-hero-v2 .score-hero-v2-venue {
  margin-top: 3px;
  font-size: 11px;
}

.score-hero-card.score-hero-v2 .score-hero-v2-body {
  gap: 0;
}

.score-hero-card.score-hero-v2 .score-hero-score {
  gap: 4px;
}

.score-hero-card.score-hero-v2 .score-hero-score h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  font-size: clamp(18px, 2.7vw, 28px);
  line-height: 0.94;
}

.score-hero-card.score-hero-v2 .score-hero-score h2 > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-hero-team-logo {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.32));
}

.score-hero-card.score-hero-v2 .score-hero-score > strong {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 0.86;
}

.score-hero-card.score-hero-v2 .score-hero-score > strong span {
  font-size: 0.22em;
}

.score-hero-card.score-hero-v2 .score-hero-status-row {
  gap: 8px;
  margin-top: 3px;
}

.score-hero-card.score-hero-v2 .score-hero-v2-subline {
  font-size: 13px;
  line-height: 1.08;
}

.score-hero-card.score-hero-v2 .score-hero-essentials {
  gap: 6px;
}

.score-hero-card.score-hero-v2 .hero-essential {
  min-width: 98px;
  padding: 5px 8px;
  border-radius: 10px;
}

.score-hero-card.score-hero-v2 .hero-essential span {
  font-size: 9px;
  letter-spacing: 0.07em;
}

.score-hero-card.score-hero-v2 .hero-essential strong {
  font-size: 11px;
  line-height: 1.12;
}

.score-hero-card.score-hero-v2 .score-hero-commentary-strap {
  max-width: 840px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.22;
}

.score-hero-card.score-hero-v2 .score-hero-user-menu summary,
.score-hero-card.score-hero-v2 .score-hero-user-menu-button {
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 9px;
}

.score-hero-card.score-hero-v2 .score-hero-score h2 {
  font-size: clamp(20px, 3vw, 34px);
}

.match-info-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 0;
  align-items: stretch;
  margin-top: -2px;
  padding: 13px 18px;
  border: 1px solid rgba(13, 52, 77, 0.13);
  border-radius: 14px;
  background: #fbfcfd;
  box-shadow: 0 10px 24px rgba(10, 30, 48, 0.09);
}

.match-info-grid .batting-side,
.match-info-grid .bowling-card {
  min-width: 0;
}

.match-info-grid .batting-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 12px;
  align-items: center;
  padding-right: 16px;
  border-right: 1px solid rgba(13, 52, 77, 0.14);
}

.match-info-grid .batting-cards-grid {
  grid-template-columns: 1fr;
  gap: 4px;
}

.match-info-grid .match-card,
.match-info-grid .batter-card,
.match-info-grid .bowling-card,
.match-info-grid .partnership-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.match-info-grid .partnership-card {
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(13, 52, 77, 0.1);
}

.match-info-grid .partnership-card strong {
  color: #09172a;
  font-size: 13px;
  line-height: 1.15;
}

.match-info-grid .bowling-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: center;
  padding-left: 18px;
}

.match-info-grid .batter-control-card {
  gap: 4px;
}

.match-info-grid .batter-card .player-line,
.match-info-grid .bowling-card .player-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}

.match-info-grid .bowling-card .player-line {
  grid-template-columns: 64px minmax(0, 1fr);
}

.match-info-grid .batter-card .player-line span,
.match-info-grid .bowling-card .player-line span,
.match-info-grid .captaincy-label,
.match-info-grid .meter-head span {
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.match-info-grid .batter-card .player-line strong,
.match-info-grid .bowling-card .player-line strong {
  justify-self: stretch;
  overflow: hidden;
  color: #09172a;
  font-size: 15px;
  line-height: 1.08;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-info-grid .batter-card .player-line span:last-child {
  color: #68715c;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.compact-batter-actions,
.match-info-grid .batter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin-top: 0;
}

.compact-segment-group {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(13, 52, 77, 0.14);
  border-radius: 999px;
  background: #eef3f7;
}

.compact-segment {
  min-height: 25px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid rgba(13, 52, 77, 0.1);
  color: #405269;
  background: transparent;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-segment:last-child {
  border-right: 0;
}

.compact-segment.is-active {
  color: #ffffff;
  background: #0d4a7d;
}

.compact-keep-strike {
  min-width: 34px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(13, 52, 77, 0.16);
  border-radius: 999px;
  color: #405269;
  background: #ffffff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.compact-keep-strike.is-active {
  color: #ffffff;
  border-color: #2d8a4c;
  background: #2d8a4c;
}

.compact-bowler-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-bowler-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #415568;
  background: rgba(13, 52, 77, 0.08);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
}

.match-info-grid .meter-block {
  gap: 4px;
  margin-top: 0;
}

.match-info-grid .meter {
  height: 7px;
}

.match-info-grid .meter-head strong {
  color: #1f6f3a;
  font-size: 12px;
}

.compact-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-info-grid .bowling-actions {
  margin-top: 0;
  padding-top: 4px;
}

.match-info-grid .bowling-actions button {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 10px;
}

.batter-card,
.bowling-card {
  min-height: 0;
}

.batter-control-card {
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
}

.batter-actions {
  justify-content: flex-end;
}

.captaincy-block {
  gap: 7px;
  margin-top: 2px;
  padding-top: 8px;
}

.bowling-card .captaincy-block {
  gap: 5px;
  padding-top: 5px;
}

.compact-intent-block {
  gap: 6px;
}

.intent-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.intent-slider-head strong {
  color: #17344d;
  font-size: 13px;
  font-weight: 800;
}

.intent-slider {
  width: 100%;
  margin: 0;
  accent-color: #0d4a7d;
}

.intent-slider-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.intent-slider-scale span {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bowling-meta-details {
  margin-top: 0;
  border-top: 1px solid rgba(13, 52, 77, 0.08);
  padding-top: 6px;
}

.bowling-meta-details summary {
  cursor: pointer;
  list-style: none;
  color: #496477;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
}

.bowling-meta-details summary::-webkit-details-marker {
  display: none;
}

.bowling-meta-details summary::after {
  content: "▾";
  float: right;
  color: #0d4a7d;
  font-size: 12px;
}

.bowling-meta-details[open] summary::after {
  content: "▴";
}

.bowling-meta-grid {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.bowling-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bowling-meta-row span {
  color: #6a7886;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bowling-meta-row strong {
  color: #17344d;
  font-size: 13px;
  text-align: right;
}

.chip-row {
  gap: 6px;
}

.chip-button {
  padding: 7px 10px;
  font-size: 11px;
}

.condition-pills {
  gap: 6px;
}

.condition-pills span {
  padding: 5px 8px;
  font-size: 11px;
}

.match-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.batter-card .player-line,
.bowling-card .player-line {
  display: grid;
  align-items: flex-start;
}

.batter-card .player-line {
  grid-template-columns: auto 1fr auto;
}

.bowling-card .player-line {
  grid-template-columns: auto 1fr;
}

.batter-card .player-line strong,
.bowling-card .player-line strong,
.metric-row strong,
.condition-main strong {
  font-size: 16px;
}

.batter-card .player-line span,
.bowling-card .player-line span,
.metric-row span,
.meter-head span,
.condition-main span {
  font-size: 11px;
}

.batter-card .batter-actions {
  margin-top: 2px;
}

.batter-card .player-line strong,
.bowling-card .player-line strong {
  justify-self: end;
  text-align: right;
}

.batter-card .player-line span:last-child {
  justify-self: end;
}

.action-bar {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .score-hero-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .season-report-briefs {
    grid-template-columns: 1fr;
  }

  .season-report-brief {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(124, 111, 90, 0.24);
  }

  .season-report-brief:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .county-season-summary-grid,
  .county-season-layout,
  .county-division-grid,
  .county-squad-list,
  .county-squad-summary-grid {
    grid-template-columns: 1fr;
  }

  .county-table-row {
    grid-template-columns: minmax(104px, 1fr) repeat(6, 34px);
    padding: 9px 8px;
  }

  .county-table-preview .county-table-row {
    grid-template-columns: minmax(164px, 1fr) repeat(5, 30px);
  }

  .county-table-team {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
  }

  .county-table-preview .county-table-team {
    gap: 7px;
  }

  .county-table-preview .county-table-team-copy {
    gap: 5px;
  }

  .county-table-preview .county-table-team small {
    font-size: 10px;
  }

  .county-table-team-logo .county-dashboard-badge {
    width: 24px;
    height: 24px;
    padding: 2px;
  }

  .county-table-team-full {
    display: none;
  }

  .county-table-team-compact {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .county-report-news-grid,
  .county-report-around-grid,
  .county-report-flash-grid,
  .county-season-review-grid,
  .county-next-season-grid,
  .county-sim-innings-grid,
  .county-sim-session-list {
    grid-template-columns: 1fr;
  }

  .score-hero-topline,
  .score-hero-essentials {
    width: 100%;
  }

  .score-hero-v2 {
    min-height: 0;
    padding: 16px;
    border-radius: 0 0 20px 20px;
  }

  .score-hero-v2-top,
  .score-hero-v2-meta,
  .score-hero-v2-body {
    display: grid;
    grid-template-columns: 1fr;
  }

  .score-hero-v2-actions {
    justify-content: flex-start;
  }

  .score-hero-status-row {
    display: grid;
    gap: 8px;
  }

  .score-hero-card.score-hero-v2 .score-hero-v2-subline {
    min-width: 0;
  }

  .score-hero-v2 .score-hero-essentials {
    justify-content: flex-start;
  }

  .score-hero-score {
    gap: 14px;
  }

  .score-hero-essentials,
  .match-info-grid {
    grid-template-columns: 1fr;
  }

  .batting-side,
  .batting-cards-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .partnership-card {
    margin-top: 0;
  }
}

@media (max-width: 1180px) {
  .county-dashboard-grid,
  .county-dashboard-hero,
  .county-dashboard-lower-grid {
    grid-template-columns: 1fr;
  }

  .county-dashboard-table-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-dashboard-story-grid,
  .county-dashboard-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-dashboard-next {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 760px) {
  .series-modal-card.county-dashboard-modal {
    width: calc(100vw - 12px);
    padding: 10px;
    border-radius: 16px;
  }

  .county-dashboard-story-grid,
  .county-dashboard-result-grid,
  .county-dashboard-highlight-grid,
  .county-overview-grid,
  .county-dashboard-table-pair,
  .county-season-command-strip,
  .county-feature-performance-strip,
  .county-feature-score-grid {
    grid-template-columns: 1fr;
  }

  .county-season-command-stats {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .county-season-result-teams {
    grid-template-columns: 1fr;
  }

  .county-season-result-row .county-result-pill {
    min-height: 40px;
  }

  .county-feature-scorecard {
    padding: 12px;
  }

  .county-feature-scorecard-head,
  .county-feature-innings-card > header {
    display: grid;
  }

  .county-feature-scorecard-head em,
  .county-feature-innings-card header strong {
    justify-self: start;
    text-align: left;
  }

  .county-feature-score-table {
    font-size: 12px;
  }

  .county-feature-score-table th,
  .county-feature-score-table td {
    padding: 6px 4px;
  }

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

  .county-tab-panel[data-county-tab-panel="squad"] .table-scroll {
    overflow: visible;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table,
  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table tbody,
  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table tr,
  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table thead {
    display: none;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table tbody {
    display: grid;
    gap: 10px;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid rgba(31, 77, 53, 0.13);
    border-radius: 14px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: 0 8px 18px rgba(8, 28, 46, 0.08);
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #102235;
    font-size: 13px;
    line-height: 1.25;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td::before {
    content: attr(data-label);
    color: #6a7786;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(31, 77, 53, 0.10);
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td:first-child::before {
    display: none;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td:first-child strong {
    font-size: 19px;
    line-height: 1.1;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td[data-label="Batting"],
  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table td[data-label="Bowling"] {
    grid-column: 1 / -1;
  }

  .county-tab-panel[data-county-tab-panel="squad"] .county-squad-table-row.is-unavailable {
    background: rgba(244, 232, 229, 0.96);
  }

  .county-overview-nav {
    gap: 6px;
    padding: 8px;
  }

  .county-overview-nav button {
    min-height: 42px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .county-dashboard-lower-grid .county-table-row {
    grid-template-columns: 26px minmax(96px, 1fr) repeat(6, 30px);
    font-size: 11px;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 22px auto 0;
  width: min(1180px, calc(100% - 32px));
  padding: 18px 0 28px;
  color: #556070;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #0d4a7d;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }
}

.privacy-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  padding: 24px;
  overflow: auto;
  background: rgba(3, 12, 26, 0.72);
}

.privacy-panel:target {
  display: grid;
  place-items: start center;
}

.privacy-sheet {
  width: min(760px, 100%);
  padding: 28px;
  border-radius: 12px;
  color: #162033;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(3, 12, 26, 0.32);
  font-family: "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

.privacy-sheet h2,
.privacy-sheet h3,
.privacy-sheet p {
  margin-top: 0;
}

.privacy-sheet h2 {
  margin-bottom: 8px;
  color: #071935;
  font-size: 28px;
}

.privacy-sheet h3 {
  margin: 22px 0 8px;
  color: #0d4a7d;
  font-size: 16px;
}

.privacy-sheet ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.privacy-sheet a {
  color: #0d6bbd;
  font-weight: 800;
}

.privacy-close {
  float: right;
  margin-left: 16px;
  color: #0d4a7d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Match centre compact card: intentionally late so it wins over older match-card rules. */
.match-center .score-hero-card.score-hero-v2 .score-hero-score h2 {
  font-size: clamp(20px, 3vw, 34px);
}

.match-center .match-info-grid {
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 0;
  align-items: stretch;
  margin-top: -2px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(13, 52, 77, 0.13);
  border-radius: 14px;
  background: #fbfcfd;
  box-shadow: 0 10px 24px rgba(10, 30, 48, 0.09);
}

.match-center .match-info-grid .batting-side {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding: 0 14px 0 0;
  border-right: 1px solid rgba(13, 52, 77, 0.14);
}

.match-center .match-info-grid .batting-cards-grid {
  grid-template-columns: 1fr;
  gap: 4px;
}

.match-center .match-info-grid .match-card,
.match-center .match-info-grid .batter-card,
.match-center .match-info-grid .bowling-card,
.match-center .match-info-grid .partnership-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.match-center .match-info-grid .partnership-card {
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(13, 52, 77, 0.1);
}

.match-center .match-info-grid .partnership-card strong {
  color: #09172a;
  font-size: 13px;
  line-height: 1.15;
}

.match-center .match-info-grid .bowling-card {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  padding: 0 14px;
  border-right: 1px solid rgba(13, 52, 77, 0.14);
}

.match-center .match-info-grid .batting-side > .eyebrow,
.match-center .match-info-grid .bowling-card > .eyebrow,
.match-center .current-over-card-head .eyebrow {
  margin: 0;
  min-height: 13px;
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.match-center .match-info-grid .batter-control-card {
  gap: 4px;
}

.match-center .match-info-grid .batter-card .player-line,
.match-center .match-info-grid .bowling-card .player-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
}

.match-center .match-info-grid .bowling-card .player-line {
  grid-template-columns: 64px minmax(0, 1fr);
}

.match-center .match-info-grid .batter-card .player-line span,
.match-center .match-info-grid .bowling-card .player-line span,
.match-center .match-info-grid .captaincy-label,
.match-center .match-info-grid .meter-head span {
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.match-center .match-info-grid .batter-card .player-line strong,
.match-center .match-info-grid .bowling-card .player-line strong {
  justify-self: stretch;
  overflow: hidden;
  color: #09172a;
  font-size: 15px;
  line-height: 1.08;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center .match-info-grid .batter-card .player-line span:last-child {
  display: none;
}

.match-center .compact-batter-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.match-center .compact-batter-name {
  min-width: 0;
  overflow: hidden;
  color: #09172a;
  font-size: 15px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center .compact-batter-score {
  min-width: 54px;
  color: #09172a;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.match-center .compact-bowler-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(58px, auto);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.match-center .compact-bowler-name {
  min-width: 0;
  overflow: hidden;
  color: #09172a;
  font-size: 15px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center .compact-bowler-figures {
  min-width: 58px;
  color: #09172a;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.match-center .compact-change-bowler {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(13, 52, 77, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: #0d4a7d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-center .compact-batter-control-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.match-center .compact-intent-stepper {
  display: inline-grid;
  grid-template-columns: 19px minmax(56px, auto) 19px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(13, 52, 77, 0.14);
  border-radius: 999px;
  background: #eef3f7;
}

.match-center .compact-intent-stepper button {
  min-width: 19px;
  min-height: 22px;
  padding: 0;
  border: 0;
  color: #0d4a7d;
  background: transparent;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.match-center .compact-intent-stepper button:disabled {
  color: #9aa8b5;
  opacity: 0.45;
}

.match-center .compact-intent-stepper span {
  padding: 0 5px;
  color: #405269;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-center .compact-field-stepper {
  grid-template-columns: 19px minmax(58px, auto) 19px;
}

.match-center .compact-batter-actions,
.match-center .match-info-grid .batter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin-top: 0;
}

.match-center .compact-segment-group {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(13, 52, 77, 0.14);
  border-radius: 999px;
  background: #eef3f7;
}

.match-center .compact-segment {
  min-height: 23px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid rgba(13, 52, 77, 0.1);
  color: #405269;
  background: transparent;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-center .compact-segment:last-child {
  border-right: 0;
}

.match-center .compact-segment.is-active {
  color: #ffffff;
  background: #0d4a7d;
}

.match-center .compact-keep-strike {
  min-width: 30px;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(13, 52, 77, 0.16);
  border-radius: 999px;
  color: #405269;
  background: #ffffff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.match-center .compact-keep-strike.is-active {
  color: #ffffff;
  border-color: #2d8a4c;
  background: #2d8a4c;
}

.match-center .compact-bowler-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-center .compact-bowler-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #415568;
  background: rgba(13, 52, 77, 0.08);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
}

.match-center .match-info-grid .meter-block {
  gap: 4px;
  margin-top: 0;
}

.match-center .match-info-grid .meter {
  height: 7px;
}

.match-center .match-info-grid .meter-head strong {
  color: #1f6f3a;
  font-size: 12px;
}

.match-center .compact-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.match-center .match-info-grid .bowling-actions {
  margin-top: 0;
  padding-top: 4px;
}

.match-center .match-info-grid .bowling-actions button {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 10px;
}

.match-center .match-info-grid .current-over-card {
  grid-column: 3;
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  padding: 0 4px 0 22px;
}

.match-center .current-over-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.match-center .current-over-card-head strong {
  color: #09172a;
  font-size: 15px;
}

.match-center .current-over-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: start;
  min-height: 28px;
}

.match-center .current-over-balls .subtle {
  display: block;
  overflow: hidden;
  color: #526479;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center .compact-over-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  color: #09172a;
  background: #eef2f5;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.match-center .compact-over-chip.is-runs {
  background: #dfeedd;
}

.match-center .compact-over-chip.is-boundary {
  color: #ffffff;
  background: #2d8a4c;
}

.match-center .compact-over-chip.is-wicket {
  color: #ffffff;
  background: #b3272d;
}

.match-center .current-over-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.match-center .current-session-mini {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(13, 52, 77, 0.08);
}

.match-center .current-session-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: baseline;
}

.match-center .current-session-copy span {
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-center .current-session-copy strong {
  overflow: hidden;
  color: #09172a;
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center .current-session-copy em {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.match-center .session-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9dee5;
}

.match-center .session-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d3a832;
}

@media (max-width: 900px) {
  .match-center .match-info-grid,
  .match-center .match-info-grid .batting-side {
    grid-template-columns: 1fr;
  }

  .match-center .match-info-grid {
    gap: 10px;
    padding: 12px;
  }

  .match-center .match-info-grid .batting-side,
  .match-center .match-info-grid .bowling-card {
    grid-column: auto;
    padding: 0;
    border-right: 0;
  }

  .match-center .match-info-grid .bowling-card {
    grid-column: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(13, 52, 77, 0.12);
  }

  .match-center .match-info-grid .current-over-card {
    grid-column: auto;
    padding: 10px 0 0;
    border-top: 1px solid rgba(13, 52, 77, 0.12);
  }

  .match-center .compact-batter-line,
  .match-center .compact-bowler-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }

  .match-center .compact-batter-control-row,
  .match-center .compact-change-bowler {
    grid-column: 1;
    justify-self: start;
  }

  .match-center .compact-batter-score,
  .match-center .compact-bowler-figures {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .match-center .compact-bowler-meta {
    gap: 4px;
  }

  .match-center .current-over-card-head,
  .match-center .current-session-copy {
    gap: 8px;
  }
}

/* Compact ball-by-ball commentary feed. */
.feed-stack {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}

.feed-stack > section {
  min-width: 0;
  padding: 12px 14px;
}

.feed-stack > section:first-child {
  padding-bottom: 12px;
}

.commentary-container.commentary-list {
  display: grid;
  gap: 0;
  max-height: 192px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
}

.commentary-row {
  display: grid;
  grid-template-columns: 42px 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(13, 52, 77, 0.08);
  cursor: pointer;
}

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

.commentary-row.is-latest {
  background: rgba(13, 74, 125, 0.07);
}

.commentary-row:hover,
.commentary-row:focus-visible,
.events-list .event-card:hover,
.events-list .event-card:focus-visible {
  outline: none;
  background: rgba(13, 74, 125, 0.08);
}

.commentary-row.is-expanded {
  align-items: start;
  background: rgba(13, 74, 125, 0.10);
}

.commentary-row.is-empty {
  grid-template-columns: 42px 30px minmax(0, 1fr);
}

.commentary-over {
  color: #0d4a7d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.commentary-result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #09172a;
  background: #eef2f5;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.commentary-result-chip.is-runs {
  background: #dfeedd;
}

.commentary-result-chip.is-boundary {
  color: #ffffff;
  background: #2d8a4c;
}

.commentary-result-chip.is-wicket {
  color: #ffffff;
  background: #b3272d;
}

.commentary-result-chip.is-extra {
  color: #ffffff;
  background: #3669aa;
  font-size: 10px;
}

.commentary-result-chip.is-note {
  color: #21445f;
  background: #e3edf6;
}

.commentary-row strong {
  min-width: 0;
  overflow: hidden;
  color: #09172a;
  font-size: 13px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commentary-row.is-expanded strong {
  overflow: visible;
  white-space: normal;
}

.commentary-row.is-expanded .commentary-meta {
  align-self: start;
}

.events-container.events-list {
  display: grid;
  gap: 6px;
  max-height: 192px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
}

.events-list .event-card {
  width: auto;
  max-width: none;
  min-height: 0;
  padding: 8px 9px;
  border-radius: 12px;
  cursor: pointer;
  scroll-snap-align: none;
}

.events-list .event-card.is-expanded {
  background: rgba(13, 74, 125, 0.08);
}

.events-list .event-card strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-list .event-card.is-expanded strong {
  overflow: visible;
  white-space: normal;
}

.events-list .event-card span {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.15;
}

.events-list .event-card em {
  padding: 4px 7px;
  font-size: 9px;
}

.commentary-container.commentary-list::-webkit-scrollbar,
.events-container.events-list::-webkit-scrollbar {
  width: 7px;
}

.commentary-container.commentary-list::-webkit-scrollbar-thumb,
.events-container.events-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(13, 52, 77, 0.24);
}

.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 -12px 30px rgba(4, 18, 32, 0.18);
}

.commentary-meta {
  color: #68715c;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .feed-stack {
    grid-template-columns: 1fr;
  }

  .feed-stack > section {
    padding: 12px;
  }

  .commentary-row {
    grid-template-columns: 38px 28px minmax(0, 1fr);
    gap: 8px;
  }

  .commentary-meta {
    display: none;
  }
}

/* Match centre polish: forecast, scorecard and selection prompts. */
#matchInfoPanel.panel,
#scorecard.panel,
#openingSetupPanel.panel {
  padding: 16px;
  border-color: rgba(13, 52, 77, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,253,0.98) 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 36, 0.08);
}

.match-info-panel {
  gap: 12px;
}

.match-info-panel .forecast-block,
.scorecard-shell,
.opening-card {
  gap: 12px;
}

.match-info-panel .forecast-head,
.scorecard-head,
.opening-card > div:first-child {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13, 52, 77, 0.08);
}

.match-info-panel .forecast-head h3,
.scorecard-head h2,
.opening-card h2 {
  margin: 0;
  color: #09172a;
  letter-spacing: -0.02em;
}

.match-info-panel .forecast-head h3 {
  font-size: 18px;
}

.scorecard-head h2,
.opening-card h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.02;
}

.match-info-panel .forecast-head span,
.match-insight-label,
.scorecard-card .eyebrow,
.scorecard-total span,
.opening-card .eyebrow,
.opening-card .prematch-field span {
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.match-info-panel .forecast-strip {
  gap: 8px;
  padding: 2px 1px 4px;
}

.match-info-panel .forecast-card {
  min-width: 128px;
  padding: 10px 11px;
  border-color: rgba(13, 52, 77, 0.11);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.match-info-panel .forecast-card.is-active {
  border-color: rgba(13, 74, 125, 0.22);
  background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 100%);
}

.match-info-panel .forecast-card strong {
  color: #09172a;
  font-size: 17px;
  line-height: 1;
}

.match-info-panel .forecast-card em {
  margin: 6px 0 3px;
  color: #09172a;
  font-size: 13px;
  line-height: 1.15;
}

.match-info-panel .forecast-card span,
.match-info-panel .forecast-card small {
  color: #526479;
  font-size: 11px;
}

.match-insight-grid {
  gap: 10px;
}

.match-insight-card {
  gap: 8px;
  min-height: 0;
  padding: 12px;
  border-color: rgba(13, 52, 77, 0.10);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.match-insight-card strong {
  color: #09172a;
  font-size: 15px;
  line-height: 1.2;
}

.match-insight-details {
  padding-top: 8px;
  border-top-color: rgba(13, 52, 77, 0.08);
}

.match-insight-details summary {
  color: #0d4a7d;
  font-size: 11px;
}

.match-insight-details p {
  margin-top: 8px;
  color: #526479;
  font-size: 13px;
  line-height: 1.4;
}

.scorecard-shell {
  color: #09172a;
}

.scorecard-head {
  align-items: center;
}

.scorecard-head .subtle,
.opening-card .subtle {
  margin: 4px 0 0;
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.scorecard-total {
  min-width: 112px;
  padding: 10px 12px;
  border-color: rgba(13, 52, 77, 0.10);
  border-radius: 14px;
  background: #ffffff;
}

.scorecard-total strong {
  color: #09172a;
  font-size: 26px;
  line-height: 1;
}

.scorecard-tabs {
  gap: 8px;
}

.scorecard-tab {
  min-width: 152px;
  padding: 9px 10px;
  border-radius: 12px;
}

.scorecard-tab strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorecard-grid {
  gap: 12px;
}

.scorecard-card {
  padding: 12px;
  border-color: rgba(13, 52, 77, 0.10);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.score-table th {
  padding: 7px 6px;
  color: #526479;
  font-size: 10px;
}

.score-table td {
  padding: 7px 6px;
  border-bottom-color: rgba(13, 52, 77, 0.08);
  font-size: 13px;
}

.score-table td strong {
  color: #09172a;
}

.extras-line {
  margin-top: 10px;
  color: #526479;
  font-size: 12px;
}

.fall-of-wickets-line {
  line-height: 1.45;
}

#openingSetupPanel.panel {
  max-width: 980px;
  margin: 0 auto;
}

.app-shell.is-setup-pending #openingSetupPanel.panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  width: min(920px, calc(100vw - 32px));
  max-height: min(78vh, 620px);
  margin: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 28px 70px rgba(5, 20, 36, 0.34);
}

.app-shell.is-setup-pending::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 16, 28, 0.34);
  backdrop-filter: blur(2px);
}

.opening-card {
  color: #09172a;
}

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

.opening-grid.batter-change-grid,
.opening-grid.bowling-change-grid {
  grid-template-columns: minmax(260px, 420px);
}

.opening-card .prematch-field {
  gap: 6px;
}

.opening-card select {
  min-height: 44px;
  border-color: rgba(13, 52, 77, 0.14);
  border-radius: 13px;
  color: #09172a;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

#openingSetupPanel .opening-actions,
#openingSetupPanel .toss-actions {
  gap: 8px;
}

#openingSetupPanel .opening-actions button,
#openingSetupPanel .toss-actions button,
#openingSetupPanel .opening-card button {
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d4a7d 0%, #08365d 100%);
  box-shadow: 0 8px 18px rgba(13, 52, 77, 0.16);
  font-size: 12px;
  letter-spacing: 0.02em;
}

#openingSetupPanel .toss-actions button[data-follow-on-decline] {
  color: #0d2b44;
  border: 1px solid rgba(13, 52, 77, 0.12);
  background: #ffffff;
  box-shadow: none;
}

@media (max-width: 760px) {
  #matchInfoPanel.panel,
  #scorecard.panel,
  #openingSetupPanel.panel {
    padding: 12px;
  }

  .match-info-panel .forecast-head,
  .scorecard-head,
  .opening-card > div:first-child {
    align-items: start;
  }

  .match-info-panel .forecast-card {
    min-width: 118px;
  }

  .scorecard-head {
    align-items: stretch;
  }

  .scorecard-total {
    text-align: left;
  }

  .scorecard-tab {
    flex: 1 1 150px;
    min-width: 0;
  }

  .opening-grid,
  .opening-grid.batter-change-grid,
  .opening-grid.bowling-change-grid {
    grid-template-columns: 1fr;
  }

  #openingSetupPanel .opening-actions,
  #openingSetupPanel .toss-actions {
    justify-content: stretch;
  }

  #openingSetupPanel .opening-actions button,
  #openingSetupPanel .toss-actions button {
    width: 100%;
  }
}

/* Pre-match and toss polish. */
#preMatchPanel.panel,
#tossPanel.panel {
  padding: 16px;
  border-color: rgba(13, 52, 77, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,253,0.98) 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 36, 0.08);
}

#preMatchPanel .prematch-head {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(13, 52, 77, 0.08);
}

#preMatchPanel .prematch-head h2 {
  margin: 0;
  color: #09172a;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

#preMatchPanel .prematch-title .eyebrow,
#preMatchPanel .custom-section .eyebrow,
#preMatchPanel .prematch-weather-head .eyebrow,
#preMatchPanel .prematch-field span,
#tossPanel .eyebrow,
#tossPanel .forecast-head span {
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

#preMatchPanel .prematch-content,
#preMatchPanel .custom-setup-card,
#tossPanel .toss-card {
  gap: 12px;
}

#preMatchPanel .landing-detail-card.custom-setup-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#preMatchPanel .custom-section,
#preMatchPanel .custom-summary-strip,
#preMatchPanel .prematch-weather-card,
#preMatchPanel .custom-start-row,
#tossPanel .toss-briefing-card {
  border: 1px solid rgba(13, 52, 77, 0.10);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

#preMatchPanel .custom-section,
#preMatchPanel .custom-summary-strip,
#preMatchPanel .custom-start-row {
  padding: 12px;
}

#preMatchPanel .custom-section h3 {
  margin: 0;
  color: #09172a;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.05;
}

#preMatchPanel .custom-section .subtle,
#preMatchPanel .custom-status span {
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

#preMatchPanel .custom-team-grid,
#preMatchPanel .prematch-grid {
  gap: 10px;
}

#preMatchPanel .series-match-prep-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

#preMatchPanel .series-match-prep-card > * {
  grid-column: 1 / -1;
}

#preMatchPanel .series-match-prep-card > .custom-section:first-child,
#preMatchPanel .series-match-prep-card > .prematch-fixture-strip {
  grid-column: 1;
}

#preMatchPanel .series-match-prep-card > .prematch-weather-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .custom-section:first-child {
  display: none;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .season-report-sheet {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  margin: 0;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .prematch-fixture-strip {
  grid-column: 3;
  grid-row: 1;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .prematch-weather-card {
  grid-column: 3;
  grid-row: 2;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .prematch-weather-card .prematch-weather-head {
  display: none;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-sheet {
  padding: 14px;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-head {
  grid-template-columns: 96px minmax(0, 1fr) 112px;
  gap: 10px;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-stamp {
  padding: 7px 8px;
  font-size: 10px;
  line-height: 1.18;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-masthead {
  font-size: clamp(30px, 4.2vw, 48px);
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-deck {
  margin-top: 5px;
  font-size: 11px;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-rule {
  margin: 10px 0;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-body {
  gap: 10px;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-headline {
  font-size: clamp(26px, 4.4vw, 44px);
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-subline {
  font-size: 17px;
  line-height: 1.28;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .series-report-meta {
  padding-top: 9px;
}

#preMatchPanel .series-match-prep-card:has(.season-report-sheet) .season-report-briefs {
  padding-top: 9px;
}

#preMatchPanel .prematch-compact-brief {
  display: grid;
  align-content: start;
  min-height: 0;
}

#preMatchPanel .prematch-fixture-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: center;
}

#preMatchPanel .prematch-fixture-strip > span {
  grid-column: auto;
  justify-self: start;
}

#preMatchPanel .prematch-fixture-strip .prematch-versus {
  justify-self: start;
  padding: 0 8px;
  color: #0d4a7d;
  background: transparent;
}

#preMatchPanel .prematch-team-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(13, 52, 77, 0.10);
  border-radius: 14px;
  background: #f8fbff;
}

#preMatchPanel .prematch-team-pill .summary-flag {
  width: 32px;
  height: 32px;
  background: #ffffff;
}

#preMatchPanel .summary-flag .prematch-county-logo {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

#preMatchPanel .summary-team-copy {
  display: grid;
  min-width: 0;
}

#preMatchPanel .summary-team-copy b {
  overflow: hidden;
  color: #09172a;
  font-size: 15px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#preMatchPanel .summary-team-copy small {
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#preMatchPanel .prematch-field,
#preMatchPanel .prematch-field-static {
  min-height: 0;
}

#preMatchPanel .prematch-field select,
#preMatchPanel .prematch-field input[type="text"],
#preMatchPanel .prematch-field input[type="number"],
#preMatchPanel .prematch-field-static {
  min-height: 44px;
  border-color: rgba(13, 52, 77, 0.14);
  border-radius: 13px;
  color: #09172a;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

#preMatchPanel .prematch-field-static strong {
  color: #09172a;
  font-size: 15px;
}

#preMatchPanel .prematch-field-static small,
#preMatchPanel .prematch-team-meta small {
  color: #526479;
}

#preMatchPanel .custom-summary-strip {
  padding-top: 12px;
}

#preMatchPanel .prematch-summary span,
#preMatchPanel .prematch-summary strong {
  padding: 7px 10px;
  border-color: rgba(13, 52, 77, 0.10);
  border-radius: 999px;
  background: #f7fafc;
  color: #09172a;
  font-size: 12px;
}

#preMatchPanel .prematch-weather-card {
  gap: 10px;
  padding: 10px;
}

#preMatchPanel .prematch-weather-head {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13, 52, 77, 0.08);
}

#preMatchPanel .prematch-weather-head strong {
  color: #09172a;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.04;
}

#preMatchPanel .prematch-weather-head span {
  color: #526479;
  font-size: 12px;
}

#preMatchPanel .custom-preview-meta span,
#tossPanel .toss-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(13, 52, 77, 0.10);
  border-radius: 999px;
  color: #254056;
  background: #f7fafc;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

#preMatchPanel .forecast-block,
#tossPanel .forecast-block {
  gap: 8px;
}

#preMatchPanel .forecast-head,
#tossPanel .forecast-head {
  align-items: center;
}

#preMatchPanel .forecast-head h3,
#tossPanel .forecast-head h3 {
  margin: 0;
  color: #09172a;
  font-size: 18px;
  letter-spacing: -0.01em;
}

#preMatchPanel .forecast-strip,
#tossPanel .forecast-strip {
  gap: 8px;
  padding: 2px 1px 4px;
}

#preMatchPanel .forecast-card,
#tossPanel .forecast-card {
  min-width: 128px;
  padding: 10px 11px;
  border-color: rgba(13, 52, 77, 0.11);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

#preMatchPanel .forecast-card.is-active,
#tossPanel .forecast-card.is-active {
  border-color: rgba(13, 74, 125, 0.22);
  background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 100%);
}

#preMatchPanel .forecast-card strong,
#tossPanel .forecast-card strong {
  color: #09172a;
  font-size: 17px;
  line-height: 1;
}

#preMatchPanel .forecast-card em,
#tossPanel .forecast-card em {
  margin: 6px 0 3px;
  color: #09172a;
  font-size: 13px;
  line-height: 1.15;
}

#preMatchPanel .forecast-card span,
#preMatchPanel .forecast-card small,
#tossPanel .forecast-card span,
#tossPanel .forecast-card small {
  color: #526479;
  font-size: 11px;
}

#preMatchPanel .custom-start-row {
  align-items: center;
  padding-top: 12px;
}

#preMatchPanel .custom-status strong {
  color: #09172a;
}

#preMatchPanel .custom-start-actions button,
#preMatchPanel #startCustomMatchBtn,
#tossPanel .toss-actions button {
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d4a7d 0%, #08365d 100%);
  box-shadow: 0 8px 18px rgba(13, 52, 77, 0.16);
  font-size: 12px;
  letter-spacing: 0.02em;
}

#preMatchPanel .custom-start-actions .secondary-button {
  color: #0d2b44;
  border: 1px solid rgba(13, 52, 77, 0.12);
  background: #ffffff;
  box-shadow: none;
}

#tossPanel .toss-card {
  color: #09172a;
}

#tossPanel .toss-main {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13, 52, 77, 0.08);
}

#tossPanel .toss-card h2 {
  margin: 0;
  color: #09172a;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

#tossPanel .toss-card .subtle {
  margin: 4px 0 0;
  color: #526479;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

#tossPanel .toss-actions {
  gap: 8px;
  justify-content: flex-end;
}

#tossPanel .toss-briefing-grid {
  gap: 10px;
}

#tossPanel .toss-briefing-card {
  gap: 8px;
  padding: 12px;
}

#tossPanel .toss-briefing-card strong {
  color: #09172a;
  font-size: 16px;
  line-height: 1.15;
}

#tossPanel .toss-briefing-card p,
#tossPanel .toss-briefing-card small {
  color: #526479;
  font-size: 13px;
  line-height: 1.38;
}

#tossPanel .toss-briefing-card .eyebrow {
  color: #526479;
}

.prep-hero-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  min-height: 170px;
  overflow: hidden;
  padding: 18px 22px;
  border-radius: 20px;
  color: #f8fbff;
  background:
    linear-gradient(90deg, rgba(3, 17, 35, 0.94) 0%, rgba(6, 25, 45, 0.78) 48%, rgba(6, 25, 45, 0.42) 100%),
    var(--ground-hero-image, url("../assets/grounds/default-county-ground.jpg")) center / cover no-repeat;
  box-shadow: 0 14px 30px rgba(8, 27, 45, 0.18);
}

.prep-hero-card-stacked {
  min-height: 188px;
  align-content: space-between;
}

.prep-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 17, 31, 0.10) 0%, rgba(4, 17, 31, 0.54) 100%);
}

.prep-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.prep-hero-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.prep-hero-match-info {
  display: grid;
  gap: 4px;
  max-width: min(44vw, 430px);
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: rgba(248, 251, 255, 0.9);
  background: rgba(4, 17, 31, 0.34);
  font-family: "Trebuchet MS", sans-serif;
  text-align: right;
  backdrop-filter: blur(12px);
}

.prep-hero-match-info strong,
.prep-hero-match-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-hero-match-info strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prep-hero-match-info span {
  color: rgba(248, 251, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.prep-hero-kicker,
.prep-hero-venue {
  margin: 0;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prep-hero-kicker {
  color: #ffffff;
  font-size: 13px;
}

.prep-hero-venue {
  margin-top: 5px;
  color: rgba(248, 251, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.prep-hero-toggle {
  flex: 0 0 auto;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.prep-hero-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.prep-hero-fixture-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  max-width: 760px;
  align-items: start;
}

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

.prep-hero-fixture-stack .prep-hero-team {
  width: min(100%, 720px);
}

.prep-hero-team:nth-child(3) {
  direction: rtl;
  text-align: right;
}

.prep-hero-fixture-stack .prep-hero-team:nth-child(3) {
  direction: ltr;
  text-align: left;
}

.prep-hero-team:nth-child(3) > * {
  direction: ltr;
}

.prep-hero-team-logo {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.prep-hero-team-logo img,
.prep-hero-team-logo svg,
.prep-hero-team-logo .team-flag-fallback {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.prep-hero-team strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(21px, 2.9vw, 34px);
  line-height: 0.94;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prep-hero-fixture-stack .prep-hero-team strong {
  font-size: clamp(24px, 3.2vw, 38px);
}

.prep-hero-team small {
  display: block;
  margin-top: 4px;
  color: rgba(248, 251, 255, 0.72);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prep-hero-versus {
  color: #d3a832;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.prep-hero-fixture-stack .prep-hero-versus {
  display: block;
  margin-left: 64px;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  line-height: 1;
}

.prep-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prep-hero-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.86);
  background: rgba(255, 255, 255, 0.10);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.prep-hero-meta-inline {
  justify-content: flex-end;
}

#preMatchPanel .prep-hero-card {
  margin-bottom: 12px;
}

#tossPanel .toss-hero-card {
  margin-bottom: 2px;
}

#tossPanel .toss-main {
  margin-top: 2px;
}

@media (max-width: 760px) {
  #preMatchPanel.panel,
  #tossPanel.panel {
    padding: 12px;
  }

  #preMatchPanel .prematch-head,
  #preMatchPanel .prematch-weather-head,
  #preMatchPanel .custom-start-row,
  #tossPanel .toss-main {
    align-items: stretch;
    flex-direction: column;
  }

  #preMatchPanel .custom-start-actions,
  #tossPanel .toss-actions {
    justify-content: stretch;
    width: 100%;
  }

  #preMatchPanel .custom-start-actions button,
  #preMatchPanel #startCustomMatchBtn,
  #tossPanel .toss-actions button {
    flex: 1 1 0;
    width: 100%;
  }

  #preMatchPanel .forecast-card,
  #tossPanel .forecast-card {
    min-width: 118px;
  }

  #preMatchPanel .series-match-prep-card,
  #preMatchPanel .series-match-prep-card > .custom-section:first-child,
  #preMatchPanel .series-match-prep-card > .prematch-fixture-strip,
  #preMatchPanel .series-match-prep-card > .prematch-weather-card,
  #preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .season-report-sheet,
  #preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .prematch-fixture-strip,
  #preMatchPanel .series-match-prep-card:has(.season-report-sheet) > .prematch-weather-card,
  #preMatchPanel .prematch-fixture-strip {
    grid-template-columns: 1fr;
    grid-column: 1;
    grid-row: auto;
  }

  #preMatchPanel .prematch-fixture-strip .prematch-versus {
    justify-self: start;
  }

  #tossPanel .toss-briefing-grid {
    grid-template-columns: 1fr;
  }

  .prep-hero-card {
    min-height: 0;
    padding: 15px;
  }

  .prep-hero-top,
  .prep-hero-fixture {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .prep-hero-top {
    flex-direction: column;
  }

  .prep-hero-team:nth-child(3) {
    direction: ltr;
    text-align: left;
  }

  .prep-hero-team strong {
    font-size: 23px;
  }

  .prep-hero-versus {
    margin-left: 64px;
  }
}

.app-shell.is-pre-match {
  width: 100%;
  padding-top: 0;
}

.app-shell.is-pre-match > .hero {
  display: none;
}

.app-shell.is-pre-match #preMatchPanel.panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f4f7fb;
  box-shadow: none;
}

.app-shell.is-pre-match #preMatchPanel .prematch-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: -112px auto 0;
}

.app-shell.is-pre-match .landing-hero {
  min-height: 670px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background-position: center top;
}

.app-shell.is-pre-match .landing-hero-topbar {
  min-height: 74px;
  padding: 0 36px;
  gap: 24px;
  flex-wrap: nowrap;
  background: rgba(2, 9, 22, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.app-shell.is-pre-match .landing-hero-brand {
  min-width: 240px;
  gap: 14px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.app-shell.is-pre-match .landing-hero-logo {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.app-shell.is-pre-match .landing-hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-shell.is-pre-match .landing-hero-brand-label {
  color: #ffffff;
  font-weight: 900;
}

.app-shell.is-pre-match .landing-hero-menu {
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.app-shell.is-pre-match .topbar-link {
  position: relative;
  min-height: 74px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell.is-pre-match .topbar-link.is-active::after,
.app-shell.is-pre-match .topbar-link:hover::after,
.app-shell.is-pre-match .topbar-link:focus-visible::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #1b86ff;
}

.app-shell.is-pre-match .topbar-mobile-select {
  display: none;
}

.app-shell.is-pre-match .landing-hero-account {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.app-shell.is-pre-match .topbar-user,
.app-shell.is-pre-match .topbar-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(3, 15, 36, 0.42);
  box-shadow: none;
  color: #ffffff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
}

.app-shell.is-pre-match .topbar-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.app-shell.is-pre-match .landing-hero-body {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
  padding: 72px 0 170px;
}

.app-shell.is-pre-match .landing-hero-copy {
  max-width: 620px;
  gap: 12px;
}

.app-shell.is-pre-match .landing-hero-copy .eyebrow {
  display: none;
}

.app-shell.is-pre-match .landing-hero-copy h1 {
  max-width: 690px;
  color: #ffffff;
  font-family: "Arial Narrow", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(48px, 6.2vw, 78px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.app-shell.is-pre-match .landing-hero-copy h1 span {
  display: block;
}

.app-shell.is-pre-match .landing-hero-copy h1 span:last-child {
  white-space: nowrap;
}

.app-shell.is-pre-match .landing-hero-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.app-shell.is-pre-match .landing-hero-copy .landing-hero-lede {
  color: #1b86ff;
  font-size: 18px;
  font-weight: 900;
}

.app-shell.is-pre-match .hero-actions {
  margin-top: 10px;
  gap: 16px;
}

.app-shell.is-pre-match .hero-button,
.app-shell.is-pre-match .hero-secondary-button {
  min-width: 178px;
  min-height: 48px;
  border-radius: 6px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell.is-pre-match .hero-button {
  background: linear-gradient(180deg, #1f8dff 0%, #0864d6 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.app-shell.is-pre-match .hero-secondary-button {
  background: rgba(3, 15, 36, 0.48);
  border-color: rgba(255, 255, 255, 0.78);
}

.button-play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 12px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  vertical-align: -2px;
}

.landing-featured-match {
  margin-top: 30px;
  color: #ffffff;
  font-family: "Trebuchet MS", sans-serif;
}

.landing-featured-match .eyebrow,
.landing-section-label {
  margin: 0 0 12px;
  color: #0d73e8;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-featured-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.landing-featured-row > div:first-child strong {
  display: block;
  font-size: 22px;
}

.landing-featured-row > div:first-child span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.landing-featured-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-featured-score .team-flag-img,
.landing-featured-score .team-flag-fallback {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
}

.landing-featured-score strong {
  font-size: 16px;
}

.landing-featured-score em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.landing-featured-save-meta {
  align-items: center;
}

.landing-featured-save-meta .saved-match-badge {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.10);
}

.landing-featured-save-meta strong {
  color: #ffffff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell.is-pre-match .landing-grid-highlight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.app-shell.is-pre-match .landing-card {
  min-height: 290px;
  padding: 0 0 16px;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(7, 25, 53, 0.10);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(6, 25, 53, 0.10);
}

.landing-card-image {
  position: relative;
  min-height: 138px;
  background-position: center;
  background-size: cover;
}

.app-shell.is-pre-match .landing-card-copy {
  padding: 22px 22px 16px;
}

.app-shell.is-pre-match .landing-card-copy .eyebrow {
  display: none;
}

.app-shell.is-pre-match .landing-card-copy strong {
  color: #111c35;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell.is-pre-match .landing-card-copy span {
  color: #3a465e;
  font-family: "Trebuchet MS", sans-serif;
  line-height: 1.45;
}

.app-shell.is-pre-match .landing-card > button {
  width: calc(100% - 36px);
  margin: auto 18px 0;
  border-radius: 6px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell.is-pre-match .landing-card:nth-child(2) > button {
  background: linear-gradient(180deg, #559c4d 0%, #3c7f36 100%);
}

.app-shell.is-pre-match .landing-card:nth-child(3) > button {
  background: linear-gradient(180deg, #6750c9 0%, #4f39a8 100%);
}

.landing-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 32px;
  align-items: start;
}

.landing-mini-mode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.landing-mini-mode {
  min-height: 190px;
  padding: 18px 14px;
  border: 1px solid rgba(7, 25, 53, 0.08);
  border-radius: 8px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  color: #17213a;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 32px rgba(6, 25, 53, 0.07);
  text-align: center;
}

.landing-mini-mode:hover,
.landing-mini-mode:focus-visible {
  background: #ffffff;
}

.landing-mini-mode strong {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.landing-mini-mode span {
  color: #4a5670;
  font-size: 12px;
  line-height: 1.35;
}

.landing-headline-card {
  display: grid;
  gap: 7px;
  min-height: 214px;
  padding: 20px;
  border: 1px solid rgba(37, 119, 223, 0.55);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(4, 18, 42, 0.96) 0%, rgba(5, 22, 48, 0.82) 54%, rgba(5, 22, 48, 0.42) 100%), url("../assets/grounds/default-county-ground.jpg") center / cover no-repeat;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(6, 25, 53, 0.12);
}

.landing-headline-card strong {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

.landing-headline-card span {
  margin-top: -4px;
  color: #2b9cff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 11px;
}

.landing-headline-card button {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2b9cff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .app-shell.is-pre-match .landing-hero-topbar {
    min-height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .app-shell.is-pre-match .landing-hero-brand {
    min-width: 0;
  }

  .app-shell.is-pre-match .landing-hero-menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .app-shell.is-pre-match .topbar-link {
    min-height: 42px;
  }

  .app-shell.is-pre-match .landing-grid-highlight,
  .landing-lower-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .app-shell.is-pre-match .landing-hero-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
  }

  .app-shell.is-pre-match .landing-hero-brand {
    gap: 10px;
  }

  .app-shell.is-pre-match .landing-hero-logo {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .app-shell.is-pre-match .landing-hero-brand-label {
    font-size: 13px;
  }

  .app-shell.is-pre-match .landing-hero-menu {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    overflow: visible;
  }

  .app-shell.is-pre-match .landing-hero-menu .topbar-link {
    display: none;
  }

  .app-shell.is-pre-match .topbar-mobile-select {
    display: grid;
    gap: 5px;
    width: 100%;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Trebuchet MS", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .app-shell.is-pre-match .topbar-mobile-select select {
    width: 100%;
    min-height: 38px;
    padding: 0 36px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(3, 15, 36, 0.78);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.08em;
    outline: none;
  }

  .app-shell.is-pre-match .landing-hero-account {
    justify-self: end;
  }

  .app-shell.is-pre-match #preMatchPanel .prematch-content {
    width: min(100% - 20px, 520px);
    margin-top: -60px;
  }

  .app-shell.is-pre-match .landing-hero {
    min-height: 640px;
  }

  .app-shell.is-pre-match .landing-hero-body {
    width: min(100% - 28px, 520px);
    padding: 46px 0 112px;
  }

  .app-shell.is-pre-match .landing-hero-copy h1 {
    font-size: 46px;
  }

  .app-shell.is-pre-match .hero-button,
  .app-shell.is-pre-match .hero-secondary-button {
    width: 100%;
  }

  .landing-featured-score {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-mini-mode-grid {
    grid-template-columns: 1fr;
  }
}
