/* ============================================================================
   COMPONENTS — app shell (left sidebar + top navbar + two right drawers),
   reskinned blocks. Twin accents: green (--accent) + yellow (--accent-2).
   ============================================================================ */

/* =============================================================
   APP SHELL
   ============================================================= */
.app { display: block; min-height: 100vh; }
.app__main {
  margin-left: var(--sidebar-w);
  min-width: 0; display: flex; flex-direction: column; min-height: 100vh;
}
.app__main > main { flex: 1 0 auto; }

/* =============================================================
   LEFT SIDEBAR — fixed (pinned), only the main column scrolls
   ============================================================= */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg-050);
  border-right: 1px solid var(--rule);
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 60;
}
.sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding: 4px 6px; }
.sidebar .brand { display: inline-flex; }
.sidebar .brand img { height: 34px; width: auto; }
.sidebar__close { display: none; font-size: 1.7rem; line-height: 1; color: var(--fg-300); padding: 2px 8px; }
.sidebar__close:hover { color: var(--accent); }

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.sidebar__link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--fg-100); border: 0; border-radius: var(--radius);
  position: relative;
}
.sidebar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-700); transition: background .18s var(--ease), box-shadow .18s var(--ease); flex-shrink: 0; }
.sidebar__link:hover { background: var(--bg-100); color: var(--fg-000); }
.sidebar__link:hover .sidebar__dot { background: var(--accent); }
.sidebar__link[aria-current="page"] {
  background: linear-gradient(90deg, var(--green-wash), transparent);
  color: var(--fg-000);
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar__link[aria-current="page"] .sidebar__dot { background: var(--accent); box-shadow: 0 0 0 4px var(--green-wash); }

.sidebar__group { padding: 4px 6px 0; margin-bottom: 18px; }
.sidebar__group h4 { margin-bottom: 8px; }
.sidebar__sub {
  display: block; padding: 7px 8px;
  font-size: .86rem; color: var(--fg-300);
  border: 0; border-radius: var(--radius-sm);
}
.sidebar__sub:hover { color: var(--accent); background: var(--bg-100); }

.sidebar__foot {
  margin-top: auto;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--rule);
  font-size: .8rem; color: var(--fg-500);
}
.sidebar__foot p { margin-bottom: 4px; }
.sidebar__help { color: var(--accent-2); font-weight: 600; font-family: var(--font-mono); }
.sidebar__foot a { color: var(--fg-100); border-bottom-color: var(--fg-700); }
.sidebar__foot a:hover { color: var(--accent); }

/* =============================================================
   TOP NAVBAR
   ============================================================= */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: var(--topbar-h);
  padding: 0 18px;
  background: color-mix(in srgb, var(--bg-050) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar__burger { display: none; }
.topbar__brand { display: none; }
.topbar__brand img { height: 30px; width: auto; }
.topbar__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--fg-100); margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
.topbar__cluster { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar__betstop { display: inline-flex; align-items: center; border: 0; }
.topbar__betstop img { height: 24px; width: auto; display: block; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }

.age-badge {
  font-family: var(--font-display); font-weight: 800;
  font-size: .78rem; line-height: 1; letter-spacing: .02em;
  color: var(--accent-2-ink); background: var(--accent-2);
  border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.topbar__au { font-size: .72rem; color: var(--fg-500); white-space: nowrap; }
.sidebar__age { margin-top: 8px; font-weight: 700; font-size: .78rem; color: var(--fg-300); }

.topbar__drawer-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--fg-100); background: var(--bg-100);
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.topbar__drawer-btn:hover { border-color: var(--accent); color: var(--accent); }
.topbar__slip-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  color: var(--accent-ink); background: var(--accent);
  border-radius: 999px; line-height: 1;
}

