/* Bankroll — page styles on top of the platform's main.css. Colors come only from theme tokens. */

.br-page { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.br-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.br-header h1 { margin: 0; font-size: 1.5rem; }
.br-h2 { font-size: 1.0625rem; margin: 0 0 0.75rem; }
.br-section { margin-bottom: 1rem; }
.br-flash { margin-bottom: 1rem; }
.br-rules { padding-left: 1.25rem; margin: 0 0 1rem; }
.br-rules li { margin-bottom: 0.375rem; }

.br-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; }
.br-row + .br-row { border-top: 1px solid var(--border); }
.br-row--link { color: inherit; text-decoration: none; }
.br-row--link:hover strong { text-decoration: underline; }
.br-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.br-money { text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.br-me { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.br-me div { display: flex; flex-direction: column; }
.br-me strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.br-table { margin-top: 0; }
.br-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.br-mine td { font-weight: 600; }

.br-game { margin-bottom: 0.5rem; padding: 0.75rem 1rem; }

/* One row per game: [amount over cancel] [away] [time or score] [home]. The
   stake column sets the row's height, and the team buttons stretch to it. */
.br-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0.5rem; }
.br-bet { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
.br-stake { display: flex; flex-direction: column; justify-content: center; gap: 0.375rem; width: 7.5rem; }
.br-stake .btn { width: 100%; }
.br-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem;
          text-align: center; white-space: nowrap; font-size: 0.8125rem; color: var(--text-muted); }
.br-score { font-size: 1rem; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.br-amount-wrap { position: relative; display: flex; align-items: center; }
.br-dollar { position: absolute; left: 0.625rem; color: var(--text-muted); pointer-events: none; }
.br-amount { width: 100%; padding-left: 1.5rem; font-variant-numeric: tabular-nums; }
.br-amount:invalid:not(:placeholder-shown) { border-color: var(--danger); }

/* A team is a button: tapping it places the bet; the picked team is filled in. */
.br-team { display: flex; min-width: 0; overflow-wrap: anywhere; flex-direction: column; align-items: flex-start; justify-content: center;
           min-height: 48px; padding: 0.375rem 0.875rem; font: inherit; text-align: left; cursor: pointer;
           color: var(--text-primary); background: var(--bg-surface);
           border: 2px solid var(--border); border-radius: 8px; transition: background 0.12s, border-color 0.12s; }
.br-team:hover { border-color: var(--accent); }
.br-team:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.br-team__side { font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.br-team.is-picked { background: var(--accent); border-color: var(--accent); color: var(--text-inverse); font-weight: 600; }
.br-team.is-picked .br-team__side { color: inherit; opacity: 0.8; }
.br-team--home { align-items: flex-end; text-align: right; }
.br-team--static { cursor: default; }
.br-team--static:hover { border-color: var(--border); }
.br-team--static.is-picked:hover { border-color: var(--accent); }
.br-hint { margin: 0.375rem 0 0; }
.br-flash--game { margin: 0.5rem 0 0; }
.br-bet[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.br-bets { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.br-bets li { padding: 0.125rem 0; }
.br-check { display: flex; align-items: center; gap: 0.5rem; min-height: 40px; }

.br-ok { color: var(--success, inherit); }
.br-warn { color: var(--warning, inherit); font-weight: 600; }
.br-won { color: var(--success, inherit); }
.br-lost { color: var(--danger, inherit); }
.br-refunded, .br-withdrawn { color: var(--text-muted); }

@media (max-width: 480px) {
  .br-match { gap: 0.375rem; }
  .br-stake { width: 5.75rem; }
  .br-team { padding: 0.375rem 0.5rem; font-size: 0.875rem; }
  .br-mid { font-size: 0.75rem; }
}
