/* Match — betting UX (betting agent). Bet slip, odds buttons, quick bet, onboarding tour,
   popular shelf, match-centre helpers and the "How betting works" page.
   Colours come from the theme tokens in match.css; gradients fall back to the brand pair. */
:root {
  --bx-grad: var(--accent);
  --bx-warm: var(--accent);
  --bx-radius: 12px;
  --bx-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --bx-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

/* =================================================================== odds buttons */
/* team / outcome name on compact 1-X-2 buttons: hidden on wide rows (column headers say 1 X 2), shown on phones */
.odds .odds-name { display: none; }
@container main (max-width: 700px) {
  .mrow-odds .odds .odds-label.has-name { display: none; }
  .mrow-odds .odds .odds-name { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-2, var(--muted)); text-align: left; margin-right: 6px; }
  .mrow-odds .odds.is-selected .odds-name { color: var(--on-accent); }
}
/* selected: brand gradient fill + check badge */
.odds .odds-check { display: none; }
:root .odds.is-selected, :root .odds.is-selected:hover:not(:disabled),
:root .odds.odds-pill.is-selected, :root .odds.odds-pill.is-selected:hover:not(:disabled),
:root .mc .odds.is-selected:not(.mc-ms-row), :root .mc .odds.is-selected:not(.mc-ms-row):hover:not(:disabled) {
  background: var(--bx-grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--primary) 55%, transparent);
}
:root .odds.is-selected .odds-label, :root .odds.is-selected .odds-prob, :root .odds.is-selected .odds-name,
:root .odds.odds-pill.is-selected .odds-label, :root .mc .odds.is-selected .odds-label { color: var(--on-accent); opacity: .8; }
:root .odds.is-selected .odds-val, :root .odds.odds-pill.is-selected .odds-val, :root .odds-tile.is-selected .odds-val, :root .mc .odds.is-selected .odds-val { color: var(--on-accent); }
.odds.is-selected:not(.mc-ms-row) .odds-check {
  display: block; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1.5px var(--primary), 0 1px 3px rgba(0, 0, 0, .18); pointer-events: none;
}
.odds.is-selected:not(.mc-ms-row) .odds-check::after { content: ""; position: absolute; inset: 3px; background: var(--primary); -webkit-mask: var(--bx-check) center/contain no-repeat; mask: var(--bx-check) center/contain no-repeat; }
.mrow-odds, .fm-odds, .mw-tiles, .mc-quick-sels, .market-sels, .pop-pick { overflow: visible; }
/* milestone rows (match centre): gradient odds pill + filled check */
:root .mc .odds.mc-ms-row.is-selected { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border-color: var(--primary); }
:root .mc .odds.mc-ms-row.is-selected .mc-check, :root .mc .odds.mc-ms-row.is-selected .mc-ms-odds { background: var(--bx-grad); color: var(--on-accent); }
/* suspended: lock + "Suspended"; unpriced: "Opens soon"; decided: "Closed" */
:root .odds.is-suspended .odds-val, :root .odds.is-unpriced .odds-val, :root .odds.is-closed .odds-val { font-size: 0 !important; line-height: 0; display: inline-flex; align-items: center; gap: 4px; }
:root .odds.is-suspended .odds-val::before, :root .odds.is-unpriced .odds-val::before, :root .odds.is-closed .odds-val::before {
  content: "Suspended"; display: inline-block; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .01em; color: var(--muted); margin: 0; vertical-align: 0;
}
:root .odds.is-unpriced .odds-val::before { content: "Opens soon"; font-weight: 500; }
:root .odds.is-closed .odds-val::before { content: "Closed"; }
:root .odds.is-suspended .odds-val::after, :root .odds.is-closed .odds-val::after {
  content: ""; order: -1; display: inline-block; width: 11px; height: 11px; margin: 0; background: currentColor; color: var(--muted);
  -webkit-mask: var(--bx-lock) center/contain no-repeat; mask: var(--bx-lock) center/contain no-repeat;
}
:root .odds.is-unpriced .odds-val::after { display: none; }
:root .odds.odds-pill.is-suspended .odds-val::before, :root .odds.odds-pill.is-unpriced .odds-val::before, :root .odds.odds-pill.is-closed .odds-val::before,
:root .odds.odds-pill.is-suspended .odds-val::after, :root .odds.odds-pill.is-closed .odds-val::after { color: rgba(255, 255, 255, .72); }
:root .mc .odds.mc-ms-row.is-suspended .mc-ms-odds, :root .mc .odds.mc-ms-row.is-unpriced .mc-ms-odds, :root .mc .odds.mc-ms-row.is-closed .mc-ms-odds { font-size: 0; display: inline-flex; align-items: center; gap: 4px; }
:root .mc .odds.mc-ms-row.is-suspended .mc-ms-odds::before { content: "Suspended"; font-size: 11px; line-height: 16px; font-weight: 600; }
:root .mc .odds.mc-ms-row.is-unpriced .mc-ms-odds::before { content: "Opens soon"; font-size: 11px; line-height: 16px; }
:root .mc .odds.mc-ms-row.is-closed .mc-ms-odds::before { content: "Closed"; font-size: 11px; line-height: 16px; font-weight: 600; }
/* quick bet in flight */
.odds.is-placing { pointer-events: none; }
.odds.is-placing::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 22%, transparent), transparent); background-size: 200% 100%; animation: bx-sweep 900ms linear infinite; }
@keyframes bx-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.odds:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* hover / focus tooltip: "Bet 10 → win 18.50" */
.bet-tip {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; max-width: 260px;
  padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--surface);
  font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(16, 12, 30, .22);
}
.bet-tip[hidden] { display: none; }

