/* Crease website: the app's light look (white, brand green, black buttons, Lato), with a dark look. */

:root {
  --bg: #ffffff;
  --fill: #f6f6f6;
  --card: #ffffff;
  --line: #e6e6e6;
  --text: #0a0a0a;
  --text2: #5c5c5c;
  --text3: #8c8c8c;
  --green: #12b76a;
  --green-ink: #0a8a55;
  --mint: #e3f7ec;
  --red: #f04438;
  --button: #0a0a0a;
  --on-button: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 18px rgba(16, 24, 40, 0.06);
  --radius: 18px;
  /* The app's own colours, for cards drawn the way the app draws them. */
  --badge: #ededed;
  --badge-ink: #3a3a3a;
  --chip: #ebebeb;
  --innings: #f2f2f2;
  --outline: #cccccc;
  --done: #3a3a3a;
  --won: #0a8a55;
  --need: #991b1b;
  --gold: #fff8e8;
  --gold-ink: #c27a0e;
  --peach: #fff0d4;
  --peach-ink: #8a5208;
  --sky: #e3ecff;
  --sky-ink: #1d46b8;
  --lilac: #eee6ff;
  --lilac-ink: #5a23b3;
  --rose: #ffe9e9;
  --rose-ink: #c62828;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fill: #141416;
    --card: #17171a;
    --line: #2a2a2e;
    --text: #f2f2f2;
    --text2: #b0b0b0;
    --text3: #8a8a8a;
    --green-ink: #3dd68c;
    --mint: #11291d;
    --button: #f2f2f2;
    --on-button: #0a0a0a;
    --shadow: 0 0 0 1px #2a2a2e;
    --badge: #2a2a2e;
    --badge-ink: #d6d6d6;
    --chip: #26262a;
    --innings: #1d1d21;
    --outline: #4a4a50;
    --done: #d6d6d6;
    --won: #3dd68c;
    --need: #f87171;
    --gold: #2e2412;
    --gold-ink: #f5b14a;
    --peach: #33260f;
    --peach-ink: #f5c27a;
    --sky: #16213b;
    --sky-ink: #93b2ff;
    --lilac: #241a38;
    --lilac-ink: #c4a5ff;
    --rose: #3a1717;
    --rose-ink: #ff8a8a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.2px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text2); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .btn { padding: 0 16px; height: 38px; font-size: 14px; color: var(--on-button); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }
/* Narrow phones: the two page links fit; the app button is further down every page. */
@media (max-width: 480px) { .nav { gap: 18px; } .nav .btn { display: none; } }
/* Phones: the logo without the word, so Live scores, Tournaments and Log in fit. */
@media (max-width: 480px) { .bar .brand { font-size: 0; gap: 0; } .nav a { white-space: nowrap; } }
@media (max-width: 340px) { .nav { gap: 12px; } .nav a { font-size: 14px; } }
.nav a[aria-current="page"] { color: var(--text); }

/* ---------- buttons and chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { opacity: 0.88; }
.btn svg { width: 20px; height: 20px; }
.btn.soft { background: var(--fill); color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--mint);
  color: var(--green-ink);
  font-weight: 700;
  font-size: 13px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } html { scroll-behavior: auto; } }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 900; letter-spacing: -1px; margin: 18px 0 16px; }
.hero h1 span { color: var(--green); }
.hero p.lead { font-size: 18px; color: var(--text2); max-width: 520px; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.soon { color: var(--text3); font-size: 14px; font-weight: 700; }
.hero-shot { justify-self: center; width: min(340px, 100%); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); }
/* On phones the scores come straight after the words; the app screens are further down. */
@media (max-width: 820px) {
  .hero { padding: 28px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { display: none; }
}

/* ---------- sections ---------- */

section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.4px; }
.muted { color: var(--text3); font-size: 14px; }
.band { background: var(--fill); }

/* ---------- live scores ---------- */

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fill); margin-bottom: 18px; }
.band .tabs { background: var(--card); box-shadow: var(--shadow); }
.tabs button {
  border: 0;
  background: none;
  color: var(--text2);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tabs button[aria-selected="true"] { background: var(--button); color: var(--on-button); }
.tabs .count { font-size: 12px; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--mint); color: var(--green-ink); }

