/* =====================================================================================================
   Felix Telemetry · sistema visual v3 "pintura de equipe" (11/11) — carrega depois do style.css em todas as páginas.
   As telas de dentro são o cockpit: noite petróleo por padrão (corrida é à noite, no segundo monitor) e um tema claro opcional
   (html[data-theme="light"], trocado no botão do topo e guardado no navegador). A cor da equipe (--accent) manda aqui dentro;
   o laranja Felix fica na marca. Letra: Archivo (larga nos títulos, como adesivo de patrocinador; normal no texto).
   Versões antigas: data/backup-antes-repaginada-1011/ (premium.css = v1, premium-v2.css = v2).
   ===================================================================================================== */
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Exo 2'; src: url('/fonts/Exo2.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url('/fonts/Exo2-Italic.ttf') format('truetype'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* marca */
  --felix: #ff6a00;
  --petro: #0e2a33;
  --petro-2: #16434f;
  /* noite petróleo (padrão das telas de dentro) */
  --bg: #0c1b21;
  --bg-2: #0f2128;
  --panel: #122830;
  --panel-2: #173039;
  --panel-3: #1d3a44;
  --line: rgba(176,220,232,.10);
  --line-2: rgba(176,220,232,.17);
  --line-soft: rgba(176,220,232,.06);
  --hover: rgba(176,220,232,.06);
  --text: #eef4f5;
  --text-2: #c2d1d5;
  --muted: #87a0a7;
  --faint: #5b7379;
  --sombra: 0 18px 40px -16px rgba(2,10,13,.8);
  --topo: #0a171c;
  /* tipografia */
  --sans: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --disp: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --larga: 118%;
  --marca: 'Exo 2', 'Archivo', sans-serif;  /* só no logotipo */
  /* forma: cantos curtos, de carenagem */
  --r: 8px; --r-s: 5px; --r-xs: 3px;
  --sh: none;
  --glass: none;
  --anel: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  color-scheme: dark;
}
/* tema claro: paddock de dia (branco frio, nada de creme) */
html[data-theme="light"] {
  --bg: #eef2f4;
  --bg-2: #f6f8f9;
  --panel: #ffffff;
  --panel-2: #f1f4f6;
  --panel-3: #e4eaed;
  --line: rgba(14,42,51,.11);
  --line-2: rgba(14,42,51,.19);
  --line-soft: rgba(14,42,51,.07);
  --hover: rgba(14,42,51,.045);
  --text: #0e2228;
  --text-2: #33494f;
  --muted: #5d737a;
  --faint: #8a9ca1;
  --sombra: 0 18px 40px -20px rgba(14,42,51,.35);
  --topo: #ffffff;
  color-scheme: light;
}