@media (max-width: 960px) {
  .app__main { margin-left: 0; }
  .sidebar {
    width: min(300px, 84vw);
    transform: translateX(-100%);
    transition: transform .32s var(--ease);
    box-shadow: var(--shadow-3);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__close { display: inline-flex; }
  .topbar__burger {
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; width: 40px; height: 40px; flex-shrink: 0;
    border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-100);
  }
  .topbar__burger span { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--fg-000); border-radius: 2px; }
  .topbar__burger span:nth-child(1) { top: 14px; }
  .topbar__burger span:nth-child(2) { top: 19px; }
  .topbar__burger span:nth-child(3) { top: 24px; }
  .topbar__burger[aria-expanded="true"] { border-color: var(--accent); }
  .topbar__brand { display: inline-flex; }
  .topbar__title { display: none; }
}
@media (max-width: 720px) {
  .topbar__cluster { display: none; }
  .topbar__signin { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* =============================================================
   SCRIM (shared by sidebar + drawers)
   ============================================================= */
.scrim {
  position: fixed; inset: 0;
  background: rgba(6, 9, 8, .62);
  backdrop-filter: blur(2px);
  z-index: 55;
  opacity: 0; transition: opacity .3s var(--ease);
}
.scrim[hidden] { display: none; }
.scrim.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scrim { transition: none; } }
body.is-locked { overflow: hidden; }

/* =============================================================
   RIGHT SLIDE-OUT DRAWERS
   ============================================================= */
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: min(var(--slip-w), 100%);
  display: flex; flex-direction: column;
  background: var(--bg-050);
  border-left: 1px solid var(--rule);
  box-shadow: var(--shadow-3);
  z-index: 70;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility 0s linear .32s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .32s var(--ease); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--rule);
}
.drawer__title { font-size: 1.02rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.drawer__count {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  color: var(--accent-ink); background: var(--accent);
  border-radius: 999px; padding: 2px 9px; line-height: 1.3;
}
.drawer__close { font-size: 1.7rem; line-height: 1; color: var(--fg-300); padding: 2px 8px; }
.drawer__close:hover { color: var(--accent); }
.drawer__body { flex: 1; padding: 16px 18px; overflow-y: auto; }
.drawer__foot { padding: 14px 18px; border-top: 1px solid var(--rule); }
.drawer__note { font-size: .78rem; color: var(--fg-500); margin-bottom: 10px; line-height: 1.5; }
.drawer__note a { color: var(--accent); border-bottom-color: var(--accent-soft); }
.drawer--nav { border-left-color: var(--accent-2-soft); }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* Navigator drawer rows */
.nav-drawer__group { margin-bottom: 20px; }
.nav-drawer__group h4 { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-soft); }
.nav-drawer__row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 8px; border: 0; border-radius: var(--radius-sm);
}
.nav-drawer__row:hover { background: var(--bg-100); }
.nav-drawer__ico { display: inline-flex; width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.nav-drawer__ico svg { width: 100%; height: 100%; }
.nav-drawer__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-drawer__name { font-size: .9rem; font-weight: 600; color: var(--fg-000); }
.nav-drawer__meta { font-family: var(--font-mono); font-size: .7rem; color: var(--fg-500); text-transform: uppercase; letter-spacing: .06em; }
.nav-drawer__link { display: block; padding: 8px; font-size: .9rem; color: var(--fg-100); border: 0; border-radius: var(--radius-sm); }
.nav-drawer__link:hover { color: var(--accent); background: var(--bg-100); }

/* =============================================================
   TICKER
   ============================================================= */
.ticker { background: var(--bg-050); border-bottom: 1px solid var(--rule); overflow: hidden; }
.ticker__track {
  display: flex; gap: 28px; padding: 8px 20px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .78rem; color: var(--fg-300);
  animation: ticker-roll 60s linear infinite;
}
.ticker__item { display: inline-flex; gap: 10px; align-items: center; }
.ticker__item strong { color: var(--fg-000); font-weight: 600; }
.ticker__item .price { color: var(--accent); font-weight: 700; }
.ticker__sep { color: var(--fg-700); }
@keyframes ticker-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
.ticker__icon { display: inline-flex; width: 14px; height: 14px; color: var(--accent); margin-right: 2px; }
.ticker__icon svg { width: 100%; height: 100%; }

/* =============================================================
   RG BAR
   ============================================================= */
.rg-bar {
  background: linear-gradient(90deg, var(--yellow-wash), transparent 70%), var(--bg-000);
  color: var(--fg-100);
  font-size: .8rem;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 20px;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid var(--accent-2);
}
.rg-bar__tag { font-weight: 600; color: var(--accent-2); }
.rg-bar a { color: var(--accent); }
.rg-bar a:hover { color: var(--fg-000); border-bottom-color: var(--accent); }
.rg-bar__sep { color: var(--fg-700); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  letter-spacing: .005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-2); color: var(--accent-2-ink); border-bottom-color: transparent; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg-000); border-color: var(--bg-300); }
.btn-ghost:hover { background: var(--bg-150); border-color: var(--accent); color: var(--accent); }
.btn-accent2 { background: var(--accent-2); color: var(--accent-2-ink); }
.btn-accent2:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, var(--bg-000) 0%, rgba(21,23,28,.95) 30%, rgba(21,23,28,.7) 52%, rgba(21,23,28,.35) 78%, rgba(21,23,28,.2) 100%),
    radial-gradient(720px 360px at 10% 0%, var(--green-wash), transparent 62%),
    url('/assets/img/hero/hero-afl.webp') no-repeat right center / cover,
    var(--bg-000);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.6rem, 6vw, 4.6rem) 0;
}
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.hero > .wrap { position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero__kicker {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-2-ink); background: var(--accent-2);
  padding: 5px 12px; border-radius: 999px;
  display: inline-block; margin-bottom: 16px;
}
.hero h1 { max-width: 17ch; margin-bottom: 16px; }
.hero__lede { max-width: 52ch; font-size: 1.02rem; color: var(--fg-100); margin-bottom: 14px; }
.hero__helpline {
  font-size: .88rem; color: var(--fg-100); margin-bottom: 22px;
  padding: 9px 14px; background: var(--bg-100);
  border: 1px solid var(--rule); border-left: 3px solid var(--accent-2);
  border-radius: var(--radius); display: inline-block;
}
.hero__helpline a { color: var(--accent); }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__card {
  background: rgba(21, 24, 28, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-3);
}
.hero__card .meta { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-300); margin-bottom: 10px; }
.hero__card .matchup { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; margin-bottom: 6px; }
.hero__card .when { font-size: .82rem; color: var(--fg-500); margin-bottom: 16px; }
.hero__card .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hero__card .chips .chip { min-width: 0; }
.hero__card .foot { font-size: .76rem; color: var(--fg-500); }

