/* KARACHI AUTO — styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #050912;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e2e8f0;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
}

#game {
  display: block;
  width: 100%; height: 100%;
  cursor: crosshair;
}

/* ---- touch controls (mobile only) ---- */
#touch-pad {
  position: fixed;
  left: 0; bottom: 0;
  width: 190px; height: 190px;
  display: none;
  pointer-events: none;
  z-index: 20;
}

.tbtn {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,158,11,0.45);
  background: rgba(10,15,24,0.55);
  color: #f59e0b;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.tbtn:active { background: rgba(245,158,11,0.28); }
.tbtn[data-key="w"] { left: 67px; top: 6px; }
.tbtn[data-key="a"] { left: 8px;  top: 67px; }
.tbtn[data-key="s"] { left: 67px; top: 128px; }
.tbtn[data-key="d"] { left: 126px; top: 67px; }
.tbtn.small {
  width: 42px; height: 42px;
  left: 150px; top: 150px;
  font-size: 14px;
}

@media (max-width: 820px), (pointer: coarse) {
  #touch-pad { display: block; }
}

/* hide touch pad when player is driving is not tracked in CSS;
   buttons are harmless while walking */
