/* /scoreboard page (uses control.css for buttons, panels, tabs, forms) */
body { max-width: 1280px; margin: 0 auto; }
.center { text-align: center; justify-content: center; }
.field { background: #070b12; border: 1px solid #222c3c; padding: 7px 10px; color: var(--text); outline: none; }
.field:focus { border-color: #3d5378; }
.obsconn p { margin: 8px 0 0; line-height: 1.6; }
.obspill { font-size: 13px; letter-spacing: 0.12em; padding: 3px 10px; border: 1px solid #333c4c; color: var(--muted); }
.obspill.on { border-color: #3ddc84; color: #3ddc84; }
.obspill.connecting { border-color: var(--gold); color: var(--gold); }
.obspill.error { border-color: var(--red); color: #ff9aa5; }

/* preview — same shapes as the Canva bar */
.sbbar {
  display: grid; grid-template-columns: 120px 1fr 230px 1fr 120px; align-items: center;
  height: 84px; background: #0b0d12; border-bottom: 3px solid #c9661e; margin-bottom: 14px;
  font-family: 'Barlow Condensed', 'Kanit', sans-serif; font-style: italic; text-transform: uppercase;
}
.sbbar .box { height: 64px; display: flex; align-items: center; justify-content: center; background: var(--tc); }
.sbbar .box.L { clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.sbbar .box.R { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.sbbar .box span { font-size: 48px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px #0008; }
.sbbar .nm { font-size: 38px; font-weight: 800; color: #fff; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.sbbar .pill {
  height: 64px; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 0.95;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); border-radius: 0 0 18px 18px; font-style: normal;
}
.sbbar .pill small { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.sbbar .pill b { font-size: 32px; font-weight: 800; }

.sbctl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.sbctl .side { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.sbctl .mid { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.teamsel { width: 100%; max-width: 320px; font-size: 18px; border-width: 2px; }
.scorectl { display: flex; align-items: center; gap: 12px; }
.btn.big { font-size: 28px; padding: 6px 22px; min-width: 64px; justify-content: center; }
.bignum { font-size: 56px; font-weight: 700; min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.gamenum { font-size: 24px; letter-spacing: 0.15em; color: var(--gold); min-width: 110px; text-align: center; }

.boxlist { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.boxrow { display: grid; grid-template-columns: 18px 140px 1fr 1fr; gap: 10px; align-items: center; }
.boxrow .sw { width: 18px; height: 18px; display: block; }
.boxrow label { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; }
.boxrow .full { grid-column: 3 / -1; font-size: 12px; color: var(--muted); background: none; padding: 0; word-break: break-all; }

.srclist { display: flex; flex-direction: column; gap: 6px; }
.srcrow { display: grid; grid-template-columns: 24px 170px 220px 1fr; gap: 10px; align-items: center; }
.srcrow .ok { text-align: center; color: var(--muted); font-weight: 700; }
.srcrow .ok.yes { color: #3ddc84; }
.srcrow .ok.no { color: #ff5b6b; }
.srcrow .lbl2 small { color: var(--muted); margin-left: 8px; font-size: 11px; letter-spacing: 0.1em; }
.srcrow .val { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help ol { margin: 0 0 10px; padding-left: 22px; line-height: 1.9; }

@media (max-width: 800px) {
  .sbbar { grid-template-columns: 60px 1fr 130px 1fr 60px; height: 56px; }
  .sbbar .box { height: 44px; } .sbbar .box span { font-size: 30px; }
  .sbbar .nm { font-size: 18px; } .sbbar .pill { height: 44px; } .sbbar .pill b { font-size: 20px; } .sbbar .pill small { font-size: 10px; }
  .sbctl { grid-template-columns: 1fr 1fr; }
  .sbctl .mid { grid-column: 1 / -1; order: 3; }
  .bignum { font-size: 40px; min-width: 44px; } .btn.big { padding: 4px 14px; min-width: 48px; }
  .boxrow { grid-template-columns: 18px 1fr; } .boxrow label, .boxrow .full { grid-column: 2; }
  .srcrow { grid-template-columns: 24px 1fr; } .srcrow input, .srcrow .val { grid-column: 2; }
}
