/* The sportsbook (casino/web/sportspage.py, static/sports.js) in the site's Inlay language (site.css tokens): open
   sections on hairlines, text tabs underlined in gold where you are, flat navy price cells with two cut corners
   (top-left and bottom-right), gold as the one fill (a selected price, the Place button), a 1.5 px gold line only on
   hover or what is chosen, figures in the number face. The slip is a right rail on a wide screen (a hairline apart,
   not a card) and a bar with a sheet on phones and tablets. */

.page-sports main { padding-top: 12px; }
@media (min-width: 720px) { .page-sports main { padding-top: 20px; } }
.sb { --row-cols: minmax(0, 1fr) repeat(3, 50px) 44px; --cell-h: 44px; margin-bottom: 48px; }
@media (min-width: 720px) { .sb { --row-cols: minmax(0, 1fr) repeat(3, 80px) 52px; --cell-h: 46px; } }
@media (min-width: 1200px) {
  .sb { --row-cols: minmax(0, 1fr) repeat(3, 88px) 56px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; align-items: start; }
}
.sb button { font-family: var(--font); }

/* ---------- the head: the title and Matches / My bets as text tabs on one hairline ---------- */
.sb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; box-shadow: inset 0 -1px 0 var(--line); }
.sb-top h1 { padding-bottom: 12px; font-size: 1.6rem; }
/* phones: the tabs are the head; the title stays for screen readers */
@media (max-width: 719px) {
  .sb-top h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sb-views button:first-child { padding-left: 0; }
}
.sb-views, .sb-bet-tabs, .sb-days { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sb-views::-webkit-scrollbar, .sb-days::-webkit-scrollbar, .sb-leagues::-webkit-scrollbar { display: none; }
.sb-views button, .sb-bet-tabs button, .sb-days button { flex: none; padding: 12px 10px 13px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--ink-2); font: 600 15px var(--font); cursor: pointer; white-space: nowrap; transition: color 120ms var(--e-out); }
.sb-views button:hover, .sb-bet-tabs button:hover, .sb-days button:hover { color: var(--ink); }
.sb-views [aria-selected="true"], .sb-bet-tabs [aria-selected="true"], .sb-days [aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold-line); }
:is(.sb-views, .sb-bet-tabs, .sb-days) button:focus-visible { outline: 0; color: var(--ink); border-bottom-color: var(--gold-line); }

/* ---------- a team search and a booking code, the leagues (cut chips), and the days (text tabs, kept under the top bar) ---------- */
.sb-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
@media (min-width: 720px) { .sb-find { grid-template-columns: minmax(0, 320px) auto; justify-content: space-between; margin-top: 18px; } }
.sb-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--r-control); background: var(--well);
  box-shadow: inset 0 0 0 1px var(--field-line); cursor: text; }
.sb-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.sb-search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.sb-search input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--ink); font: 600 15px var(--font); outline: 0; }
.sb-search input::placeholder { color: var(--ink-3); }
.sb-search input::-webkit-search-cancel-button { filter: invert(.7); }
.sb-codebtn { min-height: 42px; padding: 0 14px; white-space: nowrap; }
.sb-leagues { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.sb-filters { position: sticky; top: var(--top); z-index: 6; display: flex; align-items: center; gap: 12px; margin: 4px -16px 0; padding: 0 16px;
  background: var(--shell); box-shadow: inset 0 -1px 0 var(--line); }
@media (min-width: 720px) { .sb-filters { margin: 6px -28px 0; padding: 0 28px; } }
@media (min-width: 1200px) { .sb-filters { margin-right: 0; padding-right: 0; } }
.sb-chip { --k: 6px; --fill: var(--cell); --lnc: var(--fill); position: relative; isolation: isolate; flex: none; display: inline-flex;
  align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; background: var(--lnc); color: var(--ink-2);
  font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
  clip-path: polygon(var(--k) 0, 100% 0, 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, 0 100%, 0 var(--k));
  transition: background-color 120ms var(--e-out), color 120ms var(--e-out), transform 80ms var(--e-out); }
.sb-chip::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--fill); transition: background-color 120ms var(--e-out);
  clip-path: polygon(calc(var(--k) - .88px) 0, 100% 0, 100% calc(100% - calc(var(--k) - .88px)), calc(100% - calc(var(--k) - .88px)) 100%, 0 100%, 0 calc(var(--k) - .88px)); }
