@font-face { font-family: "Shoulders"; src: url(../fontes/big-shoulders-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url(../fontes/big-shoulders-display-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url(../fontes/big-shoulders-display-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fontes/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fontes/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fontes/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BarlowC"; src: url(../fontes/barlow-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "BarlowC"; src: url(../fontes/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BarlowC"; src: url(../fontes/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --fundo: #09090a;
  --grafite: #111214;
  --grafite-2: #17181b;
  --linha: rgba(236, 235, 231, .12);
  --linha-forte: rgba(236, 235, 231, .24);
  --texto: #ecebe7;
  --apagado: #9a9893;
  --papaya: #ff8000;
  --papaya-claro: #ffa040;
  --acel: #3cff9e;
  --freio: #ff3045;
  --alivio: #ffc93a;
  --real: #6fd3ff;
  --display: "Shoulders", "BarlowC", sans-serif;
  --cond: "BarlowC", "Barlow", sans-serif;
  --corpo: "Barlow", system-ui, sans-serif;
  --seco: cubic-bezier(.19, 1, .22, 1);
  --corte: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--fundo); color: var(--texto); }
body { font-family: var(--corpo); font-size: 16px; line-height: 1.45; overflow: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--papaya); color: #120700; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--papaya); outline-offset: 3px; }
img { display: block; -webkit-user-drag: none; }
[hidden] { display: none !important; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--papaya); color: #120700; padding: .6em 1em; font-weight: 600; }
.pular:focus { top: 12px; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: var(--linha-forte); }
*::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--linha-forte) transparent; }

/* ---------- topo ---------- */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 22px 32px; pointer-events: none; }
.topo > * { pointer-events: auto; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .02em; line-height: 1; }
.marca svg { width: 34px; height: 24px; fill: none; stroke: var(--papaya); stroke-width: 4.5; stroke-linecap: square; stroke-linejoin: miter; }
.trilha { display: flex; gap: 6px; font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--apagado); }
.trilha button { color: var(--apagado); text-transform: uppercase; letter-spacing: .08em; transition: color .25s; }
.trilha button:hover { color: var(--texto); }
.trilha .sep { opacity: .4; }
.trilha .atual { color: var(--texto); }

.tela { position: fixed; inset: 0; }

/* ---------- abertura ---------- */
.abertura { display: flex; background: #000; overflow: hidden; }
.lado { position: relative; flex: 1 1 50%; height: 100%; overflow: hidden; text-align: left; transition: flex-grow .9s var(--seco); }
.lado[data-serie="f1"] { clip-path: polygon(0 0, 100% 0, calc(100% - 9vw) 100%, 0 100%); margin-right: -4.5vw; z-index: 1; }
.lado[data-serie="wec"] { clip-path: polygon(9vw 0, 100% 0, 100% 100%, 0 100%); margin-left: -4.5vw; }
.abertura:hover .lado { flex-grow: .8; }
.abertura .lado:hover { flex-grow: 1.35; }
.lado-foto { position: absolute; inset: 0; }
.lado-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--seco), filter .9s var(--seco); filter: grayscale(.55) brightness(.5) contrast(1.15); }
.lado[data-serie="f1"] .lado-foto img { object-position: 38% 55%; }
.lado[data-serie="wec"] .lado-foto img { object-position: 30% 50%; }
.lado:hover .lado-foto img, .lado:focus-visible .lado-foto img { transform: scale(1.0); filter: grayscale(0) brightness(.78) contrast(1.08); }
.lado-veu { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(9,9,10,.55) 0%, rgba(9,9,10,0) 30%, rgba(9,9,10,0) 45%, rgba(9,9,10,.92) 100%); }
.lado-veu::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; opacity: .6; }
.lado-texto { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 9vw 9vh 5vw; display: flex; flex-direction: column; gap: 14px; }
.lado-cat { margin-bottom: .6em; }
.lado[data-serie="wec"] .lado-texto { padding-left: 13vw; padding-right: 4vw; }
.lado-cat { font-family: var(--cond); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--papaya); }
.lado-titulo { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 9.6vw, 176px); line-height: .82; letter-spacing: -.01em; text-transform: uppercase; }
.lado-sub { max-width: 34ch; color: #d4d2cc; font-size: 17px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--seco), transform .7s var(--seco); }
.lado:hover .lado-sub, .lado:focus-visible .lado-sub { opacity: 1; transform: none; }
.lado-cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 6px; padding: 13px 20px 13px 22px; background: var(--papaya); color: #120700; font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .3s, color .3s; }
.lado-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transition: transform .45s var(--seco); }
.lado:hover .lado-cta { background: var(--texto); }
.lado:hover .lado-cta svg { transform: translateX(4px); }
.abertura-tese { position: absolute; z-index: 3; left: 50%; top: 22px; transform: translateX(-50%); font-family: var(--cond); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--texto); white-space: nowrap; pointer-events: none; padding-top: 6px; }
.creditos { position: absolute; z-index: 3; right: 18px; bottom: 10px; font-size: 11px; color: rgba(236,235,231,.45); }
.creditos a { color: inherit; text-underline-offset: 2px; }
.creditos a:hover { color: var(--texto); }
.corte { position: fixed; inset: 0; z-index: 45; pointer-events: none; background: var(--papaya); clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }

