/* ---------- Na Veia Racing (assets/js/jogo-corrida.js) ---------- */
.nv-menu { display: grid; gap: 16px; max-width: 760px; padding: 22px; background: var(--carbono); border: 1px solid var(--linha); border-top: 3px solid var(--sangue-vivo); }
.nv-op { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.nv-op > span { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aco); }
.nv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-chip { min-height: 40px; padding: 0 14px; background: var(--asfalto); border: 1px solid var(--linha); color: var(--cromo); font: 700 14px var(--texto); cursor: pointer; }
.nv-chip:hover { border-color: var(--aco); }
.nv-chip[aria-pressed="true"] { background: var(--sangue); border-color: var(--sangue); color: #fff; }
.nv-sel { min-height: 42px; max-width: 320px; padding: 0 10px; background: var(--asfalto); border: 1px solid var(--linha); color: var(--cromo); font: 600 15px var(--texto); }
.nv-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.nv-correr { min-height: 52px; padding: 0 34px; border: 0; background: var(--sangue); color: #fff; font: 800 18px var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.nv-correr:hover { background: var(--sangue-vivo); }
.nv-correr:disabled { opacity: .7; cursor: wait; }
.nv-sec { min-height: 46px; padding: 0 20px; background: none; border: 1px solid var(--linha); color: var(--cromo); font: 700 15px var(--texto); cursor: pointer; }
.nv-sec:hover { border-color: var(--aco); }
.nv-rec { margin: 0; font-size: 14px; color: var(--aco); }
.nv-rec b { color: var(--cromo); }
@media (max-width: 600px) { .nv-op { grid-template-columns: 1fr; gap: 6px; } .nv-menu { padding: 16px; } }

.nv-jogo { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; overflow: hidden; background: #8fb8d8; user-select: none; -webkit-user-select: none; touch-action: none; }
@media (max-width: 700px) and (orientation: portrait) { .nv-jogo { aspect-ratio: 3 / 4; } }
.nv-jogo:fullscreen { max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
.nv-jogo:-webkit-full-screen { max-height: none; width: 100vw; height: 100vh; }
.nv-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nv-hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font-family: var(--texto); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.nv-hud button { pointer-events: auto; }
.nv-pos, .nv-volta { position: absolute; top: 12px; display: flex; align-items: baseline; gap: 2px; }
.nv-pos { left: 14px; }
.nv-volta { right: 14px; }
.nv-pos b, .nv-volta b { font: 900 clamp(30px, 5vw, 46px)/1 var(--display); font-style: italic; }
.nv-pos small, .nv-volta small { font: 800 clamp(14px, 2vw, 19px) var(--display); }
.nv-pos span, .nv-volta span { margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.nv-tabela { position: absolute; left: 14px; top: clamp(52px, 8vw, 66px); margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.nv-tabela li { display: flex; align-items: center; gap: 8px; min-width: 150px; padding: 3px 10px 3px 4px; background: rgba(15, 17, 20, .62); font-size: 13px; font-weight: 700; text-shadow: none; }
.nv-tabela li b { width: 22px; text-align: center; background: rgba(255, 255, 255, .12); font-size: 12px; }
.nv-tabela li.nv-eu { background: rgba(176, 18, 27, .85); }
.nv-tempos { position: absolute; right: 14px; top: clamp(52px, 8vw, 66px); margin: 0; display: grid; gap: 3px; }
.nv-tempos div { display: flex; justify-content: space-between; gap: 18px; min-width: 150px; padding: 3px 10px; background: rgba(15, 17, 20, .62); text-shadow: none; }
.nv-tempos dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; opacity: .8; }
.nv-tempos dd { margin: 0; font: 700 13px ui-monospace, Consolas, monospace; }
.nv-centro { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: 900 clamp(46px, 11vw, 120px)/1 var(--display); font-style: italic; opacity: 0; transform: scale(1.3); transition: opacity .15s, transform .2s; text-shadow: 0 4px 18px rgba(0, 0, 0, .55); }
.nv-centro.ativo { opacity: 1; transform: none; }
.nv-aviso { position: absolute; left: 0; right: 0; top: 52%; text-align: center; font: 800 clamp(15px, 2.4vw, 22px) var(--display); color: #ffd400; }
.nv-medidores { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.nv-med { position: relative; width: clamp(44px, 6vw, 58px); height: clamp(44px, 6vw, 58px); }
.nv-med svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nv-med circle { fill: rgba(15, 17, 20, .7); stroke-width: 4; }
.nv-med .nv-fundo { stroke: rgba(255, 255, 255, .15); }
.nv-med .nv-arco { fill: none; stroke: #36d07a; stroke-dasharray: 106.8; stroke-linecap: round; transition: stroke-dashoffset .2s; }
.nv-med:nth-child(3) .nv-arco { stroke: #3bb4ff; }
.nv-med i { position: absolute; left: 0; right: 0; top: 18%; text-align: center; font-style: normal; font-size: clamp(12px, 1.6vw, 15px); }
.nv-med b { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-size: clamp(10px, 1.3vw, 12px); }
/* velocímetro: luzes de troca, marcha, km/h, acelerador e freio */
.nv-vel { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: clamp(196px, 21vw, 250px); padding: 9px 12px 10px; background: linear-gradient(180deg, rgba(18, 20, 24, .86), rgba(8, 9, 11, .92)); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); text-shadow: none; }
.nv-leds { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 8px; }
.nv-leds i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.nv-leds i.v { background: #2ee66b; box-shadow: 0 0 8px rgba(46, 230, 107, .8); }
.nv-leds i.r { background: #ff3b30; box-shadow: 0 0 8px rgba(255, 59, 48, .8); }
.nv-leds i.a { background: #3d7dff; box-shadow: 0 0 8px rgba(61, 125, 255, .8); }
.nv-vel-meio { display: flex; align-items: center; gap: 12px; }
.nv-marcha { flex: none; display: grid; place-items: center; width: clamp(42px, 4.4vw, 52px); height: clamp(42px, 4.4vw, 52px); border-radius: 10px; background: linear-gradient(160deg, #ff4b52, #b0121b); font: 900 clamp(24px, 2.8vw, 32px)/1 var(--display); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.nv-km { flex: 1; text-align: right; line-height: 1; }
.nv-km b { display: block; font: 900 clamp(36px, 4.4vw, 50px)/.92 var(--display); font-style: italic; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nv-km small { font-size: 10px; font-weight: 800; letter-spacing: .2em; opacity: .55; }
.nv-ped { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.nv-ped i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.nv-ped s { display: block; height: 100%; transform: scaleX(0); transform-origin: left; transition: transform .1s; background: #2ee66b; }
.nv-ped i + i s { background: #ff3b30; transform-origin: right; }
/* safety car e aviso de placa de vídeo */
.nv-sc { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); padding: 6px 16px; border-radius: 4px; background: #ffd400; color: #111; font: 900 clamp(13px, 1.8vw, 17px) var(--display); letter-spacing: .12em; text-shadow: none; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.nv-sc.ativo { opacity: 1; animation: nv-sc 1s infinite; }
@keyframes nv-sc { 50% { box-shadow: 0 0 0 5px rgba(255, 212, 0, .35); } }
/* bandeira amarela (batida leve: cuidado, sem ultrapassar no trecho) */
.nv-band-am { position: absolute; left: 16px; top: 30%; display: grid; justify-items: start; gap: 4px; opacity: 0; transform: translateX(-12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.nv-band-am.ativo { opacity: 1; transform: none; }
.nv-band-am i { position: relative; display: block; width: 66px; height: 46px; border-left: 4px solid #d9dde1; }
.nv-band-am i::after { content: ''; position: absolute; left: 0; top: 0; width: 62px; height: 40px; background: linear-gradient(100deg, #e6b800, #ffd60a 45%, #d9a800); box-shadow: 0 4px 14px rgba(255, 200, 0, .45); transform-origin: left center; animation: nv-azul .45s ease-in-out infinite alternate; }
.nv-band-am span { padding: 2px 6px; background: rgba(230, 184, 0, .92); color: #111; font: 900 10px var(--display); letter-spacing: .12em; text-shadow: none; }
/* bandeira azul (WEC: Hypercar chegando atrás de você) */
.nv-azul { position: absolute; left: 16px; top: 42%; display: grid; justify-items: start; gap: 4px; opacity: 0; transform: translateX(-12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.nv-azul.ativo { opacity: 1; transform: none; }
.nv-azul i { position: relative; display: block; width: 66px; height: 46px; border-left: 4px solid #d9dde1; }
.nv-azul i::after { content: ''; position: absolute; left: 0; top: 0; width: 62px; height: 40px; background: linear-gradient(100deg, #0d47c9, #1e6bff 45%, #0b3fae); box-shadow: 0 4px 14px rgba(0, 60, 255, .45); transform-origin: left center; animation: nv-azul .6s ease-in-out infinite alternate; }
@keyframes nv-azul { from { transform: skewY(-5deg) scaleX(.94); } to { transform: skewY(5deg) scaleX(1); } }
.nv-azul span { padding: 2px 6px; background: rgba(13, 71, 201, .9); font: 900 10px var(--display); letter-spacing: .12em; text-shadow: none; }
/* limitador do pit lane aceso */
.nv-vel.nv-lim .nv-marcha { background: linear-gradient(160deg, #3d8bff, #1550c4); }
.nv-vel.nv-lim .nv-km small { color: #6fb0ff; opacity: 1; }
.nv-vel.nv-lim { border-color: rgba(61, 139, 255, .7); }
.nv-gpu { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); padding: 10px 14px; border-radius: 8px; background: rgba(176, 18, 27, .94); font-size: 13px; line-height: 1.4; text-align: center; text-shadow: none; pointer-events: auto; cursor: pointer; }
.nv-gpu[hidden] { display: none; }
.nv-mapa { position: absolute; right: 10px; bottom: 10px; width: clamp(96px, 14vw, 150px); height: auto; }
.nv-topo-bts { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.nv-topo-bts button { width: 38px; height: 34px; border: 0; background: rgba(15, 17, 20, .55); color: #fff; font-size: 15px; cursor: pointer; }
.nv-topo-bts button:hover { background: rgba(176, 18, 27, .85); }
.nv-pausa { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(6, 7, 8, .6); pointer-events: auto; text-shadow: none; overflow: auto; }
.nv-pausa[hidden] { display: none; }
.nv-caixa { display: grid; gap: 10px; justify-items: center; width: min(460px, 100%); padding: 22px; background: rgba(20, 22, 26, .96); border: 1px solid var(--linha); border-top: 3px solid var(--sangue-vivo); }
.nv-caixa h3 { margin: 0 0 6px; font: 900 32px var(--display); }
.nv-fim { justify-items: stretch; text-align: center; }
.nv-rot { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sangue-vivo); }
.nv-res { margin: 0; color: #c3c8cd; font-size: 14px; }
.nv-res b { color: #fff; }
.nv-class { margin: 6px 0; padding: 0; list-style: none; max-height: 34vh; overflow: auto; text-align: left; }
.nv-class li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 5px 8px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nv-class li.nv-eu { background: rgba(176, 18, 27, .5); }
.nv-class em { font-style: normal; color: #c3c8cd; font-size: 13px; }
.nv-fim-bts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nv-toque { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); pointer-events: none; }
.nv-toque > * { pointer-events: auto; }
.nv-t-esq { display: flex; align-items: flex-end; gap: 12px; }
.nv-t-dir { display: flex; align-items: flex-end; gap: 12px; }
.nv-icones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
/* volante da tela */
.nv-volante { width: clamp(96px, 23vw, 124px); height: clamp(96px, 23vw, 124px); border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.nv-volante svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.nv-volante.ativo svg circle:first-child { stroke: #fff; }
.nv-pedais { display: flex; align-items: flex-end; gap: 12px; }
.nv-lado { display: flex; gap: 10px; align-items: flex-end; }
.nv-toque button { display: grid; place-items: center; padding: 0; width: clamp(62px, 17vw, 86px); height: clamp(62px, 17vw, 86px); border: 2.5px solid rgba(255, 255, 255, .62); border-radius: 50%; background: rgba(10, 12, 15, .28); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; color: #fff; font: 800 clamp(18px, 4vw, 24px) var(--texto); touch-action: none; }
.nv-toque button.ativo { background: rgba(255, 255, 255, .22); border-color: #fff; transform: scale(.94); }
.nv-toque svg { width: 58%; height: 58%; }
.nv-toque .nv-ic { width: clamp(36px, 8vw, 44px); height: clamp(36px, 8vw, 44px); border-width: 2px; }
.nv-toque .nv-ic-box.ativo { background: rgba(227, 52, 60, .75); transform: none; }
.nv-toque .nv-pedal { border: 0; border-radius: 12px; background: transparent; }
.nv-toque .nv-pedal svg { width: 100%; height: 100%; }
.nv-toque .nv-pedal-freio { width: clamp(58px, 14vw, 74px); height: clamp(58px, 14vw, 74px); }
.nv-toque .nv-pedal-acel { width: clamp(52px, 12vw, 64px); height: clamp(70px, 17vw, 86px); }
.nv-toque .nv-pedal.ativo { background: rgba(46, 230, 107, .28); }
.nv-toque .nv-pedal-freio.ativo { background: rgba(255, 59, 48, .32); }
.nv-marchas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
@media (pointer: coarse) {
  /* voltas, melhor volta e posição menores (sobra tela para a pista) */
  .nv-pos, .nv-volta { top: 8px; }
  .nv-pos b, .nv-volta b { font-size: 26px; }
  .nv-pos small, .nv-volta small { font-size: 13px; }
  .nv-pos span, .nv-volta span { font-size: 9px; margin-left: 4px; }
  .nv-tabela, .nv-tempos { top: 40px; gap: 2px; }
  .nv-tabela li { min-width: 112px; padding: 2px 8px 2px 3px; gap: 6px; font-size: 11px; }
  .nv-tabela li b { width: 18px; font-size: 10px; }
  .nv-tempos div { min-width: 112px; gap: 10px; padding: 2px 8px; }
  .nv-tempos dt { font-size: 9px; }
  .nv-tempos dd { font-size: 11px; }
  .nv-mapa { top: 92px; width: 78px; }
  .nv-t-esq { flex-direction: column-reverse; align-items: flex-start; }
  .nv-icones { flex-direction: row; }
  .nv-band-am { top: 58px; left: calc(50% - 186px); } /* ao lado do velocímetro (a esquerda tem a lista de posições) */
  .nv-azul { top: 58px; left: calc(50% + 120px); }
  .nv-medidores { bottom: auto; top: 154px; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 6px; } /* embaixo do velocímetro: a esquerda fica livre para os botões */
  .nv-med { width: 40px; height: 40px; }
  .nv-centro { top: 44%; font-size: clamp(40px, 9vw, 80px); }
  .nv-vel { bottom: auto; top: 54px; width: 176px; padding: 7px 10px 8px; }
  .nv-sc { top: 172px; }
  .nv-mapa { bottom: auto; }
  .nv-tabela li, .nv-tempos div { min-width: 0; font-size: 12px; }
}
.nv-dica { margin: 10px 0 0; font-size: 14px; color: var(--aco); }
.nv-link { padding: 0; border: 0; background: none; color: var(--sangue-vivo); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* tela inteira (celular sempre; computador pelo botão): cobre o site todo, sem precisar da tela cheia do navegador */
.nv-jogo.nv-cheio { position: fixed; inset: 0; z-index: 9990; width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; }
html.nv-jogando, html.nv-jogando body { overflow: hidden; }
html.nv-jogando .chat-bt, html.nv-jogando .app-bt, html.nv-jogando .app-aviso, html.nv-jogando .rolador, html.nv-jogando .aviso-priv { display: none !important; }
.nv-girar { animation: nv-some 1s 4s forwards; position: absolute; left: 50%; bottom: 46%; transform: translateX(-50%); padding: 8px 14px; background: rgba(15, 17, 20, .75); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
@media (orientation: landscape) { .nv-girar { display: none; } }
@keyframes nv-some { to { opacity: 0; visibility: hidden; } }
.nv-cls { margin-left: 6px; padding: 1px 5px; background: #e3343c; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; vertical-align: 1px; }
.nv-cls-gt3 { background: #ff8a00; color: #111; }

/* ajuste de câmera (por cima do jogo pausado) */
.nv-pausa.nv-ajuste { background: none; place-items: end center; padding-bottom: 12px; }
.nv-aj { justify-items: stretch; gap: 8px; padding: 14px 16px; background: rgba(20, 22, 26, .9); }
.nv-aj .nv-rot { text-align: center; }
.nv-aj-linha { display: grid; grid-template-columns: 1fr 44px 74px 44px; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #e6e9ec; }
.nv-aj-linha b { text-align: center; font: 700 14px ui-monospace, Consolas, monospace; }
.nv-aj-bt { height: 40px; border: 1px solid var(--linha); background: var(--asfalto); color: #fff; font: 800 20px var(--texto); cursor: pointer; }
.nv-aj-bt:hover { border-color: var(--aco); }

/* boxes: botão, painel do pit stop e medidor de gasolina */
.nv-topo-bts .nv-bt-box { width: auto; padding: 0 12px; font: 900 13px var(--display); letter-spacing: .06em; }
.nv-topo-bts .nv-bt-box.ativo { background: #e3343c; }
.nv-med:nth-child(4) .nv-arco { stroke: #ff9f1a; }
.nv-pitbox { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); display: none; min-width: 220px; padding: 10px 14px; background: rgba(15, 17, 20, .82); border-top: 3px solid #e3343c; text-align: center; text-shadow: none; }
.nv-pitbox.ativo { display: block; }
.nv-pitbox b { display: block; font: 900 20px var(--display); font-style: italic; letter-spacing: .04em; }
.nv-pitbox em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: #ffd400; }
.nv-pit-it { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 700; text-align: left; }
.nv-pit-it i { height: 8px; background: rgba(255, 255, 255, .15); }
.nv-pit-it s { display: block; height: 100%; background: #36d07a; text-decoration: none; }
@media (pointer: coarse) { .nv-pitbox { top: auto; bottom: 110px; } }

/* ---- HUD estilo F1 mobile ---- */
.nv-topo-bts { display: none; }
.nv-torre { position: absolute; left: 12px; top: 10px; width: clamp(156px, 18vw, 206px); text-shadow: none; }
.nv-t-tempo { padding: 6px 10px 6px; background: rgba(12, 14, 18, .78); border-radius: 6px 6px 0 0; }
.nv-t-tempo b { display: block; font: 900 clamp(22px, 2.4vw, 30px)/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.nv-t-tempo span { display: inline-block; margin: 3px 10px 0 0; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: rgba(255, 255, 255, .62); }
.nv-t-tempo em { font-style: normal; color: #fff; font-variant-numeric: tabular-nums; }
.nv-t-cls { margin: 0; padding: 2px 10px; background: rgba(12, 14, 18, .6); font-size: 9px; font-weight: 800; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.nv-torre .nv-tabela { position: static; margin: 2px 0 0; gap: 2px; }
.nv-torre .nv-tabela li { display: grid; grid-template-columns: 20px 4px 1fr auto; align-items: center; gap: 6px; min-width: 0; padding: 3px 8px 3px 3px; background: rgba(12, 14, 18, .72); font-size: 12px; }
.nv-torre .nv-tabela li b { width: auto; background: none; text-align: center; font-size: 12px; }
.nv-torre .nv-tabela li i { height: 13px; border-radius: 1px; }
.nv-torre .nv-tabela li span { font-weight: 800; letter-spacing: .04em; }
.nv-torre .nv-tabela li em { font-style: normal; font: 700 11px ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .8); }
.nv-torre .nv-tabela li.nv-eu { background: #fff; color: #111; }
.nv-torre .nv-tabela li.nv-eu em { color: #333; }
.nv-dir-topo { position: absolute; right: 12px; top: 10px; display: grid; justify-items: end; gap: 6px; text-shadow: none; }
.nv-bts2 { display: flex; gap: 6px; }
.nv-bts2 button { display: grid; place-items: center; width: 42px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: rgba(12, 14, 18, .72); color: #fff; cursor: pointer; }
.nv-bts2 button:hover { background: rgba(176, 18, 27, .85); }
.nv-bts2 svg { width: 24px; height: 24px; }
.nv-setores { margin: 0; display: grid; gap: 2px; min-width: 128px; }
.nv-setores div { display: flex; justify-content: space-between; gap: 14px; padding: 2px 9px; background: rgba(12, 14, 18, .66); }
.nv-setores dt { font-size: 10px; font-weight: 800; color: rgba(255, 255, 255, .62); }
.nv-setores dd { margin: 0; font: 700 12px ui-monospace, Consolas, monospace; }
.nv-setores dd.melhor { color: #c77dff; }
.nv-setores dd.pior { color: #ffd400; }
.nv-setores dd.corre { color: rgba(255, 255, 255, .78); }
.nv-mapa { top: 140px; bottom: auto; right: 12px; width: clamp(88px, 10vw, 124px); }
/* velocímetro compacto, embaixo à direita */
.nv-vel { left: auto; right: 12px; bottom: 12px; transform: none; width: clamp(164px, 16vw, 200px); padding: 7px 10px 6px; border-radius: 10px; }
.nv-leds { margin-bottom: 6px; gap: 3px; }
.nv-leds i { height: 5px; }
.nv-marcha { width: clamp(38px, 3.6vw, 46px); height: clamp(38px, 3.6vw, 46px); font-size: clamp(22px, 2.4vw, 28px); border-radius: 8px; }
.nv-km b { font-size: clamp(28px, 3vw, 38px); }
.nv-rpm { margin-top: 3px; text-align: right; font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.nv-ped { display: none; }
/* bandeiras e safety car no alto, no meio */
.nv-band-am { left: calc(50% - 84px); top: 58px; }
.nv-azul { left: calc(50% + 14px); top: 58px; }
@media (pointer: coarse) {
  .nv-torre { left: 8px; top: 6px; width: 138px; }
  .nv-t-tempo { padding: 4px 8px; }
  .nv-t-tempo b { font-size: 20px; }
  .nv-t-tempo span { font-size: 8px; margin-right: 6px; }
  .nv-torre .nv-tabela li { grid-template-columns: 16px 3px 1fr auto; gap: 4px; padding: 2px 6px 2px 2px; font-size: 10px; }
  .nv-torre .nv-tabela li b { font-size: 10px; }
  .nv-torre .nv-tabela li em { font-size: 9px; }
  .nv-dir-topo { right: 8px; top: 6px; gap: 4px; }
  .nv-bts2 button { width: 36px; height: 30px; }
  .nv-bts2 svg { width: 20px; height: 20px; }
  .nv-setores { min-width: 104px; }
  .nv-setores div { padding: 1px 7px; gap: 8px; }
  .nv-setores dt { font-size: 9px; }
  .nv-setores dd { font-size: 10px; }
  .nv-mapa { display: none; }
  .nv-vel { top: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 96px); right: 8px; width: 136px; padding: 5px 8px 4px; }
  .nv-marcha { width: 32px; height: 32px; font-size: 20px; }
  .nv-km b { font-size: 24px; }
  .nv-km small { font-size: 8px; }
  .nv-rpm { font-size: 8px; }
  .nv-medidores { top: 6px; }
  .nv-med { width: 34px; height: 34px; }
  .nv-band-am { top: 46px; left: calc(50% - 74px); }
  .nv-azul { top: 46px; left: calc(50% + 8px); }
  .nv-band-am i, .nv-azul i { width: 50px; height: 34px; }
  .nv-band-am i::after, .nv-azul i::after { width: 46px; height: 28px; }
  .nv-sc { top: 46px; }
}
.nv-t-tempo b[hidden] { display: none; }
@media (pointer: coarse) {
  /* torre compacta no celular (não pode encostar no volante) */
  .nv-t-tempo { line-height: 1.15; }
  .nv-t-tempo b { font-size: 18px; }
  .nv-t-tempo span { display: block; margin: 1px 0 0; font-size: 8px; white-space: nowrap; line-height: 1.2; }
  .nv-t-cls { padding: 1px 6px; font-size: 8px; }
  .nv-torre .nv-tabela li { padding: 1px 5px 1px 2px; line-height: 1.3; }
  .nv-aviso { top: 36%; font-size: 13px; }
}
.nv-t-tempo span { white-space: nowrap; }
/* ---- volante grande no canto e velocímetro menor ---- */
.nv-vel { width: clamp(140px, 13vw, 168px); padding: 5px 8px 4px; }
.nv-vel-meio { gap: 8px; }
.nv-marcha { width: clamp(30px, 2.8vw, 36px); height: clamp(30px, 2.8vw, 36px); font-size: clamp(18px, 1.9vw, 22px); border-radius: 6px; }
.nv-km b { font-size: clamp(22px, 2.3vw, 28px); }
.nv-km small { font-size: 8px; }
.nv-rpm { font-size: 8px; margin-top: 2px; }
.nv-leds { margin-bottom: 4px; }
.nv-leds i { height: 4px; }
@media (pointer: coarse) {
  .nv-t-esq { flex-direction: row; align-items: flex-end; gap: 10px; }
  .nv-icones { flex-direction: column; margin-bottom: 6px; }
  .nv-volante { width: clamp(140px, 41vh, 176px); height: clamp(140px, 41vh, 176px); }
  .nv-toque { padding-left: max(6px, env(safe-area-inset-left)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .nv-vel { width: 104px; padding: 3px 6px 3px; border-radius: 8px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 92px); }
  .nv-vel-meio { gap: 5px; }
  .nv-leds { gap: 2px; margin-bottom: 3px; }
  .nv-leds i { height: 3px; }
  .nv-marcha { width: 24px; height: 24px; font-size: 15px; border-radius: 5px; }
  .nv-km b { font-size: 18px; }
  .nv-km small { font-size: 6px; letter-spacing: .14em; }
  .nv-rpm { font-size: 6.5px; margin-top: 1px; }
}
@media (pointer: coarse) {
  /* volante maior; torre (tempo, voltas, posições) menor */
  .nv-volante { width: clamp(160px, 50vh, 210px); height: clamp(160px, 50vh, 210px); }
  .nv-torre { width: 112px; }
  .nv-t-tempo { padding: 3px 6px; }
  .nv-t-tempo b { font-size: 15px; }
  .nv-t-tempo span { font-size: 7px; }
  .nv-t-cls { font-size: 7px; padding: 1px 5px; }
  .nv-torre .nv-tabela { gap: 1px; }
  .nv-torre .nv-tabela li { grid-template-columns: 12px 3px 1fr auto; gap: 3px; padding: 1px 4px 1px 2px; font-size: 8.5px; line-height: 1.25; }
  .nv-torre .nv-tabela li b { font-size: 8.5px; }
  .nv-torre .nv-tabela li i { height: 9px; }
  .nv-torre .nv-tabela li em { font-size: 7.5px; }
  .nv-setores { min-width: 92px; }
  .nv-setores dd { font-size: 9px; }
  .nv-setores dt { font-size: 8px; }
}
.nv-toque .nv-mch { width: 46px; height: 46px; font: 900 26px/1 var(--display); color: #fff; }
/* setas de direção (no lugar do volante) */
.nv-lado { display: flex; gap: 12px; align-items: flex-end; }
.nv-toque .nv-seta { width: clamp(74px, 22vh, 92px); height: clamp(74px, 22vh, 92px); }
