/* ==========================================================================
   components.css — header, sticky RG bar, waves, circles, cards, footer, forms
   ========================================================================== */

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-400);
  padding: 0.7em 1.4em;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: var(--shadow-2); }
.btn--primary:hover { background: var(--red-700); color: #fff; }

.btn--ghost { background: transparent; color: var(--accent); border: 2px solid var(--line-strong); }
.btn--ghost:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }

.btn--light { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-1); }
.btn--light:hover { color: #fff; }

/* --- Age / eligibility strip (top of every page) -------------------------- */
.age-strip {
  background: var(--ink);
  color: var(--text-soft);
  text-align: center;
  font-size: var(--fs-300);
  letter-spacing: 0.02em;
  padding: 6px var(--sp-4);
}
.age-strip__pill {
  display: inline-block;
  background: var(--accent-strong); color: #fff;
  font-weight: 800; font-size: 0.72rem;
  border-radius: var(--r-pill);
  padding: 1px 8px; margin-right: 6px;
}

/* --- Site header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 6, 8, 0.82);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--red-700) 65%, transparent);
  opacity: 0.5;
}
.site-header__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.site-header.is-scrolled { background: rgba(11, 5, 7, 0.94); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); }
.site-header.is-scrolled::after { opacity: 0.9; }
.site-header__logo { display: inline-flex; align-items: center; margin-right: var(--sp-2); flex: none; }
.site-header__logo img, .site-header__logo svg { height: 30px; width: auto; transition: transform 0.2s var(--ease); }
.site-header__logo:hover img { transform: scale(1.04); }

/* Primary nav — pill links with an animated underline */
.site-nav { display: flex; gap: var(--sp-1); align-items: center; }
.site-nav__link {
  position: relative;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  color: var(--text-soft); text-decoration: none;
  padding: 0.45em 0.85em; border-radius: var(--r-pill);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.site-nav__link span { position: relative; z-index: 1; }
.site-nav__link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0.28em; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: left 0.2s var(--ease), right 0.2s var(--ease);
}
.site-nav__link:hover { color: #fff; background: var(--accent-soft); }
.site-nav__link:hover::after { left: 0.85em; right: 0.85em; }
.site-nav__link[aria-current="page"] { color: #fff; }
.site-nav__link[aria-current="page"]::after { left: 0.85em; right: 0.85em; }

/* Right zone: odds format + auth */
.site-header__right { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.site-nav__auth {
  font-weight: 600; font-size: 0.95rem; color: var(--text-soft); text-decoration: none;
  padding: 0.45em 0.6em; border-radius: var(--r-sm); transition: color 0.18s var(--ease);
}
.site-nav__auth:hover, .site-nav__auth[aria-current="page"] { color: #fff; }
.site-header__cta { padding: 0.55em 1.15em; font-size: 0.95rem; }

@media (max-width: 860px) {
  .site-nav, .site-nav__auth { display: none; }
  .site-header__inner { gap: var(--sp-3); }
}
@media (max-width: 480px) {
  .drawer-toggle__lbl { display: none; }
  .drawer-toggle { padding: 0.4em 0.5em; margin-right: 0; }
  .site-header__inner { gap: var(--sp-2); }
  .site-header__logo img, .site-header__logo svg { height: 26px; }
  .site-header__cta { padding: 0.45em 0.85em; font-size: 0.85rem; }
}

/* --- Sticky RG bar (NON-NEGOTIABLE) --------------------------------------- */
.rg-bar {
  position: sticky;
  top: var(--header-h);   /* === height of .site-header */
  z-index: 49;            /* below header (50), above page content */
  background: var(--ink);
  color: #fff;
}
.rg-bar__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 38px;
  padding-block: var(--sp-2);
  font-size: var(--fs-300);
}
.rg-bar__dot {
  flex: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(226, 45, 73, 0.25);
}
.rg-bar__msg { font-weight: 600; letter-spacing: 0.01em; }
.rg-bar__msg[aria-live] { transition: opacity 0.3s var(--ease); }
.rg-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* --- Wave dividers (the "waves" motif) ------------------------------------ */
.wave {
  display: block;
  width: 100%;
  height: 64px;
  color: inherit;        /* set on parent to tint the wave fill */
}
.wave svg { width: 100%; height: 100%; display: block; }
.wave--flip svg { transform: scaleY(-1); }

/* --- Circle motifs -------------------------------------------------------- */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  pointer-events: none;
  opacity: 0.5;
}
.blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--red-200), var(--red-100) 60%, transparent 72%);
  pointer-events: none;
  filter: blur(2px);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(226, 45, 73, 0.28) 0, transparent 46%),
    radial-gradient(circle at 8% 90%, rgba(92, 10, 26, 0.55) 0, transparent 50%),
    linear-gradient(180deg, #1a0c12 0%, var(--bg) 100%);
  padding-block: var(--sp-9) 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, var(--fs-900)); color: var(--text); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { margin-top: var(--sp-4); }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__harm {
  margin-top: var(--sp-6);
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink); color: #fff;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem;
}
.hero__harm .rg-bar__dot { background: var(--red-400); }