/* ---------- grid ---------- */
.grid { overflow-y: auto; padding: 96px 32px 48px; background:
  radial-gradient(1200px 600px at 80% -10%, rgba(255,128,0,.10), transparent 60%), var(--fundo); }
.grid-cabeca { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 40px; max-width: 1640px; margin: 0 auto 28px; }
.grid-titulo { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 112px); line-height: .85; text-transform: uppercase; letter-spacing: -.005em; }
.grid-sub { grid-column: 1; color: var(--apagado); max-width: 62ch; }
.troca { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-family: var(--cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 16px; padding: 12px 18px; border: 1px solid var(--linha-forte); transition: border-color .3s, color .3s, background .3s; }
.troca:hover { border-color: var(--papaya); color: var(--papaya); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1640px; margin: 0 auto; }
.card { position: relative; aspect-ratio: 1.38; }
.card > button { position: absolute; inset: 0; width: 100%; text-align: left; background: var(--grafite); border: 1px solid var(--linha);
  clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, var(--corte) 100%, 0 calc(100% - var(--corte)));
  overflow: hidden; transition: border-color .35s, background .5s var(--seco); }
.card > button::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 260px at var(--mx, 50%) var(--my, 50%), rgba(255,128,0,.16), transparent 70%); opacity: 0; transition: opacity .4s; }
.card > button:hover::before, .card > button:focus-visible::before { opacity: 1; }
.card > button:hover { border-color: rgba(255,128,0,.55); background: #141210; }
.card-num { position: absolute; left: 16px; top: 12px; font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: .1em; color: var(--apagado); }
.card-estado { position: absolute; right: 18px; top: 12px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--apagado); }
.card.aberta .card-estado { color: #120700; background: var(--acel); padding: 3px 8px; }
.card svg { position: absolute; inset: 15% 12% 26% 12%; width: 76%; height: 59%; overflow: visible; }
.card .tr-base, .voo .tr-base { fill: none; stroke: rgba(236,235,231,.22); stroke-width: .016; stroke-linejoin: round; transition: stroke .4s; }
.card .tr-luz, .voo .tr-luz { fill: none; stroke: url(#grad-luz); stroke-width: .024; stroke-linejoin: round; stroke-linecap: round; filter: url(#brilho); stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.1s var(--seco); }
.card .tr-cometa { fill: none; stroke: #fff; stroke-width: .03; stroke-linecap: round; filter: url(#brilho); stroke-dasharray: 0.025 0.975; opacity: 0; }
.card > button:hover .tr-luz, .card > button:focus-visible .tr-luz { stroke-dashoffset: 0; }
.card > button:hover .tr-base { stroke: rgba(236,235,231,.08); }
.card > button:hover .tr-cometa { opacity: 1; animation: cometa 2.6s linear infinite; }
@keyframes cometa { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.card.trancada .tr-luz { stroke: rgba(236,235,231,.55); filter: none; }
.card.trancada > button:hover { border-color: var(--linha-forte); background: var(--grafite-2); }
.card.trancada > button::before { display: none; }
.card.trancada .tr-cometa { display: none; }
.card-rodape { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-nome { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 1.9vw, 32px); line-height: .95; text-transform: uppercase; }
.card-pais { display: block; font-family: var(--corpo); font-size: 13px; color: var(--apagado); margin-top: 4px; letter-spacing: .02em; text-transform: none; font-weight: 500; }
.card-km { font-family: var(--cond); font-weight: 600; font-size: 17px; color: var(--apagado); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .3s; }
.card > button:hover .card-km { color: var(--papaya); }

/* ---------- pista ---------- */
.pista { background: var(--fundo); overflow: hidden; }
#cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.rotulos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rot { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--texto); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; transition: opacity .3s; pointer-events: auto; cursor: pointer; }
.rot b { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--papaya); line-height: 1; }
.rot::after { content: ""; width: 1px; height: var(--haste, 46px); background: linear-gradient(rgba(236,235,231,.7), rgba(236,235,231,0)); margin-top: 4px; }
.rot.fora { opacity: 0; }
.rot.sel b { color: #fff; }
.rot.marco { font-size: 12px; }
.rot.marco b { font-family: var(--cond); font-size: 13px; font-weight: 700; color: #120700; background: var(--freio); padding: 2px 6px; letter-spacing: .06em; }
.rot.marco.acel b { background: var(--acel); }
.rot.marco::after { height: 26px; background: linear-gradient(var(--freio), transparent); }
.rot.marco.acel::after { background: linear-gradient(var(--acel), transparent); }

.moldura { position: absolute; inset: 78px 380px 200px 104px; pointer-events: none; }
.moldura span { position: absolute; width: 26px; height: 26px; border-color: rgba(255,128,0,.7); border-style: solid; border-width: 0; }
.moldura span:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.moldura span:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.moldura span:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.moldura span:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }

.pista-nome { position: absolute; left: 26px; top: 84px; bottom: 210px; display: flex; flex-direction: column; justify-content: flex-start; pointer-events: none; }
.pista-nome-grande { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 900; font-size: clamp(64px, 9vh, 110px); line-height: .8; color: var(--papaya); letter-spacing: .01em; }
.pista-nome-pais { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--cond); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--apagado); margin-top: 14px; }

.fichas { position: absolute; left: 112px; top: 92px; display: flex; gap: 34px; pointer-events: none; }
.fichas div { display: flex; flex-direction: column-reverse; gap: 2px; }
.fichas dt { font-family: var(--cond); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
.fichas dd { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: .9; font-variant-numeric: tabular-nums; }
.fichas dd small { font-family: var(--cond); font-size: .45em; font-weight: 600; margin-left: 3px; color: var(--apagado); letter-spacing: .04em; }
.fichas .destaque dd { color: var(--papaya); }

.carros { position: absolute; right: 380px; top: 88px; display: flex; gap: 6px; }
.carros button { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--linha-forte); color: var(--apagado); background: rgba(9,9,10,.6); transition: color .25s, border-color .25s, background .25s; }
.carros button small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: none; color: var(--apagado); }
.carros button[aria-checked="true"] { color: #120700; background: var(--papaya); border-color: var(--papaya); }
.carros button[aria-checked="true"] small { color: rgba(18,7,0,.7); }
.carros button:hover:not([aria-checked="true"]) { color: var(--texto); border-color: var(--texto); }

.curvas { position: absolute; right: 0; top: 0; bottom: 188px; width: 352px; display: flex; flex-direction: column; background: linear-gradient(90deg, rgba(9,9,10,.0), rgba(9,9,10,.86) 18%, rgba(9,9,10,.94)); padding: 82px 20px 12px 28px; }
.curvas-topo { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.curvas h2 { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .01em; }
.botao-fino { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); border-bottom: 1px solid var(--linha-forte); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.botao-fino:hover { color: var(--papaya); border-color: var(--papaya); }
.curvas-lista { list-style: none; overflow-y: auto; flex: 1; margin-right: -8px; padding-right: 8px; }
.curvas-lista button { width: 100%; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 4px 10px; padding: 9px 10px 9px 0; border-top: 1px solid var(--linha); text-align: left; transition: background .25s; position: relative; }
.curvas-lista li:last-child button { border-bottom: 1px solid var(--linha); }
.curvas-lista button::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--papaya); transform: scaleY(0); transition: transform .35s var(--seco); }
.curvas-lista button[aria-current="true"]::before { transform: none; }
.curvas-lista button:hover { background: rgba(236,235,231,.04); }
.cl-num { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--apagado); text-align: center; }
.curvas-lista button[aria-current="true"] .cl-num { color: var(--papaya); }
.cl-nome { font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; }
.cl-tipo { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--apagado); margin-top: 2px; font-family: var(--corpo); }
.cl-tipo i { width: 8px; height: 8px; display: inline-block; }
.cl-tipo i.freio { background: var(--freio); } .cl-tipo i.alivio { background: var(--alivio); } .cl-tipo i.cheio { background: var(--acel); }
.cl-vel { font-family: var(--cond); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; text-align: right; line-height: 1; }
.cl-vel small { display: block; font-size: 11px; font-weight: 600; color: var(--apagado); letter-spacing: .06em; }

