/* ==========================================================================
   Match — design system
   Tokens (light + dark), base, layout, components, sports UI, motion.
   Never hard-code colours in templates: use these tokens / classes.
   ========================================================================== */

/* ---------- 1. Tokens (design system v4 "Mint sportsbook" — docs/design/DESIGN_V4.md) - */
/* v4: DARK is the default (navy-charcoal, flat, no gradients); LIGHT keeps the same mint language.
   One accent only: mint. Red only for live + errors. No purple, no orange.
   Canonical v4 names: --bg --surface --surface-2 --surface-3 --border --border-strong --text --text-2 --muted
   --accent --accent-hover --on-accent --accent-soft --accent-text --live --odds-bg --odds-border --odds-hover
   --odds-text --success --danger --warning.
   Every v1–v3 name is an ALIAS (--primary* → mint, --grad-* → flat fills) so older page CSS keeps working. */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  /* ---- v4 colour (dark, default) ---- */
  --bg: #0e131a;
  --surface: #151b23;
  --surface-2: #1b232d;
  --surface-3: #222b36;
  --border: #232c37;
  --border-strong: #2e3946;
  --text: #eef2f6;
  --text-2: #c3ccd6;
  --muted: #8e9aa8;
  --accent: #5ce1ad;
  --accent-hover: #74eabd;
  --on-accent: #062417;
  --accent-soft: rgba(92, 225, 173, .14);
  --accent-text: #5ce1ad;
  --live: #ff4d4f;
  --live-soft: rgba(255, 77, 79, .14);
  --odds-bg: #232c38;
  --odds-border: #2d3846;
  --odds-hover: #2b3644;
  --odds-text: #ffffff;
  --success: #5ce1ad;
  --danger: #ff6b6b;
  --warning: #f5b84b;
  --info: #7fb2ff;
  --hover: #1e2731;
  --success-soft: rgba(92, 225, 173, .12);
  --danger-soft: rgba(255, 107, 107, .13);
  --danger-fill: #e5383b;
  --warning-soft: rgba(245, 184, 75, .13);
  --warning-text: #f5c56b;
  --info-soft: rgba(127, 178, 255, .12);
  --overlay: rgba(4, 8, 12, .66);
  --shadow-card: none;
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .55);
  --logo-disc: #eef2f6;
  --logo-ring: rgba(255, 255, 255, .12);
  --score-box: #eef2f6;
  --hero-bg: #121921;
  --hero-ink: #ffffff;
  --score-ink: #0e131a;
  --shadow-brand: none;
  --shadow-cta: none;
  --shadow-slip: none;
  --shadow-warm: none;
  --grad-soft: none;
  --grad-header: none;
  --grad-side: none;
  --art-a: transparent; --art-b: transparent; --art-c: transparent;
  color-scheme: dark;

  /* type scale */
  --fs-h1: 28px; --lh-h1: 36px;
  --fs-h2: 18px; --lh-h2: 26px;
  --fs-h3: 15px; --lh-h3: 22px;
  --fs-body: 14px; --lh-body: 22px;
  --fs-small: 12px; --lh-small: 18px;

  /* shape & space (v4: 10–12px cards, 6–8px odds) */
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 12px; --r-xl: 12px; --r-pill: 999px;
  --r-control: 8px; --r-card: 12px; --r-odds: 7px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;
  --pad-card: 20px;
  --header-h: 56px;
  --nav-h: 62px;
  --side-w: 250px;
  --slip-w: 360px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tap: 44px;

  /* motion */
  --dur-1: 120ms; --dur-2: 160ms; --dur-3: 200ms;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* light — the same mint sportsbook on white. Kept in sync with the system copy below. */
[data-theme="light"] {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f6f8fa; --surface-3: #eef2f6;
  --border: #e1e6ec; --border-strong: #cfd7e0;
  --text: #0e131a; --text-2: #2f3a46; --muted: #5c6977;
  --accent: #1fb985; --accent-hover: #19a374; --on-accent: #062417; --accent-soft: rgba(31, 185, 133, .12); --accent-text: #0f8a61;
  --live: #e5383b; --live-soft: rgba(229, 56, 59, .1);
  --odds-bg: #eef2f6; --odds-border: #dde4eb; --odds-hover: #e3e9ef; --odds-text: #0e131a;
  --success: #0f8a61; --danger: #d32f2f; --warning: #b7791f; --info: #2f5bc0;
  --hover: #eef2f6; --success-soft: #e3f6ee; --danger-soft: #fdecec; --danger-fill: #d32f2f;
  --warning-soft: #fdf3dd; --warning-text: #8a5a00; --info-soft: #e9effc;
  --overlay: rgba(14, 19, 26, .45);
  --shadow-pop: 0 4px 12px rgba(14, 19, 26, .08), 0 18px 40px rgba(14, 19, 26, .14);
  --logo-disc: #ffffff; --logo-ring: var(--border); --score-box: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f6f8fa; --surface-3: #eef2f6;
    --border: #e1e6ec; --border-strong: #cfd7e0;
    --text: #0e131a; --text-2: #2f3a46; --muted: #5c6977;
    --accent: #1fb985; --accent-hover: #19a374; --on-accent: #062417; --accent-soft: rgba(31, 185, 133, .12); --accent-text: #0f8a61;
    --live: #e5383b; --live-soft: rgba(229, 56, 59, .1);
    --odds-bg: #eef2f6; --odds-border: #dde4eb; --odds-hover: #e3e9ef; --odds-text: #0e131a;
    --success: #0f8a61; --danger: #d32f2f; --warning: #b7791f; --info: #2f5bc0;
    --hover: #eef2f6; --success-soft: #e3f6ee; --danger-soft: #fdecec; --danger-fill: #d32f2f;
    --warning-soft: #fdf3dd; --warning-text: #8a5a00; --info-soft: #e9effc;
    --overlay: rgba(14, 19, 26, .45);
    --shadow-pop: 0 4px 12px rgba(14, 19, 26, .08), 0 18px 40px rgba(14, 19, 26, .14);
    --logo-disc: #ffffff; --logo-ring: var(--border); --score-box: #ffffff;
    color-scheme: light;
  }
}
/* explicit dark: the :root values restated so scoped [data-theme="dark"] blocks (design-system sampler) work */
[data-theme="dark"] {
  --bg: #0e131a; --surface: #151b23; --surface-2: #1b232d; --surface-3: #222b36;
  --border: #232c37; --border-strong: #2e3946;
  --text: #eef2f6; --text-2: #c3ccd6; --muted: #8e9aa8;
  --accent: #5ce1ad; --accent-hover: #74eabd; --on-accent: #062417; --accent-soft: rgba(92, 225, 173, .14); --accent-text: #5ce1ad;
  --live: #ff4d4f; --live-soft: rgba(255, 77, 79, .14);
  --odds-bg: #232c38; --odds-border: #2d3846; --odds-hover: #2b3644; --odds-text: #ffffff;
  --success: #5ce1ad; --danger: #ff6b6b; --warning: #f5b84b; --info: #7fb2ff;
  --hover: #1e2731; --success-soft: rgba(92, 225, 173, .12); --danger-soft: rgba(255, 107, 107, .13); --danger-fill: #e5383b;
  --warning-soft: rgba(245, 184, 75, .13); --warning-text: #f5c56b; --info-soft: rgba(127, 178, 255, .12);
  --overlay: rgba(4, 8, 12, .66);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .55);
  --logo-disc: #eef2f6; --logo-ring: rgba(255, 255, 255, .12); --score-box: #eef2f6;
  color-scheme: dark;
}
/* ALIASES (v1–v3 names → v4). Declared on :root AND every [data-theme] scope so they re-resolve per theme. */
:root, [data-theme] {
  --primary: var(--accent); --primary-2: var(--accent); --primary-hover: var(--accent-hover); --primary-soft: var(--accent-soft);
  --primary-text: var(--accent-text); --on-primary: var(--on-accent); --accent-2: var(--accent-hover); --accent-fill: var(--accent);
  --accent-big: var(--accent-text); --yellow: var(--warning); --amber: var(--warning); --yellow-soft: var(--warning-soft);
  --yellow-text: var(--warning-text); --on-warm: var(--on-accent); --odds-selected: var(--accent); --on-odds-selected: var(--on-accent);
  --odds-ink: var(--odds-text); --odds-bg-hover: var(--odds-hover); --hero-1: var(--surface-2); --hero-2: var(--hero-bg);
  --bg-2: var(--bg); --bg-deep: var(--bg); --surface-raised: var(--surface); --band: var(--surface-2);
  --line: var(--border); --line-strong: var(--border-strong); --warn: var(--warning-text); --warn-soft: var(--warning-soft);
  --focus: var(--accent); --tint-border: var(--border);
  --shadow-sm: var(--shadow-card); --shadow: var(--shadow-card); --shadow-lg: var(--shadow-pop);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  /* v3 gradients neutralised: every --grad-* is a FLAT v4 fill */
  --grad-brand: linear-gradient(var(--hero-bg), var(--hero-bg));
  --grad-primary: linear-gradient(var(--accent), var(--accent));
  --grad-primary-hover: linear-gradient(var(--accent-hover), var(--accent-hover));
  --grad-warm: linear-gradient(var(--accent), var(--accent));
  --grad-money: linear-gradient(var(--accent-text), var(--accent-text));
  --grad-strip: linear-gradient(var(--accent), var(--accent));
  --grad-wallet: linear-gradient(var(--surface), var(--surface));
  --grad-deep: linear-gradient(var(--hero-bg), var(--hero-bg));
  --grad-accent: var(--accent);
}
@media (min-width: 768px) { :root { --header-h: 60px; } }

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }
html.sheet-lock { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; color: var(--text);
  font-variant-numeric: tabular-nums; font-synthesis: none;
  background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { max-width: 100%; }
a { color: var(--primary-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 22px; line-height: 30px; font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
h4 { font-size: 14px; line-height: 20px; font-weight: 600; }
@media (min-width: 768px) { h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); } }
/* v2 guard (applies to every stylesheet): Inter is loaded at 400–700 only, so any 800/900 renders as 700;
   headings never get tracking tighter than -0.01em. */
h1, h2, h3 { letter-spacing: -.01em !important; }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s5) 0; }
small, .small { font-size: var(--fs-small); line-height: var(--lh-small); }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85em; background: var(--hover); padding: .1em .35em; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--text); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-control); font-weight: 600; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.3em; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.num, .tabular { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.amount-pos { color: var(--success); font-weight: 600; }
.amount-neg { color: var(--danger); font-weight: 600; }
.money { color: var(--accent-text); font-weight: 700; }
.eyebrow { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- 3. Layout ---------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s6); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; min-width: 0; }
.row-nowrap { flex-wrap: nowrap; }
.spacer { flex: 1 1 auto; }
.grid-2, .grid-3 { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.demo-strip {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 28px; padding: 4px 16px;
  font-size: 12px; line-height: 18px; font-weight: 500; color: var(--warning-text); background: var(--warning-soft); border-bottom: 1px solid var(--border);
  text-align: center;
}
.site-notice { margin: 0; border-radius: 0; border-width: 0 0 1px; }

/* header: 60px solid surface + 1px border (56px on phones) */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { height: 100%; padding: 0 12px; display: flex; align-items: center; gap: 4px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; min-height: var(--tap); flex: none; margin-right: 4px; }
.brand:hover { color: var(--text); }
.brand-word span { color: var(--accent); }
.hdr-divider { display: none; width: 1px; height: 24px; background: var(--border); flex: none; margin: 0 8px; }
.header-nav { display: none; align-items: stretch; align-self: stretch; gap: 2px; min-width: 0; flex-wrap: nowrap; }
.header-nav > details { display: flex; }
.nav-pill {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 100%; min-height: var(--tap); padding: 0 12px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer; list-style: none;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav-pill::-webkit-details-marker { display: none; }
.nav-pill::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background var(--dur-2) var(--ease); }
.nav-pill:hover { color: var(--text); }
.nav-pill:hover::after { background: var(--border-strong); }
.nav-pill .icon { width: 18px; height: 18px; color: var(--muted); }
.nav-pill .nav-chev { width: 14px; height: 14px; margin-left: -2px; transition: transform var(--dur-2) var(--ease); }
details[open] > .nav-pill .nav-chev { transform: rotate(180deg); }
.nav-pill[aria-current="page"], .nav-pill.is-active { color: var(--text); font-weight: 600; }
.nav-pill[aria-current="page"] .icon, .nav-pill.is-active .icon { color: var(--primary-text); }
.nav-pill[aria-current="page"]::after, .nav-pill.is-active::after { background: var(--primary); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.header-actions { position: relative; display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-control);
  border: 0; background: transparent; color: var(--text-2); cursor: pointer; text-decoration: none; flex: none; list-style: none; font: inherit;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover, .icon-btn[aria-current="page"], details[open] > .icon-btn { background: var(--hover); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }
@media (max-width: 767px) { .icon-btn { width: var(--tap); height: var(--tap); } }
.dot-count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--live); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.bell-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--surface); font-size: 0; color: transparent; overflow: hidden; }
/* search trigger: an input-looking button on desktop, an icon on small screens */
.hdr-search-field {
  display: none; align-items: center; gap: 8px; height: 36px; width: 220px; padding: 0 8px 0 10px; margin-right: 6px;
  border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface-2); color: var(--muted);
  font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.hdr-search-field:hover { border-color: var(--border-strong); color: var(--text-2); }