/* Concentric ring artwork on the hero right column. */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero__art .ring { position: absolute; inset: 0; margin: auto; }
.hero__art .ring.r1 { width: 96%; height: 96%; border-color: var(--red-200); }
.hero__art .ring.r2 { width: 72%; height: 72%; border-color: var(--red-300); }
.hero__art .ring.r3 { width: 48%; height: 48%; border-color: var(--accent); }
.hero__art .ring.r4 { width: 26%; height: 26%; border-style: dashed; border-color: var(--red-400); }
.hero__art__core {
  width: 26%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--red-400), var(--red-700));
  box-shadow: var(--shadow-3), 0 0 60px rgba(226, 45, 73, 0.45);
  position: relative; z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art .ring.r4 { animation: hero-spin 26s linear infinite; }
  .hero__art__core { animation: hero-pulse 3.6s var(--ease) infinite; }
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-pulse {
  0%, 100% { box-shadow: var(--shadow-3), 0 0 50px rgba(226, 45, 73, 0.35); }
  50%      { box-shadow: var(--shadow-3), 0 0 78px rgba(226, 45, 73, 0.6); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}

/* --- Entry tiles ---------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.tile::after {
  content: "";
  position: absolute;
  right: -42px; bottom: -42px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--accent-soft);
  z-index: 0;
}
.tile > * { position: relative; z-index: 1; }
.tile__num {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.tile h3 { margin-top: var(--sp-2); }
.tile p { font-size: 0.95rem; margin-top: var(--sp-2); }
.tile__cta { margin-top: var(--sp-4); display: inline-block; font-weight: 700; color: var(--accent-strong); }

@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* --- Trust strip ---------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.trust-card {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.trust-card__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.trust-card__icon svg { width: 26px; height: 26px; }
.trust-card strong { display: block; font-size: 0.95rem; }
.trust-card span { font-size: var(--fs-300); color: var(--text-mute); }
@media (max-width: 860px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-strip { grid-template-columns: 1fr; } }

/* --- Partner / approved-betting badges ------------------------------------ */
.partners .wrap { display: flex; flex-direction: column; gap: var(--sp-5); }
.partner-group__label {
  display: block;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-mute); font-weight: 700;
  margin-bottom: var(--sp-3);
}
.partner-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.partner-badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
}
.partner-badge__mark {
  flex: none; display: inline-grid; place-items: center;
  min-width: 48px; height: 32px; padding: 0 var(--sp-2);
  border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}
.partner-badge__name { font-size: 0.9rem; color: var(--text-soft); font-weight: 600; }
.partner-disclosure { color: var(--text-mute); font-size: var(--fs-300); max-width: 80ch; margin: 0; }
@media (max-width: 520px) { .partner-badge__name { font-size: 0.84rem; } }

