/* Clean Native-feeling Mobile Optimizations */
* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  touch-action: manipulation;
  background-color: #0b0f19;
}

/* Heart animations */
.heart-lost {
  filter: grayscale(100%);
  opacity: 0.25;
  transform: scale(0.8);
}

.heart-pop {
  animation: heartPulse 0.3s ease-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Shake Card on Wrong Answer */
.shake-card {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Success Card Glow */
.success-glow {
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.45) !important;
  border-color: #10B981 !important;
}

/* Floating Points Badge */
.floating-score {
  position: absolute;
  pointer-events: none;
  font-weight: 900;
  font-size: 1.25rem;
  color: #FBBF24;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  animation: floatUp 0.8s ease-out forwards;
  z-index: 50;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -15px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -45px) scale(1);
  }
}

/* Modal Pop Animation */
.animate-scale-up {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}