/* =================================================================== bet slip */
.slip-help { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; min-height: 36px; padding: 0 6px; font-size: 12px; font-weight: 500; color: var(--primary-text, var(--primary)); text-decoration: none; border-radius: 6px; }
.slip-help:hover { background: var(--hover); }
.slip-head .slip-help + .slip-close { margin-left: 0; }

/* empty state */
.slip-empty { gap: 8px; padding: 18px 8px 8px; }
.slip-empty-art { width: 120px; height: 84px; display: block; }
.slip-empty h3 { font-size: 15px; }
.slip-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.slip-empty-actions .btn { min-height: 40px; }

/* selection cards */
.slip-items { display: grid; gap: 8px; margin: 0 0 14px; }
.bs-item {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 32px; align-items: start; gap: 10px;
  padding: 12px 8px 12px 12px; border-radius: var(--bx-radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 3px 0 0 0 var(--primary);
}
.bs-item.is-blocked { box-shadow: inset 3px 0 0 0 var(--muted); }
.bs-item.is-blocked .bs-item-sel { color: var(--muted); }
.bs-item-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text, var(--primary)); }
.bs-item-ico .icon { width: 17px; height: 17px; }
.bs-item-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bs-item-match { font-size: 12px; line-height: 16px; color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-item-match:hover { color: var(--text); text-decoration: underline; }
.bs-item-sel { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.bs-item-mk { font-size: 12px; line-height: 16px; color: var(--text-2, var(--muted)); }
.bs-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 2px; }
.bs-item-odds { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--bx-grad); color: var(--on-accent); font-size: 15px; font-weight: 700; }
.bs-item-win { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bs-item-win b { font-weight: 600; color: var(--text); }
.bs-item .slip-x { margin: -4px -4px 0 0; width: 32px; height: 32px; }
.bs-item .slip-item-note { grid-column: 1 / -1; }
.bs-item-main .slip-item-note { margin-top: 6px; }

/* stake */
.slip-stake-area { display: grid; gap: 10px; }
.bs-stake-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bs-stake-head label { font-size: 13px; font-weight: 600; color: var(--text); }
.bs-balance { font-size: 12px; color: var(--muted); }
.bs-balance b { color: var(--text); font-weight: 600; }
.bs-balance a { font-weight: 600; }
.bs-stake { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
.bs-step { display: grid; place-items: center; height: 52px; border-radius: 10px; border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text); cursor: pointer; transition: background var(--dur-1, .12s) var(--ease, ease); }
.bs-step:hover:not(:disabled) { background: var(--hover); }
.bs-step:disabled { opacity: .45; cursor: default; }
.bs-step .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.bs-stake-field { position: relative; min-width: 0; }
.bs-stake-field input {
  width: 100%; height: 52px; padding: 0 68px 0 14px; border-radius: 10px; border: 1.5px solid var(--border-strong, var(--border)); background: var(--surface);
  color: var(--text); font: inherit; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center;
}
.bs-stake-field input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring, 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent)); }
.bs-stake-field input[readonly] { background: var(--surface-2); }
.bs-stake-field .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; color: var(--muted); pointer-events: none; }
.bs-chips { margin: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bs-chips .chip { min-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bs-chips .chip:disabled { opacity: .5; }
.slip-limits { margin: -4px 0 0; text-align: left; }
.slip-limits.is-bad { color: var(--danger); font-weight: 500; }
/* "You could win" — warm gradient pill */
.bs-win {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 999px;
  background: var(--bx-warm); color: var(--on-accent); box-shadow: none;
}
.bs-win-k { font-size: 14px; font-weight: 600; }
.bs-win-v { display: inline-flex; align-items: baseline; gap: 4px; font-size: 24px; line-height: 30px; font-weight: 700; }
.bs-win-v small { font-size: 12px; font-weight: 600; }
.bs-win.is-zero { background: var(--surface-2); color: var(--muted); box-shadow: none; border: 1px dashed var(--border-strong, var(--border)); }
.bs-profit { margin: -4px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.bs-profit b { color: var(--text-2, var(--text)); font-weight: 600; }

/* switch (quick bet) */
.bs-quick { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); cursor: pointer; position: relative; }
.bs-quick input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; left: 10px; cursor: pointer; }
.bs-switch { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--border-strong, #c9c6d6); transition: background var(--dur-2, .16s) var(--ease, ease); }
.bs-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform var(--dur-2, .16s) var(--ease-out, ease-out); }
.bs-quick input:checked + .bs-switch { background: var(--bx-grad); }
.bs-quick input:checked + .bs-switch::after { transform: translateX(16px); }
.bs-quick input:focus-visible + .bs-switch { outline: 2px solid var(--primary); outline-offset: 2px; }
.bs-quick-text { font-size: 12px; line-height: 17px; color: var(--text-2, var(--muted)); }
.bs-quick-text strong { color: var(--text); }
.bs-quick-lg { margin-top: 4px; }
.bs-quick-lg .bs-quick-text { font-size: 14px; line-height: 20px; }
.bs-settings .field input[data-default-stake-input] { max-width: 160px; }

/* footer: place button, inline confirmation, price change, errors */
.bs-place { font-size: 16px; min-height: 52px; }
:root .bs-place.btn:not(:disabled) { background: var(--bx-grad); border-color: transparent; color: var(--on-accent); }
.bs-place:not(:disabled):hover { filter: brightness(1.06); }
.bs-confirm { display: grid; gap: 10px; padding: 12px; border-radius: var(--bx-radius); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.bs-confirm.is-price { background: var(--warning-soft, #fff6e0); border-color: color-mix(in srgb, var(--warning, #b7791f) 45%, transparent); }
.bs-confirm-text { margin: 0; font-size: 14px; line-height: 21px; color: var(--text); }
.bs-confirm-text b { font-weight: 700; }
.bs-w { color: var(--accent-text, var(--accent)); }
.bs-confirm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 120px; overflow: auto; }
.bs-confirm-list[hidden] { display: none; }
.bs-confirm-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2, var(--muted)); }
.bs-confirm .btn-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
:root .bs-confirm .btn[data-action="confirm"], :root .bs-confirm .btn[data-action="accept"] { background: var(--bx-grad); border-color: transparent; color: var(--on-accent); }
.price-move s { opacity: .7; }
.bs-error { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--text); }
.bs-error[hidden] { display: none; }
.bs-error-ico { color: var(--danger); padding-top: 1px; }
.bs-error-ico .icon { width: 18px; height: 18px; }
.bs-error p { margin: 0; font-size: 13px; line-height: 19px; font-weight: 500; }
.bs-error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bs-error-actions:empty { display: none; }
.bs-error-actions .btn { min-height: 36px; }

