/* Travel Ball Team Manager — public styles.
 * Colors and fonts come from CSS variables so a theme can restyle them. */
:root {
	--tbt-primary: #17305a;   /* team color */
	--tbt-accent: #c22f2f;    /* second team color */
	--tbt-ink: #1c2230;
	--tbt-muted: #5d6676;
	--tbt-paper: #ffffff;
	--tbt-rule: #dbe4d6;      /* scorebook green rule */
	--tbt-tint: #f3f7f0;
	--tbt-ok: #1d7a3e;
	--tbt-bad: #b42626;
	--tbt-num-font: "Graduate", "Rockwell", "Roboto Slab", serif;
	--tbt-ui-font: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
}

.tbt-table { width: 100%; border-collapse: collapse; font-family: var(--tbt-ui-font); font-variant-numeric: tabular-nums; font-size: 0.92rem; background: var(--tbt-paper); color: var(--tbt-ink); }
.tbt-table caption { text-align: left; font-weight: 700; font-size: 1rem; padding: 0 0 6px; color: var(--tbt-ink); }
.tbt-table th, .tbt-table td { padding: 6px 8px; border-bottom: 1px solid var(--tbt-rule); text-align: right; white-space: nowrap; }
.tbt-table thead th { background: var(--tbt-primary); color: #fff; font-weight: 600; position: sticky; top: 0; }
.tbt-table th.tbt-name-col, .tbt-table td:first-child, .tbt-table thead th:first-child { text-align: left; }
.tbt-table tbody tr:nth-child(even) { background: var(--tbt-tint); }
.tbt-table tfoot th, .tbt-table tfoot td { font-weight: 700; border-top: 2px solid var(--tbt-ink); border-bottom: 0; }
.tbt-sortable thead th[data-sort] { cursor: pointer; user-select: none; }
.tbt-sortable thead th[aria-sort="descending"]::after { content: " ▾"; }
.tbt-sortable thead th[aria-sort="ascending"]::after { content: " ▴"; }
.tbt-table th.tbt-name-col { position: sticky; left: 0; background: inherit; z-index: 1; }
.tbt-table tbody th.tbt-name-col { background: var(--tbt-paper); font-weight: 600; }
.tbt-table tbody tr:nth-child(even) th.tbt-name-col { background: var(--tbt-tint); }
.tbt-scroll { overflow-x: auto; margin: 0 0 28px; -webkit-overflow-scrolling: touch; }
.tbt-jn { display: inline-block; min-width: 1.8em; margin-right: 0.35em; color: var(--tbt-muted); font-variant-numeric: tabular-nums; }
.tbt-note, .tbt-empty { color: var(--tbt-muted); font-size: 0.92rem; }
.tbt-ok { color: var(--tbt-ok); font-weight: 600; }
.tbt-no { color: var(--tbt-bad); font-weight: 600; }

/* Tabs */
.tbt-tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border-bottom: 2px solid var(--tbt-ink); margin: 0 0 20px; font-family: var(--tbt-ui-font); }
.tbt-tabs a { padding: 8px 14px; text-decoration: none; color: var(--tbt-ink); font-weight: 600; border-radius: 6px 6px 0 0; }
.tbt-tabs a.is-active { background: var(--tbt-ink); color: #fff; }
.tbt-tabs a:focus-visible { outline: 3px solid var(--tbt-accent); outline-offset: 2px; }
.tbt-tabs .tbt-cal { margin-left: auto; font-weight: 500; text-decoration: underline; }
.tbt-season { margin: 0 0 12px; font-family: var(--tbt-ui-font); }
.tbt-season select { font: inherit; padding: 4px 6px; }

/* Roster: the jersey number is the star. */
.tbt-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tbt-player-card { display: flex; align-items: stretch; border: 1px solid var(--tbt-rule); border-radius: 4px; background: var(--tbt-paper); overflow: hidden; }
.tbt-num { font-family: var(--tbt-num-font); font-size: 2.6rem; line-height: 1; color: #fff; background: var(--tbt-primary); min-width: 84px; display: flex; align-items: center; justify-content: center; padding: 14px 10px; border-right: 4px solid var(--tbt-accent); font-variant-numeric: tabular-nums; }
.tbt-pc-body { padding: 12px 14px; font-family: var(--tbt-ui-font); }
.tbt-pc-body h3 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.2; }
.tbt-pc-body h3 a { color: var(--tbt-ink); text-decoration: none; }
.tbt-pc-body h3 a:hover { text-decoration: underline; }
.tbt-pos { margin: 0; font-weight: 600; color: var(--tbt-primary); }
.tbt-bt { margin: 2px 0 0; color: var(--tbt-muted); font-size: 0.9rem; }

/* Schedule */
.tbt-record { font-family: var(--tbt-ui-font); font-size: 1.05rem; }
.tbt-month { font-family: var(--tbt-ui-font); font-size: 1rem; color: var(--tbt-muted); margin: 26px 0 8px; font-weight: 600; }
.tbt-event { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--tbt-rule); font-family: var(--tbt-ui-font); }
.tbt-date { text-align: center; border: 2px solid var(--tbt-ink); border-radius: 4px; padding: 4px 0; line-height: 1.05; }
.tbt-date span { display: block; }
.tbt-dow, .tbt-mon { font-size: 0.75rem; color: var(--tbt-muted); }
.tbt-day { font-family: var(--tbt-num-font); font-size: 1.6rem; color: var(--tbt-ink); }
.tbt-type-practice .tbt-date { border-style: dashed; }
.tbt-ev-body h4 { margin: 2px 0; font-size: 1.1rem; }
.tbt-badge { font-size: 0.78rem; font-weight: 600; color: var(--tbt-primary); }
.tbt-type-practice .tbt-badge { color: var(--tbt-muted); }
.tbt-meta, .tbt-notes { margin: 2px 0 0; font-size: 0.9rem; color: var(--tbt-muted); }
.tbt-notes { color: var(--tbt-ink); }
.tbt-map { color: inherit; }
.tbt-result { font-weight: 700; text-decoration: none; color: var(--tbt-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbt-result span { display: inline-block; width: 2.6em; text-align: center; padding: 2px 0; border-radius: 3px; background: var(--tbt-muted); color: #fff; margin-right: 4px; }
.tbt-result.tbt-w span { background: var(--tbt-ok); }
.tbt-result.tbt-l span { background: var(--tbt-bad); }
.tbt-result.tbt-live span { background: var(--tbt-accent); width: 3.2em; }
.tbt-flag { font-weight: 600; color: var(--tbt-bad); }
.tbt-more { font-family: var(--tbt-ui-font); font-weight: 600; }

/* Box score */
.tbt-box-title small { font-weight: 400; color: var(--tbt-muted); font-size: 0.7em; }
.tbt-linescore td, .tbt-linescore th { text-align: center; }
.tbt-linescore tbody th { text-align: left; }

/* Player page */
.tbt-player-head { display: flex; gap: 16px; align-items: stretch; margin: 10px 0 18px; font-family: var(--tbt-ui-font); }
.tbt-player-head h2 { margin: 6px 0 2px; }
.tbt-player-head p { margin: 0; color: var(--tbt-muted); }
.tbt-player-head .tbt-num { font-size: 3.2rem; min-width: 96px; border-radius: 4px; }
.tbt-kpis { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 20px; border: 2px solid var(--tbt-ink); border-radius: 4px; font-family: var(--tbt-ui-font); }
.tbt-kpis div { flex: 1 1 90px; padding: 10px 12px; border-right: 1px solid var(--tbt-rule); }
.tbt-kpis div:last-child { border-right: 0; }
.tbt-kpis span { display: block; font-family: var(--tbt-num-font); font-size: 1.7rem; }
.tbt-kpis small { color: var(--tbt-muted); }

/* Leaders */
.tbt-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 2px solid var(--tbt-ink); border-radius: 4px; font-family: var(--tbt-ui-font); }
.tbt-leader { padding: 12px 14px; border-right: 1px solid var(--tbt-rule); border-bottom: 1px solid var(--tbt-rule); }
.tbt-leader small { display: block; color: var(--tbt-muted); font-weight: 600; }
.tbt-leader strong { display: block; font-family: var(--tbt-num-font); font-size: 1.8rem; font-weight: 400; }
.tbt-leader span { font-size: 0.9rem; }

/* Lineup card (printable) */
.tbt-card-page { margin: 0; background: #e9eee6; font-family: var(--tbt-ui-font); color: var(--tbt-ink); }
.tbt-lineup-card { max-width: 760px; margin: 24px auto; background: #fff; padding: 24px 28px; border-top: 8px solid var(--tbt-primary); }
.tbt-lineup-card header h1 { font-family: var(--tbt-num-font); font-weight: 400; margin: 0; font-size: 2rem; }
.tbt-lineup-card header p { margin: 4px 0 18px; color: var(--tbt-muted); }
.tbt-lc-body { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: start; }
.tbt-lc-body .tbt-table td, .tbt-lc-body .tbt-table th { text-align: left; font-size: 1.05rem; padding: 8px; }
.tbt-qr { margin: 0; text-align: center; }
.tbt-qr svg { width: 100%; height: auto; }
.tbt-qr figcaption { font-size: 0.85rem; color: var(--tbt-muted); }
.tbt-noprint button { font: inherit; padding: 8px 18px; }
@media (max-width: 640px) {
	.tbt-lc-body { grid-template-columns: 1fr; }
	.tbt-event { grid-template-columns: 56px 1fr; }
	.tbt-ev-result { grid-column: 2; }
	.tbt-tabs .tbt-cal { margin-left: 0; width: 100%; padding-left: 14px; }
}
@media print {
	.tbt-noprint { display: none; }
	.tbt-card-page { background: #fff; }
	.tbt-lineup-card { margin: 0; border-top-width: 4px; }
}

/* Spray charts */
.tbt-spray-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; margin: 0 0 28px; }
.tbt-spray { margin: 0; font-family: var(--tbt-ui-font); }
.tbt-spray svg { width: 100%; max-width: 520px; display: block; background: var(--tbt-tint); border-radius: 6px; }
.tbt-spray .f-grass { fill: #9cc489; }
.tbt-spray .f-dirt { fill: #d1b08a; }
.tbt-spray .f-line { stroke: #fff; stroke-width: 4; }
.tbt-spray .f-base { fill: #fff; }
.tbt-spray circle { stroke-width: 4; }
.tbt-spray .d-hit { fill: var(--tbt-primary); stroke: #fff; }
.tbt-spray .d-out { fill: #fff; stroke: var(--tbt-ink); }
.tbt-spray .d-reach { fill: var(--tbt-accent); stroke: #fff; }
.tbt-spray figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: 0.9rem; }
.tbt-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.tbt-legend label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tbt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid; }
.tbt-legend i.d-hit { background: var(--tbt-primary); border-color: var(--tbt-primary); }
.tbt-legend i.d-out { background: #fff; border-color: var(--tbt-ink); }
.tbt-legend i.d-reach { background: var(--tbt-accent); border-color: var(--tbt-accent); }
.tbt-spray.hide-d-hit .d-hit, .tbt-spray.hide-d-out .d-out, .tbt-spray.hide-d-reach .d-reach,
.tbt-spray.hide-bt-gb .bt-gb, .tbt-spray.hide-bt-ld .bt-ld, .tbt-spray.hide-bt-fb .bt-fb, .tbt-spray.hide-bt-pu .bt-pu, .tbt-spray.hide-bt-bu .bt-bu { display: none; }
.tbt-pos-list { display: block; font-weight: 400; color: var(--tbt-muted); font-size: 0.8rem; }

/* Team hub */
.tbt-hub { font-family: var(--tbt-ui-font); max-width: 820px; }
.tbt-flash { background: #e6f3ea; border-left: 4px solid var(--tbt-ok); padding: 10px 14px; margin: 0 0 16px; }
.tbt-button { display: inline-block; font: 600 1rem var(--tbt-ui-font); background: var(--tbt-primary); color: #fff; border: 0; border-radius: 6px; padding: 11px 20px; min-height: 46px; cursor: pointer; text-decoration: none; }
.tbt-button:hover, .tbt-button:focus { color: #fff; filter: brightness(1.12); }
.tbt-form { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.tbt-form label:not(.tbt-check), .tbt-form legend { font-weight: 600; margin-top: 10px; }
.tbt-form input:not([type=checkbox]):not([type=radio]), .tbt-form textarea, .tbt-form select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #b9c2b4; border-radius: 6px; width: 100%; background: #fff; }
.tbt-form fieldset { border: 0; padding: 0; margin: 6px 0; }
.tbt-form .tbt-button { align-self: flex-start; margin-top: 12px; }
.tbt-check { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-weight: 400; }
.tbt-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.tbt-player-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-left: 26px; }
.tbt-hub-login { padding: 20px; border: 2px solid var(--tbt-ink); border-radius: 6px; font-family: var(--tbt-ui-font); }
.tbt-msg-list { list-style: none; margin: 0; padding: 0; }
.tbt-msg-list li { border-bottom: 1px solid var(--tbt-rule); }
.tbt-msg-list a { display: block; padding: 14px 4px; color: var(--tbt-ink); text-decoration: none; }
.tbt-msg-list a:hover strong { text-decoration: underline; }
.tbt-msg-list strong { display: block; font-size: 1.1rem; }
.tbt-msg-meta { display: block; color: var(--tbt-muted); font-size: 0.9rem; }
.tbt-msg-excerpt { display: block; margin-top: 2px; }
.tbt-chip { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 1px 8px; margin: 6px 6px 0 0; border: 1px solid var(--tbt-rule); border-radius: 999px; color: var(--tbt-muted); }
.tbt-msg h2 { margin: 0 0 4px; }
.tbt-msg-body { font-family: system-ui, sans-serif; font-size: 1.05rem; line-height: 1.6; margin: 14px 0; }
.tbt-replies { border-top: 2px solid var(--tbt-ink); margin-top: 18px; }
.tbt-reply { border-left: 3px solid var(--tbt-rule); padding: 2px 0 2px 14px; margin: 14px 0; }
.tbt-reply p { margin: 4px 0; }
.tbt-inline-form { margin: 18px 0 0; }
.tbt-link-danger { background: none; border: 0; color: var(--tbt-bad); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.tbt-rsvp-event { border-bottom: 2px solid var(--tbt-rule); padding-bottom: 10px; margin-bottom: 8px; }
.tbt-rsvp-event .tbt-event { border-bottom: 0; }
.tbt-rsvp-counts { margin: 0 0 6px 78px; }
.tbt-rsvp-event details { margin-left: 78px; }
.tbt-rsvp-event summary { cursor: pointer; padding: 6px 0; font-weight: 600; }
.tbt-rsvp-list { list-style: none; margin: 0 0 6px 78px; padding: 0; }
.tbt-rsvp-event details .tbt-rsvp-list { margin-left: 0; }
.tbt-rsvp-list li { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(140px, 1fr); gap: 10px; align-items: center; padding: 6px 0; }
.tbt-rsvp-list li.is-saving { opacity: 0.6; }
.tbt-rsvp-name { font-weight: 600; }
.tbt-seg { display: inline-flex; border: 2px solid var(--tbt-ink); border-radius: 6px; overflow: hidden; }
.tbt-seg button { font: 600 0.95rem var(--tbt-ui-font); background: #fff; color: var(--tbt-ink); border: 0; border-right: 1px solid var(--tbt-rule); padding: 8px 12px; min-height: 42px; cursor: pointer; }
.tbt-seg button:last-child { border-right: 0; }
.tbt-seg .tbt-rsvp-yes.is-on { background: var(--tbt-ok); color: #fff; }
.tbt-seg .tbt-rsvp-maybe.is-on { background: #8a6d00; color: #fff; }
.tbt-seg .tbt-rsvp-no.is-on { background: var(--tbt-bad); color: #fff; }
.tbt-rsvp-note { font: inherit; padding: 8px 10px; border: 1px solid #b9c2b4; border-radius: 6px; min-height: 42px; }
@media (max-width: 640px) {
	.tbt-rsvp-list, .tbt-rsvp-counts, .tbt-rsvp-event details { margin-left: 0; }
	.tbt-rsvp-list li { grid-template-columns: 1fr; gap: 6px; }
	.tbt-player-picks { margin-left: 0; }
}

/* Coaches */
.tbt-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.tbt-coach { border-top: 4px solid var(--tbt-primary); background: var(--tbt-paper); padding: 0 0 14px; font-family: var(--tbt-ui-font); }
.tbt-coach img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tbt-coach-body { padding: 12px 16px 0; }
.tbt-coach h3 { margin: 0; font-size: 1.25rem; }
.tbt-coach-role { margin: 2px 0 8px; color: var(--tbt-primary); font-weight: 600; }
.tbt-coach-bio { font-family: system-ui, sans-serif; font-size: 0.98rem; }
.tbt-coach-contact { font-size: 0.95rem; }

/* Fundraising */
.tbt-fund { border: 2px solid var(--tbt-ink); border-radius: 6px; padding: 18px 20px; margin: 0 0 26px; font-family: var(--tbt-ui-font); background: var(--tbt-paper); }
.tbt-fund h3 { margin: 0 0 4px; font-size: 1.35rem; }
.tbt-fund-meta { color: var(--tbt-muted); margin: 0 0 12px; }
.tbt-progress { height: 22px; background: var(--tbt-tint); border: 1px solid var(--tbt-rule); border-radius: 999px; overflow: hidden; }
.tbt-progress span { display: block; height: 100%; background: var(--tbt-primary); border-right: 3px solid var(--tbt-accent); }
.tbt-fund-nums { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tbt-fund-nums strong { font-family: var(--tbt-num-font); font-weight: 400; font-size: 1.6rem; }
.tbt-fund-body { font-family: system-ui, sans-serif; }
.tbt-fund-board { margin-top: 14px; }
.tbt-fund-board table { max-width: 420px; }
.tbt-fund.is-closed { opacity: 0.8; border-style: dashed; }

/* Play-by-play */
.tbt-pbp-wrap summary { cursor: pointer; list-style: none; }
.tbt-pbp-wrap summary h3 { display: inline; }
.tbt-pbp-wrap summary::after { content: " (show / hide)"; color: var(--tbt-muted); font-size: 0.85rem; }
.tbt-pbp-wrap h4 { margin: 18px 0 4px; font-family: var(--tbt-ui-font); }
.tbt-pbp { margin: 0 0 8px; padding-left: 22px; font-size: 0.97rem; }
.tbt-pbp li { padding: 3px 0; }
.tbt-pbp-p { color: var(--tbt-muted); font-size: 0.85rem; }
.tbt-pbp-score { display: inline-block; font-family: var(--tbt-ui-font); font-weight: 600; font-size: 0.85rem; background: var(--tbt-tint); border: 1px solid var(--tbt-rule); border-radius: 4px; padding: 0 6px; }

/* Scouting */
.tbt-scout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-bottom: 28px; }
.tbt-scout-card { border: 2px solid var(--tbt-ink); border-radius: 6px; padding: 12px 14px; background: var(--tbt-paper); font-family: var(--tbt-ui-font); }
.tbt-scout-card h3 { margin: 0 0 4px; }
.tbt-scout-card p { margin: 2px 0; font-size: 0.92rem; }
.tbt-scout-card .tbt-spray svg { max-width: 100%; }
.tbt-scout-card .tbt-spray .tbt-legend:last-of-type { display: none; }
.tbt-scout-sug { font-weight: 700; color: var(--tbt-accent); }
.tbt-scout-abs { margin: 8px 0 0; padding-left: 20px; font-size: 0.9rem; }
.tbt-scout-abs span { font-weight: 600; }
.tbt-scout-abs small { color: var(--tbt-muted); }

/* ---------------- Live game ---------------- */
.tbt-live { font-family: var(--tbt-ui-font); color: var(--tbt-ink); max-width: 860px; transition: box-shadow .4s; }
.tbt-live.tl-flash .tl-board { box-shadow: 0 0 0 4px var(--tbt-accent); }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 14px; }
.tl-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.tl-head h2 span { font-weight: 500; }
.tl-meta { margin: 4px 0 0; color: var(--tbt-muted); font-size: .92rem; }
.tl-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--tbt-ink); }
.tl-pill.tl-on { background: var(--tbt-accent); border-color: var(--tbt-accent); color: #fff; }
.tl-pill.tl-on i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: tl-pulse 1.4s infinite; }
.tl-pill.tl-final { background: var(--tbt-ink); color: #fff; }
@keyframes tl-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tl-pill.tl-on i { animation: none; } }
.tl-board-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.tl-board { width: 100%; border-collapse: collapse; background: var(--tbt-primary); color: #fff; font-variant-numeric: tabular-nums; border-radius: 8px; overflow: hidden; }
.tl-board th, .tl-board td { padding: 8px 6px; text-align: center; min-width: 30px; }
.tl-board thead th { font-size: .78rem; font-weight: 600; opacity: .8; border-bottom: 1px solid rgba(255,255,255,.25); }
.tl-board tbody th { text-align: left; padding-left: 12px; font-weight: 700; white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.tl-board tbody td { font-family: var(--tbt-num-font); font-size: 1.15rem; }
.tl-board .tl-r { font-size: 1.4rem; border-left: 2px solid rgba(255,255,255,.35); }
.tl-board tr.tl-bat th::before { content: "▸ "; color: var(--tbt-accent); }
.tl-board .tl-now { background: rgba(255,255,255,.12); }
.tl-sit { display: grid; grid-template-columns: auto auto 1fr; gap: 14px 22px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--tbt-rule); }
.tl-field { display: flex; align-items: center; gap: 10px; }
.tl-diamond { width: 110px; height: auto; }
.tl-diamond rect { fill: #fff; stroke: var(--tbt-ink); stroke-width: 3; }
.tl-diamond rect.on { fill: var(--tbt-accent); stroke: var(--tbt-accent); }
.tl-diamond .tl-home { fill: var(--tbt-ink); }
.tl-inn { font-family: var(--tbt-num-font); font-size: 1.5rem; text-align: center; line-height: 1.1; }
.tl-arrow { display: block; font-size: .9rem; color: var(--tbt-accent); }
.tl-count { display: grid; gap: 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tbt-muted); }
.tl-count div { display: flex; align-items: center; gap: 5px; }
.tl-count span { width: 4.6em; }
.tl-count i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--tbt-ink); }
.tl-count i.b { background: var(--tbt-ok); border-color: var(--tbt-ok); }
.tl-count i.s { background: #d08a00; border-color: #d08a00; }
.tl-count i.o { background: var(--tbt-bad); border-color: var(--tbt-bad); }
.tl-who { display: grid; gap: 10px; min-width: 0; }
.tl-who > div { display: flex; flex-direction: column; border-left: 4px solid var(--tbt-primary); padding: 2px 0 2px 10px; }
.tl-who .tl-p { border-color: var(--tbt-rule); }
.tl-who small { color: var(--tbt-muted); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.tl-who strong { font-size: 1.15rem; }
.tl-num { font-family: var(--tbt-num-font); margin-right: .4em; color: var(--tbt-accent); }
.tl-next { color: var(--tbt-muted); font-size: .88rem; }
.tl-seq { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-seq li { font-size: .82rem; padding: 3px 9px; border-radius: 999px; background: var(--tbt-tint); border: 1px solid var(--tbt-rule); }
.tl-seq li b { margin-right: 5px; color: var(--tbt-muted); }
.tl-seq li.ball { border-color: var(--tbt-ok); }
.tl-seq li.strike { border-color: #d08a00; }
.tl-seq li.inplay { border-color: var(--tbt-primary); font-weight: 600; }
.tl-sit-final { display: block; text-align: center; }
.tl-result { font-family: var(--tbt-num-font); font-size: 2rem; margin: 6px 0; }
.tl-result.tl-win { color: var(--tbt-ok); }
.tl-result.tl-loss { color: var(--tbt-bad); }
.tl-feed h3 { margin: 18px 0 4px; }
.tl-feed h4 { margin: 14px 0 4px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tbt-muted); }
.tl-plays { margin: 0; padding: 0 0 0 1.2em; }
.tl-plays li { padding: 4px 0; border-bottom: 1px dotted var(--tbt-rule); }
.tl-plays li.tl-scored { background: var(--tbt-tint); }
.tl-plays li.tl-ours { border-left: 3px solid var(--tbt-accent); padding-left: 6px; }
.tl-ps { font-family: var(--tbt-num-font); white-space: nowrap; }
.tl-pre { padding: 28px 16px; text-align: center; background: var(--tbt-tint); border-radius: 8px; }
.tl-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: .88rem; color: var(--tbt-muted); }
@media (max-width: 600px) {
	.tl-sit { grid-template-columns: auto 1fr; }
	.tl-who { grid-column: 1 / -1; }
	.tl-head h2 { font-size: 1.15rem; }
	.tl-board td, .tl-board th { padding: 7px 4px; min-width: 22px; }
	.tl-board tbody td { font-size: 1rem; }
}
.tbt-result.tbt-live-link span { background: var(--tbt-accent); }
.tbt-live-banner { display: flex; align-items: center; gap: 10px; background: var(--tbt-primary); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-family: var(--tbt-ui-font); font-weight: 600; margin: 0 0 14px; }
.tbt-live-banner:hover, .tbt-live-banner:focus { color: #fff; filter: brightness(1.1); }
.tbt-live-banner .tl-pill { border-color: #fff; }
.tbt-live-banner b { font-family: var(--tbt-num-font); font-weight: 400; font-size: 1.2rem; margin-left: auto; }

/* ---------------- Tournaments ---------------- */
.tbt-tour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 24px; }
.tbt-tour-card { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--tbt-rule); border-top: 4px solid var(--tbt-primary); border-radius: 6px; text-decoration: none; color: var(--tbt-ink); font-family: var(--tbt-ui-font); background: var(--tbt-paper); }
.tbt-tour-card:hover, .tbt-tour-card:focus { border-top-color: var(--tbt-accent); }
.tbt-tour-card strong { font-size: 1.12rem; }
.tbt-tour-dates { color: var(--tbt-accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.tbt-tour-rec { color: var(--tbt-muted); font-size: .88rem; }
.tbt-tour-head h2 { margin-bottom: 4px; }
.tbt-tour-head p { margin-top: 0; font-family: var(--tbt-ui-font); color: var(--tbt-muted); }
.tbt-standings tr.tbt-us td { font-weight: 700; background: #fff6d8; }
.tbt-hotel { border: 1px solid var(--tbt-rule); border-radius: 6px; padding: 4px 16px 10px; background: var(--tbt-tint); font-family: var(--tbt-ui-font); }
.tbt-focus { font-style: italic; }

/* ---------------- Player development ---------------- */
.tbt-mcharts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 10px 0 20px; }
.tbt-mchart { margin: 0; border: 1px solid var(--tbt-rule); border-radius: 6px; padding: 10px 10px 4px; background: var(--tbt-paper); font-family: var(--tbt-ui-font); }
.tbt-mchart figcaption { font-size: .9rem; margin: 0 0 4px; }
.tbt-mval { font-family: var(--tbt-num-font); font-size: 1.1rem; margin-left: 4px; }
.tbt-mdelta { display: block; font-size: .8rem; color: var(--tbt-muted); }
.tbt-mdelta.is-up::first-letter { color: var(--tbt-ok); }
.tbt-mdelta.is-down::first-letter { color: var(--tbt-bad); }
.tbt-mchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.tbt-mchart .g { stroke: var(--tbt-rule); stroke-width: 1; }
.tbt-mchart .ax { font-size: 10px; fill: var(--tbt-muted); }
.tbt-mchart .ln { fill: none; stroke: var(--tbt-primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tbt-mchart .dot { fill: var(--tbt-primary); stroke: var(--tbt-paper); stroke-width: 2; }
.tbt-mchart .hit { fill: transparent; }
.tbt-mchart .pt:hover .dot, .tbt-mchart .pt:focus .dot { r: 6; }
.tbt-mchart .tg { stroke: var(--tbt-accent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.tbt-mchart .tg-l { fill: var(--tbt-accent); }
.tbt-mtable summary { font-size: .78rem; color: var(--tbt-muted); cursor: pointer; }
.tbt-mtable table { font-size: .8rem; margin-top: 4px; }
.tbt-ratings { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 22px; font-family: var(--tbt-ui-font); }
.tbt-rt-group h5 { margin: 8px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tbt-muted); }
.tbt-rt { display: grid; grid-template-columns: 9.5em 1fr 2.4em; gap: 8px; align-items: center; font-size: .9rem; padding: 2px 0; }
.tbt-rt-bar { position: relative; height: 10px; background: var(--tbt-tint); border-radius: 5px; }
.tbt-rt-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tbt-primary); border-radius: 5px; }
.tbt-rt-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--tbt-ink); }
.tbt-rt-v { font-variant-numeric: tabular-nums; font-weight: 700; }
.tbt-rt-v small.is-up { color: var(--tbt-ok); }
.tbt-rt-v small.is-down { color: var(--tbt-bad); }
.tbt-goals { list-style: none; padding: 0; margin: 6px 0 14px; }
.tbt-goal { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--tbt-rule); font-family: var(--tbt-ui-font); }
.tbt-goal.is-dropped { opacity: .6; }
.tbt-goal .tbt-progress { height: 8px; margin: 4px 0 0; max-width: 360px; }
.tbt-goal-act a { margin-right: 8px; font-size: .85rem; }
.tbt-profile { max-width: 760px; margin: 0 auto; padding: 24px 16px; font-family: var(--tbt-ui-font); }

/* ---------------- Hub: sign-ups, my player ---------------- */
.tbt-small { min-height: 38px; padding: 7px 14px; font-size: .92rem; }
.tbt-ghost { background: transparent; color: var(--tbt-primary); border: 2px solid var(--tbt-primary); }
.tbt-ghost:hover, .tbt-ghost:focus { color: var(--tbt-primary); }
.tbt-signup { border: 1px solid var(--tbt-rule); border-radius: 8px; padding: 4px 16px 12px; margin: 0 0 16px; background: var(--tbt-paper); font-family: var(--tbt-ui-font); }
.tbt-signup h3 { margin: 12px 0 2px; }
.tbt-slots { list-style: none; padding: 0; margin: 8px 0; }
.tbt-slot { padding: 10px 0; border-top: 1px solid var(--tbt-rule); }
.tbt-slot-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.tbt-slot-count { color: var(--tbt-muted); font-size: .88rem; }
.tbt-slot.is-full .tbt-slot-count { color: var(--tbt-ok); font-weight: 600; }
.tbt-slot-who { margin: 4px 0 0 1.1em; padding: 0; }
.tbt-slot-join { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.tbt-slot-join input:not([type=checkbox]):not([type=hidden]), .tbt-slot-join select { font: inherit; padding: 7px 9px; border: 1px solid #b9c2b4; border-radius: 6px; min-height: 38px; }
.tbt-slot-join input[name=note], .tbt-slot-join input[name=label], .tbt-slot-join input[name=name] { flex: 1 1 180px; }
.tbt-slot-join input[type=number] { width: 6em; }
.tbt-offer { padding-top: 10px; border-top: 2px dashed var(--tbt-rule); }
.tbt-link-danger { background: none; border: 0; color: var(--tbt-bad); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0 4px; }
.tbt-api-msg { display: block; font-size: .88rem; margin-top: 4px; }
.tbt-family-player { border: 1px solid var(--tbt-rule); border-radius: 8px; padding: 0 16px 14px; margin: 0 0 22px; font-family: var(--tbt-ui-font); }
.tbt-family-player .tbt-player-head { margin: 0 -16px 10px; }
.tbt-family-player h4 { margin: 18px 0 6px; font-size: 1.05rem; border-bottom: 2px solid var(--tbt-ink); padding-bottom: 3px; }
.tbt-jump { display: flex; gap: 10px; margin: 0 0 12px; font-family: var(--tbt-ui-font); }
.tbt-dues { list-style: none; padding: 0; margin: 0; }
.tbt-dues li { padding: 10px 0; border-bottom: 1px solid var(--tbt-rule); display: flex; flex-direction: column; gap: 4px; }
.tbt-due-head { display: flex; justify-content: space-between; gap: 10px; }
.tbt-dues li.is-owed .tbt-due-head span { color: var(--tbt-bad); font-weight: 700; }
.tbt-paybtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.tbt-pay-venmo { background: #008cff; }
.tbt-pay-paypal { background: #003087; }
.tbt-pay-cashapp { background: #00a63e; }
.tbt-forms-list { list-style: none; padding: 0; margin: 0; }
.tbt-forms-list > li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--tbt-rule); }
.tbt-fs-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: var(--tbt-bad); }
.tbt-fs-ok .tbt-fs-dot { background: var(--tbt-ok); }
.tbt-fs-expiring .tbt-fs-dot { background: #d08a00; }
.tbt-fs-label { font-size: .85rem; color: var(--tbt-muted); }
.tbt-fs-missing .tbt-fs-label, .tbt-fs-expired .tbt-fs-label { color: var(--tbt-bad); font-weight: 600; }
.tbt-sign summary { cursor: pointer; color: var(--tbt-primary); font-weight: 600; margin-top: 4px; }
.tbt-sign-body { background: var(--tbt-tint); border-radius: 6px; padding: 4px 12px; margin: 6px 0; font-size: .92rem; max-height: 260px; overflow: auto; }
.tbt-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; margin: 6px 0 10px; }
.tbt-size-grid label { display: flex; flex-direction: column; font-size: .88rem; font-weight: 600; gap: 3px; }
.tbt-size-grid select, .tbt-size-grid input { font: inherit; font-weight: 400; padding: 7px 9px; border: 1px solid #b9c2b4; border-radius: 6px; min-height: 38px; }
.tbt-eval { background: var(--tbt-tint); border-radius: 6px; padding: 4px 14px 8px; }
.tbt-push-box, .tbt-cal-box { border: 1px solid var(--tbt-rule); border-radius: 8px; padding: 4px 16px 14px; margin: 18px 0; font-family: var(--tbt-ui-font); }
.tbt-cal-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tbt-push-topics label { display: block; margin: 4px 0; }
.tbt-practice-sheet { max-width: 900px; margin: 0 auto; padding: 20px; font-family: var(--tbt-ui-font); }
.tbt-practice-table td, .tbt-practice-table th { white-space: normal; text-align: left; vertical-align: top; }
.tbt-practice-table tr.tbt-station td:first-child { padding-left: 18px; color: var(--tbt-muted); }
@media print { .tbt-practice-sheet { padding: 0; } }
.tbt-standings th:nth-child(2), .tbt-standings td:nth-child(2) { text-align: left; }
.tbt-hub [hidden], .tbt-live [hidden] { display: none !important; }
.tbt-cal-box select { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid #b9c2b4; }

/* Pitch-by-pitch in the play-by-play */
.tl-seq li em { font-style: normal; font-weight: 700; margin-left: 4px; color: var(--tbt-ink, #1c2230); }
.tl-pp { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tl-pp li { font-size: .74rem; line-height: 1.2; padding: 2px 7px; border-radius: 999px; background: var(--tbt-tint); border: 1px solid var(--tbt-rule); color: var(--tbt-muted); }
.tl-pp li b { color: var(--tbt-ink, #1c2230); font-weight: 700; }
.tl-pp li.ball { border-color: var(--tbt-ok); }
.tl-pp li.strike { border-color: #d08a00; }
.tl-pp li.inplay { border-color: var(--tbt-primary); color: var(--tbt-primary); font-weight: 600; }
.tl-plays li { margin-bottom: 6px; }
.tbt-pbp-p { display: block; }
.tl-susp { background: #fff3cf; border-radius: 8px; padding: 8px 12px; font-weight: 600; }
.tl-notes { list-style: none; margin: 0 0 10px; padding: 8px 12px; background: var(--tbt-tint); border-radius: 8px; font-size: .9rem; }
.tl-notes li { margin: 2px 0; }
.tbt-pbp-note { font-style: italic; color: #8a5a0b; list-style: none; }
.tbt-tour-contacts { padding-left: 18px; }
.tbt-tour-contacts li { margin-bottom: 6px; }
.tbt-zone-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 8px 0 16px; }
.tbt-zone { margin: 0; width: 220px; }
.tbt-zone svg { width: 100%; height: auto; display: block; }
.tbt-zone figcaption { font-size: .78rem; color: var(--tbt-muted); margin-top: 4px; }
.tbt-zone-row > div { flex: 1 1 280px; min-width: 0; }
.tbt-pit-detail { margin: 8px 0; }
.tbt-pit-detail summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.tbt-scout-card .tbt-zone { width: 170px; display: inline-block; vertical-align: top; }
.tbt-hub-milestones { background: #fff8e1; border: 1px solid #ecd9a0; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.tbt-hub-milestones h3 { margin: 0 0 6px; font-size: 1rem; }
.tbt-hub-milestones ul { margin: 0; padding-left: 18px; }
.tbt-hub-milestones small { color: var(--tbt-muted); }
.tbt-milestones { background: #fff8e1; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.tbt-box-links { margin: 6px 0 12px; }

/* ---------------- Live page: arcade field view (v4.5) ---------------- */
.ta { margin: 0 0 18px; font-family: var(--tbt-ui-font); }
.ta[hidden] { display: none; }
.ta-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.ta-title { font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.ta-bar button { font: inherit; font-weight: 700; font-size: .88rem; min-height: 38px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--tbt-ink); background: var(--tbt-paper); color: var(--tbt-ink); cursor: pointer; }
.ta-bar button:focus-visible { outline: 3px solid var(--tbt-accent); outline-offset: 2px; }
.ta-replay { display: none; }
.ta-has-replay .ta-replay { display: inline-block; }
.ta-off .ta-stage { display: none; }
.ta-off .ta-bar { justify-content: flex-start; }
.ta-stage { position: relative; border-radius: 12px; overflow: hidden; background: #24452a; box-shadow: inset 0 0 0 3px #1c2230; }
.ta-svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.ta-sky { fill: #1f3d26; }
.ta-wall { fill: #1b5e33; stroke: #0f3a1f; stroke-width: 4; }
.ta-track { fill: none; stroke: #c48b55; stroke-width: 16; opacity: .9; }
.ta-line { stroke: #fff; stroke-width: 3; }
.ta-box { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2; }
.ta-base { fill: #fff; stroke: #c9c9c9; stroke-width: 1; transition: fill .3s; }
.ta-base.on { fill: #ffd23f; stroke: #e0a800; }
.ta-plate { fill: #fff; }
.ta-rubber { fill: #fff; }
.ta-shadow { fill: rgba(0,0,0,.28); }
.ta-us { --ta-j: var(--tbt-primary); --ta-c: var(--tbt-accent); --ta-n: #fff; }
.ta-them { --ta-j: #9aa3ae; --ta-c: #2a2f37; --ta-n: #1c2230; }
.ta-jersey { fill: var(--ta-j); stroke: rgba(0,0,0,.35); stroke-width: 1; }
.ta-leg { fill: #eef0f3; stroke: rgba(0,0,0,.3); stroke-width: .8; transform-box: fill-box; transform-origin: 50% 0; }
.ta-skin { fill: #e9b98f; }
.ta-cap { fill: var(--ta-c); }
.ta-jn { font: 800 11px/1 var(--tbt-ui-font); fill: var(--ta-n); pointer-events: none; }
.ta-glove { fill: #8a5a2b; stroke: #5c3a19; stroke-width: 1; }
.ta-bat { stroke: #c79a5b; stroke-width: 4.5; stroke-linecap: round; }
.ta-name { font: 700 15px/1 var(--tbt-ui-font); fill: #fff; stroke: rgba(10,18,30,.85); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.ta-runner .ta-name { fill: #ffd23f; }
.ta-batter .ta-name { fill: #ffd23f; }
.ta-pos-C .ta-name { transform: translateY(6px); }
.ta-p .ta-body { animation: ta-bob 2.4s ease-in-out infinite; }
.ta-p.ta-pos-LF .ta-body { animation-delay: -.4s; } .ta-p.ta-pos-CF .ta-body { animation-delay: -.9s; } .ta-p.ta-pos-RF .ta-body { animation-delay: -1.3s; }
.ta-p.ta-pos-SS .ta-body { animation-delay: -.6s; } .ta-p.ta-pos-2B .ta-body { animation-delay: -1.1s; } .ta-p.ta-pos-1B .ta-body { animation-delay: -1.7s; }
@keyframes ta-bob { 50% { transform: translateY(-2px); } }
.ta-run .ta-body { animation: ta-hop .28s linear infinite; }
.ta-run .ta-l1 { animation: ta-leg .28s ease-in-out infinite; }
.ta-run .ta-l2 { animation: ta-leg .28s ease-in-out infinite reverse; }
@keyframes ta-leg { 0% { transform: rotate(-30deg); } 50% { transform: rotate(30deg); } 100% { transform: rotate(-30deg); } }
@keyframes ta-hop { 50% { transform: translateY(-3px); } }
.ta-throw .ta-body { transform: rotate(-12deg); transition: transform .15s; }
.ta-ball { fill: #fff; stroke: #d33; stroke-width: 1.4; }
.ta-bshadow { fill: rgba(0,0,0,.45); }
.ta-banner { font: 900 64px/1 var(--tbt-num-font); fill: #fff; stroke: #10192b; stroke-width: 10px; paint-order: stroke; stroke-linejoin: round; letter-spacing: 2px; }
.ta-banner.ta-good { fill: #ffd23f; }
.ta-banner.ta-bad { fill: #ff9d9d; }
.ta-banner.ta-huge { font-size: 92px; }
.ta-pop { font: 900 30px/1 var(--tbt-num-font); fill: #fff; stroke: #10192b; stroke-width: 6px; paint-order: stroke; }
.ta-pop.ta-out { fill: #ff6b6b; }
.ta-pop.ta-pball { fill: #7fd6ff; font-size: 24px; }
.ta-pop.ta-pstrike { fill: #ffb3b3; font-size: 24px; }
.ta-pop.ta-run1 { fill: #ffd23f; font-size: 26px; }
.ta-hud { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; background: rgba(10,18,30,.82); color: #fff; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .95rem; }
.ta-outs { display: inline-flex; gap: 4px; }
.ta-outs i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.ta-outs i.on { background: #ffd23f; border-color: #ffd23f; }

.ta-caption { min-height: 1.3em; margin: 8px 2px 0; font-size: .95rem; line-height: 1.35; color: var(--tbt-ink); }
.ta-caption.on::before { content: "Last play: "; font-weight: 700; }
.ta-off .ta-caption { display: none; }
@media (max-width: 599px) {
	.ta-name { font-size: 25px; stroke-width: 5px; }
	.ta-hud { font-size: .85rem; top: 6px; left: 6px; padding: 4px 9px; }
	.ta-banner { font-size: 76px; }
}
@media (prefers-reduced-motion: reduce) {
	.ta-p .ta-body, .ta-run .ta-body, .ta-run .ta-l1, .ta-run .ta-l2 { animation: none; }
}

/* "Install the team app" banner (v4.6) */
.tbt-install { display: flex; gap: 12px; align-items: flex-start; background: var(--tbt-primary); color: #fff; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-family: var(--tbt-ui-font); line-height: 1.4; }
.tbt-install-ico { font-size: 1.6rem; line-height: 1; }
.tbt-install > div { flex: 1; }
.tbt-install-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; }
.tbt-install-go { font: inherit; font-weight: 700; margin-left: 6px; border: 0; border-radius: 8px; padding: 4px 12px; background: #fff; color: var(--tbt-primary); cursor: pointer; }
.tbt-share { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }

/* Post-game insights (v4.6) */
.tbt-insights { border: 1px solid var(--tbt-rule); border-radius: 12px; padding: 14px 16px; margin: 0 0 22px; background: var(--tbt-paper); font-family: var(--tbt-ui-font); }
.tbt-insights h3 { margin: 0 0 10px; }
.tbt-ins-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tbt-ins-cols h4 { margin: 0 0 6px; font-size: .95rem; }
.tbt-ins-good h4 { color: var(--tbt-ok); } .tbt-ins-work h4 { color: var(--tbt-bad); }
.tbt-ins-cols ul { margin: 0; padding-left: 1.2em; } .tbt-ins-cols li { margin: 4px 0; }
.tbt-ins-nums { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--tbt-rule); }
.tbt-ins-nums div { display: flex; flex-direction: column; } .tbt-ins-nums dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tbt-muted); } .tbt-ins-nums dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Radio mode (v4.6) */
.tbt-radio { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-family: var(--tbt-ui-font); }
.tbt-radio-btn { font: inherit; font-weight: 700; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--tbt-ink); background: var(--tbt-paper); color: var(--tbt-ink); cursor: pointer; }
.tbt-radio.on .tbt-radio-btn { background: var(--tbt-accent); border-color: var(--tbt-accent); color: #fff; }
.tbt-radio-note { color: var(--tbt-muted); font-size: .88rem; }
