/* Garagem e frota, tunagem e cartão do veículo (3.34): linhas com miniatura e barras, filtros em fichas, comparação lado a lado; barras com a parte de fábrica e o ganho das melhorias; alvos de toque de 44 px. */
#menuBox:has(.gf),#menuBox:has(.tn-menu){width:min(980px,100%);max-width:980px;padding:12px 14px}
.gf,.tn-menu{width:100%;min-width:0;color:#e6edee}
.gf-head{display:flex;gap:10px;align-items:flex-start}
.gf-head>.btn{flex:none;margin:0;min-height:44px;padding:8px 14px;font-size:11px}
.gf-head h2{margin:2px 0}.gf-head p{margin:0;font-size:12px;color:#c9d6db}
.gf-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0;position:sticky;top:-12px;z-index:3;background:#13222b;padding:6px 0}
.gf-tabs .btn{flex:1 1 auto;margin:0;min-height:44px;font-size:12px}
.gf-msg{padding:6px 10px;border-radius:8px;font-size:13px;margin:4px 0}.gf-msg.ok{background:#1d3a28;color:#9fe3a6}.gf-msg.no{background:#3d2420;color:#f3b46d}
.gf-sub,.tn-sub{margin:10px 0 4px;font-size:14px;color:#f3e6c4}.gf-sub small{font-size:11px;color:#a8c0cb;margin-left:6px}
.gf-vagas,.gf-vagline{color:#8fe39a}.gf-vagas.full,.gf-vagline.full,.vag-line.full{color:#f3b46d}
.gf-vagline{font-size:13px;margin:2px 0 6px}
.gf-why,.tn-why{font-size:12px;color:#f3b46d;margin:3px 0}.gf-note,.tn-note{font-size:12px;color:#a8b9c2;margin:4px 0}
.gf-list{display:flex;flex-direction:column;gap:6px}
.gf-row,.gf-model{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:8px;align-items:center;background:#1b3543;border:1px solid #3c5968;border-radius:10px;padding:6px 8px}
.gf-row.st-with{border-color:#8fe39a;box-shadow:0 0 0 1px #8fe39a inset}.gf-row.st-away{opacity:.86}
.gf-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.gf-info b{font-size:14px}.gf-info b small{font-size:11px;color:#f3c76d;margin-left:4px;font-weight:600}
.gf-info>span{font-size:12px;color:#a8c0cb}
.gf-meters{display:grid;grid-template-columns:auto minmax(60px,1fr) auto minmax(60px,1fr);gap:2px 6px;align-items:center;font-size:11px;color:#c9d6db}
.gf-bar{display:block;height:8px;border-radius:5px;background:#10232d;overflow:hidden}
.gf-bar i{display:block;height:100%;background:linear-gradient(90deg,#2f86c9,#8fd3f0)}
.gf-bar.fuel i{background:linear-gradient(90deg,#d08a2c,#f2c94c)}.gf-bar.ev i{background:linear-gradient(90deg,#1f8fa0,#39c6d6)}.gf-bar.hot i{background:linear-gradient(90deg,#c9584a,#f08b5a)}.gf-bar.ok i{background:linear-gradient(90deg,#3f9a5b,#8fe39a)}
.gf-acts{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;max-width:330px}
.gf-acts .btn{margin:0;min-height:44px;padding:6px 10px;font-size:11px}
.gf-acts .btn.on,.gf-chip.on{background:#2f86c9;border-color:#8fd3f0;color:#fff}
.gf-filter{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0}
.gf-filter .btn{margin:0;min-height:44px;padding:6px 10px;font-size:11px}
.gf-pages{display:flex;gap:8px;align-items:center;justify-content:center;margin:8px 0;font-size:12px}
.gf-pages .btn,.gf-premium{margin:0;min-height:44px}
.gf-desc{font-size:13px;margin:2px 0}
.gf-cmp-wrap{overflow-x:auto;overscroll-behavior:contain}
.gf-cmp{width:100%;border-collapse:collapse;font-size:12px}
.gf-cmp th,.gf-cmp td{padding:4px 6px;border-bottom:1px solid #2a4552;text-align:left;vertical-align:middle;min-width:110px}
.gf-cmp thead th{vertical-align:bottom}.gf-cmp thead th b{display:block;font-size:13px}.gf-cmp thead th small{display:block;color:#a8c0cb}
.gf-cmp thead .tn-thumb{width:96px;height:46px}
.gf-cmp td em{font-style:normal;font-size:11px;color:#c9d6db}.gf-cmp td.best em{color:#8fe39a;font-weight:700}.gf-cmp td.best .gf-bar i{background:linear-gradient(90deg,#3f9a5b,#8fe39a)}
.gf-cmp .gf-x{min-height:44px;margin:2px 0 0;padding:4px 8px;font-size:10px}
.gf-view .tn-ficha{margin-top:6px}
/* Ficha e barras da tunagem */
.tn-thumb{display:block;width:92px;height:52px;object-fit:contain;border-radius:8px;background:#10232d}
.tn-thumb-empty{background:linear-gradient(135deg,#1b3543,#10232d)}
.tn-ficha{display:grid;grid-template-columns:minmax(120px,30%) minmax(0,1fr);gap:10px;align-items:start;background:#162d39;border:1px solid #3c5968;border-radius:10px;padding:8px}
.tn-ficha>.tn-thumb{width:100%;height:auto;aspect-ratio:2/1}
.tn-ficha-body{min-width:0;display:flex;flex-direction:column;gap:4px}
.tn-chips{display:flex;flex-wrap:wrap;gap:3px}
.tn-chip{font-size:10px;font-weight:700;letter-spacing:.02em;padding:2px 6px;border-radius:999px;background:#2b4b2f;color:#bff0c4;border:1px solid #4f8a57}
.tn-chip.none{background:#22343d;color:#a8b9c2;border-color:#3c5968}
.tn-stats{display:grid;gap:3px}
.tn-stat{display:grid;grid-template-columns:78px minmax(0,1fr) 118px;gap:6px;align-items:center;font-size:11px}
.tn-stat em{font-style:normal;color:#e6edee;text-align:right;white-space:nowrap}.tn-stat em small{color:#8fe39a;font-weight:700}
.tn-bar{display:flex;height:9px;border-radius:5px;background:#10232d;overflow:hidden}
.tn-bar .b{background:linear-gradient(90deg,#2f86c9,#8fd3f0)}.tn-bar .u{background:linear-gradient(90deg,#f2c94c,#f08b5a)}
.tn-stats.mini .tn-stat{grid-template-columns:64px minmax(0,1fr) 96px;font-size:10px}.tn-stats.mini .tn-bar{height:6px}
.tn-pay{font-size:12px;color:#f3c76d;margin:2px 0 6px}
.tn-msg{padding:6px 10px;border-radius:8px;font-size:13px;background:#1d3a28;color:#9fe3a6}
.tn-parts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px}
.tn-part{display:flex;flex-direction:column;gap:3px;background:#1b3543;border:1px solid #3c5968;border-radius:10px;padding:8px}
.tn-part b{font-size:14px}.tn-part>span{font-size:12px;color:#c9d6db}.tn-part small{font-size:11px;color:#a8c0cb}
.tn-part .btn{margin:4px 0 0;min-height:44px;font-size:11px}
.tn-dots{display:flex;gap:4px}.tn-dots i{width:16px;height:6px;border-radius:3px;background:#2a4552}.tn-dots i.on{background:#f2c94c}
.tn-swatches,.tn-row{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}
.tn-swatches .btn,.tn-row .btn{margin:0;min-height:44px;padding:6px 10px;font-size:11px}
.tn-swatch{border-left:12px solid var(--sw)!important}.tn-neon{box-shadow:0 0 0 2px var(--sw) inset}
.tn-swatches .btn.on,.tn-row .btn.on{background:#2f86c9;color:#fff}
.tn-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.tn-actions .btn{margin:0;min-height:44px}
/* Linha ao entrar no veículo (dentro do painel do veículo no HUD) e aviso do heliponto */
.tn-line{grid-column:1/-1;max-width:100%;margin-top:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:500 10px/1.35 system-ui,sans-serif;color:#c8ddd7;pointer-events:none;transition:opacity .35s}
.tn-line[hidden]{display:none}.tn-line.out{opacity:0}.tn-line>b{font-weight:700;color:#f3eedc}
/* No painel do celular a velocidade fica no canto de baixo à direita: a linha termina antes dela. */
.mobile-play #mobileStatus .tn-line,.mobile-play #mobileStatus .auton-heli-pad{box-sizing:border-box;padding-right:60px}
/* No celular a linha ocupa o lugar da linha da arma enquanto aparece: o painel não cresce e não desce sobre o botão TIRO nas telas baixas. */
.mobile-play #mobileStatus:has(#tuneCard:not([hidden])) #hudWeapon,.mobile-play #mobileStatus:has(#autonHeliPad:not([hidden])) #hudWeapon{display:none}
/* No computador o painel não tem fundo: a linha ganha o mesmo fundo do tanque para ser lida sobre o mapa. */
body:not(.mobile-play) .tn-line,body:not(.mobile-play) .auton-heli-pad{box-sizing:border-box;width:max-content;margin-top:4px;padding:2px 8px;border-radius:5px;background:#173442e6}
.auton-heli-pad{grid-column:1/-1;max-width:100%;margin-top:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:700 10px/1.35 system-ui,sans-serif;letter-spacing:.03em;color:#f2c94c;pointer-events:none}.auton-heli-pad[hidden]{display:none}
.auton-heli-pad.full{border-color:#4f8a57;color:#8fe39a}
@media (max-width:720px),(max-height:430px){
 .gf-row,.gf-model{grid-template-columns:72px minmax(0,1fr)}
 .gf-row .gf-acts,.gf-model .gf-acts{grid-column:1/-1;max-width:none;justify-content:flex-start}
 .tn-thumb{width:72px;height:40px}
 .tn-ficha{grid-template-columns:1fr}.tn-ficha>.tn-thumb{max-width:220px}}