/* ---------- base ---------- */
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'kern' 1; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text); }
* { scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.mono, .num, td, th, time { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- tipografia: títulos largos, como letreiro de carro ---------- */
h1, h2, h3, h4 { font-family: var(--disp); color: var(--text); text-wrap: balance; }
h1 { font-weight: 800; font-stretch: var(--larga); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.02em; margin: 6px 0 6px; font-style: normal; text-transform: none; }
h1:not([id]) { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
h2 { font-weight: 700; font-stretch: 108%; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 16px; }
p, li, dd, figcaption { text-wrap: pretty; }
.sub, p.sub { color: var(--muted); font-size: 15px; max-width: 760px; }
.label, h2.label { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.big { font-family: var(--disp); font-weight: 800; font-stretch: 110%; font-style: normal; }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }

/* ---------- topo: faixa de pintura embaixo (cor da equipe + filete) ---------- */
.topbar { position: sticky; top: 0; z-index: 200; background: var(--topo) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-bottom: 0 !important; box-shadow: 0 3px 0 var(--accent), 0 5px 0 var(--topo), 0 6px 0 color-mix(in srgb, var(--accent) 45%, transparent) !important; padding: 0 22px; min-height: 58px; gap: 14px; margin-bottom: 6px; }
.topbar::after { content: none !important; }
.brand { font-family: var(--marca); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-size: 17px; color: var(--text); }
.brand span { color: var(--accent); }
.brand-logo { border-radius: 6px; box-shadow: none !important; }
.topbar a:not(.brand):not(.room-chip), .tv-top nav a { border: 0 !important; background: none !important; border-radius: 0 !important; padding: 18px 2px 16px !important; margin: 0 8px; color: var(--muted) !important; font-weight: 600; font-size: 14px;
  box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .15s; }
.topbar a:not(.brand):not(.room-chip):hover, .tv-top nav a:hover { color: var(--text) !important; }
.topbar a[aria-current="page"], .tv-top a[aria-current="page"] { background: none !important; color: var(--text) !important; box-shadow: inset 0 -3px 0 var(--accent) !important; }
.nav-g-btn { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 18px 4px 16px !important; color: var(--muted) !important; font-family: var(--sans); font-weight: 600; font-size: 14px;
  box-shadow: inset 0 -3px 0 transparent !important; transition: color .15s, box-shadow .15s; }
.nav-g-btn:hover, .nav-g-btn[aria-expanded="true"] { color: var(--text) !important; }
.nav-g-btn.cur { background: none !important; color: var(--text) !important; box-shadow: inset 0 -3px 0 var(--accent) !important; }
.nav-g-btn .car { opacity: .55; }
.mainnav.grouped { gap: 18px; }
.nav-menu { background: var(--panel) !important; backdrop-filter: none !important; border: 1px solid var(--line-2) !important; border-radius: var(--r) !important; padding: 6px !important;
  box-shadow: var(--sombra) !important; animation: menuEntra .14s ease-out; }
@keyframes menuEntra { from { opacity: 0; transform: translateY(-3px); } }
.mainnav .nav-menu a.nav-item { border-radius: var(--r-xs) !important; padding: 9px 11px !important; margin: 0 !important; box-shadow: none !important; color: var(--text-2) !important; font-size: 14px; transition: background .12s, color .12s; }
.mainnav .nav-menu a.nav-item:hover { background: var(--hover) !important; color: var(--text) !important; }
.mainnav .nav-menu a.nav-item[aria-current="page"] { background: var(--hover) !important; color: var(--text) !important; box-shadow: inset 3px 0 0 var(--accent) !important; }
.mainnav .nav-menu a.nav-item .ico { color: var(--faint); }
.mainnav .nav-menu a.nav-item:hover .ico, .mainnav .nav-menu a.nav-item[aria-current] .ico { color: var(--accent); }
.bell-btn, .tema-btn { border: 1px solid var(--line) !important; background: none !important; border-radius: var(--r-s) !important; color: var(--text-2); transition: border-color .15s, color .15s; }
.bell-btn:hover, .tema-btn:hover { border-color: var(--line-2) !important; color: var(--text); }
.tema-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.tema-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-menu { background: var(--panel) !important; backdrop-filter: none !important; border-radius: var(--r) !important; border: 1px solid var(--line-2) !important; }
.bell-n { box-shadow: 0 0 0 2px var(--topo); }

/* ---------- superfícies ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; color: var(--text); }
details.panel > summary { font-family: var(--disp); font-weight: 700; }
dialog { background: var(--panel); color: var(--text); border-radius: 10px; border: 1px solid var(--line-2); box-shadow: var(--sombra); }
dialog::backdrop { background: rgba(4,12,15,.7); backdrop-filter: none; }
hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- campos ---------- */
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea) {
  background-color: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-s); font-family: var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea):hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: var(--anel); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); }
select option { background: var(--panel); color: var(--text); }
::placeholder { color: var(--faint); }

