/*
 * BT visual (src/lib/visuals.js), after the v4 front of bancabeti (docs/re-bancabeti/design/tokens.md, measured again on
 * 2026-11-06). Wide screens: the top bar in the brand colour, the left column (shortcuts, days in boxes, import by code,
 * leagues with their flags), the carousel of highlights on the background of bolts, "Junte-se à ação" (the main leagues),
 * "Mais jogos de ..." with the day chips, each league a card with its games as rows, and on the right "Minhas apostas",
 * "Sugestões" and "Ofertas"; the slip floats at the bottom right (a bar that opens upwards). Up to 1280px the right column is
 * a drawer. Phones: the install strip, chips under the top bar, the brand colour fading down the home, "Ligas populares",
 * a fixed bottom bar, the left column as the side menu, each game a card. Light by default (head.ejs), dark with the theme
 * button, like the original. Fonts: Geist (text), Barlow Condensed (titles, teams, tags), Poppins and Anton (the "Criar
 * aposta" card), all served from public/vendor/bt-fonts. Partials: views/visuais/bt/.
 */
:root { --bt-top-h: 60px; --bt-side-w: 220px; --bt-slip-w: 360px; --bt-bottom-h: 60px; }
body.visual-bt {
  --bg: #eaeef9; --bg-2: #f7f9fc; --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #e2e8f8; --surface-4: #d3dcf0; --border: #e2e8f8;
  --text: #151923; --muted: #526789; --primary: #ff4015; --primary-text: #ffffff; --secondary: #000000; --secondary-text: #ffffff;
  --hover: #000000; --accent: #ff4015; --accent-text: #ffffff; --live: #e63c12; --win: #1f9d55; --lose: #d93636; --warn: #b45309;
  --bt-price: #3a7824; --bt-hover: #f3f6fc; --bt-odd-border: #e2e8f8; --bt-badge: #5337cc; --bt-dark-btn: #151a24;
  --shadow: 0 4px 18px rgba(21, 25, 35, .08); --bt-chosen-shadow: 0 1px 3px rgba(21, 25, 35, .1); --bt-scrim: rgba(8, 10, 16, .45);
  /* the highlight cards */
  --hl-bg: #f1f3f7; --hl-bolt: rgba(21, 25, 35, .05); --hl-text: #151923; --hl-muted: #526789; --hl-border: #dde2ec; --hl-hover: #c5d0ea;
  --hl-cell: #ffffff; --hl-cell-hover: #e2e8f8;
  --bt-font: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --bt-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  background: var(--bg); color: var(--text); font: 400 14px/1.4 var(--bt-font); -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] body.visual-bt {
  --bg: #090915; --bg-2: #171c2e; --surface: #212536; --surface-2: #2d374d; --surface-3: #3b4863; --surface-4: #475674; --border: #2d374d;
  --text: #f5f7fa; --muted: #9aa7c4; --live: #ff5a36; --win: #4ade80; --lose: #f87171; --warn: #facc15;
  --bt-price: #a3d369; --bt-hover: #282d40; --bt-odd-border: transparent; --shadow: 0 4px 18px rgba(0, 0, 0, .45);
  --hl-bg: #0f1222; --hl-bolt: rgba(255, 255, 255, .043); --hl-text: #f8f4ef; --hl-muted: rgba(248, 244, 239, .72); --hl-border: #1d2236; --hl-hover: #3b4863;
  --hl-cell: #f8f4ef; --hl-cell-hover: #e9e2d8;
}
.visual-bt button, .visual-bt input, .visual-bt select { font-family: inherit; }
.bt-chips, .bt-bottom, .bt-backdrop, .bt-drawer-only, .bt-burger, .bt-right-head, .bt-pop, .bt-top .bt-aside-btn { display: none; }

/* ----- the install strip (app.js data-install-bar) ----- */
.bt-install { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 14px; background: var(--primary); color: var(--primary-text);
  border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 13px; line-height: 1.25; }
.bt-install[hidden] { display: none; }
.bt-install img { flex: none; width: auto; height: 28px; object-fit: contain; }
.bt-install-t { display: flex; flex-direction: column; min-width: 0; }
.bt-install-t b { font-size: 13.5px; font-weight: 700; }
.bt-install-t small { overflow: hidden; font-size: 11.5px; opacity: .85; text-overflow: ellipsis; white-space: nowrap; }
.bt-install-b { flex: none; height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: #111; font-weight: 700; cursor: pointer; }
.bt-install-x { flex: none; width: 30px; height: 30px; border: 0; background: none; color: inherit; font-size: 15px; opacity: .85; cursor: pointer; }

/* ----- top bar ----- */
.bt-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: var(--bt-top-h); padding: 0 18px;
  background: var(--primary); color: var(--primary-text); }
.bt-logo { display: flex; align-items: center; flex-shrink: 0; }
.bt-logo .brand-logo { height: 36px; width: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }
.bt-nav { display: flex; align-self: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bt-nav::-webkit-scrollbar { display: none; }
.bt-nav a { display: flex; align-items: center; gap: 6px; padding: 3px 11px 0; white-space: nowrap; color: inherit; font-size: 13px; font-weight: 450;
  text-transform: uppercase; opacity: .85; border-bottom: 3px solid transparent; }
.bt-nav a:hover { color: inherit; opacity: 1; }
.bt-nav a.active { opacity: 1; font-weight: 650; border-bottom-color: var(--primary-text); }
.bt-pill { padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .25); font-size: .7rem; }
.bt-search { position: relative; flex: 0 1 240px; margin: 0 0 0 auto; }
.bt-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .8; }
.bt-search input { width: 100%; height: 38px; padding: 0 14px 0 38px; border: 0; border-radius: 19px; background: rgba(255, 255, 255, .18); color: inherit; font-size: 13px; }
.bt-search input::placeholder { color: inherit; opacity: .8; }
.bt-search input:focus { outline: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .26); }
.bt-top-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bt-top-right form { margin: 0; }
.bt-top .visual-bar { color: inherit; }
.bt-top .visual-seg button[aria-current="true"] { background: var(--primary-text); color: var(--primary); }
.bt-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 1.05rem; cursor: pointer; }
.bt-icon:hover { color: inherit; background: rgba(255, 255, 255, .16); }
.bt-login { padding: 8px 20px; border-radius: 99px; background: var(--primary-text); color: var(--primary); font-weight: 700; }
.bt-login:hover { color: var(--primary); filter: brightness(.96); }
.bt-balance { display: flex; flex-direction: column; line-height: 1.15; color: inherit; text-align: right; }
.bt-balance:hover { color: inherit; }
.bt-balance small { opacity: .85; font-size: .72rem; }
.visual-bt .visual-bar-row { background: var(--surface); color: var(--text); }