.hdr-search-field .icon { width: 16px; height: 16px; }
.hdr-search-field span { flex: 1 1 auto; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbd { display: inline-flex; align-items: center; white-space: nowrap; flex: none; height: 20px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 500; font-family: inherit; line-height: 1; }
@media (min-width: 1280px) { .hdr-search-field { display: inline-flex; } .hdr-search { display: none; } }
.balance-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: var(--r-control); flex: none;
  background: var(--primary-soft); color: var(--primary-text); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; margin-left: 4px;
  transition: background var(--dur-1) var(--ease);
}
.balance-pill .icon { width: 18px; height: 18px; }
.balance-pill:hover { color: var(--primary-text); background: color-mix(in srgb, var(--primary-soft) 82%, var(--primary) 18%); }
.balance-pill small { font-weight: 500; font-size: 12px; opacity: .85; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 600; flex: none; letter-spacing: .02em; }
.avatar.is-guest { background: var(--hover); color: var(--text-2); }
.avatar.is-guest .icon { width: 18px; height: 18px; }
.avatar-lg { width: 40px; height: 40px; font-size: 14px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 6px 0 4px; border-radius: var(--r-control); cursor: pointer; list-style: none; color: var(--text); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background var(--dur-1) var(--ease); }
.user-chip::-webkit-details-marker { display: none; }
.user-chip:hover, details[open] > .user-chip { background: var(--hover); }
.user-chip .user-name { display: none; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.user-chip .user-chev { display: none; width: 16px; height: 16px; color: var(--muted); transition: transform var(--dur-2) var(--ease); }
details[open] > .user-chip .user-chev { transform: rotate(180deg); }

/* menus (details[data-menu]) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-pop); padding: 6px;
  transform-origin: top right; animation: menu-in var(--dur-2) var(--ease-out);
}
.menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; min-width: 0; }
.menu-head > span:last-child { min-width: 0; }
.menu-head strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head .muted { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-guest { display: grid; gap: 8px; padding: 6px 4px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-link, .menu-panel form button.menu-link {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 6px;
  color: var(--text); text-decoration: none; font: inherit; font-weight: 500; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left;
}
.menu-link:hover { background: var(--hover); color: var(--text); }
.menu-link .icon { width: 18px; height: 18px; color: var(--muted); }
.menu-link.is-active { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.menu-link .menu-check { margin-left: auto; color: var(--primary-text); }
.menu-section { padding: 10px; border-top: 1px solid var(--border); margin-top: 6px; }
.menu-section .eyebrow { display: block; margin-bottom: 8px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: var(--r-control); background: var(--hover); }
.segmented button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 12, 30, .08); }

/* sports dropdown */
.nav-drop .menu-panel.sports-panel { left: 0; right: auto; top: calc(100% + 1px); width: 520px; max-width: calc(100vw - 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 8px; transform-origin: top left; }
.sp-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; min-width: 0; }
.sp-item:hover { background: var(--hover); color: var(--text); }
.sp-item.is-active { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.sp-ico { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); flex: none; }
.sp-ico .icon { width: 18px; height: 18px; }
.sp-item.is-active .sp-ico { color: var(--primary-text); }
.sp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-live, .sp-next { margin-left: auto; font-size: 12px; font-weight: 500; white-space: nowrap; }
.sp-live { color: var(--accent-text); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.sp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.sp-next { color: var(--muted); }

/* notification popover */
.notif-menu { position: static; }
.notif-menu .menu-panel.notif-panel { width: min(400px, calc(100vw - 24px)); padding: 8px; right: 0; }
.notif-feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); transition: opacity var(--dur-2) var(--ease); }
.notif-feature.is-unread { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.notif-feature.is-leaving, .notif-row.is-leaving { opacity: 0; }
.notif-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.notif-ico .icon { width: 20px; height: 20px; }
.notif-ico.sm { width: 32px; height: 32px; }
.notif-ico.sm .icon { width: 16px; height: 16px; }
.notif-ico.is-payments, .notif-ico.is-account { background: var(--primary-soft); color: var(--primary-text); }
.notif-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-copy strong { font-size: 14px; font-weight: 600; color: var(--text); line-height: 20px; }
.notif-feature .notif-copy p { margin: 2px 0 4px; font-size: 13px; line-height: 19px; color: var(--text-2); overflow-wrap: anywhere; }
.notif-feature time { font-size: 12px; color: var(--muted); }
.notif-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.notif-actions .btn { min-height: 36px; }
.notif-actions .notif-dismiss { color: var(--text-2); text-decoration: none; font-weight: 500; min-height: 36px; padding: 0 6px; }
.notif-dismiss:hover { color: var(--text); }
.notif-list { display: grid; margin-top: 6px; }
.notif-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 6px; color: var(--text); text-decoration: none; min-height: 52px; }
.notif-row:hover { background: var(--hover); color: var(--text); }
.notif-row .notif-copy strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-row .notif-body { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-row time { font-size: 12px; color: var(--muted); white-space: nowrap; align-self: start; margin-top: 2px; }
.notif-row.is-unread .notif-copy strong::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.notif-empty { display: flex; gap: 12px; align-items: center; padding: 12px 8px; }
.notif-empty p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.notif-all { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }

/* shell: flush sidebar | main (neutral bg) | flush slip column */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-height: calc(100vh - var(--header-h)); }
.main-col { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }
.main { min-width: 0; flex: 1 0 auto; padding: 12px 12px 24px; container-type: inline-size; container-name: main; }
.main:focus { outline: none; }
.side-nav { display: none; }
.side-slip { min-width: 0; }

@media (min-width: 768px) {
  .header-inner { padding: 0 16px; }
  .header-nav { display: flex; }
  .hdr-divider { display: block; }
  .nav-pill .nav-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .main { padding: 20px 20px 32px; }
  .bottom-nav { display: none !important; }
}
@media (min-width: 1024px) {
  .nav-pill .nav-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .user-chip .user-chev { display: inline; }
}
@media (min-width: 1100px) {
  .header-inner { padding: 0 20px; }
  .shell { grid-template-columns: minmax(0, 1fr) var(--slip-w); }
  .main { padding: 20px 24px 32px; }
  .side-slip {
    position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
    background: var(--surface); border-left: 1px solid var(--border);
  }
}
@media (min-width: 1280px) {
  .user-chip .user-name { display: inline; }
  .shell { grid-template-columns: var(--side-w) minmax(0, 1fr) var(--slip-w); }
  .side-nav {
    display: block; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
    background: var(--surface); border-right: 1px solid var(--border);
  }
  .sport-chips-wrap { display: none; }
}

/* side nav: flush list */
.side-panel { padding: 12px 8px 24px; }
.side-group + .side-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.side-group .eyebrow { display: block; padding: 8px 12px 6px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 6px; color: var(--text-2);
  text-decoration: none; font-weight: 500; font-size: 14px; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.side-link + .side-link { margin-top: 1px; }
.side-ico { display: grid; place-items: center; width: 20px; height: 20px; color: var(--muted); flex: none; }
.side-ico .icon { width: 18px; height: 18px; }
.side-name { min-width: 0; overflow: hidden; display: flex; flex-direction: column; line-height: 18px; }
.side-name small { font-size: 11px; line-height: 15px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-link:hover { background: var(--hover); color: var(--text); }
.side-link[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.side-link[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.side-link[aria-current="page"] .side-ico { color: var(--primary-text); }
.side-link[aria-current="page"] .side-name small { color: var(--text-2); }
.side-link.is-live-link .side-ico { color: var(--accent-text); }
.side-link .side-meta { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.side-link .side-meta.is-live { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* bottom nav (mobile): solid surface + top border */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--border);
}
.bottom-nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h);
  color: var(--muted); text-decoration: none; font-size: 11px; line-height: 14px; font-weight: 500;
}
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--primary-text); font-weight: 600; }
.bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--primary); }
.bottom-nav .dot-count { top: 5px; right: calc(50% - 22px); }

.site-footer { padding: 20px 12px calc(var(--nav-h) + var(--safe-b) + 24px); color: var(--muted); font-size: 12px; line-height: 18px; border-top: 1px solid var(--border); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin-bottom: 6px; }
.site-footer a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--text); }
.site-footer p { max-width: 90ch; margin-bottom: 4px; }
@media (min-width: 768px) { .site-footer { padding: 20px 20px 28px; } }
@media (min-width: 1100px) { .site-footer { padding: 20px 24px 28px; } }

/* ---------- 4. Components ----------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 16px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 260px; }
.page-head .lede { margin: 4px 0 0; color: var(--text-2); font-size: 14px; max-width: 68ch; }
.lede { color: var(--text-2); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 52px; padding: 12px var(--pad-card); border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 15px; line-height: 22px; font-weight: 600; }
.card-body { padding: 16px var(--pad-card); }
.card-foot { padding: 12px var(--pad-card); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-card) var(--r-card); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card + .card { margin-top: 16px; }
.card-flat { box-shadow: none; }
@media (max-width: 480px) { .card-head, .card-body, .card-foot { padding-left: 14px; padding-right: 14px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-control);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; line-height: 20px;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
@media (max-width: 767px) { .btn { min-height: var(--tap); } }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { background: var(--hover); color: var(--text); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-primary[disabled]:hover { background: var(--primary); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary-text); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-text); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 86%, #000); color: #fff; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
@media (max-width: 767px) { .btn-sm { min-height: 36px; } }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 44px; font-size: 15px; padding: 0 20px; }
@media (max-width: 767px) { .btn-lg { min-height: 48px; } }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-primary) transparent var(--on-primary) transparent; animation: spin .8s linear infinite; }
.btn:not(.btn-primary):not(.btn-accent):not(.btn-danger).is-busy::after { border-color: var(--text) transparent var(--text) transparent; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-text); font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }

/* forms: 44px inputs, labels above */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .field-label { font-weight: 500; font-size: 13px; line-height: 18px; color: var(--text); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-control); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
@media (max-width: 767px) { .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .input { font-size: 16px; } }
.field textarea { min-height: 120px; resize: vertical; line-height: 22px; }
.field input:hover, .field select:hover, .field textarea:hover, .input:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--muted)); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field .help { font-size: 12px; line-height: 18px; color: var(--muted); }
.field .error, .field .errorlist { font-size: 12px; line-height: 18px; color: var(--danger); font-weight: 500; margin: 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.form-errors { padding: 10px 12px; border-radius: var(--r-control); background: var(--danger-soft); color: var(--danger); font-weight: 500; margin-bottom: 16px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: var(--tap); padding: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  background: var(--hover); color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; line-height: 1;
}
.badge .icon { width: 12px; height: 12px; stroke-width: 2; }
.badge-live { background: var(--accent-soft); color: var(--accent-text); text-transform: uppercase; letter-spacing: .04em; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warning-soft); color: var(--warning-text); }
.badge-muted { background: var(--hover); color: var(--muted); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-demo { background: transparent; color: var(--warning-text); box-shadow: inset 0 0 0 1px currentColor; }
.badge-primary { background: var(--primary); color: var(--on-primary); }
.badge-accent { background: var(--accent); color: var(--on-accent); }

/* tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num, .table td.num { text-align: right; }
@media (max-width: 767px) {
  .table-wrap { overflow: visible; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 14px; }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 6px 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
  .table td::before { content: attr(data-label); font-weight: 500; color: var(--muted); font-size: 12px; text-align: left; flex: none; max-width: 45%; }
  .table td:not([data-label])::before { content: none; }
  .table tbody tr:hover td { background: transparent; }
}

/* list */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad-card); border-top: 1px solid var(--border); min-width: 0; }
.list-item:first-child { border-top: 0; }
a.list-item { color: inherit; text-decoration: none; transition: background var(--dur-1) var(--ease); }
a.list-item:hover { background: var(--surface-2); }
.list-item .icon-circle { width: 36px; height: 36px; }
.list-item.is-unread { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
.icon-circle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.icon-circle .icon { width: 20px; height: 20px; }
.icon-circle.is-accent { background: var(--accent-soft); color: var(--accent-text); }
.icon-circle.is-success { background: var(--success-soft); color: var(--success); }
.icon-circle.is-danger { background: var(--danger-soft); color: var(--danger); }

.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.stat-value { font-size: 22px; line-height: 28px; font-weight: 700; }

.empty-state { text-align: center; padding: 32px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state .icon-circle { width: 48px; height: 48px; }
.empty-state .icon-circle .icon { width: 22px; height: 22px; }
.empty-state h3 { color: var(--text); }
.empty-state p { max-width: 46ch; margin: 0; }
.empty-state .btn { margin-top: 6px; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-control); background: var(--surface-2); color: var(--text); font-size: 14px; margin-bottom: 12px; border: 1px solid var(--border); }
.notice > .icon { margin-top: 1px; width: 18px; height: 18px; }
.notice-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 20%, transparent); }
.notice-info > .icon { color: var(--info); }
.notice-warn, .notice-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 28%, transparent); }
.notice-warn > .icon, .notice-warning > .icon { color: var(--warning-text); }
.notice-danger, .notice-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.notice-danger > .icon, .notice-error > .icon { color: var(--danger); }
.notice-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.notice-success > .icon { color: var(--success); }
.messages { margin-bottom: 8px; }

