/* Safe areas & custom mobile app feel */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.pt-safe-top {
  padding-top: calc(12px + var(--safe-top));
}

.pb-safe-bottom {
  padding-bottom: calc(16px + var(--safe-bottom));
}

/* Prevent unwanted browser gestures */
html, body {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Glowing Neon Elements */
.active-card {
  border-color: #FCBF49 !important;
  background: rgba(252, 191, 73, 0.12) !important;
  box-shadow: 0 0 15px rgba(252, 191, 73, 0.25);
}

/* Floating Drift score animations */
@keyframes driftScoreFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translateY(0px) scale(1.1);
  }
  80% {
    opacity: 1;
    transform: translateY(-20px) scale(1.0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
  }
}

.animate-drift-pop {
  animation: driftScoreFloat 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Custom button press microinteractions */
.touch-btn {
  transition: transform 0.1s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.1s;
}

/* Scrollbar polish */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}