/* =============================================================
   BENTO TILE GRID (home sections)
   ============================================================= */
.tiles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px;
  padding: 24px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  color: var(--fg-000);
  transition: transform .25s var(--ease), border-color .2s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0;
  background: var(--tile-img) no-repeat center / cover;
  opacity: .5; z-index: -2;
  transition: opacity .25s var(--ease), transform .4s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21,23,28,.35) 0%, rgba(21,23,28,.9) 100%);
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--fg-000); }
.tile:hover::before { opacity: .8; transform: scale(1.05); }
.tile h2 { font-size: 1.35rem; margin-bottom: 10px; }
.tile p { color: var(--fg-100); font-size: .9rem; margin-bottom: 14px; line-height: 1.5; max-width: 48ch; }
.tile__cta {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  color: var(--accent); letter-spacing: .04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.tile__cta::after { content: "→"; display: inline-block; transition: transform .25s var(--ease); }
.tile:hover .tile__cta { color: var(--accent-2); }
.tile:hover .tile__cta::after { transform: translateX(6px); }
.tile--sports, .tile--account { grid-column: 1 / -1; }
.tile--sports  { --tile-img: url('/assets/img/hero/tile-sports.webp'); min-height: 260px; }
.tile--racing  { --tile-img: url('/assets/img/hero/tile-racing.webp'); }
.tile--account { --tile-img: url('/assets/img/hero/tile-account.webp'); }
.tile--help    { --tile-img: url('/assets/img/hero/tile-help.webp'); }
@media (max-width: 640px) {
  .tiles__grid { grid-template-columns: 1fr; }
  .tile, .tile--sports, .tile--account { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tile:hover { transform: none; }
  .tile:hover::before { transform: none; }
  .tile__cta::after { transition: none; }
}

/* =============================================================
   MARKET BOARD
   ============================================================= */
.market-board { background: transparent; padding-block: 14px; }
.market {
  position: relative;
  background: var(--bg-050);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.market:hover { border-color: var(--bg-300); border-left-color: var(--accent); transform: translateX(2px); }
.market__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.market__head h2 { font-size: 1.18rem; margin: 4px 0 0; }
.market__meta { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-300); margin: 0 0 4px; display: inline-flex; align-items: center; gap: 6px; }
.market__icon { display: inline-flex; width: 14px; height: 14px; color: var(--accent); }
.market__icon svg { width: 100%; height: 100%; }
.market__time { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-2-ink); background: var(--accent-2); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.market__group { margin-top: 12px; }
.market__group h3 { font-size: .78rem; font-weight: 600; margin-bottom: 8px; color: var(--fg-300); text-transform: uppercase; letter-spacing: .08em; }
.market__group + .market__group { padding-top: 10px; border-top: 1px dashed var(--rule-soft); margin-top: 12px; }
.market__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.market__opts .chip { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
.market__opts .chip__label { color: var(--fg-100); font-size: .88rem; }

/* =============================================================
   RACE CARDS
   ============================================================= */
.races { padding-block: 14px; }
.race-card {
  background: var(--bg-050);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  overflow: hidden;
}
.race-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-soft); }
.race-card__meta { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-300); margin: 0 0 4px; }
.race-card__title { font-size: 1.18rem; margin: 0; }
.race-card__discipline {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-2-ink); background: var(--accent-2); padding: 4px 9px; border-radius: 999px;
}
.race-card__field-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.race-card__field { font-size: .86rem; min-width: 540px; }
.race-card__field th { text-align: left; font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-300); padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.race-card__field td { padding: 9px 10px; border-bottom: 1px solid var(--rule-soft); color: var(--fg-100); }
.race-card__field tr:hover td { background: var(--bg-100); }
.race-card__field td.num { width: 36px; font-family: var(--font-mono); color: var(--accent); font-weight: 700; text-align: center; }
.race-card__field td.runner { font-weight: 600; color: var(--fg-000); }
.race-card__field td.price { font-family: var(--font-mono); font-weight: 700; color: var(--fg-000); width: 80px; text-align: right; }
.race-card__field td.price button { width: 100%; }

