/*
 * Zilla Engine · B+ broadcast components
 * ───────────────────────────────────────
 * Source of truth: handoff canvas boards 11 (tokens), 12 (components),
 * 01 (league home) and 13 (mobile 390). All colours come from tokens.css;
 * per-team colours arrive as inline custom properties (--tc, --tc-h, --tc-a)
 * set from team data, never hard-coded here.
 *
 * Classes are prefixed bp- so they never collide with legacy base.css.
 */

/* ═══════════════ Page frame ═══════════════ */
/* B+ pages sit flush under the sticky league navbar (legacy .main adds 66px). */
.main:has(> .bp-page) { padding-top: 0; }
.bp-page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: clip;
}
.bp-page *, .bp-page *::before, .bp-page *::after { box-sizing: border-box; }
.bp-page :where(a) { color: inherit; text-decoration: none; }
.bp-wrap { padding: 0 var(--gutter) 50px; }
.bp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 30px; }
.bp-cols > * { min-width: 0; }

/* Type helpers (scoped copies so legacy .bc in base.css can't leak in) */
.bp-page .bp-d {                      /* display: Barlow Condensed 800 italic */
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1;
}
.bp-page .bp-l {                      /* label: Barlow Condensed 700 upright */
  font-family: var(--font-display); font-weight: 700; font-style: normal;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1;
}
.bp-num { font-variant-numeric: tabular-nums; }
.bp-accent { color: var(--league-accent); }

/* ═══════════════ Utilities: slant, scanlines, sweep ═══════════════ */
.bp-skew   { transform: skewX(-12deg); }
.bp-unskew { transform: skewX(12deg); display: inline-flex; align-items: center; gap: 8px; }
.bp-scan {
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
@keyframes bp-sweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(820%) skewX(-20deg); } }
@keyframes bp-blink { 50% { opacity: .3; } }
@keyframes bp-grow  { from { transform: scaleY(0); } }
@keyframes bp-slide { to { transform: translateX(-50%); } }
.bp-sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 180px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  animation: bp-sweep 4s ease-in-out infinite;
}
.bp-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  display: inline-block; flex: none; animation: bp-blink 1s infinite;
}
.bp-dot--sm { width: 6px; height: 6px; }