/* success */
.slip-done { gap: 6px; padding: 10px 0 4px; }
.bs-done-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; }
.bs-done-ico svg { width: 64px; height: 64px; }
.bs-done-c { fill: var(--success-soft, #e3f5ee); stroke: var(--success); stroke-width: 2.5; }
.bs-done-k { fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 0; }
.bs-done-ico.is-anim .bs-done-c { animation: bx-pop .38s var(--ease-out, ease-out) both; transform-origin: 50% 50%; transform-box: fill-box; }
.bs-done-ico.is-anim .bs-done-k { animation: bx-draw .42s .18s var(--ease-out, ease-out) both; }
.bs-done-ico.is-partial .bs-done-c { fill: var(--warning-soft, #fff6e0); stroke: var(--warning, #b7791f); }
.bs-done-ico.is-partial .bs-done-k { stroke: var(--warning, #b7791f); }
.bs-done-ico.is-failed .bs-done-c { fill: var(--danger-soft); stroke: var(--danger); }
.bs-done-ico.is-failed .bs-done-k { stroke: var(--danger); d: path("M18 18l16 16M34 18L18 34"); }
@keyframes bx-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bx-draw { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
.slip-done h3 { font-size: 18px; line-height: 26px; }
.slip-done h3:focus { outline: none; }
.slip-done p { font-size: 14px; line-height: 21px; max-width: 32ch; }
.bs-track { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text, var(--primary)); font-weight: 600; font-size: 14px; text-decoration: none; }
.bs-track:hover { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.bs-done-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

/* mobile mini-bar above the bottom nav: "2 selections · win 37.00 · Open slip" */
@media (max-width: 1099px) {
  .slip-pill.bs-bar {
    left: 12px; right: 72px; max-width: none; height: 52px; padding: 0 6px 0 6px; gap: 10px; border-radius: 14px;
    background: var(--bx-grad); justify-content: flex-start; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .55);
  }
  .bs-bar-n { display: grid; place-items: center; flex: none; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-size: 15px; font-weight: 700; }
  .bs-bar-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; text-align: left; line-height: 17px; }
  .bs-bar-txt .truncate { max-width: 100%; font-size: 14px; font-weight: 600; }
  .bs-bar-win { font-size: 12px; font-weight: 600; color: var(--on-accent); font-variant-numeric: tabular-nums; }
  .bs-bar-open { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--on-accent); color: var(--accent); font-size: 13px; font-weight: 700; }
  .bs-bar-open .icon { width: 14px; height: 14px; }
}
@media (min-width: 768px) and (max-width: 1099px) { .slip-pill.bs-bar { right: auto; left: 50%; width: 460px; margin-left: -230px; } }
@media (min-width: 1100px) { .slip-pill.bs-bar { display: none !important; } }
.slip-pill.bs-bar [data-pill-odds] { display: none; }

/* quick-bet explanation dialog */
.bq-dialog-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center; }
@media (min-width: 640px) { .bq-dialog-wrap { place-items: center; } }
.bq-backdrop { position: absolute; inset: 0; background: var(--overlay, rgba(10, 8, 20, .5)); }
.bq-dialog { position: relative; width: min(440px, 100%); padding: 20px 20px calc(18px + var(--safe-b, 0px)); border-radius: 16px 16px 0 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop, 0 12px 40px rgba(0, 0, 0, .25)); }
@media (min-width: 640px) { .bq-dialog { border-radius: 16px; padding-bottom: 20px; } }
.bq-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bx-warm); color: var(--on-accent); margin-bottom: 10px; }
.bq-dialog h2 { font-size: 18px; line-height: 26px; margin: 0 0 6px; }
.bq-dialog p, .bq-dialog li { font-size: 14px; line-height: 21px; color: var(--text-2, var(--text)); }
.bq-dialog p { margin: 0 0 8px; }
.bq-dialog ul { margin: 0 0 14px; padding-left: 18px; }
.bq-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.bq-actions [data-bq="yes"] { background: var(--bx-grad); border-color: transparent; color: var(--on-accent); }
body.bq-open .support-fab { visibility: hidden; }

