/* =========================================================
   TipTopBoom — sits on top of Bootstrap 5.3
   Palette: pitch green, chalk, floodlight amber
   ========================================================= */
:root,
[data-bs-theme="light"] {
  --tb-pitch: #0f3d2e;
  --tb-pitch-2: #175c43;
  --tb-chalk: #f3f6f2;
  --tb-surface: #ffffff;
  --tb-ink: #13241d;
  --tb-muted: #5b6d64;
  --tb-line: #d7e2da;
  --tb-amber: #f2b33d;
  --tb-amber-ink: #3a2a05;
  --tb-won: #1b8a52;
  --tb-won-soft: #e2f3e9;
  --tb-lost: #c4473c;
  --tb-lost-soft: #fbe8e5;
  --tb-void: #6f7f77;
  --tb-void-soft: #eceff0;
  --tb-up-soft: #fff3d9;
  --tb-radius: 14px;

  --bs-body-bg: var(--tb-chalk);
  --bs-body-color: var(--tb-ink);
  --bs-secondary-color: var(--tb-muted);
  --bs-border-color: var(--tb-line);
  --bs-link-color: var(--tb-pitch-2);
  --bs-link-color-rgb: 23, 92, 67;
  --bs-link-hover-color: var(--tb-pitch);
  --bs-body-font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1rem;
  --bs-focus-ring-color: rgba(242, 179, 61, .45);
}

[data-bs-theme="dark"] {
  --tb-chalk: #0b1813;
  --tb-surface: #11241c;
  --tb-ink: #e5eee9;
  --tb-muted: #93a69c;
  --tb-line: #234035;
  --tb-pitch-2: #4fbf8c;
  --tb-won: #45c483;
  --tb-won-soft: #143526;
  --tb-lost: #ef7a6e;
  --tb-lost-soft: #3a1c19;
  --tb-void-soft: #1f2c27;
  --tb-up-soft: #33290f;

  --bs-body-bg: var(--tb-chalk);
  --bs-body-color: var(--tb-ink);
  --bs-secondary-color: var(--tb-muted);
  --bs-border-color: var(--tb-line);
  --bs-link-color: #6fd3a5;
  --bs-link-color-rgb: 111, 211, 165;
  --bs-link-hover-color: #9be4c2;
  --bs-tertiary-bg: #16302a;
}

[x-cloak] { display: none !important; }
[hidden] { display: none !important; }

body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--tb-amber); outline-offset: 2px; }

.tb-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--tb-ink); color: #fff; padding: .5rem 1rem; border-radius: 6px; }

/* ---------- type ---------- */
.tb-h1, .tb-h2, .tb-h3, .tb-hero__title, .tb-brand, .tb-day__label, .tb-ticket__odds,
.tb-record dd, .tb-stat__value, .tb-error-code, .tb-form__item {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
.tb-h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.05; }
.tb-h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.1; }
.tb-h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: .6rem; }
.tb-prose { line-height: 1.7; max-width: 68ch; }
.tb-num { font-variant-numeric: tabular-nums; }
.text-won { color: var(--tb-won) !important; }
.text-lost { color: var(--tb-lost) !important; }

/* ---------- buttons ---------- */
.tb-btn-primary { --bs-btn-bg: var(--tb-pitch); --bs-btn-border-color: var(--tb-pitch); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--tb-pitch-2); --bs-btn-hover-border-color: var(--tb-pitch-2); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--tb-pitch); --bs-btn-disabled-bg: var(--tb-pitch); --bs-btn-disabled-color: #fff; font-weight: 600; }
[data-bs-theme="dark"] .tb-btn-primary { --bs-btn-bg: #2a8a62; --bs-btn-border-color: #2a8a62; --bs-btn-hover-bg: #33a274; }
.tb-btn-amber { --bs-btn-bg: var(--tb-amber); --bs-btn-border-color: var(--tb-amber); --bs-btn-color: var(--tb-amber-ink);
  --bs-btn-hover-bg: #ffc457; --bs-btn-hover-border-color: #ffc457; --bs-btn-hover-color: var(--tb-amber-ink); font-weight: 600; }
.tb-btn-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.45); --bs-btn-hover-bg: rgba(255,255,255,.1);
  --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; font-weight: 500; }
.tb-btn-outline, .tb-btn-ghost-dark { --bs-btn-color: var(--tb-ink); --bs-btn-border-color: var(--tb-line);
  --bs-btn-hover-bg: var(--tb-surface); --bs-btn-hover-border-color: var(--tb-muted); --bs-btn-hover-color: var(--tb-ink); background: var(--tb-surface); }
.tb-icon-btn { --bs-btn-color: var(--tb-muted); --bs-btn-hover-color: var(--tb-ink); --bs-btn-hover-bg: var(--tb-line); border: 0; border-radius: 10px; }
.tb-link { color: var(--tb-ink); text-decoration: none; font-weight: 500; }

/* ---------- nav ---------- */
.tb-nav { background: color-mix(in srgb, var(--tb-surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tb-line); }
.tb-brand { display: flex; align-items: center; gap: .55rem; font-size: 1.55rem; font-weight: 700; color: var(--tb-ink) !important; letter-spacing: .01em; }
.tb-brand__mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--tb-pitch);
  color: #fff; font-size: 1.25rem; position: relative; }