/* ═══════════════ Crest (only round element in B+) ═══════════════ */
.bp-crest {
  --s: 40px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.35), transparent 50%),
    linear-gradient(145deg, var(--tc), color-mix(in srgb, var(--tc) 75%, transparent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font: 800 calc(var(--s) * .36) / 1 var(--font-body);
  color: rgba(255,255,255,.92);
}
.bp-crest img { width: 100%; height: 100%; object-fit: cover; }
.bp-crest--ring { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 3px var(--strip), 0 0 0 4.5px color-mix(in srgb, var(--tc) 80%, transparent); }

/* ═══════════════ Buttons & tabs (slanted) ═══════════════ */
.bp-btn {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 8px 18px; transform: skewX(-12deg);
  background: var(--surface-2); color: var(--white); border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 17px; line-height: 1;
}
.bp-btn > span { transform: skewX(12deg); display: inline-flex; align-items: center; gap: 8px; }
.bp-btn--primary { background: var(--league-accent); color: var(--ink); }
.bp-btn--white,
.bp-btn--watch   { background: var(--white); color: var(--black); }
.bp-btn--secondary { background: var(--surface-2); color: var(--white); }
.bp-btn--ghost   { background: var(--surface-3); color: var(--text); }
.bp-btn--sm      { min-height: 30px; padding: 6px 14px; font-size: 14px; }
.bp-btn--live    { background: var(--live); color: var(--white); }
.bp-btn--lg      { min-height: 48px; padding: 12px 26px; font-size: 18px; }
.bp-btn:hover    { filter: brightness(1.12); }
.bp-tab          { font-size: 15px; }
.bp-tab[aria-selected="true"], .bp-tab.is-active { background: var(--league-accent); color: var(--ink); }

/* ═══════════════ Section header (accent slanted plate) ═══════════════ */
.bp-sh { display: flex; align-items: flex-end; gap: 16px; margin: var(--section-gap) 0 10px; }
.bp-sh__plate { padding: 4px 22px; background: var(--league-accent); transform: skewX(-12deg); flex: none; }
.bp-sh__title { display: block; transform: skewX(12deg); font-size: 40px; color: var(--ink); }
.bp-sh__sub { font-size: 16px; color: var(--muted); padding-bottom: 6px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bp-sh__title { white-space: nowrap; }
.bp-sh__rule { flex: 1; height: 3px; margin-bottom: 12px; background: linear-gradient(90deg, var(--league-accent), transparent); }
.bp-sh--flush { margin: 0; padding: 14px 16px 10px; }
.bp-sh__link { flex: none; padding-bottom: 6px; font-size: 15px; color: var(--league-accent); text-decoration: none; white-space: nowrap; }
.bp-sh__link:hover { filter: brightness(1.2); }
.bp-more { display: block; text-align: right; margin-top: 10px; font-size: 15px; color: var(--league-accent); }

/* ═══════════════ Ticker (h 46, league-scoped) ═══════════════ */
.bp-ticker {
  height: 46px; display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  background: var(--strip); border-bottom: 1px solid var(--surface-3);
}
.bp-ticker__label {
  height: 46px; padding: 0 20px; flex: none; display: flex; align-items: center;
  background: var(--surface-2); position: relative; z-index: 2;
  font-size: 14px; color: var(--league-accent);
}
.bp-ticker__track { display: flex; animation: bp-slide 40s linear infinite; }
.bp-ticker:hover .bp-ticker__track { animation-play-state: paused; }
.bp-ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; border-right: 1px solid var(--line); }
.bp-ticker__tag { display: inline-flex; padding: 2px 8px; background: var(--surface-3); transform: skewX(-12deg); }
.bp-ticker__tag > span { transform: skewX(12deg); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.bp-ticker__tag--live { background: var(--live); }
.bp-ticker__tag--live > span { color: var(--white); }
.bp-ticker__score { font-size: 20px; }
.bp-ticker__score .w { color: var(--league-accent); }

/* ═══════════════ Game row (h 72 · 14 | 1fr | 180 | 1fr | 14) ═══════════════ */
.bp-row {
  position: relative; height: 72px; margin-top: 8px;
  display: grid; grid-template-columns: 14px minmax(0,1fr) 180px minmax(0,1fr) 14px; align-items: center;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--tc-h) 32%, transparent), var(--surface) 30%,
    var(--surface) 70%, color-mix(in srgb, var(--tc-a) 32%, transparent));
  transition: filter .15s;
}
.bp-row:hover { filter: brightness(1.15); }
.bp-row__edge { height: 100%; background: var(--tc-h); }
.bp-row__edge--a { background: var(--tc-a); }
.bp-row__side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bp-row__side--h { justify-content: flex-end; padding-right: 20px; }
.bp-row__side--a { padding-left: 20px; }
.bp-row__side .bp-crest { --s: 40px; }
.bp-row__name { flex: 0 1 auto; min-width: 3ch; font-size: 30px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-row__name.is-loser, .bp-chip__name.is-loser { color: var(--dim); }
.bp-row__venue { flex: 1 1 0; min-width: 0; text-align: right; padding-right: 18px; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-row__box {
  height: 56px; transform: skewX(-12deg); background: var(--black); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
}
.bp-row__box > span { transform: skewX(12deg); display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 2px; }
.bp-row__status { font-size: 13px; color: var(--muted); }
.bp-row__status--live {
  color: var(--white); background: var(--live); padding: 2px 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.bp-row__score { font-size: 34px; }
.bp-row__score .w, .bp-chip__score.w { color: var(--white); }
.bp-row__score .l { color: var(--dim); }
.bp-row__score .c { color: var(--league-accent); margin: 0 6px; }
.bp-row__time { font-size: 22px; color: var(--sub); }
.bp-row--live { box-shadow: inset 0 -2px 0 var(--live); }

/* ═══════════════ Score chip (w 210 · h 92) ═══════════════ */
.bp-strip {
  display: flex; align-items: stretch; gap: 6px; padding: 14px var(--gutter);
  background: var(--strip); border-bottom: 1px solid var(--surface-3);
  overflow-x: auto; scrollbar-width: none;
}
.bp-strip::-webkit-scrollbar { display: none; }
.bp-strip__label { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-right: 14px; }
.bp-strip__label .bp-d { font-size: 26px; }
.bp-strip__label .bp-l { font-size: 12px; color: var(--muted); }
.bp-chip {
  flex: none; width: 210px; height: 92px; position: relative; padding: 10px 22px;
  background: var(--surface); clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  display: block;
}
.bp-chip--live { background: linear-gradient(90deg, color-mix(in srgb, var(--live) 22%, transparent), var(--surface)); }
.bp-chip__edge { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--tc-h), var(--tc-a)); }
.bp-chip__status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bp-chip__status--live { color: color-mix(in srgb, var(--live) 70%, var(--white)); }
.bp-chip__status--live .bp-dot { color: var(--live); }
.bp-chip__team { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.bp-chip__team .bp-crest { --s: 20px; font-size: 7px; }
.bp-chip__name { flex: 1; min-width: 0; font-size: 20px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-chip__score { font-size: 22px; color: var(--text); }
.bp-chip__score.lead { color: var(--league-accent); }

/* ═══════════════ Hero (live / next / champion) ═══════════════ */
.bp-hero { position: relative; height: 520px; overflow: hidden; background: var(--bg); }
.bp-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--tc-h) 0 49.6%, var(--bg) 49.6% 50.4%, var(--tc-a) 50.4%);
}
.bp-hero__bg--solo { background: linear-gradient(105deg, var(--tc-h), var(--bg) 70%); }
.bp-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.2), rgba(0,0,0,.78) 45%, rgba(0,0,0,.78) 55%, rgba(0,0,0,.25));
}
.bp-hero__ghost {
  position: absolute; left: -20px; top: 20px; font-size: 300px; color: rgba(255,255,255,.06);
  white-space: nowrap; pointer-events: none;
}
.bp-hero__team { position: absolute; top: 70px; max-width: 28%; display: block; }
.bp-hero__team--h { left: 70px; }
.bp-hero__team--a { right: 70px; text-align: right; }
.bp-hero__team .bp-crest { --s: 116px; }
.bp-hero__tname { font-size: 70px; line-height: .9; margin-top: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-hero__tname--long { font-size: 52px; }
.bp-hero__tmeta { font-size: 18px; color: rgba(255,255,255,.75); margin-top: 6px; }
.bp-hero__center { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); text-align: center; }
.bp-hero__tag { display: inline-flex; padding: 6px 22px; background: var(--live); transform: skewX(-12deg); }
.bp-hero__tag > span { transform: skewX(12deg); display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--white); }
.bp-hero__tag--next { background: var(--league-accent); }
.bp-hero__tag--next > span { color: var(--ink); }
.bp-hero__score { font-size: 180px; line-height: .95; margin-top: 6px; text-shadow: 0 10px 40px rgba(0,0,0,.6); white-space: nowrap; }
.bp-hero__score .c { color: var(--league-accent); margin: 0 10px; }
.bp-hero__count { font-size: 120px; line-height: 1; margin-top: 14px; white-space: nowrap; }
.bp-hero__count small { font-size: 26px; color: var(--muted); margin: 0 6px 0 2px; }
.bp-hero__info { font-size: 16px; color: rgba(255,255,255,.7); margin-top: 6px; }
.bp-hero__momentum {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%);
  padding: 24px 26px 10px; white-space: nowrap; background: rgba(0,0,0,.72);
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  display: flex; align-items: center; gap: 22px;
}
.bp-hero__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex; align-items: stretch; }
.bp-hero__league {
  width: 340px; flex: none; background: var(--league-accent); color: var(--ink);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  display: flex; align-items: center; padding-left: 32px; font-size: 24px;
}
.bp-hero__next {
  flex: 1; min-width: 0; background: rgba(0,0,0,.85); display: flex; align-items: center;
  gap: 30px; padding: 0 30px; overflow: hidden; white-space: nowrap;
}
.bp-hero__next .lbl { font-size: 15px; color: var(--league-accent); }
.bp-hero__next .itm { font-size: 17px; }
.bp-hero__watch {
  width: 200px; flex: none; margin-right: -20px; background: var(--white); color: var(--black);
  transform: skewX(-12deg); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.bp-hero__watch > span { transform: skewX(12deg); }
.bp-hero__watch:last-child { margin-right: 0; width: 230px; transform: none; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); padding-left: 16px; }
.bp-hero__watch:last-child > span { transform: none; }
.bp-hero__champ .bp-crest { --s: 116px; }
.bp-hero__chat {
  width: 150px; flex: none; background: var(--surface-3); border: 0; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.bp-hero--skeleton .bp-hero__bg { background: var(--surface); }

/* ═══════════════ Momentum bar (w 720) ═══════════════ */
.bp-mo { position: relative; width: 720px; height: 80px; }
.bp-mo__axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.35); }
.bp-mo__blocks { position: absolute; inset: 0; display: flex; gap: 3px; }
.bp-mo__b {
  position: relative; flex: 1 1 0; max-width: 21px; height: 100%; display: block;
}
.bp-mo__b > i {
  position: absolute; left: 0; right: 0; display: block; height: var(--h);
  background: var(--tc-h); opacity: .8; transform-origin: bottom;
  bottom: 50%; animation: bp-grow .35s ease both;
}
.bp-mo__b--a > i { background: var(--tc-a); top: 50%; bottom: auto; transform-origin: top; }
.bp-mo__b--new > i { opacity: 1; }
.bp-mo__lbl { position: absolute; top: -16px; font-size: 11px; color: rgba(255,255,255,.45); }
.bp-mo__team { position: absolute; left: -2px; font-size: 11px; }
.bp-mo__team--h { top: 6px; color: var(--tc-h); }
.bp-mo__team--a { bottom: 4px; color: var(--tc-a); }
.bp-mo__run { display: inline-flex; padding: 10px 18px; background: var(--tc-run); transform: skewX(-12deg); }
.bp-mo__run > span { transform: skewX(12deg); font-size: 19px; color: var(--white); display: flex; gap: 8px; align-items: center; }

