/* Vista in auto (js/car.js, che collega questo file): tachimetro nel suggerimento dei comandi (il riquadro è .walk-hint
   di css/walk.css) e, al dito, sterzo e pedali a schermo e il bottone «Vista» (prima o terza persona) */
.car-speed { flex: none; font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.car-speed b { display: inline-block; min-width: 2ch; text-align: right; font: 600 16px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); }
.car-speed.rev::before { content: "R"; margin-right: 5px; font: 700 11px/1 system-ui, sans-serif; color: var(--accent); }
/* Dopo qualche secondo i comandi si tolgono e restano tachimetro ed Esci; sotto il mouse tornano */
.car-hint.quiet { opacity: .85; }
.car-hint.quiet .car-keys { display: none; }
.car-hint.quiet:hover .car-keys { display: inline; }
/* «Vista» al dito: secondario accanto a Esci (chiaro, col bordo); acceso in terza persona */
.walk-hint.car-hint button.car-view { color: var(--ink); background: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 1px var(--line); }
.walk-hint.car-hint button.car-view[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }

/* Al dito: sterzo a sinistra, freno e gas a destra (si tengono premuti, anche insieme); in mezzo la scena resta libera */
.car-pad { position: fixed; left: 16px; right: 16px; bottom: 96px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.car-pad > div { display: flex; align-items: flex-end; gap: 12px; pointer-events: auto; }
.car-pad button {
  width: 64px; height: 64px; display: grid; place-items: center; padding: 0;
  font: 600 13px/1 system-ui, sans-serif; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.car-pad .brake, .car-pad .gas { border-radius: 18px; }
.car-pad .gas { height: 88px; }
.car-pad button.on { color: var(--accent-ink); background: var(--accent); }
/* Telefono: sopra il suggerimento (css/walk.css); col pannello o la scheda aperti si tolgono, come il suggerimento */
@media (max-width: 700px) {
  .car-pad { bottom: 164px; }
  body:has(#panel[open]) .car-pad, body:has(#info:not([hidden])) .car-pad { display: none; }
}
