@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  font-family: 'Press Start 2P', monospace;
  background-color: #1c1410;
  background-image: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.3) 2px,
      transparent 2px,
      transparent 4px
    );
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.font-retro {
  font-family: 'Press Start 2P', monospace;
  line-height: 1.6;
}

.pixel-text {
  text-shadow: 
    2px 2px 0px #000,
    -2px -2px 0px #000,
    2px -2px 0px #000,
    -2px 2px 0px #000;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-in;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #2a2419;
  border: 2px solid #78680f;
}

::-webkit-scrollbar-thumb {
  background: #c9a961;
  border: 2px solid #78680f;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Glow effect for legendary items */
@keyframes legendary-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px #f39c12);
  }
  50% {
    filter: drop-shadow(0 0 20px #f39c12);
  }
}

/* Button pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

button:not(:disabled):hover {
  transform: translateY(-2px);
}

/* Loading state */
.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    font-size: 10px;
  }
  
  .text-3xl {
    font-size: 1.5rem;
  }
  
  .text-xl {
    font-size: 1rem;
  }
  
  .text-lg {
    font-size: 0.875rem;
  }
  
  .text-sm {
    font-size: 0.625rem;
  }
  
  .text-xs {
    font-size: 0.5rem;
  }
}

/* Drag and drop visual feedback */
.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

/* Item hover effect */
img {
  transition: transform 0.2s ease;
}

img:hover {
  transform: scale(1.1);
}