/* =============================================================
   TRUST STRIP
   ============================================================= */
.trust-strip { background: var(--bg-050); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.6rem 0; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; align-items: start; }
.trust-card { display: flex; flex-direction: column; gap: 8px; font-size: .84rem; color: var(--fg-300); }
.trust-card img { width: auto; height: 60px; max-width: 200px; object-fit: contain; object-position: left center; }
.trust-card strong { font-size: 1.5rem; font-family: var(--font-display); color: var(--accent-2); }
.trust-card p { line-height: 1.5; }
.trust-card a { color: var(--fg-100); border-bottom-color: var(--fg-700); }
.trust-card a:hover { color: var(--accent); }

.licence-plate {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 14px; border: 1px solid var(--accent-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--green-wash), transparent);
  min-height: 60px; width: max-content; max-width: 100%; justify-content: center; white-space: nowrap;
}
.licence-plate__tag, .licence-plate__acr, .licence-plate__no { white-space: nowrap; }
.licence-plate__tag { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-500); }
.licence-plate__acr { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--accent); letter-spacing: .02em; line-height: 1; }
.licence-plate__no { font-family: var(--font-mono); font-size: .68rem; color: var(--fg-300); letter-spacing: .04em; }

/* =============================================================
   PARTNER / APPROVAL BADGES
   ============================================================= */