/* --- Market board / racing card ------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }

.match {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-1);
}
.match__meta { display: flex; justify-content: space-between; font-size: var(--fs-300); color: var(--text-mute); }
.match__teams { margin-top: var(--sp-2); font-family: var(--font-display); font-size: var(--fs-500); }
.match__odds { margin-top: var(--sp-3); display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.odd {
  display: inline-flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.35em 0.9em;
  background: var(--surface-2);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.1s var(--ease);
}
.odd span { font-size: 0.7rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.odd .price { font-size: 1rem; color: var(--accent); font-weight: 700; }
.odd:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.odd:active { transform: none; }

.racecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.racecard__head {
  background: var(--ink); color: #fff;
  padding: var(--sp-4) var(--sp-5);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2);
}
.racecard__head h3 { color: #fff; }
.racecard__head .mono { color: var(--red-300); }

/* --- Sport navigation rail ------------------------------------------------ */
.sport-nav {
  display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-2);
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.sport-chip {
  flex: none; display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.5em 1.05em; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text-soft); font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}
.sport-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.sport-chip:hover, .sport-chip[aria-current="true"] { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.sport-chip[aria-current="true"]::before { box-shadow: 0 0 0 3px rgba(241, 92, 116, 0.25); }

/* --- "Next to jump" racing strip ------------------------------------------ */
.jump-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 980px) { .jump-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jump-strip { grid-template-columns: 1fr; } }
.jump-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--shadow-1);
}
.jump-card::after {
  content: ""; position: absolute; right: -36px; top: -36px; width: 96px; height: 96px;
  border-radius: 50%; background: var(--accent-soft); z-index: 0;
}
.jump-card > * { position: relative; z-index: 1; }
.jump-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.jump-card__meet { font-family: var(--font-display); font-size: 1.05rem; }
.jump-card__no { font-family: var(--font-mono); font-size: var(--fs-300); color: var(--text-mute); }
.jump-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  color: #fff; background: var(--accent-strong);
  padding: 0.25em 0.7em; border-radius: var(--r-pill); white-space: nowrap;
}
.jump-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.jump-card__runners { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.jump-runner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  width: 100%; padding: 0.4em 0.7em; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.jump-runner:hover { border-color: var(--accent); background: var(--accent-soft); }
.jump-runner__name { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.88rem; min-width: 0; }
.jump-runner__name b { font-family: var(--font-mono); color: var(--text-mute); font-weight: 700; }
.jump-runner__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump-runner__price { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.jump-card__more { display: inline-block; margin-top: var(--sp-3); font-weight: 700; color: var(--accent); font-size: 0.85rem; }

/* --- Board layout with sport rail ----------------------------------------- */
.board-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-5); align-items: start; }
.board-rail { position: sticky; top: calc(var(--header-h) + 52px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); }
.board-rail__title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); margin-bottom: var(--sp-3); }
.board-rail ul { display: flex; flex-direction: column; gap: 2px; }
.board-rail a { display: flex; justify-content: space-between; align-items: center; padding: 0.5em 0.7em; border-radius: var(--r-sm); color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.board-rail a:hover { background: var(--accent-soft); color: #fff; }
.board-rail a span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mute); }
@media (max-width: 860px) { .board-layout { grid-template-columns: 1fr; } .board-rail { display: none; } }

/* --- Multi-market event board --------------------------------------------- */
.event {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.event:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.event + .event { margin-top: var(--sp-4); }
.event__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line);
  font-size: var(--fs-300); color: var(--text-mute);
}
.event__sport { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; color: var(--text-soft); }
.event__sport::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.event__more { color: var(--accent); font-weight: 700; white-space: nowrap; text-decoration: none; }
.event__more:hover { text-decoration: underline; }
.event__body { display: grid; grid-template-columns: minmax(140px, 1.2fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); align-items: start; }
.event__teams { font-family: var(--font-display); font-size: var(--fs-500); line-height: 1.3; min-width: 0; }
.event__teams .vs { color: var(--text-mute); font-size: 0.8rem; font-family: var(--font-body); }
.market-group { min-width: 0; }
.market-group__cap { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: var(--sp-2); font-weight: 700; }
.market-group__odds { display: flex; flex-direction: column; gap: var(--sp-2); }
.odd--row {
  flex-direction: row; align-items: center; justify-content: space-between;
  border-radius: var(--r-sm); padding: 0.45em 0.75em; width: 100%; gap: var(--sp-2);
}
.odd--row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; text-transform: none; font-size: 0.8rem; color: var(--text-soft); min-width: 0; flex: 1 1 auto; }
.odd--row .price { font-size: 0.95rem; flex: none; }
@media (max-width: 860px) {
  .event__body { grid-template-columns: 1fr; }
  .event__teams { padding-bottom: var(--sp-2); border-bottom: 1px dashed var(--line); }
}

