/* Playoff bracket: scoreboard boxes on a grid, felt-pennant team colours, lines that light up in the
   winner's colour as teams move on, and the Cup waiting at the end. */
.bk-scroll { position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding: 4px 2px 10px; }
.bk { position: relative; margin: 0 auto; }
.bk-col-h { position: absolute; top: 0; font-family: var(--cond); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--gold); white-space: nowrap; }
.bk-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.bk-lines path { fill: none; stroke: #4a3a1c; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bk-lines path.won { stroke: var(--tc); stroke-width: 3; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--tc), transparent 30%)); }

.bk-game { position: absolute; box-sizing: border-box; display: grid; grid-template-rows: auto 1fr 1fr; padding: 6px 12px 5px; border-radius: 12px;
  background: linear-gradient(180deg, #120d06, #070503); border: 1px solid #3b2a12;
  box-shadow: inset 0 0 18px rgba(0,0,0,.9), 0 0 0 3px rgba(20,14,6,.9), 0 14px 26px -18px #000; }
.bk-game.st-live { border-color: #8a2c14; box-shadow: inset 0 0 18px rgba(0,0,0,.9), 0 0 0 3px rgba(60,14,6,.9), 0 0 26px -8px rgba(255,59,36,.65); }
.bk-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: #d9c49a; white-space: nowrap; }
.bk-h .lbl { overflow: hidden; text-overflow: ellipsis; }
.bk-h .when { flex: none; color: #b8a47a; }
.bk-h .when.live { color: #ff8b73; display: inline-flex; align-items: center; gap: 5px; }
.bk-h .when.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b24; box-shadow: 0 0 8px #ff3b24; animation: livePulse 1.6s infinite; }
.bk-row { display: grid; grid-template-columns: 18px 18px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-width: 0; }
.bk-row .seed { font-family: var(--varsity, var(--display)); font-size: 13px; color: var(--gold); text-align: center; }
.bk-row .chip { width: 18px; height: 13px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: linear-gradient(90deg, rgba(0,0,0,.3) 0 26%, transparent 26%), var(--tc, #5a6a8c); }
.bk-row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; color: #f1e6cc; }
.bk-row.tbd .nm { font-family: var(--cond); font-size: 13px; letter-spacing: .06em; color: #9b8a66; }
.bk-row.tbd .chip { background: #3b2f1c; }
.bk-row .sc { font-size: 22px; font-weight: 400; min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.bk-row.win .nm { color: #fff; }
.bk-row.lose { opacity: .5; }

.bk-champ { position: absolute; box-sizing: border-box; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 10px; text-align: center; border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,207,90,.18), transparent 70%), linear-gradient(180deg, #121a3a, #070c22);
  border: 2px dashed rgba(255,207,90,.4); }
.bk-champ img { width: 52px; height: 52px; margin-bottom: 2px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.bk-champ small { font-family: var(--cond); text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; color: var(--gold); }
.bk-champ b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1.05; color: var(--cream, #f4e8cc); }
.bk-champ.won { border: 2px solid var(--tc); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tc), transparent 65%), transparent 75%), linear-gradient(180deg, #121a3a, #070c22); box-shadow: 0 0 34px -8px var(--tc); }

/* phones: smaller boxes */
.bk.compact .bk-game { padding: 5px 9px 4px; border-radius: 10px; }
.bk.compact .bk-h { font-size: 10px; letter-spacing: .08em; }
.bk.compact .bk-row { grid-template-columns: 14px 14px minmax(0, 1fr) auto; gap: 5px; }
.bk.compact .bk-row .nm { font-size: 15px; }
.bk.compact .bk-row.tbd .nm { font-size: 11.5px; }
.bk.compact .bk-row .chip { width: 14px; height: 10px; }
.bk.compact .bk-row .sc { font-size: 18px; min-width: 18px; }
.bk.compact .bk-champ img { width: 40px; height: 40px; }
.bk.compact .bk-champ b { font-size: 17px; }
.bk.compact .bk-col-h { font-size: 10.5px; letter-spacing: .16em; }
.bk-hint { display: none; margin: 4px 0 0; font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--muted); }
.bk-hint.on { display: block; }
@media (prefers-reduced-motion: reduce) { .bk-h .when.live i { animation: none; } }