/* ---------- botões: chapados, cantos curtos, letra um pouco larga ---------- */
button { font-family: var(--sans); transition: background-color .15s, border-color .15s, color .15s, filter .15s, transform .08s; }
button:not(:disabled):active, .bt:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
html body :is(.btn-primary, .btn, .bt-1, .ft-go, .gr-btn:not(.alt), .rv-btn:not(.alt), .pg-btn:not(.alt), .indq-copy, .cookie-notice button, .login button[type=submit], .login form > button:not([type=button])) {
  background: var(--accent) !important; color: var(--accent-ink, #fff) !important; border: 0 !important;
  border-radius: var(--r-s) !important; font-family: var(--sans) !important; font-weight: 700 !important; font-stretch: 108%; letter-spacing: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.22) !important; filter: none; cursor: pointer;
}
html body :is(.btn-primary, .btn, .bt-1, .ft-go, .gr-btn:not(.alt), .rv-btn:not(.alt), .pg-btn:not(.alt), .indq-copy, .cookie-notice button, .login button[type=submit], .login form > button:not([type=button])):hover { filter: brightness(1.08); transform: none; }
html body :is(.bt-2, .gh, .ghost, .ghost-btn, .btn-link, .gr-btn.alt, .rv-btn.alt, .pg-btn.alt, .mini, .cmp-btn, .nav-btn) {
  background: var(--panel-2) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-s) !important;
  font-family: var(--sans) !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer;
}
html body :is(.bt-2, .gh, .ghost, .ghost-btn, .btn-link, .gr-btn.alt, .rv-btn.alt, .pg-btn.alt, .mini, .cmp-btn, .nav-btn):hover { background: var(--panel-3) !important; border-color: color-mix(in srgb, var(--text) 30%, transparent) !important; }
html body :is(.danger, .ghost.danger) { color: #ff7a6e !important; border-color: rgba(255,90,80,.38) !important; background: transparent !important; }
html body :is(.danger, .ghost.danger):hover { background: rgba(255,90,80,.08) !important; }
.room-chip { border-radius: var(--r-s); border: 1px solid var(--line); background: none; color: var(--text-2); }
.room-chip:hover { border-color: var(--line-2); color: var(--text); }

/* ---------- tabelas ---------- */
:where(table thead th) { font-family: var(--sans); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; color: var(--muted); }
.doc-table th { background: var(--panel-2); }
.doc-table th, .doc-table td { border-color: var(--line); }
tbody tr { transition: background-color .12s; }
:where(tbody tr:hover > td) { background-color: var(--hover); }

/* ---------- login antigo / documentos ---------- */
.login { background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: var(--sombra) !important; backdrop-filter: none; }
.login h1 { font-style: normal; text-transform: none; font-weight: 800; }
.login-logo { box-shadow: none; }
.doc h1 { font-style: normal; text-transform: none; font-weight: 800; font-size: 32px; }
.doc h2 { font-family: var(--disp); font-weight: 700; }
.doc code { background: var(--panel-2); }

/* ---------- avisos, rodapé, carregando ---------- */
.toast { background: var(--panel-2); color: var(--text); backdrop-filter: none; border-radius: var(--r); border: 1px solid var(--line-2); }
.cookie-notice { background: var(--panel) !important; color: var(--text) !important; backdrop-filter: none; border: 1px solid var(--line-2) !important; border-radius: var(--r) !important; box-shadow: var(--sombra) !important; }
.site-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; } .site-footer a:hover { color: var(--text); }
.skel { background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; }
.demo-bar { background: var(--felix); }

/* ---------- detalhes do produto ---------- */
.tyre { box-shadow: none; }
.cbadge, .lapst { border-radius: var(--r-xs); }
.stream { border-radius: var(--r); border-color: var(--line-2); }
.streams-bar, .streams-pop { border-radius: var(--r); background: var(--panel); backdrop-filter: none; border: 1px solid var(--line); }