/* --- Legal tables (.legal-table) — used by cookies inventory -------------- */
.legal-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 0.92rem;
  margin-block: var(--sp-5);
}
.legal-table caption { text-align: left; font-weight: 700; padding-block: var(--sp-2); color: var(--text); }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table thead th { background: var(--surface-2); color: var(--text); font-family: var(--font-body); }
.legal-table tbody tr:nth-child(even) { background: var(--surface-2); }
.legal-table td:first-child, .legal-table th:first-child { font-family: var(--font-mono); }
@media (max-width: 640px) {
  .legal-table, .legal-table thead, .legal-table tbody, .legal-table th, .legal-table td, .legal-table tr { display: block; }
  .legal-table thead { position: absolute; left: -9999px; }
  .legal-table tr { border-bottom: 2px solid var(--line-strong); padding: var(--sp-2) 0; }
  .legal-table td { border: none; padding: 0.25em 0.9em; }
  .legal-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--text); }
}

/* --- Cards / generic panels ----------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-1);
}
.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-sm);
  margin-block: var(--sp-4);
}
.disclaimer { font-size: var(--fs-300); color: var(--text-mute); font-style: italic; }

/* --- Betslip -------------------------------------------------------------- */
.betslip {
  position: fixed;
  right: var(--sp-5); bottom: var(--sp-5);
  width: 320px; max-width: calc(100vw - 2rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  z-index: 60;
  transform: translateY(140%);
  transition: transform 0.35s var(--ease);
}
.betslip.is-open { transform: none; }
.betslip__head { background: var(--accent-strong); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg) var(--r-lg) 0 0; display: flex; justify-content: space-between; align-items: center; }
.betslip__head h3 { color: #fff; font-size: var(--fs-500); }
.betslip__tabs { display: flex; border-bottom: 1px solid var(--line); }
.betslip__tab {
  flex: 1; padding: 0.7em 0.5em; font-weight: 700; font-size: 0.9rem; color: var(--text-mute);
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.betslip__tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.betslip__multi-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--surface-2); border-radius: var(--r-pill); font-size: 0.7rem; }
.betslip__body { padding: var(--sp-4); max-height: 42vh; overflow: auto; }
.betslip__empty { color: var(--text-mute); font-size: 0.92rem; }
.betslip__pick { position: relative; padding: var(--sp-3); padding-right: 1.8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: var(--sp-2); }
.betslip__rm { position: absolute; top: 4px; right: 6px; color: var(--text-mute); font-size: 1.1rem; line-height: 1; }
.betslip__rm:hover { color: var(--accent); }
.betslip__pick-label { font-size: 0.82rem; color: var(--text-soft); padding-right: 0.5rem; }
.betslip__pick-odds { position: absolute; top: var(--sp-3); right: 1.8rem; color: var(--accent); font-weight: 700; }
.betslip__pick-stake { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); font-size: 0.75rem; color: var(--text-mute); }
.betslip__pick-stake input { width: 90px; padding: 0.35em 0.5em; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }
.betslip__pick-ret { margin-top: var(--sp-2); font-size: 0.78rem; color: var(--text-mute); }
.betslip__pick-ret b { color: var(--text); }
.betslip__multi { padding: 0 var(--sp-4) var(--sp-3); }
.betslip__row { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-2) 0; font-size: 0.9rem; }
.betslip__row--total { font-weight: 700; }
.betslip__row--total .mono, #multi-return { color: var(--accent); }
.betslip__stake { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--text-mute); padding: var(--sp-2) 0; }
.betslip__stake input { padding: 0.5em 0.6em; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }
.betslip__foot { padding: var(--sp-3) var(--sp-4) var(--sp-4); border-top: 1px solid var(--line); }
.betslip__rg { font-size: var(--fs-300); color: var(--text-mute); margin-bottom: var(--sp-3); }
.betslip__confirm { width: 100%; justify-content: center; }
.odd.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.jump-runner.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.betslip__toggle {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 59;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--ink); color: #fff;
  padding: 0.7em 1.2em; border-radius: var(--r-pill);
  box-shadow: var(--shadow-2); font-weight: 700;
  border: 1px solid var(--line-strong);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.betslip__toggle:hover { background: var(--accent-strong); border-color: var(--accent); transform: translateY(-2px); }
