/* fpv-race-pits live bracket (batch 4). Every colour is a club token: --brand (signal), --accent (ice),
   --live, --leader (amber/gold), the grounds (--bg, --surface…), so a club theme recolours everything. */
.lb {
  --lb-card: 240px; --lb-gap: 44px;
  --lb-glass: linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, transparent), color-mix(in oklab, var(--bg) 94%, transparent));
  --lb-row: color-mix(in oklab, var(--text) 3.5%, transparent);
  --lb-amber-soft: color-mix(in oklab, var(--leader) 18%, var(--surface));
  --lb-ease: cubic-bezier(.22, 1, .36, 1);
  --lb-pop: cubic-bezier(.34, 1.56, .64, 1);
  --lb-ride: cubic-bezier(.65, 0, .35, 1);
  position: relative;
}
.lb-c0 { --bk: var(--brand); } .lb-c1 { --bk: var(--accent); } .lb-c2 { --bk: var(--fastest); } .lb-c3 { --bk: var(--leader); }
.lb .disp, .lb-disp { font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: 100%; letter-spacing: -0.02em; }
.lb .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── header ── */
.lb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 24px; }
.lb-head h1 { margin: 6px 0 10px; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.75rem); line-height: 1; text-wrap: balance; }
.lb-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 13px; }
.lb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--text-2); }
.lb-livebadge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: var(--live); color: #111114; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.lb-livebadge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lb-blink 1.2s ease-in-out infinite; }
.lb-updated { color: color-mix(in oklab, var(--text) 80%, var(--text-2)); font-variant-numeric: tabular-nums; transition: color .3s; }
.lb-updated.is-stale, [data-updated].is-stale { color: var(--leader); }
[data-conn][data-state="reconnecting"] { color: var(--leader); }
.lb-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.lb-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.lb-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-switch a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
  background: color-mix(in oklab, var(--text) 3%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
.lb-switch a[aria-current="page"] { background: color-mix(in oklab, var(--text) 8%, transparent); box-shadow: inset 0 0 0 1.5px var(--bk); color: var(--text); }
.lb-switch a .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bk); box-shadow: 0 0 10px var(--bk); }
.lb-switch a .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.lb-follow { min-width: 240px; }
.lb-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2); }
.lb-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: 500 14px var(--font-body); }
.lb-search:focus-within { border-color: var(--brand); }

/* ── now racing strip ── */
.lb-now { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.lb-now:empty { display: none; }
.lb-nowcard { flex: 2 1 480px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 20px; border-radius: 18px; background: var(--lb-glass);
  border: 1px solid color-mix(in oklab, var(--live) 35%, transparent); box-shadow: 0 0 30px color-mix(in oklab, var(--live) 12%, transparent); min-width: 0; }
.lb-nowcard .t { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.lb-nowcard .t a { color: var(--text); font-size: 22px; text-decoration: none; }
.lb-nowcard .t span { font-size: 13px; color: var(--text-2); }
.lb-deckcard { flex: 1 1 300px; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 18px; background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--leader) 35%, transparent); min-width: 0; }
.lb-deckcard a { color: var(--text); font-size: 18px; text-decoration: none; }
.lb-deckcard .s { font-size: 12.5px; color: var(--text-2); }
.lb-chip-deck { padding: 4px 10px; border-radius: 999px; background: var(--lb-amber-soft); color: var(--leader); font-size: 12px; font-weight: 700; white-space: nowrap; }
.lb-btn-live { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--live); color: #111114; font-weight: 700; font-size: 14px;
  white-space: nowrap; text-decoration: none; box-shadow: 0 0 18px color-mix(in oklab, var(--live) 35%, transparent); }
.lb-btn-live:hover { color: #111114; filter: brightness(1.08); }

/* ── path bar (follow) ── */
.lb-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; padding: 14px 18px; margin-bottom: 24px; border-radius: 20px; background: var(--lb-glass); border: 1px solid var(--line-strong); }
.lb-path .lbl { font-size: 12px; color: var(--text-2); margin-right: 6px; }
.lb-path a, .lb-path span.hop { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--text);
  border: 1.5px solid color-mix(in oklab, var(--brand) 55%, transparent); background: color-mix(in oklab, var(--brand) 8%, transparent); font-size: 13px; }
