* {
  font-family: 'Fira Code', monospace;
}

.pixel-text {
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.challenge-card {
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(40, 40, 60, 0.9));
  border: 2px solid;
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease;
}

.challenge-card.difficulty-1 {
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.challenge-card.difficulty-2 {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.challenge-card.difficulty-3 {
  border-color: #f87171;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.95);
}

input:focus, select:focus {
  animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
  }
}

/* Scanline effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}