/* ═══════════════ Power row (heights by rank) ═══════════════ */
.bp-power {
  --h: 60px; --rk-w: 80px; --rk-fs: 54px; --crest: 32px; --name: 21px;
  --pl-h: 40px; --pl-w: 88px; --pl-fs: 30px; --tint: 30%;
  position: relative; height: var(--h); margin-top: 6px; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) var(--tint), transparent), var(--surface) 50%);
}
.bp-power--t1 { --h: 108px; --rk-w: 128px; --rk-fs: 97px; --crest: 59px; --name: 38px; --pl-h: 88px; --pl-w: 138px; --pl-fs: 54px; --tint: 55%; }
.bp-power--t2 { --h: 88px;  --rk-w: 108px; --rk-fs: 79px; --crest: 48px; --name: 31px; --pl-h: 68px; --pl-w: 118px; --pl-fs: 44px; }
.bp-power--t3 { --h: 76px;  --rk-w: 96px;  --rk-fs: 68px; --crest: 41px; --name: 27px; --pl-h: 56px; --pl-w: 106px; --pl-fs: 38px; }
.bp-power--t4 { --h: 66px;  --rk-w: 86px;  --rk-fs: 59px; --crest: 36px; --name: 23px; --pl-h: 46px; --pl-w: 96px;  --pl-fs: 33px; }
.bp-power__rank { width: var(--rk-w); flex: none; font-size: var(--rk-fs); text-align: center; color: rgba(255,255,255,.35); }
.bp-power--t1 .bp-power__rank { color: var(--white); }
.bp-power__edge { width: 6px; align-self: stretch; background: var(--tc); transform: skewX(-12deg); flex: none; }
.bp-power__team { display: flex; align-items: center; gap: 16px; padding-left: 22px; flex: 1; min-width: 0; }
.bp-power__team .bp-crest { --s: var(--crest); }
.bp-power__name { display: block; font-size: var(--name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-power__meta { display: block; font-size: 14px; color: var(--sub); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-power__form { display: flex; gap: 4px; margin-right: 30px; flex: none; }
.bp-form { width: 18px; height: 22px; display: inline-flex; align-items: center; justify-content: center; transform: skewX(-12deg); background: var(--surface-3); }
.bp-form b { transform: skewX(12deg); font-size: 12px; color: var(--black); }
.bp-form--W { background: var(--win); }
.bp-form--L { background: var(--live); }
.bp-power__pts {
  height: var(--pl-h); width: var(--pl-w); flex: none; margin-right: 26px; transform: skewX(-12deg);
  background: var(--surface-3); display: flex; align-items: center; justify-content: center;
}
.bp-power__pts > span { transform: skewX(12deg); font-size: var(--pl-fs); color: var(--white); }
.bp-power--t1 .bp-power__pts { background: var(--white); }
.bp-power--t1 .bp-power__pts > span { color: var(--black); }
.bp-advance { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; font-size: 12px; color: var(--win); }
.bp-advance::after { content: ''; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--win) 0 6px, transparent 6px 12px); }

/* ═══════════════ Leaders card (1 featured + 3 rows) ═══════════════ */
.bp-panel { background: var(--panel); border-top: 4px solid var(--league-accent); }
.bp-lead__feat {
  position: relative; height: 150px; overflow: hidden; display: block;
  background: linear-gradient(115deg, color-mix(in srgb, var(--tc) 85%, transparent), color-mix(in srgb, var(--tc) 20%, transparent) 60%, var(--panel));
}
.bp-lead__feat .bp-scan { position: absolute; inset: 0; }
.bp-lead__val { position: absolute; right: 20px; top: 4px; font-size: 130px; }
.bp-lead__crest { position: absolute; left: 20px; top: 14px; }
.bp-lead__crest .bp-crest { --s: 56px; }
.bp-lead__who { position: absolute; left: 20px; bottom: 16px; max-width: 58%; }
.bp-lead__label { font-size: 13px; color: rgba(255,255,255,.75); }
.bp-lead__name { font-size: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.bp-lead__row {
  display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 18%, transparent), transparent 50%);
}
.bp-lead__row .edge { width: 5px; height: 38px; background: var(--tc); transform: skewX(-12deg); flex: none; }
.bp-lead__row .bp-crest { --s: 32px; }
.bp-lead__row .txt { flex: 1; min-width: 0; }
.bp-lead__row .lbl { display: block; font-size: 12px; color: var(--muted); }
.bp-lead__row .nm { display: block; font-size: 22px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-lead__row .v { font-size: 34px; }

/* ═══════════════ Date strip (76 × 64 per day, scrolls) ═══════════════ */
.bp-dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 6px; }
.bp-dates::-webkit-scrollbar { display: none; }
.bp-date {
  flex: 1 0 76px; min-width: 76px; height: 84px; background: var(--plate); transform: skewX(-12deg);
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.bp-date > span { transform: skewX(12deg); text-align: center; display: block; }
.bp-date .d1 { display: block; font-size: 13px; color: var(--muted); }
.bp-date .d2 { display: block; font-size: 30px; margin: 3px 0; }
.bp-date .d3 { display: block; font-size: 12px; color: var(--dim); }
.bp-date.is-active { background: var(--league-accent); }
.bp-date.is-active .d1, .bp-date.is-active .d2, .bp-date.is-active .d3 { color: var(--ink); }

/* ═══════════════ The field (team cards) ═══════════════ */
.bp-field { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 4px; }
.bp-tcard {
  padding: 16px 12px; text-align: center; display: block;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 38%, transparent), var(--surface));
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.bp-tcard:hover { filter: brightness(1.15); }
.bp-tcard .bp-crest { --s: 54px; }
.bp-tcard__name { font-size: 20px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-tcard svg { width: 100px; height: 26px; margin-top: 2px; max-width: 100%; }
.bp-tcard__pts { font-size: 20px; color: var(--league-accent); }

/* ═══════════════ CTA band ═══════════════ */
.bp-cta {
  position: relative; overflow: hidden; margin-top: var(--section-gap);
  padding: 36px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(105deg, color-mix(in srgb, var(--league-accent) 35%, transparent), var(--surface) 55%);
  border-left: 6px solid var(--league-accent);
}
.bp-cta__title { font-size: 56px; }
.bp-cta__sub { font-size: 16px; color: var(--sub); margin-top: 8px; max-width: 60ch; }
.bp-cta__btns { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════ Empty + loading states ═══════════════ */
.bp-empty {
  padding: 22px 24px; margin-top: 8px; background: var(--surface); border-left: 5px solid var(--line-2);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--sub); font-size: 15px;
}
.bp-empty .bp-l { color: var(--text); font-size: 18px; }
@keyframes bp-shimmer { to { background-position: -200% 0; } }
.bp-skel {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: bp-shimmer 1.4s linear infinite;
}
.bp-skel--row { height: 72px; margin-top: 8px; }

/* ═══════════════ Step 2 · League Home blocks (boards 13–15, 33–39) ═══════════════ */
.bp-gap { height: var(--section-gap); }
.bp-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.bp-note a { color: var(--league-accent); }
.bp-empty--block { flex-direction: column; align-items: flex-start; border: 1px dashed var(--line-2); border-left-width: 1px; background: var(--bg-2); padding: 26px 28px; }
.bp-empty--block .bp-l { font-size: 26px; font-family: var(--font-display); font-weight: 800; font-style: italic; color: var(--sub); }

/* Buttons used on the accent bands */
.bp-btn--dark     { background: var(--black); color: var(--white); }
.bp-btn--onaccent { background: color-mix(in srgb, var(--black) 18%, var(--league-accent)); color: var(--ink); }

/* Hero · opening day (pre-season) */
.bp-hero__center--mid { top: 50%; transform: translate(-50%, -62%); width: 100%; }
.bp-hero__tag--dark { background: var(--surface-2); }
.bp-hero__tag--dark > span { color: var(--white); }
.bp-hero__count--lbl { display: flex; justify-content: center; gap: 28px; font-size: 150px; line-height: .9; }
.bp-hero__count--lbl .u { display: flex; flex-direction: column; align-items: center; }
.bp-hero__count--lbl small { font-size: 14px; color: rgba(255,255,255,.75); letter-spacing: .14em; margin: 8px 0 0; }

/* Hero · champion card (boards 15, 37) */
.bp-hero--champ { height: 560px; }
.bp-hero--champ.has-awards { height: 620px; }
.bp-hero__bg--champ { position: absolute; inset: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--tc-h) 55%, var(--surface)), var(--bg) 70%); }
.bp-champ__ghost { position: absolute; right: -10px; top: -40px; font-size: 420px; line-height: 1; color: rgba(255,255,255,.04); white-space: nowrap; pointer-events: none; }
.bp-champ { position: absolute; left: 70px; right: 70px; top: 56px; display: flex; align-items: center; gap: 34px; }
.bp-champ__crest .bp-crest { --s: 190px; font-size: 80px; }
.bp-champ__txt { min-width: 0; }
.bp-champ__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--champion); font-size: 18px; letter-spacing: .1em; }
.bp-champ__name { display: block; font-size: 150px; line-height: .9; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.bp-champ__line { font-size: 18px; color: rgba(255,255,255,.82); margin-top: 10px; }
.bp-champ__awards { position: absolute; left: 70px; right: 70px; bottom: 84px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.bp-award { background: color-mix(in srgb, var(--black) 80%, transparent); border-top: 3px solid var(--league-accent); padding: 12px 16px; min-width: 0; }
.bp-award__type { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--champion); }
.bp-award__who { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-width: 0; }
.bp-award__who .bp-crest { --s: 28px; }
.bp-award__name { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-award__stat { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Pre-season · teams entered */
.bp-entries { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.bp-entry {
  position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px 0 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 30%, transparent), var(--surface) 55%); min-width: 0;
}
.bp-entry:hover { filter: brightness(1.15); }
.bp-entry__edge { width: 5px; height: 34px; background: var(--tc); transform: skewX(-12deg); flex: none; }
.bp-entry .bp-crest { --s: 30px; }
.bp-entry__txt { flex: 1; min-width: 0; }
.bp-entry__name { display: block; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-entry__meta { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.bp-entry__st { font-size: 11px; color: var(--league-accent); flex: none; }
.bp-entry__st.is-ok { color: var(--win); }

/* News (block 7) */
.bp-newsgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; }
.bp-newsgrid--solo { grid-template-columns: minmax(0, 2fr) 3fr; }
.bp-news { position: relative; display: flex; flex-direction: column; background: var(--surface); min-width: 0; overflow: hidden; --tc: var(--league-accent); }
.bp-news:hover { filter: brightness(1.12); }
.bp-news--feat { border-top: 4px solid var(--league-accent); }
.bp-news__cover {
  position: relative; height: 120px; overflow: hidden; flex: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 70%, var(--black)), var(--surface-2) 75%);
  background-size: cover; background-position: center;
}
.bp-news--feat .bp-news__cover { height: 230px; }
.bp-news__cover.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.bp-news__ghost { position: absolute; left: -6px; bottom: -14px; font-size: 96px; color: rgba(255,255,255,.12); white-space: nowrap; }
.bp-news--feat .bp-news__ghost { font-size: 170px; bottom: -30px; }
.bp-news__tag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 3px 10px; background: var(--black); transform: skewX(-12deg); }
.bp-news--feat .bp-news__tag { background: var(--league-accent); color: var(--ink); }
.bp-news__tag > span { display: block; transform: skewX(12deg); font-size: 11px; }
.bp-news__ico { position: absolute; right: 12px; top: 12px; z-index: 1; color: rgba(255,255,255,.8); }
.bp-news__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bp-news__title { font-size: 22px; line-height: 1; margin: 0; overflow-wrap: anywhere; }
.bp-news--feat .bp-news__title { font-size: 34px; }
.bp-news__ex { font-size: 13px; color: var(--sub); margin: 0; line-height: 1.45; }
.bp-news--feat .bp-news__ex { font-size: 15px; }
.bp-news__meta { font-size: 11px; color: var(--dim); margin-top: auto; }