.betslip__count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--accent); border-radius: var(--r-pill);
  font-size: 0.75rem; font-family: var(--font-mono);
}

/* --- Odds format control (header) ----------------------------------------- */
.odds-fmt { display: inline-flex; align-items: center; gap: var(--sp-2); }
.odds-fmt__lbl { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); }
.odds-fmt__seg {
  display: inline-flex; padding: 2px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
}
.odds-fmt__seg button {
  font-size: 0.74rem; font-weight: 700; color: var(--text-mute);
  padding: 0.3em 0.66em; border-radius: var(--r-pill);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.odds-fmt__seg button:hover { color: var(--text); }
.odds-fmt__seg button[aria-pressed="true"] { color: #fff; background: var(--accent-strong); box-shadow: 0 1px 6px rgba(226, 45, 73, 0.4); }
@media (max-width: 980px) { .odds-fmt { display: none !important; } }

/* --- Event market list (event page) --------------------------------------- */
.market-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 860px) { .market-list { grid-template-columns: 1fr; } }
.market-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-1); }
.market-card__title { font-size: var(--fs-500); margin-bottom: var(--sp-3); }
.market-card__odds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2); }
.market-card__odds .odd--row { grid-column: auto; }

/* --- Outrights / futures table -------------------------------------------- */
.outright { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); margin-bottom: var(--sp-4); }
.outright__head { background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-5); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2); }
.outright__head h3 { color: #fff; font-size: var(--fs-500); }
.outright__head span { color: var(--red-300); font-size: var(--fs-300); }
.outright__rows { display: flex; flex-direction: column; }
.outright__row { display: flex; justify-content: space-between; align-items: center; padding: 0.6em var(--sp-5); border-top: 1px solid var(--line); }
.outright__row span { font-size: 0.95rem; }
.outright__row .odd { min-width: 84px; align-items: center; }

/* --- Win / Place columns (racing) ----------------------------------------- */
.wp { display: inline-flex; gap: var(--sp-2); }
.wp .odd { min-width: 64px; align-items: center; }
.wp__cap { font-size: 0.6rem; }

/* --- Cookie banner -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-5);
  max-width: 720px; margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: var(--sp-5);
  z-index: 70;
}
.cookie-banner h3 { font-size: var(--fs-500); }
.cookie-banner p { font-size: 0.92rem; margin-top: var(--sp-2); }
.cookie-banner__cats { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: var(--sp-4) 0; }
.cookie-banner__cat { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 0.9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: var(--sp-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .hint { font-size: var(--fs-300); color: var(--text-mute); margin-top: var(--sp-1); }
.field .error-msg { font-size: var(--fs-300); color: var(--red-300); margin-top: var(--sp-1); font-weight: 600; }
.field input[aria-invalid="true"] { border-color: var(--red-600); }

details.optout { border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); margin-block: var(--sp-4); }
details.optout summary { cursor: pointer; font-weight: 600; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #f3dfe3; }
.site-footer a { color: #fbd4da; }
.site-footer a:hover { color: #fff; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
  padding-block: var(--sp-8);
}
.site-footer__col h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--sp-3); }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.site-footer__col a { font-size: 0.92rem; text-decoration: none; }
.site-footer__brand p { color: #d8b8be; font-size: 0.92rem; margin-top: var(--sp-3); }
.site-footer__marks { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-top: var(--sp-4); }
.site-footer__marks .mark-chip {
  height: 38px; width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 5px 9px;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.site-footer__marks-note { color: #d8b8be; font-size: 0.82rem; margin-top: var(--sp-2); }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--sp-5);
  font-size: var(--fs-300);
  color: #cfa9b0;
}
.site-footer__legal p { color: #cfa9b0; margin-bottom: var(--sp-3); }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* --- Mandatory NCPF plate (black-on-white CGMN) --------------------------- */
.ncpf-plate {
  background: #fff;
  color: #000;
  border-top: 3px solid #000;
  padding: var(--sp-4) 0;
  text-align: center;
}
.ncpf-plate p { color: #000; font-weight: 700; font-size: 0.95rem; }
.ncpf-plate .ncpf-plate__sub { font-weight: 400; font-size: var(--fs-300); margin-top: var(--sp-1); }
.ncpf-plate a { color: #000; text-decoration: underline; }
.ncpf-plate strong { color: #000; }   /* keep the helpline number readable on the white plate */

/* --- My bets (account area) ----------------------------------------------- */
.mybets { display: flex; flex-direction: column; gap: var(--sp-5); }
.mybets__group h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); margin-bottom: var(--sp-2); }
.bet-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: var(--sp-2);
}
.bet-row--won { border-left-color: #2fae6a; }
.bet-row--lost { border-left-color: var(--text-mute); opacity: 0.85; }
.bet-row strong { display: block; font-size: 0.95rem; }
.bet-row__meta { font-size: var(--fs-300); color: var(--text-mute); }
.bet-row__fig { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-300); color: var(--text-mute); flex-wrap: wrap; }
.bet-row__fig b { color: var(--accent); }

/* --- Slide-in drawer (browse sidebar) ------------------------------------- */
.drawer-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; font-size: 0.92rem; color: var(--text-soft);
  padding: 0.4em 0.7em; border-radius: var(--r-sm); border: 1px solid var(--line);
  margin-right: var(--sp-2);
}
.drawer-toggle:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 520px) { .drawer-toggle__lbl { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; left: 0; top: 0; height: 100%;
  width: min(86vw, 340px);
  background: var(--surface); border-right: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3);
  transform: translateX(-100%); transition: transform 0.32s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--accent-strong); color: #fff;
}
.drawer__title { font-family: var(--font-display); font-size: var(--fs-500); font-weight: 700; }
.drawer__close { color: #fff; display: inline-flex; }
.drawer__sec { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.drawer__sec h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); margin-bottom: var(--sp-3); }
.drawer__sec ul { display: flex; flex-direction: column; gap: 2px; }
.drawer__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0.55em 0.6em; border-radius: var(--r-sm);
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.drawer__link:hover { background: var(--accent-soft); color: #fff; }
.drawer__link .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.drawer__foot { margin-top: auto; padding: var(--sp-4) var(--sp-5); font-size: var(--fs-300); color: var(--text-mute); }

@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__overlay { transition: none; }
}