/* ----- columns: menu | games | right column (board pages); the slip floats ----- */
body.visual-bt .layout { display: grid; grid-template-columns: var(--bt-side-w) minmax(0, 1fr) !important; gap: 18px;
  padding: 16px 18px; max-width: 1640px; align-items: start; }
body.visual-bt .layout.bt-has-aside { grid-template-columns: var(--bt-side-w) minmax(0, 1fr) var(--bt-slip-w) !important; }
body.visual-bt .layout.no-side { grid-template-columns: minmax(0, 1fr) !important; max-width: 1100px; }
body.visual-bt .layout.no-side.bt-has-aside { grid-template-columns: minmax(0, 1fr) var(--bt-slip-w) !important; max-width: 1640px; }
/* the highlights over the games and the right column, as on the v4 front (the strip of views/visuais/bt/site-top.ejs) */
body.visual-bt .layout.bt-has-aside { grid-template-areas: "side top top" "side main aside"; row-gap: 0; }
body.visual-bt .layout.no-side.bt-has-aside { grid-template-areas: "top top" "main aside"; }
.bt-has-aside > .bt-side { grid-area: side; }
.bt-has-aside > .bt-top-strip { grid-area: top; }
.bt-has-aside > .content { grid-area: main; }
.bt-has-aside > .bt-right { grid-area: aside; }
.bt-top-strip { min-width: 0; }
/* room under the page for the floating slip's bar */
body.visual-bt:not(.slip-off) .footer { padding-bottom: 90px; }
.visual-bt .flash { max-width: 1604px; }

/* the left column */
.bt-side { position: sticky; top: calc(var(--bt-top-h) + 16px); max-height: calc(100vh - var(--bt-top-h) - 32px); overflow-y: auto; display: flex;
  flex-direction: column; padding-right: 4px; }
.bt-side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 450; }
.bt-side-link:hover { background: var(--surface); color: var(--text); }
.bt-side-link i { width: 18px; text-align: center; color: var(--muted); }
.bt-side-link .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.bt-live-dot { width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(230, 60, 18, .2); flex-shrink: 0; }
.bt-head { display: block; margin: 16px 10px 8px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; }
.bt-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bt-days a { display: flex; flex-direction: column; align-items: center; padding: 6px 0 5px; border: 0; border-radius: 6px;
  background: var(--surface); color: var(--text); line-height: 1.15; box-shadow: var(--bt-chosen-shadow); }
.bt-days a small { color: var(--muted); font-size: .66rem; letter-spacing: .5px; }
.bt-days a b { font-size: 15px; font-weight: 650; }
.bt-days a:hover { color: var(--text); border-color: var(--primary); }
.bt-days a.active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.bt-days a.active small { color: inherit; opacity: .85; }
.bt-import { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bt-import input, .bt-import-box input { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); }
.bt-import button, .bt-import-box button { height: 34px; border: 0; border-radius: 7px; background: var(--primary); color: var(--primary-text); font-weight: 650; cursor: pointer; }
.bt-league { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: 13px; line-height: 1.25; }
.bt-league:hover { background: var(--surface); color: var(--text); }
.bt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-league .count { color: var(--muted); font-size: .78rem; }
.visual-bt [data-fav-links] a { display: block; padding: 7px 6px; color: var(--text); }