/* Highlights (block 8) */
.bp-hls { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; padding: 0 8px; }
.bp-hl { position: relative; height: 150px; overflow: hidden; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); display: block; }
.bp-hl__bg { position: absolute; inset: 0; background: linear-gradient(120deg, var(--tc-h), var(--surface) 55%, var(--tc-a)); background-size: cover; background-position: center; }
.bp-hl:hover .bp-hl__bg { filter: brightness(1.15); }
.bp-hl__play { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 46px; height: 46px; border: 2px solid var(--white); border-radius: 50%; display: grid; place-items: center; color: var(--white); background: rgba(0,0,0,.25); }
.bp-hl__ico { position: absolute; right: 22px; top: 12px; color: rgba(255,255,255,.85); }
.bp-hl__txt { position: absolute; left: 22px; right: 18px; bottom: 14px; }
.bp-hl__kind { display: block; font-size: 11px; color: rgba(255,255,255,.85); }
.bp-hl__title { display: block; font-size: 20px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* MVP vote (block 10) */
.bp-mvp { display: grid; grid-template-columns: 290px minmax(0,1fr); background: var(--panel); border-top: 4px solid var(--league-accent); }
.bp-mvp__intro { padding: 24px 20px; background: linear-gradient(140deg, color-mix(in srgb, var(--league-accent) 35%, transparent), transparent 70%); }
.bp-mvp__kicker { font-size: 12px; color: var(--league-accent); }
.bp-mvp__q { font-size: 48px; margin-top: 8px; line-height: .9; }
.bp-mvp__note { font-size: 13px; color: var(--sub); margin: 12px 0 0; }
.bp-mvp__left { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 16px; }
.bp-mvp__rows { padding: 16px 24px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.bp-mvp__row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 90px 104px; align-items: center; min-height: 54px; }
.bp-mvp__bar { position: absolute; left: 0; top: 0; bottom: 0; width: max(30%, var(--pct)); max-width: 55%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, transparent), color-mix(in srgb, var(--tc) 25%, transparent)); }
.bp-mvp__row.is-mine .bp-mvp__bar { box-shadow: inset 0 0 0 2px var(--league-accent); }
.bp-mvp__who { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 12px; min-width: 0; }
.bp-mvp__who .bp-crest { --s: 34px; }
.bp-mvp__name { display: block; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-mvp__sub { display: block; font-size: 11px; color: rgba(255,255,255,.7); margin-top: 3px; }
.bp-mvp__pct { position: relative; font-size: 30px; text-align: right; padding-right: 16px; }
.bp-mvp__form { margin: 0; }
.bp-mvp__row .bp-btn { width: 100%; }
.bp-mvp__login { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* Sponsors (block 11) */
.bp-sponsors { display: flex; flex-direction: column; gap: 8px; }
.bp-sponsors__tier { display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: center; gap: 10px; }
.bp-sponsors__lbl { font-size: 11px; color: var(--muted); }
.bp-sponsors__row { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-sponsor { display: grid; place-items: center; height: 46px; width: 140px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); color: var(--sub); overflow: hidden; }
.bp-sponsor--main { height: 66px; width: 210px; }
.bp-sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .85; }
.bp-sponsor:hover img { filter: none; opacity: 1; }
.bp-sponsor .bp-d { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bp-sponsor--main .bp-d { font-size: 22px; }

/* Registration panel (block 12, window open) */
.bp-reg { display: grid; grid-template-columns: minmax(0, 36%) minmax(0,1fr); background: var(--panel); border-top: 4px solid var(--league-accent); }
.bp-reg__main { padding: 22px 26px 26px; background: var(--league-accent); color: var(--ink); clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); padding-right: 12%; }
.bp-reg__kicker { font-size: 12px; }
.bp-reg__title { font-size: 56px; line-height: .88; margin-top: 8px; }
.bp-reg__meta { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 14px; }
.bp-reg__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bp-reg__steps { list-style: none; margin: 0; padding: 16px 18px 16px 6px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.bp-reg__steps li { background: var(--surface); border-top: 3px solid var(--line-2); padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-reg__steps li.is-first { border-top-color: var(--league-accent); }
.bp-reg__steps .n { font-size: 34px; color: var(--muted); }
.bp-reg__steps li.is-first .n { color: var(--league-accent); }
.bp-reg__steps .t { font-size: 22px; line-height: 1; }
.bp-reg__steps .s { font-size: 11px; color: var(--muted); }

/* Follow band (block 12, no window open) */
.bp-follow {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 38px 40px 38px 60px; background: var(--league-accent); color: var(--ink);
  clip-path: polygon(2% 0, 100% 0, 100% 100%, 0 100%);
}
.bp-follow__ghost { position: absolute; right: -10px; top: -30px; font-size: 220px; color: rgba(0,0,0,.08); pointer-events: none; }
.bp-follow__title { font-size: 64px; }
.bp-follow__sub { font-size: 15px; margin-top: 6px; }
.bp-follow__btns { margin-left: auto; display: flex; gap: 8px; position: relative; }

/* Series row (playoffs / final) */
.bp-series .bp-row__box { padding: 0 10px; }
.bp-series__score { display: flex; align-items: center; gap: 8px; }
.bp-series__score b { font-size: 30px; }
.bp-series__score .c { color: var(--league-accent); margin: 0 2px; }
.bp-series__pips { display: flex; gap: 3px; }
.bp-series__pips i { width: 9px; height: 14px; background: var(--surface-3); transform: skewX(-12deg); }
.bp-series__pips i.on { background: var(--pc); }
.bp-series .is-loser { opacity: .45; }

/* Stage visual placeholder (real visuals in step 3) */
.bp-stub { background: var(--surface); border: 1px dashed var(--line-2); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bp-stub__name { font-size: 30px; }
.bp-stub__fmt { font-size: 12px; color: var(--muted); }
.bp-stub .bp-btn { margin-top: 6px; }

/* ═══════════════ Mobile (board 13 · 390) ═══════════════ */
@media (max-width: 1100px) {
  .bp-cols { grid-template-columns: minmax(0, 1fr); }
  .bp-field { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .bp-wrap { padding: 0 12px 28px; }   /* body already reserves the tab bar */
  .bp-sh { margin: 18px 0 6px; }
  .bp-sh__title { font-size: 26px; }

  .bp-hero { height: 250px; }
  .bp-hero__bg { background: linear-gradient(105deg, var(--tc-h) 0 50%, var(--tc-a) 50%); }
  .bp-hero__shade { background: rgba(0,0,0,.6); }
  .bp-hero__ghost, .bp-hero__team, .bp-hero__bar, .bp-hero__info { display: none; }
  .bp-hero__center { top: 50%; transform: translate(-50%, -62%); width: 100%; }
  .bp-hero__tag > span { font-size: 14px; }
  .bp-hero__tag { padding: 3px 12px; }
  .bp-hero__score { font-size: 84px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 14px; }
  .bp-hero__score .c { margin: 0; }
  .bp-hero__count { font-size: 56px; }
  .bp-hero__count small { font-size: 16px; }
  .bp-hero__mobile-crest { display: inline-flex !important; }
  .bp-hero__mnames { display: block !important; font-size: 13px; color: var(--sub); margin-top: 6px; }
  .bp-hero__momentum {
    bottom: 10px; padding: 6px 10px; transform: translateX(-50%) scale(.42); transform-origin: center bottom;
    background: transparent; clip-path: none;
  }

  .bp-strip { padding: 10px 12px; }
  .bp-strip__label { display: none; }

  .bp-row { height: 58px; margin-top: 6px; grid-template-columns: 8px minmax(0,1fr) 74px minmax(0,1fr) 8px; }
  .bp-row .bp-crest, .bp-row__venue { display: none; }
  .bp-row__side--h { padding-right: 8px; }
  .bp-row__side--a { padding-left: 8px; }
  .bp-row__name { font-size: 20px; }
  .bp-row__box { height: auto; transform: none; background: none; border: 0; }
  .bp-row__box > span { transform: none; }
  .bp-row__status { font-size: 10px; }
  .bp-row__status--live { padding: 1px 5px; }
  .bp-row__score { font-size: 24px; }
  .bp-row__score .c { margin: 0 2px; }
  .bp-row__time { font-size: 18px; }

  .bp-power { --tint: 30%; }
  .bp-power, .bp-power--t1, .bp-power--t2, .bp-power--t3, .bp-power--t4 {
    --h: 60px; --rk-w: 48px; --rk-fs: 38px; --crest: 30px; --name: 21px; --pl-h: 40px; --pl-w: 60px; --pl-fs: 26px;
  }
  .bp-power--t1 { --h: 72px; --rk-fs: 48px; --name: 24px; }
  .bp-power__form { display: none; }
  .bp-power__pts { margin-right: 12px; }

  .bp-lead__val { font-size: 84px; top: 16px; }
  .bp-lead__name { font-size: 28px; }

  .bp-field { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bp-field .bp-tcard:nth-child(n+9) { display: none; }
  .bp-field-more { display: block !important; }
  .bp-cta { padding: 24px 20px; }
  .bp-cta__title { font-size: 36px; }
  .bp-cta__btns { margin-left: 0; }

  /* Step 2 · Home blocks at 390 (boards 14, 34, 36, 38, 39) */
  .bp-hero__count--lbl { font-size: 64px; gap: 14px; }
  .bp-hero__count--lbl small { font-size: 10px; }
  .bp-hero--champ, .bp-hero--champ.has-awards { height: auto; padding: 22px 16px 18px; }
  .bp-hero--champ .bp-hero__bar { display: none; }
  .bp-champ { position: relative; left: 0; right: 0; top: 0; gap: 14px; }
  .bp-champ__crest .bp-crest { --s: 72px; font-size: 32px; }
  .bp-champ__name { font-size: 56px; }
  .bp-champ__kicker { font-size: 12px; }
  .bp-champ__line { font-size: 12px; }
  .bp-champ__ghost { font-size: 200px; top: -10px; }
  .bp-champ__awards { position: relative; left: 0; right: 0; bottom: 0; margin-top: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .bp-award__name { font-size: 18px; }
  .bp-entries { grid-template-columns: minmax(0,1fr); }
  .bp-newsgrid, .bp-newsgrid--solo { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .bp-newsgrid::-webkit-scrollbar { display: none; }
  .bp-news { flex: 0 0 72%; scroll-snap-align: start; }
  .bp-news--feat { flex-basis: 100%; }
  .bp-news--feat .bp-news__cover { height: 150px; }
  .bp-news--feat .bp-news__title { font-size: 26px; }
  .bp-hls { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .bp-hls::-webkit-scrollbar { display: none; }
  .bp-hl { flex: 0 0 62%; height: 120px; }
  .bp-mvp { grid-template-columns: minmax(0,1fr); }
  .bp-mvp__intro { padding: 16px; }
  .bp-mvp__q { font-size: 34px; }
  .bp-mvp__rows { padding: 10px; }
  .bp-mvp__row { grid-template-columns: minmax(0,1fr) 54px 76px; }
  .bp-mvp__name { font-size: 18px; }
  .bp-mvp__pct { font-size: 22px; padding-right: 8px; }
  .bp-mvp__bar { max-width: 70%; }
  .bp-sponsors__tier { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .bp-sponsor, .bp-sponsor--main { width: calc(50% - 3px); }
  .bp-reg { grid-template-columns: minmax(0,1fr); }
  .bp-reg__main { clip-path: none; padding: 18px; }
  .bp-reg__title { font-size: 40px; }
  .bp-reg__steps { display: none; }
  .bp-follow { padding: 24px 20px; clip-path: none; }
  .bp-follow__title { font-size: 38px; }
  .bp-follow__btns { margin-left: 0; }
  .bp-series__pips { display: none; }
  .bp-series__score b { font-size: 22px; }
}
.bp-hero__mobile-crest, .bp-hero__mnames, .bp-field-more { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bp-sweep, .bp-ticker__track, .bp-dot, .bp-mo__b > i, .bp-skel { animation: none !important; }
}


/* ═══════════════ Step 3 · page header, context bar, competition path, stage page ═══════════════ */

/* Page header (h1 72 + sub label) */
.bp-phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 34px 0 6px; }
.bp-phead__main { min-width: 0; }
.bp-phead__title { font-size: 72px; line-height: .95; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.bp-phead__sub { overflow-wrap: anywhere; font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.bp-phead__live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; transform: skewX(-12deg); background: var(--live); color: var(--white); font-size: 14px; flex: none; }
.bp-phead__live > * { transform: skewX(12deg); }
.bp-phead__live .bp-dot { background: var(--white); }
.bp-phead__path { margin: 22px 0 6px; }
.bp-rows { display: block; }
.bp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.bp-dot--acc { background: var(--league-accent); box-shadow: none; animation: none; }

/* ── Context bar (board 18) ── */
.bp-ctx { position: relative; background: var(--plate); border-bottom: 1px solid var(--line); }
.bp-ctx__desk { display: flex; align-items: stretch; min-height: 50px; padding: 0 var(--gutter); }
.bp-ctx__level { position: relative; display: flex; border-right: 1px solid var(--line); }
.bp-ctx__btn { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 6px 22px 6px 0; margin-right: 0;
  background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
.bp-ctx__level + .bp-ctx__level .bp-ctx__btn { padding-left: 14px; }
.bp-ctx__label { font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.bp-ctx__value { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; line-height: 1; white-space: nowrap; }
.bp-ctx__value.is-hot { color: var(--league-accent); }
.bp-ctx__value svg { color: var(--muted); }
.bp-ctx__btn:hover .bp-ctx__value svg, .bp-ctx__btn[aria-expanded="true"] .bp-ctx__value svg { color: var(--text); }
.bp-ctx__menu { position: absolute; top: 100%; left: 0; z-index: 90; min-width: 240px; padding: 6px;
  background: var(--panel); border-top: 3px solid var(--league-accent); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.bp-ctx__opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; color: var(--text); }
.bp-ctx__opt .bp-d { font-size: 19px; }
.bp-ctx__opt:hover, .bp-ctx__opt.is-selected { background: var(--surface-2); }
.bp-ctx__opt.is-selected .bp-d { color: var(--league-accent); }
.bp-ctx__state { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.bp-ctx__state--active { color: var(--league-accent); }
.bp-ctx__rounds { display: flex; align-items: center; gap: 4px; padding-left: 16px; overflow-x: auto; scrollbar-width: none; }
.bp-ctx__rounds::-webkit-scrollbar { display: none; }
.bp-ctx__round { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 9px;
  transform: skewX(-12deg); background: var(--surface-2); color: var(--sub); flex: none; }
.bp-ctx__round > span { transform: skewX(12deg); font-size: 13px; }
.bp-ctx__round:hover { color: var(--text); background: var(--surface-3); }
.bp-ctx__round.is-selected { background: var(--league-accent); color: var(--ink); }
.bp-ctx__mob, .bp-ctx__scrim, .bp-ctx__sheet { display: none; }

/* Archived season banner */
.bp-ctx-archive { background: linear-gradient(90deg, color-mix(in srgb, var(--champion) 16%, var(--bg-2)), var(--bg-2) 60%); border-bottom: 1px solid var(--line); }
.bp-ctx-archive__in { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); min-height: 44px; flex-wrap: wrap; }
.bp-ctx-archive__icon { color: var(--champion); display: inline-flex; }
.bp-ctx-archive__title { font-size: 20px; }
.bp-ctx-archive__meta { font-size: 12px; color: var(--sub); }
.bp-ctx-archive__back { margin-left: auto; font-size: 13px; color: var(--league-accent); }

/* ── Competition path (board 19) ── */
.bp-path { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.bp-path__item { display: flex; align-items: stretch; flex: 1 0 auto; min-width: 0; scroll-snap-align: start; }
/* Many stages: each card keeps a readable width and the strip scrolls sideways */
.bp-path:not(.bp-path--compact) .bp-path__stage { min-width: 200px; max-width: 360px; }
.bp-path--compact { overflow-x: visible; }
.bp-path--compact .bp-path__stage { min-width: 0; max-width: none; }
.bp-path__arrow { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--dim); }
.bp-path__line { position: relative; width: 56px; height: 2px; background: currentColor; }
.bp-path__line::after { content: ''; position: absolute; right: -1px; top: 50%; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.bp-path__arrow.is-done, .bp-path__arrow.is-hot { color: var(--league-accent); }
.bp-path__count { font-size: 12px; white-space: nowrap; }
.bp-path__stage { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px;
  background: var(--surface); border-top: 3px solid var(--line-2); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); color: var(--text); }
a.bp-path__stage:hover { filter: brightness(1.15); }
.bp-path__stage.is-done { border-top-color: var(--dim); }
.bp-path__stage.is-active { border-top-color: var(--league-accent); background: linear-gradient(120deg, color-mix(in srgb, var(--league-accent) 26%, var(--surface)), var(--surface) 70%); }
.bp-path__stage.is-upcoming { background: transparent; border: 1px dashed var(--line-2); border-top: 2px dashed var(--line-2); clip-path: none; }
.bp-path__stage.is-upcoming .bp-path__name { color: var(--sub); }
.bp-path__stage.is-current { outline: 1px solid color-mix(in srgb, var(--league-accent) 60%, transparent); outline-offset: -1px; }
.bp-path__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; font-size: 11px; letter-spacing: .1em;
  transform: skewX(-12deg); background: var(--surface-3); color: var(--muted); }
.bp-path__tag > * { transform: skewX(12deg); }
.bp-path__stage.is-active .bp-path__tag { background: var(--live); color: var(--white); }
.bp-path__stage.is-active .bp-path__tag .bp-dot { background: var(--white); }
.bp-path__name { font-size: 30px; line-height: 1; overflow-wrap: anywhere; }
.bp-path__fmt { font-size: 12px; color: var(--muted); }
.bp-path__note { font-size: 13px; color: var(--text); margin-top: 4px; }
.bp-path__stage.is-upcoming .bp-path__note, .bp-path__stage.is-done .bp-path__note { color: var(--sub); }

/* Compact (narrow column) and mobile: vertical list, counts between stages */
.bp-path--compact { flex-direction: column; }
.bp-path--compact .bp-path__item { flex-direction: column; flex: none; }
.bp-path--compact .bp-path__arrow { width: auto; flex-direction: row; justify-content: flex-start; padding: 6px 0 6px 14px; gap: 8px; }
.bp-path--compact .bp-path__line { width: 2px; height: 12px; }
.bp-path--compact .bp-path__line::after { display: none; }
.bp-path--compact .bp-path__stage { clip-path: none; border-top: 0; border-left: 4px solid var(--line-2); padding: 10px 14px; display: grid;
  grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; row-gap: 2px; }
.bp-path--compact .bp-path__stage.is-done { border-left-color: var(--dim); }
.bp-path--compact .bp-path__stage.is-active { border-left-color: var(--league-accent); }
.bp-path--compact .bp-path__stage.is-upcoming { border: 1px dashed var(--line-2); border-left: 4px dashed var(--line-2); }
.bp-path--compact .bp-path__tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.bp-path--compact .bp-path__name { grid-column: 1; grid-row: 1; font-size: 22px; }
.bp-path--compact .bp-path__fmt { display: none; }
.bp-path--compact .bp-path__note { grid-column: 1; grid-row: 2; margin: 0; font-size: 11px; color: var(--muted); }

/* ── Stage page (boards 31–32) ── */
.bp-stagepage__visual { margin-top: 14px; }
.bp-stagepage__cols { margin-top: 10px; }
.bp-rules { align-self: start; margin-top: 40px; padding: 18px 20px 20px; background: var(--panel); border-top: 4px solid var(--league-accent); }
.bp-rules__title { font-size: 34px; margin: 0 0 10px; }
.bp-rules__list { margin: 0 0 16px; }
.bp-rules__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bp-rules__row dt { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.bp-rules__row dd { margin: 0; font-size: 19px; text-align: right; }

/* ── Standings ── */
.bp-standgrid--multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
.bp-standgroup { min-width: 0; }

@media (max-width: 1100px) {
  .bp-standgrid--multi { grid-template-columns: minmax(0, 1fr); }
  .bp-path:not(.bp-path--compact) .bp-path__arrow { width: 64px; }
  .bp-path:not(.bp-path--compact) .bp-path__line { width: 36px; }
  .bp-path__name { font-size: 24px; }
}
@media (max-width: 768px) {
  .bp-phead { padding-top: 20px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .bp-phead__title { font-size: 46px; }
  .bp-tabs { margin-top: 18px; }

  /* Context bar → chips + bottom sheet */
  .bp-ctx__desk { display: none; }
  .bp-ctx__mob { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
  .bp-ctx__mob::-webkit-scrollbar { display: none; }
  .bp-ctx__chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px;
    transform: skewX(-12deg); background: var(--surface-2); color: var(--text); border: 0; cursor: pointer; }
  .bp-ctx__chip > * { transform: skewX(12deg); }
  .bp-ctx__chip .bp-l { font-size: 13px; white-space: nowrap; }
  .bp-ctx__chip svg { color: var(--muted); }
  .bp-ctx__chip.is-hot { background: var(--league-accent); color: var(--ink); }
  .bp-ctx__chip.is-hot svg { color: var(--ink); }
  .bp-ctx__scrim { display: block; position: fixed; inset: 0; z-index: 170; background: rgba(0,0,0,.55); }
  .bp-ctx__sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 171; max-height: 70vh; overflow-y: auto;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 3px solid var(--league-accent); }
  .bp-ctx__sheet[x-cloak], .bp-ctx__scrim[x-cloak] { display: none; }
  .bp-ctx__sheet-title { font-size: 11px; color: var(--muted); letter-spacing: .12em; margin: 2px 0 8px; }
  .bp-ctx__sheet-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px;
    margin-top: 4px; background: var(--surface); color: var(--text); }
  .bp-ctx__sheet-opt .bp-d { font-size: 22px; }
  .bp-ctx__sheet-opt .bp-l { font-size: 11px; color: var(--muted); }
  .bp-ctx__sheet-opt.is-selected { background: color-mix(in srgb, var(--league-accent) 18%, var(--surface)); }
  .bp-ctx__sheet-opt.is-selected .bp-d { color: var(--league-accent); }
  .bp-ctx__sheet-grid { display: flex; flex-wrap: wrap; gap: 6px; }
  .bp-ctx__sheet-grid .bp-ctx__round { height: 40px; min-width: 52px; }
  .bp-ctx-archive__in { padding: 8px 12px; gap: 8px; }
  .bp-ctx-archive__title { font-size: 17px; }
  .bp-ctx-archive__back { margin-left: 0; }

  /* Path → horizontal swipe strip (board 32) */
  .bp-path:not(.bp-path--compact) { margin-right: calc(-1 * var(--gutter, 16px)); padding-right: var(--gutter, 16px); }
  .bp-path:not(.bp-path--compact) .bp-path__arrow { width: 34px; }
  .bp-path:not(.bp-path--compact) .bp-path__line { width: 18px; }
  .bp-path:not(.bp-path--compact) .bp-path__count { display: none; }
  .bp-path:not(.bp-path--compact) .bp-path__stage { min-width: 200px; max-width: 240px; padding: 10px 14px; }
  .bp-path__name { font-size: 22px; }

  .bp-rules { margin-top: 24px; }
  .bp-phead__path--desk { display: none; }   /* Games/Standings: path lives on the stage page on mobile */
}