/* tabs: underline style for page sections */
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: var(--text-2);
  text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; border: 0; background: none; font-family: inherit; cursor: pointer;
  transition: color var(--dur-1) var(--ease);
}
.tab::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background var(--dur-2) var(--ease); }
.tab:hover { color: var(--text); }
.tab.is-active, .tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--text); font-weight: 600; }
.tab.is-active::after, .tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { background: var(--primary); }
.tab .count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--hover); color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.tab.is-active .count, .tab[aria-current="page"] .count { background: var(--primary-soft); color: var(--primary-text); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; flex: none;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip .icon { width: 16px; height: 16px; }
.chip .chip-count { font-size: 11px; font-weight: 600; color: var(--accent-text); }
.chip.is-active .chip-count, .chip[aria-current="page"] .chip-count { color: inherit; opacity: .9; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips > * { scroll-snap-align: start; }
.chips-fade { position: relative; min-width: 0; }
.chips-wrap { flex-wrap: wrap; overflow: visible; }

/* stepper */
.stepper { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 8px; counter-reset: step; }
.stepper li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); counter-increment: step; }
.stepper li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hover); color: var(--muted); font-weight: 600; font-size: 13px; flex: none; }
.stepper li:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border-strong); min-width: 12px; }
.stepper li.is-done { color: var(--text-2); }
.stepper li.is-done::before { content: "✓"; background: var(--primary); color: var(--on-primary); }
.stepper li.is-done::after { background: var(--primary); }
.stepper li.is-current { color: var(--text); font-weight: 600; }
.stepper li.is-current::before { background: var(--primary-soft); color: var(--primary-text); box-shadow: inset 0 0 0 1.5px var(--primary); }
@media (max-width: 520px) { .stepper li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .stepper li.is-current span { position: static; width: auto; height: auto; clip: auto; } }

/* package radio cards */
.pkg-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pkg-option { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-card); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; min-height: 88px; transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.pkg-option:hover { border-color: var(--primary); color: var(--text); }
a.pkg-option { color: var(--text); text-decoration: none; }
.pkg-option strong { font-size: 16px; font-weight: 600; padding-right: 26px; }
.pkg-option input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-option::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); }
.pkg-option:has(input:checked), .pkg-option.is-selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.pkg-option:has(input:checked)::after, .pkg-option.is-selected::after { content: "✓"; display: grid; place-items: center; border-color: var(--primary); background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; }
.pkg-option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pkg-option.is-disabled, .pkg-option:has(input:disabled) { cursor: not-allowed; opacity: .55; background: var(--surface-2); border-style: dashed; box-shadow: none; }
.pkg-option.is-disabled::after, .pkg-option:has(input:disabled)::after { content: "–"; display: grid; place-items: center; color: var(--muted); background: var(--hover); }
.pkg-option .pkg-credits { font-size: 20px; line-height: 28px; font-weight: 700; }
.pkg-option .pkg-price { color: var(--accent-text); font-weight: 600; }