.lb-path a b, .lb-path span.hop b { font-family: var(--font-display); font-style: italic; font-size: 16px; }
.lb-path .drop { border-color: color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.lb-path .final { border-color: color-mix(in oklab, var(--leader) 60%, transparent); background: var(--lb-amber-soft); color: var(--leader); }
.lb-path .sep { color: var(--brand); }
.lb-path .sum { margin-left: auto; font-size: 13px; color: var(--text-2); }
.lb-followhead { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.lb-followhead .lb-av { --s: 76px; font-size: 26px; }

/* ── the board ── */
.lb-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding: 6px 2px 24px; scrollbar-width: thin; }
.lb-board { position: relative; display: grid; grid-auto-rows: auto; column-gap: var(--lb-gap); row-gap: 14px; width: max-content; margin: 0 auto; }
.lb-lanehead { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.lb-lanehead h2 { margin: 0; font-size: 22px; }
.lb-lanehead p { margin: 0; font-size: 13px; color: var(--text-2); }
.lb-lanehead::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); min-width: 20px; }
.lb-coltitle { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--text-2); text-transform: lowercase; margin: 0 0 8px; height: 18px; }
.lb-coltitle::before { content: "»"; color: var(--brand); font-size: 13px; }
.lb-coltitle .lb-donechip { margin-left: 6px; }
.lb-col { position: relative; display: flex; flex-direction: column; width: var(--lb-card); }
.lb-col .races { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 22px; }
.lb-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.lb-wires path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linejoin: round; }
.lb-wires path.lit { stroke: var(--brand); filter: drop-shadow(0 0 3px color-mix(in oklab, var(--brand) 70%, transparent)); }
.lb-wires path.chase { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 46 3000; animation: lb-chase 2.4s ease-in-out infinite; filter: drop-shadow(0 0 4px #fff); }
.lb-wires path.drop { stroke: var(--accent); stroke-dasharray: 6 6; }
.lb-wires path.follow { stroke: var(--brand); stroke-width: 2.5; }
.lb-wires path.follow.chase2 { stroke: #fff; stroke-dasharray: 46 3000; animation: lb-chase 2.4s ease-in-out infinite; }
.lb-wires path.comet { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 6px var(--brand)); }

/* ── match card ── */
.lb-card { position: relative; z-index: 1; box-sizing: border-box; width: var(--lb-card); padding: 10px; display: flex; flex-direction: column; gap: 6px; border-radius: 14px;
  background: var(--lb-glass); border: 1px solid color-mix(in oklab, var(--text) 9%, transparent); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); scroll-margin: 120px; }
.lb-card::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: var(--bk, var(--brand)); opacity: .55; }
.lb-card.is-upcoming::before, .lb-card.is-void::before { opacity: .15; }
.lb-card.is-racing { border-color: var(--live); animation: lb-live-ring 1.8s var(--lb-ease) infinite; }
.lb-card.is-racing::before { background: var(--live); opacity: 1; }
.lb-card.is-ondeck { animation: lb-deck 3s ease-in-out infinite; border-color: color-mix(in oklab, var(--leader) 60%, transparent); }
.lb-card.is-void { opacity: .5; }
.lb-card.is-target { outline: 2px solid var(--brand); outline-offset: 3px; }
.lb-card header { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 24px; }
.lb-card header a { display: flex; align-items: baseline; gap: 6px; color: var(--text); text-decoration: none; min-width: 0; }
.lb-card header a .disp { font-size: 15px; white-space: nowrap; }
.lb-card header .sub { font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-state { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.lb-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.lb-state.live { padding: 3px 8px; border-radius: 999px; background: var(--live); color: #111114; font-weight: 800; letter-spacing: .06em; }
.lb-state.live i { background: #111114; animation: lb-blink 1.2s ease-in-out infinite; }
.lb-state.deck { padding: 3px 8px; border-radius: 999px; background: var(--lb-amber-soft); color: var(--leader); font-weight: 700; }
.lb-state .lap { font-family: var(--font-mono); color: var(--live); margin-right: 4px; }
.lb-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.lb-row { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 5px; border-radius: 8px; background: var(--lb-row); position: relative; }
.lb-row.is-out { opacity: .45; }
.lb-row.is-tbd { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 6%, transparent); }
.lb-row.is-tbd .name { color: var(--text-2); font-weight: 500; font-size: 12px; }
.lb-row.is-followed { background: color-mix(in oklab, var(--brand) 14%, transparent); box-shadow: inset 0 0 0 1px var(--brand); }
.lb-pos { flex: none; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 10px; line-height: 1;
  color: var(--text-2); border: 1px solid var(--line-strong); }
.lb-pos.p1 { background: linear-gradient(180deg, var(--gold), #f2b330 55%, var(--gold-2)); border: 0; color: rgba(5, 8, 15, .82); }
.lb-pos.p2 { background: linear-gradient(180deg, var(--silver), #bac6d6 55%, var(--silver-2)); border: 0; color: rgba(5, 8, 15, .82); }
.lb-pos.p3 { background: linear-gradient(180deg, var(--bronze), #d9874a 55%, var(--bronze-2)); border: 0; color: rgba(5, 8, 15, .82); }
.lb-pos.is-empty { border-style: dashed; }
.lb-av { --s: 22px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: var(--text); font-weight: 700;
  font-size: calc(var(--s) * .36); letter-spacing: .02em; background: radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--c, var(--brand)) 40%, transparent), var(--surface-2) 72%);
  box-shadow: 0 0 0 2px var(--c, var(--brand)); }
.lb-av img { width: 100%; height: 100%; object-fit: cover; }
.lb-av.tbd { box-shadow: none; border: 1px dashed var(--line-strong); background: transparent; }
.lb-row .name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.lb-chan { flex: none; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; line-height: 1; padding: 3px 5px; border-radius: 999px; background: var(--c, var(--surface-3)); color: #111114; white-space: nowrap; }
.lb-chan.planned { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lb-end { width: 34px; flex: none; display: flex; justify-content: flex-end; font-family: var(--font-mono); font-size: 10px; color: var(--text-2); white-space: nowrap; }
.lb-end.win { color: var(--brand); }
.lb-end.drop { color: var(--accent); font-weight: 600; }
.lb-end.gap { width: 38px; color: color-mix(in oklab, var(--text) 75%, var(--text-2)); }
.lb-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.lb-watch { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
  color: var(--text); background: color-mix(in oklab, var(--text) 6%, transparent); border: 1px solid color-mix(in oklab, var(--text) 10%, transparent); }
.lb-watch:hover { color: var(--text); border-color: var(--brand); }
.lb-watch.live { background: var(--live); color: #111114; border: 0; box-shadow: 0 0 14px color-mix(in oklab, var(--live) 35%, transparent); }
.lb-watch.pending { border-style: dashed; color: var(--text-2); background: transparent; font-weight: 500; }
.lb-results { font-size: 11.5px; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 30px; }
.lb-card .ifn { font-size: 10.5px; color: var(--text-2); }

/* ── chase the ace / final panel ── */
.lb-final { position: relative; z-index: 1; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; padding: 28px 30px; border-radius: 26px; align-self: start;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in oklab, var(--leader) 7%, transparent), transparent 70%), var(--lb-glass);
  border: 1px solid color-mix(in oklab, var(--leader) 45%, transparent); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); min-width: 0; }
.lb-final .kicker { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--leader); font-size: 13px; font-weight: 600; }
.lb-final h2 { margin: 0; text-align: center; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1; font-stretch: 112%; }
.lb-final .lede { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; color: var(--text-2); font-size: 14px; text-align: center; }
.lb-winschip { padding: 3px 10px; border-radius: 999px; background: var(--lb-amber-soft); color: var(--leader); font-size: 12px; font-weight: 700; }
.lb-aces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lb-ace { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 18px; text-align: center; min-width: 0;
  background: color-mix(in oklab, var(--surface) 70%, transparent); border: 1px solid color-mix(in oklab, var(--text) 7%, transparent); }
.lb-ace.tbd { border-style: dashed; border-color: var(--line-strong); }
.lb-ace.match { border-color: color-mix(in oklab, var(--leader) 60%, transparent); box-shadow: 0 0 26px color-mix(in oklab, var(--leader) 18%, transparent); }
.lb-ace.is-followed { border-color: var(--brand); box-shadow: 0 0 26px color-mix(in oklab, var(--brand) 25%, transparent); }
.lb-ace .lb-av { --s: 64px; font-size: 22px; }
.lb-ace .nm { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-ace .from { font-size: 12px; color: var(--text-2); }
.lb-pips { display: flex; gap: 6px; justify-content: center; }
.lb-pip { width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--text-3); }
.lb-pip.on { border: 0; background: radial-gradient(circle at 35% 30%, var(--gold), var(--leader) 60%, var(--gold-2)); box-shadow: 0 0 10px color-mix(in oklab, var(--leader) 60%, transparent); }
.lb-pip.pop { animation: lb-pip-pop .5s var(--lb-pop) both; }
.lb-nextwin { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--lb-amber-soft); color: var(--leader); font-size: 12px; font-weight: 700;
  animation: lb-pulse-text 1.6s ease-in-out infinite; }
.lb-finals { display: flex; flex-direction: column; gap: 8px; }
.lb-frow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: color-mix(in oklab, var(--surface-2) 75%, transparent); min-height: 44px; }
.lb-frow.is-racing { box-shadow: inset 0 0 0 1px var(--live); }
.lb-frow .l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lb-frow .l .disp { font-size: 15px; white-space: nowrap; }
.lb-frow .l span:last-child { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-champbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in oklab, var(--leader) 45%, transparent);
  background: var(--lb-amber-soft); margin-top: auto; text-decoration: none; }
.lb-champbar .disp { font-size: 20px; color: var(--leader); }
.lb-champbar span:last-child { font-size: 13px; color: var(--text-2); }
.lb-champbar.won .disp { font-size: 22px; }

/* ── champion ── */
.lb-champion { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 22px 28px; margin: 0 auto 28px; max-width: 580px; text-align: center; border-radius: 26px;
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in oklab, var(--leader) 10%, transparent), transparent 70%), var(--lb-glass);
  border: 1px solid color-mix(in oklab, var(--leader) 50%, transparent); box-shadow: 0 0 60px color-mix(in oklab, var(--leader) 14%, transparent); overflow: hidden; }
.lb-champion .kicker { color: var(--leader); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lb-champion > .lb-av { --s: 132px; font-size: 44px; box-shadow: 0 0 0 3px var(--c, var(--live)), 0 0 30px color-mix(in oklab, var(--c, var(--live)) 45%, transparent); }
.lb-champion h2 { margin: 0; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.02; font-stretch: 112%; }
.lb-champion h2 .gold { color: var(--leader); }
.lb-champion .why { color: var(--text-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.lb-hops { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lb-hops a, .lb-hops span { font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); text-decoration: none; border: 1px solid var(--line-strong); }
.lb-hops .final { background: var(--lb-amber-soft); color: var(--leader); border-color: transparent; }
.lb-champion .sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, color-mix(in oklab, var(--leader) 35%, transparent) 50%, transparent 70%);
  transform: translateX(-120%); }
.lb-champion.celebrate .sweep { animation: lb-sweep 1.4s ease-in-out .6s both; }
.lb-champion.celebrate { animation: lb-champ-in .6s var(--lb-ease) both; }
.lb-champ-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.lb-champ-actions .btn { min-height: 44px; }
.lb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; width: 100%; max-width: 420px; margin-top: 8px; }
.lb-podium .lbp-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lb-podium .lbp-block { width: 100%; border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 26px; color: rgba(5, 8, 15, .8); }
.lb-podium .s1 .lbp-block { height: 96px; background: linear-gradient(180deg, var(--gold), var(--gold-2)); }
.lb-podium .s2 .lbp-block { height: 70px; background: linear-gradient(180deg, var(--silver), var(--silver-2)); }
.lb-podium .s3 .lbp-block { height: 54px; background: linear-gradient(180deg, var(--bronze), var(--bronze-2)); }
.lb-podium .lbp-step .lb-av { --s: 44px; }
.lb-podium .lbp-step b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-champion.celebrate .s3 { animation: lb-rise .5s var(--lb-pop) .9s both; }
.lb-champion.celebrate .s2 { animation: lb-rise .5s var(--lb-pop) 1.02s both; }
.lb-champion.celebrate .s1 { animation: lb-rise .5s var(--lb-pop) 1.14s both; }
.lb-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.lb-overlay { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(8px); overflow-y: auto; animation: lb-fade .3s ease-out both; }
.lb-overlay .lb-champion { margin: 0; width: min(580px, 100%); }
.lb-overlay .close { position: absolute; top: 10px; right: 10px; min-width: 44px; min-height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer; }

