@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

body {
  background: linear-gradient(to bottom right, #161616, #1f1f1f, #000000);
  color: white;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  padding: 2.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(to right, #303030, #f7f7f7);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.game-card {
  background: rgba(19, 19, 19, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  border: 1px solid #292929;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.game-card img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: contain; 
  margin-bottom: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-color: #000000; 
}

.game-card img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.game-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-card p {
  color: #9e9e9e;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}


.game-card a.play-button {
  display: inline-block;
  background-color: #686868;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 8px rgba(104, 104, 104, 0.5);
}

.game-card a.play-button:hover {
  background-color: #3d3d3d;
  transform: scale(1.05);
  box-shadow: 0 0 15px #ffffff, 0 0 20px #ffffff;
}