.sb-chip:hover { --fill: var(--cell-hi); color: var(--ink); }
.sb-chip:active { transform: scale(.96); }
.sb-chip[aria-pressed="true"] { --lnc: var(--gold-line); color: var(--ink); }
.sb-chip:focus-visible { outline: 0; --lnc: var(--gold-line); }
.sb-chip b { color: var(--ink-3); font: 700 15px/1 var(--display-num); font-variant-numeric: tabular-nums; }
.sb-chip[aria-pressed="true"] b { color: var(--ink-2); }
.sb-days { flex: 1; min-width: 0; }
.sb-days button:first-child { padding-left: 0; }
.sb-tz { flex: none; color: var(--ink-3); font: 600 13px var(--font); text-decoration: none; cursor: help; }

/* ---------- the board: per league a header with the column labels once, then the matches on hairlines ---------- */
.sb-board { min-height: 240px; }
.sb-empty { margin: 28px 0; color: var(--ink-2); font-size: 15px; }
.sb-lg { margin-top: 22px; }
.sb-lg-head, .sb-row { display: grid; grid-template-columns: var(--row-cols); column-gap: 6px; align-items: center; }
.sb-lg-head { padding: 0 0 8px; }
.sb-lg-head h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.sb-lg-head span { color: var(--ink-2); font: 600 14px/1 var(--font); text-align: center; }
.sb-day { padding: 12px 0 6px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.sb-row { min-height: 68px; padding: 8px 0; border-top: 1px solid var(--line); }
.sb-day + .sb-row { border-top: 0; }
/* phones: the time over the names, so the names get the row's whole width (they wrap rather than get cut); wider: a column */
.sb-info { display: grid; gap: 1px; min-width: 0; }
.sb-info time { color: var(--ink-3); font-size: 13px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sb-teams { display: grid; gap: 1px; min-width: 0; }
.sb-teams b { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .sb-info { grid-template-columns: 58px minmax(0, 1fr); align-items: center; }
  .sb-info time { font-size: 14px; }
  .sb-teams b { font-size: 15px; line-height: 1.35; }
}

/* a price: a flat navy cell, cut at two corners; hover lays the gold line round it; chosen, it is the gold fill */
.sb-cell { --k: 8px; --fill: var(--cell); --lnc: var(--fill); position: relative; isolation: isolate; display: flex; align-items: center;
  justify-content: center; gap: 8px; height: var(--cell-h); min-width: 0; padding: 0 6px; border: 0; background: var(--lnc); color: var(--ink);
  font: 700 18px/1 var(--display-num); font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent;
  clip-path: polygon(var(--k) 0, 100% 0, 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, 0 100%, 0 var(--k));
  transition: background-color 120ms var(--e-out), color 120ms var(--e-out), transform 80ms var(--e-out); }
.sb-cell::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--fill); transition: background-color 120ms var(--e-out);
  clip-path: polygon(calc(var(--k) - .88px) 0, 100% 0, 100% calc(100% - calc(var(--k) - .88px)), calc(100% - calc(var(--k) - .88px)) 100%, 0 100%, 0 calc(var(--k) - .88px)); }
.sb-cell:hover { --fill: var(--cell-hi); --lnc: var(--gold-line); }
.sb-cell:active { transform: scale(.95); }
.sb-cell:focus-visible { outline: 0; --lnc: var(--gold-line); }
.sb-cell[aria-pressed="true"] { --fill: var(--gold); --lnc: var(--gold); color: var(--on-gold); }
.sb-cell[aria-pressed="true"]:hover { --fill: var(--gold-hi); --lnc: var(--gold-hi); }
.sb-cell[aria-pressed="true"] .sb-k { color: rgb(36 22 0 / .72); }
.sb-cell:disabled { cursor: default; opacity: .4; transform: none; --fill: var(--cell-dn); --lnc: var(--cell-dn); }
.sb-cell svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* a price that moved since the last look: a small arrow in the free corner for a few seconds */
.sb-mv { position: absolute; top: 5px; right: 6px; width: 0; height: 0; border: 4px solid transparent; animation: sb-fade 6s ease forwards; }
.sb-mv.up { border-bottom: 6px solid var(--win); border-top-width: 0; }
.sb-mv.down { border-top: 6px solid var(--loss); border-bottom-width: 0; }
@keyframes sb-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* "+N": the match's other markets, unfolded under it; a dimmer cut cell than a price, so it reads as a button */
.sb-plus { --k: 6px; --fill: var(--cell-dn); --lnc: var(--fill); position: relative; isolation: isolate; display: grid; place-items: center;
  height: var(--cell-h); min-width: 44px; border: 0; background: var(--lnc); color: var(--ink-2); font: 700 16px/1 var(--display-num); cursor: pointer;
  clip-path: polygon(var(--k) 0, 100% 0, 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, 0 100%, 0 var(--k));
  transition: background-color 120ms var(--e-out), color 120ms var(--e-out); }
