#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.75);
  z-index: -5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
  font-size: 14px;
}

header {
  background: #0f0f0f;
  padding: 1rem;
  text-align: center;
  border-bottom: 2px solid #00ffc8;
  box-shadow: 0 0 15px #00ffc833;
  z-index: 1;
  position: relative;
}

header h1 {
  font-size: 2rem;
  color: #00ffc8;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

header p {
  font-size: 0.9rem;
  color: #aaa;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(22, 22, 22, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #00ffc820;
  box-shadow: 0 4px 12px rgba(0, 255, 200, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

nav a:hover {
  color: #00ffc8;
  background: rgba(0, 255, 200, 0.1);
  box-shadow: 0 0 8px #00ffc840;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40vh;
  position: relative;
  z-index: 1;
}

#searchInput {
  width: 500px;
  max-width: 90%;
  padding: 1.25rem;
  font-size: 1.2rem;
  background: #202020;
  border: 2px solid #00ffc8;
  border-radius: 12px;
  color: #00ffc8;
  box-shadow: 0 0 20px #00ffc820;
  transition: all 0.4s ease, font-size 0.3s ease;
}

#searchInput:focus {
  outline: none;
  width: 80vw;
  font-size: 1.6rem;
  padding: 1.75rem;
  box-shadow: 0 0 30px #00ffc899;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.game-card {
  background: #1b1b1b;
  border: 1px solid #00ffc825;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 8px #00ffc810;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 14px #00ffc855;
}

.game-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 10px #00ffc825;
}

.game-card h2 {
  font-size: 1.1rem;
  color: #00ffc8;
  margin-bottom: 0.5rem;
  text-align: center;
}

.game-card a {
  color: #00ffc8;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #00ffc8;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.game-card a:hover {
  background: #00ffc822;
  box-shadow: 0 0 8px #00ffc850;
}