.tb-brand__mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--tb-amber); border: 2px solid var(--tb-surface); }
.tb-nav .nav-link { color: var(--tb-muted); font-weight: 500; border-radius: 8px; padding-inline: .75rem !important; }
.tb-nav .nav-link:hover { color: var(--tb-ink); }
.tb-nav .nav-link.active { color: var(--tb-ink); background: var(--tb-chalk); }
.tb-count { background: var(--tb-amber); color: var(--tb-amber-ink); font-size: .7rem; }
.tb-user-btn { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--tb-line); border-radius: 999px; padding: .25rem .75rem .25rem .25rem; color: var(--tb-ink); }
.tb-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tb-pitch); color: #fff; font-weight: 600; font-size: .9rem; }
.tb-demo-bar { background: var(--tb-up-soft); color: var(--tb-ink); font-size: .875rem; padding: .45rem 0; border-bottom: 1px solid var(--tb-line); }

/* ---------- hero: a pitch at night ---------- */
.tb-hero {
  position: relative; overflow: hidden; color: #eef5f0; padding: 4.5rem 0 3.5rem;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 80px, transparent 80px 160px),
    linear-gradient(160deg, #124a37 0%, var(--tb-pitch) 55%, #0a2b20 100%);
}
/* halfway line + centre circle, chalked faintly */
.tb-hero::before, .tb-hero::after { content: ""; position: absolute; pointer-events: none; border: 2px solid rgba(255,255,255,.08); }
.tb-hero::before { left: 62%; top: -10%; bottom: -10%; border-width: 0 0 0 2px; }
.tb-hero::after { width: 300px; height: 300px; border-radius: 50%; left: calc(62% - 150px); top: 50%; transform: translateY(-50%); }
.tb-hero .container { position: relative; z-index: 1; }
.tb-hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; line-height: .98; letter-spacing: -.005em; max-width: 13ch; margin-bottom: 1rem; }
.tb-hero__lead { font-size: 1.15rem; max-width: 46ch; color: rgba(238,245,240,.85); margin-bottom: 1.75rem; }

