/* Tilt driving has been retired. Keep the old HUD element out of the layout. */
.tilt-drive {
  display: none !important;
}

/* The brake stays round while gas becomes a large analog pedal. */
.pedals {
  padding-top: 7.5px;
  align-items: end;
  gap: clamp(9px, 1.6vw, 15px);
}

.gas {
  --gas-level: 0;
  width: clamp(88.5px, 15vw, 127.5px);
  height: clamp(142.5px, 42vh, 213.75px);
  border-radius: clamp(39px, 7vw, 58.5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10.5px 21px;
  line-height: 1;
  text-align: center;
  font-size: max(var(--turn-text-floor, 11px), clamp(0.6rem, 2vw, 0.825rem));
  transform: translateY(calc(var(--gas-level) * -9px));
  transition:
    transform 120ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 120ms ease;
  will-change: transform;
}

.gas.is-dragging {
  transition: none;
  box-shadow: 5.25px 6.75px 0 var(--turn-shadow-color);
}

.gas.is-dragging:active,
.gas.is-dragging.is-down {
  transform: translateY(calc(var(--gas-level) * -9px));
}

@media (max-height: 322.5px) {
  .pedals {
    padding-top: 3px;
  }

  .gas {
    width: clamp(81px, 14vw, 111px);
    height: clamp(129px, 46vh, 171px);
    border-radius: clamp(36px, 6.5vw, 51px);
    padding-bottom: 16.5px;
    transform: translateY(calc(var(--gas-level) * -6.75px));
  }

  .gas.is-dragging:active,
  .gas.is-dragging.is-down {
    transform: translateY(calc(var(--gas-level) * -6.75px));
  }
}