.more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--text); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- cards, drawn the way the app draws them ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.stack { display: grid; gap: 12px; }
.card { display: block; background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; color: inherit; text-decoration: none; }
a.card { transition: transform 0.15s ease; }
a.card:hover { transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.card-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { margin-top: 4px; font-size: 13px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* LIVE: a red dot on rose, as in the app. */
.live-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--rose); color: var(--rose-ink); font-size: 11px; font-weight: 900; letter-spacing: 0.5px; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .live-pill::before { animation: none; } }

.teams { display: grid; gap: 8px; margin-top: 12px; }
.trow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbadge { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--badge); color: var(--badge-ink); display: grid; place-items: center; font-size: 10px; font-weight: 900; letter-spacing: -0.3px; }
.trow .tname { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .tscore { flex: none; font-size: 16px; font-weight: 700; color: var(--text2); font-variant-numeric: tabular-nums; }
.trow .tscore small { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--text3); }
.trow .yet { flex: none; font-size: 13px; color: var(--text3); }
.trow.em .tname { color: var(--text); }
.trow.em .tscore { font-size: 18px; font-weight: 900; color: var(--text); }
/* The result in green, runs needed in red, anything else live in gold. */
.mstatus { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--done); }
.mstatus.won { color: var(--won); }
.mstatus.need { color: var(--need); }
.mstatus.live { color: var(--gold-ink); }
.mpar { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--text2); }

.stage { flex: none; display: inline-block; padding: 3px 9px; border-radius: 8px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--text); }
.tag { flex: none; padding: 2px 6px; border-radius: 6px; background: var(--chip); font-size: 11px; font-weight: 700; color: var(--text2); }

/* Tournament cards: a trophy tile, peach while it's on, grey once it's over. */
.trophy { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--peach); color: var(--gold-ink); }
.trophy svg { width: 50%; height: 50%; }
.trophy.done { background: var(--chip); color: var(--text3); }
.trophy.soon { background: var(--sky); color: var(--sky-ink); }
.tcard { display: flex; align-items: center; gap: 12px; }
.tcard .body { flex: 1; min-width: 0; }
.tcard .body b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .body span { display: block; font-size: 13px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text2); }

.empty { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px; text-align: center; color: var(--text2); }
.empty strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.empty button { margin-top: 12px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--green-ink); cursor: pointer; }

.skeleton { height: 170px; border-radius: var(--radius); background: linear-gradient(90deg, var(--fill) 0%, var(--line) 50%, var(--fill) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--green-ink); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text2); font-size: 15px; }

/* ---------- screenshots ---------- */

.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.shots img { flex: none; width: 216px; height: auto; border-radius: 16px; scroll-snap-align: start; }

/* ---------- call to action ---------- */

.cta { text-align: center; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.cta p { color: var(--text2); margin: 0 0 22px; }

/* ---------- pages (privacy, terms, delete account) ---------- */

.page { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; letter-spacing: -0.6px; margin-bottom: 6px; }
.page .updated { color: var(--text3); font-size: 14px; margin: 0 0 24px; }
.page h2 { font-size: 20px; font-weight: 900; margin: 30px 0 8px; scroll-margin-top: 76px; }
.page h3 { font-size: 16px; font-weight: 900; margin: 18px 0 4px; }
.box ul.tight { margin: 8px 0 0; }
.box ul.tight li { margin: 2px 0; }
.toc { background: var(--fill); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 8px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--text2); }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.page p, .page li { color: var(--text2); }
.page ul { padding-left: 22px; }
.page li { margin: 4px 0; }
.page strong { color: var(--text); }
.box { background: var(--fill); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.box p { margin: 0; }
.box p + p { margin-top: 8px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.steps li::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--button); color: var(--on-button); display: grid; place-items: center; font-size: 13px; font-weight: 900; margin-top: 1px; }

/* ---------- scorecard and tournament pages ---------- */

