@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

body {
  margin: 0;
  background-color: #0c0c0c;
  color: #fff;
  font-family: 'Luckiest Guy', cursive;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 1000px;
}

.title {
  font-size: 4rem;
  margin-bottom: 4rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 20px #ff00ff, 0 0 40px #00ffff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.game-card {
  background: #111;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px #00ffff, 0 0 10px #ff00ff;
  border-color: rgba(255,255,255,0.6);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.game-card:hover::before {
  transform: translateX(100%);
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}

.name {
  color: #fff;
}

.plays {
  font-size: 0.9rem;
  color: #0ff;
}

/* Page fade transition */
.page {
  opacity: 1;
  transition: opacity 220ms ease; /* smooth + quick */
}

.page.is-fading {
  opacity: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page { transition: none; }
}
