/* Custom Base and Typography */
body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Glassmorphic elements */
.glass-pill {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Active Difficulty Button State */
.diff-btn.active-diff {
  ring-width: 2px;
  --tw-ring-color: rgb(251 191 36);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  transform: scale(1.02);
}

/* Touch controls buttons feedback */
#btn-steer-left:active,
#btn-steer-right:active {
  transform: scale(0.92);
  background-color: rgba(56, 189, 248, 0.35);
}

#btn-nitro-trigger:active {
  transform: scale(0.88);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
}

/* Road and scenery canvas takes all screen space */
#canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Custom Scrollbars for Garage modal */
#screen-garage div::-webkit-scrollbar {
  width: 6px;
}
#screen-garage div::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 9999px;
}
#screen-garage div::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
}
#screen-garage div::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.7);
}

/* RTL Safety for numbers and icons */
.dir-ltr {
  direction: ltr;
}