/* ── round complete ── */
.lb-col .sweepband { position: absolute; inset: 20px -12px -6px; border-radius: 18px; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--brand) 22%, transparent), transparent); background-size: 100% 40%; background-repeat: no-repeat;
  animation: lb-band 1.2s ease-in-out both; }
.lb-roundbanner { position: absolute; left: 50%; top: -6px; z-index: 5; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  white-space: nowrap; background: var(--surface-2); border: 1px solid var(--brand); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 24px color-mix(in oklab, var(--brand) 25%, transparent);
  font-weight: 700; font-size: 13px; animation: lb-drop .4s ease-out both; }
.lb-roundbanner.fold { animation: lb-fold .35s ease-in both; }
.lb-donechip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 14%, transparent); color: var(--brand); font-size: 10px; letter-spacing: 0; text-transform: none; }

/* ── follow mode ── */
.lb.following .lb-card:not(.is-followed), .lb.following .lb-ace:not(.is-followed), .lb.following .lb-frow:not(.is-followed) { opacity: .28; transition: opacity .3s ease-out; }
.lb.following .lb-card.is-followed { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 30px color-mix(in oklab, var(--brand) 25%, transparent); }
.lb.following .lb-wires path:not(.follow):not(.drop.follow) { opacity: .28; }
.lb-card, .lb-ace, .lb-frow { transition: opacity .3s ease-out; }

/* ── advancement sequence (port of the prototype) ── */
.lb-row.pop .lb-pos { animation: lb-pos-pop .4s var(--lb-pop) both; }
.lb-row.lift { animation: lb-lift .25s var(--lb-ease) both; z-index: 3; }
.lb-row.settle { animation: lb-settle .3s var(--lb-ease) both; }
.lb-row.dimslide { animation: lb-dim .5s var(--lb-ease) both; }
.lb-row.flash { animation: lb-flash .3s ease-out both; }
.lb-row.flash-ice { animation: lb-flash-ice .3s ease-out both; }
.lb-rider { position: fixed; z-index: 50; pointer-events: none; margin: 0; }
.lb-rider .lb-av { box-shadow: 0 0 0 2px var(--c, var(--brand)), 0 0 16px var(--c, var(--brand)); }
.lb-ring { position: fixed; z-index: 49; pointer-events: none; border-radius: 50%; border: 2px solid var(--brand); animation: lb-ring .3s ease-out both; }
.lb-fadeswap { animation: lb-fade .3s ease-out both; }

/* ── mobile pager ── */
.lb-pager { display: none; }
.lb-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; margin: 0 -2px; scroll-padding: 0 16px; }
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: 600 15px var(--font-body); cursor: pointer; }
.lb-tabs button[aria-selected="true"] { color: var(--text); background: color-mix(in oklab, var(--brand) 10%, transparent); box-shadow: inset 0 0 0 1.5px var(--brand); }
.lb-tabs button .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-left: 6px; vertical-align: middle; }
.lb-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 12px; }
.lb-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .25s, background .25s; }
.lb-dots i.on { width: 22px; background: var(--brand); }
.lb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 16px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 16px; scroll-padding: 0 var(--gutter); }
.lb-track::-webkit-scrollbar { display: none; }
.lb-page { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lb-page .lb-card { width: 100%; padding: 14px; border-radius: 18px; }
.lb-page .lb-card header a .disp { font-size: 21px; }
.lb-page .lb-card header .sub { font-size: 13px; }
.lb-page .lb-row { height: 48px; gap: 10px; padding: 0 10px; border-radius: 12px; }
.lb-page .lb-row .name { font-size: 17px; }
.lb-page .lb-av { --s: 34px; }
.lb-page .lb-pos { width: 24px; height: 24px; font-size: 12px; }
.lb-page .lb-chan { font-size: 11px; padding: 4px 8px; }
.lb-page .lb-end { width: 50px; font-size: 12px; }
.lb-page .lb-card footer .lb-watch { min-height: 48px; font-size: 16px; padding: 0 22px; flex: 1; justify-content: center; }
.lb-page .lb-results { min-height: 48px; font-size: 16px; padding: 0 12px; }
.lb-page .lb-final { padding: 20px 16px; border-radius: 22px; }
.lb-page .lb-ace .lb-av { --s: 52px; }
.lb-mynext { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; margin-bottom: 12px; text-decoration: none; color: var(--text);
  background: color-mix(in oklab, var(--leader) 10%, var(--surface)); border: 1px solid color-mix(in oklab, var(--leader) 55%, transparent); position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 6; }
.lb-mynext .k { font-size: 12px; font-weight: 700; color: var(--leader); }
.lb-mynext .v { font-size: 15px; }
.lb-mynext .lb-av { --s: 36px; }
.lb-mynext .go { margin-left: auto; color: var(--leader); }

/* ── bottom sheet (notifications prompt; the push wiring is another feature's) ── */
.lb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 12px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; text-align: center;
  background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -30px 80px rgba(0, 0, 0, .55); transform: translateY(0); animation: lb-sheet-in .35s var(--lb-ease) both; max-width: 560px; margin: 0 auto; }
.lb-sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 16px; }
.lb-sheet .bell { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; color: var(--brand); background: color-mix(in oklab, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 55%, transparent); }
.lb-sheet h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.1; }
.lb-sheet p { color: var(--text-2); margin: 0 0 14px; }
.lb-sheet ul { list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); text-align: left; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.lb-sheet ul li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.lb-sheet .btn { width: 100%; min-height: 52px; font-size: 17px; border-radius: 999px; }
.lb-sheet .later { margin-top: 8px; background: transparent; border: 0; color: var(--text); font-weight: 600; min-height: 44px; width: 100%; cursor: pointer; font-size: 15px; }
.lb-scrim { position: fixed; inset: 0; z-index: 69; background: color-mix(in oklab, var(--bg) 60%, transparent); animation: lb-fade .3s both; }

/* ── skeleton ── */
.lb-skel { display: flex; flex-direction: column; gap: 12px; }
.lb-skel i { display: block; height: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%;
  animation: lb-shimmer 1.4s linear infinite; }
.lb-skel i.card { height: 220px; border-radius: 18px; }
.lb-skel i.w60 { width: 60%; } .lb-skel i.w40 { width: 40%; } .lb-skel i.h44 { height: 44px; border-radius: 22px; }

@media (max-width: 720px) {
  .lb.is-paged .lb-scroll, .lb.is-paged .lb-now { display: none; }
  .lb.is-paged .lb-pager { display: block; }
  .lb-head h1 { font-size: 2.4rem; }
  .lb-controls { width: 100%; }
  .lb-follow { min-width: 0; flex: 1 1 100%; }
  .lb-champion { padding: 24px 14px 22px; }
  .lb-champion > .lb-av { --s: 104px; }
  .lb-path .sum { margin-left: 0; width: 100%; }
}

@keyframes lb-blink { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes lb-live-ring {
  0%, 100% { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--live) 95%, transparent), 0 0 0 0 color-mix(in oklab, var(--live) 50%, transparent), 0 0 28px color-mix(in oklab, var(--live) 25%, transparent), 0 20px 50px rgba(0, 0, 0, .5) }
  60% { box-shadow: 0 0 0 1.5px var(--live), 0 0 0 10px transparent, 0 0 40px color-mix(in oklab, var(--live) 40%, transparent), 0 20px 50px rgba(0, 0, 0, .5) } }
@keyframes lb-deck {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in oklab, var(--leader) 55%, transparent), 0 20px 50px rgba(0, 0, 0, .45) }
  50% { box-shadow: 0 0 0 1px color-mix(in oklab, var(--leader) 90%, transparent), 0 0 22px color-mix(in oklab, var(--leader) 18%, transparent), 0 20px 50px rgba(0, 0, 0, .45) } }