.ficha-curva { position: absolute; left: 112px; top: 172px; width: min(440px, calc(100vw - 520px)); max-height: calc(100vh - 400px); overflow-y: auto; background: rgba(12,12,14,.9); border: 1px solid var(--linha);
  clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, var(--corte) 100%, 0 calc(100% - var(--corte)));
  padding: 20px 22px 18px; backdrop-filter: blur(6px); }
.fc-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fc-num { font-family: var(--cond); font-weight: 700; letter-spacing: .12em; color: var(--papaya); font-size: 13px; text-transform: uppercase; }
.fc-nome { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: .9; text-transform: uppercase; margin-top: 4px; }
.fc-tipo { color: var(--apagado); font-size: 14px; margin-top: 4px; }
.fc-fechar { width: 32px; height: 32px; border: 1px solid var(--linha-forte); display: grid; place-items: center; flex: none; transition: border-color .25s; }
.fc-fechar:hover { border-color: var(--papaya); }
.fc-fechar svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.passos { list-style: none; margin: 16px 0 14px; display: grid; gap: 1px; background: var(--linha); border: 1px solid var(--linha); }
.passo { display: grid; grid-template-columns: 112px 1fr; gap: 12px; background: #0d0d0f; padding: 10px 12px; align-items: center; }
.passo-acao { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.passo-acao i { width: 9px; height: 9px; flex: none; }
.passo.freio .passo-acao { color: var(--freio); } .passo.freio i { background: var(--freio); }
.passo.solta .passo-acao { color: #ff8a8a; } .passo.solta i { background: #ff8a8a; }
.passo.alivio .passo-acao { color: var(--alivio); } .passo.alivio i { background: var(--alivio); }
.passo.apice .passo-acao { color: var(--texto); } .passo.apice i { background: var(--texto); }
.passo.acel .passo-acao { color: var(--acel); } .passo.acel i { background: var(--acel); }
.passo-valor { font-family: var(--cond); font-weight: 600; font-size: 19px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.passo-valor small { display: block; font-family: var(--corpo); font-weight: 400; font-size: 13px; color: var(--apagado); margin-top: 2px; }
.fc-dica { font-size: 15px; color: #d7d5cf; max-width: 62ch; }
.fc-erro { margin-top: 10px; font-size: 14px; color: var(--apagado); }
.fc-erro b { color: var(--freio); font-weight: 600; }
.fc-nav { display: flex; justify-content: space-between; margin-top: 14px; }
.fc-ac { margin-top: 8px; font-size: 12px; color: var(--apagado); }

.hud { position: absolute; left: 112px; bottom: 210px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
.hud-chamada { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 300px; }
.hud-acao { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: .9; letter-spacing: .02em; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hud-det { font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: .04em; color: var(--texto); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.hud-barra { width: 260px; height: 4px; background: rgba(236,235,231,.15); overflow: hidden; }
.hud-barra i { display: block; height: 100%; width: 0; background: currentColor; }
.hud-chamada.freio { color: var(--freio); } .hud-chamada.alivio { color: var(--alivio); } .hud-chamada.acel { color: var(--acel); } .hud-chamada.solta { color: #ff8a8a; } .hud-chamada.prepara { color: var(--papaya); }
.hud-chamada .hud-det { color: var(--texto); }
.hud-numeros { display: flex; align-items: center; gap: 18px; background: rgba(9,9,10,.72); border: 1px solid var(--linha); padding: 8px 16px; }
.hud-vel b, .hud-marcha b { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-vel b { display: inline-block; min-width: 2.2ch; text-align: right; }
.hud-vel small, .hud-marcha small { font-family: var(--cond); font-weight: 600; color: var(--apagado); margin-left: 5px; letter-spacing: .06em; font-size: 13px; text-transform: uppercase; }
.hud-marcha b { color: var(--papaya); }
.hud-pedais { display: flex; gap: 5px; height: 40px; align-items: flex-end; }
.hud-pedais i { width: 10px; height: 100%; background: rgba(236,235,231,.12); position: relative; overflow: hidden; }
.hud-pedais i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v, 0) * 100%); }
.ped-freio::after { background: var(--freio); } .ped-acel::after { background: var(--acel); }

.tele { position: absolute; left: 0; right: 0; bottom: 0; height: 188px; background: rgba(9,9,10,.95); border-top: 1px solid var(--linha); padding: 10px 28px 8px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; }
.tele-controles { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.botao-play { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px 0 12px; background: var(--papaya); color: #120700; font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .25s; }
.botao-play:hover { background: var(--texto); }
.botao-play svg { width: 16px; height: 16px; fill: currentColor; }
.botao-play .i-pausa { display: none; }
.botao-play.tocando .i-play { display: none; }
.botao-play.tocando .i-pausa { display: block; }
.segmentado { display: inline-flex; border: 1px solid var(--linha-forte); }
.segmentado button { height: 34px; padding: 0 12px; font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--apagado); transition: color .2s, background .2s; }
.segmentado button + button { border-left: 1px solid var(--linha-forte); }
.segmentado button[aria-checked="true"] { color: var(--texto); background: rgba(255,128,0,.18); }
.segmentado button:hover { color: var(--texto); }
.chave { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--apagado); cursor: pointer; user-select: none; }
.chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chave span { width: 30px; height: 16px; border: 1px solid var(--linha-forte); position: relative; transition: border-color .2s; }
.chave span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; background: var(--apagado); transition: transform .25s var(--seco), background .2s; }
.chave input:checked + span { border-color: var(--real); }
.chave input:checked + span::after { transform: translateX(14px); background: var(--real); }
.chave input:focus-visible + span { outline: 2px solid var(--papaya); outline-offset: 2px; }
.tele-tempo { margin-left: auto; font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--apagado); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tele-tempo b { color: var(--texto); font-weight: 700; }
#grafico { width: 100%; height: 100%; min-height: 0; display: block; cursor: crosshair; }
.legenda { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--apagado); flex-wrap: wrap; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 14px; height: 3px; display: inline-block; }
.c-acel { background: var(--acel); } .c-parcial { background: var(--papaya); } .c-alivio { background: var(--alivio); } .c-freio { background: var(--freio); } .c-real { background: var(--real); }
.legenda .nota { margin-left: auto; }

.carregando { position: fixed; inset: auto 0 0 0; height: 2px; z-index: 50; }
.carregando span { display: block; height: 100%; width: 30%; background: var(--papaya); animation: carrega 1s linear infinite; }
@keyframes carrega { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

/* clone que voa do card para a cena */
.voo { position: fixed; z-index: 40; pointer-events: none; overflow: visible; }
.voo .tr-luz { stroke-dashoffset: 0; }

@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .curvas { width: 300px; }
  .moldura { right: 320px; }
  .carros { right: 320px; }
  .fichas { gap: 22px; }
}
@media (max-width: 820px) {
  body { overflow: auto; }
  .topo { padding: 14px 16px; }
  .trilha { display: none; }
  .abertura { flex-direction: column; }
  .lado[data-serie="f1"] { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vh), 0 100%); margin: 0 0 -3.5vh 0; }
  .lado[data-serie="wec"] { clip-path: polygon(0 7vh, 100% 0, 100% 100%, 0 100%); margin: -3.5vh 0 0 0; }
  .lado-texto, .lado[data-serie="wec"] .lado-texto { padding: 0 20px 6vh; }
  .lado[data-serie="f1"] .lado-texto { padding-bottom: 11vh; }
  .lado-sub { opacity: 1; transform: none; font-size: 15px; }
  .lado-titulo { font-size: 68px; }
  .abertura-tese { display: none; }
  .grid { padding: 76px 14px 30px; }
  .grid-cabeca { grid-template-columns: 1fr; }
  .troca { grid-column: 1; grid-row: auto; justify-self: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-nome { font-size: 19px; }
  .card { aspect-ratio: 1.05; }
  .card svg { inset: 16% 14% 34% 14%; width: 72%; height: 50%; }
  .card-rodape { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card-km { font-size: 14px; }
  .pista { overflow-y: auto; display: flex; flex-direction: column; }
  #cena { position: relative; flex: none; height: 56vh; order: 0; }
  .rotulos { height: 56vh; }
  .moldura, .pista-nome { display: none; }
  .fichas { position: static; order: 1; padding: 14px 16px 4px; gap: 14px 20px; flex-wrap: wrap; }
  .fichas dd { font-size: 26px; }
  .carros { position: static; order: 2; padding: 8px 16px; flex-wrap: wrap; }
  .tele { position: static; order: 3; height: auto; display: block; padding: 10px 16px; }
  .tele-controles { gap: 8px; }
  .tele-tempo { margin-left: 0; width: 100%; }
  #grafico { height: 130px; margin: 8px 0; }
  .curvas { position: static; order: 4; width: 100%; background: var(--fundo); padding: 16px; }
  .curvas-lista { overflow: visible; }
  .ficha-curva { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 62vh; z-index: 35; }
  .hud { left: 10px; top: calc(56vh - 150px); bottom: auto; transform: scale(.72); transform-origin: top left; }
  .legenda .nota { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
