/* ==========================================================================
   X2bet 180 — "Stadium night"
   Shared by index.html, live-scores.html, match-room.html, winners.html

   Grid (>=1200px): 236 sidebar + 20 + fluid centre + 20 + 316 bet slip,
   inside 24px outer margins, max 1560. One gap value (20px) everywhere.
   ========================================================================== */

:root {
  --pitch: #06122A;      /* ground */
  --stand: #0D1E3D;      /* panels: one tone step up */
  --stand-2: #132a54;    /* raised controls inside panels */
  --seam: #1C3360;       /* 1px dividers */
  --flood: #2468E8;      /* brand blue: action, selection (white text 4.9:1) */
  --flood-ink: #7FB0FF;  /* blue for text on dark (contrast 7:1) */
  --chalk: #EEF3FF;      /* ink */
  --chalk-2: #A9B8D6;    /* secondary text (contrast 8:1 on pitch) */
  --chalk-3: #7C8DB0;    /* tertiary text (4.9:1 on stand) */
  --turf: #1FD07F;       /* money won, price drifting up */
  --odds: #11843F;       /* price buttons: white numerals 4.8:1 */
  --odds-hover: #149A4A;
  --odds-locked: #0B4D2A; /* suspended price */
  --band: #091833;       /* table header band, a step below the panels */
  --flare: #FF5A6B;      /* live, price drifting down */

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ui: "Archivo", system-ui, sans-serif;

  --r-panel: 14px;
  --r-chip: 8px;

  --header-h: 64px;
  --gap: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-color: var(--seam) var(--pitch);
  accent-color: var(--flood);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--pitch);
  color: var(--chalk);
  font: 400 15px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--flood);
}
::selection { background: var(--flood); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--pitch); }
::-webkit-scrollbar-thumb { background: var(--seam); border-radius: 10px; border: 2px solid var(--pitch); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--flood);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--flood); color: #fff;
  padding: 10px 16px; border-radius: var(--r-chip);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pitch);
  border-bottom: 1px solid var(--seam);
}
.site-header__bar {
  max-width: 1560px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.logo {
  flex: none;
  width: 150px; height: 42px;
  background: url("../img/logo.svg") left center / contain no-repeat;
}

.main-nav { flex: 1; min-width: 0; }
.main-nav__list { display: flex; align-items: center; gap: 2px; }
.main-nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-chip);
  font-weight: 500; font-size: 14px;
  color: var(--chalk-2);
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.main-nav__link:hover { color: var(--chalk); background: var(--stand); }
.main-nav__link[aria-current="page"] { color: var(--chalk); background: var(--stand-2); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  white-space: nowrap;
  transition: transform .12s var(--ease-out), background-color .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--ghost { color: var(--chalk); border: 1px solid var(--seam); }
.btn--ghost:hover { border-color: var(--chalk-3); }
.btn--turf { background: var(--turf); color: #03240F; }
.btn--turf:hover { background: #3BE095; }
.btn--flood { background: var(--flood); color: #fff; }
.btn--flood:hover { background: #1D58C9; }
.btn[disabled] { background: var(--stand-2); color: var(--chalk-2); cursor: not-allowed; transform: none; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-chip);
  border: 1px solid var(--seam);
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px;
  background: var(--chalk); border-radius: 2px;
  transition: transform .2s var(--ease-out), background-color .2s;
  position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Info bar: local time + help links (none of which repeat the main menu).
   Sits above the centre and bet slip columns, beside the search sidebar. */
.topbar { grid-area: top; border-bottom: 1px solid var(--seam); }
.topbar__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 44px; padding: 0 4px;
  overflow-x: auto; scrollbar-width: none;
}
.topbar__inner::-webkit-scrollbar { display: none; }
.topbar__clock {
  padding-right: 20px;
  border-right: 1px solid var(--seam);
  font-size: 14px; color: var(--chalk-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.topbar__links { display: flex; gap: 20px; }
.topbar__links a {
  display: inline-block; padding: 10px 0;
  font-size: 14px; font-weight: 500; color: var(--chalk);
  white-space: nowrap;
  transition: color .15s;
}
.topbar__links a:hover { color: var(--turf); }
.main-nav__mobile { display: none; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--flare);
  flex: none;
}

/* ---------- Page layout ---------- */
.layout {
  max-width: 1560px; margin: 0 auto;
  padding: var(--gap) 24px 48px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 316px;
  grid-template-areas:
    "side top    top"
    "side center slip";
  gap: 14px var(--gap);
  align-items: start;
}
.sidebar { grid-area: side; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.center { grid-area: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); min-width: 0; }
.betslip { grid-area: slip; position: sticky; top: calc(var(--header-h) + 20px); }

/* Title row: one h1 per screen */
.title-row {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 6px 0 2px;
}
.title-row h1 {
  font: 700 30px/1 var(--display);
  letter-spacing: -.01em;
}
.title-row p { margin-top: 6px; color: var(--chalk-2); }
.title-row__aside {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--chalk-2);
}

.panel {
  background: var(--stand);
  border: 1px solid var(--seam);
  border-radius: var(--r-panel);
}
.panel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--seam);
  background: var(--stand-2);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
}
.panel__title { font: 700 22px/1 var(--display); }
.panel__meta { margin-left: auto; font-size: 13px; color: var(--chalk-2); }
.panel__body { padding: 16px 20px 20px; }

/* ---------- Sidebar: search + competitions ---------- */
/* Phone-only icon row (replaces the search bar on small screens) */
.quick-nav, .search-chip { display: none; }
.quick-nav__item {
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--chalk); font: 600 12px/1.2 var(--ui); text-align: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.quick-nav__icon {
  display: grid; place-items: center;
  width: clamp(44px, 13vw, 52px); aspect-ratio: 1; border-radius: 12px;
  background: var(--stand-2); border: 1px solid var(--seam); color: var(--chalk);
  transition: background-color .15s, transform .12s var(--ease-out);
}
.quick-nav__icon svg { width: 26px; height: 26px; }
.quick-nav__item:active .quick-nav__icon { transform: scale(.94); }
.quick-nav__item { white-space: nowrap; }
.quick-nav__item[aria-current="page"] .quick-nav__icon,
.quick-nav__item[aria-expanded="true"] .quick-nav__icon { background: var(--odds); border-color: var(--odds); color: #fff; }

.side-search {
  display: flex; align-items: center;
  height: 46px;
  border-radius: 10px;
  background: var(--stand-2);
  border: 1px solid var(--seam);
  transition: border-color .15s;
}
.side-search:focus-within { border-color: var(--flood); }
.side-search input {
  flex: 1; min-width: 0; height: 100%;
  padding: 0 0 0 14px;
  background: none; border: 0; outline: none;
  font-size: 14px;
}
.side-search input::placeholder { color: var(--chalk-3); }
.side-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.side-search button {
  display: grid; place-items: center;
  width: 44px; height: 100%;
  color: var(--chalk-2);
  transition: color .15s;
}
.side-search button:hover { color: var(--chalk); }
.side-search svg { width: 20px; height: 20px; }

.leagues { padding: 6px; }
.leagues__link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-chip);
  font-size: 14px; font-weight: 500;
  color: var(--chalk);
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.leagues__link:hover { background: var(--stand-2); }
.leagues__link[aria-current="true"] { background: var(--stand-2); color: var(--turf); }
.leagues__link svg { width: 18px; height: 18px; flex: none; color: var(--chalk-2); }
.leagues__link[aria-current="true"] svg { color: var(--turf); }

.promo {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 18px;
  border-radius: var(--r-panel);
  min-height: 230px;
  background: var(--flood) url("../img/game1.jpg") center 40% / cover;
  background-blend-mode: luminosity; /* recolours the purple slot photo into the site's blues */
  isolation: isolate;
}
.promo::before { /* even scrim so the centred text reads over the reels */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(6, 18, 42, .85) 0%, rgba(6, 18, 42, .6) 80%); /* taste-skill-ignore: neutral scrim over photo */
}
.promo__figure {
  font: 700 72px/.85 var(--display);
  font-variant-numeric: tabular-nums;
  color: #F4C542;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.promo__figure small { font-size: .5em; }
.promo__text { margin-top: 8px; font-weight: 600; font-size: 15px; line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.promo__cta {
  align-self: center;
  display: inline-flex; margin-top: 14px;
  height: 34px; padding: 0 14px; align-items: center;
  border-radius: 999px;
  background: var(--turf); color: var(--pitch);
  font-weight: 600; font-size: 13px;
  transition: transform .12s var(--ease-out);
}
.promo:hover .promo__cta { transform: scale(1.04); }

/* ---------- Featured slider (index) ----------
   Two whole cards per view on desktop, one on phones; the arrows page through. */
.featured { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.featured__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 12px) / 2);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--r-panel);
}
.featured__track::-webkit-scrollbar { display: none; }
.featured__track:focus-visible { outline-offset: 4px; }