/* the country flags (views/visuais/bt/flag.ejs) */
.bt-flag { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.bt-flag-none { background: var(--surface-3); color: var(--muted); font-size: 10px; }
.league-tag .bt-flag { width: 12px; height: 12px; }
.league-tag .bt-flag-none { font-size: 8px; }

/* ----- above the board: the carousel of highlights (views/visuais/bt/featured.ejs) ----- */
.bt-hl { position: relative; margin: 0 0 22px; }
.bt-hl .section-title { display: none; }
.bt-hl-track { display: grid; grid-auto-flow: column; grid-auto-columns: 346px; gap: 8px; padding-bottom: 2px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; }
.bt-hl-track::-webkit-scrollbar { display: none; }
.bt-hl-card { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-height: 200px; padding: 14px; scroll-snap-align: start;
  border: 1px solid var(--hl-border); border-radius: 12px; background: var(--hl-bg); color: var(--hl-text); }
.bt-hl-card:hover { border-color: var(--hl-hover); }
/* the bolts (public/img/bt-raios.svg) as a mask over a faint colour, behind the card's content */
.bt-hl-card::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--hl-bolt); -webkit-mask: url("/img/bt-raios.svg") 0 0 / auto no-repeat; mask: url("/img/bt-raios.svg") 0 0 / auto no-repeat; }
.bt-hl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--hl-muted); }
.bt-hl-when { white-space: nowrap; font-weight: 550; }
.bt-hl-league { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-hl-teams { display: flex; flex-direction: column; justify-content: center; gap: 8px; flex: 1; color: inherit; }
.bt-hl-teams:hover { color: inherit; }
.bt-hl-team { display: flex; align-items: center; gap: 10px; min-width: 0; font: italic 700 20px/1.1 var(--bt-cond); text-transform: uppercase; }
.bt-hl-team > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-hl-team .crest-sm { width: 26px; height: 26px; }
.bt-hl-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bt-hl-odds.cols-2 { grid-template-columns: repeat(2, 1fr); }
.visual-bt .bt-hl-odds .odd { display: flex; flex-direction: row; justify-content: space-between; align-items: center; min-height: 34px; padding: 5px 8px; border: 0;
  border-radius: 8px; background: var(--hl-cell); color: #151923; }
.visual-bt .bt-hl-odds .odd small { color: #526789; font-size: 12px; }
.visual-bt .bt-hl-odds .odd strong { color: #3a7824; font-size: 13px; font-weight: 700; }
.visual-bt .bt-hl-odds .odd:hover:not(:disabled) { background: var(--hl-cell-hover); }
.bt-hl-more { align-self: flex-start; color: var(--hl-muted); font-size: 11px; font-weight: 600; }
.bt-hl-more:hover { color: var(--hl-text); text-decoration: underline; }
/* the "Criar aposta" card: the title in heavy capitals, then a white panel with a ragged top edge */
.bt-offer { width: 100%; padding: 0; overflow: hidden; border-width: 1px; background: color-mix(in srgb, var(--primary) 14%, var(--hl-bg)); font: inherit;
  text-align: left; cursor: pointer; }
.bt-offer::before { display: none; }
.bt-offer-title { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; color: var(--hl-text);
  font: 800 30px/.92 Poppins, var(--bt-font); letter-spacing: -.05em; text-transform: uppercase; }
.bt-offer-lead { color: var(--primary); }
:root[data-theme="dark"] .bt-offer-lead { color: color-mix(in srgb, var(--primary) 55%, #fff); }
.bt-offer-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; flex: 1; margin-top: -14px; padding: 22px 22px 14px;
  background: var(--surface); border-radius: 0 0 11px 11px; clip-path: polygon(0 16px, 34% 5px, 30% 16px, 100% 0, 100% 100%, 0 100%); }
.bt-offer-text { max-width: 34ch; color: var(--muted); font: 700 15px/1.1 var(--bt-cond); text-transform: uppercase; }
.bt-offer-more { padding: 3px 12px 4px; border-radius: 5px; background: var(--primary); color: var(--primary-text); font: 400 14px/1.1 Anton, var(--bt-font);
  letter-spacing: .02em; text-transform: uppercase; }
.bt-offer:hover .bt-offer-more { filter: brightness(.9); }
.bt-hl-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--bt-chosen-shadow); font-size: 12px; }
.bt-hl-prev { left: -8px; }
.bt-hl-next { right: -8px; }
.bt-hl-arrow:hover { background: var(--surface-2); }
.visual-bt .banners img { border-radius: 12px; }

/* the windows (<dialog>): "Criar aposta" explained, Importar bilhete */
.bt-dialog { width: 520px; max-width: calc(100vw - 24px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: var(--surface); color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font: 400 14px/1.4 var(--bt-font); }
.bt-dialog::backdrop { background: rgba(8, 10, 16, .5); }
.bt-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 8px; }
.bt-dialog-head h2 { margin: 0; font: italic 700 22px/1 var(--bt-cond); text-transform: uppercase; letter-spacing: .01em; }
.bt-import-dialog { width: 400px; }
.bt-import-box { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 16px 18px; }
.bt-import-box p { margin: 0; }
.bt-import-box input, .bt-import-box button { height: 42px; }
.bt-ca { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; }
.bt-ca p { margin: 0; }
.bt-ca-intro { color: var(--muted); }
.bt-ca-example { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.bt-ca-example p:last-child { color: var(--muted); }
.bt-ca-example-top { display: flex; align-items: center; gap: 8px; }
.bt-ca-example .bt-tag { height: 17px; border-radius: 4px; }
.bt-ca-steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bt-ca-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.bt-ca-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--primary-text); font-size: 12px; font-weight: 700; }
.bt-ca-steps h3 { margin: 2px 0; font-size: 14px; font-weight: 600; }
.bt-ca-steps p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.bt-ca-notes { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px 12px 12px 28px; border-radius: 8px; background: var(--surface-2); color: var(--muted);
  font-size: 12px; line-height: 1.45; }
.bt-ca-rules { align-self: center; color: color-mix(in srgb, var(--primary) 80%, #000); font-size: 13px; }
:root[data-theme="dark"] .bt-ca-rules { color: color-mix(in srgb, var(--primary) 55%, #fff); }
.bt-ca-rules:hover { text-decoration: underline; }
.bt-ca-ok { min-height: 42px; border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-text); font-size: 14px; font-weight: 550; cursor: pointer; }
.bt-ca-ok:hover { filter: brightness(.92); }

/* ----- the board's sections: "Junte-se à ação", "Mais jogos de ..." (views/visuais/bt/principal-block, leagues-head) ----- */
.bt-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.bt-title { margin: 0; font: italic 700 24px/1.1 var(--bt-cond); text-transform: uppercase; }
.bt-total { color: var(--muted); font-size: .7em; font-style: normal; font-weight: 600; }
.bt-toggle { display: inline-flex; gap: 6px; }
.bt-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 8px;
  background: var(--surface); color: var(--text); font-weight: 550; white-space: nowrap; }
.bt-toggle a:hover { color: var(--text); background: var(--surface-2); }
.bt-toggle .fa-bolt { color: var(--live); }
.visual-bt .league.bt-action { margin: 0 0 22px; background: none; border-radius: 0; overflow: visible; }
.bt-action-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.bt-action-list .bt-match { border: 0; border-radius: 10px; }
.bt-action-list .bt-tags { border-top-left-radius: 10px; }
.bt-more-link { display: block; margin: 0 0 22px; padding: 10px; border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 650;
  letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.bt-more-link:hover { color: var(--text); background: var(--surface-2); }
.bt-day-chips { display: flex; flex: 1 1 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bt-day-chips::-webkit-scrollbar { display: none; }
.bt-day-chips a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; }
.bt-day-chips a:hover { color: var(--text); background: var(--surface-2); }
.bt-day-chips a.active { background: var(--surface); box-shadow: var(--bt-chosen-shadow); font-weight: 700; }
.bt-board-end { margin-top: 4px; }
/* "Ligas populares": phones only (two rows that scroll sideways) */
.bt-pop-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
/* the columns grow to fill the width when they fit (no blank half with 2 leagues) and scroll at their own width when not;
   with up to 3 leagues one row (.bt-pop-row, board-head.ejs) */
.bt-pop-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(max-content, 1fr); gap: 8px;
  margin: 0 -12px; padding: 0 12px 4px; overflow-x: auto; scrollbar-width: none; }
.bt-pop-grid.bt-pop-row { grid-template-rows: auto; }
.bt-pop-grid::-webkit-scrollbar { display: none; }
.bt-pop-grid a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); white-space: nowrap; }
.bt-pop-logo { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
.bt-pop-logo .bt-flag { width: 20px; height: 20px; }
.bt-pop-ball { position: absolute; bottom: 0; left: 50%; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2);
  color: var(--text); font-size: 9px; transform: translate(-50%, 45%); }
.bt-pop-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bt-pop-text b { max-width: 170px; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; }
.bt-pop-text small { color: var(--muted); font-size: 11px; font-weight: 500; }

/* ----- the leagues (cards) and their games (rows) ----- */
.visual-bt .league { margin: 0 0 12px; border: 0; border-radius: 10px; background: var(--surface); overflow: hidden; }
.bt-league-head { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(240px, 480px) 52px; align-items: center; gap: 14px;
  padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 550; }
.bt-league-head .league-name { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.bt-league-head .league-name:hover { color: var(--primary); }
.bt-league-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-league-n { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 450; }
.bt-league-head .fav-btn { justify-self: center; }
.bt-league-head .fav-btn, .bt-league-head .fav-btn i { color: var(--muted); }
.bt-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; color: var(--muted); font-size: 11px; font-weight: 450; text-align: center; }

.bt-match { position: relative; display: grid; grid-template-columns: 64px minmax(150px, 1fr) minmax(240px, 480px) 52px; align-items: center; gap: 14px;
  margin: 0; padding: 12px 14px; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: var(--surface); }
.visual-bt .league-head + .bt-match { border-top: 0; }
.bt-match:hover { background: var(--bt-hover); }
.bt-match.bt-has-tags { padding-top: 24px; }
/* the tags in the corner, as on the v4 front: CA in the brand colour, the early payout ("» 2 GOLS") in purple */
.bt-tags { position: absolute; top: 0; left: 0; z-index: 1; display: flex; overflow: hidden; border-radius: 0 0 6px 0; }
.bt-tag { display: inline-flex; align-items: center; gap: 3px; height: 17px; margin: 0; padding: 0 7px 0 5px; border: 0; border-radius: 0; color: #fff;
  font: italic 700 11px/1 var(--bt-cond); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; cursor: default; }
.bt-tag i { font-size: 9px; }
.bt-tag-ca { background: var(--primary); color: var(--primary-text); }
.bt-tag-ep { background: var(--bt-badge); color: #fff; }
.bt-when { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bt-when:hover { color: var(--muted); }
.bt-when b { color: var(--text); font-size: 13px; font-weight: 550; }
.bt-live { padding: 1px 6px; border-radius: 4px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; }
.bt-when .minute { color: var(--live); font-weight: 650; }
.bt-teams { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--text); }
.bt-teams:hover { color: var(--text); }
.bt-teams .team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 500; }
.bt-teams .team-name { flex: 1; min-width: 0; line-height: 1.25; overflow-wrap: break-word; }
.bt-teams .crest-sm { width: 16px; height: 16px; }
.bt-teams .league-tag { display: flex; align-items: center; gap: 6px; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 400;
  text-overflow: ellipsis; white-space: nowrap; }
.bt-score { margin-left: auto; min-width: 18px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bt-more { justify-self: center; color: var(--muted); font-size: 12px; font-weight: 450; }
.bt-more:hover { color: var(--primary); }
.visual-bt .bt-match .match-odds, .visual-bt .bt-match .match-odds.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: auto; }
.visual-bt .bt-match .match-odds.cols-2 { grid-template-columns: repeat(2, 1fr); }
.bt-no-odds { grid-column: 1 / -1; text-align: center; }
.visual-bt .bt-match .odd { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; min-height: 38px; height: auto;
  padding: 6px 12px; border: 1px solid var(--bt-odd-border); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.visual-bt .bt-match .odd:hover:not(:disabled) { background: var(--surface-3); }
.visual-bt .bt-match .odd small { color: var(--text); font-size: 12px; opacity: 1; }
.visual-bt .bt-match .odd strong { color: var(--bt-price); font-size: 13px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.visual-bt .odd.active { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--primary-text) !important; }
.visual-bt .odd.active small, .visual-bt .odd.active strong { color: #fff !important; }

/* ----- the right column: Minhas apostas, Sugestões, Ofertas (views/visuais/bt/slip.ejs) ----- */
.bt-right { position: sticky; top: calc(var(--bt-top-h) + 16px); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - var(--bt-top-h) - 32px);
  overflow-y: auto; scrollbar-width: none; }
.bt-right::-webkit-scrollbar { display: none; }
.bt-right > * { flex-shrink: 0; }
.bt-card { border-radius: 10px; background: var(--surface); }
.bt-my-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.bt-my-head { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.bt-my-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.bt-my-tabs button { padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 550; cursor: pointer; }
.bt-my-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.bt-my-pane { display: flex; flex-direction: column; gap: 6px; }
.bt-my-pane[hidden] { display: none; }
.bt-my-empty { margin: 4px 0; color: var(--muted); font-size: 13px; text-align: center; }
.bt-my-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13px; }
.bt-my-item:hover { color: var(--text); background: var(--surface-3); }
.bt-my-item span:first-child { display: flex; flex-direction: column; min-width: 0; }
.bt-my-item small { color: var(--muted); font-size: 11px; }
.bt-my-state { flex: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.bt-my-all { display: block; padding: 9px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 650; letter-spacing: .04em;
  text-align: center; text-transform: uppercase; }
.bt-my-all:hover { color: var(--text); background: var(--surface-3); }
.bt-sug-card, .bt-offers, .bt-tips-card { overflow: hidden; }
/* Super Dicas of the right column: one line per tip (title, games and odds) and the copy button */
.bt-tips-all { margin-left: auto; color: var(--primary); font: 600 12px/1 var(--bt-font); text-transform: none; letter-spacing: 0; }
.bt-tips-all:hover { color: var(--primary); text-decoration: underline; }
.bt-tips-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 10px 12px 12px; list-style: none; }
.bt-tip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.bt-tip-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bt-tip-t b { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.bt-tip-t small { color: var(--muted); font-size: 11.5px; }
.bt-tip-t strong { color: var(--bt-price); font-weight: 700; }
.bt-tip-go { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: 7px; background: var(--bt-dark-btn); color: #fff;
  font-size: 12px; font-weight: 650; cursor: pointer; }
.bt-tip-go:hover { filter: brightness(1.15); }
.bt-tip-go:disabled { opacity: .6; cursor: wait; }
.bt-sug-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  font-size: 15px; font-weight: 650; }
.bt-sug-head i { color: var(--primary); }
.bt-sug-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.bt-sug-label { color: var(--muted); font-size: 12px; }
.bt-stake { display: flex; align-items: center; gap: 4px; width: 120px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); }
.bt-stake:focus-within { border-color: var(--primary); }
.bt-stake span { color: var(--muted); font-size: 13px; }
.bt-stake input { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; background: none; color: var(--text); font-weight: 550; }
.bt-sug-ranges { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bt-sug-range { padding: 8px 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 550;
  font-variant-numeric: tabular-nums; cursor: pointer; }
.bt-sug-range:last-child { grid-column: 1 / -1; }
.bt-sug-range:hover { background: var(--surface-3); }
.bt-sug-range.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.bt-sug-go { margin-top: 4px; padding: 10px; border: 0; border-radius: 8px; background: var(--bt-dark-btn); color: #fff; font-weight: 650; cursor: pointer; }
.bt-sug-go:hover { background: #0e1219; }
:root[data-theme="dark"] .bt-sug-go { background: var(--surface-3); }
/* Ofertas: one picture on a dark gradient per item, the group, the title, a line and "Veja mais" */
.bt-offer-list { display: flex; flex-direction: column; margin: 0; padding: 4px 14px 14px; list-style: none; }
.bt-offer-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.bt-offer-item:first-child { padding-top: 10px; border-top: 0; }
.bt-offer-pic { --o-a: #3b2a7a; --o-b: #16112f; display: grid; place-items: center; flex: none; width: 64px; height: 84px; border-radius: 10px;
  background: radial-gradient(120% 80% at 50% 0%, var(--o-a), var(--o-b)); color: #ffd34d; font-size: 26px; }
.bt-pic-ca { --o-a: #1f5a8a; --o-b: #0b1a2c; color: #ffc400; }
.bt-pic-tips { --o-a: #2a6a3a; --o-b: #0a2212; color: #b9f27c; }
.bt-pic-co { --o-a: #1f6a6a; --o-b: #082222; color: #7cf2d6; }
.bt-offer-item > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.bt-offer-item small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bt-offer-item b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.bt-offer-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.bt-offer-item a, .bt-offer-item button { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.bt-offer-item a::after, .bt-offer-item button::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.bt-offer-item a:hover, .bt-offer-item button:hover { color: var(--text); background: var(--surface-3); }

/* the window of suggestions (a <dialog>, filled by GET /sugestoes?parcial=1: views/partials/suggest-list.ejs) */
.bt-sug-dialog { width: 620px; max-width: calc(100vw - 24px); max-height: 88vh; padding: 0; border: 0; border-radius: 12px; background: var(--surface); color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font: 400 14px/1.4 var(--bt-font); }
.bt-sug-dialog[open] { display: flex; flex-direction: column; }
.bt-sug-dialog::backdrop { background: rgba(8, 10, 16, .5); }
.bt-sug-dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.bt-sug-dhead h2 { margin: 0; font: italic 700 22px/1 var(--bt-cond); text-transform: uppercase; letter-spacing: .01em; }
.bt-sug-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; }
.bt-sug-close:hover { background: var(--surface-3); }
.bt-sug-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 4px 16px 14px; border-bottom: 1px solid var(--border); }
.bt-sug-controls label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.bt-sug-controls label:nth-child(2) { flex: 1; }
.bt-sug-controls select { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 550; }
.bt-sug-refresh { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.bt-sug-refresh:hover { background: var(--surface-3); }
.bt-sug-result { display: flex; flex-direction: column; flex: 1; min-height: 120px; overflow: hidden; }
.bt-sug-result.is-loading { opacity: .5; pointer-events: none; }
.sug-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; overflow-y: auto; }
.sug-count { margin: 0; color: var(--muted); font-size: 13px; }
.sug-count strong { margin-left: 4px; color: var(--text); }
.sug-legs { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sug-leg { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.sug-when { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; border-right: 1px solid var(--border); color: var(--muted);
  font-size: 12px; text-align: center; }
.sug-when b { color: var(--text); font-weight: 550; }
.sug-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 10px; font-size: 13px; }
.sug-pick { display: flex; justify-content: space-between; gap: 8px; }
.sug-price { color: var(--bt-price); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sug-match { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-match:hover { color: var(--text); text-decoration: underline; }
.sug-comp { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-market { color: color-mix(in srgb, var(--primary) 80%, #000); font-size: 12px; }
:root[data-theme="dark"] .sug-market { color: color-mix(in srgb, var(--primary) 55%, #fff); }
.sug-actions { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px; border-left: 1px solid var(--border); }
.sug-icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 12px; cursor: pointer; }
.sug-icon:hover { background: var(--surface-4); color: var(--text); }
.visual-bt .sug-add, .visual-bt .sug-add:hover { background: var(--primary); color: var(--primary-text); }
.visual-bt .sug-add.active { background: var(--win) !important; border-color: var(--win) !important; }
.sug-foot { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.sug-total { display: flex; flex-direction: column; color: var(--muted); font-size: 12px; }
.sug-total strong { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.sug-go { margin-left: auto; padding: 10px 14px; border: 0; border-radius: 8px; background: var(--bt-dark-btn); color: #fff; font-weight: 650; cursor: pointer; }
:root[data-theme="dark"] .sug-go { background: var(--primary); }
.sug-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: auto; padding: 28px 20px; color: var(--muted); text-align: center; }
.sug-empty i { font-size: 1.6rem; }
.sug-empty p { margin: 0; max-width: 40ch; }

/* ----- game page: the bar of tabs, search and the "Criar aposta" switch (views/visuais/bt/market-tools.ejs) ----- */
.visual-bt .game-hero { border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.bt-market-bar { position: sticky; top: calc(var(--bt-top-h) + 8px); z-index: 5; display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0; border-radius: 10px;
  background: var(--surface); }
.bt-market-tabs { display: flex; flex: 1; gap: 4px; min-width: 0; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.bt-market-tabs::-webkit-scrollbar { display: none; }
.bt-tab { flex: none; padding: 7px 14px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.bt-tab:hover { background: var(--surface-2); }
.bt-tab.active { background: var(--surface-3); font-weight: 700; }
.bt-market-search { flex: 0 1 220px; min-width: 120px; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text);
  font-size: 13px; }
.bt-market-search:focus { outline: 0; border-color: var(--primary); }
.bt-ca-switch { display: inline-flex; flex: none; align-self: stretch; align-items: center; gap: 8px; margin: 6px 6px 6px 0; padding: 0 8px 0 18px; border: 0;
  border-radius: 0 8px 8px 0; background: var(--surface-3); color: var(--text); white-space: nowrap; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 2px 100%, 8px 54%, 4px 46%); transition: background .2s, color .2s; }
.bt-ca-switch-label { font-size: 10px; font-style: italic; font-weight: 750; letter-spacing: .02em; line-height: 1; text-align: left; text-transform: uppercase; }
.bt-ca-switch-track { position: relative; width: 36px; height: 20px; border-radius: 10px; background: color-mix(in srgb, var(--muted) 45%, var(--surface-3)); transition: background .2s; }
.bt-ca-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.bt-ca-switch[aria-pressed="true"] { background: var(--primary); color: #fff; }
.bt-ca-switch[aria-pressed="true"] .bt-ca-switch-track { background: color-mix(in srgb, var(--primary) 50%, #000); }
.bt-ca-switch[aria-pressed="true"] .bt-ca-switch-track::after { transform: translateX(16px); }
.bt-market-fold { display: flex; justify-content: flex-end; gap: 4px; margin: 8px 0; }
.bt-market-fold .chip { padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--text); font-size: 12px; font-weight: 500; }
.bt-market-fold .chip:hover { background: var(--surface); }
/* the markets: cards with the name, the chevron and, when it takes "Criar aposta", the CA tag in the corner */
.visual-bt .market { position: relative; margin: 0 0 8px; border: 0; border-radius: 10px; background: var(--surface); }
.visual-bt .market summary { padding: 12px 14px; font-size: 14px; font-weight: 400; }
.visual-bt [data-builder-on] .market[data-builder-ok="1"] summary::before { content: "CA"; position: absolute; top: 0; right: 0; height: 12px; padding: 0 8px;
  border-radius: 0 10px 0 8px; background: var(--primary); color: var(--primary-text); font: 700 9px/12px var(--bt-font); }
.visual-bt .market .market-odds { gap: 8px; padding: 0 14px 14px; }
.visual-bt .market .odd { min-height: 38px; padding: 0 12px; border: 1px solid var(--bt-odd-border); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.visual-bt .market .odd:hover:not(:disabled) { background: var(--surface-3); }
.visual-bt .odd-wide small { font-size: 12px; }
.visual-bt .odd-wide strong, .visual-bt .market .odd strong { color: var(--bt-price); font-size: 13px; font-weight: 700; }

/* ----- the floating slip (#slip.bt-cupom): a bar in the brand colour that opens upwards ----- */
.visual-bt .slip.bt-cupom { position: fixed; top: auto; right: 16px; bottom: 0; left: auto; z-index: 46; display: flex; flex-direction: column; width: var(--bt-slip-w);
  max-width: calc(100vw - 32px); max-height: calc(100vh - 90px); border: 0; border-radius: 14px 14px 0 0; background: var(--surface); overflow: hidden;
  box-shadow: 0 -6px 28px rgba(8, 10, 16, .22); transform: none; transition: none; }
body.visual-bt.slip-off .slip.bt-cupom:not(.open) { display: none !important; }
.bt-cupom.is-entering { animation: bt-cupom-up .38s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes bt-cupom-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .bt-cupom.is-entering { animation: none; } }
.bt-cupom-bar { display: flex; flex: 0 0 auto; flex-direction: column; gap: 4px; width: 100%; padding: 11px 16px 12px; border: 0; background: var(--primary);
  color: var(--primary-text); font: inherit; text-align: left; cursor: pointer; }
.bt-cupom-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bt-cupom-ico { position: relative; display: inline-flex; flex: none; font-size: 18px; }
.bt-cupom-n { position: absolute; top: -8px; right: -9px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #151a24; color: #fff; font-size: 10.5px; font-weight: 700; }
.bt-cupom-kind { font-size: 15px; font-weight: 750; }
.bt-cupom-odd { margin-left: auto; font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bt-cupom-arrow { flex: none; transition: transform .2s; }
.bt-cupom.open .bt-cupom-arrow { transform: rotate(180deg); }
.bt-cupom-row2 { gap: 6px; font-size: 12.5px; font-weight: 600; opacity: .95; }
.bt-cupom-teams { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-cupom-pill { flex: none; padding: 1px 7px; border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.bt-cupom-pill[hidden] { display: none; }
.bt-cupom-ca { border-radius: 4px; }
.bt-cupom-row3 { font-size: 12.5px; }
.bt-cupom-row3 span { opacity: .8; }
.bt-cupom-row3 b { margin-left: auto; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.bt-cupom.open .bt-cupom-row2, .bt-cupom.open .bt-cupom-row3 { display: none; }
.bt-cupom-body { display: none; flex: 1 1 0%; flex-direction: column; min-height: 0; }
.bt-cupom.open .bt-cupom-body { display: flex; }
.bt-cupom .slip-items { flex: 1 1 auto; min-height: 60px; overflow-y: auto; }
.bt-cupom .slip-foot { flex: 0 0 auto; }
.visual-bt .slip-head { padding: 12px 14px 8px; border: 0; border-radius: 0; background: none; color: var(--text); font-size: 15px; font-weight: 650; }
.visual-bt .slip-head .pill { background: var(--primary); color: var(--primary-text); }
.visual-bt .slip-head .link-btn { color: var(--muted); }
/* Simples / Dupla / Múltipla as the original's segmented control */
.visual-bt .slip-kinds { gap: 4px; margin: 0 14px 8px; padding: 3px; border: 0; border-radius: 9px; background: var(--surface-2); }
.visual-bt .slip-kinds span { padding: 6px; border: 0; border-radius: 7px; color: var(--muted); font-weight: 550; }
.visual-bt .slip-kinds span.active { background: var(--text); color: var(--surface); }
.visual-bt .slip-item .pick b, .visual-bt .slip-summary .prize dd { color: var(--bt-price); }
.visual-bt .quick-stakes button { border-radius: 8px; }
.visual-bt .slip [data-place] { border-radius: 8px; background: var(--primary); color: var(--primary-text); font-weight: 650; }
.visual-bt .slip-fab { display: none !important; }
/* the scrim behind the open slip and the drawer */
.bt-scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 44; padding: 0; border: 0; background: var(--bt-scrim); opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility 0s .25s; }
body.visual-bt.slip-open .bt-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ----- up to 1280px: the right column becomes a drawer (the ticket button of the top bar) ----- */
@media (max-width: 1280px) {
  body.visual-bt .layout.bt-has-aside { grid-template-columns: var(--bt-side-w) minmax(0, 1fr) !important; }
  body.visual-bt .layout.no-side.bt-has-aside { grid-template-columns: minmax(0, 1fr) !important; }
  body.visual-bt .layout.bt-has-aside { grid-template-areas: "side top" "side main"; }
  body.visual-bt .layout.no-side.bt-has-aside { grid-template-areas: "top" "main"; }
  .bt-top .bt-aside-btn { display: grid; }
  .bt-right { position: fixed; top: 0; right: 0; bottom: 0; z-index: 47; width: var(--bt-slip-w); max-width: 100%; max-height: none; padding: 10px; background: var(--bg);
    transform: translateX(105%); visibility: hidden; transition: transform .25s ease-out, visibility 0s .25s; }
  /* the shadow only when open: closed, it leaked a grey strip down the right edge of the phone, beside the games */
  body.aside-open .bt-right { transform: none; visibility: visible; box-shadow: -12px 0 32px rgba(8, 10, 16, .25); transition: transform .25s ease-out; }
  body.visual-bt.aside-open .bt-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  .bt-right-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; font-size: 15px; }
  .bt-league-head, .bt-match { grid-template-columns: 52px minmax(120px, 1fr) minmax(200px, 330px) 34px; gap: 10px; }
  .bt-league-head { grid-template-columns: minmax(120px, 1fr) minmax(200px, 330px) 34px; }
  .visual-bt .bt-match .odd { padding: 6px 8px; }
}

/* ----- medium screens: the left column becomes the side menu (☰) ----- */
@media (max-width: 1100px) {
  body.visual-bt .layout, body.visual-bt .layout.bt-has-aside, body.visual-bt .layout.no-side { grid-template-columns: minmax(0, 1fr) !important; }
  body.visual-bt .layout.bt-has-aside, body.visual-bt .layout.no-side.bt-has-aside { grid-template-areas: "top" "main"; }
  .bt-burger { display: block; border: 0; background: none; color: inherit; font-size: 1.3rem; padding: 6px; }
  .bt-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: 86vw; max-width: 320px; max-height: none; padding: 18px 14px 28px;
    background: var(--bg); transform: translateX(-105%); transition: transform .2s; }
  .visual-bt.nav-open .bt-side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .visual-bt.nav-open .bt-backdrop { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 65; border: 0; background: var(--bt-scrim); }
  .bt-drawer-only { display: block; }
  /* the logo is drawn for the coloured top bar: the head of the menu keeps that colour */
  .bt-drawer-head { margin: -18px -14px 10px; padding: 18px 14px 14px; text-align: center; background: var(--primary); }
  .bt-drawer-head .bt-logo { justify-content: center; margin-bottom: 12px; }
  .bt-drawer-head .brand-logo { height: 44px; }
  .bt-drawer-btn { display: block; padding: 11px; border-radius: 10px; background: var(--primary-text); color: var(--primary); font-weight: 700; }
  .bt-drawer-btn:hover { color: var(--primary); }
  .bt-drawer-links { margin-top: 14px; }
  .bt-drawer-links a { display: flex; align-items: center; gap: 10px; padding: 11px 6px; border-top: 1px solid var(--border); color: var(--text); }
  .bt-hl-track { grid-auto-columns: 300px; }
}

/* ----- phones and tablets ----- */
@media (max-width: 960px) {
  .bt-pop { display: block; margin: 0 0 18px; }
}
@media (max-width: 860px) {
  .bt-top { gap: 10px; padding: 0 10px; height: 56px; }
  .bt-nav { display: none; }
  .bt-search { max-width: none; }
  .bt-search input { height: 36px; }
  .bt-top-right .bt-balance small { display: none; }
  .bt-chips { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: var(--primary); scrollbar-width: none; }
  .bt-chips::-webkit-scrollbar { display: none; }
  .bt-chips > a, .bt-chips > button { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border: 0; border-radius: 999px;
    background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
  .bt-chips .bt-chip-icon { padding: 7px 14px; border: 2px solid rgba(21, 25, 35, .55); font-size: 14px; }
  .bt-chips a.active { outline: 2px solid var(--primary-text); }
  .bt-chips i { color: var(--muted); }
  .bt-chips .bt-chip-icon i { color: var(--text); }
  /* one column */
  body.visual-bt .layout, body.visual-bt .layout.no-slip, body.visual-bt .layout.no-side, body.visual-bt .layout.bt-has-aside { display: flex; flex-direction: column; align-items: stretch; padding: 12px; }
  body.visual-bt .layout > * { min-width: 0; max-width: 100%; }
  .bt-title { font-size: 22px; }
  .bt-hl-track { grid-auto-columns: calc(100% - 28px); }
  .bt-hl-card { min-height: 184px; }
  .bt-hl-arrow { display: none; }
  /* each game a card: the tags, the time and the teams with "+N", then the odds on their own line */
  .visual-bt .league { background: none; border-radius: 0; overflow: visible; }
  .bt-league-head { display: flex; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--surface); }
  .bt-league-head .league-name { flex: 1; }
  .bt-cols { display: none; }
  .bt-match { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "when teams more" "odds odds odds"; gap: 8px 10px; margin: 0 0 8px; padding: 10px;
    border: 0; border-radius: 10px; }
  .visual-bt .league-head + .bt-match, .bt-match { border-top: 0; }
  .bt-action-list { gap: 8px; }
  .bt-action-list .bt-match { margin: 0; }
  .bt-match.bt-has-tags { padding-top: 26px; }
  .bt-tags { border-top-left-radius: 10px; }
  .bt-when { grid-area: when; }
  .bt-teams { grid-area: teams; }
  .bt-more { grid-area: more; align-self: start; }
  .visual-bt .bt-match .match-odds { grid-area: odds; gap: 6px; }
  .visual-bt .bt-match .odd { min-height: 38px; padding: 4px 10px; }
  .bt-day-chips { margin: 0 -12px; padding: 0 12px; }
  .bt-market-bar { top: 56px; margin: 12px -12px 0; border-radius: 0; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .6); }
  .bt-market-search { display: none; }
  .bt-ca-switch { margin-right: 0; }
  .visual-bt .market summary { padding: 11px 12px; }
  .visual-bt .market .market-odds { gap: 6px; padding: 0 12px 12px; }
  .visual-bt .market .market-odds.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visual-bt .market-odds.grid-3 .odd { gap: 4px; padding: 0 8px; }
  .bt-sug-dialog { max-height: 92vh; }
  .bt-sug-controls { flex-wrap: wrap; }
  .sug-foot { flex-wrap: wrap; }
  .sug-go { width: 100%; margin: 0; }
}
/* phones: the bottom bar, the brand colour fading down the home, the slip's bar above the bottom bar */
@media (max-width: 700px) {
  body.visual-bt { padding-bottom: calc(var(--bt-bottom-h) + env(safe-area-inset-bottom)); }
  .bt-top .bt-aside-btn { display: none; }
  .bt-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 45; display: flex; height: calc(var(--bt-bottom-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: var(--surface); }
  .bt-bn { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-width: 0; color: var(--muted); }
  .bt-bn:hover { color: var(--muted); }
  .bt-bn-ico { display: grid; place-items: center; width: 44px; height: 26px; border: 1px solid transparent; border-radius: 16px; font-size: 16px; }
  .bt-bn-label { font-size: 10px; font-weight: 700; line-height: 12px; }
  .bt-bn.active, .bt-bn.active:hover { color: var(--text); }
  .bt-bn.active .bt-bn-ico { background: color-mix(in srgb, var(--text) 10%, transparent); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
  body.bt-home .bt-layout { background: linear-gradient(to bottom, var(--primary), color-mix(in srgb, var(--primary) 90%, transparent) 80px,
    color-mix(in srgb, var(--primary) 65%, transparent) 160px, color-mix(in srgb, var(--primary) 35%, transparent) 240px,
    color-mix(in srgb, var(--primary) 10%, transparent) 320px, transparent 400px) no-repeat; }
  body.bt-home .bt-hl-card { border-color: transparent; }
  .visual-bt .slip.bt-cupom { right: 0; bottom: calc(var(--bt-bottom-h) + env(safe-area-inset-bottom)); left: 0; width: auto; max-width: none;
    max-height: calc(100vh - var(--bt-bottom-h) - 70px); }
  .bt-right { width: 100%; }
  body.visual-bt:not(.slip-off) .footer { padding-bottom: 150px; }
}
/* phones: the search is an icon that opens over the top bar when touched (the logo and the buttons stay put behind it) */
@media (max-width: 600px) {
  .bt-install { justify-content: flex-start; padding-right: 8px; }
  .bt-search { flex: 0 0 38px; margin-left: auto; }
  .bt-search input { padding: 0; color: transparent; cursor: pointer; }
  .bt-search input::placeholder { color: transparent; }
  .bt-search i { left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
  .bt-search:focus-within { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; }
  .bt-search:focus-within input { padding: 0 14px 0 40px; color: var(--text); background: var(--surface); cursor: text; }
  .bt-search:focus-within input::placeholder { color: var(--muted); }
  .bt-search:focus-within i { left: 14px; transform: translateY(-50%); color: var(--muted); }
}
@media (max-width: 420px) {
  .bt-logo .brand-logo { height: 32px; }
  .bt-icon { width: 32px; height: 32px; }
  .bt-login { padding: 7px 12px; }
  .visual-bt .bt-match .odd { padding: 4px 8px; }
}

@media print {
  .bt-install, .bt-top, .bt-chips, .bt-bottom, .bt-side, .bt-backdrop, .bt-right, .bt-hl-arrow, .bt-cupom, .bt-scrim { display: none !important; }
  body.visual-bt { padding-bottom: 0; background: #fff; }
}