/* summary / kv */
.summary { margin: 0; display: grid; gap: 0; }
.summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-top: 1px solid var(--border); }
.summary > div:first-child { border-top: 0; }
.summary dt { color: var(--text-2); font-size: 13px; }
.summary dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.summary .summary-total { border-top: 1px solid var(--border-strong); padding-top: 10px; margin-top: 2px; }
.summary .summary-total dt { color: var(--text); font-weight: 600; }
.summary .summary-total dd { color: var(--accent-text); font-size: 18px; font-weight: 700; }
.kv { margin: 0; display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline-item { position: relative; padding: 0 0 16px 24px; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -8px; width: 1px; background: var(--border-strong); }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.timeline-item.is-success::after { border-color: var(--success); }
.timeline-item.is-danger::after { border-color: var(--danger); }
.timeline-item.is-muted::after { border-color: var(--border-strong); }
.timeline-item time, .timeline-item .muted { font-size: 12px; }

/* hero banner: one of the two places a (subtle, 2-stop) gradient is allowed */
.hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-card); color: #fff; padding: 22px 24px;
  background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 100%);
}
.hero::before, .hero::after { content: none; }
.hero h1, .hero h2, .hero h3 { color: inherit; }
.hero .lede, .hero p { color: rgba(255, 255, 255, .86); }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero.card { padding: 0; border: 0; }
.hero .card-head, .hero .card-foot { background: transparent; border-color: rgba(255, 255, 255, .16); }
.hero .stat-label, .hero .muted, .hero .help { color: rgba(255, 255, 255, .8); }
.hero .stat-value { color: #fff; font-size: 28px; line-height: 36px; }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero .btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.hero .btn:not(.btn-primary):not(.btn-accent):not(.btn-ghost) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff; }
.hero .btn:not(.btn-primary):not(.btn-accent):not(.btn-ghost):hover { background: rgba(255, 255, 255, .18); }
.hero a:not(.btn) { color: #fff; }
.hero-art { position: absolute; z-index: -1; right: 4%; bottom: -24px; width: 150px; height: 150px; color: rgba(255, 255, 255, .08); stroke-width: 1; }
@media (max-width: 600px) { .hero { padding: 18px 16px; } .hero-art { width: 110px; height: 110px; right: -10px; } }

/* progress */
.progress { position: relative; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); border-radius: inherit; background: var(--primary); transition: width var(--dur-3) var(--ease); }

/* ---------- 6. Match centre --------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; min-width: 0; }
.crumbs a { color: var(--text-2); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--primary-text); }
.crumbs .icon { width: 14px; height: 14px; }

.scoreboard { padding: 20px 20px 18px; }
.sb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; position: relative; }
.sb-top .sbadge { background: rgba(255, 255, 255, .16); color: #fff; }
.scoreboard[data-status="live"] .sb-top .sbadge { background: var(--live); color: #fff; }
.scoreboard[data-status="delayed"] .sb-top .sbadge, .scoreboard[data-status="postponed"] .sb-top .sbadge { background: #ffd27a; color: #2d1d00; }
.scoreboard[data-status="abandoned"] .sb-top .sbadge, .scoreboard[data-status="cancelled"] .sb-top .sbadge { background: #ffb3bb; color: #3a0710; }
.scoreboard[data-status="interval"] .sb-top .sbadge { background: #cddcff; color: #0d2254; }
.sb-comp { font-size: .82rem; font-weight: 700; color: rgba(255, 255, 255, .82); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-top .sb-actions { margin-left: auto; display: flex; gap: 4px; }
.sb-top .fav-btn, .sb-top .pin-btn { color: rgba(255, 255, 255, .85); }
.sb-top .fav-btn:hover, .sb-top .pin-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sb-top .fav-btn[aria-pressed="true"] { color: var(--warning); }
.sb-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.sb-team .crest { width: 52px; height: 52px; border-radius: 16px; font-size: .9rem; color: #fff; background: color-mix(in srgb, var(--c, #fff) 38%, rgba(255, 255, 255, .1)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.sb-team .sb-name { font-weight: 700; font-size: .98rem; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.sb-team .sb-sub { font-size: .8rem; color: rgba(255, 255, 255, .78); font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.sb-score { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.sb-nums { display: flex; align-items: center; gap: 10px; font-size: clamp(2rem, 1.4rem + 3vw, 3rem); font-weight: 700; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.sb-nums .sep { opacity: .5; font-weight: 600; }
.sb-nums span[data-f] { min-width: 1.1ch; text-align: center; border-radius: 10px; padding: 0 4px; transition: background var(--dur-3) var(--ease); }
.scoreboard[data-sport="cricket"] .sb-nums { font-size: clamp(1.4rem, 1rem + 2.2vw, 2.2rem); }
.sb-phase { font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; text-align: center; }
.sb-when { font-size: .95rem; font-weight: 700; text-align: center; }
.scoreboard:not([data-status="scheduled"]) .sb-when { display: none; }
.scoreboard[data-status="scheduled"] .sb-nums { display: none; }
.sb-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .78rem; color: rgba(255, 255, 255, .8); position: relative; }
.sb-foot span { display: inline-flex; align-items: center; gap: 6px; }
.sb-foot .icon { width: 15px; height: 15px; }
.sb-foot .is-delayed { color: #ffd27a; font-weight: 700; }
.replay-label { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255, 210, 122, .18); color: #ffd27a; font-size: .72rem; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .5); }
.replay-label .icon { width: 14px; height: 14px; }
.replay-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: var(--warn-soft); border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent); margin-top: 14px; }
.replay-bar strong { font-size: .85rem; color: var(--warn); display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
@media (max-width: 420px) { .sb-team .crest { width: 44px; height: 44px; } .sb-team .sb-name { font-size: .9rem; } .scoreboard { padding: 18px 14px; } }


/* live panel */
@media (max-width: 420px) { .lp-table .hide-xs { display: none; } }
.balls { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 14px 0 0; }
.balls li { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 50%; font-size: .78rem; font-weight: 700; background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums; }
.balls li.k-dot { color: var(--muted); }
.balls li.k-four { background: var(--info-soft); color: var(--info); }
.balls li.k-six { background: var(--primary); color: var(--on-primary); }
.balls li.k-wicket { background: var(--danger); color: #fff; }
html[data-theme="dark"] .balls li.k-wicket { color: #1a0508; }
.balls li.k-wide, .balls li.k-noball, .balls li.k-extra, .balls li.k-bye, .balls li.k-legbye { background: var(--warn-soft); color: var(--warn); border-radius: 10px; }
.balls-label { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.linescore { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.linescore th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px 6px; text-align: center; }
.linescore th:first-child { text-align: left; padding-left: 0; }
.linescore td { padding: 10px 6px; text-align: center; border-top: 1px solid var(--line); font-weight: 600; min-width: 30px; }
.linescore td:first-child { text-align: left; padding-left: 0; font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linescore td.total { font-weight: 700; font-size: 1.05rem; }
.linescore .is-current { color: var(--accent-text); font-weight: 700; }
.linescore .is-won { font-weight: 700; color: var(--text); }
.linescore .is-lost { color: var(--muted); }
.serve-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.stat-bars { display: grid; gap: 12px; margin-top: 16px; }
.stat-bar { display: grid; grid-template-columns: 3ch minmax(0, 1fr) 3ch; gap: 10px; align-items: center; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-bar .label { grid-column: 1 / -1; text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: -6px; }
.stat-bar .bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--surface-3); gap: 3px; }
.stat-bar .bar .h { background: var(--primary); border-radius: 4px; transition: width var(--dur-3) var(--ease); }
.stat-bar .bar .a { background: var(--accent); border-radius: 4px; flex: 1; }
.stat-bar span:last-child { text-align: right; }
.events { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.events li { display: grid; grid-template-columns: 42px 22px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.events li:first-child { border-top: 0; }
.events .min { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.events .ev-ico { display: grid; place-items: center; }
.events .ev-card { display: inline-block; width: 11px; height: 15px; border-radius: 2px; background: #f2c200; }
.events .ev-card.red { background: #d8283a; }
.events .side-away { text-align: right; }
.events .rev { color: var(--warn); font-weight: 700; font-size: .76rem; }
.bb-state { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-weight: 700; }
.outs { display: inline-flex; gap: 5px; align-items: center; font-size: .78rem; color: var(--muted); }
.outs i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line-strong); }
.outs i.on { background: var(--accent); border-color: var(--accent); }

/* markets */
.market-tabs { margin-bottom: 14px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; }
.markets { display: grid; gap: 12px; }
.market { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 16px; box-shadow: var(--shadow-sm); transition: opacity var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.market-head { display: flex; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.market-name { font-size: .95rem; font-weight: 700; margin-right: auto; min-width: 0; }
.scope { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-text); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.scope .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.market-reason { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--text); font-size: .84rem; font-weight: 600; }
.market-reason .icon { color: var(--warn); }
.market[data-mstatus="unavailable"] .market-reason { background: var(--surface-3); }
.market[data-mstatus="unavailable"] .market-reason .icon { color: var(--muted); }
.market[data-mstatus="suspended"], .market[data-mstatus="unavailable"] { background: var(--surface-2); }
.market[data-mstatus="unavailable"] .market-name { color: var(--text-2); }
.market-sels { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.market-sels.is-list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .market-sels.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.market-rule { margin: 10px 0 0; font-size: .76rem; color: var(--muted); }
.market-settled .odds { cursor: default; }
.sel-result { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; }
.sel-won { color: var(--success); }
.sel-lost { color: var(--muted); }
.sel-void { color: var(--warn); }

/* ---------- 8. Tickets --------------------------------------------------- */
.tickets { display: grid; gap: 12px; }
.ticket { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 16px 18px; display: grid; gap: 10px; min-width: 0; overflow: hidden; }
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.ticket[data-status="won"]::before { background: var(--success); }
.ticket[data-status="lost"]::before { background: var(--line-strong); }
.ticket[data-status="void"]::before { background: var(--warn); }
.ticket-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ticket-match { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: var(--text); text-decoration: none; min-height: 32px; }
.ticket-match:hover { color: var(--primary-text); }
.ticket-match span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ticket-match .icon { color: var(--muted); }
.ticket-top .badge { margin-left: auto; }
.ticket-pick { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ticket-pick strong { font-size: 1.02rem; min-width: 0; overflow-wrap: anywhere; }
.ticket-pick .odds-pill { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 9px; background: var(--odds-bg); flex: none; }
.ticket-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; color: var(--text-2); }
.ticket-outcome { font-size: .88rem; color: var(--text-2); margin: 0; }
.ticket[data-status="won"] .ticket-outcome { color: var(--text); }
.ticket-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ticket-figs div { min-width: 0; }
.ticket-figs dt { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ticket-figs dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticket-progress { display: grid; gap: 6px; }
.ticket-progress .row { justify-content: space-between; font-size: .84rem; font-weight: 700; }
.ticket-progress .row .num { color: var(--primary-text); }
.ticket-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.ticket-foot a { margin-left: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; text-decoration: none; }

/* ---------- 12. Accounts, support, notifications (shared pages) --------- */
.auth-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.auth-card { width: 100%; max-width: 480px; margin: 0 auto; border-radius: var(--r-xl); }
.auth-card .card-body { padding: 28px 26px; }
.auth-card .page-head { margin: 0 0 4px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-art { display: none; position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 420px; isolation: isolate;
  background: linear-gradient(150deg, var(--hero-1), var(--hero-2)); box-shadow: var(--shadow-lg); }
.auth-art::before { content: ""; position: absolute; z-index: -1; width: 70%; height: 150%; top: -25%; right: -30%; border-radius: 32px; transform: rotate(24deg);
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); opacity: .55; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 30% 70%, transparent 0 46px, rgba(255,255,255,.14) 47px 49px, transparent 50px 78px, rgba(255,255,255,.09) 79px 81px, transparent 82px),
    linear-gradient(115deg, transparent 0 40%, rgba(255,255,255,.08) 40% 52%, transparent 52%),
    radial-gradient(90% 60% at 0% 0%, rgba(255,255,255,.18), transparent 60%); }
.auth-art-right::before { right: auto; left: -34%; top: auto; bottom: -30%; transform: rotate(-24deg); opacity: .9; }
.auth-art-right::after { background:
    radial-gradient(circle at 70% 28%, transparent 0 30px, rgba(255,255,255,.16) 31px 33px, transparent 34px 60px, rgba(255,255,255,.1) 61px 63px, transparent 64px),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.05) 22px 24px),
    radial-gradient(90% 60% at 100% 100%, rgba(255,255,255,.14), transparent 60%); }
@media (min-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px) minmax(0, 1fr); }
  .auth-art { display: block; }
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; z-index: 1; }
.input-wrap > .icon ~ input:not([type=checkbox]):not([type=radio]), .input-wrap > .icon ~ select { padding-left: 44px; }
.input-wrap .pw-toggle { position: absolute; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.input-wrap .pw-toggle:hover { color: var(--text); background: var(--surface-3); }
.input-wrap .pw-toggle[aria-pressed="true"] { color: var(--primary-text); }
.input-wrap:has(.pw-toggle) input:not([type=checkbox]):not([type=radio]) { padding-right: 52px; }
.pw-checklist { display: grid; gap: 2px; margin: -6px 0 4px; }
.pw-checklist .list-item { border: 0; padding: 2px 0; gap: 8px; font-size: .82rem; color: var(--muted); min-height: 28px; }
.pw-checklist .list-item .icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--surface-3); color: transparent; stroke-width: 2.6; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.pw-checklist .list-item.is-done { color: var(--success); }
.pw-checklist .list-item.is-done .icon { background: var(--success); color: var(--surface); }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { border: 1.5px solid var(--line-strong) !important; background: var(--surface) !important; color: var(--text) !important; }
.btn-google:hover { background: var(--surface-3) !important; }
.field.has-error > label { color: var(--danger); }

.chat { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: min(560px, 88%); padding: 12px 16px; border-radius: 18px; font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.bubble > p.muted { font-size: .74rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bubble > p.muted .icon { width: 14px; height: 14px; }
.bubble-user { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; }
.bubble-user > p.muted { color: color-mix(in srgb, var(--on-primary) 78%, transparent); }
.bubble-user a { color: inherit; }
.bubble-staff { align-self: flex-start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 6px; }
.notification { padding: 0; }
.notification > a { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; color: inherit; text-decoration: none; min-width: 0; transition: background var(--dur-1) var(--ease); }
.notification > a:hover { background: var(--surface-2); color: inherit; }
.notification > a > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); }
.notification > a > .stack { gap: 2px; min-width: 0; }
.notification > a > .stack .muted { font-size: .86rem; overflow-wrap: anywhere; }
.notification > a > time { font-size: .76rem; white-space: nowrap; }
.notification.is-unread > a > .icon { background: var(--accent-soft); color: var(--accent-text); }
.notification.is-unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
@media (max-width: 560px) { .notification > a { flex-wrap: wrap; } .notification > a > .stack { flex: 1 1 calc(100% - 60px); } .notification > a > .spacer { display: none; } .notification > a > time { margin-left: 56px; } }
.notification-summary { margin-bottom: 16px; }
.mail-body { padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; max-width: 100%; }
.empty-state > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); box-sizing: content-box; }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.inline-form { display: inline-flex; position: relative; z-index: 2; margin: 0; }
.market-settled .list-item { padding-left: 0; padding-right: 0; gap: 10px; }
.market-rule summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--text-2); }
.market-rule p { margin: 4px 0 0; line-height: 1.5; }
.mrow .phase { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mrow-tags { overflow: hidden; }
.mt-3 { margin-top: 12px; } .mt-5 { margin-top: 20px; }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .kv dd { margin-bottom: 10px; } }
@media (max-width: 767px) {
  .sb-top .sb-comp { order: 5; flex-basis: 100%; }
  .sb-top .sb-actions { margin: -8px -8px -8px auto; }
  .replay-bar strong { flex-basis: 100%; }
  .dash-hero { padding: 18px; }
  .dash-hero .lede { font-size: .86rem; margin-top: 4px; }
  .dash-hero .hero-stats { margin-top: 10px; }
}
.page-head > h1, .page-head > p, .page-head > .row, .page-head > .lede { flex-basis: 100%; margin-top: 0; margin-bottom: 0; }
.page-head > h1 + .lede, .page-head > h1 + p { margin-top: -6px; }
.grid-2 > .card + .card, .grid-3 > .card + .card, .grid-2 > .card, .grid-3 > .card { margin-top: 0; }
.grid-2 + .card, .card + .grid-2, .card + .grid-3, .grid-3 + .card, .notice + .grid-2 { margin-top: 16px; }
.pkg-grid + p, .pkg-grid + .muted { margin-top: 14px; }
.stack > .badge, .stack-sm > .badge, .list-item .stack > .badge { align-self: flex-start; }
.card > .list:not(:first-child) { border-top: 1px solid var(--line); }
section.stack + section.stack { margin-top: 20px; }
.tabs + .stack, .tabs + section, .tabs + .card { margin-top: 18px; }
.tabs:not(.market-tabs) + * { margin-top: 16px; }
.stack > .field, form.stack > .field { margin-bottom: 0; }
.card.stat { padding: 16px 18px; border-radius: var(--r); }
a.card.stat { color: var(--text); text-decoration: none; transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
a.card.stat:hover { border-color: var(--primary); transform: translateY(-1px); }
a.card.stat .stat-value { color: var(--primary-text); font-size: 1.2rem; display: inline-flex; align-items: center; gap: 8px; }
.grid-3 > .card.stat, .grid-2 > .card.stat { margin: 0; }
@media (max-width: 400px) {
  .header-inner { padding: 0 10px; gap: 4px; }
  .header-actions { gap: 0; }
  .header-actions .btn-sm { padding: 0 10px; }
  .balance-pill { padding: 0 10px 0 8px; gap: 4px; }
  .balance-pill small { display: none; }
  .brand { font-size: 1.15rem; gap: 7px; }
  
  .icon-btn { width: 42px; }
}

/* ---------------------------------------------------------------- in-site admin panel */
.kv > div { display: contents; }
.row.wrap, .wrap { flex-wrap: wrap; }
.admin-tabs { margin-bottom: 18px; }
.page-admin .card { margin-bottom: 16px; }
.page-admin .grid-2, .page-admin .grid-3 { margin-bottom: 0; }
.admin-stats .stat { display: flex; flex-direction: column; gap: 4px; }
.admin-stats .stat .muted { font-size: .8rem; }
.switch-strip .card-body { gap: 8px; }
.switch-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: .85rem; border: 1px solid var(--line); }
.switch-pill .icon { width: 16px; height: 16px; }
.switch-pill.is-on { background: var(--success-soft, var(--surface-3)); color: var(--success, var(--text)); }
.switch-pill.is-off { background: var(--danger-soft, var(--surface-3)); color: var(--danger, var(--text)); }
.admin-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.admin-shortcuts .btn { justify-content: flex-start; }
.pkg-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 16px; }
.pkg-admin-grid .card { margin-bottom: 0; }
.pkg-admin h2 { font-size: 1.25rem; }
.pkg-admin.is-disabled { opacity: .72; }
.card-foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.big-rule { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.big-rule .num { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--primary-text); letter-spacing: -.01em; }
.big-rule span:last-child { color: var(--muted); font-weight: 600; }
.redemption-current { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface) 70%); }
.limits-form { align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.limits-form .field { margin: 0; min-width: 140px; }
.admin-filter { align-items: flex-end; gap: 12px; padding: 14px 18px; }
.admin-filter .field { margin: 0; min-width: 160px; }
.pager { justify-content: center; gap: 12px; margin: 12px 0 20px; }
.page-admin .sticky-actions { margin-top: 8px; flex-wrap: wrap; }
.page-admin .sticky-actions .field { margin: 0; min-width: min(100%, 280px); }
.admin-form .field.check { padding: 8px 0; }
.small { font-size: .8rem; }
@media (min-width: 1100px) { .page-admin .sticky-actions { bottom: 0; } }
.notice > div { min-width: 0; }
.page-admin .notice .chip { white-space: normal; height: auto; min-height: 32px; margin: 2px 2px 2px 0; display: inline-flex; max-width: 100%; }

/* ---------------------------------------------------------------- real data: logos, unpriced, plain live panel */
/* Team badge: initials crest by default; a logo sits on a light disc so transparent PNGs read in both themes. */
.crest { flex: none; }
.crest.has-logo { border-radius: 50%; padding: 3px; background: var(--logo-disc); box-shadow: inset 0 0 0 1px var(--logo-ring), 0 1px 2px rgba(20, 10, 40, .08); }
.crest > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; image-rendering: auto; }
.crest-sm { width: 24px; height: 24px; border-radius: 8px; font-size: .5rem; }
.crest-lg { width: 40px; height: 40px; border-radius: 12px; font-size: .72rem; }
.crest-sm.has-logo { padding: 2px; }
.crest-lg.has-logo { padding: 4px; }
.sb-team .crest.has-logo { border-radius: 50%; padding: 6px; background: var(--logo-disc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 8px 18px -8px rgba(0, 0, 0, .45); }
@media (max-width: 420px) { .sb-team .crest.has-logo { padding: 5px; } }
.crest-pair { display: inline-flex; flex: none; }
.crest-pair .crest + .crest { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px var(--logo-ring); }
.crest-pair .crest:not(.has-logo) + .crest:not(.has-logo) { box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1.5px color-mix(in srgb, var(--c, var(--primary)) 45%, transparent); }
.ticket-match .crest-pair { margin-right: 2px; }
.staff-match-link { display: inline-flex; align-items: center; gap: 8px; }

/* league badge next to competition names */
.comp-badge { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: var(--logo-disc); box-shadow: inset 0 0 0 1px var(--logo-ring); }
.comp-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.comp-head .comp-badge { width: 22px; height: 22px; }
.sb-comp { display: inline-flex; align-items: center; gap: 8px; }
.sb-comp .comp-badge { width: 24px; height: 24px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.crumb-comp { gap: 6px; }
.crumb-comp .comp-badge { width: 20px; height: 20px; }
.list-item > .comp-badge { width: 40px; height: 40px; padding: 5px; }

/* unpriced selections: visible, calm, not selectable */
.odds.is-unpriced, .odds.is-unpriced:disabled { border: 0; background: color-mix(in srgb, var(--odds-bg) 60%, var(--surface)); color: var(--muted); cursor: help; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.odds.is-unpriced .odds-val { opacity: .8; font-weight: 700; }
.odds.is-unpriced .odds-val::after { display: none; }
.empty-calm .icon-circle { background: var(--primary-soft); color: var(--primary-text); }

/* live panel when the feed only sends score + clock */

/* attribution */
.sb-source a { color: #fff; font-weight: 700; }
.site-footer .source-credit a { display: inline; min-height: 0; text-decoration: underline; }
.sync-note { display: flex; gap: 10px; }
/* white-on-transparent badges (e.g. some clubs) stay visible on the light disc */
.crest > img, .comp-badge > img { filter: drop-shadow(0 0 .8px rgba(20, 10, 40, .6)) drop-shadow(0 0 .3px rgba(20, 10, 40, .4)); }


/* ---------- 5. Feed (v2) ------------------------------------------------- */
/* sport chips (phones/tablets): scrolls with fade edges, never cuts a chip mid-word at rest */
.sport-chips-wrap { position: relative; margin: -12px -12px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.sport-chips-wrap .chips { padding: 10px 12px; scroll-padding-inline: 12px; }
.sport-chips-wrap::before, .sport-chips-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.sport-chips-wrap::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.sport-chips-wrap::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.sport-chips-wrap.fade-l::before, .sport-chips-wrap.fade-r::after { opacity: 1; }
.sport-chips-wrap .chip { min-height: 36px; }
.sport-chips-wrap .chip .icon { color: var(--muted); }
.sport-chips-wrap .chip[aria-current="page"] .icon { color: inherit; }
.sport-chips-wrap .chips > .chip:last-child { margin-right: 12px; }
@media (min-width: 768px) { .sport-chips-wrap { margin: -20px -20px 16px; } .sport-chips-wrap .chips { padding: 10px 20px; scroll-padding-inline: 20px; } }
@media (min-width: 1100px) { .sport-chips-wrap { margin: -20px -24px 16px; } .sport-chips-wrap .chips { padding: 10px 24px; } }

.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 1.6s ease-in-out infinite; }

/* --- featured match hero (photo + 2-stop violet gradient) ---------------- */
.fm {
  position: relative; overflow: hidden; isolation: isolate; container-type: inline-size;
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; padding: 16px 20px 20px;
  border-radius: var(--r-card); color: #fff; background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 100%);
}
.fm-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.fm-img { position: absolute; top: 0; height: 100%; object-fit: cover; }
.fm-full { left: 0; width: 100%; }
.fm-left { left: 0; width: 55%; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%); mask-image: linear-gradient(90deg, #000 30%, transparent 100%); }
.fm-right { right: 0; width: 55%; -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent 100%); mask-image: linear-gradient(270deg, #000 30%, transparent 100%); }
.fm-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fm.has-photo .fm-bg::after { background: linear-gradient(90deg, rgba(10, 14, 20, .82) 0%, rgba(10, 14, 20, .62) 50%, rgba(10, 14, 20, .82) 100%); }
.fm-bg::before { content: none; }
.fm-mark { position: absolute; z-index: 0; right: -24px; bottom: -40px; width: 200px; height: 200px; color: rgba(255, 255, 255, .06); stroke-width: 1; }
.fm.has-photo .fm-mark { display: none; }
.fm-top { position: relative; display: flex; align-items: center; gap: 8px 10px; flex-wrap: nowrap; min-width: 0; }
.live-pill, .next-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex: none;
}
.live-pill { background: var(--live); color: #fff; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.fm[data-status="interval"] .live-pill { background: rgba(255, 255, 255, .16); color: #fff; }
.fm[data-status="interval"] .live-pill::before { animation: none; background: var(--warning); }
.fm[data-status="delayed"] .live-pill { background: #f0c46a; color: #2d1d00; }
.next-pill { background: rgba(255, 255, 255, .14); color: #fff; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.next-pill .icon { width: 14px; height: 14px; }
.fm-comp { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .88); }
.fm-comp .comp-badge { width: 20px; height: 20px; }
.fm-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 4px; background: rgba(240, 196, 106, .16); color: #f6d690; font-size: 11px; font-weight: 600; flex: none; }
.fm-tag .icon { width: 12px; height: 12px; }
.fm-link { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 6px 0 10px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; flex: none; transition: background var(--dur-1) var(--ease); }
.fm-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fm-mid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.fm-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fm-home { justify-content: flex-end; text-align: right; }
.fm-away { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
.fm-name { font-size: 18px; line-height: 24px; font-weight: 600; min-width: 0; overflow-wrap: break-word; word-break: normal; hyphens: manual; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fm .crest { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #0e131a; font-size: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .24); flex: none; }
.fm .crest.has-logo { padding: 9px; background: #fff; }
.fm .crest.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.fm-score { display: grid; grid-template-columns: auto auto auto; grid-template-areas: "bh dv ba" "sh . sa" "ph ph ph"; align-items: center; justify-items: center; gap: 0 12px; }
.fm-score > .fm-box:first-child { grid-area: bh; } .fm-score > .fm-div { grid-area: dv; } .fm-score > .fm-box:nth-child(3) { grid-area: ba; } .fm-sub-h { grid-area: sh; } .fm-sub-a { grid-area: sa; } .fm-phase { grid-area: ph; }
.fm-box { min-width: 0; text-align: center; }
.fm-box b { display: block; font-size: 44px; line-height: 52px; font-weight: 700; letter-spacing: -.01em; padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.fm-div { font-size: 28px; line-height: 1; color: rgba(255, 255, 255, .5); }
.fm-sub { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .78); min-height: 18px; white-space: nowrap; }
.fm-phase { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.fm-phase:empty, .fm-sub:empty { display: none; }
.fm-when { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 12px; }
.fm-time { font-size: 36px; line-height: 44px; font-weight: 700; }
.fm-day { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.fm-odds { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; max-width: 600px; width: 100%; margin: 0 auto; }
.fm-empty { min-height: 160px; justify-content: center; }
.fm-empty .fm-mid { display: block; }
.fm-empty-copy { display: flex; flex-direction: column; gap: 4px; max-width: 52ch; }
.fm-empty-copy strong { font-size: 22px; line-height: 30px; font-weight: 700; }
.fm-empty-copy span { color: rgba(255, 255, 255, .84); }
.fm .flash { animation-name: flash-hero, flash-hero-hold; }
@container (max-width: 560px) {
  .fm-link .fm-link-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fm-link { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .fm-mid { gap: 8px; }
  .fm-team { flex-direction: column !important; justify-content: flex-start; align-items: center; text-align: center !important; gap: 8px; }
  .fm .crest { width: 48px; height: 48px; }
  .fm .crest.has-logo { padding: 7px; }
  .fm-name { font-size: 14px; line-height: 20px; }
  .fm-box b { font-size: 36px; line-height: 44px; }
  .fm-div { font-size: 22px; }
  .fm-time { font-size: 28px; line-height: 36px; }
}
@media (max-width: 600px) { .fm { padding: 14px 14px 16px; gap: 14px; margin-bottom: 12px; } }

/* hero odds: translucent on the gradient, label left + price right */
.odds.odds-pill {
  flex-direction: row; justify-content: space-between; gap: 8px; min-height: 48px; min-width: 0; padding: 0 14px; border-radius: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
}
.odds-pill .odds-label { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.odds-pill .odds-val { font-size: 15px; font-weight: 600; color: #fff; }
.odds.odds-pill:hover:not(:disabled) { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .28); }
.odds.odds-pill.is-selected, .odds.odds-pill.is-selected:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.odds.odds-pill.is-selected .odds-label { color: var(--on-accent); }
.odds.odds-pill.is-selected .odds-val { color: var(--on-accent); }
.odds.odds-pill:disabled { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); box-shadow: none; }
.odds.odds-pill:disabled .odds-val, .odds.odds-pill.is-unpriced .odds-val { color: rgba(255, 255, 255, .6); }
.odds.odds-pill.is-unpriced, .odds.odds-pill.is-unpriced:disabled { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .6); box-shadow: none; }
@container (max-width: 560px) {
  .odds.odds-pill { flex-direction: column; justify-content: center; gap: 0; min-height: 52px; padding: 4px 6px; }
  .odds-pill .odds-label { font-size: 12px; max-width: 100%; }
}

/* --- fixtures card: one card, divided rows ------------------------------ */
.fixtures { overflow: hidden; }
.fx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px var(--pad-card); border-bottom: 1px solid var(--border); min-height: 60px; }
.fx-head h2 { font-size: 18px; line-height: 26px; margin-right: auto; }
.fx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-control); background: var(--hover); flex: none; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 13px; white-space: nowrap; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 12, 30, .1); }
.seg-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px 0 12px; border-radius: var(--r-control); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 500; font-size: 13px; white-space: nowrap; cursor: pointer; list-style: none;
  transition: border-color var(--dur-1) var(--ease);
}
.pill-btn::-webkit-details-marker { display: none; }
.pill-btn:hover { border-color: var(--muted); }
.pill-btn > .icon:first-child { color: var(--muted); width: 16px; height: 16px; }
.pill-k { color: var(--muted); }
.pill-chev { width: 14px; height: 14px; color: var(--muted); }
.pill-drop .menu-panel.pill-panel { left: 0; right: auto; width: 230px; transform-origin: top left; }
.league-form { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.league-select { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: min(280px, 100%); }
.league-select select {
  width: 100% !important; appearance: none; -webkit-appearance: none; min-height: 38px; padding: 0 32px 0 34px; border-radius: var(--r-control); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-overflow: ellipsis;
}
.league-select select:hover { border-color: var(--muted); }
.league-select select:focus-visible { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.league-select > .icon:first-child { position: absolute; left: 11px; color: var(--muted); pointer-events: none; width: 16px; height: 16px; }
.league-select > .icon:last-child { position: absolute; right: 10px; color: var(--muted); pointer-events: none; width: 14px; height: 14px; }
.clear-league { width: 38px; height: 38px; }
@media (max-width: 767px) {
  .pill-btn, .league-select select { min-height: var(--tap); } .seg-btn { min-height: 38px; }
  .fx-head .fx-tools { width: 100%; }
  .fx-head .seg { width: 100%; } .fx-head .seg-btn { flex: 1 1 0; justify-content: center; }
  .fx-head .pill-drop, .fx-head .league-form { flex: 1 1 0; min-width: 0; }
  .fx-head .pill-btn { width: 100%; } .fx-head .pill-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .fx-head .pill-chev { margin-left: auto; } .fx-head .pill-k { display: none; }
  .fx-head .league-select { max-width: none; width: 100%; }
}

.fx-body { display: block; }
.fx-band { --fx-cols: 76px minmax(0, 1fr) 92px 208px 56px; }
.fx-band + .fx-band { border-top: 1px solid var(--border); }
.fx-band-head {
  display: grid; grid-template-columns: var(--fx-cols); gap: 12px; align-items: center; padding: 0 var(--pad-card) 0 16px; min-height: 40px;
  background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--text-2);
}
.fx-band-head h3 { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.fx-band-head h3 .icon { color: var(--muted); width: 16px; height: 16px; }
.band-live .fx-band-head { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.band-live .fx-band-head h3 { color: var(--accent-text); }
.fx-band-head .count { color: var(--muted); font-weight: 500; }
.fx-col { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fx-col-score { text-align: right; }
.fx-col-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.fx-rows { display: block; }
.empty-inline { padding: 24px 20px; }

/* competition header inside a band */
.comp-head { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); }
.comp-head .comp-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); text-decoration: none; }
.comp-head .comp-name:hover { color: var(--primary-text); }
.comp-sport { color: var(--muted); font-weight: 500; white-space: nowrap; }
.comp-sep { color: var(--border-strong); }
.comp-head .comp-n { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.comp-head .comp-pin { color: var(--primary-text); }
.comp-head .pin-form { margin: 0 -6px 0 0; }
.comp-head .pin-btn { width: 32px; height: 32px; }
.comp-head .pin-btn .icon { width: 16px; height: 16px; }

/* match row (sportsbook grid): time | teams | score | 1 X 2 | markets */
.mrow {
  position: relative; display: grid; align-items: center; gap: 12px; padding: 7px var(--pad-card) 7px 16px; min-height: 64px;
  grid-template-columns: var(--fx-cols, 76px minmax(0, 1fr) 92px 208px 56px); border-bottom: 1px solid var(--border);
  background: var(--surface); transition: background var(--dur-1) var(--ease);
}
.fx-rows > .mrow:last-child { border-bottom: 0; }
.fx-band .fx-rows:last-child > .mrow:last-child { border-bottom: 0; }
.fx-rows + .comp-head { border-top: 1px solid var(--border); }
.mrow:hover { background: var(--surface-2); }
.mrow-link { position: absolute; inset: 0; z-index: 1; }
.mrow-link:focus-visible { outline-offset: -2px; border-radius: 0; }
.mrow-time { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.mrow-time .sbadge { max-width: 100%; overflow: hidden; } .mrow-time .sbadge > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mrow-time .when { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); white-space: nowrap; }
.mrow-time .when-day { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.mrow-time .phase { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--accent-text); overflow: hidden; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: break-word; }
.mrow-time .phase:empty { display: none; }
.mrow:not([data-status="scheduled"]):not([data-status="postponed"]) .when,
.mrow:not([data-status="scheduled"]):not([data-status="postponed"]) .when-day { display: none; }
.mrow[data-status="scheduled"] .sbadge, .mrow[data-status="scheduled"] .phase, .mrow[data-status="postponed"] .phase, .mrow[data-status="postponed"] .when { display: none; }
.mrow[data-status="final"] .phase { color: var(--muted); font-weight: 500; }
.mrow-teams { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team-line { display: flex; align-items: center; gap: 8px; min-width: 0; height: 24px; }
.mrow .crest { width: 24px; height: 24px; border-radius: 50%; font-size: 8px; }
.tname { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-comp { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-line .tag-replay { margin-left: 2px; }
/* cricket: the overs are already in the phase line; the row shows runs/wickets only */
.mrow[data-sport="cricket"] .tsub { display: none; }
.mrow[data-status="final"] .team-line.is-winner .tname { font-weight: 600; }
.mrow[data-status="final"] .team-line:not(.is-winner) .tname { color: var(--text-2); }
.mrow-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.sc-side { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: 6px; height: 24px; align-items: center; white-space: nowrap; max-width: 100%; }
.tscore { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); padding: 0 3px; border-radius: 4px; transition: background var(--dur-3) var(--ease), color var(--dur-3) var(--ease); }
.tsub { font-size: 11px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tsub:empty, .tscore:empty { display: none; }
.mrow[data-status="live"] .tscore, .mrow[data-status="interval"] .tscore { color: var(--text); }
.mrow[data-status="scheduled"] .mrow-score, .mrow[data-status="postponed"] .mrow-score { visibility: hidden; }
.mrow-odds { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.odds-gap { display: block; }
.mrow-side { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 0; color: var(--muted); }
.mrow-side .inline-form { z-index: 2; position: relative; }
.mrow-side .fav-btn { width: 32px; height: 32px; }
.mrow-side .fav-btn .icon { width: 16px; height: 16px; }
.mrow-side .mk { display: inline-flex; align-items: center; gap: 0; color: var(--muted); }
.mrow-side .mk .icon { width: 16px; height: 16px; }
.mk-n { font-size: 12px; font-weight: 500; }
.mrow .tag-replay { flex: none; }
.mrow[data-status="abandoned"] .tname, .mrow[data-status="cancelled"] .tname { color: var(--muted); }
.mrow-odds .odds { min-height: 44px; padding: 4px 6px; }
.mrow-odds .odds-label { display: none; }

/* narrow (phones / narrow main): teams + score on top, the odds row underneath */
@container main (max-width: 700px) {
  .fx-band { --fx-cols: 56px minmax(0, 1fr) auto; }
  .fx-band-head { grid-template-columns: minmax(0, 1fr) auto; padding: 0 14px; }
  .fx-band-head h3 { grid-column: 1; }
  .fx-band-head .fx-col { display: none; }
  .comp-head { padding: 0 8px 0 14px; }
  .mrow {
    padding: 10px 14px; gap: 8px 10px; min-height: 0;
    grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "time teams score" "odds odds odds";
  }
  .mrow-time { grid-area: time; align-self: center; }
  .mrow-teams { grid-area: teams; }
  .mrow-score { grid-area: score; }
  .mrow-side { display: none; }
  .mrow-odds { grid-area: odds; gap: 6px; }
  .odds-gap { display: block; }
  .mrow-odds .odds { flex-direction: row; justify-content: space-between; min-height: 40px; padding: 0 10px; }
  .mrow-odds .odds-label { display: block; font-size: 12px; }
  .mrow-odds .odds-val { font-size: 14px; }
}
@container main (max-width: 380px) {
  .fx-band { --fx-cols: 48px minmax(0, 1fr) auto; }
  .mrow { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; }
  .mrow-odds .odds { padding: 0 8px; }
}

/* status badge (pairs colour with icon + text) */
.sbadge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--hover); color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.sbadge .icon { width: 12px; height: 12px; stroke-width: 2; }
[data-status="live"] .sbadge { background: var(--accent-soft); color: var(--accent-text); }
[data-status="live"] .sbadge .icon { animation: pulse 1.6s ease-in-out infinite; }
[data-status="interval"] .sbadge { background: var(--warning-soft); color: var(--warning-text); }
[data-status="delayed"] .sbadge { background: var(--warning-soft); color: var(--warning-text); }
[data-status="postponed"] .sbadge { background: var(--hover); color: var(--muted); text-decoration: line-through; }
[data-status="abandoned"] .sbadge, [data-status="cancelled"] .sbadge { background: var(--danger-soft); color: var(--danger); }
[data-status="final"] .sbadge { background: var(--hover); color: var(--text-2); }
[data-status="scheduled"] .sbadge { background: var(--primary-soft); color: var(--primary-text); }
.tag-replay { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--warning-text); background: var(--warning-soft); white-space: nowrap; }
.tag-replay .icon { width: 11px; height: 11px; }

/* grouped lists (search, favourites): sport + league headings above rows */
.sport-head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--pad-card); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.sport-head a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.sport-head a:hover { color: var(--primary-text); }
.sport-head .sport-ico { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); }
.sport-head .sport-ico .icon { width: 18px; height: 18px; }
.sport-head .count { color: var(--muted); font-size: 12px; font-weight: 500; }
.sport-head .more { margin-left: auto; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; min-height: 40px; }
.sport-block + .sport-block { border-top: 1px solid var(--border); }
.comp-badge { display: inline-grid; place-items: center; flex: none; }
.comp-badge img { display: block; object-fit: contain; }
.list-card { padding: 0; overflow: hidden; }
.list-card .card-head { margin-bottom: 0; }

.pin-btn, .fav-btn { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-control); border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.pin-btn:hover, .fav-btn:hover { background: var(--hover); color: var(--text); }
.pin-btn[aria-pressed="true"] { color: var(--primary-text); }
.pin-btn[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn[aria-pressed="true"] { color: var(--accent); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }

/* odds button (§4): label 12px muted above value 14px 600; min 64×44 */
.odds {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 44px; min-width: 0; padding: 4px 8px;
  border-radius: var(--r-control); border: 1px solid transparent; background: var(--odds-bg); color: var(--text); font: inherit; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.odds:hover:not(:disabled) { background: var(--odds-hover); }
.odds-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 16px; }
.odds-val { font-size: 14px; font-weight: 600; line-height: 20px; min-width: 3ch; white-space: nowrap; }
.odds-prob { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 16px; }
.odds.is-selected, .odds.is-selected:hover:not(:disabled) { background: var(--odds-selected); border-color: var(--odds-selected); color: var(--on-odds-selected); }
.odds.is-selected .odds-label, .odds.is-selected .odds-prob { color: var(--on-accent); }
.odds:disabled { cursor: not-allowed; background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.odds:disabled:not(.is-unpriced) .odds-val::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: 4px; vertical-align: -.05em; background: currentColor; -webkit-mask: url("../img/lock.bd083e5a4bf1.svg") center/contain no-repeat; mask: url("../img/lock.bd083e5a4bf1.svg") center/contain no-repeat; }
.odds.is-unpriced, .odds.is-unpriced:disabled { background: var(--surface-2); border-color: transparent; color: var(--muted); cursor: default; box-shadow: none; }
.odds.is-unpriced .odds-val { color: var(--muted); font-weight: 500; }
.odds.is-unpriced .odds-val::after { display: none; }
/* price change: 1s tinted flash + small arrow */
.odds.is-up { --move: var(--success); --move-soft: var(--success-soft); }
.odds.is-down { --move: var(--danger); --move-soft: var(--danger-soft); }
.odds.is-up:not(.is-selected), .odds.is-down:not(.is-selected) { animation: odds-flash 1s var(--ease) 1; }
.odds.is-up .odds-val::before, .odds.is-down .odds-val::before { display: inline-block; margin-right: 3px; font-size: .62em; vertical-align: .15em; color: var(--move); }
.odds.is-up .odds-val::before { content: "▲"; }
.odds.is-down .odds-val::before { content: "▼"; }
.odds.is-selected.is-up .odds-val::before, .odds.is-selected.is-down .odds-val::before { color: inherit; }
@keyframes odds-flash { 0%, 60% { background: var(--move-soft); } 100% { background: var(--odds-bg); } }
.odds-compact { min-height: 44px; }
.odds-row { flex-direction: row; justify-content: space-between; gap: 12px; padding: 8px 12px; text-align: left; min-height: 48px; }
.odds-row .odds-text { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.odds-row .odds-label { font-size: 14px; color: var(--text); font-weight: 500; white-space: normal; text-align: left; overflow-wrap: break-word; line-height: 20px; }
.odds-row.is-selected .odds-label { color: var(--on-accent); }
.odds-row .odds-val { font-size: 14px; text-align: right; }
/* Match Winner tiles: name above the price */
.odds-tile { min-height: 64px; gap: 2px; padding: 8px 10px; }
.odds-tile .odds-label { font-size: 12px; color: var(--text-2); white-space: normal; line-height: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.odds-tile .odds-val { font-size: 16px; line-height: 22px; color: var(--text); }
.odds-tile.is-selected .odds-val, .odds-tile.is-selected .odds-label { color: var(--on-accent); }
.odds-tile:disabled .odds-val { color: var(--muted); }

.flash { animation: flash var(--dur-3) var(--ease) 1, flash-hold 1s var(--ease) var(--dur-3) 1; }

/* next fixtures (sports with nothing live) */
.next-card { margin-top: 16px; overflow: hidden; }
.next-list { display: grid; gap: 0; }
.next-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px var(--pad-card); border-top: 1px solid var(--border); color: inherit; text-decoration: none; min-height: 56px; }
.next-item:first-child { border-top: 0; }
a.next-item:hover { background: var(--surface-2); color: inherit; }
.next-item .sport-ico { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); }
.next-item .sport-ico .icon { width: 18px; height: 18px; }
.next-item .who { min-width: 0; }
.next-item .who strong { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-item .who span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-item time { font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
details.disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 var(--pad-card); font-weight: 600; font-size: 14px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary:hover { background: var(--surface-2); }
details.disclosure > summary > .icon:first-child { color: var(--muted); width: 18px; height: 18px; }
details.disclosure > summary .icon:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur-2) var(--ease); }
details.disclosure[open] > summary .icon:last-child { transform: rotate(180deg); }
details.disclosure > summary + * { border-top: 1px solid var(--border); }

/* --- sport page: compact hero (≤120px) ---------------------------------- */
.sport-hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 16px; min-height: 96px; max-height: 120px; margin-bottom: 16px; padding: 16px 20px;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border);
}
.sport-hero::before, .sport-hero::after { content: none; }
.sport-hero-img { position: absolute; z-index: -1; top: 0; right: 0; height: 100%; width: 42%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); opacity: .9; }
.sport-hero.has-photo::after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 42%; background: linear-gradient(90deg, var(--surface) 0%, transparent 55%); pointer-events: none; }
.sport-hero-art { display: none; }
.sport-hero-ico { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.sport-hero-ico .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.sport-hero-copy { position: relative; min-width: 0; }
.sport-hero h1 { color: var(--text); }
.sport-hero-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stat-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--hover); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.stat-chip b { color: var(--text); font-weight: 600; }
.stat-chip.is-live { background: var(--accent-soft); color: var(--accent-text); }
.stat-chip.is-live b { color: var(--accent-text); }
@media (max-width: 600px) {
  .sport-hero { padding: 12px 14px; gap: 12px; min-height: 80px; }
  .sport-hero-ico { width: 40px; height: 40px; }
  .sport-hero-ico .icon { width: 22px; height: 22px; }
  .sport-hero-img, .sport-hero.has-photo::after { width: 36%; }
  .sport-hero-stats .stat-chip:nth-child(3) { display: none; }
}

.sport-cols { display: grid; gap: 16px; margin-bottom: 16px; grid-template-columns: minmax(0, 1fr); }
@container main (min-width: 820px) { .sport-cols { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; } }
.sport-focus { display: grid; gap: 16px; min-width: 0; }
.sport-focus .fm { margin-bottom: 0; }
.live-list { overflow: hidden; }
.ll-filters { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ll-filters .fx-tools { gap: 8px; }
.ll-filters .league-form, .ll-filters .pill-drop { flex: 1 1 150px; min-width: 0; }
.ll-filters .pill-btn { width: 100%; }
.ll-filters .pill-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ll-filters .pill-chev { margin-left: auto; }
.ll-filters .league-select { flex: 1 1 auto; max-width: none; }
.ll-title { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 14px; font-size: 15px; line-height: 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ll-title .num { color: var(--muted); font-weight: 500; }
.ll-items { display: grid; }
.lcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; grid-template-areas: "league league league chev" "teams scores min chev";
  gap: 6px 10px; align-items: center; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; transition: background var(--dur-1) var(--ease);
}
.lcard:last-child { border-bottom: 0; }
.lcard:hover { color: var(--text); background: var(--surface-2); }
.lcard.is-selected { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.lcard-league { grid-area: league; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.lcard-teams { grid-area: teams; display: grid; gap: 2px; min-width: 0; }
.lcard-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; font-size: 14px; height: 24px; }
.lcard .crest { width: 24px; height: 24px; border-radius: 50%; }
.lcard-scores { grid-area: scores; display: grid; gap: 2px; text-align: right; }
.lcard-scores b { display: block; height: 24px; line-height: 24px; min-width: 20px; font-size: 15px; font-weight: 600; color: var(--text); }
.lcard-min { grid-area: min; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--accent-text); max-width: 84px; line-height: 16px; }
.lcard-min .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.lcard[data-status="interval"] .lcard-min { color: var(--warning-text); }
.lcard[data-status="interval"] .lcard-min .dot { background: var(--warning); animation: none; }
.lcard-chev { grid-area: chev; color: var(--muted); width: 16px; height: 16px; }
.mw-card { padding: 0; }
.mw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px var(--pad-card); border-bottom: 1px solid var(--border); }
.mw-head h2 { font-size: 15px; line-height: 22px; }
.mw-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding: 14px var(--pad-card); }
.mw-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 var(--pad-card) 14px; }
.news-row-card { padding: 0; overflow: hidden; }

/* --- right column news ---------------------------------------------------- */
.news-side { padding: 0; }
.news-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; }
.news-side-head h2 { font-size: 15px; line-height: 22px; }
.view-all { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; font-weight: 500; font-size: 13px; text-decoration: none; }
.news-side-body { display: grid; gap: 0; padding: 0 16px 12px; }
.news-side-body > .nc-compact { padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* team badge: neutral circle, 1px border */
.crest {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 9px; font-weight: 600; letter-spacing: .02em; flex: none;
  color: var(--text-2); background: color-mix(in srgb, var(--c, var(--primary)) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--primary)) 35%, var(--border));
  overflow: hidden; white-space: nowrap;
}
.crest.has-logo { border-radius: 50%; padding: 2px; background: var(--logo-disc); box-shadow: inset 0 0 0 1px var(--logo-ring); }
.crest > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; filter: none; }
.crest-sm { width: 24px; height: 24px; font-size: 8px; }
.crest-lg { width: 40px; height: 40px; font-size: 12px; }
.crest-lg.has-logo { padding: 4px; }
.comp-badge { width: 20px; height: 20px; padding: 0; border-radius: 4px; background: transparent; box-shadow: none; }
.comp-badge img { width: 100%; height: 100%; object-fit: contain; display: block; filter: none; }
.comp-head .comp-badge { width: 18px; height: 18px; }
[data-theme="dark"] .comp-badge { background: var(--logo-disc); border-radius: 50%; padding: 2px; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .comp-badge { background: var(--logo-disc); border-radius: 50%; padding: 2px; } }
.list-item > .comp-badge { width: 36px; height: 36px; padding: 4px; border-radius: 50%; background: var(--logo-disc); box-shadow: inset 0 0 0 1px var(--logo-ring); }

/* ---------- 7. Bet slip (right column / mobile bottom sheet) ------------- */
.slip { background: var(--surface); display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--border); }
.slip:focus { outline: none; }
.slip-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 8px 0 16px; }
.slip-head h2 { font-size: 15px; line-height: 22px; font-weight: 600; }
.slip-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--hover); color: var(--muted); font-size: 12px; font-weight: 600; }
.slip-count.is-on { background: var(--accent); color: var(--on-accent); }
.slip-head .slip-close { margin-left: auto; }
@media (min-width: 1100px) { .slip-head .slip-close { display: none; } }
.slip-handle { display: none; }
.slip-tabs { position: relative; display: flex; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--border); }
.slip-tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; transition: color var(--dur-1) var(--ease);
}
.slip-tab::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.slip-tab:hover { color: var(--text); }
.slip-tab.is-active { color: var(--text); font-weight: 600; }
.slip-tab.is-active::after { background: var(--primary); }
.slip-tab-sub { color: var(--muted); font-weight: 400; }
.slip-tab-n { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--hover); color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.slip-tab-n:empty { display: none; }
.slip-tab.is-active .slip-tab-n { background: var(--primary-soft); color: var(--primary-text); }
.slip-pane { display: flex; flex-direction: column; min-height: 0; }
.slip-body { padding: 12px 16px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.slip-foot { padding: 0 16px 16px; display: grid; gap: 8px; background: var(--surface); }
.slip-foot .btn-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.slip-empty, .slip-open-empty { text-align: center; padding: 16px 8px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.slip-empty-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hover); color: var(--muted); }
.slip-empty-ico .icon { width: 20px; height: 20px; }
.slip-empty h3 { color: var(--text); font-size: 14px; line-height: 20px; }
.slip-empty p, .slip-open-empty p { font-size: 13px; line-height: 19px; margin: 0; max-width: 34ch; }

