/* Manual gear controls and speed-driven movement feedback. */
.ov-motorsport #retro {
  display: none !important;
}
.ov-shift-controls {
  flex: 0 0 100%;
  order: -2;
  min-width: 0;
}
.ov-shift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}
.ov-shift-row button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  touch-action: manipulation;
}
.ov-shift-row button > span[aria-hidden] {
  font-size: 26px;
  font-weight: 450;
  line-height: 1;
}
.ov-shift-row button:enabled:hover {
  background: var(--ov-accent-soft);
  border-color: var(--ov-accent);
}
.ov-shift-row button:enabled:active {
  transform: scale(0.98);
}
.ov-shift-row button:disabled {
  opacity: 0.4;
  cursor: default;
}
.ov-shift-row #ov-shift-up:enabled {
  border-color: #ff754d66;
  background: var(--ov-accent-soft);
}
.ov-shift-current {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ov-shift-current > span {
  font-size: 9px;
  color: var(--muted);
}
.ov-shift-current output {
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.ov-motorsport[data-manual="true"] .ov-transport {
  flex-wrap: wrap;
  row-gap: 10px;
}
.ov-motorsport .ov-transport .local-volume {
  order: -1;
}
.ov-shift-help .aide .panel-body {
  display: block;
}
.ov-shift-help .aide-liste {
  margin: 0 0 22px;
}
.ov-shift-help .aide-liste li {
  margin-bottom: 13px;
  line-height: 1.6;
}
.ov-shift-help #aide-ok {
  width: 100%;
}
.ov-shift-help-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.ov-motion {
  width: 100%;
  flex: 0 0 auto;
  padding: 7px 8px 0;
}
.ov-motion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  margin-bottom: 7px;
}
.ov-motion-heading > span {
  color: var(--text);
  font-weight: 650;
}
.ov-motion-heading small {
  font-size: 8px;
  font-weight: 450;
  margin-left: 5px;
  color: var(--muted);
}
.ov-motion-heading output {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ov-motion-track {
  height: 19px;
  position: relative;
  border-radius: 5px;
  background: var(--raised);
  overflow: hidden;
}
.ov-motion-track::after {
  content: "";
  position: absolute;
  inset: 9px 0 auto;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--muted) 0 7px,
    transparent 7px 22px
  );
  opacity: 0.22;
}
.ov-motion-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--motion, 0%);
  background: var(--ov-accent);
  opacity: 0.16;
  transition: width 150ms linear;
}
.ov-motion-car {
  position: absolute;
  width: 22px;
  height: 19px;
  left: clamp(12px, var(--motion, 0%), calc(100% - 12px));
  transform: translateX(-50%);
  color: var(--muted);
  display: grid;
  place-items: center;
  background: var(--surface);
  z-index: 1;
  border-radius: 4px;
  transition: left 150ms linear;
}
.ov-motion-car svg {
  width: 17px;
  height: 17px;
}
.ov-motion[data-moving="true"] .ov-motion-car {
  color: var(--ov-accent);
}
.ov-motion[data-moving="true"] .ov-motion-track::after {
  animation: ov-road-flow var(--motion-duration, 1s) linear infinite;
}
@keyframes ov-road-flow {
  to {
    background-position: -22px 0;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  .ov-motion {
    padding-top: 2px;
  }
  .ov-motion-heading {
    margin-bottom: 4px;
    font-size: 9px;
  }
  .ov-motion-track {
    height: 17px;
  }
  .ov-shift-row button {
    min-height: 44px;
    padding: 7px 12px;
  }
  .ov-motorsport[data-manual="true"] .ov-transport {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .ov-motorsport[data-manual="true"] .ov-ignition {
    order: -1;
    flex: 0 0 72px;
  }
  .ov-motorsport[data-manual="true"] .ov-ignition-copy {
    display: none;
  }
  .ov-motorsport[data-manual="true"] .ov-shift-controls {
    order: 0;
    flex: 0 0 285px;
  }
  .ov-motorsport[data-manual="true"] .ov-shift-row {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    gap: 5px;
  }
  .ov-motorsport[data-manual="true"] .ov-shift-row button {
    padding: 7px;
    font-size: 11px;
    gap: 5px;
  }
  .ov-motorsport[data-manual="true"] .pedals {
    grid-template-columns: minmax(65px, 1fr) minmax(110px, 2fr);
    gap: 9px;
  }
  .ov-motorsport[data-manual="true"] .pedal > svg {
    display: none;
  }
  .ov-motorsport[data-manual="true"] .ov-transport .pedal > span {
    padding-left: 0;
  }
  .ov-motorsport[data-manual="true"] .ov-transport .pedal small {
    display: none;
  }
}
@media (max-width: 700px) {
  .ov-motorsport[data-manual="true"] {
    padding-bottom: 204px;
  }
  .ov-motorsport[data-manual="true"] .ov-transport {
    min-height: 185px;
    row-gap: 7px;
  }
  .ov-shift-row {
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    gap: 7px;
  }
  .ov-shift-row button {
    min-height: 48px;
    padding: 8px;
    font-size: 12px;
    gap: 8px;
  }
  .ov-shift-current output {
    font-size: 23px;
  }
  .ov-motion {
    padding-top: 3px;
  }
  .ov-motion-heading {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ov-motion-track::after {
    animation: none !important;
  }
  .ov-motion-fill,
  .ov-motion-car {
    transition: none;
  }
}