.view { max-width: 760px; padding-top: 18px; padding-bottom: 56px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--text2); font-weight: 700; font-size: 14px; text-decoration: none; }
.back:hover { color: var(--text); }
.view h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 900; letter-spacing: -0.4px; }
.view .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 18px; color: var(--text3); font-size: 14px; }
.view .sub a { color: var(--text2); font-weight: 700; text-decoration: none; }
.view .sub a:hover { color: var(--text); }
.view h2.sh { font-size: 17px; font-weight: 900; margin: 28px 0 10px; }
.view .loading { height: 220px; border-radius: 16px; }
.app-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; justify-content: space-between; }
.app-cta p { margin: 0; color: var(--text2); font-weight: 700; }
.app-cta .btn { height: 44px; font-size: 15px; }

/* The live score at the top of a match, as on the app's Live tab. */
.livebox .top { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.livebox .who { margin: 12px 0 4px; font-size: 13px; color: var(--text2); }
.livebox .big { display: flex; align-items: flex-end; gap: 10px; }
.livebox .big strong { font-size: 44px; font-weight: 900; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.livebox .big > span { padding-bottom: 4px; font-size: 18px; font-weight: 700; color: var(--text2); }
.livebox .target { margin-left: auto; text-align: right; font-size: 12px; color: var(--text3); }
.livebox .target b { display: block; font-size: 26px; font-weight: 900; color: var(--text); line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { padding: 6px 10px; border-radius: 8px; background: var(--chip); font-size: 13px; font-weight: 700; color: var(--text2); }
.chips span b { margin-left: 4px; color: var(--text); }
.chips span.wide { flex: 1; text-align: center; color: var(--text); }
.livebox .mpar { margin-top: 10px; }

/* An innings: a grey bar that opens to its batting and bowling. */
details.inn { margin-bottom: 10px; }
details.inn > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--innings); cursor: pointer; }
details.inn > summary::-webkit-details-marker { display: none; }
details.inn > summary .tbadge { background: var(--card); }
.inn .who { flex: 1; min-width: 0; }
.inn .who b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inn .who small { font-size: 12px; color: var(--text3); }
.inn .sc { flex: none; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.inn .sc small { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--text3); }
.inn .chev { flex: none; width: 18px; height: 18px; color: var(--text3); transition: transform 0.2s; }
details.inn[open] .chev { transform: rotate(180deg); }
.inn-body { display: grid; gap: 10px; margin-top: 10px; }

.tbl { padding: 4px 14px; }
.tbl .row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 32px 28px 28px 50px; align-items: center; gap: 0 4px; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl .row.head { border-top: 0; padding: 8px 0 6px; }
.tbl .row > span:not(:first-child) { text-align: right; font-size: 14px; color: var(--text2); }
.tbl .row > span.b { font-weight: 900; color: var(--text); }
.tbl .row.head > span { font-size: 12px !important; font-weight: 700; color: var(--text3) !important; }
.tbl .nm { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.tbl .nm .on::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--text); vertical-align: middle; }
.tbl .how { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--text3); }
.tbl .line { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.tbl .line small { color: var(--text3); font-size: 12px; }
.tbl .line .v { margin-left: auto; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tbl .line.total { color: var(--text); font-weight: 700; }
.tbl .line.total .v { font-size: 18px; font-weight: 900; }
.tbl .rest { padding: 10px 0 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text2); }
.tbl .rest b { color: var(--text3); }

.info .line { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.info .line:first-child { border-top: 0; padding-top: 2px; }
.info .line:last-child { padding-bottom: 2px; }
.info .line > span:first-child { flex: none; width: 84px; color: var(--text3); }
.info .line a { color: var(--text); font-weight: 700; }

/* Tournament page */
.thead { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.thead .trophy { width: 60px; height: 60px; border-radius: 17px; }
.thead .meta { margin: 4px 0 8px; font-size: 14px; color: var(--text3); }
.thead .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.champ { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 14px; }
.champ svg { width: 20px; height: 20px; flex: none; }

.utabs { display: flex; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.utabs::-webkit-scrollbar { display: none; }
.utabs button { flex: none; margin-bottom: -1px; padding: 10px 0; border: 0; border-bottom: 2.5px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text3); cursor: pointer; }
.utabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.view h3.gh { font-size: 15px; font-weight: 900; margin: 22px 0 10px; }
.view h3.gh:first-child { margin-top: 0; }

.fx-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text3); }
.fx-top .when { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.postponed { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--peach); color: var(--peach-ink); font-size: 11px; font-weight: 900; }
.vs { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.vs .side { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.vs .side.right { flex-direction: row-reverse; text-align: right; }
.vs .side.tbd { color: var(--text3); font-weight: 400; }
.vs .side.tbd .tbadge { background: none; border: 1.5px solid var(--outline); }
.vs .x { flex: none; font-size: 12px; color: var(--text3); }

.ptable { padding: 10px 14px 12px; }
.prow { display: grid; align-items: center; gap: 0 2px; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.prow.head { padding: 0 0 6px; border-top: 0; font-size: 12px; font-weight: 700; color: var(--text3); }
.prow > span:nth-child(n + 3) { text-align: right; font-size: 13px; color: var(--text2); }
.prow.head > span { font-size: 12px !important; color: var(--text3) !important; }
.prow .pos { font-size: 12px; color: var(--text3); }
.prow .team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.2; }
.prow .team .tbadge { width: 26px; height: 26px; }
.prow .pts { font-weight: 900; color: var(--text) !important; }
.prow .up { color: var(--won) !important; font-weight: 700; }
.prow .down { color: var(--rose-ink) !important; font-weight: 700; }
.qmark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--chip); font-size: 10px; font-weight: 900; color: var(--text); }
.legend { margin: 12px 2px 0; font-size: 12px; color: var(--text3); }
.legend p { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }

.team-list .card { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.team-list .tbadge { width: 36px; height: 36px; font-size: 12px; }

.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .leaders { grid-template-columns: 1fr; } }
.lead { padding: 0; overflow: hidden; }
.lead h3 { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; font-weight: 900; }
.lead h3 svg { width: 16px; height: 16px; }
.lead.runs h3 { background: var(--gold); color: var(--gold-ink); }
.lead.wkts h3 { background: var(--lilac); color: var(--lilac-ink); }
.lead ol { margin: 0; padding: 2px 16px 6px; list-style: none; }
.lead li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.lead li:first-child { border-top: 0; }
.lead .n { flex: none; width: 16px; font-size: 13px; color: var(--text3); }
.lead .who { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.lead .who small { display: block; font-size: 12px; font-weight: 400; color: var(--text3); }
.lead .v { flex: none; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lead .none { padding: 14px 0; color: var(--text3); font-size: 14px; }

/* ---------- website login (/me/) ---------- */

.nav .me-link { display: inline-flex; align-items: center; gap: 8px; }
.me-dot { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--badge); color: var(--badge-ink); font-size: 13px; font-weight: 900; }
/* Narrow phones: just your initial in the header. */
@media (max-width: 480px) { .nav .me-link.in .me-label { display: none; } }
.cards > .empty { grid-column: 1 / -1; }
.note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--chip); color: var(--text2); font-size: 14px; font-weight: 700; }
.login { display: grid; gap: 12px; padding: 20px; }
.login label { font-size: 14px; font-weight: 700; color: var(--text2); }
.login input { height: 58px; min-width: 0; padding: 0 16px; border: 1.5px solid var(--outline); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 26px; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; }
.login input::placeholder { color: var(--text3); opacity: 0.45; }
.login input:focus { outline: none; border-color: var(--text); }
.login input[aria-invalid="true"] { border-color: var(--need); }
.login .err { margin: 0; color: var(--need); font-size: 14px; font-weight: 700; }
.login .btn { width: 100%; }
.howto { padding: 16px; color: var(--text2); line-height: 1.45; }
.howto .steps { margin: 0; }
.howto .steps li:first-child { margin-top: 0; }
.howto .steps li:last-child { margin-bottom: 0; }
.howto b { color: var(--text); }
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.me-head .me-dot { width: 52px; height: 52px; font-size: 22px; }
.me-head .who { flex: 1; min-width: 0; }
.me-head h1 { overflow-wrap: anywhere; line-height: 1.15; }
.me-head p { margin: 4px 0 0; color: var(--text3); font-size: 14px; }
.me-head .btn { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }

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

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--text3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--text2); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--text); }
footer .copy { margin-left: auto; }
@media (max-width: 640px) { footer .copy { margin-left: 0; width: 100%; } }
