.navigation { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.driver-modal { padding-bottom: max(12px, env(safe-area-inset-bottom)); max-height: min(85dvh, 720px); }
.driver-modal-list { overscroll-behavior: contain; }
.driver-select, .navigation button, .tabs button, .counter button { min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .app > div:has(> .hero), .ranking-page, .ffg-ranking { animation: ff-enter 180ms ease-out both; }
  .driver-modal { animation: ff-sheet 210ms cubic-bezier(.2,.75,.25,1) both; }
  .driver-modal-backdrop { animation: ff-fade 140ms ease-out; }
  .driver-card .portrait img, .success { animation: ff-enter 180ms ease-out both; }
  .ffg-slot { animation-duration: 220ms; animation-delay: min(var(--ff-delay, 0ms), 100ms) !important; }
  .ffg-slot:nth-child(2n) { --ff-delay: 35ms; }
  .ffg-slot:nth-child(3n) { --ff-delay: 70ms; }
  .driver-select:active, .driver-modal-item:active { transform: scale(.98); }
  @keyframes ff-enter { from { opacity: 0; translate: 0 5px; } }
  @keyframes ff-sheet { from { opacity: .55; translate: 0 24px; } }
  @keyframes ff-fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .app *, .app *::after, .app *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ffg-slot { opacity: 1; }
}
