/* RickBot NFL board. Sloan design-kit tokens (sloan-tokens.css) with a sportsbook layout. */
:root {
  --rb-head: #001029; --rb-head-fg: #ffffff; --rb-head-muted: #b6c4da;
  --rb-odds-bg: #eef3fb; --rb-odds-bd: #e1e9f6; --rb-odds-fg: #1d4ed8; --rb-sel: #2563eb; --rb-sel-fg: #ffffff;
  --rb-chosen: #eff6ff; --rb-disabled: #94a3b8; --rb-backdrop: rgba(0, 10, 28, .5);
}
:root[data-theme="dark"] {
  --rb-head: #000a1c; --rb-odds-bg: #03183d; --rb-odds-bd: #0a2a5c; --rb-odds-fg: #6cc0ff; --rb-sel: #22a2ff; --rb-sel-fg: #001029;
  --rb-chosen: #002155; --rb-disabled: #33435f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dc-page); color: var(--dc-fg); font-family: var(--dc-font); font-size: var(--dc-text); line-height: 1.4; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--dc-accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--dc-muted); }
.fine { font-size: var(--dc-small); color: var(--dc-muted); line-height: 1.5; }
.center { text-align: center; }
.error { color: var(--dc-neg); font-size: 13px; }
.warn { color: var(--dc-warn); }
.pos { color: var(--dc-pos); }
.card { background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: var(--dc-radius-lg); }
.link { border: 0; background: none; padding: 6px 2px; color: var(--dc-accent); font-weight: 600; font-size: 12px; }
.primary, .secondary { display: block; width: 100%; height: 50px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.primary { border: 0; background: var(--dc-accent); color: #fff; margin-top: 14px; }
.primary:disabled { background: var(--rb-disabled); }
.secondary { border: 1px solid var(--dc-line-strong); background: transparent; height: 44px; font-size: 14px; font-weight: 600; margin-top: 8px; }
input { width: 100%; height: 46px; border: 1px solid var(--dc-line-strong); border-radius: 8px; padding: 0 12px; background: var(--dc-surface); font-size: 16px; }

/* header */
/* PMBot-style bar (user 2026-10-28): light surface, icon tabs, cash per book with the combined total first; sticky */
.top { position: sticky; top: 0; z-index: 40; background: var(--dc-surface); color: var(--dc-fg); border-bottom: 1px solid var(--dc-line); }
.top-inner { max-width: 1280px; margin: 0 auto; height: 56px; padding: 0 24px; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-icon { width: 28px; height: 28px; border-radius: 8px; background: #2563eb; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.dry { font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: #fbbf24; color: #3a2a08; white-space: nowrap; }
.tabs { display: flex; gap: 2px; margin-left: 14px; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; color: var(--dc-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.tabs a:hover { color: var(--dc-fg); }
.tabs a[aria-current="page"] { background: var(--dc-subtle); color: var(--dc-fg); }
.tabs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.balances { margin-left: auto; display: flex; align-items: center; gap: 16px; min-width: 0; }
.bal { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bal.total { gap: 8px; padding-right: 16px; border-right: 1px solid var(--dc-line); }
.bal.total .bal-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-muted); }
.bal.total strong { font-size: 15px; font-weight: 700; }
.bal.off strong, .bal.err strong { color: var(--dc-muted); font-weight: 500; }
.bal.err strong { color: var(--dc-warn); }
.vchip { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.vchip.k { background: #1fc28b; color: #fff; }
.vchip.pm { background: #2e5cff; color: #fff; }
.vchip.us { border: 1.5px solid #2e5cff; color: #2e5cff; }
.vchip.nv { border: 1.5px solid #7c3aed; color: #7c3aed; }
:root[data-theme="dark"] .vchip.us { border-color: #6c8dff; color: #6c8dff; }
:root[data-theme="dark"] .vchip.nv { border-color: #a78bfa; color: #a78bfa; }
.theme-icon { width: 36px; height: 36px; margin-left: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--dc-muted); display: inline-flex; align-items: center; justify-content: center; }
.theme-icon:hover { background: var(--dc-subtle); color: var(--dc-fg); }
.theme-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .theme-icon .moon, :root:not([data-theme="dark"]) .theme-icon .sun { display: none; }
/* team logos */
.logo { width: 22px; height: 22px; flex: none; object-fit: contain; }
.logo.none { visibility: hidden; }
.logos { display: inline-flex; align-items: center; flex: none; }
.logos .logo + .logo { margin-left: -6px; }
:root[data-theme="dark"] .logo { background: #e8eef7; border-radius: 6px; padding: 2px; }

/* board */
.board-top { max-width: 1440px; margin: 0 auto; padding: 16px 24px 0; }
.board-top .toolbar { margin-bottom: 4px; }
.layout { max-width: 1440px; margin: 0 auto; padding: 10px 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.layout.three { grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 16px; }
.glist[hidden] { display: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.periods { display: flex; gap: 8px; }
.periods button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--dc-line-strong); background: var(--dc-surface); font-size: 13px; font-weight: 600; }
.periods button[aria-pressed="true"], .sizes button[aria-pressed="true"] { background: var(--dc-accent); border-color: var(--dc-accent); color: #fff; }
/* market tabs (user 2026-10-28): the board shows one market at a time */
.btabs, .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--dc-subtle); }
.btabs button, .seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--dc-muted); white-space: nowrap; }
.btabs button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--dc-surface); color: var(--dc-fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btabs button[aria-selected="true"] { background: var(--dc-accent); color: #fff; }
.grid.one { grid-template-columns: minmax(0, 1fr) 112px 112px 128px; }
.cell.ref-cell.pinnacle .cell-odds, .pin-h { color: var(--dc-purple); }
.cell.ref-cell { background: var(--dc-surface); border-color: var(--dc-line); cursor: default; }   /* Sports411: for reference, not a button */
.cell.ref-cell .cell-odds { color: var(--dc-fg); font-weight: 600; }
.site-label { padding: 5px 12px; background: #7c3aed; color: #fff; font-size: 12px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.toolbar-break { flex-basis: 100%; height: 0; }   /* Price for on top, then period and market (user 2026-10-28) */
.sizes { display: flex; align-items: center; gap: 2px; margin-left: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 999px; background: var(--dc-surface); border: 1px solid var(--dc-line); }
.sizes::-webkit-scrollbar { display: none; }
.sizes > span:first-child { flex: none; white-space: nowrap; font-size: 11px; color: var(--dc-muted); padding: 0 6px 0 8px; }
#size-buttons { display: flex; gap: 2px; }
.sizes button { flex: none; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; font-weight: 600; }
.status { flex-basis: 100%; font-size: 11px; color: var(--dc-muted); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 108px); gap: 6px; align-items: center; }
.day { margin-bottom: 18px; }
.day-head { padding: 0 13px 6px; align-items: end; }
.day-head h2 { font-size: 13px; font-weight: 700; }
.day-short { display: none; }
.day-head span { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-muted); text-align: center; }
.games { overflow: hidden; }
.game { padding: 12px 12px 8px; }
.game + .game { border-top: 1px solid var(--dc-line); }
.team { margin-bottom: 6px; }
.team-name { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.team-name .full, .team-name .nick { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-name .nick { display: none; }
.team-name .code { font-size: 11px; color: var(--dc-muted); }
.cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px 14px; align-content: center; align-items: baseline; column-gap: 4px;
        height: 50px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--rb-odds-bd); background: var(--rb-odds-bg);
        white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-line { justify-self: start; font-size: 12px; font-weight: 600; line-height: 20px; }
.cell-odds { justify-self: end; font-size: 15px; font-weight: 700; line-height: 20px; color: var(--rb-odds-fg); }
.cell-pin { justify-self: start; font-size: 10.5px; font-weight: 600; line-height: 14px; color: var(--dc-purple); }
.cell-max { justify-self: end; font-size: 10.5px; line-height: 14px; color: var(--dc-muted); }
.cell-line:empty { display: none; }
.cell-line:empty + .cell-odds { grid-column: 1 / -1; justify-self: center; }   /* moneyline: no line, odds centred */
.cell.short .cell-odds { color: var(--dc-muted); font-weight: 600; }
.cell-odds.long { font-size: 13px; }
.cell[aria-pressed="true"] { background: var(--rb-sel); border-color: var(--rb-sel); color: var(--rb-sel-fg); }
.cell[aria-pressed="true"] .cell-odds, .cell[aria-pressed="true"] .cell-max, .cell[aria-pressed="true"] .cell-pin { color: var(--rb-sel-fg); }
.cell:disabled { color: var(--rb-disabled); }
.cell:disabled .cell-odds { color: var(--rb-disabled); }
.game-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--dc-muted); }
.game-time { display: inline-block; font-size: 11px; font-weight: 600; color: var(--dc-muted); margin: 0 0 8px; text-decoration: none; }
a.team-name { color: inherit; text-decoration: none; }
a.team-name:hover .full, a.team-name:hover .nick, a.game-time:hover { text-decoration: underline; }
.game-foot a.link { font-size: 12px; font-weight: 600; text-decoration: none; }
/* game view: every line for one game, both periods (user 2026-10-28) */
.back { display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.gv-head { padding: 16px 18px; margin-bottom: 16px; }
.gv-teams { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.gv-team { display: inline-flex; align-items: center; gap: 10px; }
.gv-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.gv-at { font-size: 16px; color: var(--dc-muted); }
.logo.big { width: 40px; height: 40px; }
.gv-when { margin-top: 8px; font-size: 13px; color: var(--dc-muted); }
/* Pinnacle and Sports411 main lines: two thin rows under the teams, aligned under Spread | Money | Total (text inset like the cells) */
.refrows { margin: 2px 0 2px; padding-top: 6px; border-top: 1px dashed var(--dc-line); }
.refrow { margin-bottom: 4px; }
.refname { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-muted); }
.refrow.pinnacle .refname, .refrow.pinnacle .refp { color: var(--dc-purple); }
.refc { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 4px; padding: 0 9px; font-size: 11px; line-height: 15px;
        font-variant-numeric: tabular-nums; white-space: nowrap; }
.refl { justify-self: start; color: var(--dc-muted); font-weight: 600; }
.refp { justify-self: end; font-weight: 700; color: var(--dc-fg); }
.refc.ml .refl { display: none; }
.refc.ml .refp { grid-column: 1 / -1; justify-self: center; }
.team-name { align-items: center; }
.team-name .code { align-self: baseline; margin-top: 3px; }
.alts { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--dc-line); }
.alts > .fine { margin-bottom: 8px; }
.alt { grid-template-columns: minmax(0, 1fr) 108px 108px 108px; margin-bottom: 6px; }
.alt-label { font-size: 12px; color: var(--dc-muted); }
.alt.strong .alt-label { color: var(--dc-fg); font-weight: 600; }
.footnote { margin-top: 4px; font-size: 11px; color: var(--dc-muted); line-height: 1.5; }
.empty { padding: 32px 16px; text-align: center; color: var(--dc-muted); }

/* bet slip */
.slip { position: sticky; top: 72px; background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: 12px; max-height: calc(100vh - 88px); overflow-y: auto; }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.slip-head h2 { font-size: 16px; font-weight: 700; }
.grabber { display: none; }
.icon { width: 44px; height: 44px; margin: -10px -10px -10px auto; border: 0; background: transparent; color: var(--dc-muted); font-size: 24px; line-height: 1; }
.slip-body { padding: 12px 16px 16px; }
.slip-actions { position: sticky; bottom: 0; z-index: 2; margin: 14px -16px -16px; padding: 0 16px 12px; background: var(--dc-surface); border-top: 1px solid var(--dc-line); }
.slip-actions .primary { margin-top: 12px; }
.slip-actions .fine { margin-top: 6px; }
.empty-slip { padding: 24px 4px; text-align: center; color: var(--dc-muted); font-size: 13px; line-height: 1.5; }
.sel { margin-bottom: 14px; }
.sel-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sel-row { display: flex; align-items: center; gap: 10px; }
.sel-row .logo { width: 30px; height: 30px; }
.sel-sub { font-size: 12px; color: var(--dc-muted); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--dc-subtle); }
.chip.warn { background: var(--dc-warn-soft); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px; margin-bottom: 14px; border-radius: 10px; background: var(--dc-subtle); }
.stepper button { width: 44px; height: 40px; border: 0; border-radius: 7px; background: var(--dc-surface); font-size: 20px; }
.stepper button:disabled { color: var(--rb-disabled); }
.stepper-mid { text-align: center; }
.stepper-mid strong { display: block; font-size: 15px; }
.stepper-mid span { font-size: 11px; color: var(--dc-muted); }
.label { display: block; font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.money { display: flex; align-items: center; height: 46px; border: 1px solid var(--dc-line-strong); border-radius: 8px; padding: 0 12px; background: var(--dc-surface); }
.money span { color: var(--dc-muted); margin-right: 6px; font-size: 16px; }
.money input { border: 0; height: 44px; padding: 0; font-size: 17px; font-weight: 600; background: transparent; }
.money input:focus { outline: none; }
.money:focus-within { outline: 2px solid var(--dc-accent); outline-offset: 1px; }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 5px; margin: 8px 0 14px; }
.amounts .chip-btn { padding: 0 4px; }
.chip-btn { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--dc-line-strong); background: var(--dc-surface); font-size: 12px; font-weight: 600; }
.chip-btn[aria-pressed="true"] { border-color: var(--dc-accent); color: var(--dc-accent); background: var(--rb-chosen); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 10px; background: var(--dc-subtle); }
.segmented button { height: 38px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; font-weight: 600; }
.segmented.single { grid-template-columns: 1fr; }
.segmented button[aria-pressed="true"] { background: var(--dc-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.odds-input { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.result { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--dc-line); background: var(--rb-chosen); }
.result-top, .result-mid { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.result-top span { font-size: 12px; color: var(--dc-muted); }
.big { font-size: 22px; color: var(--rb-odds-fg); }
.result-mid { margin-top: 4px; font-size: 13px; font-weight: 600; }
.result-pin { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--dc-purple); }
.pin-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 12px; padding: 10px 12px; border-radius: 10px;
           background: var(--dc-purple-soft); border-left: 4px solid var(--dc-purple); }
.pin-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pin-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-purple); }
.pin-sel { font-size: 14px; font-weight: 600; }
.pin-sub { font-size: 11px; color: var(--dc-muted); }
.kv.pin-row strong, .kv.pin-row span { color: var(--dc-purple); }
.pin-odds { font-size: 24px; font-weight: 800; color: var(--dc-purple); white-space: nowrap; }
.pin-odds.none { font-size: 14px; font-weight: 700; }
.books-box { margin: 10px 0 12px; }
.books-box .pin-box { margin: 0; border-radius: 10px 10px 0 0; }
.ref-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--dc-line); border-top: 0;
           border-radius: 0 0 10px 10px; background: var(--dc-surface); }
.ref-box .pin-label { color: var(--dc-muted); }
.ref-box .pin-odds { font-size: 18px; color: var(--dc-fg); }
.result .fine { margin-top: 6px; }
.result-stop { margin-top: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--dc-line); border-left: 3px solid var(--dc-warn); background: var(--dc-surface); }
.result-stop-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.result-stop p { font-size: 12px; color: var(--dc-muted); line-height: 1.5; margin-top: 4px; }
.big-sm { font-size: 17px; color: var(--rb-odds-fg); }
.note { font-size: 12px; color: var(--dc-muted); line-height: 1.5; margin-top: 8px; }
.review-head { padding: 12px; border-radius: 10px; background: var(--dc-subtle); margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--dc-line-soft); }
.kv span { font-size: 13px; color: var(--dc-muted); }
.kv strong { font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.kv.small { padding: 4px 2px; border: 0; }
.kv.small span, .kv.small strong { font-size: 12px; font-weight: 500; }
.details h3 { font-size: 12px; margin: 10px 0 2px; }
.details .fine { margin-top: 8px; }
.done { text-align: center; padding: 12px 4px 4px; }
.done .check { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; border: 2px solid var(--dc-pos); color: var(--dc-pos); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.done h3 { font-size: 18px; }
.done p { margin-top: 6px; font-size: 13px; }
.backdrop { display: none; }

/* my bets, account */
.page { max-width: 760px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.page-head h1 { font-size: 18px; }
.page > .fine { margin-bottom: 12px; }
/* My bets in PMBot's layout (user 2026-10-28): a card per game, rows grouped by bet type */
#view-bets { max-width: 980px; }
.mets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.met { background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: 10px; padding: 8px 14px; min-width: 120px; }
.met .k { font-size: 12px; color: var(--dc-muted); }
.met .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gc { background: var(--dc-surface); border: 1px solid var(--dc-line-strong); border-radius: 12px; padding: 10px 14px 8px; margin-bottom: 12px; }
.gh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.gh .t { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 700; }
.gh .t .logo { width: 22px; height: 22px; }
.gh .grow { flex: 1; }
.dim { color: var(--dc-muted); }
.gh .small { font-size: 13px; }
.dim b { color: var(--dc-fg); }
.ty { font-size: 12px; color: var(--dc-muted); margin: 10px 0 0; font-weight: 600; }
.br { display: grid; grid-template-columns: minmax(110px, 1.1fr) 52px minmax(150px, 1.8fr) 92px 92px 28px; gap: 8px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--dc-line); font-size: 14px; }
.br.hd { border-top: 0; padding: 2px 4px; font-size: 11px; color: var(--dc-muted); font-weight: 600; }
.br .num { text-align: right; font-variant-numeric: tabular-nums; }
.br .sz { font-variant-numeric: tabular-nums; color: var(--dc-fg); font-size: 13px; }
.br .vt { display: inline-flex; align-items: center; gap: 4px; }
.br .vchip { min-width: 20px; height: 17px; font-size: 9px; border-radius: 4px; }
.wtag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: #fce7f3; color: #9d174d; margin-left: 6px; }
:root[data-theme="dark"] .wtag { background: #3a1733; color: #f9a8d4; }
.wtag.grey { background: var(--dc-subtle); color: var(--dc-muted); }
.wtag.plain { background: var(--dc-warn-soft); color: var(--dc-warn); }
.mtb { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 2px; border-radius: 4px; font-size: 9px; font-weight: 800; border: 1px solid var(--dc-line-strong); color: var(--dc-muted); cursor: help; }
.mtb.M { color: var(--dc-pos); border-color: var(--dc-pos); }
.xb { background: none; border: 1px solid var(--dc-line-strong); color: var(--dc-muted); border-radius: 6px; width: 26px; height: 26px; padding: 0; }
.xb:hover { color: var(--dc-neg); border-color: var(--dc-neg); }
.neg { color: var(--dc-neg); }
.pos { color: var(--dc-pos); }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--dc-subtle); color: var(--dc-muted); }
.tag.warn { background: var(--dc-warn-soft); color: var(--dc-warn); }
.rows { padding: 4px 14px; }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--dc-line-soft); }
.rows > div:last-child { border-bottom: 0; }
.rows span { color: var(--dc-muted); font-size: 13px; }
.rows strong { font-size: 13px; text-align: right; }
.signout { margin-top: 16px; max-width: 200px; }
.page-head.sub { margin-top: 20px; }
.page-head h2 { font-size: 15px; }
#positions .kv { border-bottom: 1px solid var(--dc-line-soft); }
#positions .kv:last-child { border-bottom: 0; }
#positions > .fine { padding: 10px 0; }
.dry.live { background: #dc2626; color: #fff; }
.tag.live { background: var(--dc-pos-soft); color: var(--dc-pos); }
.leg-status { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--dc-line-soft); font-size: 12px; }
.kv.door-ok strong { color: var(--dc-pos); }
.kv.door-no strong { color: var(--dc-neg); }
.bottom-nav { display: none; }

/* games: list | game detail | slip (user 2026-10-28 mockup) */
.glist { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; scrollbar-width: thin; }
.wk { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border: 1px solid var(--dc-line); border-radius: 10px; background: var(--dc-surface); }
.wk strong { flex: 1; font-size: 14px; }
.wk-btn { width: 30px; height: 30px; border: 1px solid var(--dc-line); border-radius: 8px; background: var(--dc-surface); font-size: 16px; }
.wk-btn:disabled { color: var(--rb-disabled); }
.gday h3 { font-size: 12px; font-weight: 700; color: var(--dc-muted); margin: 14px 4px 6px; }
.gcard { display: grid; grid-template-columns: minmax(0, 1fr) 44px 48px 40px; grid-template-rows: 16px 28px 28px; column-gap: 6px; align-items: center;
         padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--dc-line); border-radius: 10px; background: var(--dc-surface); color: inherit; text-decoration: none;
         font-variant-numeric: tabular-nums; }