.tb-scoreboard { background: rgba(5, 22, 16, .55); border: 1px solid rgba(255,255,255,.12); border-radius: var(--tb-radius); padding: 1.25rem; backdrop-filter: blur(4px); }
.tb-scoreboard__head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .75rem; color: rgba(238,245,240,.8); }
.tb-scoreboard__head a { color: var(--tb-amber); text-decoration: none; }
.tb-scoreboard .tb-record { --tb-ink: #eef5f0; --tb-muted: rgba(238,245,240,.7); --tb-won: #5fd39a; --tb-lost: #ff8b7e; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; margin-top: 1rem; }

.tb-form { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.tb-form__item { width: 34px; height: 38px; display: grid; place-items: center; border-radius: 6px; font-size: 1.15rem; font-weight: 700; color: #fff; }
.tb-form__item--won { background: #1f9a5c; }
.tb-form__item--lost { background: #c4473c; }
.tb-form__item--void { background: #5e6d66; }
.tb-form__item:last-child { box-shadow: 0 0 0 2px var(--tb-amber); }

/* ---------- record ---------- */
.tb-record { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 0; }
.tb-record dt { font-weight: 500; font-size: .8rem; color: var(--tb-muted); line-height: 1.2; }
.tb-record dd { margin: 0; font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--tb-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .tb-record { grid-template-columns: repeat(2, 1fr); } }

/* ---------- panels, chips, search ---------- */
.tb-panel { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 1.5rem; }
.tb-panel--pitch { background: var(--tb-pitch); color: #eef5f0; border-color: var(--tb-pitch); }
.tb-panel--pitch a { color: var(--tb-amber); }

.tb-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tb-chip { border: 1px solid var(--tb-line); background: var(--tb-surface); color: var(--tb-muted); padding: .4rem 1rem; border-radius: 999px;
  font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.tb-chip:hover { color: var(--tb-ink); border-color: var(--tb-muted); }
.tb-chip.active { background: var(--tb-ink); border-color: var(--tb-ink); color: var(--tb-chalk); }

.tb-search { position: relative; min-width: min(320px, 100%); }
.tb-search .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--tb-muted); }
.tb-search .form-control { padding-left: 2.4rem; border-radius: 999px; background: var(--tb-surface); }

/* ---------- board ---------- */
.tb-day + .tb-day { margin-top: 2.25rem; }
.tb-day__label { font-size: 1.5rem; font-weight: 700; margin-bottom: .85rem; display: flex; align-items: baseline; gap: .6rem; }
.tb-day__label small { font-family: "Barlow", sans-serif; font-size: .9rem; font-weight: 500; color: var(--tb-muted); }
.tb-ticket-list { display: grid; gap: .9rem; }
@media (min-width: 992px) { .tb-ticket-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-ticket-list--grid .tb-ticket { grid-template-columns: minmax(0, 1fr) 200px; } }

/* ---------- the ticket ---------- */
.tb-ticket {
  --notch: 13px;
  display: grid; grid-template-columns: minmax(0, 1fr) 230px;
  background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius);
  position: relative;
}
.tb-ticket__main { padding: 1.15rem 1.35rem; min-width: 0; }
.tb-ticket__meta { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--tb-muted); margin-bottom: .35rem; flex-wrap: wrap; }
.tb-sport { font-weight: 600; color: var(--tb-ink); display: inline-flex; align-items: center; gap: .35rem; }
.tb-sport::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tb-pitch-2); }
.tb-sport--basketball::before { background: #e07a2f; }
.tb-sport--tennis::before { background: #b9c934; }
.tb-ticket__teams { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; color: var(--tb-ink); text-decoration: none;
  font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.tb-ticket__teams:hover span:not(.tb-ticket__vs) { text-decoration: underline; text-underline-offset: 3px; }
.tb-ticket__vs { font-size: .85rem; font-weight: 500; color: var(--tb-muted); }
.tb-ticket__foot { display: flex; align-items: center; gap: .65rem; margin-top: .5rem; font-size: .9rem; color: var(--tb-muted); flex-wrap: wrap; }
.tb-score { font-weight: 600; color: var(--tb-ink); font-variant-numeric: tabular-nums; }

.tb-why { margin-top: .75rem; font-size: .95rem; }
.tb-why summary { cursor: pointer; color: var(--tb-pitch-2); font-weight: 500; width: fit-content; list-style: none; }
.tb-why summary::-webkit-details-marker { display: none; }
.tb-why summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .75rem; margin-left: .35rem; display: inline-block; transition: transform .2s; }
.tb-why[open] summary::after { transform: rotate(180deg); }
.tb-why p { margin: .5rem 0 0; color: var(--tb-muted); line-height: 1.6; max-width: 64ch; }

/* the stub, separated by a perforation with punched notches */
.tb-ticket__stub {
  position: relative; padding: 1.15rem 1.25rem; border-left: 2px dashed var(--tb-line);
  display: flex; flex-direction: column; gap: .15rem;
}
.tb-ticket__stub::before, .tb-ticket__stub::after {
  content: ""; position: absolute; left: calc(-1 * var(--notch) - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--tb-chalk); border: 1px solid var(--tb-line);
}
.tb-ticket__stub::before { top: calc(-1 * var(--notch) - 1px); clip-path: inset(50% 0 0 0); }
.tb-ticket__stub::after { bottom: calc(-1 * var(--notch) - 1px); clip-path: inset(0 0 50% 0); }
.tb-ticket__market { font-size: .8rem; color: var(--tb-muted); }
.tb-ticket__pick { font-weight: 600; line-height: 1.25; }
.tb-ticket__odds { font-size: 2.6rem; font-weight: 700; line-height: 1; margin: .35rem 0 .25rem; font-variant-numeric: tabular-nums; color: var(--tb-ink); }
.tb-conf small { font-size: .78rem; color: var(--tb-muted); }
.tb-conf__bar { height: 5px; border-radius: 3px; background: var(--tb-line); overflow: hidden; margin-bottom: .2rem; }
.tb-conf__bar span { display: block; height: 100%; background: var(--tb-amber); border-radius: 3px; }

.tb-save { margin-top: .7rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%;
  border: 1px solid var(--tb-line); background: transparent; color: var(--tb-ink); border-radius: 10px; padding: .45rem .6rem; font-weight: 500; font-size: .9rem;
  transition: background-color .15s, border-color .15s, color .15s; }
.tb-save:hover { border-color: var(--tb-pitch-2); }
.tb-save.is-saved { background: var(--tb-pitch); border-color: var(--tb-pitch); color: #fff; }
.tb-save:disabled { opacity: .7; }
.tb-save .bi { transition: transform .2s; }
.tb-save.is-saved .bi { transform: scale(1.15); }

/* settled tickets: tint the stub with the outcome */
.tb-ticket--won  .tb-ticket__stub { background: var(--tb-won-soft);  border-radius: 0 var(--tb-radius) var(--tb-radius) 0; }
.tb-ticket--lost .tb-ticket__stub { background: var(--tb-lost-soft); border-radius: 0 var(--tb-radius) var(--tb-radius) 0; }
.tb-ticket--void .tb-ticket__stub { background: var(--tb-void-soft); border-radius: 0 var(--tb-radius) var(--tb-radius) 0; }
.tb-ticket--lost .tb-ticket__odds { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--tb-muted); }

@media (max-width: 640px) {
  .tb-ticket { grid-template-columns: 1fr; }
  .tb-ticket__stub { border-left: 0; border-top: 2px dashed var(--tb-line); display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: end; }
  .tb-ticket__stub::before { top: calc(-1 * var(--notch) - 1px); left: calc(-1 * var(--notch) - 1px); clip-path: inset(0 0 0 50%); }
  .tb-ticket__stub::after { top: calc(-1 * var(--notch) - 1px); bottom: auto; left: auto; right: calc(-1 * var(--notch) - 1px); clip-path: inset(0 50% 0 0); }
  .tb-ticket__market, .tb-ticket__pick, .tb-conf, .tb-save { grid-column: 1; }
  .tb-ticket__odds { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .tb-save { grid-column: 1 / -1; }
  .tb-ticket--won .tb-ticket__stub, .tb-ticket--lost .tb-ticket__stub, .tb-ticket--void .tb-ticket__stub { border-radius: 0 0 var(--tb-radius) var(--tb-radius); }
}

/* ---------- public matches ---------- */
.tb-leagues { display: grid; gap: .6rem; }
.tb-league-block { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden; }
.tb-league-block > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem;
  cursor: pointer; list-style: none; background: var(--tb-chalk); font-weight: 600; }
.tb-league-block > summary::-webkit-details-marker { display: none; }
.tb-league-block__name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tb-league-block__name img { object-fit: contain; }
.tb-league-block__country { font-weight: 400; color: var(--tb-muted); font-size: .9rem; }
.tb-league-block__meta { display: flex; align-items: center; gap: .6rem; color: var(--tb-muted); font-size: .9rem; font-weight: 500; flex-shrink: 0; }
.tb-league-block__meta .bi { transition: transform .2s; }
.tb-league-block[open] .tb-league-block__meta .bi { transform: rotate(180deg); }
.tb-matches { list-style: none; margin: 0; padding: 0; }
.tb-match { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; gap: .5rem 1rem; align-items: center; padding: .6rem 1rem; border-top: 1px solid var(--tb-line); }
.tb-match.has-tip { background: color-mix(in srgb, var(--tb-amber) 9%, var(--tb-surface)); }
.tb-match__time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; display: flex; flex-direction: column; line-height: 1.2; }
.tb-match__time small { color: var(--tb-muted); font-weight: 500; font-size: .75rem; }
.tb-match__live { font-size: .78rem; font-weight: 700; color: var(--tb-muted); }
.tb-match__live.is-live { color: var(--tb-lost); }
.tb-match__teams { display: grid; gap: .15rem; min-width: 0; max-width: 340px; }
.tb-match__team { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.tb-match__team img { object-fit: contain; flex-shrink: 0; }
.tb-match__team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-match__team strong { margin-left: auto; font-variant-numeric: tabular-nums; padding-left: .5rem; }
.tb-match__odds { display: flex; gap: 3px; }
.tb-match__odds span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: .15rem .3rem; border: 1px solid var(--tb-line);
  border-radius: 6px; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tb-match__odds small { font-size: .65rem; color: var(--tb-muted); font-weight: 500; }
.tb-match__pick { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.tb-match__pick:empty { display: none; }
.tb-pick { display: grid; grid-template-columns: auto auto; column-gap: .6rem; align-items: center; text-decoration: none; color: var(--tb-amber-ink);
  background: var(--tb-amber); border-radius: 9px; padding: .3rem .65rem; max-width: 240px; }
.tb-pick:hover { filter: brightness(1.05); color: var(--tb-amber-ink); }
.tb-pick__label { grid-column: 1 / -1; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.tb-pick__sel { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-pick__odds { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tb-pick .tb-status { grid-column: 1 / -1; justify-self: start; margin-top: .15rem; }
.tb-pick--won { background: var(--tb-won-soft); color: var(--tb-won); }
.tb-pick--lost { background: var(--tb-lost-soft); color: var(--tb-lost); }
.tb-pick--void { background: var(--tb-void-soft); color: var(--tb-void); }
.tb-more { display: block; text-align: center; margin-top: .6rem; padding: .7rem; border: 1px dashed var(--tb-line); border-radius: var(--tb-radius);
  text-decoration: none; font-weight: 600; color: var(--tb-pitch-2); }
.tb-more:hover { background: var(--tb-surface); }
@media (max-width: 760px) {
  .tb-match { grid-template-columns: 48px minmax(0, 1fr); }
  .tb-match__odds, .tb-match__pick { grid-column: 2; justify-self: start; align-items: flex-start; }
}

/* ---------- predictions ---------- */
a.tb-match__teams { color: inherit; text-decoration: none; }
a.tb-match__teams:hover span { text-decoration: underline; text-underline-offset: 3px; }
.tb-model { display: grid; grid-template-columns: auto auto; column-gap: .6rem; align-items: center; text-decoration: none;
  border: 1.5px solid var(--tb-pitch-2); color: var(--tb-ink); border-radius: 9px; padding: .25rem .6rem; max-width: 240px; }
.tb-model:hover { background: var(--tb-won-soft); color: var(--tb-ink); }
.tb-model__label { grid-column: 1 / -1; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tb-pitch-2); }
.tb-model__sel { font-weight: 600; font-size: .88rem; white-space: nowrap; }
.tb-model__pct { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tb-model--won { border-color: var(--tb-won); background: var(--tb-won-soft); }
.tb-model--lost { border-color: var(--tb-lost); background: var(--tb-lost-soft); }
.tb-model--lost .tb-model__label { color: var(--tb-lost); }
.tb-model--void { border-color: var(--tb-void); }

.tb-cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.tb-cats .tb-chip { white-space: nowrap; flex-shrink: 0; }
.tb-chip__count { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .2rem; border-radius: 999px; font-size: .78rem;
  background: var(--tb-chalk); color: var(--tb-muted); text-align: center; }
.tb-chip.active .tb-chip__count { background: rgba(255,255,255,.18); color: inherit; }
.tb-bigstat { font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }

.tb-predlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tb-pred__link { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(200px, auto); gap: 1rem; align-items: center; padding: .9rem 1.1rem;
  background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); color: var(--tb-ink); text-decoration: none; }
.tb-pred__link:hover { border-color: var(--tb-pitch-2); color: var(--tb-ink); }
.tb-pred__when { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; line-height: 1.25; }
.tb-pred__when small { color: var(--tb-muted); font-size: .8rem; }
.tb-pred__teams { font-weight: 600; font-size: 1.05rem; }
.tb-pred__teams span { font-weight: 400; color: var(--tb-muted); font-size: .85rem; }
.tb-pred__meta { font-size: .82rem; color: var(--tb-muted); margin-top: .15rem; }
.tb-pred__pct { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tb-pred__pct small { font-size: 1rem; }
.tb-pred__prob .tb-conf__bar { margin: .35rem 0 .3rem; }
.tb-pred__odds { font-size: .8rem; color: var(--tb-muted); }
@media (max-width: 640px) {
  .tb-pred__link { grid-template-columns: 54px minmax(0, 1fr); }
  .tb-pred__prob { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
  .tb-pred__prob .tb-conf__bar { margin: 0; }
  .tb-pred__odds { grid-column: 1 / -1; }
}

.tb-cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.tb-cattile { display: flex; flex-direction: column; padding: .9rem 1rem; background: var(--tb-surface); border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius); text-decoration: none; color: var(--tb-ink); transition: border-color .15s, transform .15s; }
.tb-cattile:hover { border-color: var(--tb-pitch-2); color: var(--tb-ink); transform: translateY(-1px); }
.tb-cattile__n { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--tb-pitch-2); }
.tb-cattile__label { font-weight: 600; margin-top: .25rem; }

.tb-matchhead { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 1.5rem; }
.tb-matchhead__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.tb-matchhead__team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.tb-matchhead__team img { object-fit: contain; }
.tb-matchhead__team h1 { font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.3rem, 3.5vw, 2rem); font-weight: 700; margin: 0; line-height: 1.1; }
.tb-matchhead__mid { text-align: center; }
.tb-matchhead__score, .tb-matchhead__time { font-family: "Barlow Condensed", sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

.tb-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; padding: .9rem 1.1rem; margin-bottom: 1.25rem;
  background: var(--tb-pitch); color: #eef5f0; border-radius: 12px; }
.tb-headline__label { width: 100%; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-amber); }
.tb-headline__pick { font-size: 1.25rem; font-weight: 600; }
.tb-headline__pct { font-family: "Barlow Condensed", sans-serif; font-size: 1.8rem; font-weight: 700; margin-left: auto; }

.tb-tribar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tb-tribar span { display: flex; align-items: center; justify-content: center; min-width: 2.6rem; color: #fff; }
.tb-tribar__h { background: var(--tb-pitch-2); }
.tb-tribar__d { background: #8a9790; }
.tb-tribar__a { background: #3d6fa8; }
.tb-kv--inline { grid-template-columns: repeat(3, auto 1fr); font-size: .9rem; }
@media (max-width: 640px) { .tb-kv--inline { grid-template-columns: auto 1fr; } }

.tb-markets__title { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-muted); margin: 1rem 0 .4rem; }
.tb-markets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; }
.tb-market { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: .5rem .7rem; border: 1px solid var(--tb-line); border-radius: 9px; }
.tb-market__name { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-market__pct { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tb-market__odds { grid-column: 1 / -1; font-size: .75rem; color: var(--tb-muted); }
.tb-market.is-pick { border-color: var(--tb-pitch-2); background: var(--tb-won-soft); }
.tb-market.is-headline { box-shadow: inset 0 0 0 2px var(--tb-amber); }

/* ---------- basketball & tennis ---------- */
.tb-sporttabs { display: inline-flex; gap: .25rem; padding: .3rem; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 12px; }
.tb-sporttab { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 9px; color: var(--tb-muted); font-weight: 600; text-decoration: none; }
.tb-sporttab:hover { color: var(--tb-ink); background: var(--tb-chalk); }
.tb-sporttab.active { background: var(--tb-pitch); color: #fff; }

.tb-lines { display: grid; grid-template-columns: repeat(3, auto); gap: .4rem; align-items: stretch; }
.tb-lines__proj, .tb-line { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .35rem .6rem; border-radius: 9px;
  font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; min-width: 74px; }
.tb-lines__proj { background: var(--tb-chalk); }
.tb-lines__proj small, .tb-line small { font-family: "Barlow", sans-serif; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tb-muted); }
.tb-line b { font-family: "Barlow", sans-serif; font-size: .78rem; font-weight: 600; }
.tb-line--over { border: 1.5px solid var(--tb-pitch-2); }
.tb-line--under { border: 1.5px solid #3d6fa8; }
.tb-qgrid { display: grid; grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: .35rem; font-size: .78rem; font-variant-numeric: tabular-nums; }
.tb-qcell { border: 1px solid var(--tb-line); border-radius: 8px; padding: .3rem .45rem; line-height: 1.35; }
.tb-qcell__h { font-weight: 700; font-size: .8rem; }
@media (max-width: 640px) { .tb-qgrid { grid-template-columns: repeat(2, 1fr); } .tb-lines { grid-template-columns: repeat(3, 1fr); } }

.tb-linescore { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9rem; }
.tb-linescore th, .tb-linescore td { padding: .2rem .7rem; text-align: center; border-bottom: 1px solid var(--tb-line); }
.tb-linescore th { font-size: .75rem; color: var(--tb-muted); font-weight: 600; }
.tb-bbtable th[scope=row] { font-weight: 600; white-space: nowrap; }
.tb-cellpick { white-space: nowrap; }
.tb-cellpick b { font-weight: 600; }
.tb-cellpick.is-hit { background: var(--tb-won-soft); }
.tb-cellpick.is-miss { background: var(--tb-lost-soft); }
.tb-pub { margin-left: .3rem; color: var(--tb-pitch-2); }
.tb-market.is-miss { border-color: var(--tb-lost); background: var(--tb-lost-soft); }
.tb-checkout { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: .5rem .8rem; background: var(--tb-chalk); border-radius: 9px; font-variant-numeric: tabular-nums; }
.tb-checkout b { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; }
.tb-checkout small { color: var(--tb-muted); }

.tb-tnrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .8rem 1rem; }
.tb-tnrow + .tb-tnrow { border-top: 1px solid var(--tb-line); }
.tb-tnrow__info { flex: 1 1 320px; min-width: 0; }
.tb-tnrow__form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tb-tnrow__form .form-select { width: auto; }
.tb-tnrow__form .form-control { width: 170px; }

/* ---------- status badges ---------- */
.tb-status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 6px; line-height: 1.5; }
.tb-status--upcoming { background: var(--tb-up-soft); color: #8a5d00; }
.tb-status--won { background: var(--tb-won-soft); color: var(--tb-won); }
.tb-status--lost { background: var(--tb-lost-soft); color: var(--tb-lost); }
.tb-status--void { background: var(--tb-void-soft); color: var(--tb-void); }
[data-bs-theme="dark"] .tb-status--upcoming { color: var(--tb-amber); }

/* ---------- slip ---------- */
.tb-slip-row .tb-ticket { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tb-slip-row__track { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: var(--tb-surface);
  border: 1px solid var(--tb-line); border-top: 0; border-radius: 0 0 var(--tb-radius) var(--tb-radius); padding: .6rem 1.35rem; }
.tb-seg { --bs-btn-color: var(--tb-muted); --bs-btn-border-color: var(--tb-line); --bs-btn-hover-bg: var(--tb-chalk); --bs-btn-hover-color: var(--tb-ink); --bs-btn-hover-border-color: var(--tb-line); }
.tb-seg.active { color: #fff !important; }
.tb-seg--pending.active { background: #8a6a1c; border-color: #8a6a1c; }
.tb-seg--hit.active, .tb-seg--hit:active { background: var(--tb-won); border-color: var(--tb-won); }
.tb-seg--miss.active, .tb-seg--miss:active { background: var(--tb-lost); border-color: var(--tb-lost); }
.tb-seg--void.active, .tb-seg--void:active { background: var(--tb-void); border-color: var(--tb-void); }
.tb-seg--hit:hover { color: var(--tb-won); } .tb-seg--miss:hover { color: var(--tb-lost); }

/* ---------- tables ---------- */
.tb-table-wrap { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); }
.tb-table { --bs-table-bg: transparent; --bs-table-color: var(--tb-ink); --bs-table-border-color: var(--tb-line); }
.tb-table thead th { font-size: .8rem; font-weight: 600; color: var(--tb-muted); background: var(--tb-chalk); white-space: nowrap; }
.tb-table td, .tb-table th { padding: .8rem 1rem; }
.tb-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- admin ---------- */
.tb-subnav { border-bottom: 1px solid var(--tb-line); gap: .25rem; align-items: center; padding-bottom: .5rem; }
.tb-subnav .nav-link { color: var(--tb-muted); font-weight: 500; border-radius: 8px; }
.tb-subnav .nav-link.active { color: var(--tb-ink); background: var(--tb-surface); box-shadow: inset 0 -2px 0 var(--tb-amber); }
.tb-stat { display: flex; flex-direction: column; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius);
  padding: 1.1rem 1.25rem; color: var(--tb-ink); text-decoration: none; height: 100%; }
a.tb-stat:hover { border-color: var(--tb-pitch-2); }
.tb-stat .bi { color: var(--tb-pitch-2); font-size: 1.2rem; }
.tb-stat__value { font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin-top: .25rem; }
.tb-stat__label { font-size: .85rem; color: var(--tb-muted); }
.tb-settle { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .85rem 0; border-top: 1px solid var(--tb-line); }
.tb-score-input { width: 90px; }

/* ---------- admin: fixtures & feed ---------- */
.tb-chip--sm { padding: .2rem .7rem; font-size: .85rem; }
.tb-fx-list { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); }
.tb-fx { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .5rem 1rem; align-items: center; padding: .75rem 1rem; }
.tb-fx + .tb-fx { border-top: 1px solid var(--tb-line); }
.tb-fx__time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.tb-fx__pred { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .35rem; }
.tb-fx__odds { display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 2; }
.tb-oddgroup { display: flex; gap: 2px; }
.tb-odd { display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: .2rem .35rem; border: 1px solid var(--tb-line);
  border-radius: 7px; text-decoration: none; color: var(--tb-ink); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9rem; line-height: 1.2; }
.tb-odd small { font-size: .68rem; font-weight: 500; color: var(--tb-muted); }
a.tb-odd:hover, a.tb-odd.is-empty:hover { border-color: var(--tb-pitch-2); background: var(--tb-won-soft); }
.tb-odd.is-hit { background: var(--tb-amber); border-color: var(--tb-amber); color: var(--tb-amber-ink); }
.tb-odd.is-hit small { color: var(--tb-amber-ink); }
.tb-odd.is-empty { color: var(--tb-muted); font-weight: 400; }
@media (max-width: 700px) { .tb-fx { grid-template-columns: 54px minmax(0, 1fr); } .tb-fx__odds { grid-column: 1 / -1; } }
.tb-kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .95rem; }
.tb-kv dt { font-weight: 500; color: var(--tb-muted); } .tb-kv dd { margin: 0; font-weight: 600; }
.tb-league-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--tb-line); border-radius: 10px; }
.tb-league { display: flex; align-items: center; gap: .6rem; padding: .45rem .75rem; cursor: pointer; margin: 0; }
.tb-league + .tb-league { border-top: 1px solid var(--tb-line); }
.tb-league:hover { background: var(--tb-chalk); }
.tb-league .form-check-input { margin: 0; flex-shrink: 0; }
.tb-code { background: var(--tb-chalk); border: 1px solid var(--tb-line); border-radius: 8px; padding: .5rem .75rem; font-size: .9rem; white-space: pre-wrap; }
.tb-synclog { max-height: 220px; overflow-y: auto; background: var(--tb-chalk); border-radius: 8px; padding: .6rem .8rem; }
.tb-synclog li + li { margin-top: .2rem; }

/* ---------- auth / misc ---------- */
.tb-auth { max-width: 440px; margin: 0 auto; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 2rem; }
.tb-auth .form-control, .tb-auth .btn { border-radius: 10px; }
.tb-auth .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tb-auth .input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.form-control, .form-select { background-color: var(--tb-surface); }
.form-control:focus, .form-select:focus { border-color: var(--tb-pitch-2); box-shadow: 0 0 0 .2rem rgba(242,179,61,.3); }
.form-range::-webkit-slider-thumb { background: var(--tb-pitch-2); }
.form-range::-moz-range-thumb { background: var(--tb-pitch-2); }
.form-check-input:checked { background-color: var(--tb-pitch-2); border-color: var(--tb-pitch-2); }

.tb-empty { text-align: center; border: 2px dashed var(--tb-line); border-radius: var(--tb-radius); padding: 3rem 1.5rem; }
.tb-empty > .bi { font-size: 2rem; color: var(--tb-muted); display: block; margin-bottom: .5rem; }
.tb-back { color: var(--tb-muted); text-decoration: none; font-weight: 500; }
.tb-back:hover { color: var(--tb-ink); }
.tb-error-code { font-size: 6rem; font-weight: 700; line-height: 1; color: var(--tb-line); }
.tb-alert { border-radius: 10px; }

.tb-toast { color: #fff; border-radius: 10px; }
.tb-toast--success { background: var(--tb-pitch); }
.tb-toast--danger { background: #b23c32; }
.tb-toast .btn-close { filter: invert(1) grayscale(1) brightness(2); }

.tb-footer { border-top: 1px solid var(--tb-line); padding: 2rem 0; margin-top: 3rem; color: var(--tb-muted); background: var(--tb-surface); }
.tb-footer a { color: var(--tb-muted); }
.tb-footer strong { color: var(--tb-ink); font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Ice hockey / handball / volleyball ---------- */
.tb-mschips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.tb-mschip { font-size: .78rem; border: 1px solid var(--tb-line); border-radius: 999px; padding: .1rem .55rem; color: var(--tb-muted); white-space: nowrap; }
.tb-mschip b { color: var(--tb-ink); font-variant-numeric: tabular-nums; }
.tb-mkts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.tb-mkt { border: 1px solid var(--tb-line); border-radius: 10px; padding: .7rem .85rem; background: var(--tb-surface); }
.tb-mkt__h { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tb-muted); margin: 0 0 .4rem; }
.tb-mkt__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.2rem auto; gap: .6rem; align-items: center; padding: .28rem .35rem; border-radius: 6px; font-size: .92rem; }
.tb-mkt__row + .tb-mkt__row { border-top: 1px dashed var(--tb-line); }
.tb-mkt__sel { overflow-wrap: anywhere; line-height: 1.25; }
.tb-mkt__p { font-variant-numeric: tabular-nums; text-align: right; }
.tb-mkt__odds { font-size: .8rem; color: var(--tb-muted); text-align: right; font-variant-numeric: tabular-nums; }
.tb-mkt__row.is-hit { background: var(--tb-won-soft); }
.tb-mkt__row.is-miss { background: var(--tb-lost-soft); }
.tb-mkt__row .tb-pub { margin: 0; }
.tb-sporttabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tb-sporttabs::-webkit-scrollbar { display: none; }
.tb-sporttab { white-space: nowrap; flex-shrink: 0; }

/* ---------- Acca of the day ---------- */
.tb-acca { border: 1px solid var(--tb-line); border-radius: 14px; background: var(--tb-surface); overflow: hidden; }
.tb-acca__head { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--tb-ink); color: var(--tb-chalk); }
.tb-acca__sport { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-amber); font-weight: 600; }
.tb-acca__title { font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.tb-acca__pct { font-family: "Barlow Condensed", sans-serif; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.tb-acca__pct small { font-size: 1rem; }
.tb-acca__head .text-body-secondary { color: rgba(255,255,255,.7) !important; }
.tb-acca__legs { list-style: none; margin: 0; padding: 0; }
.tb-acca__legs li + li { border-top: 1px solid var(--tb-line); }
.tb-acca__legs a { display: grid; grid-template-columns: 3.2rem minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem 1.2rem; color: inherit; text-decoration: none; }
.tb-acca__legs a:hover { background: var(--tb-won-soft); }
.tb-acca__time { font-variant-numeric: tabular-nums; font-weight: 600; }
.tb-acca__match { min-width: 0; }
.tb-acca__p { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; text-align: right; }
.tb-acca__share { padding: .7rem 1.2rem; border-top: 1px solid var(--tb-line); }
@media (max-width: 640px) {
  .tb-acca__legs a { grid-template-columns: 2.8rem minmax(0, 1fr) auto; }
  .tb-acca__pick { grid-column: 2 / 3; }
}
.tb-tgpreview { font-size: .9rem; line-height: 1.5; white-space: normal; background: var(--tb-won-soft); border-radius: 10px; padding: .9rem 1rem; overflow-wrap: anywhere; }
.tb-cronlog { font-size: .78rem; max-height: 240px; overflow: auto; background: var(--tb-won-soft); border-radius: 8px; padding: .6rem .8rem; white-space: pre-wrap; margin: .3rem 0 0; }

/* ---------- Banker of the day ---------- */
.tb-banker { display: block; text-decoration: none; color: var(--tb-chalk); background: linear-gradient(135deg, var(--tb-ink), #1f4a3a); border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.tb-banker:hover { color: var(--tb-chalk); filter: brightness(1.06); }
.tb-banker__label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-amber); margin-bottom: .4rem; }
.tb-banker__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tb-banker__main { min-width: 0; }
.tb-banker__match { font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.tb-banker__match span { font-family: inherit; font-size: 1rem; font-weight: 400; opacity: .7; }
.tb-banker__meta { font-size: .85rem; opacity: .75; margin-top: .15rem; }
.tb-banker__pick { font-size: 1.15rem; font-weight: 600; margin-top: .45rem; }
.tb-banker__pct { font-family: "Barlow Condensed", sans-serif; font-size: 3rem; font-weight: 700; line-height: 1; text-align: right; white-space: nowrap; }
.tb-banker__pct small { font-size: 1.3rem; }
.tb-banker__fair { font-family: "Barlow", sans-serif; font-size: .78rem; font-weight: 400; opacity: .75; margin-top: .2rem; }
@media (max-width: 540px) { .tb-banker__row { flex-direction: column; align-items: flex-start; } .tb-banker__pct { text-align: left; } }
.tb-value { padding: .7rem .9rem; border-radius: 10px; font-size: .92rem; }
.tb-value--good { background: var(--tb-won-soft); border: 1px solid var(--tb-won, #2e7d4f); }
.tb-value--fair { background: rgba(240, 180, 40, .12); border: 1px solid var(--tb-amber); }
.tb-value--poor { background: var(--tb-lost-soft); border: 1px solid var(--tb-lost, #b3261e); }

/* ---------- Safe double / 2 from 3 ---------- */
.tb-extra { border: 1px solid var(--tb-line); border-radius: 12px; background: var(--tb-surface); height: 100%; display: flex; flex-direction: column; }
.tb-extra__head { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 1rem; border-bottom: 1px solid var(--tb-line); font-weight: 600; }
.tb-extra__head strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; line-height: 1; }
.tb-extra__leg { display: block; padding: .5rem 1rem; color: inherit; text-decoration: none; font-size: .92rem; border-bottom: 1px dashed var(--tb-line); }
.tb-extra__leg:hover { background: var(--tb-won-soft); }
.tb-extra__foot { padding: .7rem 1rem; font-size: .85rem; color: var(--tb-muted); margin-top: auto; }
.tb-nearrow { display: grid; grid-template-columns: 4rem 1fr 2rem; gap: .6rem; align-items: center; margin-bottom: .3rem; }
.tb-nearrow b { text-align: right; }
.tb-nearbar { height: 10px; background: var(--tb-line); border-radius: 6px; overflow: hidden; }
.tb-nearbar span { display: block; height: 100%; background: var(--tb-pitch-2); }
