/* УБ-ын такси (drive.js) */
.drive-card { padding: 10px !important; }
.drive-wrap { position: relative; }
.drive-canvas {
  display: block;
  width: 100%;
  height: clamp(320px, calc(calc(100dvh / var(--site-zoom, 1)) - 340px), 640px);
  border-radius: 16px;
  background: #8fb86a;
  touch-action: none;
}
.drive-gl { display: none; width: 100%; height: clamp(320px, calc(calc(100dvh / var(--site-zoom, 1)) - 340px), 640px); border-radius: 16px; background: #bfe3f2; touch-action: none; }
.drive-wrap[data-mode="3d"] .drive-gl { display: block; }
.drive-wrap[data-mode="3d"] .drive-canvas { position: absolute; inset: 0; height: 100%; background: transparent; pointer-events: none; }
html body .drive-view {
  position: absolute; left: 10px; top: 86px; z-index: 2;
  min-width: 44px; min-height: 0; height: 32px; margin: 0; padding: 0 10px;
  border: 0 !important; border-radius: 10px !important;
  background: #1b1d2ecc !important; color: #fff !important; box-shadow: none !important; transform: none !important;
  font-size: 13px; font-weight: 800;
}
.drive-pad { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.drive-pad[data-desktop] { display: none; }
.drive-pad > div { display: flex; gap: 10px; pointer-events: auto; }
html body .drive-pad button {
  width: 68px; height: 68px; margin: 0; padding: 0;
  border: 2px solid #ffffffaa !important; border-radius: 18px !important;
  background: #1b1d2e99 !important; color: #fff !important;
  box-shadow: none !important; transform: none !important;
  font-size: 26px; touch-action: none; user-select: none; -webkit-user-select: none;
}
html body .drive-pad button.on { background: #ff3d71cc !important; }
html body .drive-pad .drive-gas { background: #1f8a4ccc !important; }
.drive-help { margin: 8px 0 0; text-align: center; font-size: 12px; opacity: .75; }
@media (pointer: coarse) { .drive-help { display: none; } }
.drive-keys { font-size: 13px; opacity: .8; }
.drive-rank { display: grid; gap: 6px; max-width: 360px; margin: 10px auto; padding: 0; list-style: none; counter-reset: rank; }
.drive-rank li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--m-panel-2, #f6f7fc); counter-increment: rank; }
.drive-rank li::before { content: counter(rank); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--m-text, #1b1d2e); color: var(--m-panel, #fff); font-size: 12px; font-weight: 800; }
.drive-rank li:first-child::before { background: #f2c94c; color: #1b1d2e; }
.drive-rank b { flex: 1; text-align: left; }
.drive-rank span { font-weight: 800; font-variant-numeric: tabular-nums; }