/* quick-bet toast: actions + live cash-out offer */
.toast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.toast-actions .mc-cashout { display: contents; }
.toast-actions .mc-cashout[hidden] { display: none; }
.toast-actions .mc-cashout-btn > span { white-space: nowrap; }
.toast-actions .mc-cashout-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-color: var(--accent-fill, var(--accent)); color: var(--accent-text, var(--accent)); background: var(--surface); }
.toast-actions .mc-cashout-confirm { flex-basis: 100%; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.toast-actions .mc-cashout-confirm p { margin: 0 0 6px; }
.toast-actions .mc-cashout-msg { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--text-2, var(--muted)); }
.toast-actions .mc-cashout-msg:empty { display: none; }
.toast-actions .mc-cashout-done { margin: 0; font-size: 13px; font-weight: 600; color: var(--success); }
.toast.is-held .toast-life { animation-play-state: paused; opacity: 0; }

/* =================================================================== onboarding tour */
.tour { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.tour-spot { position: absolute; left: 0; top: 0; border-radius: 12px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(12, 8, 28, .55); transition: transform var(--dur-3, .2s) var(--ease-out, ease-out), width var(--dur-3, .2s), height var(--dur-3, .2s); }
.tour.is-centered::before { content: ""; position: absolute; inset: 0; background: rgba(12, 8, 28, .55); }
.tour-pop {
  position: absolute; left: 0; top: 0; width: min(340px, calc(100vw - 24px)); pointer-events: auto;
  padding: 16px; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 18px 48px rgba(10, 6, 30, .35);
  overflow: hidden;
  transition: transform var(--dur-3, .2s) var(--ease-out, ease-out);
}
.tour-pop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--bx-grad); }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tour-step { font-size: 12px; font-weight: 600; color: var(--accent-text, var(--accent)); }
.tour-skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; min-height: 36px; padding: 0 4px; cursor: pointer; text-decoration: underline; }
.tour-title { font-size: 17px; line-height: 24px; margin: 0 0 4px; }
.tour-text { margin: 0 0 10px; font-size: 14px; line-height: 21px; color: var(--text-2, var(--text)); }
.tour-cta:empty { display: none; }
.tour-cta { margin-bottom: 12px; }
.tour-cta .btn-accent { background: var(--bx-warm); border-color: transparent; color: var(--on-accent); }
.tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-dots { display: inline-flex; gap: 5px; margin-right: auto; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong, var(--border)); }
.tour-dots i.on { width: 18px; border-radius: 4px; background: var(--bx-grad); }
.tour-foot .btn { min-height: 40px; }
.tour-next { background: var(--bx-grad) !important; border-color: transparent !important; color: var(--on-accent) !important; }
body.tour-open .support-fab { visibility: hidden; }

