/* DV Racing — "Ao vivo" (tela de transmissao) e Replay.
   Sempre escuro, como uma transmissao de TV, independente do tema do sistema. */
body.bc-page { background: #08090b; color-scheme: dark; }
main.wide { max-width: 1560px; }

.bc {
  --bc-panel: #111216; --bc-panel-2: #17191e; --bc-panel-3: #1f2229;
  --bc-line: rgba(255, 255, 255, .07); --bc-line-2: rgba(255, 255, 255, .13);
  --bc-text: #f4f4f5; --bc-muted: #a0a4ad; --bc-dim: #6f747e;
  --bc-accent: #e10600; --bc-sb: #b36bff; --bc-pb: #2fd37a; --bc-warn: #f5b400; --bc-pit: #f0a93b;
  --bc-info: #3d8cf0; --bc-bad: #ff5a4f;
  color: var(--bc-text);
}
.bc .num { font-variant-numeric: tabular-nums; }
.bc .hidden { display: none !important; }
.bc-dim { color: var(--bc-dim); font-size: .8rem; }
.bc-sub { color: var(--bc-muted); font-size: .88rem; }
.bc-empty { color: var(--bc-muted); margin: 0; padding: 18px 16px; font-size: .9rem; }

/* ---- barra da sessao ---- */
.bc-bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: stretch;
  background: var(--bc-panel); border: 1px solid var(--bc-line); border-radius: 12px; overflow: hidden; margin-bottom: 14px;
}
.bc-stage { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 20px; min-width: 170px; background: var(--bc-accent); }
.bc-stage.replay { background: #262a33; box-shadow: inset -3px 0 0 var(--bc-accent); }
.bc-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bc-stage.live .bc-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: bc-pulse 1.4s ease-in-out infinite; }
.bc-stage-name { font-size: 1.2rem; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.bc-phase { width: max-content; margin-top: 2px; padding: 1px 7px; border-radius: 4px; background: rgba(0, 0, 0, .28); font-size: .72rem; font-weight: 700; }
.bc-track { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 12px 20px; }
.bc-track .t { overflow: hidden; font-size: 1.5rem; font-weight: 850; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.bc-track .sub { overflow: hidden; margin-top: 2px; color: var(--bc-muted); font-size: .88rem; white-space: nowrap; text-overflow: ellipsis; }
.bc-prog {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 128px; padding: 10px 22px;
  border-left: 1px solid var(--bc-line); border-right: 1px solid var(--bc-line); background: var(--bc-panel-2);
}
.bc-prog .k { color: var(--bc-muted); font-size: .66rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.bc-prog .v { font-size: 2.05rem; font-weight: 900; line-height: 1.05; }
.bc-cond { display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 6px; padding: 10px 14px; }
.bc-chip {
  padding: 3px 10px; border: 1px solid var(--bc-line); border-radius: 99px; background: var(--bc-panel-3);
  color: #d7d9de; font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.bc-chip.wet { border-color: rgba(61, 140, 240, .45); color: #a9d0ff; }
/* Entrar no servidor (abre o AMS2 pela Steam) */
.bc-bar.with-join { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.25fr) auto; }
.bc-joincell { display: flex; align-items: center; padding: 10px 16px; border-left: 1px solid var(--bc-line); }
.bc-joinbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bc-joinbox .bc-join { padding: 11px 20px; font-size: 1rem; }
.bc-joinbox.compact { flex-direction: column; align-items: stretch; gap: 3px; text-align: center; }
.bc-joinbox.compact .bc-join { justify-content: center; padding: 9px 14px; font-size: .9rem; white-space: nowrap; }
.bc-join-vr { font-size: .8rem; }
.bc-join-hint { flex-basis: 100%; color: var(--bc-muted); font-size: .8rem; }
.bc-lobby-hero .bc-joinbox { margin: 2px 0 16px; }
@keyframes bc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* ---- grade principal ---- */
.bc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); gap: 14px; align-items: start; }
.bc-col-side { display: grid; gap: 14px; min-width: 0; }
.bc-card { overflow: hidden; background: var(--bc-panel); border: 1px solid var(--bc-line); border-radius: 12px; }
.bc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 14px; border-bottom: 1px solid var(--bc-line); }
.bc-card-title { color: var(--bc-muted); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.bc-legend { display: flex; gap: 12px; font-size: .74rem; }
.bc-legend .lg::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; background: currentColor; vertical-align: -1px; }
.bc-link { padding: 0; border: 0; background: none; color: var(--bc-muted); font-size: .78rem; font-weight: 600; text-decoration: underline; }
.bc-link:hover { color: var(--bc-text); }

