/* =====================================================================
   BertaBet web skin. Load order: tokens.css, then this file.
   Every value comes from tokens.css custom properties. Do not hard-code
   colours or sizes below; add a token instead.
   Naming: BEM-ish, prefix bb-. State classes: is-*. Theme: [data-theme].
   ===================================================================== */

/* ---------- fonts (self-hosted woff2, see WEB-BUILD.md §Fonts) ---------- */
@font-face { font-family: 'Saira'; src: url('../fonts/Saira-Variable.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Saira Condensed'; src: url('../fonts/SairaCondensed-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/HankenGrotesk-Variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bb-cream); color: var(--bb-ink); font: 400 15px/1.5 var(--bb-font-body); }
a { color: var(--bb-navy); }
a:hover { color: var(--bb-teal); }
:focus-visible { outline: 2px solid var(--bb-gold); outline-offset: 2px; border-radius: 4px; }
.bb-num { font-family: var(--bb-font-display); font-variant-numeric: tabular-nums; }
.bb-eyebrow { font: 600 12px/1.2 var(--bb-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--bb-teal); }
.bb-poster { font-family: var(--bb-font-poster); font-weight: 800; text-transform: uppercase; line-height: .92; color: var(--bb-navy); margin: 0; }
.bb-h1 { font: 700 36px/1.05 var(--bb-font-display); color: var(--bb-navy); margin: 0; }
.bb-h2 { font: 700 20px/1.2 var(--bb-font-display); color: var(--bb-navy); margin: 0; }
.bb-h3 { font: 700 17px/1.25 var(--bb-font-display); color: var(--bb-navy); margin: 0; }
.bb-muted { color: var(--bb-muted); }
[hidden] { display: none !important; }
.bb-chips.bb-rail-chips, .bb-chips.bb-side-chips { display: none; }
.bb-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header + ridge ---------- */
.bb-header { background: var(--bb-cream); position: sticky; top: 0; z-index: 20; }
.bb-header__bar { height: var(--bb-header-height); padding: 0 32px; display: flex; align-items: center; gap: 32px; max-width: var(--bb-content-max); margin: 0 auto; }
.bb-logo { display: block; width: 220px; height: 36px; flex-shrink: 0; overflow: hidden; }
.bb-logo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bb-nav { display: flex; gap: 28px; flex: 1; }
.bb-nav a { white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--bb-ink); text-decoration: none; padding: 8px 0; }
.bb-nav a[aria-current="page"] { color: var(--bb-navy); box-shadow: inset 0 -2px 0 var(--bb-gold); }
.bb-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bb-coral); margin-right: 7px; vertical-align: 2px; }
.bb-header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.bb-lang { flex-shrink: 0; }
.bb-lang select { height: 34px; max-width: 120px; border: 1px solid var(--bb-line); border-radius: var(--bb-radius-chip); background: var(--bb-paper); color: var(--bb-navy); font: 600 13px var(--bb-font-body); padding: 0 8px; }
.bb-header__auth { display: flex; align-items: center; gap: 10px; }
.bb-header__camp, .bb-header__out { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.bb-btn--compact { min-height: 34px; padding: 0 14px; font-size: 14px; }
.bb-toolbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow: visible; }
.bb-odds-toggle { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex-shrink: 0; }
.bb-odds-toggle__chips { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.bb-loonie { width: 16px; height: 16px; flex: 0 0 16px; display: block; }
.bb-odds-help-btn {
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1px solid var(--bb-line); background: var(--bb-paper);
  color: var(--bb-navy); font: 700 13px/1 var(--bb-font-body); cursor: pointer;
}
.bb-odds-help {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, 80vw); z-index: 30;
  padding: 12px 14px; background: var(--bb-paper); border: 1px solid var(--bb-line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 32, 48, .12);
  font: 400 13px/1.45 var(--bb-font-body); color: var(--bb-ink);
}
.bb-rink { position: relative; }
.bb-rink__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 26;
  min-width: 280px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: var(--bb-paper);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius-card);
  box-shadow: 0 10px 28px rgba(15, 32, 48, .16);
}
.bb-rink__menu[hidden] { display: none !important; }
.bb-rink__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--bb-radius-chip);
  border: 1px solid var(--bb-line);
  background: var(--bb-paper);
  font: 600 13px/1 var(--bb-font-body);
  color: var(--bb-navy);
  cursor: pointer;
}
.bb-rink__opt.is-on, .bb-rink__opt[aria-selected="true"] {
  background: var(--bb-navy);
  border-color: var(--bb-navy);
  color: var(--bb-paper);
}
.bb-main--narrow { max-width: 560px; }
.bb-main--article { max-width: 760px; }
.bb-balance { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; border-radius: var(--bb-radius-button); background: var(--bb-paper); border: 1px solid var(--bb-line); }
.bb-balance__label { font-size: 11px; color: var(--bb-muted); display: block; line-height: 1.1; }
.bb-balance__value { font: 700 16px/1.1 var(--bb-font-display); font-variant-numeric: tabular-nums; }
.bb-ridge { display: block; width: 100%; height: var(--bb-ridge-height); }
.bb-ridge path { fill: none; stroke: var(--bb-navy); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- buttons, chips ---------- */
.bb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bb-touch-min); padding: 0 20px; border-radius: var(--bb-radius-button); border: 0; font: 700 15px/1 var(--bb-font-body); cursor: pointer; text-decoration: none; transition: filter var(--bb-fast) var(--bb-ease); }
.bb-btn--gold { background: var(--bb-gold); color: var(--bb-ink); }
.bb-btn--gold:hover { filter: brightness(.96); color: var(--bb-ink); }
.bb-btn--navy { background: var(--bb-navy); color: var(--bb-paper); }
.bb-btn--ghost { background: transparent; color: var(--bb-navy); border: 1.5px solid var(--bb-navy); }
.bb-btn--block { width: 100%; min-height: 52px; font-size: 16px; }
.bb-btn[disabled], .bb-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.bb-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--bb-radius-chip); border: 1px solid var(--bb-line); background: var(--bb-paper); font: 600 14px/1 var(--bb-font-body); color: var(--bb-navy); cursor: pointer; white-space: nowrap; text-decoration: none; }
.bb-chip.is-on, .bb-chip[aria-pressed="true"], .bb-chip[aria-selected="true"] { background: var(--bb-navy); border-color: var(--bb-navy); color: var(--bb-paper); }
.bb-chip--sm { height: 30px; font-size: 13px; }
.bb-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.bb-chips::-webkit-scrollbar { display: none; }