/* ==========================================================================
   Animations & flourishes — all gated behind prefers-reduced-motion.
   Responsible-gambling surfaces (rg-bar, ncpf-plate, hero harm) stay calm.
   ========================================================================== */

/* Scroll progress bar (top of viewport) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--red-700));
  box-shadow: 0 0 8px rgba(241, 92, 116, 0.7);
  transition: width 0.1s linear; pointer-events: none;
}

/* Button shine sweep + animated gradient on the primary CTA */
.btn { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -160%;
  width: 55%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .btn--primary {
    background: linear-gradient(110deg, var(--accent-strong), var(--red-700), var(--accent-strong));
    background-size: 220% 100%;
    animation: btn-grad 7s ease infinite;
  }
  .btn--primary:hover::after { animation: btn-shine 0.85s var(--ease); }

  /* Odds: brief ripple when added to the slip */
  .odd.flash, .jump-runner.flash { animation: odd-flash 0.55s var(--ease); }
  /* Board "ticker": a faint highlight occasionally sweeps a price (no live wording) */
  .odd.tick { animation: odd-tick 1.2s var(--ease); }

  /* Bet slip: toggle pop on add, badge pulse, pick rows slide in */
  .betslip__toggle.pop { animation: bs-pop 0.4s var(--ease); }
  .betslip__count.bump { animation: bs-bump 0.4s var(--ease); }
  .betslip__pick { animation: pick-in 0.28s var(--ease); }

  /* Hero: gentle wave drift + floating ring already handled elsewhere */
  .hero .wave { overflow: hidden; }
  .hero .wave svg { width: 124%; animation: wave-drift 13s ease-in-out infinite alternate; }

  /* Jump pill dot pulse */
  .jump-pill::before { animation: dot-pulse 1.6s ease infinite; }

  /* Sport chips: lift on hover */
  .sport-chip { transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease); }
  .sport-chip:hover { transform: translateY(-2px); }

  /* Tiles: shine sweep */
  .tile::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(241, 92, 116, 0.12) 50%, transparent 60%);
    background-size: 250% 100%; background-position: 150% 0; transition: background-position 0.6s var(--ease);
  }
  .tile:hover::before { background-position: -50% 0; }
}