/* ---------- indique e ganhe: faixa na cor da equipe ---------- */
.indq { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; padding: 14px 18px; border-radius: var(--r); position: relative;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.indq-ic { display: none !important; }
.indq-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.indq-tx > b { font-family: var(--disp); font-size: 16px; font-weight: 700; font-stretch: 108%; }
.indq-tx span { color: var(--text-2); font-size: 13.5px; }
.indq-acts { display: flex; gap: 8px; align-items: center; }
.indq-copy { padding: 9px 14px; font: inherit; cursor: pointer; white-space: nowrap; }
.indq-x { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 6px; }
@media (max-width: 640px) { .indq { flex-wrap: wrap; } .indq-acts { width: 100%; } .indq-copy { flex: 1; } }

/* selo do jogo nos cartões do Ao vivo */
.jogo { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: var(--r-xs); font-family: var(--sans); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; vertical-align: 2px; }
.jogo.f1 { background: rgba(255,106,0,.12); color: #ff9d57; border: 1px solid rgba(255,138,0,.3); }
.jogo.lmu { background: rgba(31,182,255,.12); color: #5cc6f5; border: 1px solid rgba(31,182,255,.32); }

/* ---------- camada que acerta os enfeites espalhados nas páginas (itálico, sombra no texto, vidro, cápsulas) ---------- */
html body *:not(.brand):not(.brand *):not(.lp-brand):not(.lp-brand *):not(em):not(.it) { font-style: normal !important; }
html body * { text-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body :is(h1, h2, h3, h4, h5, .big) { font-family: var(--disp); }
html body button:not(.nav-g-btn):not(.toast-x):not(.indq-x):not(.eye):not(.bell-btn):not(.cmp-x):not(.ft-eye) { border-radius: var(--r-s); }
html body :is(.chip, .pill, .tag, .badge, .kick, .seg, .seg button, [class*="pill"], [class*="chip"]) { border-radius: var(--r-xs) !important; }

/* ---------- base de interface ---------- */
h1, h2, h3, h4, .w-title, summary { text-wrap: balance; }
.cookie-notice { bottom: max(16px, env(safe-area-inset-bottom)); }
.toasts { bottom: max(18px, env(safe-area-inset-bottom)); right: max(18px, env(safe-area-inset-right)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- telas internas: cabeçalho da página ---------- */
html body main.wrap > h1:first-child, html body main > h1:first-child { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; font-stretch: var(--larga); letter-spacing: -.025em; line-height: 1.02; margin: 30px 0 10px; }
html body main.wrap > h1:first-child + p.sub, html body main > h1:first-child + p.sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 760px; margin: 0 0 26px; }
html body .indq { border-radius: var(--r) !important; }
html body :is(.panel, .card, .box, .cp-box, section.panel) { border-radius: var(--r); }
/* gradientes decorativos que sobraram: superfícies lisas (a cor da equipe continua nos detalhes) */
html body .race-btn { background: var(--panel) !important; color: var(--text); }
html body .race-btn.on, html body .race-btn[aria-current], html body .race-btn.sel { background: var(--panel-2) !important; box-shadow: inset 3px 0 0 var(--accent) !important; }
html body .ersbox { background: var(--panel) !important; border-radius: var(--r) !important; }
html body .ers-seg button[aria-selected="true"] { background: var(--accent) !important; color: #fff !important; box-shadow: none !important; }
html body .f-head { background: none !important; }
html body .cal-hd, html body .cal-head { background: color-mix(in srgb, var(--accent) 10%, var(--panel)) !important; }
html body .ev:not(.done) { background: var(--accent) !important; }
html body .ev.done { background: rgba(63,207,122,.16) !important; }
html body table.cls tr.ert td { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
html body .next { background: color-mix(in srgb, var(--accent) 14%, var(--panel)) !important; border-color: color-mix(in srgb, var(--accent) 40%, transparent) !important; border-radius: var(--r) !important; }
html body .cal { border-radius: var(--r) !important; }

/* ---------- tema claro: o que as páginas pintavam de preto à mão ---------- */
html[data-theme="light"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea) { background: var(--bg-2) !important; color: var(--text) !important; border-color: var(--line-2) !important; }
html[data-theme="light"] body select option { background: #fff !important; color: var(--text) !important; }
html[data-theme="light"] body :is(.av, .pod .ph, .mate .ini, .photo .in) { background: var(--panel-3) !important; color: var(--text) !important; border-color: var(--line-2) !important; }
html[data-theme="light"] body :is(.day.out, .f-foot, .ers-seg, .ers-card, .kpis > div, .lm-kpi > div, .count div, .tel-km, .conf-me) { background: var(--panel-2) !important; border-color: var(--line) !important; }
html[data-theme="light"] body #form { background: var(--panel) !important; }
html[data-theme="light"] body .keybox code { background: var(--panel-2) !important; color: var(--text) !important; }
html[data-theme="light"] dialog::backdrop { background: rgba(14,42,51,.45); }
/* o topo do Perfil é a arte da equipe: continua escuro, com letra clara */
html[data-theme="light"] body .hero:has(.photo) { color: #fff; background-color: #0d1418; }
html[data-theme="light"] body .hero:has(.photo) :is(h1, h2, p, span, .muted, b) { color: #fff; }
html[data-theme="light"] body .hero:has(.photo) .muted, html[data-theme="light"] body .hero:has(.photo) p { color: #d2dadd; }
html[data-theme="light"] body .must { color: var(--text); }
/* topo do Dashboard TV: uma linha só (a letra larga empurrava o menu para baixo) */
html body .tv-top { flex-wrap: nowrap !important; background: var(--topo) !important; gap: 14px !important; }
html body .tv-top .session { font-size: 18px !important; font-stretch: 112%; letter-spacing: 0 !important; white-space: nowrap; }
html body .tv-top .track { white-space: nowrap; font-size: 14px; }
html body .tv-top :is(nav, .mainnav) { flex-wrap: nowrap; white-space: nowrap; }
html body .tv-top :is(nav a, .nav-g-btn) { margin: 0 3px !important; font-size: 13px !important; }
html body .tv-top .tv-lap .big { font-size: 28px; }
/* margem padrão das páginas que não definem a própria (ex.: Central da Liga) */
:where(main.wrap) { max-width: 1280px; margin: 0 auto; padding: 0 24px 48px; }

/* ---------- ícones de tempo desenhados (no lugar dos emojis) ---------- */
.wx-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; flex: none; }
.wx-chip .wx-ico { display: inline-flex; color: var(--text-2); font-size: 0; }
.wx-chip.talvez .wx-ico { color: var(--yellow); }
.wx-chip.chuva .wx-ico { color: #3fa9ff; }
.rain-w .wx-svg, #nowIc .wx-svg { width: 30px; height: 30px; color: var(--text-2); }
.ic .wx-svg { width: 22px; height: 22px; }

/* ---------- topo da Tabela refinado (11/11): logo em adesivo de capacete, caixas alinhadas ---------- */
html body .wallhead { gap: 10px; padding: 10px 14px 0; }
html body .wallhead > * { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; }
html body .wh-logo { gap: 14px; }
html body .wh-logo img, html body .wh-logotext { width: 64px; height: 64px; flex: none; border-radius: 50%; padding: 3px; background: var(--accent); object-fit: cover;
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px color-mix(in srgb, var(--text) 18%, transparent); max-width: none; }
html body .wh-logotext { display: grid; place-items: center; padding: 0; color: #fff; font-size: 18px; font-weight: 850; font-stretch: 118%; letter-spacing: 0; line-height: 1; }
html body .wh-logotext[hidden], html body .wh-logo img[hidden] { display: none; }
html body .wh-session { font-size: 12.5px; font-weight: 700; font-stretch: 112%; letter-spacing: .06em; color: var(--muted); }
html body .wh-lap { font-size: 30px; font-weight: 850; font-stretch: 118%; line-height: 1.05; }
html body .wh-duel .label { margin-bottom: 4px; }
html body .duel-rows { gap: 3px; font-size: 13.5px; }
html body .duel-rows .mono { font-size: 15.5px; }
html body .wx-chip { border-radius: var(--r-s); background: var(--panel-2); border: 1px solid var(--line); padding: 6px 12px; gap: 8px; }
html body .wx-chip.chuva { border-color: rgba(63,169,255,.55); }
html body .wx-chip .wx-t { color: var(--text-2); }
html body .wx-lap { border-radius: var(--r-s); font-family: var(--sans); font-weight: 600; }
html body .wh-pit { display: flex; flex-direction: column; justify-content: center; text-align: right; }
html body .wh-pit #pitWindow { font-size: 28px; font-weight: 850; font-stretch: 115%; line-height: 1.05; color: #ff8a1f; }

/* ---------- Ao vivo: cartão do piloto (11/11) ---------- */
html body .room { border-radius: var(--r); padding: 16px 18px 16px 22px; display: flex; flex-direction: column; gap: 12px; }
html body .room::before { width: 4px; }
.rc-topo { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.rc-foto { width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: var(--team, var(--accent)); flex: none; }
.rc-foto img, .rc-foto span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: var(--bg-2); color: var(--text); font-weight: 850; font-stretch: 115%; font-size: 18px; }
html body .room .who { font-size: 18px; font-weight: 800; font-stretch: 108%; gap: 7px; flex-wrap: wrap; line-height: 1.2; }
html body .room .where { margin: 3px 0 0; font-size: 13px; }
.rc-pos { text-align: right; }
.rc-pos b { display: block; font-size: 30px; line-height: 1; font-weight: 850; font-stretch: 118%; }
.rc-pos small { font-size: 12px; color: var(--muted); }
.rc-meio { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.rc-pneu { display: inline-flex; align-items: center; gap: 8px; }
.rc-pneu i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--t); color: var(--t); background: #0a1418; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 10px; }
.rc-chuva { display: inline-flex; align-items: center; gap: 6px; color: #5cb8ff; font-weight: 700; }
.rc-chuva .wx-svg { color: #5cb8ff; }
.rc-base { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.rc-base i { display: block; height: 100%; background: var(--team, var(--accent)); border-radius: 3px; transition: width .6s ease-out; }
.rc-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 5px; font-variant-numeric: tabular-nums; }
.rc-lbl.solo { margin: 0; }
html body .room .watching { position: static; font-size: 12px; color: var(--muted); margin-top: -4px; }
html body .room .acts { margin-top: 2px; }
/* ninguém correndo */
html body .empty.vazio { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; text-align: left; padding: 26px 28px; border: 2px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.empty.vazio svg { width: 120px; height: 76px; fill: none; stroke: var(--faint); stroke-width: 2; }
.empty.vazio svg circle { fill: var(--felix); stroke: none; }
.empty.vazio b { display: block; font-size: 18px; font-weight: 800; font-stretch: 112%; color: var(--text); margin-bottom: 6px; }
.empty.vazio p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.empty.vazio .btn-link { display: inline-flex; padding: 9px 16px; text-decoration: none; }
@media (max-width: 560px) { html body .empty.vazio { grid-template-columns: 1fr; } }

/* ---------- menu "console do volante" (11/11) ----------
   Esquerda: logo em adesivo de capacete + nome da equipe. Meio: os grupos num console escuro, ícone em cima e nome embaixo.
   Direita: luzes de giro (pilotos ao vivo), tema, avisos e o perfil. */
html body .topbar { min-height: 76px; padding: 0 22px; gap: 16px; }
html body .topbar .brand { gap: 0; font-size: 0; } /* a sigla em texto sai: o nome da equipe vem ao lado */
html body .topbar .brand .brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; padding: 2px; background: var(--accent);
  box-shadow: 0 0 0 2px var(--topo), 0 0 0 4px color-mix(in srgb, var(--text) 18%, transparent) !important; }
html body .topbar .brand span { display: none; }
.brand-eq { display: flex; flex-direction: column; line-height: 1.15; margin-left: -4px; min-width: 0; }
.brand-eq b { font-weight: 800; font-stretch: 112%; font-size: 15.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.brand-eq small { font-size: 12.5px; color: var(--muted); }
html body .topbar .spacer { flex: 1; }
html body .topbar .mainnav.grouped { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; }
html body .topbar .mainnav .console { display: flex; gap: 4px; padding: 5px; margin: 0 auto; border-radius: 14px; background: color-mix(in srgb, var(--bg) 60%, #000); border: 1px solid var(--line-2); box-shadow: inset 0 2px 8px rgba(0,0,0,.45); }
html[data-theme="light"] body .topbar .mainnav .console { background: var(--panel-2); box-shadow: inset 0 2px 6px rgba(14,42,51,.12); }
html body .topbar .console .nav-group { position: relative; }
html body .topbar .console :is(.nav-g-btn, .nav-solo) { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 104px; height: 56px; padding: 0 12px !important; margin: 0 !important;
  border-radius: 10px !important; color: var(--muted) !important; font-size: 12.5px !important; font-weight: 650; box-shadow: none !important; text-decoration: none; position: relative; transition: background .15s, color .15s; }
html body .topbar .console :is(.nav-g-btn, .nav-solo) .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .topbar .console :is(.nav-g-btn, .nav-solo):hover, html body .topbar .console .nav-g-btn[aria-expanded="true"] { color: var(--text) !important; background: var(--hover) !important; }
html body .topbar .console :is(.nav-g-btn.cur, .nav-solo[aria-current="page"]) { background: var(--panel-2) !important; color: var(--text) !important; box-shadow: inset 0 -3px 0 var(--accent), 0 1px 0 rgba(255,255,255,.05) !important; }
html body .topbar .console .lbl { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
html body .topbar .console .lbl .jogo { font-size: 10px; padding: 1px 6px; }
html body .topbar .console .car { font-size: 9px; opacity: .5; }
html body .topbar .console .news-dot { position: absolute; top: 9px; right: 30px; }
html body .topbar .console .nav-menu { top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 230px; }
html body .topbar .mainnav .nav-profile { margin-left: 0; }
/* luzes de giro */
.rpm { display: inline-flex; gap: 3px; margin-right: 4px; cursor: default; }
.rpm i { width: 7px; height: 7px; border-radius: 50%; background: var(--panel-3); transition: background .3s; }
.rpm i.g { background: #3fdc7e; } .rpm i.r { background: #ff3b3b; } .rpm i.b { background: #3fa9ff; }
/* tela estreita: o console vira só ícones */
@media (max-width: 1180px) { html body .topbar .console :is(.nav-g-btn, .nav-solo) { min-width: 64px; } html body .topbar .console .lbl { font-size: 11px; } .brand-eq small { display: none; } .rpm { display: none; } }
@media (max-width: 860px) { .brand-eq { display: none; } html body .topbar .console .lbl { display: none; } html body .topbar .console :is(.nav-g-btn, .nav-solo) { min-width: 48px; height: 46px; } }
/* no Dashboard TV o topo é baixo: console compacto, sem ícones */
html body .tv-top .console { display: flex; gap: 2px; }
html body .tv-top .console .ico { display: none; }
html body .topbar .console [hidden] { display: none !important; }
html body .topbar .console:not(:has(> :not([hidden]))) { display: none; } /* convidado: sem nenhum item, o console some */
html body .topbar .nav-profile .nav-g-btn { flex-direction: row !important; height: auto; }
html body .topbar .nav-profile .lbl { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
/* telas da sala (Tabela, Radar...): o topo já tem Tabela/TV/Radar, então o console fica compacto e o nome da equipe sai */
html body .topbar:has(.roomnav) { min-height: 64px; }
html body .topbar:has(.roomnav) .brand-eq { display: none; }
html body .topbar:has(.roomnav) .console :is(.nav-g-btn, .nav-solo) { flex-direction: row; height: 38px; min-width: 0; gap: 7px; padding: 0 12px !important; font-size: 13px !important; }
html body .topbar:has(.roomnav) .console :is(.nav-g-btn, .nav-solo) .ico { width: 16px; height: 16px; }
html body .topbar:has(.roomnav) .console { padding: 3px; border-radius: 10px; }
html body .topbar:has(.roomnav) .console :is(.nav-g-btn, .nav-solo) { border-radius: 7px !important; }
html body .topbar .roomnav { flex-wrap: nowrap; white-space: nowrap; }
html body .topbar .room-chip + .live-dot + span, html body .topbar #trackInfo { white-space: nowrap; }
@media (max-width: 1300px) { html body .topbar:has(.roomnav) .console .lbl { display: none; } html body .topbar:has(.roomnav) .rpm { display: none; } }

/* ---------- Ao vivo com movimento (11/11) ---------- */
/* faixa de eventos, como na TV */
.ticker { position: relative; height: 42px; display: flex; align-items: center; overflow: hidden; background: color-mix(in srgb, var(--bg) 70%, #000); border-bottom: 1px solid var(--line); }
.ticker[hidden] { display: none; }
.tk-fixo { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--accent); color: #fff; font-weight: 850; font-stretch: 115%; font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; flex: none; }
.tk-fixo i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: tkPisca 1.2s infinite; }
@keyframes tkPisca { 50% { opacity: .25; } }
.tk-trilha { display: flex; gap: 48px; white-space: nowrap; padding-left: 40px; font-size: 14px; color: var(--text-2); animation: tkCorre 24s linear infinite; }
.tk-trilha b { color: var(--text); }
.ticker:hover .tk-trilha { animation-play-state: paused; }
@keyframes tkCorre { to { transform: translateX(-50%); } }
.verde { color: #3fdc7e; } .vermelho { color: #ff6b6b; } .roxo { color: #c58cff; } .azul { color: #5cb8ff; }
/* riscos de velocidade atrás do título */
.av-hero { position: relative; isolation: isolate; padding: 6px 0 4px; margin: 24px 0 18px; }
.av-hero h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; font-stretch: var(--larga); letter-spacing: -.025em; line-height: 1.02; margin: 0 0 10px; }
.av-hero .sub { margin: 0; }
.av-hero .risco { position: absolute; right: -45%; height: 3px; border-radius: 2px; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, color-mix(in srgb, var(--accent) 40%, #fff) 85%, transparent); animation: avRisco linear infinite; }
@keyframes avRisco { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: .85; } 70% { opacity: .55; } 100% { transform: translateX(-190vw); opacity: 0; } }
main.wrap:has(.av-hero) { overflow-x: clip; }
/* luzes de giro no topo do cartão */
.rc-leds { position: absolute; left: 22px; right: 18px; top: 0; height: 5px; display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; }
.rc-leds i { border-radius: 0 0 3px 3px; background: var(--panel-3); transition: background .12s; }
.rc-leds i.g { background: #3fdc7e; } .rc-leds i.r { background: #ff3b3b; } .rc-leds i.b { background: #3fa9ff; }
.rc-leds.cheio i { background: #3fa9ff; animation: tkPisca .25s infinite; }
.rc-agora { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.rc-agora .rc-vel { color: var(--text); font-weight: 750; min-width: 3ch; text-align: right; }
.rc-marcha { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 900; font-size: 14px; color: var(--text); }
/* a posição rola quando muda */
.rc-pos .rolo { display: block; height: 30px; overflow: hidden; }
.rc-pos .rolo b { display: block; height: 30px; line-height: 30px; }
.rc-pos .rolo.sobe b, .rc-pos .rolo.desce b { animation: rcRola .7s cubic-bezier(.2,.9,.3,1.2) forwards .15s; }
@keyframes rcRola { to { transform: translateY(-30px); } }
.rc-pos .rolo.sobe b:last-child { color: #3fdc7e; } .rc-pos .rolo.desce b:last-child { color: #ff6b6b; }
.rc-ganhou { display: block; font-style: normal; font-size: 11.5px; font-weight: 800; white-space: nowrap; animation: rcGanhou .4s ease-out both .5s; }
@keyframes rcGanhou { from { opacity: 0; transform: translateY(4px); } }
/* a volta atual enche e os setores acendem */
.rc-base { position: relative; }
.rc-dentro { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--team, var(--accent)) 55%, transparent); transform-origin: left; transform: scaleX(0); transition: transform .7s linear; text-decoration: none; }
.rc-sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.rc-sets span { height: 4px; border-radius: 2px; background: var(--panel-3); transition: background .3s; }
.rc-sets span.feito { background: var(--team, var(--accent)); }
.rc-sets span.agora { background: color-mix(in srgb, var(--team, var(--accent)) 45%, var(--panel-3)); animation: tkPisca 1s infinite; }
@media (prefers-reduced-motion: reduce) { .tk-trilha, .av-hero .risco { animation: none; } .av-hero .risco { display: none; } }
/* Setups: o mapa de bateria se pinta na pista com o carro passando (11/11), uma vez ao aparecer */
.ers-svg .ers-run { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ersPinta var(--dt) linear forwards var(--t0); }
@keyframes ersPinta { to { stroke-dashoffset: 0; } }
.ers-svg .ers-carro { offset-rotate: 0deg; offset-distance: 0%; opacity: 0; animation: ersCarro var(--volta) linear forwards; }
@keyframes ersCarro { 0% { offset-distance: 0%; opacity: 1; } 96% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ers-svg .ers-run { animation: none; stroke-dashoffset: 0; } .ers-svg .ers-carro { display: none; } }
/* Central da Liga: aviso de que a configuração é só da sua transmissão quando o piloto escolhido é outro */
.hc-so-seu { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-s); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text); font-size: 14px; line-height: 1.5; }
/* menu do topo no meio da tela de verdade (11/11): antes ficava no meio do espaço que sobrava entre a marca e o perfil */
@media (min-width: 1181px) { html body .topbar .mainnav .console { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; } html body .topbar .mainnav .console + * { margin-left: auto; }
  /* telas da sala (Tabela, Dashboard TV, Radar): o menu fica no fluxo, senão cobre os botões da sala (12/11) */
  html body .topbar:has(.roomnav) .mainnav .console { position: static; transform: none; margin: 0 auto; } html body .topbar:has(.roomnav) .mainnav .console + * { margin-left: 0; } }