/* ---------- odds button (the core control) ---------- */
.bb-odds { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: var(--bb-odds-height); min-width: 0; padding: 0 10px; background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-odds); font: 600 16px/1.1 var(--bb-font-display); font-variant-numeric: tabular-nums; color: var(--bb-navy); cursor: pointer; transition: border-color var(--bb-fast) var(--bb-ease), background var(--bb-fast) var(--bb-ease); }
.bb-odds small { font: 500 11px/1.2 var(--bb-font-body); color: var(--bb-muted); }
.bb-odds:hover { border-color: var(--bb-navy); }
.bb-odds.is-selected, .bb-odds[aria-pressed="true"] { background: var(--bb-navy); border-color: var(--bb-navy); color: var(--bb-gold-text); }
.bb-odds.is-selected small, .bb-odds[aria-pressed="true"] small { color: #C9D6E0; }
.bb-odds.is-suspended { opacity: .45; pointer-events: none; }
.bb-odds.is-suspended::after { content: 'Suspended'; position: absolute; inset: auto 0 -16px; font: 500 10px var(--bb-font-body); color: var(--bb-muted); }
.bb-odds.is-up::before, .bb-odds.is-down::before { content: ''; position: absolute; right: 8px; top: 7px; border: 5px solid transparent; }
.bb-odds.is-up::before { border-bottom-color: var(--bb-teal-bright); border-top: 0; }
.bb-odds.is-down::before { border-top-color: var(--bb-coral-text); border-bottom: 0; }
.bb-odds--board { min-height: var(--bb-odds-height-board); width: 100%; max-width: 100%; overflow: hidden; }
.bb-odds-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bb-odds-row > .bb-odds { flex: 1; min-width: 88px; }

/* ---------- shells (scalable page layouts) ---------- */
.bb-shell { max-width: var(--bb-content-max); margin: 0 auto; min-height: calc(100vh - var(--bb-header-height) - var(--bb-ridge-height)); }
.bb-shell--book { display: grid; grid-template-columns: var(--bb-rail-width) minmax(0, 1fr) var(--bb-slip-width); grid-template-areas: "rail main slip"; }
.bb-shell--wide { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "side main"; }
.bb-shell--gate { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); grid-template-areas: "art form"; }
.bb-shell--gate-register { grid-template-columns: minmax(0, 1fr) minmax(0, 760px); grid-template-areas: "form art"; }
.bb-gate-art { grid-area: art; position: relative; overflow: hidden; min-height: 420px; padding: 72px; isolation: isolate; }
.bb-gate-art--day { background: var(--bb-la-day-bg); }
.bb-gate-art--dusk { background: var(--bb-la-dusk-bg); color: var(--bb-la-dusk-ink); }
.bb-gate-art--dusk .bb-eyebrow { color: var(--bb-la-dusk-accent); }
.bb-gate-art--dusk .bb-poster { color: var(--bb-la-dusk-ink); }
.bb-gate-art .bb-poster { font-size: 72px; margin-top: 18px; }
.bb-gate-art__lede { font-size: 18px; max-width: 420px; }
.bb-gate-form { grid-area: form; display: flex; align-items: center; justify-content: center; padding: 48px 24px; min-width: 0; }
.bb-gate-form__inner { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.bb-gate-form__inner--wide { width: min(480px, 100%); }
.bb-gate-switch { text-align: center; margin: 0; }
.bb-gate-switch a { font-weight: 700; }
.bb-shell--content { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 48px; padding: 32px; grid-template-areas: "side main"; }
.bb-shell--full { display: block; }
.bb-rail { grid-area: rail; border-right: 1px solid var(--bb-line); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.bb-side { grid-area: side; border-right: 1px solid var(--bb-line); padding: 28px 18px; display: flex; flex-direction: column; gap: 4px; }
.bb-main { grid-area: main; padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bb-slip-col { grid-area: slip; border-left: 1px solid var(--bb-line); background: var(--bb-paper); }
.bb-rail__item, .bb-side__item { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--bb-ink); font-size: 15px; font-weight: 500; }
.bb-rail__item[aria-current="page"], .bb-side__item[aria-current="page"] { background: var(--bb-navy); color: var(--bb-paper); font-weight: 700; }
.bb-rail__count { font-size: 12px; color: var(--bb-muted); font-variant-numeric: tabular-nums; }
.bb-rail__item[aria-current="page"] .bb-rail__count { color: var(--bb-gold-text); }
.bb-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--bb-radius-button); background: var(--bb-paper); border: 1px solid var(--bb-line); color: var(--bb-muted); }
.bb-search input { border: 0; background: transparent; font: inherit; color: var(--bb-ink); width: 100%; outline: none; }