@keyframes lb-chase { from { stroke-dashoffset: 46 } to { stroke-dashoffset: -600 } }
@keyframes lb-pulse-text { 0%, 100% { opacity: 1; transform: scale(1) } 50% { opacity: .72; transform: scale(1.035) } }
@keyframes lb-pos-pop { 0% { transform: scale(.55) } 60% { transform: scale(1.18) } 100% { transform: scale(1) } }
@keyframes lb-lift { from { transform: none; box-shadow: none } to { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--brand) 85%, transparent), 0 14px 30px rgba(0, 0, 0, .55), 0 0 28px color-mix(in oklab, var(--brand) 35%, transparent) } }
@keyframes lb-settle { from { transform: translateY(-6px) scale(1.04) } to { transform: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 35%, transparent) } }
@keyframes lb-dim { from { opacity: 1; transform: none } to { opacity: .45; transform: translateX(12px) } }
@keyframes lb-flash { 0% { opacity: 0; transform: scale(.92) } 30% { opacity: 1; transform: scale(1.03); box-shadow: 0 0 0 2px #fff, 0 0 0 8px color-mix(in oklab, var(--brand) 35%, transparent), 0 0 40px color-mix(in oklab, var(--brand) 90%, transparent) } 100% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 50%, transparent) } }
@keyframes lb-flash-ice { 0% { opacity: 0; transform: scale(.92) } 30% { opacity: 1; transform: scale(1.03); box-shadow: 0 0 0 2px #fff, 0 0 40px color-mix(in oklab, var(--accent) 90%, transparent) } 100% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent) } }
@keyframes lb-ring { 0% { opacity: .9; transform: scale(.6) } 100% { opacity: 0; transform: scale(1.8) } }
@keyframes lb-pip-pop { 0% { transform: scale(.3); opacity: 0 } 60% { transform: scale(1.35); opacity: 1 } 100% { transform: scale(1) } }
@keyframes lb-band { from { background-position: 0 -60% } to { background-position: 0 160% } }
@keyframes lb-drop { from { opacity: 0; transform: translate(-50%, -16px) } to { opacity: 1; transform: translate(-50%, 0) } }
@keyframes lb-fold { to { opacity: 0; transform: translate(-50%, -8px) scale(.6) } }
@keyframes lb-sweep { from { transform: translateX(-120%) } to { transform: translateX(120%) } }
@keyframes lb-champ-in { from { transform: scale(.82); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes lb-rise { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes lb-sheet-in { from { transform: translateY(100%) } to { transform: none } }
@keyframes lb-shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

@media (prefers-reduced-motion: reduce) {
  .lb *, .lb *::before, .lb *::after, .lb-overlay *, .lb-sheet { animation: none !important; }
  .lb-wires path.chase, .lb-wires path.follow.chase2 { display: none; }
  .lb-card, .lb-ace, .lb-frow { transition: opacity .2s; }
}

/* ── print (round 1 groups uses its own sheet) ── */
@media print { .lb-controls, .lb-now, .lb-watch, .lb-results, .lb-wires { display: none !important; } }

/* ── TV mode (/events/<slug>/bracket/tv, 1920×1080): nothing loops faster than 10 s ── */

/* ── heat page: where this heat sits in the bracket ── */
.lbmini-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lbmini { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.lbmini .lane { display: flex; gap: 10px; align-items: center; }
.lbmini .col { display: flex; flex-direction: column; gap: 5px; }
.lbmini .m { display: block; width: 34px; height: 13px; border-radius: 4px; background: var(--surface-3); }
.lbmini .m.done { background: color-mix(in oklab, var(--brand) 35%, var(--surface-3)); }
.lbmini .m.racing { background: var(--live); }
.lbmini .m.ondeck { background: color-mix(in oklab, var(--leader) 50%, var(--surface-3)); }
.lbmini .m.here { outline: 2px solid var(--text); outline-offset: 2px; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.lbmini .m.to { background: color-mix(in oklab, var(--brand) 70%, transparent); box-shadow: 0 0 0 1px var(--brand), 0 0 10px color-mix(in oklab, var(--brand) 60%, transparent); }
.lbmini-links { display: flex; flex-wrap: wrap; gap: 10px; }
.lbmini-links .btn { min-height: 44px; }

/* ── round 1 groups and channels (print-friendly) ── */
.groups-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--text); margin-bottom: 24px; }
.groups-head h1 { margin: 6px 0; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1; }
.groups-head .lede { color: var(--text-2); margin: 0; max-width: 62ch; }
.groups-find { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); min-width: min(340px, 100%); flex: 0 1 340px; }
.groups-find label { display: block; font-weight: 600; margin-bottom: 8px; }
.groups-find .msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--brand); min-height: 1.2em; }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.gcard { padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong); break-inside: avoid; page-break-inside: avoid; }
.gcard.is-match { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.gcard.is-dim { opacity: .4; }
.gcard header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.gcard header .disp { font-size: 28px; }
.gcard header .sub { color: var(--text-2); font-size: 14px; }
.gcard header .about { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.gcard table { width: 100%; border-collapse: collapse; }
.gcard th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 4px; }
.gcard td { padding: 9px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.gcard td.seat { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 20px; width: 56px; }
.gcard td.seed { font-family: var(--font-mono); color: var(--text-2); text-align: right; width: 56px; }
.gcard td .who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.gcard td .lb-av { --s: 36px; }
.gcard tr.is-me td { background: color-mix(in oklab, var(--brand) 14%, transparent); }
.gcard tr.is-me td:first-child { border-radius: 10px 0 0 10px; } .gcard tr.is-me td:last-child { border-radius: 0 10px 10px 0; }
.gcard .lb-chan { font-size: 12px; padding: 5px 9px; }
.groups-note { color: var(--text-2); font-size: 13px; margin-top: 18px; }
.groups-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.groups-actions .btn { min-height: 44px; }
@media (max-width: 560px) { .gcard { padding: 16px 12px; } .gcard header .about { margin-left: 0; width: 100%; } .gcard header { flex-wrap: wrap; } .gcard td.seed, .gcard th.seed { display: none; } }
@media print {
  :root, html[data-mode] { --bg: #fff; --surface: #fff; --surface-2: #f2f4f7; --text: #0a111c; --text-2: #4f5d71; --line: #d8dee6; --line-strong: #c3ccd7; --brand: #007a62; }
  body { background: #fff !important; color: #0a111c; }
  .site-header, .site-footer, .live-strip, .backdrop, .groups-actions, .groups-find, .skip, nav, .btn { display: none !important; }
  .gcard { box-shadow: none !important; border: 1px solid #c3ccd7; }
  .gcard.is-dim { opacity: 1; }
  .lb-av { box-shadow: 0 0 0 2px var(--c) !important; background: #fff !important; }
  .groups-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wrap { max-width: none !important; padding: 0 !important; }
}
.lb-wide { max-width: 1680px; }
/* My path (phones): a vertical timeline of the followed pilot's heats */
@media (max-width: 720px) {
  .lb-path { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; position: relative; }
  .lb-path .sep { display: none; }
  .lb-path a, .lb-path span.hop { min-height: 52px; justify-content: space-between; padding: 0 16px 0 18px; border-radius: 16px; font-size: 15px; position: relative; }
  .lb-path a b, .lb-path span.hop b { font-size: 20px; }
  .lb-path a::before { content: ""; position: absolute; left: -9px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--brand); }
  .lb-path a.drop::before { background: var(--accent); } .lb-path a.final::before { background: var(--leader); }
  .lb-path .btn { width: 100%; min-height: 44px; }
}


/* ── My path on phones (artboard 9b): its own screen while following ── */
.lb-mpath { display: flex; flex-direction: column; margin-bottom: 18px; }
.lb-mbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 0 calc(-1 * var(--gutter)); padding: 0 8px;
  background: color-mix(in oklab, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid color-mix(in oklab, var(--text) 6%, transparent); }
.lb-mbar > span { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-mbar .ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--brand); cursor: pointer; border-radius: 12px; flex: none; }
.lb-mbar .ic.copied { background: color-mix(in oklab, var(--brand) 14%, transparent); }
.lb-mhero { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.lb-mhero > .lb-av { --s: 64px; font-size: 24px; box-shadow: 0 0 0 2px var(--c), 0 0 14px var(--c) !important; }
.lb-mhero > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-mhero .k { font-size: 12px; font-weight: 600; color: var(--brand); }
.lb-mhero .nm { font-size: 30px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-mhero .route { font-size: 13px; color: color-mix(in oklab, var(--text) 72%, var(--text-2)); }
.lb-mtl { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lb-mtl li { position: relative; padding-left: 34px; }
.lb-mtl .dot { position: absolute; left: 0; top: 14px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line-strong); }
.lb-mtl .dot.done { border: 0; background: var(--brand); color: var(--brand-ink, #03130f); box-shadow: 0 0 14px var(--brand); }
.lb-mtl .dot.done svg { width: 12px; height: 12px; }
.lb-mtl .dot.done.drop { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.lb-mtl .dot.ondeck { border: 0; background: var(--leader); box-shadow: 0 0 16px var(--leader); animation: lb-blink 1.2s ease-in-out infinite; }
.lb-mtl .dot.racing { border: 0; background: var(--live); box-shadow: 0 0 16px var(--live); animation: lb-blink 1.2s ease-in-out infinite; }
.lb-mtl .line { position: absolute; left: 9px; top: 36px; bottom: -14px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 9px); }
.lb-mtl .line.lit { background: var(--brand); box-shadow: 0 0 8px color-mix(in oklab, var(--brand) 80%, transparent); }
.lb-mtl .card { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: color-mix(in oklab, var(--surface) 90%, transparent); border: 1px solid color-mix(in oklab, var(--text) 8%, transparent); }
.lb-mtl .is-ondeck .card { background: color-mix(in oklab, var(--lb-amber-soft) 60%, transparent); border-color: color-mix(in oklab, var(--leader) 50%, transparent); }
.lb-mtl .is-racing .card { background: color-mix(in oklab, var(--live) 9%, var(--surface)); border-color: color-mix(in oklab, var(--live) 50%, transparent); }
.lb-mtl .is-upcoming .card { border-style: dashed; }
.lb-mtl .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; }
.lb-mtl .h { display: flex; align-items: center; gap: 8px; }
.lb-mtl .h .disp { font-size: 19px; }
.lb-mtl .h .lb-pos { width: 20px; height: 20px; font-size: 11px; }
.lb-mtl .s { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-mpips { display: inline-flex; gap: 5px; align-items: center; }
.lb-mpips .lb-pip { width: 12px; height: 12px; }
.lb-mplay { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text);
  background: color-mix(in oklab, var(--text) 7%, transparent); border: 1px solid color-mix(in oklab, var(--text) 14%, transparent); }
.lb-mplay svg { width: 12px; height: 12px; }
.lb-mlive { flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--live); color: #111114; font-weight: 700; font-size: 14px; text-decoration: none; }
.lb-mlive:hover { color: #111114; }
.lb-mlive svg { width: 11px; height: 11px; }
@media (max-width: 720px) {
  /* While following, the phone shows the path screen: no page title block or site header above it. */
  .lb.following .lb-head, .lb.following > .crumbs, .lb.following + .lb-planned { display: none; }
  .has-app-tabs.bracket-page:has(.lb.following) .site-header, .has-app-tabs.bracket-page:has(.lb.following) .live-strip,
  .has-app-tabs.hub-page:has(.lb.following) .site-header, .has-app-tabs.hub-page:has(.lb.following) .live-strip, .hub-page:has(.lb.following) .hub-hero { display: none; }
  .bracket-page .lb.following { padding-top: 0 !important; }
  .hub-page:has(.lb.following) .hub-body, .hub-page:has(.lb.following) .lb { padding-top: 0 !important; margin-top: 0 !important; }
}
@media (min-width: 721px) { .lb-mpath { display: none; } }

/* ── notifications sheet, as drawn ── */
.lb-sheet { padding: 12px 20px calc(42px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid color-mix(in oklab, var(--text) 10%, transparent); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; z-index: 72; }
.lb-sheet .grab { width: 40px; margin: 0 auto; }
.lb-sheet .bell { margin: 0 auto; border-radius: 20px; border: 0; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 50%, transparent); }
.lb-sheet h2 { margin: 0; }
.lb-sheet p { margin: 0; font-size: 15px; line-height: 1.5; color: color-mix(in oklab, var(--text) 72%, var(--text-2)); }
.lb-sheet ul { margin: 0; padding: 12px 14px; gap: 8px; font-size: 13.5px; color: color-mix(in oklab, var(--text) 72%, var(--text-2)); }
.lb-sheet ul li { display: flex; gap: 8px; align-items: center; }
.lb-sheet ul li::before { content: none; }
.lb-sheet ul li svg { flex: none; color: var(--brand); }
.lb-sheet .btn { min-height: 52px; font-size: 16px; font-weight: 700; }
.lb-sheet .later { margin-top: -4px; color: color-mix(in oklab, var(--text) 72%, var(--text-2)); }
.lb-scrim { z-index: 71; background: color-mix(in oklab, var(--bg) 62%, transparent); }

/* ── skeleton on phones (artboard 9): the round pager's shape, shimmering ── */
.lb-skm { display: none; flex-direction: column; gap: 14px; }
.lb-skm i { display: block; height: 40px; border-radius: 20px; background-color: var(--surface-2);
  background-image: linear-gradient(90deg, transparent, color-mix(in oklab, var(--text) 7%, transparent), transparent); background-size: 200px 100%; background-repeat: no-repeat; animation: lb-skm 1.4s ease-in-out infinite; }
.lb-skm .pills { display: flex; gap: 6px; }
.lb-skm .card { display: flex; flex-direction: column; gap: 20px; padding: 16px 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid color-mix(in oklab, var(--text) 6%, transparent); }
.lb-skm .hd { display: flex; justify-content: space-between; }
.lb-skm .rw { display: flex; align-items: center; gap: 8px; height: 28px; }
.lb-skm .rw .p { width: 22px; height: 22px; border-radius: 11px; }
.lb-skm .rw .a { width: 28px; height: 28px; border-radius: 14px; }
.lb-skm .rw .g { width: 58px; height: 16px; border-radius: 8px; margin-left: auto; margin-right: 14px; }
.lb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes lb-skm { from { background-position: -200px 0 } to { background-position: calc(100% + 200px) 0 } }
@media (max-width: 720px) {
  .lb-skel { display: none; }
  .lb-skm { display: flex; }
  .lb.is-paged .lb-pager .lb-skm { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .lb-skm i { animation: none !important; } }
body.lb-tv { overflow: hidden; background: var(--bg); }
.lb-tvroot { --u: min(calc(100vw / 1920), calc(100vh / 1080)); --tv-t1: color-mix(in oklab, var(--text) 72%, var(--text-2)); position: fixed; inset: 0; overflow: hidden; background: var(--bg); color: var(--text); }
.lb-tvroot .tv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-tvroot .tv-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--bg) 92%, transparent) 0%, color-mix(in oklab, var(--bg) 70%, transparent) 45%, color-mix(in oklab, var(--bg) 35%, transparent) 75%, color-mix(in oklab, var(--bg) 55%, transparent)),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .6)); }
.lb-tvroot .tv-shade.no-photo { background: radial-gradient(60% 70% at 78% 18%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
  radial-gradient(50% 60% at 20% 80%, color-mix(in oklab, var(--brand) 10%, transparent), transparent 70%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .6)); }
/* the scene: 1920×1080 design pixels, centred and scaled */
.lb-tvroot .tv-stage { position: absolute; left: 50%; top: 50%; width: calc(1920 * var(--u)); height: calc(1080 * var(--u)); transform: translate(-50%, -50%); }
.lb-tvroot .tv-cam { position: absolute; inset: 0; transform-origin: 40% 50%; animation: tv-cam 12s ease-in-out infinite alternate; }
@keyframes tv-cam { from { transform: scale(1) translate(0, 0) } to { transform: scale(1.035) translate(calc(-14 * var(--u)), calc(-6 * var(--u))) } }
.lb-tvroot .tv-focus-wrap { position: absolute; left: calc(140 * var(--u)); top: calc(530 * var(--u)); width: calc(820 * var(--u)); transform: translateY(-50%); }
.lb-tvroot .tv-cam.solo .tv-focus-wrap { left: calc(550 * var(--u)); }
.lb-tvroot .cm { position: absolute; width: calc(46 * var(--u)); height: calc(46 * var(--u)); border: 0 solid color-mix(in oklab, var(--text) 70%, transparent); pointer-events: none; }
.lb-tvroot .cm.tl { left: calc(-28 * var(--u)); top: calc(-28 * var(--u)); border-left-width: calc(3 * var(--u)); border-top-width: calc(3 * var(--u)); border-radius: calc(10 * var(--u)) 0 0 0; }
.lb-tvroot .cm.tr { right: calc(-28 * var(--u)); top: calc(-28 * var(--u)); border-right-width: calc(3 * var(--u)); border-top-width: calc(3 * var(--u)); border-radius: 0 calc(10 * var(--u)) 0 0; }
.lb-tvroot .cm.bl { left: calc(-28 * var(--u)); bottom: calc(-28 * var(--u)); border-left-width: calc(3 * var(--u)); border-bottom-width: calc(3 * var(--u)); border-radius: 0 0 0 calc(10 * var(--u)); }
.lb-tvroot .cm.br { right: calc(-28 * var(--u)); bottom: calc(-28 * var(--u)); border-right-width: calc(3 * var(--u)); border-bottom-width: calc(3 * var(--u)); border-radius: 0 0 calc(10 * var(--u)) 0; }
.lb-tvroot .tv-card { box-sizing: border-box; display: flex; flex-direction: column; gap: calc(12 * var(--u)); padding: calc(28 * var(--u)); border-radius: calc(28 * var(--u));
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 90%, transparent), color-mix(in oklab, var(--bg) 94%, transparent)); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lb-tvroot .tv-card.is-racing { border-color: color-mix(in oklab, var(--live) 50%, transparent); animation: lb-live-ring 10s var(--lb-ease) infinite; }
.lb-tvroot .tv-card.is-ondeck { border-color: color-mix(in oklab, var(--leader) 55%, transparent); animation: lb-deck 12s ease-in-out infinite; }
.lb-tvroot .tv-card header { display: flex; align-items: center; justify-content: space-between; gap: calc(18 * var(--u)); height: calc(70 * var(--u)); }
.lb-tvroot .tv-card header .t { display: flex; align-items: baseline; gap: calc(16 * var(--u)); min-width: 0; }
.lb-tvroot .tv-card header .n { font-size: calc(56 * var(--u)); white-space: nowrap; }
.lb-tvroot .tv-card header .sub { font-size: calc(26 * var(--u)); color: var(--tv-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tvroot .tv-card header .st { display: flex; align-items: center; gap: calc(18 * var(--u)); flex: none; }
.lb-tvroot .tv-card .lap { font-size: calc(34 * var(--u)); font-weight: 700; color: color-mix(in oklab, var(--live) 62%, var(--text)); }
.lb-tvroot .lb-livebadge { gap: calc(7 * var(--u)); padding: calc(7 * var(--u)) calc(14 * var(--u)); font-size: calc(15 * var(--u)); letter-spacing: .08em; }
.lb-tvroot .lb-livebadge i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); animation-duration: 10s; }
.lb-tvroot .tv-deck, .lb-tvroot .tv-wait { padding: calc(7 * var(--u)) calc(14 * var(--u)); border-radius: 999px; font-size: calc(15 * var(--u)); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lb-tvroot .tv-deck { background: var(--lb-amber-soft); color: var(--leader); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--leader) 60%, transparent); }
.lb-tvroot .tv-wait { color: var(--tv-t1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lb-tvroot .tv-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.lb-tvroot .tv-rows li { position: relative; overflow: hidden; display: flex; align-items: center; gap: calc(22 * var(--u)); height: calc(96 * var(--u)); padding: 0 calc(24 * var(--u)); border-radius: calc(18 * var(--u)); background: color-mix(in oklab, var(--text) 5%, transparent); }
.lb-tvroot .tv-rows .bar { position: absolute; left: 0; top: 0; bottom: 0; width: calc(8 * var(--u)); background: var(--c); box-shadow: 0 0 calc(16 * var(--u)) var(--c); }
.lb-tvroot .tv-rows .lb-pos { width: calc(50 * var(--u)); height: calc(50 * var(--u)); font-size: calc(28 * var(--u)); }
.lb-tvroot .tv-rows .lb-pos.seat { color: var(--text-2); }
.lb-tvroot .tv-rows .lb-av { --s: calc(64 * var(--u)); font-size: calc(24 * var(--u)); }
.lb-tvroot .tv-rows .nm { flex: 1; min-width: 0; font-size: calc(46 * var(--u)); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tvroot .tv-rows .tbd .nm { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: calc(28 * var(--u)); color: var(--text-2); }
.lb-tvroot .tv-rows .tbd { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text-2) 35%, transparent); }
.lb-tvroot .tv-rows .tbd .bar { display: none; }
.lb-tvroot .tv-rows .ch { flex: none; font-size: calc(18 * var(--u)); font-weight: 600; line-height: 1; padding: calc(3 * var(--u)) calc(6 * var(--u)); border-radius: 999px; background: var(--c); color: #111114; white-space: nowrap; }
.lb-tvroot .tv-rows .end { display: flex; flex-direction: column; align-items: flex-end; width: calc(150 * var(--u)); flex: none; }
.lb-tvroot .tv-rows .end .big { font-size: calc(30 * var(--u)); font-weight: 600; color: var(--tv-t1); }
.lb-tvroot .tv-rows .end .big.lead { color: var(--text); }
.lb-tvroot .tv-rows .end .small { font-size: calc(16 * var(--u)); color: var(--text-2); }
/* the next match: where the winners go, sitting back */
.lb-tvroot .tv-next { position: absolute; left: calc(1180 * var(--u)); top: calc(530 * var(--u)); transform: translateY(-50%); width: calc(500 * var(--u)); box-sizing: border-box; padding: calc(22 * var(--u)); border-radius: calc(24 * var(--u));
  display: flex; flex-direction: column; gap: calc(10 * var(--u)); background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 85%, transparent), color-mix(in oklab, var(--bg) 90%, transparent));
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent); filter: blur(1.5px); opacity: .62; }
.lb-tvroot .tv-next header { display: flex; align-items: baseline; gap: calc(12 * var(--u)); }
.lb-tvroot .tv-next header .n { font-size: calc(36 * var(--u)); }
.lb-tvroot .tv-next header .sub { font-size: calc(20 * var(--u)); color: var(--text-2); }
.lb-tvroot .tv-next .r { display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(56 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: calc(12 * var(--u)); background: color-mix(in oklab, var(--text) 5%, transparent); font-size: calc(22 * var(--u)); font-weight: 600; }
.lb-tvroot .tv-next .r .lb-av { --s: calc(36 * var(--u)); font-size: calc(14 * var(--u)); }
.lb-tvroot .tv-next .r.tbd { background: transparent; border: 1px dashed color-mix(in oklab, var(--text-2) 35%, transparent); font-size: calc(20 * var(--u)); font-weight: 400; color: var(--text-2); }
.lb-tvroot .tv-run { position: absolute; left: calc(960 * var(--u)); top: calc(527 * var(--u)); width: calc(220 * var(--u)); }
.lb-tvroot .tv-run i { display: block; height: calc(5 * var(--u)); border-radius: calc(3 * var(--u)); background-color: color-mix(in oklab, var(--line-strong) 70%, var(--text));
  background-image: linear-gradient(90deg, transparent, color-mix(in oklab, var(--text) 95%, transparent), transparent); background-size: 30% 100%; background-repeat: no-repeat; animation: tv-run 10s cubic-bezier(.65, 0, .35, 1) infinite; }
.lb-tvroot .tv-run span { display: block; margin: calc(14 * var(--u)) 0 0 calc(24 * var(--u)); font-size: calc(18 * var(--u)); color: var(--tv-t1); white-space: nowrap; }
@keyframes tv-run { 0% { background-position: -40% 0 } 30%, 100% { background-position: 140% 0 } }
.lb-tvroot .tv-champ { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: calc(980 * var(--u)); font-size: calc(18 * var(--u)); }
.lb-tvroot .tv-champ .lb-champ-actions { display: none; }
/* chrome: brand, status, QR, mini-map */
.lb-tvroot .tv-frame { position: absolute; z-index: 5; left: 50%; top: 50%; width: calc(1920 * var(--u)); height: calc(1080 * var(--u)); transform: translate(-50%, -50%); pointer-events: none; }
.lb-tvroot .tv-frame > * { pointer-events: auto; }
.lb-tvroot .tv-top .brandmark { position: absolute; left: calc(56 * var(--u)); top: calc(44 * var(--u)); display: flex; align-items: center; gap: calc(18 * var(--u)); color: var(--text); }
.lb-tvroot .tv-top .brandmark > svg, .lb-tvroot .tv-top .brandmark > img { width: calc(60 * var(--u)); height: calc(60 * var(--u)); border-radius: calc(12 * var(--u)); object-fit: contain; flex: none; }
.lb-tvroot .tv-top .brandmark > span { display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.lb-tvroot .tv-top .name { display: block; font-size: calc(34 * var(--u)); line-height: 1; font-stretch: 112%; }
.lb-tvroot .tv-sub { display: flex; align-items: center; gap: calc(8 * var(--u)); color: var(--brand); font-weight: 600; font-size: calc(20 * var(--u)); }
.lb-tvroot .tv-sub svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); flex: none; }
.lb-tvroot .tv-status { position: absolute; right: calc(48 * var(--u)); top: calc(44 * var(--u)); height: calc(60 * var(--u)); box-sizing: border-box; display: flex; align-items: center; gap: calc(16 * var(--u)); padding: 0 calc(24 * var(--u));
  border-radius: calc(16 * var(--u)); background: color-mix(in oklab, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid color-mix(in oklab, var(--text) 9%, transparent);
  box-shadow: inset 0 calc(-2 * var(--u)) 0 var(--brand); font-size: calc(22 * var(--u)); font-weight: 600; white-space: nowrap; }
.lb-tvroot .tv-status:empty { display: none; }
.lb-tvroot .tv-qr, .lb-tvroot .tv-mini { position: absolute; z-index: 5; bottom: calc(44 * var(--u)); background: color-mix(in oklab, var(--bg) 82%, transparent);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: calc(20 * var(--u)); }
.lb-tvroot .tv-qr { left: calc(56 * var(--u)); display: flex; align-items: center; gap: calc(22 * var(--u)); padding: calc(16 * var(--u)) calc(26 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)); }
.lb-tvroot .tv-qr svg { width: calc(150 * var(--u)); height: calc(150 * var(--u)); background: #fff; border-radius: calc(10 * var(--u)); padding: calc(6 * var(--u)); box-sizing: border-box; flex: none; }
.lb-tvroot .tv-qr > div { display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.lb-tvroot .tv-qr span { font-size: calc(20 * var(--u)); color: var(--tv-t1); }
.lb-tvroot .tv-qr b { font-size: calc(34 * var(--u)); line-height: 1.05; word-break: break-word; }
.lb-tvroot .tv-mini { right: calc(48 * var(--u)); width: calc(400 * var(--u)); box-sizing: border-box; padding: calc(18 * var(--u)) calc(20 * var(--u)); display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.lb-tvroot .tv-mini:empty { display: none; }
.lb-tvroot .tv-mini .hd { display: flex; align-items: center; justify-content: space-between; font-size: calc(17 * var(--u)); font-weight: 600; color: var(--tv-t1); }
.lb-tvroot .tv-mini .hd .n { font-size: calc(15 * var(--u)); font-weight: 400; color: var(--text-2); }
.lb-tvroot .tv-mini .mini { display: flex; gap: calc(14 * var(--u)); align-items: stretch; }
.lb-tvroot .tv-mini .lns { display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.lb-tvroot .tv-mini .ln { display: flex; gap: calc(14 * var(--u)); }
.lb-tvroot .tv-mini .cl { display: flex; flex-direction: column; justify-content: space-around; gap: calc(7 * var(--u)); }
.lb-tvroot .tv-mini i.m { display: block; width: calc(48 * var(--u)); height: calc(21 * var(--u)); border-radius: calc(5 * var(--u)); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lb-tvroot .tv-mini i.m.done, .lb-tvroot .tv-mini i.m.void { background: color-mix(in oklab, var(--brand) 25%, transparent); box-shadow: inset 0 0 0 1px var(--brand); }
.lb-tvroot .tv-mini i.m.racing { background: color-mix(in oklab, var(--live) 35%, transparent); box-shadow: inset 0 0 0 2px var(--live), 0 0 calc(14 * var(--u)) color-mix(in oklab, var(--live) 70%, transparent); animation: lb-blink 10s ease-in-out infinite; }
.lb-tvroot .tv-mini i.m.ondeck { background: var(--lb-amber-soft); box-shadow: inset 0 0 0 1px var(--leader); }
.lb-tvroot .tv-mini .fin { flex: 1; min-width: calc(80 * var(--u)); display: flex; align-items: center; justify-content: center; border-radius: calc(10 * var(--u)); font-size: calc(16 * var(--u)); font-weight: 700;
  color: var(--leader); background: color-mix(in oklab, var(--lb-amber-soft) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--leader) 60%, transparent); align-self: flex-start; min-height: calc(109 * var(--u)); }
.lb-tvroot .tv-mini .fin.racing { color: var(--live); box-shadow: inset 0 0 0 2px var(--live); background: color-mix(in oklab, var(--live) 18%, transparent); }
.lb-tvroot .tv-mini .fin.done { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in oklab, var(--brand) 18%, transparent); }
.lb-tvroot .tv-card.many .tv-rows { gap: calc(8 * var(--u)); }
.lb-tvroot .tv-card.many .tv-rows li { height: calc(68 * var(--u)); }
.lb-tvroot .tv-card.many .tv-rows .nm { font-size: calc(36 * var(--u)); }
.lb-tvroot .tv-card.many .tv-rows .lb-av { --s: calc(48 * var(--u)); }
@media (prefers-reduced-motion: reduce) { .lb-tvroot .tv-cam, .lb-tvroot .tv-run i, .lb-tvroot .tv-card { animation: none !important; } }


/* ── phones (artboard 9a): a compact "Bracket" title bar above the round pager ── */
.lb-mtitle { display: none; }
@media (max-width: 720px) {
  .lb-mtitle { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
  .lb-mtitle .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .lb-mtitle h1 { margin: 0; font-size: 36px; line-height: 1.05; }
  .lb-mtitle .acts { display: flex; gap: 8px; min-width: 0; }
  .lb-mpill { display: inline-flex; align-items: center; gap: 6px; height: 44px; max-width: 46vw; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
    background: color-mix(in oklab, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font: 600 14px var(--font-body); }
  span.lb-mpill { cursor: default; }
  .lb-mpill .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bk, var(--brand)); }
  .lb-mpill .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lb-mic { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: color-mix(in oklab, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
  .lb-mpill[aria-expanded="true"], .lb-mic[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--brand); }
  .lb-mtitle .sub { font-size: 14px; color: color-mix(in oklab, var(--text) 78%, var(--text-2)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lb-mtitle .sub .live { color: var(--live); font-weight: 700; }

  /* The page's own title block and crumbs give way to it; its controls open from the pill or the magnifier. */
  .bracket-page .lb > .crumbs, .bracket-page .lb-head { display: none; }
  .bracket-page .lb.m-open .lb-head { display: flex; margin-bottom: 14px; }
  .bracket-page .lb.m-open .lb-head > div:first-child { display: none; }
  .bracket-page .lb.m-open.m-follow .lb-controls > div:not(.lb-follow), .bracket-page .lb.m-open.m-switch .lb-follow { display: none; }
  .bracket-page .lb-planned { margin: -6px 0 12px !important; font-size: 12.5px; }
  .bracket-page .lb.following .lb-mtitle, .bracket-page .lb.following .lb-planned { display: none; }
  /* With the app's tab bar, the bracket is the screen: no site header or live strip above it. */
  .has-app-tabs.bracket-page .site-header, .has-app-tabs.bracket-page .live-strip { display: none; }
  .has-app-tabs.bracket-page .lb { padding-top: calc(16px + env(safe-area-inset-top)) !important; }
}

/* ── canvas gaps: chase the ace (routes, live rows, when the next final runs, how it finishes, the full-width final) ── */
.lb-frow { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; }
.lb-frow .hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; min-height: 28px; }
.lb-frow .acts { display: inline-flex; align-items: center; gap: 8px; }
.lb-frow .l { flex-wrap: wrap; align-items: center; }
.lb-frow .l .s { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.lb-frow .l .s b { color: var(--text); font-weight: 600; }
.lb-frow .l .s svg { color: var(--leader); flex: none; }
.lb-frow .l .s .lap { color: var(--live); font-size: 11.5px; }
.lb-frow.is-cond { background: transparent; border: 1px dashed var(--line-strong); }
.lb-frow.is-cond .l .s { white-space: normal; }
.lb-frows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.lb-acehead { margin: -6px 0 0; text-align: center; font-weight: 600; color: var(--leader); font-size: 14px; }
.lb-ace { position: relative; overflow: hidden; }
.lb-ace .bar { position: absolute; left: 18px; right: 18px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c, var(--brand)); box-shadow: 0 0 12px var(--c, var(--brand)); opacity: .9; }
.lb-ace.tbd .bar, .lb-ace:not([data-uid]) .bar { display: none; }
.lb-ace .meta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.lb-ace .wl { margin-top: 2px; }
.lb-ace.champ { border-color: color-mix(in oklab, var(--leader) 70%, transparent); box-shadow: 0 0 30px color-mix(in oklab, var(--leader) 25%, transparent); }
.lb-route { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.lb-route .k { font-size: 11px; color: var(--text-2); }
.lb-route .hops { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; color: var(--text-3); }
.lb-route a, .lb-route .fin { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2); text-decoration: none; min-height: 0; }
.lb-route a:hover { color: var(--text); border-color: var(--brand); }
.lb-route .fin { background: var(--lb-amber-soft); border-color: transparent; color: var(--leader); font-weight: 700; }
.lb-howfin { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: color-mix(in oklab, var(--surface-2) 60%, transparent); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.lb-howfin .k { font-size: 12px; font-weight: 700; color: var(--text); }
.lb-howfin p { margin: 0; }
.lb-howfin.full { font-size: 15px; padding: 20px; border-radius: 16px; }
.lb-howfin a { font-weight: 600; color: var(--brand); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.lb-openfinal { align-self: center; font-weight: 600; font-size: 14px; color: var(--leader); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.lb-page .lb-openfinal { display: none; }
.lb-fv { display: flex; flex-direction: column; gap: 24px; width: min(1392px, 100%); margin: 0 auto; }
.lb-fv-hero { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 40px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(90% 70% at 80% 0%, color-mix(in oklab, var(--leader) 10%, transparent), transparent 70%), var(--lb-glass);
  border: 1px solid color-mix(in oklab, var(--leader) 32%, transparent); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.lb-fv-hero .top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.lb-fv-hero .t { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lb-fv-hero .kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--leader); }
.lb-fv-hero h2 { margin: 0; font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); line-height: 1; font-stretch: 112%; }
.lb-fv-hero p { margin: 0; font-size: 16px; color: var(--text-2); }
.lb-fv-hero .need { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 18px; background: var(--lb-amber-soft); border: 1px solid color-mix(in oklab, var(--leader) 50%, transparent); }
.lb-fv-hero .need span:first-child { font-size: 13px; color: var(--text-2); }
.lb-fv-hero .need .disp { font-size: 40px; font-style: normal; color: var(--leader); }
.lb-aces.big { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.lb-aces.big .lb-ace { padding: 28px 18px 22px; border-radius: 22px; gap: 12px; }
.lb-aces.big .lb-ace .lb-av { --s: 96px; font-size: 34px; }
.lb-aces.big .lb-ace .nm { font-size: 34px; }
.lb-aces.big .lb-pip { width: 22px; height: 22px; }
.lb-fv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; align-items: start; }
.lb-fv-grid > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lb-fv-grid h3 { margin: 0; font-size: 26px; }
.lb-fv .lb-frow { padding: 16px 18px; border-radius: 16px; background: color-mix(in oklab, var(--surface) 85%, transparent); border: 1px solid var(--line); }
.lb-fv .lb-frow.is-racing { border-color: color-mix(in oklab, var(--live) 50%, transparent); box-shadow: none; }
.lb-fv .lb-frow .l .disp { font-size: 20px; }
.lb-fv .lb-frow .l .s { font-size: 13.5px; }
.lb.is-finalview .lb-scroll { overflow: visible; }

/* ── round complete: the round that just finished, in a sentence ── */
.lb-rc { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 22px 26px; margin-bottom: 20px; border-radius: 20px; overflow: hidden;
  background: var(--lb-glass); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 50px color-mix(in oklab, var(--brand) 10%, transparent); animation: lb-fade .4s ease-out both; }
.lb-rc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand); box-shadow: 0 0 14px var(--brand); }
.lb-rc .band { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--brand) 12%, transparent) 45%, color-mix(in oklab, var(--text) 10%, transparent) 50%, color-mix(in oklab, var(--brand) 12%, transparent) 55%, transparent);
  background-size: 40% 100%; background-repeat: no-repeat; animation: lb-rc-band 1.4s var(--lb-ease) .1s both; }
.lb-rc .chk { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: color-mix(in oklab, var(--brand) 12%, transparent);
  box-shadow: inset 0 0 0 2px var(--brand), 0 0 30px color-mix(in oklab, var(--brand) 40%, transparent); animation: lb-pos-pop .5s var(--lb-pop) both; }
.lb-rc .chk svg { width: 28px; height: 28px; }
.lb-rc .t { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lb-rc .k { font-size: 13px; font-weight: 600; color: var(--brand); }
.lb-rc h2 { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.05; text-wrap: balance; }
.lb-rc p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.lb-rc .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.lb-rc .btn { min-height: 44px; border-radius: 999px; }
@keyframes lb-rc-band { from { background-position: -60% 0 } to { background-position: 160% 0 } }
.lb-statuschip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; animation: lb-fade .3s ease-out both; }
.lb-statuschip.deck { background: var(--lb-amber-soft); color: var(--leader); }
.lb-statuschip.live { background: color-mix(in oklab, var(--live) 16%, transparent); color: var(--live); }
.lb-state.deck.pop, .lb-statuschip.pop, .lb-chip-deck.pop { animation: lb-deck-pop .6s var(--lb-pop) both; }
@keyframes lb-deck-pop { 0% { transform: scale(.6); opacity: .2 } 55% { transform: scale(1.18); box-shadow: 0 0 0 6px color-mix(in oklab, var(--leader) 25%, transparent), 0 0 24px color-mix(in oklab, var(--leader) 55%, transparent) } 100% { transform: none; opacity: 1 } }

/* ── follow a pilot: the pilot's hero and the drop said on the line ── */
.lb-fhero { display: flex; align-items: center; gap: 20px; margin: 0 0 16px; min-width: 0; }
.lb-fhero .lb-av { --s: 84px; font-size: 30px; box-shadow: 0 0 0 2px var(--c, var(--brand)), 0 0 16px var(--c, var(--brand)); }
.lb-fhero .t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lb-fhero .k { font-size: 13px; font-weight: 600; color: var(--brand); }
.lb-fhero h2 { margin: 0; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; }
.lb-fhero p { margin: 0; font-size: 15px; color: var(--text-2); text-wrap: pretty; }
.lb-droptip { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in oklab, var(--bg) 88%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 60%, transparent); animation: lb-fade .3s ease-out both; }
@media (max-width: 720px) { .lb-fhero { display: none; } .lb-rc { padding: 14px 16px; gap: 10px; margin-bottom: 14px; border-radius: 18px; }
  .lb-rc .chk { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; } .lb-rc .chk svg { width: 16px; height: 16px; }
  .lb-rc .t { flex-basis: 100%; gap: 4px; padding-right: 44px; } .lb-rc .k { font-size: 12px; } .lb-rc h2 { font-size: 22px; } .lb-rc p { font-size: 13.5px; line-height: 1.4; }
  .lb-rc .acts { width: 100%; gap: 8px; } .lb-rc .btn { flex: 1; justify-content: center; min-height: 44px; font-size: 14px; padding: 0 12px; } }

/* ── phones: the status line above the title bar (Live · updated 3s ago; a spinner while refreshing) ── */
.lb-mstatus { display: none; }
@media (max-width: 720px) {
  .lb-mstatus { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; margin: -6px 0 2px; font-size: 12px; color: var(--text-2); }
  .lb-mstatus .spin { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
  .lb[aria-busy="true"] .lb-mstatus .spin { width: 14px; height: 14px; background: none; border: 2px solid var(--brand); border-right-color: transparent; animation: lb-spin .9s linear infinite; }
  .lb-mtitle h1 { font-size: 32px; }
  .lb-mtitle { margin-bottom: 10px; }
}
@keyframes lb-spin { to { transform: rotate(360deg) } }

/* The global mini-player steps aside while the chase the ace panel is on screen (desktop). */
.app-mini { transition: opacity .25s ease-out, transform .25s var(--lb-ease); }
@media (min-width: 721px) { body.lb-ace-inview .app-mini { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; } }
@media (prefers-reduced-motion: reduce) {
  .lb-rc, .lb-rc .band, .lb-rc .chk, .lb-statuschip, .lb-state.deck.pop, .lb-statuschip.pop, .lb-chip-deck.pop, .lb-droptip, .lb-mstatus .spin { animation: none !important; }
  .lb-rc .band { display: none; }
  .app-mini { transition: none; }
}

/* The pager's rounds keep their own height; the track follows the round on show (bracket.js). */
.lb-track { align-items: flex-start; transition: height .25s var(--lb-ease); }
@media (prefers-reduced-motion: reduce) { .lb-track { transition: none; } }
.lb-page .lb-aces { gap: 10px; }
.lb-page .lb-ace { padding: 14px 8px 12px; }
.lb-page .lb-ace .nm { font-size: 20px; }
.lb-page .lb-nextwin { font-size: 11px; padding: 4px 9px; gap: 4px; max-width: 100%; box-sizing: border-box; text-align: center; line-height: 1.25; }
.lb-page .lb-frow .acts .lb-results { min-height: 44px; font-size: 14px; }