.sb-plus::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--fill); transition: background-color 120ms var(--e-out);
  clip-path: polygon(calc(var(--k) - .88px) 0, 100% 0, 100% calc(100% - calc(var(--k) - .88px)), calc(100% - calc(var(--k) - .88px)) 100%, 0 100%, 0 calc(var(--k) - .88px)); }
.sb-plus:hover { --fill: var(--cell); color: var(--ink); }
.sb-plus[aria-expanded="true"] { --fill: var(--cell); --lnc: var(--line-strong); color: var(--ink); }
.sb-plus:focus-visible { outline: 0; --lnc: var(--gold-line); }
.sb-plus.has-pick { --lnc: var(--gold-line); color: var(--gold-hi); }
.sb-extra { grid-column: 1 / -1; display: grid; gap: 12px; padding: 12px 0 4px; min-width: 0; }
@media (min-width: 720px) { .sb-extra { padding-left: 64px; } }
.sb-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sb-tabs::-webkit-scrollbar { display: none; }
.sb-tabs .sb-chip { height: 32px; padding: 0 12px; font-size: 13px; }
.sb-mks { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 720px) { .sb-mks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; } .sb-mk.many { grid-column: 1 / -1; } }
.sb-extra[hidden] { display: none; }
.sb-mk { display: grid; gap: 6px; min-width: 0; }
.sb-mk > span { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.sb-mk > div { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.sb-mk .sb-cell { justify-content: space-between; padding: 0 12px; }
.sb-mk .sb-k { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-mk.many > div { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .sb-mk.many > div { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sb-mk.cs > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 720px) { .sb-mk.cs > div { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sb-mk.cs .sb-k { flex: none; }
.sb-mk.cs .sb-cell:last-child { grid-column: 1 / -1; }
.sb-k { color: var(--ink-2); font: 600 14px/1 var(--font); white-space: nowrap; }

/* ---------- the slip: a rail beside the matches on a wide screen ---------- */
.sb-slip { display: flex; flex-direction: column; min-height: 0; }
.sb-scroll { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 14px 0 16px; }
.sb-slip-head { flex: none; }
.sb-slip-head { display: flex; align-items: center; gap: 12px; min-height: 50px; box-shadow: inset 0 -1px 0 var(--line); }
.sb-slip-head h2 { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 1.15rem; }
.sb-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--cell);
  color: var(--ink); font: 700 16px/1 var(--display-num); font-variant-numeric: tabular-nums;
  --k: 5px; clip-path: polygon(var(--k) 0, 100% 0, 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, 0 100%, 0 var(--k)); }
.sb-link { padding: 4px 0; border: 0; background: none; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; }
.sb-link:hover { color: var(--ink); text-decoration-color: var(--gold-line); }
.sb-close { display: none; }
@media (min-width: 1200px) {
  .sb-slip { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100dvh - var(--top) - 32px); padding: 0 2px 16px 0; overflow: hidden; }
}

/* a booking code to load: a text link under the selections, opening a real input */
.sb-loadwrap { display: grid; gap: 8px; }
.sb-loadwrap .sb-link { justify-self: start; }
.sb-loadwrap .sb-link[hidden] { display: none; }
.sb-legs:not(:empty) ~ .sb-loadwrap { padding-top: 12px; border-top: 1px solid var(--line); }
.sb-load { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sb-load[hidden] { display: none; }
.sb-load input { width: 100%; height: 40px; min-height: 0; padding: 0 12px; border: 0; border-radius: var(--r-control); background: var(--well);
  box-shadow: inset 0 0 0 1px var(--field-line); color: var(--ink); font: 600 15px var(--font); letter-spacing: .06em; text-transform: uppercase; }
.sb-load input::placeholder { color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.sb-load input:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.sb-load .btn { min-height: 40px; }
.sb-note { display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.sb-note b { color: var(--ink); }
.sb-note p { margin: 0; }
.sb-note ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sb-note li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 13px; }
.sb-note li::before { content: ""; width: 10px; height: 1.5px; background: var(--ink-3); transform: translateY(-4px); }
.sb-note li span { color: var(--ink-3); }

/* the selections */
.sb-legs { display: grid; margin: 0; padding: 0; list-style: none; }
.sb-legs:empty { display: none; }
.sb-leg { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 3px 10px; align-items: start; padding: 10px 0;
  border-top: 1px solid var(--line); animation: sb-in 180ms var(--e-out); }
.sb-leg:first-child { border-top: 0; padding-top: 2px; }
@keyframes sb-in { from { opacity: 0; transform: translateY(-4px); } }
.sb-leg-pick { overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sb-leg-pick i { margin-right: 6px; color: var(--ink-2); font-style: normal; font-weight: 600; }
.sb-leg-price { justify-self: end; font: 700 19px/1.1 var(--display-num); font-variant-numeric: tabular-nums; }
.sb-leg-match { grid-column: 1 / 3; overflow: hidden; color: var(--ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sb-x { grid-column: 3; grid-row: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -3px; border: 0;
  background: none; color: var(--ink-3); cursor: pointer; transition: color 120ms var(--e-out); }
.sb-x:hover { color: var(--ink); }
.sb-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* a price that moved before the bet went in: old struck through, then the new one */
.sb-chg { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.sb-chg s { color: var(--ink-3); font: 700 15px/1 var(--display-num); }
.sb-chg b { font: 700 15px/1 var(--display-num); }
.sb-chg b.up { color: var(--win); }
.sb-chg b.down { color: var(--ink); }
.sb-leg.is-gone .sb-leg-pick, .sb-leg.is-gone .sb-leg-price { color: var(--ink-3); }
.sb-leg.is-gone .sb-leg-price { text-decoration: line-through; }
.sb-gone { grid-column: 1 / 3; color: var(--ink-3); font-size: 13px; }
.sb-gone b { color: var(--ink-2); font-weight: 600; }
.sb-hint { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
/* more selections under the fold: a plain text button over the stake's hairline */
.sb-more { position: relative; z-index: 2; flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; height: 28px; margin: -34px 0 6px;
  padding: 0 12px; border: 0; border-radius: 14px; background: var(--cell-hi); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.sb-more[hidden] { display: none; }
.sb-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the stake and what it pays */
.sb-stake { flex: none; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.sb-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.sb-kind { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.sb-kind b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-amount { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--r-control);
  background: var(--well); box-shadow: inset 0 0 0 1px var(--field-line); cursor: text; }
.sb-amount:focus-within { box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.sb-amount input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink);
  font: 700 22px/1 var(--display-num); font-variant-numeric: tabular-nums; outline: 0; }
.sb-amount input::placeholder { color: var(--ink-3); font: 600 15px var(--font); }
.sb-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sb-quick .sb-chip { justify-content: center; height: 34px; padding: 0 4px; font: 700 16px/1 var(--display-num); }
/* the odds and the potential win on one line: the win is the one large figure */
.sb-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 0; }
.sb-sum p { margin: 0; }
.sb-odds { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.sb-odds b { margin-left: 4px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-win { display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.sb-win b { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); font: 700 26px/1 var(--display-num); font-variant-numeric: tabular-nums; }
.sb-win b .coin { align-self: center; }
.sb-win b small { color: var(--ink-3); font: 600 13px var(--font); }
@media (max-width: 380px) { .sb-win > span { display: none; } }
.sb-cap { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.sb-cap b { color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-cap.over, .sb-cap.over b { color: var(--loss); }
.sb-switch { display: flex; align-items: center; gap: 8px; justify-self: start; color: var(--ink-3); font-size: 13px; font-weight: 600; cursor: pointer; }
.sb-switch input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 36px; height: 20px; min-height: 0; padding: 0;
  margin: 0; border: 0; border-radius: 10px; box-shadow: none; transform: scale(.85); transform-origin: left center; margin-right: -5px;
  background: var(--cell-hi); cursor: pointer; transition: background-color 160ms var(--e-out); }
.sb-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-2); transition: transform 160ms var(--e-out), background-color 160ms var(--e-out); }
.sb-switch input:checked { background: var(--back); }
.sb-switch input:checked::after { transform: translateX(16px); background: var(--shell); }
.sb-switch input:focus-visible { outline: 1.5px solid var(--gold-line); outline-offset: 2px; }
.sb-msg { margin: 0; color: var(--loss); font-size: 14px; font-weight: 600; }
.sb-msg.info { color: var(--ink-2); font-weight: 500; }
.sb-msg:empty { display: none; }
.sb-msg a, .sb-msg button { color: var(--ink); }
.sb-place { width: 100%; min-height: 52px; padding: 0 12px; font-size: 15px; }
.sb-getcode { width: 100%; min-height: 52px; padding: 0 12px; }

/* a booking code, made: the code in the number face, Copy and WhatsApp */
.sb-code { display: grid; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--line); animation: sb-in 180ms var(--e-out); }
.sb-code-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sb-code-row span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.sb-code-row b { font: 800 30px/1 var(--display-num); letter-spacing: .08em; }
.sb-code-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.sb-code-acts.three { grid-template-columns: 1fr 1.3fr 1fr; }
.sb-code-acts .btn { width: 100%; }
.sb-code-acts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-code p { margin: 0; color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }

/* placed */
.sb-done { display: grid; gap: 10px; padding: 16px 0 4px; }
.sb-done h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.sb-done h3 svg { width: 22px; height: 22px; fill: none; stroke: var(--win); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sb-done p { margin: 0; color: var(--ink-2); font-size: 14px; }
.sb-done p b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sb-done div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* ---------- phones and tablets: a bar at the bottom that opens the slip as a sheet ---------- */
.sb-bar, .sb-scrim { display: none; }
@media (max-width: 1199px) {
  .sb-slip { position: fixed; z-index: 41; left: max(0px, calc(50% - 280px)); right: max(0px, calc(50% - 280px)); bottom: 0;
    max-height: min(90dvh, 780px); overflow: hidden; padding: 4px 16px calc(14px + env(safe-area-inset-bottom));
    background: var(--panel); border-radius: 16px 16px 0 0; transform: translateY(105%); visibility: hidden;
    transition: transform 240ms var(--e-out), visibility 0s 240ms; }
  .sb.open .sb-slip { transform: none; visibility: visible; transition: transform 240ms var(--e-out); }
  .sb-scroll { flex: 1 1 auto; overscroll-behavior: contain; }
  .has-slip .sb-scroll { min-height: min(35dvh, 300px); }
  /* the quick amounts come while there is no stake yet or it is being typed, so the selections keep the room */
  .sb-stake:not(.quick-on) .sb-quick { display: none; }
  .sb-stake { gap: 8px; }
  .sb-close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
  .sb-close:hover { color: var(--ink); }
  .sb-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sb-load input { background: var(--stage); }
  .sb-amount { background: var(--stage); }
  .sb-scrim { position: fixed; inset: 0; z-index: 40; display: block; background: var(--shade); opacity: 0; transition: opacity 200ms ease; }
  .sb.open .sb-scrim { opacity: 1; }
  .sb-scrim[hidden] { display: none; }
  /* the bar: a plain navy cell (gold only on the count and the odds), so it reads as the slip, not a second Deposit */
  .sb-bar { --k: 10px; position: fixed; z-index: 21; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: stretch; gap: 6px; height: 56px; animation: sb-up 200ms var(--e-out); }
  .sb-bar[hidden] { display: none; }
  .sb-bar-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 0; background: var(--cell-hi);
    color: var(--ink); font: 600 15px var(--font); text-align: left; cursor: pointer;
    clip-path: polygon(var(--k) 0, 100% 0, 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, 0 100%, 0 var(--k)); }
  .sb-bar-n { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; background: var(--gold); color: var(--on-gold);
    font: 800 18px/1 var(--display-num); --k: 5px; clip-path: polygon(var(--k) 0, 100% 0, 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, 0 100%, 0 var(--k)); }
  .sb-bar-t { display: grid; gap: 1px; min-width: 0; margin-right: auto; line-height: 1.2; }
  .sb-bar-t small { overflow: hidden; color: var(--ink-2); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .sb-bar-t small:empty { display: none; }
  .sb-bar-odds { flex: none; color: var(--gold-hi); font: 700 20px/1 var(--display-num); font-variant-numeric: tabular-nums; }
  .sb-bar-place { flex: none; min-height: 0; height: 100%; padding: 0 18px; }
  .sb-bar-place[hidden] { display: none; }
  .page-sports.has-slip main { padding-bottom: 76px; }
  body.sb-locked { overflow: hidden; }
}
@keyframes sb-up { from { transform: translateY(16px); opacity: 0; } }
/* phones: the site's own bar (Sign in / Deposit) stays at the bottom; the slip's bar sits on it */
@media (max-width: 719px) {
  .sb-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sb-slip { z-index: 41; }
  .page-sports.has-slip main { padding-bottom: 72px; }
}

/* ---------- my bets: a row per bet on hairlines, unfolding into its selections ---------- */
.sb-bet-tabs { margin: 14px 0 4px; box-shadow: inset 0 -1px 0 var(--line); }
.sb-bet-tabs button:first-child { padding-left: 0; }
.sb-bet-list { display: grid; }
.sb-bets { margin: 0; padding: 0; list-style: none; }
.sb-bet { border-bottom: 1px solid var(--line); }
.sb-bet-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; width: 100%; padding: 14px 0; border: 0;
  background: none; color: var(--ink); text-align: left; cursor: pointer; }
.sb-bets-head { display: none; }
@media (min-width: 720px) {
  .sb-bet-head, .sb-bets-head { grid-template-columns: minmax(0, 1fr) 76px 96px 120px 104px; align-items: center; column-gap: 16px; }
  /* the column labels once above the list, as the board does with 1 X 2 */
  .sb-bets-head { display: grid; padding: 12px 0 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: right; }
  .sb-fig small { display: none; }
}
.sb-bet-head:focus-visible { outline: 1.5px solid var(--gold-line); outline-offset: 2px; }
.sb-bet-what { display: grid; gap: 2px; min-width: 0; }
.sb-bet-what b { font-size: 15px; font-weight: 700; }
.sb-bet-what small { color: var(--ink-3); font-size: 13px; }
.sb-fig { display: grid; gap: 2px; text-align: right; }
.sb-fig small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.sb-fig b { font: 700 18px/1.1 var(--display-num); font-variant-numeric: tabular-nums; }
.sb-fig.up b { color: var(--win); }
.sb-fig.down b { color: var(--ink-2); }
.sb-figs { grid-column: 1 / -1; display: flex; gap: 22px; }
.sb-figs .sb-fig { text-align: left; }
@media (min-width: 720px) { .sb-figs { display: contents; } .sb-figs .sb-fig { text-align: right; } }
/* a bet's state: a dot and a word */
.sb-state { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.sb-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.sb-state.won { color: var(--ink); } .sb-state.won i { background: var(--win); }
.sb-state.lost i { background: var(--loss); }
.sb-state.open { color: var(--ink); } .sb-state.open i { background: var(--back); }
.sb-state.void i, .sb-state.back i { background: none; box-shadow: inset 0 0 0 1.5px var(--back); }
.sb-chev { width: 18px; height: 18px; margin-left: 2px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 160ms var(--e-out); }
.sb-bet-head[aria-expanded="true"] .sb-chev { transform: rotate(180deg); }
.sb-bet-head:hover .sb-chev { stroke: var(--ink); }
@media (max-width: 719px) { .sb-bet-head > .sb-state { grid-column: 2; grid-row: 1; align-self: start; } }
.sb-bet-body { padding: 0 0 16px; }
.sb-bet-legs { display: grid; margin: 0; padding: 0; list-style: none; }
.sb-bet-legs li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 0;
  border-top: 1px solid var(--line); }
.sb-bet-legs small { grid-column: 2 / 4; color: var(--ink-3); font-size: 13px; }
.sb-bet-legs li:first-child { border-top: 0; }
.sb-res { grid-row: 1 / 4; align-self: start; margin-top: 1px; width: 18px; height: 18px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--ink-3); }
.sb-res.won { stroke: var(--win); } .sb-res.lost { stroke: var(--loss); } .sb-res.void { stroke: var(--back); }
.sb-bet-legs b { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sb-bet-legs b i { margin-right: 6px; color: var(--ink-2); font-style: normal; }
.sb-bet-legs em { justify-self: end; font: 700 17px/1 var(--display-num); font-style: normal; font-variant-numeric: tabular-nums; }
.sb-bet-legs span { overflow: hidden; color: var(--ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sb-bet-legs strong { justify-self: end; color: var(--ink); font: 700 15px/1 var(--display-num); font-variant-numeric: tabular-nums; }
.sb-bet-legs strong.dim { color: var(--ink-3); font: 600 13px var(--font); }
.sb-bet-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sb-bet-acts .sb-code { flex-basis: 100%; }
.sb-bet .sb-msg { flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) {
  .sb-slip, .sb.open .sb-slip, .sb-scrim { transition: none; }
  .sb-leg, .sb-bar { animation: none; }
  .sb-chev { transition: none; }
  .sb-mv { animation: none; opacity: 1; }
}