/* ---------- hero (line-art panels) ---------- */
.bb-hero { position: relative; overflow: hidden; border-radius: var(--bb-radius-hero); min-height: 176px; background: var(--bb-la-day-bg); isolation: isolate; }
bb-lineart, .bb-hero__art { position: absolute; inset: 0; z-index: -1; display: block; pointer-events: none; }
.bb-hero__title--nowrap { white-space: nowrap; }
.bb-hero--dusk { background: var(--bb-la-dusk-bg); color: var(--bb-paper); min-height: 160px; }
.bb-hero--night { background: var(--bb-la-night-bg); color: var(--bb-night-text); }
.bb-hero--canola { background: var(--bb-la-canola-bg); min-height: 168px; }
.bb-hero__content { position: relative; padding: 16px 26px; max-width: 60%; display: flex; flex-direction: column; gap: 6px; }
.bb-hero__title { font-size: 40px; }
.bb-hero--dusk .bb-poster, .bb-hero--night .bb-poster { color: inherit; }
.bb-hero__actions { position: absolute; left: 26px; bottom: 16px; display: flex; gap: 10px; width: min(440px, calc(50% - 30px)); }
.bb-hero__actions > .bb-odds { flex: 1; }
.bb-hero__actions > .bb-btn { flex: 0 0 auto; white-space: nowrap; }
.bb-hero__aside { position: absolute; right: 22px; bottom: 16px; }

