/* The match list fills the page until a player needs the bet slip.
   Size classes follow the available lobby width, including inside Telegram. */
.sports-terminal[hidden],
.sports-terminal [hidden] { display: none !important; }

/* While the terminal is live in Ставки it replaces the tiles, schedule pages and hosted books.
   They stay in the page and come back when the terminal is off. */
#lobby-sports.has-sports-terminal > :not(.lobby-section-heading, .sports-terminal) { display: none !important; }
/* The catalogue scrolls with the document. The clipping container is for embedded games. */
#games-hub[data-game-view="catalog"][data-lobby-section="sports"] .game-content > .game-panels:has(.has-sports-terminal) {
  overflow: visible; container-type: normal;
}

.sports-terminal {
  --st-section-gap: 24px;
  --st-card-strong: var(--raised);
  --st-line: color-mix(in srgb, var(--line) 80%, transparent);
  --st-odds: color-mix(in srgb, var(--raised) 85%, var(--surface));
  --st-odds-hover: color-mix(in srgb, var(--accent) 16%, var(--raised));
  --st-pick: var(--accent);
  --st-on-pick: var(--theme-on-accent, #fff);
  --st-bar-bottom: calc(var(--lobby-tabbar-height, 0px) + max(env(safe-area-inset-bottom, 0px), var(--ncb-tg-inset-bottom, 0px)));
  --st-slip-top: calc(var(--st-header-height, var(--lobby-header-height, 0px)) + 12px);
  --st-slip-bottom: max(var(--st-bar-bottom), var(--st-keyboard-bottom, 0px));
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
}
.sports-terminal :where(button) { font: inherit; color: inherit; }
.sports-terminal :where(h3, h4, h5, p) { margin: 0; }
.sports-terminal[data-size="narrow"] {
  --st-section-gap: 20px;
}

/* Sport headers have their own palettes. Tournament accents carry through to their matches. */
.sports-terminal [data-sport="dota2"] { --st-sport: #ee736c; }
.sports-terminal [data-sport="cs2"] { --st-sport: #e9b45d; }
.sports-terminal [data-sport="soccer"] { --st-sport: #4bc791; }
.sports-terminal [data-sport="hockey"] { --st-sport: #62c1f4; }
.sports-terminal [data-sport="basketball"] { --st-sport: #f18956; }
.sports-terminal [data-sport="tennis"] { --st-sport: #b7cd59; }
.sports-terminal [data-sport="table-tennis"] { --st-sport: #56cebf; }
.sports-terminal [data-sport="mma"] { --st-sport: #c58bed; }
.sports-terminal :is(.st-rail-item, .st-game, .st-tour, .st-group, .sports-ev-tour-block) {
  --st-category: var(--st-tournament, var(--st-sport, var(--accent)));
}

/* Page heading and utilities */
#lobby-sports.has-sports-terminal:not(.has-sports-history) > .lobby-section-heading { display: flex; }
#games-hub #lobby-sports.has-sports-terminal:not(.has-sports-history) #sports-heading { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; line-height: 1.1; }
#lobby-sports.has-sports-terminal #sports-heading .lobby-section-icon { display: none; }
.st-loader { padding-block: 2rem; color: var(--muted); }
.st-shell { display: grid; gap: clamp(16px, 2vw, 24px); min-width: 0; }
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; min-width: 0; border-bottom: 1px solid var(--st-line); }
.st-head-info, .st-balance { display: flex; align-items: center; gap: 10px; }
.st-head-info { margin-inline-start: auto; flex-wrap: wrap; }
.st-balance { gap: 5px; font-size: .875rem; }
.st-balance-label { color: var(--muted); }
.st-balance-value { font-variant-numeric: tabular-nums; }
.st-head-bets { min-height: 44px; padding: 0 5px; border: 0; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; }
.st-head-bets:hover { color: var(--ink); }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-width: 0; gap: 28px; }

/* Sport filters and their tournament sub-selection */
.st-rail { min-width: 0; }
.st-divisions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  width: fit-content; max-width: 100%; box-sizing: border-box; padding: 3px; margin-block-end: 5px;
  border: 1px solid var(--st-line); border-radius: 12px; background: var(--surface);
}
.st-division {
  min-width: 0; min-height: 44px; padding: 6px clamp(14px, 2vw, 28px); border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 1rem; font-weight: 700; cursor: pointer;
}
.st-division:hover { background: var(--raised); color: var(--ink); }
.st-division[aria-pressed="true"] { background: var(--st-pick); color: var(--st-on-pick); }
.st-division:focus-visible, .st-search-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sports-terminal[data-size="narrow"] .st-divisions { width: 100%; }
.st-rail-sports { display: flex; max-width: 100%; gap: clamp(12px, 2vw, 26px); overflow-x: auto; scrollbar-width: thin; }
.st-rail-item {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  min-height: 46px; padding: 0 2px; border: 0; background: transparent; color: var(--muted);
  font-size: .9375rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.st-rail-item { border-block-end: 2px solid transparent; }
.st-rail-item:is(:hover,.is-current) { color: var(--ink); }
.st-rail-item.is-current { border-block-end-color: var(--accent); }
.st-live-view::before {
  content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--muted);
}
.st-live-view[data-has-live="true"]::before { background: #82efba; }
.st-icon { display: inline-grid; width: 20px; height: 20px; flex: none; color: var(--st-category, currentColor); }
.st-icon svg { width: 100%; height: 100%; }
.st-rail-item[data-sport="all"] .st-icon { display: none; }
.st-count { font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.st-rail-tours {
  grid-column: 1 / -1; display: flex; gap: 6px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 6px 2px; border-top: 1px solid var(--st-line); scrollbar-width: thin;
}
.st-tour { display: inline-flex; flex: none; align-items: center; gap: 7px; max-width: min(350px,85vw); min-height: 36px; padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: .8125rem; cursor: pointer; }
.st-tour:hover, .st-tour.is-current { background: var(--st-odds); }
.st-tour.is-current { color: var(--ink); border-color: var(--st-line); }
.st-tour-name { min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.st-tour-game { width: 14px; height: 14px; }
.st-rail-item:focus-visible { outline-offset: -2px; }
.st-board-layout { min-width: 0; }
.st-search { display: block; grid-column: 1 / -1; min-width: 0; margin-block-end: 16px; }
.st-search-input {
  width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--theme-field, var(--surface));
  color: var(--ink); font: inherit; font-size: 1rem;
}
.st-search-input::placeholder { color: var(--muted); opacity: 1; }
.st-tour-picker { min-width: 0; }
.st-tour-picker .st-rail-tours {
  flex-direction: column; gap: 2px; max-height: 54dvh;
  overflow: auto; overscroll-behavior: contain; border: 0; padding: 3px;
}
.st-tour-picker .st-tour { width: 100%; max-width: none; min-height: 44px; text-align: start; }
.st-tour-picker .st-count { margin-inline-start: auto; }
.st-tour-toggle {
  display: flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px;
  padding: 6px 10px; border: 1px solid var(--st-line); border-radius: 6px;
  background: var(--st-odds); color: var(--ink); font: inherit; text-align: start; cursor: pointer;
}
.st-tour-caption { color: var(--muted); font-size: .8125rem; }
.st-tour-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-tour-toggle[aria-expanded="true"] .st-chevron { transform: rotate(180deg); }
.sports-terminal:not([data-size="wide"]) .st-tour-picker { margin-bottom: 12px; }
.sports-terminal:not([data-size="wide"]) .st-tour-toggle[aria-expanded="false"] + .st-rail-tours { display: none; }
.sports-terminal[data-size="wide"] .st-board-layout:has(> .st-tour-picker) {
  display: grid; grid-template-columns: clamp(156px, 16%, 220px) minmax(0, 1fr);
  align-items: start; gap: clamp(16px, 2vw, 28px);
}
.sports-terminal[data-size="wide"] .st-board-layout:has(> .st-tour-picker) > .st-search { margin-block-end: 0; }
.sports-terminal[data-size="wide"] .st-tour-picker { position: sticky; top: 12px; }
.sports-terminal[data-size="wide"] .st-tour-picker .st-rail-tours { max-height: calc(100dvh - 32px); }
.sports-terminal[data-size="wide"] .st-tour-toggle { display: none; }
.sports-schedule-layout { display: grid; gap: 16px; min-width: 0; align-items: start; }
.sports-schedule-layout[hidden], .sports-schedule-layout > [hidden] { display: none; }
.sports-schedule-layout > .sports-discovery-nav { grid-column: 1 / -1; }
.sports-schedule-toggle, .sports-schedule-option {
  display: flex; align-items: center; min-height: 44px; max-width: 100%; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink);
  font: inherit; text-align: start; text-decoration: none; overflow-wrap: anywhere;
}
.sports-schedule-toggle { cursor: pointer; }
.sports-schedule-options { display: grid; gap: 3px; max-height: 54dvh; padding: 3px; overflow: auto; overscroll-behavior: contain; }
.sports-schedule-option[aria-current], .sports-schedule-layout .sports-discovery-game[aria-current] { border-color: var(--accent); }
.sports-schedule-option:focus-visible, .sports-schedule-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 1079px) {
  .sports-schedule-toggle[aria-expanded="false"] + .sports-schedule-options { display: none; }
}
@media (min-width: 1080px) {
  .sports-schedule-layout:has(> .sports-schedule-picker:not([hidden])) {
    grid-template-columns: minmax(156px, 16%) minmax(0, 1fr);
  }
  .sports-schedule-picker { position: sticky; top: 12px; }
  .sports-schedule-options { max-height: calc(100dvh - 32px); }
  .sports-schedule-toggle { display: none; }
}
.sports-schedule-compact .sports-mt-cards { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.sports-schedule-compact .sports-mt { gap: 6px; padding: 9px 12px; border-radius: 9px; }
.sports-schedule-compact .sports-mt-teams { gap: 3px; }
.sports-schedule-compact .sports-mt-name { white-space: normal; overflow-wrap: anywhere; }
.sports-schedule-compact .sports-mt-badge { width: 22px; height: 22px; }

/* ---------- Matches ---------- */
.st-main { display: grid; gap: var(--st-section-gap); min-width: 0; }
.st-main-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.st-title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.035em; }
.st-filters { display: flex; gap: 2px; }
.st-pill { min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .875rem; cursor: pointer; }
.st-pill.is-current, .st-pill:hover { background: var(--st-odds); color: var(--ink); }
.st-group { display: grid; min-width: 0; }
:is(.st-duels, .st-duels > .st-group-body) > .sports-ev-bets:not(.is-empty) { gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.st-duels > .st-group-body { padding: 0; }
.st-duels :is(.sports-ev-game, .sports-ev-tour-block) { border: 0; border-bottom: 1px solid var(--st-line); border-radius: 0; background: transparent; }
.st-duels .sports-ev-tour-block { gap: 8px; padding: 8px 0; }
.st-game { display: grid; gap: 4px; min-width: 0; }
.st-game-body { display: grid; gap: var(--st-section-gap); min-width: 0; }
.st-game.is-folded > .st-game-body, .st-group.is-folded > .st-group-body { display: none; }
.st-group-body { display: grid; min-width: 0; }
.st-game-head {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 0;
  border: 0; background: transparent; color: inherit; text-align: start; cursor: pointer;
}
.st-game-head .st-game-name { font-size: 1.25rem; letter-spacing: -.025em; font-weight: 680; }
.st-game-head .st-icon { width: 23px; height: 23px; }
.st-game-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-game-head:focus-visible, .st-group-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-group-head.is-foldable { cursor: pointer; }
.st-group-toggle {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.st-chevron { display: inline-grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform .18s ease; }
.st-chevron svg { width: 18px; height: 18px; }
.is-folded > .st-game-head .st-chevron, .is-folded > .st-group-head .st-chevron { transform: rotate(-90deg); }
.st-group.is-folded > .st-group-head { border-bottom-color: transparent; }
@media (hover: hover) { .st-game-head:hover .st-game-name, .st-group-toggle:hover .st-chevron { color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .st-chevron { transition: none; } }
.st-group-head {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 0 4px;
  border-bottom: 1px solid var(--st-line); color: var(--muted);
}
.st-group-head > .st-icon { display: none; }
.st-group-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; }
.st-group-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.st-event {
  display: grid; align-items: center; gap: 0 16px; padding: 14px 4px; min-width: 0; border-bottom: 1px solid var(--st-line);
  grid-template-columns: 68px minmax(0, 1fr) auto 44px; grid-template-areas: "start info odds more" "markets markets markets markets";
}
.st-start { grid-area: start; display: grid; line-height: 1.2; }
.st-start-day { color: var(--muted); font-size: 12px; }
.st-start-time { font-size: 15px; font-variant-numeric: tabular-nums; }
.st-event-info { grid-area: info; display: grid; gap: 4px; min-width: 0; }
.st-teams { display: grid; gap: 2px; min-width: 0; }
.st-side { --team-mark-size: 1.15em; display: inline-flex; align-items: center; gap: .35em; min-width: 0; max-width: 100%; vertical-align: middle; }
.st-side-name, .st-team { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.st-team { font-size: 1rem; font-weight: 650; line-height: 1.35; }
.st-event-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.st-chip { color: var(--muted); font-size: .75rem; font-weight: 500; }
.st-event-market { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-event-phase { color: var(--text); font-weight: 700; }
.st-event-phase.is-in-play { color: var(--theme-error-ink, var(--danger)); }
.st-betting-closed { grid-area: odds; color: var(--muted); font-size: 13px; }
.st-event-odds { grid-area: odds; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 200px; }
/* Football 1X2: three prices (1, X, 2). */
.st-event-odds.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 240px; }
.st-more { grid-area: more; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; font-weight: 650; font-size: .875rem; cursor: pointer; color: var(--muted); }
.st-more:hover, .st-more.is-open { color: var(--accent); }
.st-odds {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px; background: var(--st-odds); cursor: pointer; text-align: start;
  transition: background-color .15s ease, border-color .15s ease;
}
.st-odds:hover { background: var(--st-odds-hover); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.st-odds:focus-visible, .st-more:focus-visible, .st-pill:focus-visible, .st-rail-item:focus-visible, .st-tour:focus-visible, .st-place:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-odds-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 13px; color: var(--muted); }
.st-odds-price { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.st-odds.is-picked { background: var(--st-pick); border-color: var(--st-pick); }
.st-odds.is-picked :is(.st-odds-name, .st-odds-price) { color: var(--st-on-pick); }
.st-tour:has(.sports-league-label) { --st-category: var(--sports-league-gold); }
.st-tour:has(.sports-league-label):is(:hover, .is-current) { background: var(--st-odds); }
:is(.st-tour, .st-group-link):has(.sports-league-label):focus-visible { outline-color: var(--sports-league-gold); }
.st-duels .sports-ev-lucky-game { border: 0; border-radius: 0; background: transparent; }
.sports-lucky-row {
  border-color: var(--st-line, var(--line, #343943));
  background: var(--st-card-strong, var(--raised, #242932));
}
.sports-lucky-row .st-start-time { color: var(--muted); font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.sports-lucky-row .st-chip { border-color: currentColor; color: var(--sports-league-gold); }
.sports-lucky-row .st-odds {
  --lucky-odds-surface: var(--st-odds, var(--surface, #191c23));
  background: var(--lucky-odds-surface);
  color: inherit;
  font-family: inherit;
}
.sports-lucky-row .st-odds:hover:not(:disabled),
.sports-lucky-row .st-odds.is-picked,
.sports-lucky-row .st-odds.is-winner {
  background: var(--lucky-odds-surface);
  border-color: var(--sports-league-gold);
}
.sports-lucky-row .st-odds.is-picked .st-odds-name { color: var(--ink); }
.sports-lucky-row .st-odds:focus-visible { outline: 2px solid var(--sports-league-gold); outline-offset: 2px; }
.sports-lucky-row .st-odds .st-odds-price { color: var(--sports-league-gold); }
.sports-lucky-row .st-odds:disabled:not(.is-winner) { opacity: .55; }
.sports-lucky-row .st-odds:disabled { cursor: default; }
.st-markets {
  grid-area: markets; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding-top: 10px; border-top: 1px dashed var(--st-line);
}
.st-market { display: grid; gap: 6px; min-width: 0; }
.st-market-title { color: var(--muted); font-size: 12px; font-weight: 800; }
.st-market-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.st-empty { display: grid; gap: 4px; padding: 28px 0; }
.st-main.is-awaiting-fixtures { display: block; }
.st-main.is-awaiting-fixtures > * + * { margin-block-start: var(--st-section-gap); }
.st-main.is-awaiting-fixtures > :is(.st-empty, .st-loader) { position: sticky; top: var(--st-slip-top); }
.st-empty p { color: var(--muted); }

/* Narrow match list (phone, Telegram, and the matches column next to the slip). */
@media all {
  .sports-terminal[data-main="compact"] .st-event { grid-template-columns: 68px minmax(0, 1fr) 40px; grid-template-areas: "start info more" "odds odds odds" "markets markets markets"; }
  .sports-terminal[data-main="compact"] .st-event-odds { margin-block-start: 8px; }
  .sports-terminal[data-main="compact"] .st-event-odds { width: auto; }
  .sports-terminal[data-main="compact"] .st-markets { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .sports-lucky-row { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "start info" "odds odds"; }
  .sports-lucky-row .st-event-odds { width: auto; }
}

/* ---------- Slip ---------- */
.st-slip { min-width: 0; }
.st-slip-panel {
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; box-sizing: border-box;
  max-height: calc(100dvh - var(--st-slip-top) - var(--st-slip-bottom) - 12px);
  padding-inline-start: 20px; border-inline-start: 1px solid var(--st-line);
}
.st-tabs-row { display: flex; align-items: center; gap: 8px; }
.st-tabs { display: flex; gap: 16px; flex: 1; border-bottom: 1px solid var(--st-line); }
.st-tab { min-height: 40px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 650; font-size: .875rem; cursor: pointer; }
.st-tab.is-current { border-bottom-color: var(--accent); color: var(--ink); }
.st-sheet-close { display: none; width: 40px; height: 40px; border: 1px solid var(--st-line); border-radius: 10px; background: transparent; font-size: 20px; cursor: pointer; }
.st-slip-bar { display: none; }
.st-slip-body { display: grid; align-content: start; gap: 10px; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.st-slip-modes { display: flex; gap: 6px; }
.sports-terminal[data-size="narrow"] .st-head-info .st-slip-modes { display: none; }
.st-slip-mode { flex: 1; min-height: 36px; padding: 4px 10px; border: 1px solid var(--st-line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-weight: 700; }
.st-slip-mode[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.st-express-guide { color: var(--muted); font-size: 13px; line-height: 1.45; }
.st-combined-odds strong { overflow-wrap: anywhere; text-align: end; }
.st-combined-odds { flex-wrap: wrap; }
.st-combined-odds .st-draft-movement { flex-basis: 100%; }
.st-draft-movement { color: var(--ink); font-size: .8125rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.st-slip-empty { display: grid; justify-items: center; gap: 6px; padding: 18px 8px; text-align: center; }
.st-slip-empty p { color: var(--muted); font-size: 13px; }
.st-slip-empty-icon { width: 36px; height: 36px; color: var(--muted); }
.st-pick { display: grid; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.st-pick-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-pick-selection { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pick-odds { font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.st-pick-remove { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.st-pick-remove:hover { color: var(--ink); background: var(--st-odds); }
.st-pick-market, .st-pick-event { color: var(--muted); font-size: 13px; }
.st-pick-market { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-stake { display: grid; gap: 6px; }
.st-stake-label { color: var(--muted); font-size: 12px; font-weight: 750; }
.st-stake-input {
  width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--st-line); border-radius: 10px;
  background: var(--theme-field, var(--surface)); color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.st-stake-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.st-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.st-chip-button { min-height: 36px; border: 1px solid var(--st-line); border-radius: 9px; background: var(--st-odds); font-weight: 800; font-size: 13px; cursor: pointer; }
.st-chip-button:hover { background: var(--st-odds-hover); }
.st-payout { display: flex; justify-content: space-between; gap: 8px; }
.st-payout span { color: var(--muted); }
.st-payout strong { font-variant-numeric: tabular-nums; }
.st-place {
  min-height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: var(--st-on-pick); font-weight: 900; font-size: 15px; cursor: pointer;
}
.st-place:disabled { opacity: .55; cursor: not-allowed; }
.st-limits { color: var(--muted); font-size: 12px; line-height: 1.4; }
.st-feedback { padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.st-feedback.is-error { color: var(--theme-error-ink, var(--danger)); background: var(--theme-error-bg, transparent); }
.st-feedback.is-warn { color: var(--theme-warning-ink, var(--ink)); background: var(--theme-warning-bg, transparent); }
.st-feedback.is-success { color: var(--theme-success-ink, var(--positive)); background: var(--theme-success-bg, transparent); }
.st-feedback.is-info { color: var(--muted); }
.st-notice { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.st-notice p { font-size: 13px; line-height: 1.45; }
.st-secondary { min-height: 40px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 10px; background: transparent; color: var(--accent); font-weight: 800; cursor: pointer; }
.st-bet { display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--st-line); background: var(--surface); }
.st-bet + .st-bet { margin-block-start: 4px; }
.st-bet-top { display: flex; align-items: center; gap: 8px; }
.st-bet-event { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.st-status { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 850; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.st-status.is-won { color: var(--theme-success-ink, var(--positive)); background: var(--theme-success-bg, transparent); }
.st-status.is-lost { color: var(--theme-error-ink, var(--danger)); background: var(--theme-error-bg, transparent); }
.st-bet-line { color: var(--muted); font-size: 13px; }
.st-bet-sums { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; font-variant-numeric: tabular-nums; }

/* The panel and its secondary opener float without resizing the match list. */
.st-slip { position: fixed; z-index: 40; bottom: calc(var(--st-slip-bottom) + 12px); inset-inline-end: max(16px, env(safe-area-inset-right)); }
.st-slip:not(.is-open) .st-slip-panel { display: none; }
.st-slip:not(.is-open) .st-slip-bar {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--st-on-pick); font-weight: 750; cursor: pointer; box-shadow: 0 6px 22px var(--theme-shadow, #0005);
}
.st-slip-bar:focus-visible, .st-tab:focus-visible, .st-sheet-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-slip-bar .st-icon { color: inherit; }
.st-slip.is-open .st-sheet-close { display: inline-grid; place-items: center; }
.sports-terminal:not([data-size="narrow"]) .st-slip.is-open .st-slip-panel,
.sports-terminal .st-slip.is-anchored .st-slip-panel {
  position: fixed; z-index: 41; width: min(340px, calc(100vw - 24px)); margin: 0; padding: 16px;
  border: 1px solid var(--st-line); border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 12px 36px var(--theme-shadow, #0006);
  --slip-popup-top: var(--st-slip-top); --slip-popup-bottom: var(--st-bar-bottom);
}
.sports-terminal:not([data-size="narrow"]) .st-slip.is-open:not(.is-anchored) .st-slip-panel {
  inset-inline-end: 16px; bottom: calc(var(--st-slip-bottom) + 12px);
}

/* Phone and Telegram: the slip is a bar above the tab bar that opens as a sheet. */
@media all {
  .sports-terminal[data-size="narrow"] .st-head { grid-template-columns: minmax(0,1fr); gap: 0; }
  .sports-terminal[data-size="narrow"] .st-rail-sports { width: 100%; }
  .sports-terminal[data-size="narrow"] .st-head-info { grid-row: 3; gap: 8px; }
  .sports-terminal[data-size="narrow"] .st-balance { display: grid; gap: 0; line-height: 1.2; }
  .sports-terminal[data-size="narrow"] .st-balance-label { font-size: .75rem; }
  .sports-terminal[data-size="narrow"] .st-slip-panel { padding: 16px; border-inline-start: 0; }
  .sports-terminal[data-size="narrow"] .st-slip-bar {
    position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(var(--st-slip-bottom) + 10px);
  }
  .sports-terminal[data-size="narrow"] .st-slip-bar-label { flex: 1 1 auto; text-align: start; }
  .sports-terminal[data-size="narrow"] .st-slip-bar-odds { font-variant-numeric: tabular-nums; }
  .sports-terminal[data-size="narrow"] .st-slip-panel {
    position: fixed; z-index: 41; inset-inline: 0; bottom: var(--st-slip-bottom);
    max-height: min(80dvh, calc(100dvh - var(--st-slip-bottom) - max(12px, env(safe-area-inset-top), var(--ncb-tg-inset-top, 0px))));
    border-radius: 18px 18px 0 0; border-bottom: 0; background: var(--surface); box-shadow: 0 -12px 36px #0007;
    transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
  }
  .sports-terminal[data-size="narrow"] .st-slip.is-open .st-slip-panel { transform: none; visibility: visible; transition: transform .22s ease; }
  .sports-terminal[data-size="narrow"] .st-slip.is-open .st-slip-bar { display: none; }
  .sports-terminal[data-size="narrow"] .st-sheet-close { display: inline-grid; place-items: center; }
  .sports-terminal[data-size="narrow"].has-slip-bar { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .st-slip-panel { transition: none !important; } }
.sports-terminal[data-size="narrow"] .st-slip.is-anchored .st-slip-panel {
  inset: auto; transform: none; transition: none; border: 1px solid var(--st-line); border-radius: 16px;
}

/* Tournament and match detail navigation */
.st-teams-link { display: grid; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.st-teams-link:focus-visible, .st-group-link:focus-visible, .st-back:focus-visible, .st-group-all:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (hover: hover) { .st-teams-link:hover .st-team, .st-group-link:hover { color: var(--accent); } }
.st-group-link { max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.st-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; padding: 0 14px; border: 1px solid var(--st-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.st-back span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-match-title { overflow-wrap: anywhere; }
.dota-live-detail {
  display: grid; gap: 12px; min-width: 0; padding: 14px 0;
  border-block: 1px solid var(--line); color: var(--ink);
}
.dota-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.dota-live-title { margin: 0; font: inherit; font-weight: 750; }
.dota-live-watch { display: inline-flex; align-items: center; min-height: 36px; margin-inline-start: auto; color: var(--accent); font-weight: 650; }
.dota-live-watch:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.dota-live-clock, .dota-live-kills, .dota-live-summary { font-variant-numeric: tabular-nums; }
.dota-live-clock, .dota-live-note, .dota-live-faction { color: var(--muted); font-size: .8125rem; }
.dota-live-note { margin: 0; }
.dota-live-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dota-live-side { display: grid; align-content: start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.dota-live-side:first-child { padding-inline-end: 12px; }
.dota-live-side + .dota-live-side { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.dota-live-heroes { display: flex; flex-wrap: wrap; gap: 2px 5px; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.dota-live-hero:not(:last-child)::after { content: ','; }
.st-event-meta:has(.dota-live-summary) { flex-wrap: wrap; }
.dota-live-summary { color: var(--muted); font-size: .8125rem; }
.st-match-rule { margin: -4px 2px 0; color: var(--muted, #8b93b8); font-size: 13px; line-height: 1.45; }
.st-group-all { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid var(--st-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }

/* Match covers share the casino tiles' frame and spacing. Tournament headers span the grid. */
.sports-terminal { --st-tile-width: 210px; --st-tile-gap: 12px; --st-badge-size: 78px; }
.sports-terminal[data-size="narrow"] { --st-tile-width: 152px; --st-tile-gap: 8px; --st-badge-size: 52px; }
:is(.st-group, .st-group-body):has(> .st-match-tile),
:is(.sports-ev-bets, .sports-ev-tour-block):has(> .sports-ev-tile) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--st-tile-width)), 1fr));
  gap: var(--st-tile-gap); align-items: start;
}
.st-group:has(> .st-match-tile) > .st-group-head,
:is(.sports-ev-bets, .sports-ev-tour-block):has(> .sports-ev-tile) > :not(.sports-ev-tile) { grid-column: 1 / -1; }
.st-group-head + .st-group-body:has(> .st-match-tile) { padding-block-start: var(--st-tile-gap); }
.sports-terminal .st-event.st-match-tile {
  --st-tile-padding: clamp(8px, 1vw, 13px);
  position: relative; isolation: isolate; align-self: stretch; width: 100%; box-sizing: border-box;
  display: grid; grid-template: "top" auto "info" 1fr "odds" auto / minmax(0, 1fr);
  align-items: stretch; align-content: start; gap: 9px; min-width: 0;
  padding: var(--st-tile-padding); border: 1px solid var(--tile-ring, var(--st-line)); border-radius: var(--tile-radius, 10px);
  background: radial-gradient(ellipse at 15% 42%, color-mix(in srgb, var(--st-category) 14%, transparent), transparent 68%), var(--surface);
  color: var(--ink);
}
/* Reserve the usual 3:4 cover. Wrapped names can make the grid taller. */
.st-main:not(.is-match) .st-match-tile::before {
  content: ''; grid-area: top-start / 1 / odds-end / -1; align-self: start; justify-self: stretch;
  margin: calc(-1 * var(--st-tile-padding)); aspect-ratio: 3 / 4; visibility: hidden;
}
@media (hover: hover) {
  .sports-terminal .st-match-tile:hover { border-color: var(--tile-ring-hover, var(--accent)); }
}
.st-tile-top { grid-area: top; display: flex; align-items: start; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.st-match-tile .st-start { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.st-match-tile .st-start-day, .st-match-tile .st-start-time { font-size: .75rem; }
.st-match-tile .st-event-meta { flex: 1 1 auto; flex-wrap: wrap; justify-content: end; align-items: baseline; gap: 3px 6px; font-size: .6875rem; }
.st-match-tile .st-event-provider { max-width: 100%; }
.st-match-tile .st-more { min-width: 28px; min-height: 24px; margin: -3px -2px 0 0; font-size: .75rem; }
.st-match-tile .st-more:empty { display: none; }
.st-match-tile .st-event-info, .st-match-tile .st-teams-link { width: 100%; min-width: 0; align-content: center; }
.st-match-tile .st-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 2px; }
.st-tile-team { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 8px; min-width: 0; text-align: center; }
.st-team-badge {
  display: grid; place-items: center; width: min(100%, var(--st-badge-size)); aspect-ratio: 1;
  overflow: hidden; border-radius: 50%; color: var(--ink); background: color-mix(in srgb, var(--st-category) 16%, var(--raised));
}
.st-team-badge:has(.st-team-logo, .sports-team-mark.has-logo) { background: #e9edf3; }
.st-team-badge > .sports-team-mark { --team-mark-size: calc(var(--st-badge-size) * .78); width: 78%; height: auto; aspect-ratio: 1; }
.st-team-badge:has(> .sports-team-mark[hidden]) { visibility: hidden; }
.st-team-logo { grid-area: 1 / 1; display: block; width: 78%; height: 78%; object-fit: contain; }
.st-team-initials { grid-area: 1 / 1; font-size: calc(var(--st-badge-size) * .35); font-weight: 800; line-height: 1; }
.st-match-tile .st-team {
  justify-self: stretch; font-size: clamp(.8125rem, 1.25vw, 1rem); font-weight: 700; line-height: 1.2;
}
.st-tile-versus { align-self: start; margin-top: calc(var(--st-badge-size) / 2 - .375rem); font-size: .625rem; font-weight: 650; color: var(--muted); }
.sports-terminal .st-match-tile .st-event-odds { width: 100%; gap: 4px; margin: 0; align-self: end; }
.st-match-tile .st-event-odds > .st-odds {
  display: grid; grid-template-columns: auto auto; align-items: baseline; align-content: center; justify-content: center;
  gap: 2px 4px; min-width: 0; min-height: 44px; padding: 4px 2px; border-radius: 7px; text-align: center;
}
.st-match-tile .st-event-odds .st-odds-name { font-size: .625rem; }
.st-match-tile .st-event-odds .st-odds-price { font-size: clamp(.75rem, 1.25vw, 1rem); line-height: 1.2; }
.st-win-pct { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.st-odds.is-picked .st-win-pct { color: var(--st-on-pick); }
.st-match-tile .st-betting-closed { text-align: center; align-self: end; padding: 8px 0; }
.st-main.is-match > .st-group > .st-match-tile:only-of-type {
  grid-column: 1 / -1; justify-self: start; width: 100%; max-width: 660px;
  grid-template-rows: auto auto auto auto; grid-template-areas: "top" "info" "odds" "markets";
}
.st-main.is-match > .st-group > .st-match-tile:only-of-type .st-event-info { padding: 12px 0; }
.st-match-tile .st-markets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
.st-duels .sports-ev-tile { min-width: 0; padding: 0; border: 0; background: transparent; }
.st-duels .sports-ev-tile > .st-match-tile { width: 100%; }

/* Selected tournament fixtures share the match controls with the overview tiles. */
.st-fixtures { display: grid; gap: 14px; min-width: 0; }
.st-fixture-group { min-width: 0; }
.st-fixture-group > h5 { margin: 0 0 6px; font-size: .8125rem; color: var(--ink); }
.st-fixture-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 195px), 1fr));
  align-items: start; gap: 6px;
}
.st-fixtures .st-event.st-match-tile {
  --st-badge-size: 22px; gap: 5px; padding: 6px 8px; align-self: start;
  border-radius: 7px; background: var(--surface);
}
.st-main .st-fixtures .st-match-tile::before { content: none; }
.st-fixtures .st-tile-top { align-items: center; gap: 2px 4px; }
.st-fixture-group[data-group-by="date"] .st-start-day { display: none; }
.st-fixtures .st-tile-top .st-start { padding: 0; }
.st-fixtures .st-match-tile .st-teams { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.st-fixtures .st-tile-versus { display: none; }
.st-fixtures .st-tile-team {
  grid-template-columns: var(--st-badge-size) minmax(0, 1fr); align-items: center;
  justify-items: start; gap: 6px; text-align: start;
}
.st-fixtures .st-match-tile .st-team { font-size: .8125rem; line-height: 1.2; }
.st-fixtures .st-match-tile .st-event-odds > .st-odds {
  grid-template-columns: auto auto; min-height: 30px; padding: 3px 2px; gap: 1px 4px;
}
.st-fixtures .st-match-tile .st-event-odds .st-odds-price { font-size: .8125rem; }
.st-fixtures .st-win-pct { font-size: .6875rem; }
.st-fixtures .st-event.st-fixture-moneyline {
  grid-template: "top top" auto "info odds" auto "info odds" auto / minmax(0, 1fr) auto;
}
.st-fixtures .st-event.st-fixture-moneyline
  :is(.st-event-info, .st-teams-link, .st-teams, .st-event-odds) {
  display: grid; grid-template-rows: subgrid; align-self: stretch; align-content: stretch;
}
.st-fixtures .st-event.st-fixture-moneyline
  :is(.st-teams-link, .st-teams) { grid-row: 1 / -1; }
.st-fixtures .st-fixture-moneyline .st-teams { align-items: center; }
.st-fixtures .st-fixture-moneyline .st-event-odds {
  grid-template-columns: minmax(42px, auto);
}
.st-fixtures .st-fixture-moneyline .st-event-odds > [data-outcome="team1"] { grid-row: 1; }
.st-fixtures .st-fixture-moneyline .st-event-odds > [data-outcome="team2"] { grid-row: 2; }
@media (pointer: coarse) {
  .st-fixtures .st-match-tile .st-event-odds > .st-odds { min-height: 44px; }
}

/* The Games overview puts the match score between the teams and prices below. */
.st-sport-fixtures {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  align-items: start; gap: 10px; min-width: 0;
}
.st-line-entry { min-width: 0; container: scoreboard / inline-size; }
.st-sport-fixtures .st-lines-more { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
:is(.sports-terminal, .sports-fixture-draw) .st-event.st-match-tile.st-board-line {
  --st-badge-size: 43px; --scoreboard-muted: #c2d4dc;
  grid-template: "top" auto "info" 1fr "odds" auto / minmax(0, 1fr);
  gap: 8px; padding: 7px 13px 13px; border: 1px solid #36505e; border-radius: 12px;
  background: radial-gradient(ellipse at 58% -80%, #487e97, transparent 72%), #13242f;
  color: #fbfcfc;
}
.st-main:not(.is-match) .st-board-line::before { content: none; }
.st-board-line .st-tile-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 4px; min-height: 38px;
}
.st-board-line .st-tile-top .st-event-meta { grid-column: 1 / -1; grid-row: 2; justify-content: start; color: var(--scoreboard-muted); }
.st-board-line .st-event-meta > :not(ncb-match-countdown, .st-event-market) { display: none; }
.st-line-caption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0;
  color: var(--scoreboard-muted); font-size: .75rem; font-weight: 600; line-height: 1.3;
}
.st-line-tournament, .st-line-sport { min-width: 0; overflow-wrap: anywhere; }
.st-line-time { flex: none; max-width: 55%; text-align: end; font-variant-numeric: tabular-nums; }
.st-line-time.is-live { color: #82efba; font-weight: 750; }
.st-line-time.is-live::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px;
  border-radius: 50%; background: currentColor; vertical-align: .12em;
}
.st-board-line .st-teams-link { min-height: 68px; padding-block: 2px 6px; }
.st-board-line .st-teams { align-items: start; gap: 6px; }
.st-board-line .st-tile-team { gap: 6px; }
.st-board-line .st-team-badge { border-radius: 10px; }
.st-board-line .st-team { color: #fbfcfc; font-size: .9375rem; line-height: 1.2; }
.st-board-line .st-teams-link:hover .st-team { text-decoration: underline; text-underline-offset: 2px; }
.st-scoreboard-center {
  display: grid; align-content: center; justify-items: center; gap: 4px; min-height: var(--st-badge-size);
  max-width: 8.5em; text-align: center;
}
.st-scoreboard-digits {
  display: inline-flex; align-items: center; gap: .07em; font-size: clamp(2rem, 11cqi, 3.25rem);
  font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1;
}
.st-scoreboard-digits.is-long { font-size: clamp(1.25rem, 6.5cqi, 2rem); }
.st-score-separator { color: #9bb3bf; font-size: .68em; }
.st-scoreboard-vs { color: #a9bdc7; font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.st-scoreboard-period { max-width: 10ch; overflow-wrap: anywhere; color: var(--scoreboard-muted); font-size: .75rem; font-weight: 600; line-height: 1.2; }
.st-match-tile:not(.st-board-line) .st-line-score {
  justify-self: end; color: var(--theme-success-ink, var(--positive, var(--ink)));
  font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2;
}
.sports-terminal .st-board-line .st-event-odds { gap: 6px; }
.st-board-line .st-event-odds > .st-odds {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 5px;
  min-height: 44px; min-width: 44px; padding: 6px 9px; border: 1px solid #4c6978;
  border-radius: 7px; background: #203845; color: white;
}
.st-board-line .st-event-odds .st-odds-name { color: #d6e4e9; font-size: .75rem; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.st-board-line .st-event-odds .st-odds-price { color: white; font-size: 1rem; font-weight: 750; }
.st-board-line .st-event-odds > .st-odds:hover:enabled { background: #315062; border-color: #88aab9; }
.st-board-line .st-event-odds > .st-odds.is-picked { background: #2355ba; border-color: #acc9ff; }
.st-board-line .st-event-odds > .st-odds:disabled { opacity: .58; cursor: default; }
.st-board-line .st-win-pct { display: none; }
.st-board-line .st-betting-closed {
  display: grid; place-items: center; min-height: 44px; padding: 5px; border-radius: 7px;
  border: 1px dashed #58707b; color: var(--scoreboard-muted); font-size: .8125rem;
}
.st-line-expand {
  display: grid; grid-column: 2; grid-row: 1; place-items: center; align-self: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--scoreboard-muted); cursor: pointer;
}
.st-line-expand .st-chevron { width: 14px; height: 14px; color: inherit; }
.st-line-expand .st-chevron svg { width: 100%; height: 100%; }
.st-line-expand:hover { background: #294352; color: white; }
.st-board-line :is(.st-line-expand, .st-teams-link, .st-odds):focus-visible { outline: 2px solid #b6d5ff; outline-offset: 2px; }
.st-line-expand[aria-expanded="true"] .st-chevron { transform: rotate(180deg); }
@container scoreboard (max-width: 324px) {
  .st-board-line .st-event-odds.is-three > .st-odds { flex-direction: column; justify-content: center; padding: 4px; }
}
.st-line-history {
  min-width: 0; margin-block: 0 6px; padding: 8px 10px; border: 1px solid var(--st-line);
  border-radius: 6px; background: var(--surface); font-size: .75rem;
}
.st-main.is-match .st-group > .st-line-history { grid-column: 1 / -1; }
.st-provider-props {
  min-width: 0; padding: clamp(10px, 2vw, 16px); border: 1px solid var(--st-line);
  border-radius: 8px; background: var(--surface);
}
.st-provider-props > h4 { font-size: .9375rem; line-height: 1.25; }
.st-provider-props-note { margin-block: 3px 12px; color: var(--muted); font-size: .8125rem; }
.st-provider-props-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr)); gap: 8px; }
.st-provider-props .st-market { min-width: 0; padding: 8px; border: 1px solid var(--st-line); border-radius: 6px; }
.st-provider-props .st-odds { min-width: 0; padding-inline: clamp(4px, 1vw, 10px); }
.st-provider-props .st-odds-name { white-space: normal; overflow-wrap: anywhere; }
.st-line-history h4 { color: var(--ink); font-size: .8125rem; line-height: 1.2; }
.st-line-history p { margin-block-start: 4px; color: var(--muted); }
.st-line-history > svg {
  display: block; width: 100%; height: 65px; margin-block: 6px 4px;
  overflow: hidden; border-radius: 3px; background: var(--st-odds);
}
.st-line-history [data-side="team1"] { --st-chart-series: var(--accent); }
.st-line-history [data-side="draw"] { --st-chart-series: var(--theme-warning-ink, var(--ink)); }
.st-line-history [data-side="team2"] { --st-chart-series: var(--theme-success-ink, var(--positive, var(--ink))); }
.st-line-history polygon { fill: color-mix(in srgb, var(--st-chart-series) 74%, var(--surface)); }
.st-line-history polyline {
  fill: none; stroke: var(--ink); stroke-width: 1; stroke-opacity: .7; vector-effect: non-scaling-stroke;
}
.st-line-history-legend, .st-line-history-times {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; font-variant-numeric: tabular-nums;
}
.st-line-history-legend > span { display: flex; align-items: baseline; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.st-line-history-legend > span::before {
  content: ""; flex: 0 0 7px; height: 7px; border-radius: 2px; background: var(--st-chart-series);
}
.st-line-history-times { justify-content: space-between; margin-block-start: 2px; color: var(--muted); }