@keyframes btn-grad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes btn-shine { to { left: 160%; } }
@keyframes odd-flash { 0% { box-shadow: 0 0 0 0 rgba(241, 92, 116, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(241, 92, 116, 0); } }
@keyframes odd-tick { 0%, 100% { background: var(--surface-2); border-color: var(--line-strong); } 45% { background: var(--accent-soft); border-color: var(--accent); } }
@keyframes bs-pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes bs-bump { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes pick-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-16%); } }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* --- Hero orbiting sport icons -------------------------------------------- */
.hero__orbit { position: absolute; inset: 0; transform-origin: 50% 50%; z-index: 3; pointer-events: none; }
.hero__orbit .orb {
  position: absolute; top: calc(50% - var(--rad)); left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}
.hero__orbit .orb svg { width: 23px; height: 23px; }
.orb--horse { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .hero__orbit { animation: orbit-spin var(--dur, 20s) linear infinite; animation-delay: var(--delay, 0s); }
  .hero__orbit .orb { animation: orbit-spin var(--dur, 20s) linear infinite reverse; animation-delay: var(--delay, 0s); }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) { .hero__orbit { display: none; } }

/* ==========================================================================
   Advanced flourishes (all gated; transforms only — no layout reflow)
   ========================================================================== */

/* Animated gradient text on the hero accent words */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em {
    background: linear-gradient(100deg, var(--accent) 0%, #ff9fad 45%, var(--accent) 90%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: text-shimmer 6.5s linear infinite;
  }
}
@keyframes text-shimmer { to { background-position: 220% 0; } }

/* Pointer parallax + 3D tilt helpers (JS sets the transform) */
.hero__art { will-change: transform; transition: transform 0.25s var(--ease); }
.tilt { transition: transform 0.25s var(--ease); transform-style: preserve-3d; }
.tilt.is-tilting { transition: transform 0.05s linear; }

/* Upcoming-events ticker (marquee) */
.ticker-strip {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); margin-bottom: var(--sp-5);
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track { display: inline-flex; gap: var(--sp-6); white-space: nowrap; padding: 0.6em var(--sp-5); will-change: transform; }
.ticker-item { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.85rem; color: var(--text-soft); }
.ticker-item b { color: var(--text); font-family: var(--font-display); }
.ticker-item .price { color: var(--accent); font-weight: 700; }
.ticker-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker-run 32s linear infinite; }
  .ticker-strip:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