/* =================================================================== match centre */
.mc-sticky {
  position: fixed; z-index: 38; left: 0; right: 0; top: var(--mcs-top, var(--header-h, 56px));
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 12px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  transform: translate3d(0, -110%, 0); visibility: hidden; transition: transform var(--dur-2, .16s) var(--ease-out, ease-out), visibility 0s linear var(--dur-2, .16s);
}
.mc-sticky.is-on { transform: none; visibility: visible; transition: transform var(--dur-2, .16s) var(--ease-out, ease-out), visibility 0s; }
@media (min-width: 1100px) { .mc-sticky { left: var(--side-w, 232px); right: var(--slip-w, 340px); } }
@media (min-width: 1100px) and (max-width: 1279px) { .mc-sticky { left: 0; } }
.mcs-score { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; color: var(--text); text-decoration: none; min-height: 40px; }
.mcs-score b { font-size: 16px; font-weight: 700; }
.mcs-dash { color: var(--muted); }
.mcs-abbr { font-size: 13px; font-weight: 600; max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcs-phase { margin-left: 4px; font-size: 12px; color: var(--accent-text, var(--accent)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcs-phase:empty { display: none; }
.mcs-slip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--bx-grad); color: var(--on-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
@media (max-width: 420px) { .mcs-abbr { display: none; } .mcs-phase { max-width: 70px; } }

.mk-tools { display: grid; gap: 10px; margin: 0 0 12px; }
.mk-tools[hidden] { display: none; }
.mk-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chips .chip { flex: none; min-height: 40px; gap: 6px; }
.mk-chips .chip[aria-pressed="true"] { background: var(--bx-grad); border-color: transparent; color: var(--on-accent); }
.mk-chips .chip[hidden] { display: none; }
.mk-n { font-size: 11px; opacity: .75; }
.mk-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--muted); }
.mk-search:focus-within { border-color: var(--primary); box-shadow: var(--ring, 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent)); }
.mk-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.mk-empty { margin: 0; }
.mc-group[hidden], .market[hidden] { display: none !important; }