/* ---------- split meter (Battle of Alberta) ---------- */
.bb-meter { background: var(--bb-paper); color: var(--bb-ink); border: 1px solid var(--bb-line); border-radius: 14px; padding: 12px 16px; width: 280px; display: flex; flex-direction: column; gap: 8px; }
.bb-meter__labels { display: flex; justify-content: space-between; font: 700 15px var(--bb-font-display); color: var(--bb-navy); }
.bb-meter__north { color: var(--bb-gold-deep); }
.bb-meter__south { color: var(--bb-teal); }
.bb-meter__bar { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; }
.bb-meter__bar > :first-child { background: var(--bb-gold); }
.bb-meter__bar > :last-child { background: var(--bb-teal); flex: 1; }
.bb-meter__note { font-size: 12px; color: var(--bb-muted); }

/* ---------- cards, board ---------- */
.bb-card { background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-card); }
.bb-card--pad { padding: 20px 24px; }
.bb-board { overflow: hidden; }
.bb-board__head, .bb-board__row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, var(--bb-odds-width-board)) 46px;
  align-items: center;
  column-gap: 12px;
  padding: 12px 18px;
}
.bb-board__head { background: var(--bb-board-head); }
.bb-board__row { border-top: 1px solid var(--bb-line); }
.bb-board__title { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.bb-board__col { width: auto; text-align: center; display: flex; flex-direction: column; font-size: 12px; font-weight: 700; }
.bb-board__col small { font-size: 10px; color: var(--bb-muted); letter-spacing: .06em; font-weight: 500; }
.bb-board__teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bb-board__team { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.bb-board__name { min-width: 0; overflow-wrap: anywhere; }
.bb-board__meta { display: flex; gap: 10px; font-size: 12px; color: var(--bb-muted); }
.bb-board__tag { color: var(--bb-teal); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bb-board__cell { display: flex; flex-direction: column; gap: 6px; width: auto; min-width: 0; overflow: hidden; }
.bb-board__more { width: auto; justify-self: end; font-size: 12px; font-weight: 700; color: var(--bb-navy); }
.bb-team { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bb-paper); color: var(--bb-navy); border: 1.5px solid var(--bb-navy); font: 700 9px var(--bb-font-display); flex-shrink: 0; }
.bb-market { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bb-market__head { display: flex; align-items: baseline; gap: 10px; }
.bb-market__code { font-size: 10px; color: var(--bb-muted); letter-spacing: .08em; }
.bb-boost-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--bb-teal); }
.bb-markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }

/* ---------- betslip ---------- */
.bb-slip { display: flex; flex-direction: column; padding: 20px; min-height: 100%; }
.bb-slip__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--bb-line); }
.bb-slip__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--bb-gold); color: var(--bb-ink); font: 700 12px var(--bb-font-display); }
.bb-slip__empty { padding: 28px 6px; display: flex; flex-direction: column; gap: 10px; }
.bb-leg { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bb-line); }
.bb-leg__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bb-leg__pick { font-weight: 700; }
.bb-leg__meta { font-size: 13px; color: var(--bb-muted); }
.bb-leg__price { font: 700 16px var(--bb-font-display); font-variant-numeric: tabular-nums; }
.bb-slip__remove { flex-shrink: 0; width: 28px; height: 28px; border: 0; background: none; color: var(--bb-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.bb-leg.is-changed .bb-leg__price { color: var(--bb-teal); }
.bb-slip__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 4px; }
.bb-slip__tabs .bb-chip { height: 30px; font-size: 12px; padding: 0 10px; }
.bb-slip__note { font-size: 12px; color: var(--bb-muted); padding-top: 8px; line-height: 1.4; }
.bb-slip__options { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.bb-slip__option { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; }
.bb-slip__option input { width: 16px; height: 16px; accent-color: var(--bb-navy); }
.bb-slip__combo { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; font-size: 13px; color: var(--bb-muted); }
.bb-slip__parlay { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-weight: 700; }
.bb-slip__parlay .bb-num { font-size: 18px; color: var(--bb-teal); }
.bb-slip__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 16px; }
.bb-slip__towin { height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--bb-radius-button); background: var(--bb-cream); border: 1px solid var(--bb-line-strong); font: 700 16px var(--bb-font-display); color: var(--bb-teal); }
.bb-slip__quick { display: flex; gap: 8px; padding-top: 10px; }
.bb-slip__quick .bb-chip { flex: 1; justify-content: center; }
.bb-alert { padding: 10px 12px; border-radius: var(--bb-radius-button); font-size: 13px; line-height: 1.45; }
.bb-alert--error { background: var(--bb-error-bg); color: var(--bb-error-text); }
.bb-alert--ok { background: var(--bb-success-bg); border: 1px solid var(--bb-success-line); color: var(--bb-ink); }
.bb-promo { position: relative; overflow: hidden; border-radius: 12px; min-height: 150px; background: var(--bb-la-day-bg); margin-top: 16px; isolation: isolate; }
.bb-promo__body { position: relative; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- forms ---------- */
.bb-field { display: flex; flex-direction: column; gap: 6px; }
.bb-field label { font-size: 13px; font-weight: 600; }
.bb-field input, .bb-field select { height: 46px; border: 1px solid var(--bb-line-strong); border-radius: var(--bb-radius-button); background: var(--bb-paper); padding: 0 14px; font: 400 15px var(--bb-font-body); color: var(--bb-ink); }
.bb-field input:focus { border-color: var(--bb-navy); outline: none; box-shadow: 0 0 0 3px rgba(232, 178, 58, .35); }
.bb-field__hint { font-size: 12px; color: var(--bb-muted); }
.bb-field.is-invalid input { border-color: var(--bb-error-text); }
.bb-field__error { font-size: 12px; color: var(--bb-error-text); }
.bb-check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.bb-check input { width: 18px; height: 18px; accent-color: var(--bb-navy); }
.bb-stepper { display: flex; gap: 12px; }
.bb-step { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--bb-muted); }
.bb-step__dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--bb-line); background: var(--bb-paper); font: 700 14px var(--bb-font-display); }
.bb-step.is-current { color: var(--bb-ink); font-weight: 700; }
.bb-step.is-current .bb-step__dot { background: var(--bb-navy); border-color: var(--bb-navy); color: var(--bb-paper); }
.bb-step.is-done .bb-step__dot { background: var(--bb-teal); border-color: var(--bb-teal); color: var(--bb-paper); }
.bb-step__line { flex: 1; height: 1.5px; background: var(--bb-line); }
.bb-step.is-done .bb-step__line { background: var(--bb-teal); }
.bb-rink-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bb-rink-grid .bb-chip { height: 40px; justify-content: center; }

/* ---------- account (Base Camp) ---------- */
.bb-camp__title { font-size: 52px; }
.bb-camp__lede { max-width: 36em; margin: 8px 0 0; }
.bb-camp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.bb-camp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.bb-balance-card { position: relative; overflow: hidden; border-radius: 16px; min-height: 230px; background: var(--bb-la-day-bg); isolation: isolate; }
.bb-balance-card__body { position: relative; padding: 20px 24px 72px; }
.bb-balance-card__label { font-size: 13px; font-weight: 600; color: var(--bb-navy); }
.bb-balance-card__value { font: 700 48px/1 var(--bb-font-display); font-variant-numeric: tabular-nums; color: var(--bb-navy); }
.bb-balance-card__actions { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 10px; }
.bb-limit { display: flex; flex-direction: column; gap: 8px; }
.bb-limit__row { display: flex; justify-content: space-between; font-size: 14px; }
.bb-limit__track { height: 10px; border-radius: 99px; background: var(--bb-track); overflow: hidden; }
.bb-limit__fill { height: 100%; background: var(--bb-teal); }
.bb-method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--bb-line); background: var(--bb-paper); cursor: pointer; }
.bb-method:has(input:checked) { border: 2px solid var(--bb-navy); }
.bb-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--bb-ink); background: var(--bb-gold); padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }

/* ---------- casino (The Lodge) ---------- */
.bb-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.bb-tile { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 8px; color: var(--bb-ink); font: inherit; }
.bb-tile__art { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--bb-line); transition: transform var(--bb-fast) var(--bb-ease); }
.bb-tile__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-tile:hover .bb-tile__art { transform: translateY(-3px); }
.bb-tile__badge { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--bb-gold); color: var(--bb-ink); padding: 3px 7px; border-radius: 6px; }
.bb-jackpots { display: flex; gap: 12px; }
.bb-jackpot { flex: 1; border-radius: 12px; padding: 12px 16px; background: var(--bb-paper); border: 1px solid var(--bb-line); }
.bb-jackpot .bb-num { font-size: 24px; font-weight: 700; color: var(--bb-navy); }

/* ---------- live (Night Shift) ---------- */
[data-theme="night"] { --bb-cream: var(--bb-night); --bb-paper: var(--bb-night2); --bb-line: var(--bb-night-line); --bb-ink: var(--bb-night-text); --bb-muted: var(--bb-night-muted); --bb-navy: var(--bb-night-text); background: var(--bb-night); color: var(--bb-night-text); }
[data-theme="night"] .bb-odds.is-selected { background: var(--bb-gold); border-color: var(--bb-gold); color: var(--bb-ink); }
[data-theme="night"] .bb-odds.is-selected small { color: #3A2E10; }
[data-theme="night"] .bb-promo { display: none; }
.bb-scoreboard { position: relative; overflow: hidden; border-radius: var(--bb-radius-hero); min-height: 300px; background: var(--bb-la-night-bg); color: var(--bb-night-text); isolation: isolate; }
.bb-scoreboard__score { font: 800 64px/1 var(--bb-font-display); font-variant-numeric: tabular-nums; }
.bb-scoreboard__clock { color: var(--bb-coral-text); font-weight: 700; font-size: 14px; }

/* ---------- RG footer ---------- */
.bb-rg { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--bb-muted); line-height: 1.4; }
.bb-rg a { color: var(--bb-navy); }
.bb-site-footer { border-top: 1px solid var(--bb-line); padding: 20px 32px; }

