/* Seagulls Live - The Entrance District Cricket Club live scores */

:root {
  --navy: #002859;
  --navy-2: #0b3d7e;
  --navy-deep: #001634;
  --gold: #e4b025;
  --gold-soft: #f6dc8c;
  --red: #d30a1e;
  --bg: #edf1f6;
  --card: #ffffff;
  --ink: #0b1f3a;
  --muted: #5a6b83;
  --line: #dde4ee;
  --chip: #e5ebf3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 22, 52, .06), 0 6px 18px rgba(0, 22, 52, .06);
  --shadow-up: 0 2px 4px rgba(0, 22, 52, .08), 0 12px 28px rgba(0, 22, 52, .12);
  --display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e4b025' d='M20.7 2.3a1 1 0 0 0-1.4 0l-3.6 3.6-.7-.7a1 1 0 0 0-1.4 0L3.4 15.4a2 2 0 0 0 0 2.8l2.4 2.4a2 2 0 0 0 2.8 0L18.8 10.4a1 1 0 0 0 0-1.4l-.7-.7 3.6-3.6a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 380px at 88% -30%, rgba(228, 176, 37, .22), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 16px),
    linear-gradient(160deg, #003a7a 0%, var(--navy) 46%, var(--navy-deep) 100%);
  padding: 18px 0 70px;
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 50%, var(--gold));
}
.masthead--slim { padding-bottom: 22px; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand__logo {
  width: 58px; height: 58px; flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 6px 18px rgba(0, 0, 0, .35);
  background: #fff;
}
.brand__title {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  line-height: .9;
  letter-spacing: .02em;
}
.brand__title em { font-style: normal; color: var(--gold); }
.brand__sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .78;
}
.onair {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(211, 10, 30, .92);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(211, 10, 30, .35);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.onair .dot { background: #fff; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* ---------------------------------------------------------------- round panel */

.round {
  position: relative;
  margin-top: -52px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-up);
  padding: 16px 16px 14px;
}
.round__top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; }
.round__title { text-align: center; min-width: 0; }
.kicker {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.round__date {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  color: var(--navy);
  margin-top: 2px;
}
.navbtn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--navy);
  text-decoration: none;
  font-size: 20px; font-weight: 700;
  transition: background .15s;
}
.navbtn:hover { background: #d6dfeb; }
.navbtn[aria-disabled="true"] { visibility: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.stat {
  text-align: center;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: #f4f7fb;
}
.stat__num { display: block; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--navy); }
.stat__label { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat--live .stat__num { color: var(--red); }
.stat--won { background: var(--navy); }
.stat--won .stat__num { color: var(--gold); }
.stat--won .stat__label { color: rgba(255, 255, 255, .78); }
.updated {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px;
  font-size: 12px; color: var(--muted);
}
.updated .spin {
  width: 12px; height: 12px;
  border: 2px solid var(--line); border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  visibility: hidden;
}
.updated.is-loading .spin { visibility: visible; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6dc;
  color: #6b5200;
  font-size: 13px; font-weight: 600;
  text-align: center;
}

/* ---------------------------------------------------------------- filters */

.filters {
  position: sticky; top: 0; z-index: 5;
  margin: 0 -16px;
  padding: 12px 16px;
  background: rgba(237, 241, 246, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.chip .n { margin-left: 4px; opacity: .6; font-weight: 600; }

/* ---------------------------------------------------------------- layout */

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 8px 0 40px;
}
@media (min-width: 980px) {
  .board { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 28px; align-items: start; }
  .board > .section { grid-column: 1; }
  .board > .hl { grid-column: 2; grid-row: 1 / span 7; position: sticky; top: 70px; }
}
.section__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.section__head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: .02em;
}
.section__head h2::after {
  content: "";
  display: block;
  width: 34px; height: 4px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--gold);
}
.section__count {
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 2px 8px; border-radius: 999px; background: var(--chip);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.empty {
  padding: 22px 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

/* ---------------------------------------------------------------- match card */

.card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 14px 16px 12px 18px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 40, 89, .05);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--accent, var(--line));
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.card--live { --accent: var(--red); }
.card--won { --accent: var(--gold); }
.card--upcoming { --accent: #9fb3cf; }
.card.is-flash { animation: flash 1.8s ease-out; }
@keyframes flash {
  0% { box-shadow: 0 0 0 3px var(--gold), var(--shadow-up); }
  100% { box-shadow: var(--shadow); }
}
.card__meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.card__meta .pill { margin-left: auto; }
.side {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f0f3f8;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.logo--blank { display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--muted); }
.side__name { font-size: 15px; font-weight: 600; line-height: 1.2; color: #2b3d57; overflow-wrap: anywhere; }
.side--ours .side__name { font-weight: 800; color: var(--navy); }
.side__score { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.score { font-family: var(--display); font-size: 31px; line-height: 1; color: var(--ink); letter-spacing: .01em; }
.side--batting .score::before {
  content: "";
  display: inline-block;
  width: 15px; height: 15px;
  margin-right: 5px;
  background: var(--bat) center / contain no-repeat;
  vertical-align: 2px;
}
.overs { font-size: 11px; font-weight: 600; color: var(--muted); }
.side--winner .side__name::after { content: " \2605"; color: var(--gold); }
.card__result { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.card__foot {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.card__foot span:last-child { text-align: right; }
.card--upcoming .side { padding: 3px 0; }
.card--upcoming .card__when { font-family: var(--display); font-size: 26px; color: var(--navy); line-height: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--chip); color: var(--navy);
}
.pill--live { background: #fde6e9; color: var(--red); }
.pill--won { background: var(--gold); color: var(--navy-deep); }
.pill--lost { background: #e6ebf2; color: #55657d; }
.pill--upcoming { background: #e3ecf8; color: var(--navy-2); }

/* ---------------------------------------------------------------- highlights */

.hl {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.hl__head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  background:
    radial-gradient(300px 120px at 100% 0, rgba(228, 176, 37, .25), transparent 70%),
    var(--navy);
  color: #fff;
}
.hl__head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: .02em; }
.hl__head small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.hl__star { font-size: 22px; color: var(--gold); }
.hl__group { padding: 14px 18px 4px; }
.hl__group + .hl__group { border-top: 6px solid #f4f7fb; }
.hl__group h3 {
  margin: 0 0 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.perf {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.perf:last-child { border-bottom: 0; }
.perf__num {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--navy);
  text-align: center;
}
.perf__num small { font-size: 18px; color: var(--muted); }
.perf--top .perf__num {
  padding: 8px 0 6px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  font-size: 34px;
}
.perf--top .perf__num small { color: var(--gold-soft); }
.perf__name { display: block; font-weight: 800; color: var(--ink); line-height: 1.2; }
.perf__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.perf__live { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.perf__live .dot { width: 6px; height: 6px; }
.hl__empty { padding: 6px 0 12px; font-size: 13px; color: var(--muted); }

.idle { font-size: 13px; color: var(--muted); }
.idle .chips { flex-wrap: wrap; overflow: visible; }
.idle .chip { cursor: default; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: 10px;
  padding: 26px 0 34px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  text-align: center;
}
.foot strong { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold); letter-spacing: .04em; }
.foot a { color: #fff; }
.foot p { margin: 6px auto 0; max-width: 560px; }

/* ---------------------------------------------------------------- match page */

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
  color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700;
  opacity: .85;
}
.back:hover { opacity: 1; }
.mhero__meta { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.mhero__teams { display: grid; gap: 10px; margin-top: 12px; }
.mteam {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}
.mteam .logo { width: 46px; height: 46px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.mteam__name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.mteam__toss { display: block; font-size: 11px; font-weight: 600; opacity: .65; margin-top: 2px; }
.mteam .score { color: #fff; font-size: 40px; }
.mteam--ours { background: rgba(228, 176, 37, .14); box-shadow: inset 0 0 0 1px rgba(228, 176, 37, .45); }
.mteam--batting .score::before { width: 18px; height: 18px; }
.mhero__result { margin: 14px 0 0; font-size: 15px; font-weight: 800; color: var(--gold); }
.mhero__where { margin: 4px 0 0; font-size: 12.5px; opacity: .75; }

/* Spoken commentary: a big tap target, it may be set going in a car park. */
.listen-wrap { margin-top: 16px; }
.listen {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: var(--navy-deep);
  font-size: 14px; font-weight: 800;
}
.listen svg { width: 22px; height: 22px; flex: none; }
.listen[aria-pressed="true"] { background: #fff; color: var(--navy); }
.listen[aria-pressed="true"] .listen__wave { animation: pulse 1.4s ease-in-out infinite; transform-origin: 12px 12px; }
.listen:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.listen__note { margin: 8px 0 0; font-size: 12px; opacity: .75; }

.panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.panel h3 {
  margin: 0 0 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.mpage { padding-top: 0; }
.mpage .panel:first-child { margin-top: -40px; position: relative; }

.balls { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.balls::-webkit-scrollbar { display: none; }
.ball {
  flex: none;
  display: grid; place-items: center;
  min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink);
  font-family: var(--display); font-size: 18px; line-height: 1;
}
.ball--4 { background: var(--navy); color: var(--gold); }
.ball--6 { background: var(--gold); color: var(--navy-deep); }
.ball--w { background: var(--red); color: #fff; }
.ball--x { background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-size: 15px; }
.ball--over { background: transparent; color: var(--muted); font-family: var(--body); font-size: 10px; font-weight: 800; min-width: 0; padding: 0 2px; }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--chip); overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: 1 0 auto;
  border: 0;
  padding: 10px 14px;
  border-radius: 11px;
  background: transparent;
  font-size: 13px; font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--card); box-shadow: var(--shadow); }
.tab .score { font-size: 18px; margin-left: 6px; }

.inn__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 14px 2px 6px;
}
.inn__total .score { flex: none; white-space: nowrap; font-size: 40px; color: var(--navy); }
.inn__total span { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: right; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  padding: 8px 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  border-bottom: 2px solid var(--line);
}
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 2px; }
.tbl td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { font-weight: 800; color: var(--ink); }
.tbl .nm { font-weight: 700; color: var(--ink); }
.tbl .how { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.tbl tr.is-in td { background: #fff9e8; }
.tbl tr.is-on .nm::after {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  margin-left: 6px;
  background: var(--bat) center / contain no-repeat;
  vertical-align: -1px;
}
.tbl tr.is-bowling .nm::after { content: " \25CF"; color: var(--red); font-size: 10px; vertical-align: 2px; }
.tbl .sum td { font-weight: 700; color: var(--navy); background: #f6f8fb; }
@media (max-width: 420px) {
  .tbl .opt { display: none; }
  .tbl { font-size: 13.5px; }
}
.dnb, .fow { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.dnb b, .fow b { color: var(--ink); }

.pship { display: grid; gap: 10px; }
.pship__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.pship__who { font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.pship__who small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.pship__runs { font-family: var(--display); font-size: 24px; line-height: 1; color: var(--navy); text-align: right; }
.pship__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #edf1f6; overflow: hidden; }
.pship__bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--navy-2)); }
.pship__row.is-open .pship__bar i { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }

.ext {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 13px; font-weight: 700; color: var(--navy);
}

.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, #e6ebf2 0%, #f3f6fa 50%, #e6ebf2 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 720px) {
  .brand__logo { width: 70px; height: 70px; }
  .brand__title { font-size: 52px; }
  .round { padding: 20px 24px 16px; }
  .round__date { font-size: 40px; }
  .mhero__teams { grid-template-columns: 1fr 1fr; }
  .mteam .score { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- sections, rounds, season */

.topnav { display: flex; gap: 8px; margin-top: 16px; }
.topnav a {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
  font-size: 13px; font-weight: 700;
}
.topnav a:hover { background: rgba(255, 255, 255, .16); }
.topnav a[aria-current="page"] { background: var(--gold); color: var(--navy-deep); box-shadow: none; }

.rounds {
  display: flex; gap: 8px;
  margin: 14px -4px 0; padding: 2px 4px 4px;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.rounds::-webkit-scrollbar { display: none; }
.rounds:empty { display: none; }
.rnd {
  flex: none;
  display: grid; justify-items: center; gap: 1px;
  min-width: 70px;
  padding: 7px 10px 6px;
  border-radius: 12px;
  background: #f4f7fb;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
  text-decoration: none;
  scroll-snap-align: center;
}
.rnd:hover { background: #e9eef5; }
.rnd__wk { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rnd__d { font-family: var(--display); font-size: 20px; line-height: 1.05; }
.rnd__r { font-size: 11px; font-weight: 700; color: var(--muted); }
.rnd[aria-current="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.rnd[aria-current="true"] .rnd__wk, .rnd[aria-current="true"] .rnd__r { color: var(--gold-soft); }

.hl__more {
  display: block;
  padding: 13px 18px;
  border-top: 6px solid #f4f7fb;
  color: var(--navy);
  font-size: 13px; font-weight: 800;
  text-decoration: none;
}
.hl__more:hover { background: #f8fafc; }

.lb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  padding: 8px 0 40px;
  align-items: start;
}
@media (max-width: 380px) { .lb-grid { grid-template-columns: minmax(0, 1fr); } }
.lb { overflow: hidden; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.lb__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background:
    radial-gradient(260px 110px at 100% 0, rgba(228, 176, 37, .22), transparent 70%),
    var(--navy);
  color: #fff;
}
.lb__icon {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(228, 176, 37, .16);
  box-shadow: inset 0 0 0 1px rgba(228, 176, 37, .45);
  color: var(--gold);
  font-family: var(--display); font-size: 19px; letter-spacing: .04em;
}
.lb__head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1; letter-spacing: .02em; }
.lb__head small { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.lb__list { padding: 4px 18px 6px; }
.lb-row {
  display: grid;
  grid-template-columns: 24px 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.lb-row:last-child { border-bottom: 0; }
a.lb-row:hover .perf__name { text-decoration: underline; }
.lb-row__rank { font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; }
.lb-row__val { font-family: var(--display); font-size: 29px; line-height: 1; color: var(--navy); text-align: center; white-space: nowrap; }
.lb-row__val small { font-size: 18px; color: var(--muted); }
.lb-row--top .lb-row__val { padding: 8px 0 6px; border-radius: 12px; background: var(--navy); color: var(--gold); font-size: 33px; }
.lb-row--top .lb-row__val small { color: var(--gold-soft); }
.lb__more {
  display: block; width: 100%;
  border: 0; border-top: 1px solid var(--line);
  padding: 12px;
  background: #f6f8fb;
  color: var(--navy);
  font-size: 13px; font-weight: 800;
  cursor: pointer;
}
.lb__more:hover { background: #edf1f6; }
.lb__empty { padding: 14px 0 16px; font-size: 13px; color: var(--muted); }
/* Centre the week strip when it fits, scroll from the left edge when it doesn't. */
.rnd:first-child { margin-left: auto; }
.rnd:last-child { margin-right: auto; }

/* ---------------------------------------------------------------- live chase */

.chase { display: block; margin: 10px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.chase b { color: var(--navy); font-size: 20px; font-variant-numeric: tabular-nums; }
.chase__rr { display: block; font-size: 13px; font-weight: 500; color: var(--muted, #8a93a3); }
.card .chase { margin-top: 8px; font-size: 15px; color: var(--ink); }
.card .chase b { font-size: 17px; }
.mhero__result .chase { margin: 0; color: #fff; }
.mhero__result .chase b { color: var(--gold); }
.mhero__result .chase__rr { color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------- weekend clarity */

.round__span { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tally { margin: 10px 2px 0; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink); text-align: center; }
.tally:empty { display: none; }
.dayhead {
  grid-column: 1 / -1;
  margin: 6px 0 -4px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-2);
}
.dayhead:first-child { margin-top: 0; }
.section__note { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.pill--carried { background: #fff3d1; color: #7a5800; }
.card__round { padding: 0 6px; border-radius: 6px; background: #fff3d1; color: #7a5800; }
.rnd__now { margin-left: 4px; padding: 0 4px; border-radius: 4px; background: var(--gold); color: var(--navy-deep); font-style: normal; letter-spacing: .04em; }
.rnd--now { box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------------------------------------------------------------- your team */

.teampick { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.teampick select {
  flex: 1; min-width: 0; max-width: 340px; min-height: 40px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--navy);
}
.teambox { margin: 14px 0 22px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.teambox__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.teambox__head h2 { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--navy); }
.teambox__head small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.teambox__clear { flex: none; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--chip); color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.teambox__now { margin-top: 12px; display: grid; gap: 10px; }
.fx { padding: 12px 14px; border-radius: 14px; background: #f4f7fb; box-shadow: inset 4px 0 0 var(--gold); }
.fx__vs { font-size: 17px; color: var(--ink); }
.fx__vs b { font-weight: 800; }
.fx__ha { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--navy-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.fx__ha--home { background: var(--gold); color: var(--navy-deep); }
.fx__row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--ink); }
.fx__row a { color: var(--navy-2); font-weight: 700; }
.fx__k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fx__map { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--navy); color: #fff !important; font-size: 12px; text-decoration: none; }
.fx__none { margin: 0; padding: 12px 14px; border-radius: 14px; background: #f4f7fb; font-size: 15px; font-weight: 600; color: var(--ink); }
.season { margin-top: 14px; }
.season summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--navy); min-height: 32px; list-style: none; }
.season summary::-webkit-details-marker { display: none; }
.season summary::before { content: "\25B8  "; color: var(--gold); }
.season[open] summary::before { content: "\25BE  "; }
.season__key { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.season__list { display: grid; }
.srow { display: grid; grid-template-columns: 82px 42px 1fr auto; gap: 8px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.srow:hover { background: #f4f7fb; }
.srow--here { background: #fff7de; box-shadow: inset 3px 0 0 var(--gold); }
.srow--bye { color: var(--muted); }
.srow__d { font-weight: 700; white-space: nowrap; }
.srow__r { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.srow__vs { min-width: 0; font-weight: 700; }
.srow__vs small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__x { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.srow__x--won { color: #0d7a3a; }
.srow__x--lost { color: var(--red); }
.rnd--team .rnd__r { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) { .srow { grid-template-columns: 70px 36px 1fr auto; font-size: 13px; } }

/* ---------------------------------------------------------------- team pages */

.teambox__btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.teambox__page { min-height: 36px; padding: 8px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.teamlink { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--navy-2); text-decoration: none; }
.teamlink:hover { text-decoration: underline; }
.teamnav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tc { display: grid; gap: 4px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.tc__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tc__top b { font-size: 16px; color: var(--navy); }
.tc__rec { font-family: var(--display); font-size: 22px; color: var(--navy); }
.tc__grade { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.tc__row { display: grid; grid-template-columns: 44px 1fr; gap: 6px; font-size: 13px; }
.moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 22px; }
.moment { display: grid; gap: 6px; align-content: start; padding: 16px; color: var(--ink); text-decoration: none; }
.moment--live { box-shadow: var(--shadow), inset 0 0 0 2px var(--red); }
.moment--next { box-shadow: var(--shadow), inset 4px 0 0 var(--gold); }
.moment__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.moment__score { display: grid; gap: 2px; margin-top: 2px; }
.moment__score span { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.moment__score b { font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--navy); }
.moment__stars { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--navy-2); }
.moment__meta { margin: 0; font-size: 12px; color: var(--muted); }
.moment__bye { margin: 0; padding: 6px 10px; border-radius: 10px; background: #fff3d1; color: #7a5800; font-size: 13px; font-weight: 700; }
.moment__link { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--navy-2); text-decoration: none; }
.season-card { padding: 6px 14px 10px; }
.ladder-card { padding: 4px 6px; }
.ladder-wrap { overflow-x: auto; }
table.ladder { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ladder th, .ladder td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ladder th { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.ladder .l { text-align: left; white-space: normal; }
.ladder tr.is-ours td { background: #f4f7fb; }
.ladder tr.is-me td { background: #fff3d1; font-weight: 800; }
.ladder tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