/* =================================================================== home shelves */
.pop-shelf, .soon-strip { margin: 16px 0; min-width: 0; }
.shelf-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.shelf-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; line-height: 26px; font-weight: 600; margin: 0; }
.shelf-head h2 .icon { width: 18px; height: 18px; color: var(--accent); }
.shelf-sub { font-size: 12px; color: var(--muted); }
.shelf-nav { margin-left: auto; display: none; gap: 6px; }
@media (hover: hover) and (min-width: 768px) { .shelf-nav { display: inline-flex; } }
.shelf-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.shelf-arrow:hover { background: var(--hover); }
.shelf-arrow .is-flip { transform: rotate(180deg); }
.shelf-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.pop-card {
  position: relative; flex: 0 0 min(280px, 78%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: var(--bx-radius); background: var(--surface); border: 1px solid var(--border); min-width: 0;
}
.pop-card::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--bx-grad); }
.pop-card.is-live::before { background: var(--bx-warm); }
.pop-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.pop-sport { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pop-when { white-space: nowrap; font-weight: 600; color: var(--text-2, var(--text)); }
.pop-live { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--accent-text, var(--accent)); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.pop-teams { display: grid; gap: 6px; color: var(--text); text-decoration: none; }
.pop-team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.pop-team b { font-weight: 700; }
.pop-teams:hover .truncate { text-decoration: underline; }
.pop-pick { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); }
.pop-pick-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; color: var(--muted); }
.pop-mk { color: var(--text-2, var(--text)); font-weight: 500; }
.pop-why { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text, var(--accent)); font-weight: 600; }
.pop-pick-txt .tag-replay { align-self: flex-start; }
.pop-pick .odds { min-height: 56px; width: 100%; }
.soon-track { gap: 8px; }
.soon-chip {
  flex: 0 0 auto; scroll-snap-align: start; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px;
  min-width: 200px; max-width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
.soon-chip:hover { border-color: var(--primary); }
.soon-time { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; min-width: 52px; height: 40px; padding: 0 6px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-text, var(--primary)); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.soon-teams { display: grid; font-size: 13px; font-weight: 500; line-height: 18px; min-width: 0; }
.soon-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.soon-priced { color: var(--success); font-weight: 600; }

/* =================================================================== How betting works */
.hb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hb-tour-btn { background: var(--bx-grad); border-color: transparent; color: var(--on-accent); }
.hb-toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 16px; padding: 2px; }
.hb-toc .chip { flex: none; }
.hb-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hb-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: var(--bx-radius); background: var(--surface); border: 1px solid var(--border); }
.hb-steps strong { display: block; font-size: 15px; margin-bottom: 2px; }
.hb-steps span { font-size: 13px; line-height: 19px; color: var(--text-2, var(--muted)); }
.hb-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bx-grad); color: var(--on-accent) !important; font-weight: 700; font-size: 16px !important; }
.hb-odds { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--bx-grad); color: var(--on-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.hb-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); margin-bottom: 16px; }
.hb-card { margin: 0; scroll-margin-top: calc(var(--header-h, 56px) + 12px); }
.hb-card h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 26px; margin-top: 0; }
.hb-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text, var(--primary)); flex: none; }
.hb-ico .icon { width: 18px; height: 18px; }
.hb-pkgs { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.hb-pkgs li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.hb-pkg-arrow { color: var(--muted); }
.hb-pkgs li > * { white-space: nowrap; }
:root .hb-tour-btn.btn { background: var(--bx-grad); border-color: transparent; color: var(--on-accent); }
.hb-calc { display: grid; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 10px 0 12px; }
.hb-calc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; font-size: 14px; border-top: 1px solid var(--border); text-align: center; }
.hb-calc-head { border-top: 0; background: var(--surface-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hb-calc-row .hb-odds { justify-self: center; }
.hb-win { font-weight: 700; color: var(--accent-text, var(--accent)); }
.hb-formula { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.hb-tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text, var(--primary)); font-size: 12px; font-weight: 600; }
.hb-note { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.hb-safe { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.hb-faq-title { font-size: 18px; line-height: 26px; margin: 0 0 8px; }
.hb-faq details { border-top: 1px solid var(--border); }
.hb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur-2, .16s) var(--ease, ease); }
.hb-faq details[open] .hb-chev { transform: rotate(180deg); }
.hb-faq p { margin: 0 0 12px; font-size: 14px; line-height: 21px; color: var(--text-2, var(--text)); max-width: 68ch; }
.hb-more { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* reduced motion setting: keep colour changes only */
html[data-motion="reduced"] .bs-done-ico.is-anim .bs-done-c, html[data-motion="reduced"] .bs-done-ico.is-anim .bs-done-k,
html[data-motion="reduced"] .odds.is-placing::after { animation: none; }
html[data-motion="reduced"] .mc-sticky, html[data-motion="reduced"] .tour-spot, html[data-motion="reduced"] .tour-pop { transition: none; }
@media print { .bet-tip, .tour, .mc-sticky, .bq-dialog-wrap { display: none !important; } }

/* =================================================================== multiples (accumulators) */
/* Singles | Multiple switch: segmented control at the top of the slip */
.bs-mode { order: -2; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.bs-mode[hidden] { display: none; }
.bs-mode-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--dur-1, .12s) var(--ease, ease), color var(--dur-1, .12s) var(--ease, ease); }
.bs-mode-btn:hover { color: var(--text); background: var(--surface-3); }
.bs-mode-btn.is-active { background: var(--accent); color: var(--on-accent); }
.bs-mode-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bs-mode-odds { font-size: 12px; font-weight: 600; opacity: .8; }
.bs-mode-btn.is-active .bs-mode-odds { opacity: 1; }
/* combined odds row + beginner hint */
.bs-multi { display: grid; gap: 8px; margin: -4px 0 14px; padding: 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.bs-multi[hidden] { display: none; }
.bs-multi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bs-multi-k { font-size: 14px; font-weight: 600; color: var(--text); }
.bs-multi-odds { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; }
.bs-multi-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 12px; line-height: 17px; color: var(--text-2); }
.bs-multi-hint .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--accent-text); }
/* legs: number badge replaces the sport icon, per-leg "win" hidden (one return for the whole multiple) */
.slip[data-bet-mode="multiple"] .bs-item-win { display: none !important; }
.slip[data-bet-mode="multiple"] .bs-item.is-leg::before { content: attr(data-leg); position: absolute; left: -9px; top: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; z-index: 1; }
.slip[data-bet-mode="multiple"] .bs-item.is-blocked::before { background: var(--muted); }
.slip[data-bet-mode="multiple"] .slip-items { padding-left: 8px; }
.slip[data-bet-mode="multiple"] .bs-total { display: none !important; }
.bs-leg-k { color: var(--muted); margin-right: 2px; }
.sr.is-leg .bs-leg-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }

