/* Bajada demo: live scoreboard. Team A = the app's brand green (var(--accent)), team B = the app's
   coral (Theme.teamB #E8512C, darkened at the foot of the tile so white text stays readable). */
.bj-board { --team-a: var(--accent); --team-a2: #075A39; --team-b: #E8512C; --team-b2: #C2401C; --lime: #D7F03C;
  display: grid; gap: 16px; align-content: center; padding: clamp(16px, 3vw, 32px); touch-action: manipulation; position: relative; min-height: 460px; }
.bj-status { justify-self: center; min-height: 32px; padding: 7px 14px; border-radius: var(--r-pill); font: 700 13.5px/1.3 var(--f-body); color: var(--ink); background: transparent; text-align: center; transition: background .25s, color .25s; }
.bj-status.on { background: var(--line); }
.bj-status.hot { background: var(--lime); color: #14200A; }
.bj-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(560px, 100%); justify-self: center; }
.bj-tile { position: relative; display: grid; grid-template-rows: auto 22px 1fr auto; justify-items: center; align-items: center; min-height: clamp(230px, 28vw, 360px); padding: 14px 8px 16px; border: 0; border-radius: 26px; color: #fff; cursor: pointer; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, var(--team-a), var(--team-a2)); box-shadow: 0 24px 40px -28px rgb(var(--ink-rgb) / .7); transition: transform .18s var(--ease), filter .2s; }
.bj-tile.bj-b { background: linear-gradient(180deg, var(--team-b), var(--team-b2)); }
.bj-tile:hover { filter: brightness(1.05); }
.bj-tile:active { transform: scale(.97); }
.bj-tile:disabled { cursor: default; filter: saturate(.7); }
.bj-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bj-name { font: 700 15px/1.2 var(--f-body); text-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.bj-ball { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F2FB9A, var(--lime) 55%, #A9C21E); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--spring); }
.bj-tile.serving .bj-ball { opacity: 1; transform: none; }
.bj-pts { font: 600 clamp(64px, 9vw, 112px)/1 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bj-pts.small { font-size: clamp(48px, 7vw, 88px); }
.bj-side { min-height: 20px; font: 700 14px/1.2 var(--f-body); color: rgb(255 255 255 / .9); }
.bj-tile.pulse .bj-pts { animation: bjPop .35s var(--spring); }
@keyframes bjPop { 0% { transform: scale(.82); } 100% { transform: none; } }
.bj-sets { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; flex-wrap: wrap; }
.bj-chip { padding: 4px 10px; border-radius: var(--r-pill); background: var(--line); color: var(--muted); font: 600 16px/1.2 var(--f-display); }
.bj-games { font: 600 36px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bj-amer { color: var(--muted); font: 600 16px/1.2 var(--f-body); }
.bj-undo { width: min(560px, 100%); justify-self: center; height: 48px; border: 0; border-radius: 16px; background: var(--line); color: var(--ink); font: 700 15px/1 var(--f-body); cursor: pointer; }
.bj-undo:disabled { opacity: .4; cursor: default; }
.bj-done { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(var(--ink-rgb) / .38); }
.bj-done[hidden] { display: none; }
.bj-done-card { display: grid; justify-items: center; gap: 12px; width: min(340px, 100%); padding: 26px 22px; border-radius: 26px; background: var(--card); text-align: center; box-shadow: 0 30px 60px -30px rgb(var(--ink-rgb) / .6); }
.bj-done-card b { font: 600 28px/1.1 var(--f-display); letter-spacing: -.02em; }
.bj-done-card span { font: 600 20px/1.2 var(--f-display); color: var(--muted); }
.bj-link { border: 0; background: none; color: var(--muted); font: 600 14px/1.2 var(--f-body); cursor: pointer; padding: 6px; }
.bj-opts { display: grid; gap: 12px; }
.bj-opt { display: grid; gap: 6px; }
.bj-opt-l { font-size: 12.5px; color: var(--muted); }
.bj-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.bj-seg button { flex: 1; min-height: 34px; padding: 4px 3px; white-space: nowrap; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 500 12.5px/1.2 var(--f-body); cursor: pointer; }
.bj-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.bj-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 520px) { .bj-tile { border-radius: 20px; min-height: 210px; } .bj-games { font-size: 30px; } .bj-board { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .bj-tile, .bj-ball, .bj-status { transition: none; } .bj-tile.pulse .bj-pts { animation: none; } }