/* ---------- mobile: tab bar, slip bar, sheet ---------- */
.bb-tabbar, .bb-slipbar { display: none; }
.bb-sheet { position: fixed; inset: auto 0 0 0; max-height: 80vh; overflow: auto; background: var(--bb-paper); border-radius: var(--bb-radius-sheet) var(--bb-radius-sheet) 0 0; box-shadow: 0 -12px 40px rgba(15,32,48,.28); transform: translateY(100%); transition: transform var(--bb-base) var(--bb-ease); z-index: 40; padding: 10px 18px 22px; }
.bb-sheet.is-open { transform: none; }
.bb-sheet__grip { width: 44px; height: 5px; border-radius: 9px; background: var(--bb-line-strong); margin: 0 auto 10px; }
.bb-scrim { position: fixed; inset: 0; background: rgba(15,32,48,.45); z-index: 39; display: none; }
.bb-scrim.is-open { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1439px) { .bb-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .bb-toolbar { flex-wrap: nowrap; }
}
@media (max-width: 1279px) and (min-width: 1100px) {
  .bb-board__col--hide-m, .bb-board__cell--hide-m { display: none; }
  .bb-board__head, .bb-board__row {
    grid-template-columns: minmax(200px, 1fr) var(--bb-odds-width-board) 46px;
  }
}
@media (max-width: 1099px) {
  .bb-odds-toggle { flex-basis: 100%; }
  .bb-shell--book { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
  .bb-rail { display: none; }
  .bb-rail-chips { display: flex !important; }
  .bb-slip-col { display: none; }
  .bb-slipbar { display: flex; }
  .bb-shell--wide, .bb-shell--content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
  }
  .bb-side { display: none; }
  .bb-side-chips { display: flex !important; order: -1; padding: 8px 12px 0; }
  .bb-shell--gate, .bb-shell--gate-register { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "form"; }
  .bb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bb-hero__content { max-width: 72%; }
  .bb-gate-art { min-height: 220px; padding: 28px 24px; }
  .bb-gate-art .bb-poster { font-size: 48px; }
  .bb-nav { display: none; }
  .bb-header__camp span, .bb-header__out { display: none; }
  .bb-main { padding-bottom: calc(var(--bb-bottom-nav) + 28px); }
  .bb-tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; height: calc(var(--bb-bottom-nav) + env(safe-area-inset-bottom)); padding: 6px 0 env(safe-area-inset-bottom); background: var(--bb-paper); border-top: 1px solid var(--bb-line); z-index: 30; }
  .bb-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--bb-muted); text-decoration: none; }
  .bb-tabbar a[aria-current="page"] { color: var(--bb-navy); font-weight: 700; }
}
@media (max-width: 767px) {
  html, body { overflow-x: clip; }
  .bb-header__bar { height: 56px; padding: 0 12px; gap: 8px; }
  .bb-lang select { max-width: 84px; font-size: 12px; padding: 0 6px; }
  .bb-logo { width: 118px; height: 20px; }
  .bb-nav { display: none; }
  .bb-main { padding: 12px 12px calc(var(--bb-bottom-nav) + 28px); }
  .bb-tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; height: calc(var(--bb-bottom-nav) + env(safe-area-inset-bottom)); padding: 6px 0 env(safe-area-inset-bottom); background: var(--bb-paper); border-top: 1px solid var(--bb-line); z-index: 30; }
  .bb-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--bb-muted); text-decoration: none; }
  .bb-tabbar a[aria-current="page"] { color: var(--bb-navy); font-weight: 700; }
  .bb-slipbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bb-bottom-nav) + env(safe-area-inset-bottom) + 10px); height: 48px; border-radius: 14px; background: var(--bb-navy); color: var(--bb-paper); align-items: center; gap: 10px; padding: 0 14px; z-index: 31; border: 0; font: 700 14px var(--bb-font-body); }
  .bb-slipbar[hidden] { display: none; }
  .bb-header__auth { gap: 6px; }
  .bb-header__right .bb-btn { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .bb-balance { height: 34px; padding: 0 4px 0 10px; gap: 6px; }
  .bb-balance__value { font-size: 14px; }
  .bb-header__camp, .bb-header__out { display: none; }
  .bb-hero { min-height: 168px; display: flex; flex-direction: column; }
  .bb-hero--canola, .bb-hero--dusk, .bb-hero--night { min-height: 156px; }
  .bb-hero__content { max-width: 100%; padding: 12px 16px; }
  .bb-hero__title { font-size: 28px; }
  .bb-hero__actions { position: static; margin: 0 16px 14px; width: auto; }
  .bb-hero__actions > .bb-btn { display: none; }
  .bb-hero__aside { position: static; margin: 0 16px 14px; }
  .bb-board__head, .bb-board__row {
    padding: 10px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(88px, var(--bb-odds-width-board)) 40px;
  }
  .bb-board__team { overflow: visible; white-space: normal; }
  .bb-board__cell { width: auto; }
  .bb-odds--board { width: 100%; }
  .bb-board__more { width: auto; }
  .bb-meter { width: 100%; }
  .bb-markets { grid-template-columns: minmax(0, 1fr); }
  .bb-board__col--hide-m, .bb-board__cell--hide-m { display: none; }
  .bb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .bb-jackpots { flex-direction: column; }
  .bb-rink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-slip__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-camp__title { font-size: 32px; }
  .bb-balance-card { min-height: 0; }
  .bb-balance-card__value { font-size: 36px; }
  .bb-balance-card__body { padding: 16px 16px 68px; }
  .bb-balance-card__actions { left: 16px; bottom: 14px; }
  .bb-gate-art { min-height: 148px; padding: 18px 16px; }
  .bb-gate-art .bb-poster { font-size: 32px; margin-top: 8px; }
  .bb-gate-art__lede { display: none; }
  .bb-gate-form { padding: 16px 16px calc(var(--bb-bottom-nav) + 24px); align-items: flex-start; }
  .bb-step span:not(.bb-step__dot):not(.bb-step__line) { display: none; }
  .bb-stepper { gap: 8px; }
  .bb-h1 { font-size: 26px; }
  .bb-card--pad { padding: 16px; }
  .bb-chip { height: 32px; padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