/* fold badge (My bets / ticket / slip open tab) */
.acca-badge { flex: none; display: inline-grid; place-items: center; align-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 16px; font-weight: 700; line-height: 1; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.acca-badge small { font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.acca-badge.is-lg { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
.acca-badge.is-lg small { font-size: 10px; }
.acca-badge.is-sm { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; margin-right: 6px; vertical-align: middle; }
/* "2 of 4 legs won" mint progress */
.acca-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.acca-progress .bt-bar.progress { position: relative; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.acca-progress .bt-bar.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); border-radius: 3px; background: var(--accent); transition: width .4s ease; }
.acca-progress-t { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.acca-progress-t b { color: var(--accent-text); font-weight: 700; }
/* expandable legs list */
.acca-details { border-top: 1px solid var(--border); }
.acca-sum { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 0; font-size: 13px; font-weight: 600; color: var(--accent-text); cursor: pointer; list-style: none; }
.acca-sum::-webkit-details-marker { display: none; }
.acca-sum .icon { transition: transform var(--dur-2, .16s) var(--ease, ease); }
.acca-details[open] .acca-sum .icon { transform: rotate(180deg); }
.acca-legs { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 0; }
.acca-leg { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); }
.acca-leg:first-child { border-top: 0; }
.acca-leg-st { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.acca-leg-st .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.acca-leg.is-won .acca-leg-st { background: var(--accent); color: var(--on-accent); }
.acca-leg.is-lost .acca-leg-st { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.acca-leg.is-void .acca-leg-st { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.acca-leg-main { display: grid; gap: 1px; min-width: 0; }
.acca-leg-sel { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.acca-leg.is-lost .acca-leg-sel { color: var(--text-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.acca-leg-match { font-size: 12px; line-height: 17px; color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acca-leg-match:hover { color: var(--accent-text); text-decoration: underline; }
.acca-leg-mk, .acca-leg-why { font-size: 12px; line-height: 17px; color: var(--muted); }
.acca-leg-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--text-2); }
.acca-leg-prog[hidden] { display: none; }
.acca-leg-prog .bt-bar.progress { position: relative; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.acca-leg-prog .bt-bar.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: var(--accent); }
.acca-leg-side { display: grid; justify-items: end; gap: 3px; }
.acca-leg-odds { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--odds-bg, var(--surface-3)); color: var(--odds-text, var(--text)); font-size: 13px; font-weight: 700; }
.acca-leg-tag { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.acca-leg.is-won .acca-leg-tag { color: var(--accent-text); }
.acca-leg.is-lost .acca-leg-tag { color: var(--danger); }
.acca-leg.is-void .acca-leg-tag { color: var(--warning); }
/* My bets row */
.ticket.bt-row.is-multi .bt-match { color: var(--text); }
.ticket.bt-row.is-multi .bt-vs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket.bt-row.is-multi .bt-extra { gap: 8px; }
/* ticket page */
.tk-legs-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tk-legs .acca-leg { padding: 12px 0; }
.tk-pad.acca-progress { padding-top: 4px; padding-bottom: 4px; }
/* slip open tab */
.slip-ticket.is-multi .acca-details { margin-top: 2px; }
.slip-ticket.is-multi .acca-progress { margin-top: 2px; }
.staff-legs { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); }

/* ---------- slip v5: per-pick stakes, odds-change setting, clear change explanations, receipt ---------- */
.slip .bs-same { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); cursor: pointer; position: relative; }
.slip .bs-same[hidden] { display: none; }
.slip .bs-same input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; left: 12px; cursor: pointer; }
.slip .bs-same input:checked + .bs-switch { background: var(--accent); }
.slip .bs-same input:checked + .bs-switch::after { transform: translateX(16px); }
.slip .bs-same input:focus-visible + .bs-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.slip .bs-same-text { font-size: 14px; line-height: 20px; color: var(--text); }
.slip .bs-same-text strong { font-weight: 600; }
.slip .bs-same-text span { color: var(--muted); }
.slip .bs-shared[hidden] { display: none; }
.slip .bs-shared { display: grid; gap: 10px; }
.bs-item-stake { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bs-item-stake[hidden] { display: none; }
.bs-item-stake label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.bs-item-stake-field { position: relative; display: block; width: 128px; }
.bs-item-stake-field input { width: 100%; height: 44px; padding: 0 34px 0 12px; border-radius: 8px; border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bs-item-stake-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bs-item-stake-field input[readonly] { opacity: .75; }
.bs-item-stake-field .unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.slip .bs-item.is-skipped { opacity: .6; }
.slip .slip-limits { text-align: left; line-height: 19px; }
.slip .slip-limits.is-bad { color: var(--danger); }
.slip .bs-fix { display: inline-flex; align-items: center; min-height: 32px; margin-left: 4px; padding: 0 10px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: var(--accent-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.slip .bs-fix:hover { background: var(--accent-soft); }
.slip .bs-error-actions .btn { min-height: 44px; }
/* odds-change setting */
.slip .bs-policy { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.slip .bs-policy label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.slip .bs-policy select { min-height: 44px; padding: 0 34px 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background-color: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; max-width: 100%; }
.slip .bs-policy select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slip[data-state="empty"] .bs-policy, .slip[data-state="done"] .bs-policy { display: none; }
.slip .slip-info .slip-links { display: inline-flex; flex-wrap: wrap; gap: 0 14px; margin-left: auto; }
.slip .slip-info .slip-links .slip-help { margin-left: 0; }
.slip .slip-info .slip-help { min-height: 44px; display: inline-flex; align-items: center; }
/* review + price change */
.slip .bs-confirm-list { max-height: min(240px, 34vh); gap: 0; }
.slip .bs-cf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.slip .bs-cf:first-child { border-top: 0; }
.slip .bs-cf-main { display: grid; gap: 2px; min-width: 0; }
.slip .bs-cf-main strong { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip .bs-cf-sub { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip .bs-cf-figs { display: grid; justify-items: end; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip .bs-cf-odds { white-space: nowrap; align-self: center; }
.slip .bs-cf s, .slip .bs-change-list s { opacity: .7; }
.slip .bs-confirm-sub { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: var(--text-2); }
.slip .bs-confirm-sub.is-moved { color: var(--text); }
.slip .bs-confirm-sub:empty { display: none; }
.slip .bs-change-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slip .bs-change-list:empty { display: none; }
.slip .bs-change-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 20px; color: var(--text); }
.slip .bs-change-list .btn { min-height: 44px; flex: none; }
.slip .bs-rest { min-height: 44px; }
.slip .bs-rest[hidden] { display: none; }
.slip .bs-confirm.is-checking { background: var(--surface-2); border-color: var(--border-strong); }
.slip .bs-checking { display: flex; align-items: flex-start; gap: 10px; }
.slip .bs-checking[hidden], .slip [data-r="checking-actions"][hidden] { display: none; }
.bs-spin { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2.5px solid var(--border-strong); border-top-color: var(--accent); animation: bs-spin .8s linear infinite; }
@keyframes bs-spin { to { transform: rotate(360deg); } }
/* receipt */
.slip .bs-price-note { margin: 4px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--text); font-size: 13px; line-height: 19px; max-width: 40ch; }
.slip .bs-price-note[hidden], .slip .bs-newbal[hidden] { display: none; }
.slip .bs-newbal { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.slip .bs-newbal b { color: var(--accent-text); }
.slip .bs-done-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.slip .bs-done-links .btn { min-height: 44px; margin-top: 0; }
.slip .bs-done-links .btn[hidden] { display: none; }
.slip .sr-sub.is-note { color: var(--text-2); font-style: normal; }
@media (max-width: 1099px) {
  .slip .slip-body { padding-bottom: 16px; }
  .slip .slip-foot { gap: 8px; }
  .slip .bs-policy label { font-size: 13px; }
  .slip .slip-info { font-size: 13px; gap: 4px 10px; }
}
/* slip touch targets: at least 44px without changing the visual layout */
.slip .bs-item .slip-x { width: 44px; height: 44px; margin: -10px -12px -6px -6px; }
.slip .bs-chips .chip { min-height: 44px; }
.slip .bs-mode-btn { min-height: 44px; }
.slip .slip-head .slip-close { width: 44px; height: 44px; }
.slip .bs-balance a { display: inline-block; padding: 14px 4px; margin: -14px -4px; }
.slip .bs-item-match { padding: 13px 0; margin: -13px 0; position: relative; }
.slip .bs-checking.is-stuck .bs-spin { display: none; }