.slide {
  position: relative; overflow: hidden;
  scroll-snap-align: start;
  height: 212px;
  padding: 18px 20px;
  border-radius: var(--r-panel);
  background-color: var(--stand);
  background-position: center 35%;
  background-size: cover;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.slide::before { /* taste-skill-ignore: neutral scrim over photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 18, 42, .94) 0%, rgba(6, 18, 42, .78) 55%, rgba(6, 18, 42, .35) 100%); /* taste-skill-ignore: neutral scrim over photo */
}
.slide__meta { display: flex; gap: 10px; font-size: 13px; font-weight: 600; }
.slide__meta span { color: var(--chalk-2); font-weight: 500; }
.slide__teams {
  margin: auto 0 12px;
  max-width: calc(100% - 150px); /* leaves room for the countdown on the right */
  font: 700 24px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.slide__matchup { display: grid; gap: 4px; justify-items: start; }
.slide__team { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.slide__team > span:last-child {
  color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slide__vs { font: 700 15px/1 var(--display); color: var(--turf); }
/* line "vs" up with the team name when the home team shows a badge */
.slide__team:has(.slide__badge) + .slide__vs { padding-left: 34px; }
.slide__badge {
  flex: none; width: 26px; height: 26px; object-fit: contain;
}

/* "Starts in" countdown, right-hand side of a match slide */
.countdown {
  position: absolute; right: 20px; top: 50%; transform: translateY(-62%);
  display: grid; justify-items: center; gap: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 18, 42, .78); /* taste-skill-ignore: legibility plate over photo */
}
.countdown__label { font-size: 11px; font-weight: 600; color: var(--chalk-2); }
.countdown__boxes { display: flex; gap: 4px; }
.countdown__box {
  display: grid; justify-items: center;
  min-width: 34px; padding: 4px 3px 3px;
  border-radius: 4px; background: var(--stand-2);
}
.countdown__box b { font: 700 18px/1 var(--display); color: #F4C542; font-variant-numeric: tabular-nums; }
.countdown__box small { font-size: 9px; color: var(--chalk-3); margin-top: 1px; }
.countdown__live { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1 var(--display); color: var(--flare); }

.slide .odds { gap: 6px; }
.slide .odd { min-width: 0; flex: 1; height: 40px; padding: 0 10px; gap: 8px; }
.slide .odd__value { font-size: 20px; }

.slide--promo { justify-content: end; }
.slide--promo .slide__title { font: 700 38px/.95 var(--display); max-width: 15ch; }
.slide--promo p { margin-top: 8px; color: var(--chalk); font-weight: 500; max-width: 34ch; }
.slide--promo .promo__cta { margin-top: 14px; align-self: start; }

.featured__nav {
  position: absolute; z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--chalk); color: var(--pitch);
  border: 3px solid var(--pitch);
  transition: background-color .15s, color .15s, transform .12s var(--ease-out);
}
.featured__nav:hover { background: var(--flood); color: #fff; }
.featured__nav svg { width: 18px; height: 18px; }
.featured__nav:active { scale: .92; }
/* arrows straddle the slider edges (half outside, over the page gap) so they never cover card text */
.featured__nav--prev, .featured__nav--next { top: 50%; margin-top: -20px; }
.featured__nav--prev { left: -20px; }
.featured__nav--next { right: -20px; }
.featured__nav--play { top: 12px; right: 12px; width: 32px; height: 32px; border-width: 0; background: rgba(6, 18, 42, .7); color: var(--chalk); }
.featured__nav--play:hover { background: var(--flood); }
.featured__nav--play svg { width: 14px; height: 14px; }
.featured__nav .icon-play { display: none; }
.featured__nav[aria-pressed="true"] .icon-play { display: block; }
.featured__nav[aria-pressed="true"] .icon-pause { display: none; }
.featured__nav[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Odds chips ----------
   Prices sit on a solid green, like a sportsbook board.
   --odds #11843F keeps white numerals at 4.8:1; a picked price flips to white. */
.odds { display: flex; gap: 4px; }
.odd {
  display: flex; align-items: center; gap: 12px;
  min-width: 112px; height: 52px; padding: 0 14px;
  border-radius: 6px;
  background: var(--odds); color: #fff;
  transition: background-color .15s, color .15s, transform .12s var(--ease-out);
}
.odd:hover { background: var(--odds-hover); }
.odd:active { transform: scale(.97); }
.odd[aria-pressed="true"] { background: var(--chalk); color: var(--pitch); }
.odd__label { font-size: 13px; color: #fff; font-weight: 600; opacity: 1; }
.odd[aria-pressed="true"] .odd__label { color: #3B4A66; }
.odd__value {
  margin-left: auto;
  font: 700 26px/1 var(--display);
  font-variant-numeric: tabular-nums;
}

/* ---------- Top events table ---------- */
.sport-tabs {
  display: flex; gap: 4px;
  padding: 8px 12px 0;
  background: var(--stand);
  overflow-x: auto; scrollbar-width: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 84px; padding: 8px 10px 10px;
  font-size: 13px; font-weight: 500; color: var(--chalk-2);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.sport-tab svg { width: 22px; height: 22px; }
.sport-tab span { white-space: nowrap; }
.sport-tab:hover { color: var(--chalk); }
.sport-tab[aria-selected="true"] { color: var(--chalk); border-bottom-color: var(--turf); }
.sport-tab[aria-selected="true"] svg { color: var(--turf); }
.sport-tab b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--chalk-3); margin-left: 4px; }

.events { overflow-x: auto; }
.events__empty { padding: 20px; color: var(--chalk-2); }
.ev-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
/* column header band: one step darker than the rows */
.ev-table thead { background: var(--band); }
.ev-table th { font-weight: 600; font-size: 13px; color: var(--chalk); text-align: center; padding: 12px 1px 4px; }
.ev-table thead tr:last-child th { padding-top: 4px; padding-bottom: 12px; font-weight: 500; color: var(--chalk-2); }
.ev-table th.ev-group { text-align: left; padding: 12px 20px; font: 700 18px/1 var(--display); color: var(--chalk); background: var(--stand-2); }
.ev-table th.ev-group .live-dot { display: inline-block; margin-right: 8px; vertical-align: 2px; }
.ev-table td { padding: 7px 1px; border-top: 1px solid var(--seam); vertical-align: middle; }
.ev-table td:first-child { padding-left: 20px; width: 64px; }
.ev-table td:last-child, .ev-table th:last-child { padding-right: 20px; }
.ev-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.ev-time { font-size: 13px; font-weight: 600; color: var(--chalk-2); white-space: nowrap; }
.ev-time--live { color: var(--flare); }
.ev-match { min-width: 180px; padding-right: 10px !important; }
.ev-match__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; font-size: 14px; font-weight: 500; color: var(--chalk); }
.ev-match__teams span:nth-child(even) { font-weight: 700; color: var(--flare); text-align: right; }
.ev-match__league { font-size: 12px; color: var(--chalk-3); margin-top: 3px; }
.ev-gap { width: 10px; }

/* Each market's prices read as one joined bar: square inner corners, rounded outer ends. */
.ev-odd {
  width: 100%; min-width: 54px; height: 44px;
  display: grid; place-items: center;
  border-radius: 0;
  background: var(--odds); color: #fff;
  font: 700 17px/1 var(--display);
  font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s, transform .12s var(--ease-out);
}
.ev-table td.ev-first .ev-odd { border-radius: 6px 0 0 6px; }
.ev-table td.ev-last .ev-odd { border-radius: 0 6px 6px 0; }
.ev-odd:hover { background: var(--odds-hover); }
.ev-odd:active { transform: scale(.95); }
.ev-odd[aria-pressed="true"] { background: var(--chalk); color: var(--pitch); }
.ev-odd--locked[disabled] { background: var(--odds-locked); color: #9FD9B6; cursor: not-allowed; transform: none; }
.ev-odd--none[disabled] { background: var(--stand-2); color: var(--chalk-3); cursor: default; transform: none; }
.ev-odd svg { width: 15px; height: 15px; }
.ev-line {
  display: grid; place-items: center;
  height: 44px; min-width: 46px;
  border-radius: 6px;
  background: var(--stand-2);
  font: 600 14px/1 var(--ui); color: var(--chalk);
}

/* ---------- Homepage intro: Trophy shine (js/intro.js) ----------
   Timeline: trophy rises 0-0.55s, light sweep 0.5-1.0s, sparkles 0.55-1.6s,
   line fades in at 0.72s, whole overlay zooms away 1.2-1.55s. */
.intro-on body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #13254b 0%, #050b18 70%); /* taste-skill-ignore: intro backdrop */
  animation: intro-away .35s ease-in 1.2s both;
}
.intro__stage { position: relative; width: min(640px, 90vw); aspect-ratio: 16 / 10; }
.intro__cup {
  position: absolute; left: 50%; top: 42%; width: 26%;
  translate: -50% -50%; overflow: hidden;
  animation: intro-rise .55s cubic-bezier(.16, 1, .3, 1) both;
}
.intro__cup svg { display: block; width: 100%; filter: drop-shadow(0 10px 36px rgba(244, 197, 66, .4)); }
.intro__shine {
  position: absolute; inset: -10% -60%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%); /* taste-skill-ignore: light sweep */
  mix-blend-mode: overlay;
  animation: intro-sweep .5s ease-in-out .5s both;
}
.intro__spark { position: absolute; width: 4%; aspect-ratio: 1; color: #fff7d1; animation: intro-twinkle .5s ease-out both; }
.intro__spark svg { display: block; width: 100%; }
.intro__line {
  position: absolute; left: 50%; top: 80%; translate: -50% 0; margin: 0; white-space: nowrap;
  font: 700 clamp(26px, 5vw, 44px)/1 var(--display); letter-spacing: .03em; color: #F4C542;
  animation: intro-text .45s cubic-bezier(.16, 1, .3, 1) .72s both;
}
@keyframes intro-rise { from { transform: translateY(40%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-sweep { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@keyframes intro-twinkle { 0% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } 100% { transform: scale(.2) rotate(90deg); opacity: 0; } }
@keyframes intro-text { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-away { to { transform: scale(1.35); opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- Live scores page ---------- */
.panel__title .live-dot { display: inline-block; vertical-align: 4px; margin-right: 4px; }
.scores { padding: 4px 0 8px; }
.score-league h3 {
  padding: 12px 20px 8px;
  font-size: 13px; font-weight: 600; color: var(--chalk-2);
}
.score-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 76px minmax(0, 1fr) 84px;
  align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 20px;
  border-top: 1px solid var(--seam);
}
.score-row:hover { background: rgba(255, 255, 255, .025); }
.score-row__team { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row__team--home { text-align: right; }
.score-row__team.is-winner { font-weight: 700; color: var(--chalk); }
.score-row__score {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; border-radius: 6px;
  background: var(--band);
  font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums;
}
.score-row__score i { font-style: normal; color: var(--chalk-3); font-size: 16px; }
.score-row__score.is-live { background: var(--odds); color: #fff; }
.score-row__score.is-live i { color: #CFF5DD; }
.score-row__more {
  justify-self: end;
  height: 32px; padding: 0 12px;
  display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--stand-2);
  font-size: 13px; font-weight: 600; color: var(--chalk);
  transition: background-color .15s;
}
.score-row__more:hover { background: var(--flood); }

/* ---------- Match room ---------- */
.match { display: grid; gap: var(--gap); }
.match__hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 22px 24px 24px;
  border-radius: var(--r-panel);
  background-color: var(--stand); background-size: cover; background-position: center 30%;
  display: grid; justify-items: center; gap: 18px;
}
.match__hero::before { /* taste-skill-ignore: neutral scrim over photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 18, 42, .55), rgba(6, 18, 42, .92)); /* taste-skill-ignore: neutral scrim over photo */
}
.match__meta { justify-self: stretch; display: flex; gap: 10px; font-size: 14px; font-weight: 600; }
.match__meta > span { color: var(--chalk-2); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.match__board {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 24px;
}
.match__team { font: 700 clamp(30px, 4.2vw, 56px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.match__team--home { text-align: right; }
.match__score {
  display: flex; align-items: center; gap: 10px;
  min-width: 128px; justify-content: center;
  padding: 10px 18px; border-radius: 10px;
  background: rgba(6, 18, 42, .8);
  font: 700 48px/1 var(--display); font-variant-numeric: tabular-nums;
}
.match__score i { font-style: normal; color: var(--chalk-3); font-size: 32px; }
.match__score.is-live { background: var(--odds); color: #fff; }
.match__score.is-live i { color: #CFF5DD; }
.match__markets { padding: 4px 20px 20px; }
.match__note { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: var(--band); color: var(--chalk-2); font-size: 14px; }
.market h3 { padding: 16px 0 10px; font: 700 18px/1 var(--display); }
.market .odds { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.market .odd { min-width: 0; height: 52px; }
.odd[disabled] { background: var(--odds-locked); color: #CDEFDA; cursor: not-allowed; transform: none; }
.odd[disabled] .odd__value svg { width: 16px; height: 16px; }

.match-picker { display: grid; }
.pick-match {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 20px;
  border-top: 1px solid var(--seam);
  text-align: left;
  transition: background-color .15s;
}
.pick-match:first-child { border-top: 0; }
.pick-match:hover { background: rgba(255, 255, 255, .03); }
.pick-match[aria-current="true"] { background: var(--stand-2); }
.pick-match[aria-current="true"] .pick-match__league { color: var(--chalk-2); }
.odd[disabled] .odd__label { color: #CDEFDA; }
.pick-match__teams { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-match__teams i { font-style: normal; color: var(--chalk-3); }
.pick-match__league { font-size: 12px; color: var(--chalk-3); }

@media (max-width: 899px) {
  .score-row { grid-template-columns: 44px minmax(0, 1fr) 64px minmax(0, 1fr); padding: 6px 14px; gap: 8px; }
  .score-row__more, .score-row > :nth-child(5) { display: none; } /* the 5th cell would wrap onto its own line */
  .score-row__score { font-size: 19px; }
  .match__hero { padding: 18px; }
  .match__board { grid-template-columns: 1fr; gap: 10px; justify-items: center; text-align: center; }
  .match__team, .match__team--home { text-align: center; }
  .pick-match { grid-template-columns: 44px minmax(0, 1fr); padding: 8px 14px; }
  .pick-match__league { grid-column: 2; }
  .market .odd { padding: 0 10px; gap: 6px; }
  .market .odd__value { font-size: 22px; }
}


/* ---------- Winners board ---------- */
.board__cols, .win {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: center;
  padding: 0 24px;
}
.board__cols {
  padding-top: 12px; padding-bottom: 12px;
  font-size: 12px; color: var(--chalk-3);
  border-bottom: 1px solid var(--seam);
}
.board__cols span:last-child, .win__amount { text-align: right; }
.board__window { height: 576px; overflow: hidden; position: relative; }
.board__window.is-static { height: auto; overflow: visible; }
.board__list { will-change: transform; }
/* Continuous upward scroll: the list holds two copies and slides up by one copy, then loops. */
.board__window.is-marquee .board__list { animation: winners-up var(--marquee-duration, 120s) linear infinite; }
.board__window.is-marquee:hover .board__list,
.board__window.is-marquee:focus-within .board__list { animation-play-state: paused; }
@keyframes winners-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.win {
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--seam);
}
.win:last-child { border-bottom: 0; }
.win__amount {
  font: 700 30px/1 var(--display);
  color: var(--turf);
  font-variant-numeric: tabular-nums;
}
.win__user { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__mail { color: var(--chalk-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px;
  border-top: 1px solid var(--seam);
  font-size: 13px; color: var(--chalk-2);
}
.link-btn {
  color: var(--flood-ink); font-weight: 600; font-size: 13px;
  padding: 6px 2px;
}
.link-btn:hover { color: var(--chalk); }

/* ---------- Bet slip ---------- */
.betslip__toggle {
  display: none;
  width: 100%;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  font: 700 22px/1 var(--display);
}
.betslip__toggle .count, .slip-head .count {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px;
  background: var(--stand-2); color: var(--chalk);
  font: 700 15px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.betslip__toggle .count.has-items, .slip-head .count.has-items { background: var(--flood); color: #fff; }
.betslip__toggle svg { width: 18px; height: 18px; margin-left: auto; transition: transform .2s var(--ease-out); }

.slip-head {
  background: var(--stand-2);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--seam);
}
.slip-head h2 { font: 700 22px/1 var(--display); }
.slip-head .count:not(.has-items) { background: var(--pitch); }
.slip-head a { margin-left: auto; font-size: 13px; color: var(--flood-ink); }
.slip-head a:hover { color: var(--chalk); }
.slip-section { padding: 14px 20px; border-bottom: 1px solid var(--seam); }
.slip-section:last-child { border-bottom: 0; }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; gap: 4px;
  border-radius: 10px;
  background: var(--pitch);
}
.segmented button {
  height: 34px; border-radius: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--chalk-2);
  transition: background-color .15s, color .15s;
}
.segmented button:hover { color: var(--chalk); }
.segmented button[aria-selected="true"] { background: var(--stand-2); color: var(--chalk); }

.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pill {
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  background: var(--stand-2);
  font-size: 12px; font-weight: 500;
  color: var(--chalk-2);
  transition: background-color .15s, color .15s;
}
.pill:hover { color: var(--chalk); }
.pill[aria-pressed="true"] { background: var(--chalk); color: var(--pitch); }

.slip-empty { color: var(--chalk-2); font-size: 14px; }
.slip-empty b { display: block; color: var(--chalk); font-weight: 600; margin-bottom: 2px; }

.pick {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 4px 12px;
}
.pick__name { font-weight: 600; }
.pick__event { grid-column: 1; font-size: 13px; color: var(--chalk-2); }
.pick__odds { grid-row: 1 / span 2; grid-column: 2; font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.pick__remove {
  grid-row: 1 / span 2; grid-column: 3;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--chalk-2);
  transition: background-color .15s, color .15s;
}
.pick__remove:hover { background: var(--stand-2); color: var(--chalk); }
.pick__remove svg { width: 14px; height: 14px; }

.slip-label { font-size: 13px; color: var(--chalk-2); margin-bottom: 10px; }
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.combo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 36px;
  border-radius: var(--r-chip);
  background: var(--stand-2);
  font-size: 13px; font-weight: 600; color: var(--chalk-2);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.combo:hover { color: var(--chalk); }
.combo input { position: absolute; opacity: 0; pointer-events: none; }
.combo:has(input:checked) { background: var(--flood); color: #fff; }
.combo:has(input:focus-visible) { outline: 2px solid var(--flood); outline-offset: 2px; }

.stats { display: grid; gap: 10px; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--chalk-2); }
.stats b { color: var(--chalk); font: 700 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.stats .stats__return b { color: var(--turf); font-size: 26px; }

.stake-label { display: block; font-size: 13px; color: var(--chalk-2); margin-bottom: 8px; }
.stake {
  display: flex; align-items: center;
  height: 52px; padding: 0 16px;
  border-radius: 10px;
  background: var(--pitch);
  border: 1px solid var(--seam);
  transition: border-color .15s;
}
.stake:focus-within { border-color: var(--flood); }
.stake span { font: 700 22px/1 var(--display); color: var(--chalk-2); }
.stake input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  padding-left: 8px;
  font: 700 26px/1 var(--display);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.stake input::-webkit-inner-spin-button { opacity: .4; }
.quick-stakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quick-stakes button {
  height: 30px; border-radius: var(--r-chip);
  background: var(--stand-2);
  font-size: 12px; font-weight: 600; color: var(--chalk-2);
  font-variant-numeric: tabular-nums;
  transition: color .15s, transform .12s var(--ease-out);
}
.quick-stakes button:hover { color: var(--chalk); }
.quick-stakes button:active { transform: scale(.96); }

.bonus-note {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 13px; color: var(--turf);
}
.bonus-note svg { width: 18px; height: 18px; flex: none; }
.btn--block { width: 100%; height: 50px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--seam); }
.site-footer__inner {
  max-width: 1560px; margin: 0 auto;
  padding: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--chalk-2);
}
.age-badge {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--flare);
  font: 700 15px/1 var(--display); color: var(--chalk);
  flex: none;
}
.site-footer__credit { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-footer__credit img { height: 18px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .main-nav__link { padding: 8px 9px; font-size: 13.5px; }
}

@media (max-width: 1199px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas: "side top" "side center" "side slip";
  }
  .sidebar { grid-row: 1 / span 3; }
  .betslip { position: static; }
  .ev-col-dc { display: none; }
}

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .header-actions .btn--ghost { display: none; }
  .main-nav__mobile { display: list-item; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: var(--pitch);
    border-bottom: 1px solid var(--seam);
    padding: 12px 16px 20px;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s .18s;
  }
  .main-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
  }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav__link { padding: 14px 12px; font-size: 16px; }
}

@media (max-width: 899px) {
  :root { --gap: 14px; }
  .site-header__bar { padding: 0 16px; gap: 12px; }
  .layout {
    padding: var(--gap) 16px 96px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "side" "center";
  }
  .sidebar { position: static; grid-row: auto; }
  .topbar__inner { gap: 16px; }
  .topbar__clock { padding-right: 16px; }
  .quick-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
    padding: 14px 6px; border-radius: var(--r-panel);
    background: var(--stand); border: 1px solid var(--seam);
  }
  /* Phones: icon row, then the competition chips with a search icon pinned at the end;
     the search bar opens under them when the icon is tapped. */
  .sidebar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; }
  .quick-nav { grid-column: 1 / -1; grid-row: 1; }
  .leagues { grid-column: 1; grid-row: 2; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0; background: none; border: 0; }
  .leagues::-webkit-scrollbar { display: none; }
  .leagues__link { background: var(--stand); padding: 7px 10px; font-size: 13px; gap: 8px; }
  .leagues__link svg { width: 16px; height: 16px; }
  .search-chip {
    grid-column: 2; grid-row: 2;
    display: grid; place-items: center;
    width: 38px; height: 38px; align-self: center;
    border-radius: var(--r-chip);
    background: var(--stand); border: 1px solid var(--seam); color: var(--chalk);
  }
  .search-chip svg { width: 18px; height: 18px; }
  .search-chip[aria-expanded="true"] { background: var(--odds); border-color: var(--odds); color: #fff; }
  .side-search { grid-column: 1 / -1; grid-row: 3; display: none; }
  .sidebar.is-searching .side-search { display: flex; }
  .promo { display: none; }

  .title-row h1 { font-size: 24px; }

  .featured__track { grid-auto-columns: 100%; }
  .slide { height: 196px; padding-left: 28px; padding-right: 28px; }
  .featured__nav--prev, .featured__nav--next { width: 34px; height: 34px; margin-top: -17px; }
  .featured__nav--prev { left: -12px; }
  .featured__nav--next { right: -12px; }
  .ev-col-dc, .ev-col-ou { display: none; }

  /* the bet slip becomes a bottom sheet */
  .betslip {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90;
    border-radius: var(--r-panel) var(--r-panel) 0 0;
    border-bottom: 0;
    max-height: 84vh; overflow-y: auto;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, .5); /* taste-skill-ignore: bottom sheet overlay */
  }
  .betslip__toggle { display: flex; }
  .betslip__inner { display: none; }
  .betslip.is-open .betslip__inner { display: block; }
  .betslip.is-open .betslip__toggle svg { transform: rotate(180deg); }
  .slip-head { display: none; }

  .board__cols { display: none; }
  .win {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 2px; column-gap: 16px;
    padding: 12px 16px;
  }
  .win__user { grid-column: 1; grid-row: 1; }
  .win__mail { grid-column: 1; grid-row: 2; font-size: 13px; }
  .win__amount { grid-column: 2; grid-row: 1 / span 2; font-size: 26px; }
  .board__window { height: 544px; }
  .board__foot { padding: 12px 16px; }

  .site-footer__inner { padding: 24px 16px 96px; }
  .site-footer__credit { margin-left: 0; }
}

@media (max-width: 520px) {
  .logo { width: 116px; }
  .header-actions .btn--turf { padding: 0 14px; height: 38px; }
  .topbar__inner { gap: 14px; }
  .topbar__clock { padding-right: 14px; }
  .topbar__tz { display: none; }
  .topbar__links { gap: 14px; }
  .topbar__links a { font-size: 13px; }
  .ev-table td:first-child { padding-left: 14px; width: 52px; }
  .ev-table td:last-child, .ev-table th:last-child { padding-right: 14px; }
  .ev-odd { min-width: 48px; }
  .ev-match { min-width: 0; }
  .ev-match__teams { font-size: 13px; }
  .ev-match__teams span:nth-child(odd) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ev-odd { min-width: 0; }

  /* Phones: moderate sizes across every page */
  body { font-size: 14px; }
  .title-row h1 { font-size: 22px; }
  .title-row p { font-size: 13px; margin-top: 4px; }
  .panel__head { padding: 12px 14px; }
  .panel__title { font-size: 18px; }
  .panel__meta { font-size: 12px; }
  .panel__body { padding: 12px 14px 14px; }
  .betslip__toggle { font-size: 19px; padding: 12px 16px; }

  /* Homepage slider and Top events */
  .slide { height: 172px; padding: 14px 24px; }
  .slide__meta { font-size: 12px; }
  .slide__teams { font-size: 19px; margin-bottom: 10px; max-width: calc(100% - 140px); }
  .slide__badge { width: 22px; height: 22px; }
  .slide__vs { font-size: 13px; }
  .slide__team:has(.slide__badge) + .slide__vs { padding-left: 30px; }
  .countdown { right: 26px; padding: 6px 8px; }
  .countdown__box { min-width: 30px; }
  .countdown__box b { font-size: 16px; }
  .slide .odd { height: 36px; padding: 0 8px; }
  .slide .odd__label { font-size: 12px; }
  .slide .odd__value { font-size: 17px; }
  .slide--promo .slide__title { font-size: 28px; }
  .slide--promo p { font-size: 13px; }
  .sport-tab { font-size: 13px; }
  .sport-tab svg { width: 18px; height: 18px; }
  .ev-table th.ev-group { font-size: 16px; padding: 10px 14px; }
  .ev-odd { height: 38px; font-size: 15px; }
  .ev-match__league { font-size: 11px; }

  /* Live scores */
  .score-league h3 { padding: 10px 14px 6px; font-size: 12px; }
  .score-row { min-height: 44px; padding: 4px 12px; grid-template-columns: 38px minmax(0, 1fr) 56px minmax(0, 1fr); font-size: 13px; }
  .score-row__score { height: 30px; font-size: 16px; gap: 4px; }
  .score-row__score i { font-size: 13px; }
  .ev-time { font-size: 12px; }

  /* Match room */
  .match__hero { padding: 14px; gap: 12px; }
  .match__meta { font-size: 12px; }
  .match__team { font-size: 24px; }
  .match__score { min-width: 96px; padding: 6px 14px; font-size: 32px; gap: 8px; }
  .match__score i { font-size: 22px; }
  .match__markets { padding: 0 14px 14px; }
  .market h3 { padding: 14px 0 8px; font-size: 16px; }
  .market .odd { height: 42px; }
  .market .odd__label { font-size: 12px; }
  .market .odd__value { font-size: 18px; }
  .match__note { font-size: 13px; }
  .pick-match { min-height: 44px; padding: 8px 14px; font-size: 13px; row-gap: 0; align-content: center; }
  .pick-match__league { font-size: 11px; }

  /* Recent winners */
  .win { padding: 9px 14px; column-gap: 12px; }
  .win__user { font-size: 14px; }
  .win__mail { font-size: 12px; }
  .win__amount { font-size: 19px; }
  .board__window { height: 440px; }
  .board__foot { padding: 10px 14px; font-size: 12px; }
}

@media (max-width: 360px) {
  .quick-nav { padding-left: 2px; padding-right: 2px; gap: 2px; }
  .quick-nav__item { font-size: 10.5px; letter-spacing: -.01em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
