/* Global Polish & Fonts */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #07090e;
  color: #ffffff;
  user-select: none;
  touch-action: manipulation;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #090c15;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* View Transition Styles */
.view-screen {
  animation: fadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mode Cards Glowing hover effects */
.mode-card {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.mode-card:hover {
  border-color: rgba(16, 185, 129, 0.8);
}

/* Navigation active tab glow */
.nav-btn.active {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Map Pin Pulse */
.map-pin {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.map-pin:hover {
  z-index: 20;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Control buttons feedback */
.match-action-btn:active {
  transform: scale(0.92);
  filter: brightness(1.3);
}

/* Responsive adjustments for pitch & city canvas */
#pitch-canvas {
  background: radial-gradient(circle, #235936 0%, #153821 80%, #0d2215 100%);
}

#openworld-canvas {
  background: #060e0a;
}

#street-canvas {
  background: radial-gradient(circle, #281d16 0%, #17110d 80%, #0a0705 100%);
}

/* Touch controls responsiveness */
#city-dpad button {
  touch-action: none;
}