/* selections: divided list, each with its own stake */
.slip-items { display: grid; margin: -4px 0 12px; }
.slip-item { padding: 12px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.slip-item:first-child { padding-top: 4px; }
.slip-item.is-blocked .slip-label { color: var(--muted); }
.slip-line { display: flex; align-items: flex-start; gap: 8px; }
.slip-label { font-size: 14px; line-height: 20px; font-weight: 600; min-width: 0; overflow-wrap: break-word; margin-right: auto; padding-top: 2px; }
.slip-odds { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-text); font-weight: 600; font-size: 14px; flex: none; transition: background var(--dur-2) var(--ease); }
.slip-x { display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -6px -4px 0; border-radius: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.slip-x:hover { background: var(--hover); color: var(--text); }
.slip-x .icon { width: 16px; height: 16px; }
.slip-match { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--muted); text-decoration: none; min-width: 0; flex-wrap: wrap; }
.slip-match span { min-width: 0; overflow-wrap: break-word; }
a.slip-match:hover { color: var(--primary-text); }
.slip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--muted); }
.slip-prob::before { content: "· "; }
.slip-item-note { margin-top: 8px; padding: 6px 10px; border-radius: 6px; font-size: 12px; line-height: 18px; background: var(--info-soft); color: var(--text); }
.slip-item-note.is-danger { background: var(--danger-soft); color: var(--danger); }
.slip-item-stake { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; }
.slip-item-stake > label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.slip-item-ret { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; min-width: 84px; }
.slip-item-ret b { display: block; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.stake-input { position: relative; min-width: 0; }
.stake-input input {
  width: 100%; height: 40px; padding: 0 34px 0 12px; border-radius: var(--r-control); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: right; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
@media (max-width: 1099px) { .stake-input input { height: 44px; font-size: 16px; } }
.stake-input input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.stake-input .unit { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: var(--muted); pointer-events: none; }
.slip-all { display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--border); }
.slip-all label { font-size: 13px; font-weight: 600; }
.slip-limits { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
.slip-limits:empty { display: none; }
.quick-stakes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.quick-stakes .chip { justify-content: center; padding: 0 4px; min-height: 34px; border-radius: 6px; background: var(--surface); }
@media (max-width: 1099px) { .quick-stakes .chip { min-height: var(--tap); } }
.quick-stakes .chip:hover { background: var(--primary-soft); border-color: transparent; color: var(--primary-text); }
.slip-sum { margin: 0; display: grid; }
.slip-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.slip-sum dt { color: var(--text-2); font-size: 13px; }
.slip-sum dd { margin: 0; font-weight: 600; font-size: 14px; }
.slip-return { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-control); background: var(--accent-soft); }
.slip-return-k { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; }
.slip-return-k small { font-weight: 400; color: var(--text-2); font-size: 11px; line-height: 15px; }
.slip-return-v { display: inline-flex; align-items: baseline; gap: 4px; color: var(--accent-text); font-size: 22px; line-height: 28px; font-weight: 700; }
.slip-return-v small { font-size: 12px; font-weight: 600; }
.slip-keep { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.slip-keep input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.slip-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-control); font-size: 13px; line-height: 19px; margin-bottom: 12px; background: var(--warning-soft); color: var(--text); }
.slip-note .icon { color: var(--warning-text); margin-top: 1px; width: 16px; height: 16px; }
.slip-note.is-danger { background: var(--danger-soft); }
.slip-note.is-danger .icon { color: var(--danger); }
.slip-note.is-info { background: var(--info-soft); }
.slip-note.is-info .icon { color: var(--info); }
.price-move { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.price-move s { color: var(--muted); font-weight: 400; }
.slip-error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 500; }
.slip-error:empty { display: none; }
.slip-review h3 { font-size: 14px; line-height: 20px; margin-bottom: 6px; }
.slip-review .summary { margin-bottom: 4px; }
.slip-review-sum { border-top: 1px solid var(--border-strong); margin-top: 6px; padding-top: 2px; }
.slip-review-sum .summary-total dd { font-size: 20px; }
.slip-rv { list-style: none; margin: 0; padding: 0; }
.slip-rv-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.slip-rv-item:last-child { border-bottom: 0; }
.slip-rv-top, .slip-rv-sub { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.slip-rv-top strong { font-size: 13px; font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.slip-rv-top .num { font-weight: 600; font-size: 13px; }
.slip-rv-sub { font-size: 12px; color: var(--muted); }
.slip-rv-sub .num { white-space: nowrap; color: var(--text-2); }
.slip-done { text-align: center; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.slip-done-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 4px; background: var(--success-soft); color: var(--success); }
.slip-done-ico.is-partial { background: var(--warning-soft); color: var(--warning-text); }
.slip-done-ico.is-failed { background: var(--danger-soft); color: var(--danger); }
.slip-done-ico .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.slip-done h3 { font-size: 15px; line-height: 22px; }
.slip-done p { margin: 0; font-size: 13px; }
.slip-done .btn { margin-top: 8px; }
.slip-done .ref { font-family: ui-monospace, Consolas, monospace; font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.slip-results { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; text-align: left; }
.slip-results .sr { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.slip-results .sr-ico { width: 16px; height: 16px; margin-top: 2px; }
.slip-results .is-ok .sr-ico { color: var(--success); }
.slip-results .is-price .sr-ico { color: var(--warning-text); }
.slip-results .is-bad .sr-ico { color: var(--danger); }
.slip-results .sr-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.slip-results .sr-top strong { font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.slip-results .sr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.slip-results .is-bad .sr-sub { color: var(--danger); }
.slip-results .btn { margin-top: 6px; }
.slip-small { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.slip-backdrop { display: none; }
.slip-pill { display: none; }

/* open bets (from the live poll) */
.slip-open { padding: 0 0 8px; }
.slip-open-list { display: grid; }
.slip-ticket { padding: 12px 16px; border-bottom: 1px solid var(--border); display: grid; gap: 6px; min-width: 0; }
.st-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-match { font-size: 12px; color: var(--muted); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; }
.st-match:hover { color: var(--primary-text); }
.st-pick { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.st-pick strong { font-size: 14px; font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.st-odds { font-weight: 600; font-size: 14px; }
.st-market { font-size: 12px; color: var(--muted); }
.st-progress { display: grid; gap: 4px; }
.st-progress-row { font-size: 12px; font-weight: 500; color: var(--text-2); }
.st-figs { display: flex; gap: 16px; margin: 2px 0 0; }
.st-figs div { display: flex; gap: 6px; align-items: baseline; }
.st-figs dt { font-size: 12px; color: var(--muted); }
.st-figs dd { margin: 0; font-size: 13px; font-weight: 600; }
.slip-ticket .mc-cashout { margin-top: 2px; }
.slip-ticket .mc-cashout-btn { width: 100%; border-color: var(--accent-fill); color: var(--accent-text); background: var(--surface); }
.slip-ticket .mc-cashout-btn:hover { background: var(--accent-soft); color: var(--accent-text); }
.slip-ticket .mc-cashout-confirm { padding: 8px 10px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--border); }
.slip-ticket .mc-cashout-confirm p { margin: 0 0 8px; }
.slip-ticket .mc-cashout-msg { margin: 4px 0 0; color: var(--text-2); }
.slip-ticket .mc-cashout-msg:empty { display: none; }
.slip-ticket .mc-cashout-done { margin: 0; font-size: 13px; font-weight: 600; color: var(--success); }
.slip-ticket .mc-cashout.is-busy { opacity: .6; pointer-events: none; }
.st-link { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; text-decoration: none; justify-self: start; min-height: 28px; }
.slip-open-all { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 44px; font-size: 13px; font-weight: 500; text-decoration: none; }

/* desktop: the slip is a flush section at the top of the right column */
@media (min-width: 1100px) {
  .side-slip > .slip .slip-foot { position: sticky; bottom: 0; z-index: 2; padding-top: 12px; border-top: 1px solid var(--border); }
  .slip[data-state="empty"] .slip-foot { position: static; border-top: 0; padding-top: 0; }
}
/* phones/tablets: bottom sheet */
@media (max-width: 1099px) {
  .side-slip { display: contents; }
  .side-slip > :not(.slip):not(.slip-backdrop):not(.slip-pill) { display: block; margin: 16px 12px 0; }
  .slip {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; border-radius: 12px 12px 0 0; border: 1px solid var(--border); border-bottom: 0;
    max-height: min(88vh, calc(100% - 24px)); max-height: min(88dvh, calc(var(--vvh, 100dvh) - 24px));
    transform: translate3d(0, 105%, 0); visibility: hidden; box-shadow: var(--shadow-pop);
    transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
    bottom: var(--kb, 0px); overscroll-behavior: contain;
  }
  body.sheet-open .slip { transform: none; visibility: visible; transition: transform var(--dur-3) var(--ease-out), visibility 0s; }
  .slip-handle { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 0; flex: none; }
  .slip-head { padding-top: 2px; flex: none; }
  .slip-tabs { flex: none; }
  .slip-pane { flex: 1 1 auto; min-height: 0; }
  .slip-pane[data-pane="open"] { overflow: auto; }
  .slip-body { flex: 1 1 auto; }
  .slip-foot { position: sticky; bottom: 0; padding-top: 12px; padding-bottom: calc(14px + var(--safe-b)); border-top: 1px solid var(--border); }
  .slip-backdrop { display: block; position: fixed; inset: 0; z-index: 79; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity var(--dur-3) var(--ease); }
  body.sheet-open .slip-backdrop { opacity: 1; pointer-events: auto; }
  .slip-pill {
    position: fixed; z-index: 45; left: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); max-width: calc(100% - 88px);
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 14px; border-radius: 24px; border: 0;
    background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-pop); cursor: pointer;
  }
  .slip-pill[hidden] { display: none !important; }
  .slip-pill .icon { width: 18px; height: 18px; }
  .slip-pill .slip-pill-odds { min-width: 32px; padding: 3px 8px; border-radius: 12px; background: rgba(6, 36, 23, .14); color: var(--on-accent); text-align: center; }
  .slip-pill span.truncate { max-width: 44vw; }
  body.sheet-open .slip-pill { display: none !important; }
}
@media (min-width: 640px) and (max-width: 1099px) { .slip { left: 50%; right: auto; width: 440px; margin-left: -220px; } }
@media (min-width: 768px) and (max-width: 1099px) { .slip-pill { bottom: 20px; } .side-slip > :not(.slip):not(.slip-backdrop):not(.slip-pill) { margin: 16px 20px 0; } }
@media (max-width: 380px) { .slip-body { padding-left: 12px; padding-right: 12px; } .slip-foot { padding-left: 12px; padding-right: 12px; } .slip-head { padding-left: 12px; } .slip-item-stake { grid-template-columns: minmax(0, 1fr) auto; } .slip-item-stake > label { grid-column: 1 / -1; } }

/* right column extras on desktop: flush sections divided by borders */
@media (min-width: 1100px) {
  .side-slip > .card { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); box-shadow: none; margin: 0; }
  .side-slip > .card + .card { margin-top: 0; }
}

/* ---------- command palette (Ctrl/⌘ + K) --------------------------------- */
.cmdk { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.cmdk[hidden] { display: none !important; }
.cmdk-backdrop { position: absolute; inset: 0; background: var(--overlay); }
html.fx-on .cmdk-backdrop { animation: fade-in .16s var(--ease); }
.cmdk-dialog { position: relative; width: min(640px, 100%); max-height: min(560px, 80vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; }
html.fx-on .cmdk-dialog { animation: menu-in .16s var(--ease-out); }
.cmdk-input { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border); flex: none; }
.cmdk-input > .icon { color: var(--muted); width: 20px; height: 20px; }
.cmdk-input input { flex: 1 1 auto; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.cmdk-input input::placeholder { color: var(--muted); }
.cmdk.is-loading .cmdk-input::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 30%; background: var(--primary); animation: cmdk-load 1s var(--ease) infinite; }
@keyframes cmdk-load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.cmdk-esc { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.cmdk-esc:hover { background: var(--hover); }
.cmdk-esc .cmdk-x { display: none; width: 20px; height: 20px; }
@media (max-width: 767px) { .cmdk-esc .kbd { display: none; } .cmdk-esc .cmdk-x { display: block; } }
.cmdk-list { overflow-y: auto; overscroll-behavior: contain; padding: 6px; flex: 1 1 auto; }
.cmdk-group + .cmdk-group { margin-top: 6px; }
.cmdk-gh { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cmdk-clear { border: 0; background: none; color: var(--primary-text); font: inherit; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.cmdk-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; cursor: pointer; }
.cmdk-opt.is-active { background: var(--primary-soft); }
.cmdk-opt.is-active .cmdk-title { color: var(--primary-text); }
.cmdk-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--hover); color: var(--text-2); flex: none; overflow: hidden; }
.cmdk-ico .icon { width: 18px; height: 18px; }
.cmdk-ico.has-logo { background: var(--logo-disc); border-radius: 50%; padding: 4px; box-shadow: inset 0 0 0 1px var(--logo-ring); }
.cmdk-ico img { width: 100%; height: 100%; object-fit: contain; }
.cmdk-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cmdk-title { font-size: 14px; line-height: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-sub { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-live { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; flex: none; }
.cmdk-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.cmdk-badge { font-size: 11px; font-weight: 600; color: var(--muted); padding: 0 6px; height: 20px; line-height: 20px; border-radius: 4px; background: var(--hover); flex: none; }
.cmdk-time { font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
.cmdk-empty { display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.cmdk-empty strong { color: var(--text); font-weight: 600; font-size: 14px; }
.cmdk-all { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 0 12px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 500; text-decoration: none; }
.cmdk-all .icon { width: 16px; height: 16px; }
.cmdk-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--muted); flex: none; }
.cmdk-foot .kbd { margin-right: 2px; }
@media (max-width: 767px) {
  .cmdk { padding: 0; align-items: stretch; }
  .cmdk-dialog { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .cmdk-foot { display: none; }
}
body.cmdk-open .support-fab, body.cmdk-open .slip-pill { visibility: hidden; }

/* ---------- 9. Toast, sticky actions ------------------------------------- */
.toast-region { position: fixed; z-index: 90; left: 12px; right: 12px; top: calc(var(--header-h) + 8px); display: flex; justify-content: center; pointer-events: none; }
@media (min-width: 768px) { .toast-region { left: auto; right: 20px; top: auto; bottom: 20px; justify-content: flex-end; } }
.toast { pointer-events: auto; width: min(380px, 100%); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 8px 12px 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop); }
.toast .icon-circle { width: 36px; height: 36px; }
.toast .icon-circle .icon { width: 18px; height: 18px; }
.toast strong { display: block; font-size: 14px; font-weight: 600; line-height: 20px; }
.toast p { margin: 2px 0 8px; font-size: 13px; line-height: 19px; color: var(--text-2); }
.toast .icon-btn { width: 36px; height: 36px; margin: -4px 0 0; }
.toast.is-leaving { opacity: 0; transition: opacity var(--dur-2) var(--ease); }

body.has-sticky-actions .slip-pill { bottom: calc(var(--sticky-h, 84px) + var(--nav-h) + var(--safe-b) + 12px); }
.sticky-actions { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 30; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
@media (min-width: 768px) { .sticky-actions { bottom: 0; } }

/* empty right column (pages that override the aside block): two-column shell */
@media (min-width: 1100px) { .side-slip:empty, body.page-auth .side-slip, body.page-acc .side-slip, body.page-staff .side-slip { display: none; } .shell:has(> .side-slip:empty), body.page-auth .shell, body.page-acc .shell, body.page-staff .shell { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1280px) { .shell:has(> .side-slip:empty), body.page-auth .shell, body.page-acc .shell, body.page-staff .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); } }
:root { --sidebar-w: var(--side-w); }

/* ---------- 11. Motion (v2 calm set) ------------------------------------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flash { from { background: transparent; } to { background: var(--accent-soft); color: var(--accent-text); } }
@keyframes flash-hold { from { background: var(--accent-soft); color: var(--accent-text); } to { background: transparent; } }
@keyframes flash-hero { from { background: transparent; } to { background: rgba(255, 255, 255, .2); } }
@keyframes flash-hero-hold { from { background: rgba(255, 255, 255, .2); } to { background: transparent; } }
.scoreboard .flash { animation-name: flash-hero, flash-hero-hold; }
.reveal { animation: none; }
.panel-swap { animation: fade-in var(--dur-2) var(--ease) both; }

/* "Reduced": everything off except colour changes */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;
}
html[data-motion="reduced"] .slip, html[data-motion="reduced"] .slip-backdrop { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-motion="system"] *, html[data-motion="system"] *::before, html[data-motion="system"] *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;
  }
  html[data-motion="system"] .slip, html[data-motion="system"] .slip-backdrop { transition: none !important; }
}

@media print { .site-header, .bottom-nav, .support-fab, .side-nav, .side-slip, .slip, .slip-pill, .toast-region, .demo-strip, .cmdk { display: none !important; } }

/* ---------- 13. Public pages (search, favourites, rules, design system) -- */
.page-head-xl { margin: 0 0 16px; }
.icon-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.icon-tile .icon { width: 20px; height: 20px; }
.icon-tile.is-accent { background: var(--accent-soft); color: var(--accent-text); }
.count-pill { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--hover); color: var(--text-2); font-size: 12px; font-weight: 600; }
.card-head .count-pill { margin-left: auto; }
.search-box { position: relative; margin-bottom: 16px; }
.search-box input { width: 100%; height: 48px; padding: 0 112px 0 44px; border-radius: var(--r-control); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.search-box > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search-box .btn { position: absolute; right: 4px; top: 4px; min-height: 40px; padding: 0 18px; }
@media (max-width: 420px) { .search-box input { padding-right: 12px; font-size: 16px; } .search-box .btn { position: static; width: 100%; margin-top: 8px; min-height: 44px; } }
.result-summary { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.result-summary strong { color: var(--text); }
.result-group + .result-group { margin-top: 16px; }
.result-group.fixtures { padding: 0; }
.result-cards { margin-top: 16px; }
.result-group .list-item { padding: 10px var(--pad-card); min-height: 60px; }
.list-chev { margin-left: auto; color: var(--muted); flex: none; width: 18px; height: 18px; }
.player-cut { display: grid; place-items: end center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--hover); flex: none; }
.player-cut img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.league-li { gap: 0; padding-right: 12px; }
.league-li .list-item { flex: 1 1 auto; min-width: 0; }
.list-card > .card-head { border-bottom: 1px solid var(--border); }
.list-card .sport-head { padding-left: var(--pad-card); }
.pin-chips { padding: 12px var(--pad-card); }
.toc-card .card-body { padding: 12px 16px; }
.toc .chip .icon { color: var(--muted); }
.page-rules article.card .card-head h2 { font-size: 18px; line-height: 26px; }
.page-design-system .fm { margin-bottom: 0; }
@media (max-width: 480px) { :root { --pad-card: 14px; } }
@media (min-width: 481px) and (max-width: 767px) { :root { --pad-card: 16px; } }
.hdr-support { display: none; }
@media (min-width: 768px) { .hdr-support { display: inline-grid; } }
@media (min-width: 768px) and (max-width: 1023px) { .nav-pill { padding: 0 10px; } .hdr-divider-r { display: none; } .hdr-divider { margin: 0 4px; } }
.section-title { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; }
.section-title h2 { font-size: 15px; line-height: 22px; }
.section-title .muted { font-size: 12px; }
.prose { max-width: 68ch; }
.prose h2 { margin: 24px 0 8px; font-size: 18px; line-height: 26px; }
.prose h3 { margin: 16px 0 6px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.example { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; margin: 8px 0 12px; }
.example .icon { color: var(--primary-text); margin-top: 1px; width: 18px; height: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.swatch { border-radius: var(--r-control); border: 1px solid var(--border); overflow: hidden; background: var(--surface); font-size: 12px; }
.swatch i { display: block; height: 48px; background: var(--sw); border-bottom: 1px solid var(--border); }
.swatch span { display: block; padding: 6px 10px; font-weight: 500; }
.swatch code { display: block; padding: 0 10px 8px; background: none; font-size: 11px; color: var(--muted); }
.ds-theme { padding: 16px; border-radius: var(--r-card); background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.type-scale > * { margin-bottom: 8px; }

/* admin pages: let header rows and badge groups wrap on narrow screens */
.page-admin .row { flex-wrap: wrap; min-width: 0; }
.page-admin .card, .page-admin .table-wrap { min-width: 0; }
.page-admin .table td { flex-wrap: wrap; white-space: normal; overflow-wrap: anywhere; }

/* staff payments: long provider ids / addresses / bodies wrap instead of overflowing */
.staff-break { overflow-wrap: anywhere; word-break: break-word; }
#provider-status .kv dd { overflow-wrap: anywhere; }