/* ---- classificacao ---- */
.bc-tower-wrap { overflow-x: auto; }
.bc-tower { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bc-tower th {
  position: sticky; top: 0; padding: 8px 8px; border-bottom: 1px solid var(--bc-line); background: var(--bc-panel);
  color: var(--bc-dim); font-size: .64rem; font-weight: 750; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap;
}
.bc-tower td { padding: 5px 7px; border-bottom: 1px solid var(--bc-line); white-space: nowrap; }
.bc-tower th.num, .bc-tower td.num { text-align: right; }
.bc-tower tbody tr { cursor: pointer; transition: background .2s; }
.bc-tower tbody tr:hover { background: var(--bc-panel-2); }
.bc-tower tbody tr:last-child td { border-bottom: 0; }
.bc-tower tr.sel { background: linear-gradient(90deg, rgba(225, 6, 0, .30), rgba(225, 6, 0, .07) 55%, transparent); }
.bc-tower tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--bc-accent); }
.bc-tower tr.pit td { opacity: .72; }
.bc-tower tr.out td { opacity: .42; }
.bc-tower td.c-pos { width: 1%; padding-right: 4px; }
.bc-pos { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 4px; border-radius: 6px; background: var(--bc-panel-3); font-weight: 850; font-variant-numeric: tabular-nums; }
.bc-pos.p1 { background: var(--bc-accent); color: #fff; }
.bc-tower .c-delta { display: inline-block; min-width: 2.1em; margin-left: 6px; font-size: .76rem; font-weight: 750; vertical-align: middle; }
.c-delta.up, .bc-stat .v.up { color: var(--bc-pb); }
.c-delta.down, .bc-stat .v.down { color: var(--bc-bad); }
.c-delta.eq { color: var(--bc-dim); }
.bc-tower td.c-name { max-width: 280px; }
.bc-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 750; }
.bc-name .n { overflow: hidden; text-overflow: ellipsis; }
.bc-tower .bc-sub { overflow: hidden; max-width: 260px; margin-top: 1px; color: var(--bc-dim); font-size: .74rem; text-overflow: ellipsis; }
.bc-tower td.c-int, .bc-tower td.c-gap { color: #dfe1e6; }
.bc-tower td.c-sec { color: #cfd2d8; font-size: .82rem; }
.bc-tower td.c-pit, .bc-tower td.c-spd { color: var(--bc-muted); }
.bc-tag {
  flex: none; padding: 1px 5px; border-radius: 3px; background: var(--bc-panel-3); color: var(--bc-muted);
  font-size: .6rem; font-weight: 850; letter-spacing: .05em; line-height: 1.5;
}
.bc-tag.pit { background: var(--bc-pit); color: #141414; }
.bc-tag.fl { background: var(--bc-sb); color: #fff; }
.bc-tag.fin { background: #f4f4f5; color: #141414; }
.bc-tag.out { background: rgba(255, 90, 79, .18); color: var(--bc-bad); }
.m-sb { color: var(--bc-sb) !important; font-weight: 750; }
.m-pb { color: var(--bc-pb) !important; font-weight: 750; }
.m-cur { color: var(--bc-dim) !important; font-style: italic; }
.m-old { color: var(--bc-dim) !important; opacity: .65; }
.bc-tower tr.mv-up .bc-pos { animation: bc-gain 1s ease-out; }
.bc-tower tr.mv-down .bc-pos { animation: bc-loss 1s ease-out; }
@keyframes bc-gain { from { box-shadow: 0 0 0 0 rgba(47, 211, 122, .95); } to { box-shadow: 0 0 0 9px rgba(47, 211, 122, 0); } }
@keyframes bc-loss { from { box-shadow: 0 0 0 0 rgba(255, 90, 79, .95); } to { box-shadow: 0 0 0 9px rgba(255, 90, 79, 0); } }

/* ---- mapa ---- */
.bc-map { position: relative; background: radial-gradient(ellipse at 50% 45%, #171a20 0%, #0c0d10 78%); }
.bc-map-svg { display: block; width: 100%; height: auto; }
.bc-map-caption { position: absolute; left: 0; right: 0; bottom: 12px; color: var(--bc-muted); font-size: .85rem; text-align: center; }
.bc-map-tools { display: flex; gap: 6px; }
.bc-tool { padding: 3px 9px; border: 1px solid var(--bc-line-2); border-radius: 6px; background: var(--bc-panel-3); color: var(--bc-text); font-size: .74rem; font-weight: 650; }
.bc-trk-outer { fill: none; stroke: #000; stroke-opacity: .8; stroke-width: 26; stroke-linejoin: round; stroke-linecap: round; }
.bc-trk-inner { fill: none; stroke: #cdd0d6; stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; }
.bc-trk-sec { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; opacity: .95; }
.bc-trk-sec.s1 { stroke: var(--bc-accent); }
.bc-trk-sec.s2 { stroke: #f5c400; }
.bc-trk-sec.s3 { stroke: #3d8cf0; }
.bc-trk-trail { fill: none; stroke: rgba(205, 208, 214, .38); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.bc-trk-finish { stroke: #fff; stroke-width: 8; }
.bc-trk-finish-dash { stroke: #000; stroke-width: 8; stroke-dasharray: 4 4; }
.bc-trk-arrow { fill: #fff; opacity: .85; }
.bc-car { cursor: pointer; }
.bc-car-halo { fill: transparent; }
.bc-car-ring { fill: none; stroke: transparent; stroke-width: 3.5; }
.bc-car-dot { fill: #8f949d; stroke: #0b0b0c; stroke-width: 2.5; }
.bc-car.player .bc-car-dot { fill: #f4f4f5; }
.bc-car.leader .bc-car-dot { fill: var(--bc-accent); }
.bc-car.leader .bc-car-num { fill: #fff; }
.bc-car.fl .bc-car-ring { stroke: var(--bc-sb); }
.bc-car.sel .bc-car-ring { stroke: #fff; }
.bc-car.sel .bc-car-dot { fill: #ffd400; }
.bc-car.sel .bc-car-num { fill: #111; }
.bc-car.pit { opacity: .42; }
.bc-car.out { opacity: .22; }
.bc-car-num { fill: #111; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; pointer-events: none; }
.bc-car-tag { fill: #fff; font-size: 18px; font-weight: 850; paint-order: stroke; stroke: rgba(0, 0, 0, .92); stroke-width: 5px; pointer-events: none; }

/* ---- piloto em foco ---- */
.bc-focus-top { display: flex; align-items: stretch; border-bottom: 1px solid var(--bc-line); }
.bc-bigpos { display: grid; place-items: center; min-width: 84px; background: var(--bc-panel-3); font-size: 2.6rem; font-weight: 900; }
.bc-bigpos.p1 { background: var(--bc-accent); }
.bc-who { flex: 1; min-width: 0; padding: 12px 16px; }
.bc-who .n { overflow: hidden; font-size: 1.35rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.bc-who .c { margin-top: 2px; color: var(--bc-muted); font-size: .85rem; }
.bc-tags { display: flex; gap: 5px; margin-top: 6px; }
.bc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--bc-line); }
.bc-stat { padding: 9px 14px; border-top: 1px solid var(--bc-line); }
.bc-stat:nth-child(-n+3) { border-top: 0; }
.bc-stat:not(:nth-child(3n+1)) { border-left: 1px solid var(--bc-line); }
.bc-stat .k, .bc-nb .k, .bc-gauge .k, .bc-sec .k { color: var(--bc-dim); font-size: .64rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.bc-stat .v { margin-top: 1px; font-size: 1.1rem; font-weight: 800; }
.bc-tele { display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--bc-line); }
.bc-gauge { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.bc-gauge .v { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.bc-secs { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bc-sec { display: flex; flex-direction: column; align-items: center; padding: 5px 4px; border-radius: 6px; background: var(--bc-panel-2); }
.bc-sec .v { font-size: .92rem; font-weight: 750; }
.bc-sec.m-sb { background: rgba(179, 107, 255, .16); }
.bc-sec.m-pb { background: rgba(47, 211, 122, .13); }
.bc-sec.m-sb .k, .bc-sec.m-pb .k { color: inherit; }
.bc-nb { display: grid; grid-template-columns: 1fr 1fr; }
.bc-nb > div { min-width: 0; padding: 9px 14px; }
.bc-nb > div + div { border-left: 1px solid var(--bc-line); }
.bc-nb .v { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bc-nb .g { color: var(--bc-muted); font-size: .85rem; }

/* ---- direcao de prova ---- */
.bc-rc { max-height: 330px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.bc-rc li { display: grid; grid-template-columns: 52px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--bc-line); font-size: .86rem; }
.bc-rc li:last-child { border-bottom: 0; }
.bc-rc li.new { background: rgba(255, 255, 255, .035); }
.bc-rc li.seek { cursor: pointer; }
.bc-rc li.seek:hover { background: var(--bc-panel-2); }
.bc-rc .t { color: var(--bc-dim); font-size: .8rem; }
.bc-rc .x { overflow: hidden; text-overflow: ellipsis; }
.bc-rc-type { padding: 1px 7px; border-radius: 4px; background: var(--bc-panel-3); color: var(--bc-muted); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.bc-rc-type.bad { background: rgba(255, 90, 79, .16); color: var(--bc-bad); }
.bc-rc-type.warn { background: rgba(245, 180, 0, .15); color: var(--bc-warn); }
.bc-rc-type.info { background: rgba(240, 169, 59, .15); color: var(--bc-pit); }
.bc-rc-type.best { background: rgba(179, 107, 255, .18); color: var(--bc-sb); }
.bc-rc-type.fin { background: #f4f4f5; color: #141414; }

/* ---- admin, sala e ultima corrida ---- */
.bc-admin-body { display: grid; gap: 10px; padding: 12px 14px; }
.bc-admin-body h3 { display: none; }
.bc-admin-body button { border-color: var(--bc-line-2); background: var(--bc-panel-3); color: var(--bc-text); }
.bc-members { margin: 0; padding: 0; list-style: none; }
.bc-members li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--bc-line); }
.bc-members li:last-child { border-bottom: 0; }
.bc-members .n { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; font-weight: 650; }
.bc-members .p { color: var(--bc-muted); font-size: .82rem; }
.bc-members button { border-color: var(--bc-line-2); background: var(--bc-panel-3); color: var(--bc-text); }
.bc-lobby { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.bc-lobby-main { display: grid; gap: 14px; }
.bc-lobby-hero { position: relative; padding: 22px 24px; }
.bc-lobby-hero::after {
  content: ""; position: absolute; top: -50px; right: -50px; width: 220px; height: 220px; opacity: .06; transform: rotate(12deg);
  background: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 34px 34px; pointer-events: none;
}
.bc-lobby-status { display: flex; align-items: center; gap: 8px; color: var(--bc-muted); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bc-dim); }
.bc-dot.on { background: var(--bc-pb); box-shadow: 0 0 0 4px rgba(47, 211, 122, .15); }
.bc-lobby-server { margin-top: 6px; color: var(--bc-muted); font-size: .95rem; }
.bc-lobby-next { margin: 16px 0 14px; }
.bc-lobby-next .k { color: var(--bc-accent); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.bc-lobby-next .v { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.bc-lobby-next .sub { color: var(--bc-muted); font-size: 1rem; }
.bc-next-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--bc-muted); font-size: .85rem; }
.bc-join { padding-top: 14px; border-top: 1px solid var(--bc-line); color: #d7d9de; font-size: .92rem; }
.bc-lobby-hero .bc-admin-body { margin-top: 14px; padding: 12px 0 0; border-top: 1px solid var(--bc-line); }
.bc-last-body { padding: 14px 16px 16px; }
.bc-last-title { font-size: 1.15rem; font-weight: 850; }
.bc-podium { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.bc-podium li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--bc-panel-2); }
.bc-podium .n { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bc-podium .g { color: var(--bc-muted); font-size: .85rem; }
.bc-podium li.p1 .bc-pos { background: #d4a700; color: #141414; }
.bc-podium li.p2 .bc-pos { background: #9aa0a6; color: #141414; }
.bc-podium li.p3 .bc-pos { background: #b87333; color: #fff; }
.bc-last-fl { color: var(--bc-muted); font-size: .85rem; }
.bc-last-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bc-btn { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--bc-line-2); border-radius: 8px; background: var(--bc-panel-3); color: var(--bc-text); font-weight: 700; text-decoration: none; }
.bc-btn.primary { border-color: transparent; background: var(--bc-accent); color: #fff; }
.bc-btn:hover { filter: brightness(1.1); }

/* ---- replay ---- */
.bc-loading { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 60px 20px; }
.bc-replay-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bc-replay-head h1 { margin: 2px 0 2px; font-size: 1.6rem; }
.bc-replay-head p { margin: 0; }
.bc-back { color: var(--bc-muted); font-size: .85rem; text-decoration: none; }
.bc-back:hover { color: var(--bc-text); }
.bc-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--bc-line); border-radius: 10px; background: var(--bc-panel); }
.bc-tabs a { padding: 6px 12px; border-radius: 7px; color: var(--bc-muted); font-size: .85rem; font-weight: 700; text-decoration: none; }
.bc-tabs a.active { background: var(--bc-accent); color: #fff; }
.bc-rclock { margin-top: 3px; color: var(--bc-muted); font-size: .78rem; }
.bc-transport {
  position: sticky; bottom: 10px; z-index: 20; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px;
  border: 1px solid var(--bc-line-2); border-radius: 14px; background: rgba(17, 18, 22, .96); box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
}
.bc-play { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bc-accent); color: #fff; font-size: 1rem; }
.bc-tbtn { flex: none; padding: 6px 10px; border: 1px solid var(--bc-line-2); border-radius: 8px; background: var(--bc-panel-3); color: var(--bc-text); font-size: .8rem; }
.bc-time { flex: none; min-width: 108px; color: #d7d9de; font-size: .9rem; font-weight: 700; text-align: center; }
.bc-speed { flex: none; width: auto; padding: 6px 8px; border: 1px solid var(--bc-line-2); border-radius: 8px; background: var(--bc-panel-3); color: var(--bc-text); font-size: .85rem; }
.bc-timeline { position: relative; flex: 1; min-width: 160px; padding-top: 16px; }
.bc-line { position: relative; }
.bc-range { display: block; width: 100%; margin: 0; accent-color: var(--bc-accent); }
.bc-marks, .bc-laps { position: absolute; left: 8px; right: 8px; pointer-events: none; }
.bc-marks { top: 50%; height: 16px; transform: translateY(-50%); }
.bc-mk { position: absolute; top: 0; width: 3px; height: 16px; border-radius: 2px; background: var(--bc-muted); transform: translateX(-50%); opacity: .85; }
.bc-mk.bad { background: var(--bc-bad); }
.bc-mk.warn { background: var(--bc-warn); }
.bc-mk.info { background: var(--bc-pit); }
.bc-mk.best { background: var(--bc-sb); }
.bc-mk.fin { background: #fff; }
.bc-laps { top: 0; height: 14px; }
.bc-lapmk { position: absolute; top: 0; padding: 0 2px; border: 0; background: none; color: var(--bc-dim); font-size: .62rem; font-weight: 700; transform: translateX(-50%); pointer-events: auto; }
.bc-lapmk:hover { color: var(--bc-text); }
.bc-short { display: none; }

/* ---- cadastro e pagina do piloto (perfil.js) ---- */
.bc input[type=text], .bc input[type=number], .bc input[type=email], .bc select, .bc textarea {
  border-color: var(--bc-line-2); background: var(--bc-panel-2); color: var(--bc-text);
}
.bc label.f, .bc label.check { color: var(--bc-muted); }
.bc input[type=color] { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--bc-line-2); border-radius: 8px; background: var(--bc-panel-2); }
.pf-kicker { color: var(--bc-accent); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.pf-banner { margin-bottom: 14px; padding: 10px 14px; border: 1px solid rgba(245, 180, 0, .35); border-radius: 10px; background: rgba(245, 180, 0, .08); color: #f3dc9a; }
.pf-banner.bad { border-color: rgba(255, 90, 79, .4); background: rgba(255, 90, 79, .1); color: #ffb3ab; }
.pf-linked { margin: 0 0 14px; color: var(--bc-muted); }
.pf-linked.ok { color: #bfe9cf; }
.pf-edit { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.pf-form-body { display: grid; gap: 12px; padding: 16px; }
.pf-sub { margin: 8px 0 0; color: var(--bc-muted); font-size: .72rem; letter-spacing: .12em; }
.pf-photo-row { display: flex; align-items: center; gap: 16px; }
.pf-photo { flex: none; display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border: 2px solid var(--bc-line-2); border-radius: 14px; background: var(--bc-panel-3); color: var(--bc-dim); font-size: 2rem; font-weight: 900; }
.pf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-photo-actions { display: grid; gap: 6px; }
.pf-consent { color: var(--bc-text) !important; font-weight: 600; }
.pf-danger { color: var(--bc-bad); }
.pf-privacy { padding: 10px 12px; border: 1px solid var(--bc-line); border-radius: 10px; background: var(--bc-panel-2); }
.pf-privacy summary { cursor: pointer; font-weight: 700; }
.pf-privacy dl { display: grid; gap: 6px; margin: 10px 0 2px; font-size: .88rem; }
.pf-privacy dt { color: var(--bc-text); font-weight: 700; }
.pf-privacy dd { margin: 0 0 4px; color: var(--bc-muted); }
.pf-preview { position: sticky; top: 70px; }
.pf-preview-body { display: grid; gap: 10px; padding: 14px; }
.pf-card-canvas { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.pf-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-landing { display: grid; padding: 34px; }
.pf-landing h1 { margin: 6px 0 12px; font-size: 2rem; }
.pf-landing-text { display: grid; gap: 12px; max-width: 640px; }
.pf-bullets { margin: 0; padding-left: 1.1rem; color: #d7d9de; }
.pf-bullets li { margin: 4px 0; }
.pf-steam { width: max-content; padding: 12px 22px; background: #1b2838 !important; border: 1px solid #66c0f4 !important; color: #fff !important; font-size: 1.05rem; }
.pf-note { margin: 0; color: var(--bc-muted); font-size: .88rem; }
.pf-error { margin: 0; color: var(--bc-bad); font-weight: 700; }
.pf-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 14px; padding: 20px; border-left: 5px solid var(--pf-accent, var(--bc-accent)); }
.pf-hero-photo { position: relative; flex: none; display: grid; place-items: center; width: 170px; height: 170px; border: 3px solid var(--pf-accent, var(--bc-accent)); border-radius: 18px; background: var(--bc-panel-3); color: var(--bc-dim); font-size: 3.4rem; font-weight: 900; }
.pf-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.pf-number { position: absolute; right: -12px; bottom: -12px; padding: 2px 12px; border-radius: 8px; background: var(--pf-accent, var(--bc-accent)); color: #fff; font-size: 1.6rem; font-weight: 900; }
.pf-hero-text { min-width: 0; }
.pf-hero-text h1 { margin: 2px 0; font-size: 2.2rem; letter-spacing: -.01em; }
.pf-team { color: var(--pf-accent, var(--bc-accent)); font-size: 1.1rem; font-weight: 800; filter: brightness(1.2); }
.pf-bio { max-width: 70ch; margin: 8px 0 0; color: #d7d9de; }
.pf-socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-social { padding: 3px 10px; border: 1px solid var(--bc-line-2); border-radius: 99px; color: var(--bc-text); font-size: .82rem; font-weight: 700; text-decoration: none; }
.pf-social:hover { border-color: var(--pf-accent, var(--bc-accent)); }
.pf-rig { margin-top: 8px; color: var(--bc-muted); font-size: .85rem; }
.pf-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pf-tile { padding: 12px 14px; border: 1px solid var(--bc-line); border-radius: 12px; background: var(--bc-panel); }
.pf-tile .k { color: var(--bc-dim); font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.pf-tile .v { font-size: 1.7rem; font-weight: 900; text-align: left; }
.pf-tile .s { color: var(--bc-muted); font-size: .78rem; }
.pf-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.pf-col { display: grid; gap: 14px; min-width: 0; }
.pf-list { margin: 0; padding: 0; list-style: none; }
.pf-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--bc-line); }
.pf-list li:last-child { border-bottom: 0; }
.pf-list a { color: var(--bc-text); font-weight: 700; }
.pf-list .bc-tag { margin-left: 8px; }
.pf-races td { vertical-align: middle; }

/* ---- telas menores ---- */
@media (max-width: 1600px) { .bc-tower .c-spd, .bc-tower .c-pit { display: none; } }
@media (max-width: 1280px) {
  .bc-grid { grid-template-columns: minmax(0, 1fr); }
  .bc-col-side { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .bc-col-side .bc-map-card { grid-row: span 3; }
}
@media (max-width: 980px) {
  .bc-bar, .bc-bar.with-join { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bc-cond { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--bc-line); }
  .bc-joincell { grid-column: 1 / -1; border-top: 1px solid var(--bc-line); border-left: 0; }
  .bc-joinbox.compact { flex-direction: row; align-items: center; }
  .bc-col-side { grid-template-columns: minmax(0, 1fr); }
  .bc-col-side .bc-map-card { grid-row: auto; }
  .bc-tower .c-sec, .bc-tower .c-pit { display: none; }
  .bc-lobby { grid-template-columns: minmax(0, 1fr); }
  .pf-edit, .pf-cols { grid-template-columns: minmax(0, 1fr); }
  .pf-preview { position: static; }
  .pf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bc-bar, .bc-bar.with-join { grid-template-columns: minmax(0, 1fr) auto; }
  .bc-stage { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; min-width: 0; padding: 8px 14px; }
  .bc-track .t { font-size: 1.2rem; }
  .bc-prog { min-width: 96px; padding: 8px 12px; border-right: 0; }
  .bc-prog .v { font-size: 1.5rem; }
  .bc-tower .c-gap, .bc-tower .c-best, .bc-tower .c-delta, .bc-tower .bc-sub { display: none; }
  .bc-tower td.c-name { max-width: 150px; }
  .bc-tower .bc-sub { max-width: 150px; }
  .bc-legend { display: none; }
  .bc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-stat:nth-child(-n+3) { border-top: 1px solid var(--bc-line); }
  .bc-stat:nth-child(-n+2) { border-top: 0; }
  .bc-stat:not(:nth-child(3n+1)) { border-left: 0; }
  .bc-stat:nth-child(2n) { border-left: 1px solid var(--bc-line); }
  .bc-tele { flex-wrap: wrap; }
  .bc-lobby-next .v { font-size: 1.6rem; }
  .bc-transport { flex-wrap: wrap; bottom: 6px; padding: 8px 10px; }
  .bc-timeline { order: 10; flex-basis: 100%; }
  .bc-time { min-width: 0; }
}
@media (max-width: 560px) {
  .bc-tower .c-lap { display: none; } /* a volta ja esta na barra da sessao */
  .bc-tower td, .bc-tower th { padding-left: 5px; padding-right: 5px; }
  .bc-tower td.c-name { max-width: 128px; }
  .bc-pos { min-width: 26px; height: 26px; }
  .bc-tower { font-size: .86rem; }
  .bc-bigpos { min-width: 64px; font-size: 2rem; }
  .pf-hero { flex-direction: column; align-items: flex-start; }
  .pf-hero-photo { width: 130px; height: 130px; }
  .pf-hero-text h1 { font-size: 1.7rem; }
  .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-landing { padding: 20px; }
  .pf-landing h1 { font-size: 1.5rem; }
  .pf-photo-row { flex-direction: column; align-items: flex-start; }
  .bc-transport .bc-skip, .bc-full { display: none; }
  .bc-short { display: inline; }
  .bc-time { flex: 1; text-align: left; }
}