.gcard:hover { border-color: var(--dc-line-strong); }
.gcard[aria-current="true"] { border-color: var(--dc-accent); background: var(--rb-chosen); box-shadow: 0 0 0 1px var(--dc-accent) inset; }
.gc-time { font-size: 11px; font-weight: 700; color: var(--dc-muted); }
.gc-h { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-muted); text-align: right; }
.gc-team { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.gc-team .code { display: none; }
.gc-v { text-align: right; font-size: 13px; }
.gc-total { grid-column: 4; grid-row: 2 / span 2; }
.ghd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 18px; }
.ghd-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ghd-team.home { justify-content: flex-end; }
.ghd-team .logo.big { width: 52px; height: 52px; }
.ghd-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ghd-rec { font-size: 12px; color: var(--dc-muted); margin-top: 2px; }
.ghd-mid { text-align: center; font-size: 13px; }
.ghd-date { font-weight: 700; }
.ghd-time { margin-top: 1px; }
.ghd-venue { margin-top: 3px; font-size: 11px; color: var(--dc-muted); }
.ghd-wx { margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--dc-fg); }
.seg.gper { margin: 12px 0 10px; }
.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mcard { padding: 8px 10px 10px; border: 1px solid var(--dc-line); border-radius: 12px; background: var(--dc-surface); }
.mc-title { margin-bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dc-muted); text-align: center; }
.mc-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sbox { min-width: 0; text-align: center; }
.sb-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.sb-refs { display: flex; flex-direction: column; align-items: center; margin: 2px 0 6px; font-size: 10.5px; line-height: 1.35; color: var(--dc-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-refs .pin { color: var(--dc-purple); }
.sb-price { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 46px; border-radius: 8px;
            border: 1px solid var(--rb-odds-bd); background: var(--rb-odds-bg); font-variant-numeric: tabular-nums; }
.sb-price strong { font-size: 16px; color: var(--rb-odds-fg); line-height: 1.2; }
.sb-price span { font-size: 10.5px; color: var(--dc-muted); }
.sb-price.short strong { color: var(--dc-muted); }
.sb-price[aria-pressed="true"] { background: var(--rb-sel); border-color: var(--rb-sel); }
.sb-price[aria-pressed="true"] strong, .sb-price[aria-pressed="true"] span { color: var(--rb-sel-fg); }
.ltabs { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ladder { overflow-x: auto; border: 1px solid var(--dc-line); border-radius: 12px; background: var(--dc-surface); }
table.lt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.lt th { padding: 8px; border-bottom: 1px solid var(--dc-line); font-size: 10.5px; font-weight: 600; color: var(--dc-muted); text-align: left; white-space: nowrap; }
.lt th.venue { text-align: center; }
.lt td { padding: 6px 8px; border-bottom: 1px solid var(--dc-line-soft); white-space: nowrap; }
.lt .num { text-align: right; }
.lt-line { font-weight: 700; }
.lt tbody tr { cursor: pointer; }
.lt tbody tr:hover { background: var(--dc-subtle); }
.lt tr.on { background: var(--rb-chosen); }
.lt tr.on .lt-line { color: var(--dc-accent); }
.lt .pin { color: var(--dc-purple); }
.lt .best { font-weight: 800; }
.lt .best.good { color: var(--dc-pos); }
.lt .best.bad { color: var(--dc-neg); }
.lt .best.short { opacity: .6; }
.lt .dim { font-size: 12px; color: var(--dc-muted); }
.lt .top { font-weight: 800; }
.lt .off { opacity: .45; }
.lt tr.gap td { padding: 2px; background: var(--dc-subtle); cursor: default; }
.lt .betc { width: 60px; text-align: right; }
.betb { height: 26px; padding: 0 12px; border: 1px solid var(--dc-accent); border-radius: 6px; background: var(--dc-surface); color: var(--dc-accent); font-size: 12px; font-weight: 700; }
.betb.on { background: var(--dc-accent); color: #fff; }
/* slip, mockup style */
.slip-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 8px; border-radius: 50%;
              background: var(--dc-accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.slip-head .clear { margin-left: auto; font-size: 13px; }
.sel-price { margin-left: auto; font-size: 20px; font-weight: 800; color: var(--rb-odds-fg); font-variant-numeric: tabular-nums; }
.sel-refs { margin-top: 4px; font-size: 12px; color: var(--dc-muted); font-variant-numeric: tabular-nums; }
.mdetails { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--dc-line); border-radius: 10px; }
.mdetails h3 { margin-bottom: 4px; font-size: 13px; }
.md-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 8px; padding: 4px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.md-row .md-size { text-align: right; color: var(--dc-muted); }
.md-row.off { opacity: .5; }
.md-row.ref > span:first-child { color: var(--dc-muted); }
@media (min-width: 1024px) { .board .back { display: none; } }

/* phones and tablets: bet slip becomes a bottom sheet, navigation moves to the bottom */
@media (max-width: 1023px) {
  .tabs { display: none; }
  .top-inner { height: 52px; padding: 0 14px; }
  .layout { display: block; padding: 12px 12px 90px; }
  .page { padding: 16px 12px 90px; }
  .slip { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; max-height: 88vh; border-radius: 16px 16px 0 0; border: 0;
          box-shadow: 0 -12px 32px rgba(0, 0, 0, .28); transform: translateY(105%); transition: transform .2s ease; padding-bottom: env(safe-area-inset-bottom); }
  .slip.open { transform: none; }
  .grabber { display: block; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--dc-line-strong); }
  .slip-head { position: relative; padding-top: 18px; }
  .backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: var(--rb-backdrop); }
  body.sheet-open { overflow: hidden; }
  .bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
                background: var(--dc-surface); border-top: 1px solid var(--dc-line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dc-muted); text-decoration: none; font-size: 11px; font-weight: 600; }
  .bottom-nav a[aria-current="page"] { color: var(--dc-accent); }
  .bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sizes { margin-left: 0; }
  .board-top { padding: 12px 12px 0; }
  .layout.three { display: block; }
  .glist { position: static; max-height: none; overflow: visible; }
  .ghd { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 12px; }
  .ghd-team { flex-direction: column; gap: 4px; text-align: center; }
  .ghd-team.home { justify-content: center; }
  .ghd-team .logo.big { width: 40px; height: 40px; }
  .ghd-name { font-size: 14px; }
  .mcards { grid-template-columns: 1fr; }
  .seg.gtabs, .seg.gteam { display: flex; width: 100%; margin-bottom: 8px; }
  .seg.gtabs button, .seg.gteam button { flex: 1; padding: 0 6px; }
  .lt .venue, .lt .betc { display: none; }
  .lt td, .lt th { padding: 7px 6px; }
}
@media (max-width: 560px) {
  .grid, .alt { grid-template-columns: minmax(0, 1fr) repeat(3, 82px); gap: 5px; }
  .grid.one { grid-template-columns: minmax(0, 1fr) 76px 76px 96px; }
  .cell.ref-cell .cell-odds { font-size: 11.5px; }
  .cell.ref-cell .cell-line { font-size: 9.5px; }
  .btabs { display: flex; flex: 1 1 100%; }
  .btabs button { flex: 1; padding: 0 6px; }
  .cell { padding: 4px 3px; column-gap: 2px; }
  .cell-line { font-size: 10.5px; }
  .cell-odds { font-size: 13px; }
  .cell-odds.long { font-size: 10.5px; }
  .cell-pin, .cell-max { font-size: 9.5px; }
  .refc { padding: 0 4px; font-size: 10px; line-height: 14px; column-gap: 2px; }
  .refname { font-size: 9px; letter-spacing: .04em; }
  .team-name .full, .day-full { display: none; }
  .day-short { display: inline; }
  .team-name .nick { display: none; }   /* phones: logo + code (CAR, GB), which never gets cut off */
  .team-name .code { display: inline; align-self: center; margin-top: 0; font-size: 14px; font-weight: 600; color: var(--dc-fg); }
  .day-head { padding: 0 13px 6px; }
  .bal:not(.total) { display: none; }
  .bal.total { padding-right: 0; border-right: 0; }
  .br { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "bet chips risk" "size size win"; row-gap: 2px; }
  .mets { gap: 6px; }
  .met { flex: 1 1 28%; min-width: 0; padding: 6px 10px; }
  .met .v { font-size: 16px; }
  .br > :nth-child(1) { grid-area: bet; } .br > :nth-child(2) { grid-area: chips; } .br > :nth-child(3) { grid-area: size; }
  .br > :nth-child(4) { grid-area: risk; } .br > :nth-child(5) { grid-area: win; } .br > :nth-child(6):empty { display: none; }
  .br > :nth-child(5)::before { content: 'to win '; color: var(--dc-muted); font-size: 11px; }
  .br.hd { display: none; }
  .gh .dim.small { flex-basis: 100%; }
}

/* sign-in page */
.topbar { background: var(--rb-head); color: var(--rb-head-fg); display: flex; align-items: center; gap: 12px; padding: 12px 24px; }
.topbar-subtitle { color: var(--rb-head-muted); font-size: 13px; }
.topbar > .theme-toggle { margin-left: auto; color: var(--rb-head-fg); }
.text-button { border: 0; background: none; color: var(--dc-accent); font-weight: 600; }
.login-layout { min-height: calc(100vh - 56px); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; }
.panel { background: var(--dc-surface); border: 1px solid var(--dc-line); border-radius: 12px; }
.login-panel { width: 100%; max-width: 400px; padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.login-panel h1 { font-size: 18px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--dc-warn-soft); color: var(--dc-warn); }
.badge.neutral { background: var(--dc-subtle); color: var(--dc-muted); }
.login-panel form { margin: 16px 0 12px; }
.login-panel label { display: block; font-size: 12px; font-weight: 600; margin: 12px 0 6px; }
.login-panel .error { margin-top: 10px; }
@media (max-width: 380px) {
  .team-name .nick { display: none; }
  .team-name .code { display: inline; font-size: 14px; font-weight: 600; color: var(--dc-fg); }
}