.partners { background: var(--bg-050); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.3rem 0; }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: start; }
.partners__kicker { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-500); margin-bottom: 12px; }
.partners__logos { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.partner { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-000); }
.partner__mark { display: inline-flex; color: var(--accent); }
.partner__mark svg { width: 26px; height: 26px; display: block; }
.partner__name { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--fg-000); letter-spacing: .01em; white-space: nowrap; }
.partners__note { font-size: .76rem; color: var(--fg-500); line-height: 1.55; margin-top: 14px; max-width: 70ch; }
.partners__note--inline { margin-top: 0; max-width: none; }
.partners__group--disclosure { align-self: stretch; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: #0b0d10; color: var(--fg-100); padding: 2.5rem 0 0; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.footer-col h3 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; font-family: var(--font-mono); font-weight: 600; }
.footer-col a { display: block; padding: 4px 0; color: var(--fg-100); border: 0; font-size: .88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand img { margin-bottom: 12px; height: 30px; width: auto; }
.footer-brand p { font-size: .82rem; color: var(--fg-500); margin-bottom: 6px; }
.payments-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.payments-row img { background: #fff; border-radius: 2px; padding: 3px; width: 40px; height: 26px; }
.payments-note { font-size: .76rem; color: var(--fg-500); line-height: 1.5; }
.footer-legal { padding: 1.6rem var(--gutter); font-size: .8rem; color: var(--fg-500); }
.footer-legal p + p { margin-top: 10px; }
.footer-legal em { font-style: italic; }
.footer-legal a { color: var(--accent); border-bottom-color: var(--accent-soft); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   NCPF PLATE (mandatory black-on-white)
   ============================================================= */
.ncpf-plate { background: #fff; color: #000; text-align: center; font-size: .82rem; padding: 9px 16px; border-top: 2px solid #000; }
.ncpf-plate a { color: #000; border-bottom-color: #000; }

/* =============================================================
   COOKIE BANNER
   ============================================================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 36px; background: var(--bg-050); color: var(--fg-000); border-top: 2px solid var(--accent); z-index: 100; box-shadow: var(--shadow-3); }
.cookie-banner__inner { max-width: var(--wrap); margin: 0 auto; padding: 16px 20px; display: grid; grid-template-columns: 1.4fr auto; gap: 18px; align-items: center; }
.cookie-banner__title { font-weight: 700; margin-bottom: 4px; }
.cookie-banner p { font-size: .85rem; color: var(--fg-300); margin-bottom: 8px; }
.cookie-banner__choices { display: flex; gap: 18px; border: 0; padding: 0; margin-bottom: 6px; }
.cookie-banner__choices label { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-banner__legal { font-size: .76rem; color: var(--fg-500); }
.cookie-banner__legal a { color: var(--accent); border-color: transparent; }
@media (max-width: 760px) { .cookie-banner__inner { grid-template-columns: 1fr; } }

/* =============================================================
   FORMS
   ============================================================= */
.form-narrow { max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: .84rem; color: var(--fg-300); }
.field input, .field select { padding: 10px 12px; border: 1px solid var(--rule); background: var(--bg-000); color: var(--fg-000); border-radius: var(--radius); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--green-wash); }
.field--inline { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-set { border: 1px solid var(--rule); background: var(--bg-050); padding: 18px; border-radius: var(--radius); margin-bottom: 18px; }
.field-set legend { font-weight: 700; padding: 0 6px; color: var(--fg-000); }
.optout { margin-top: 18px; padding: 14px; border: 1px solid var(--accent-2-soft); border-radius: var(--radius); background: var(--yellow-wash); }
.optout summary { cursor: pointer; font-weight: 600; color: var(--fg-100); }
.signup-steps { padding-left: 18px; list-style: decimal; color: var(--fg-100); margin-bottom: 18px; }
.signup-steps li { margin-bottom: 6px; }

/* =============================================================
   PROSE / LEGAL
   ============================================================= */
.prose .wrap { max-width: 820px; }
.prose h2 { margin-top: 1.8rem; margin-bottom: .6rem; color: var(--fg-000); }
.prose p { margin-bottom: 1rem; color: var(--fg-100); line-height: 1.6; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; color: var(--fg-100); }
.legal-identity-line { font-size: .82rem; color: var(--fg-500); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; }

/* Page heads */
.page-head { position: relative; padding: clamp(2.5rem, 6vw, 4.2rem) 0 clamp(1.5rem, 3vw, 2.4rem); background: var(--bg-000); overflow: hidden; }
.page-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { max-width: 62ch; color: var(--fg-100); }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head--photo {
  background:
    linear-gradient(90deg, var(--bg-000) 0%, rgba(21,23,28,.92) 32%, rgba(21,23,28,.6) 58%, rgba(21,23,28,.3) 100%),
    radial-gradient(600px 280px at 8% 12%, var(--green-wash), transparent 62%),
    var(--page-head-img) no-repeat right center / cover, var(--bg-000);
}
.page-head--sports { --page-head-img: url('/assets/img/hero/hero-nrl.webp'); }
.page-head--racing { --page-head-img: url('/assets/img/hero/hero-racing.webp'); }

/* Markets-section background */
.markets-section {
  position: relative;
  background: linear-gradient(180deg, rgba(21,23,28,.92) 0%, rgba(21,23,28,.72) 50%, rgba(21,23,28,.95) 100%), url('/assets/img/hero/bg-markets.webp') no-repeat center / cover;
}
.markets-section > .wrap { position: relative; z-index: 1; }

/* Home RG block */
.rg-block { background: var(--bg-050); border: 1px solid var(--rule); border-left: 3px solid var(--accent-2); border-radius: var(--radius); margin-block: 22px; padding: 26px; }
.rg-block .wrap { padding: 0; }
.rg-block__line { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 12px; color: var(--accent-2); }
.rg-block p { color: var(--fg-100); }
.rg-block a { color: var(--fg-100); border-bottom-color: var(--fg-700); }
.rg-block a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Featured strip */
.featured { background: linear-gradient(180deg, var(--bg-050), var(--bg-000)); border: 1px solid var(--rule); border-radius: var(--radius); margin-block: 22px; padding: 22px; }
.featured .wrap { padding: 0; }
.featured__kicker { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.featured h2 { margin-bottom: 6px; }
.featured__time { color: var(--fg-500); margin-bottom: 16px; font-size: .85rem; }

/* =============================================================
   SLIP — tabs, lines, summary (shared by the slip drawer)
   ============================================================= */
.slip-tabs { display: flex; gap: 4px; margin: 12px 18px 0; padding: 4px; background: var(--bg-100); border-radius: var(--radius); border: 1px solid var(--rule); }
.slip-tab { flex: 1; padding: 7px 10px; font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-300); border-radius: var(--radius-sm); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.slip-tab:hover { color: var(--fg-000); }
.slip-tab.is-active { background: var(--bg-150); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.slip-side__empty { font-size: .85rem; color: var(--fg-500); padding: 30px 10px; text-align: center; border: 1px dashed var(--rule); border-radius: var(--radius); }

.slip-line { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.slip-line:last-child { border-bottom: 0; }
.slip-line__head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.slip-line__copy { min-width: 0; }
.slip-line__market { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-500); margin-bottom: 2px; }
.slip-line__label { font-size: .88rem; color: var(--fg-000); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.slip-line__price { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--accent); padding: 4px 10px; background: var(--bg-150); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.slip-line__remove { color: var(--fg-500); font-size: 1.2rem; line-height: 1; padding: 4px 6px; }
.slip-line__remove:hover { color: var(--down); }
.slip-line__stake { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.slip-line__stake label { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--fg-300); }
.slip-line__stake input { width: 78px; padding: 5px 8px; font-family: var(--font-mono); font-size: .88rem; font-weight: 600; background: var(--bg-000); color: var(--fg-000); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.slip-line__stake input:focus { border-color: var(--accent); outline: none; }
.slip-line__return { font-size: .8rem; color: var(--fg-300); }
.slip-line__return strong { color: var(--fg-000); font-family: var(--font-mono); font-weight: 700; }

.slip-summary { padding: 12px 0; border-top: 1px solid var(--rule); margin-bottom: 12px; }
.slip-summary__row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: .84rem; color: var(--fg-300); }
.slip-summary__row strong { color: var(--fg-000); font-weight: 700; transition: color .25s var(--ease); }
.slip-summary__row strong.tween-flash { animation: tween-flash .55s var(--ease); }
@keyframes tween-flash { 0% { color: var(--accent); text-shadow: 0 0 12px var(--green-line); } 100% { color: var(--fg-000); text-shadow: none; } }
.slip-summary__row.is-strong strong.tween-flash { animation: tween-flash-strong .7s var(--ease); }
@keyframes tween-flash-strong { 0% { color: var(--fg-000); text-shadow: 0 0 16px var(--green-line); transform: scale(1.05); } 100% { color: var(--accent); text-shadow: none; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .slip-summary__row strong.tween-flash { animation: none; } }
.slip-summary__row.is-strong { border-top: 1px dashed var(--rule); padding-top: 8px; margin-top: 4px; font-size: .92rem; }
.slip-summary__row.is-strong strong { color: var(--accent); font-size: 1.04rem; }
.slip-summary__stake { padding: 8px 0; }
.slip-summary__stake label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--fg-300); }
.slip-summary__stake input { flex: 1; padding: 8px 10px; font-family: var(--font-mono); font-size: 1rem; font-weight: 700; background: var(--bg-000); color: var(--fg-000); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.slip-summary__stake input:focus { border-color: var(--accent); outline: none; }
.slip-summary__hint { font-size: .82rem; color: var(--fg-500); text-align: center; padding: 8px 6px; border: 1px dashed var(--rule); border-radius: var(--radius-sm); }

/* Promo card */
.promo-card { padding: 18px; background: var(--bg-050); border: 1px solid var(--rule); border-left: 3px solid var(--accent); margin-bottom: 14px; border-radius: var(--radius); }
.promo-card h2 { margin-bottom: 6px; font-size: 1.15rem; }
.promo-card details { margin-top: 10px; color: var(--fg-300); }

/* Legal tables */
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: .92rem; color: var(--fg-100); }
.legal-table caption { caption-side: top; text-align: left; padding: 0 0 8px; color: var(--fg-500); font-size: .85rem; }
.legal-table thead th { text-align: left; padding: 10px 12px; background: var(--bg-050); color: var(--fg-000); border-bottom: 1px solid var(--rule); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.legal-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--bg-050) 40%, transparent); }
.legal-table code { font-family: var(--font-mono); font-size: .85em; color: var(--fg-100); }
@media (max-width: 640px) { .legal-table { font-size: .85rem; } .legal-table thead th, .legal-table tbody td { padding: 8px; } }

/* Animated section divider — green→yellow line that draws on reveal */
.divider { position: relative; height: 1px; background: var(--rule); overflow: hidden; margin: clamp(2rem, 4vw, 3rem) 0; }
.divider::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, var(--accent-2) 60%, transparent 100%); transform: translateX(-100%); animation: divider-sweep 5s var(--ease) infinite; }
@keyframes divider-sweep { 0% { transform: translateX(-100%); opacity: 0; } 10% { opacity: 1; } 60% { transform: translateX(100%); opacity: 1; } 60.01%, 100% { opacity: 0; transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .divider::before { animation: none; opacity: .4; transform: translateX(0); } }
