*,
html,
body {
  margin: 0;
  padding: 0;
  font-size: 10px; /* 1rem = 10px */
}
body {
  font-family: var(--font-depixelklein);
  background-color: var(--biru3);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.container {
  display: grid;
  gap: 20px;
  padding: 0 10rem 5rem 10rem;
  perspective: 1000px;
  max-width: 1500px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .container {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .container {
    grid-template-columns: repeat(4, 1fr);
    padding: 15rem 5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
    padding: 10rem 3rem;
  }
}

@media (max-width: 767px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
    padding: 5rem 1rem;
  }
}

.card {
  width: 100%;
  height: auto;
  padding: 0 0 1rem 0;
  background-color: var(--biru2);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--biru2);
  text-align: center;
  overflow: hidden;
  border: 2px dashed var(--biru1);
  will-change: transform, box-shadow;
  transition: all 0.3s ease-in-out;
}
.card:hover {
  box-shadow: 0 0 20px var(--biru1), inset 0 20px 30px -10px var(--biru1);
  border: 2px dashed var(--biru1);
  filter: brightness(1.1);
  transform: scale(1.05);
}
.card a {
  text-decoration: none;
}
.card img {
  object-fit: cover;
  width: 100%;
  border-radius: 19px;
  transition: 0.5 ease;
}
.namaGame {
  color: var(--putih);
  font-weight: 900;
  border-radius: 5px;
  font-size: 18px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* agat teks berubah menjadi titik titik */
  padding: 0 1rem;
  margin-top: 4px;
  text-shadow: 1px 1px 3px var(--biru3);
}
.dev {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--putihRedup);
  display: block;
  font-size: 12px;
  transition: color 0.1s ease;
}

/* ============ */
.filter {
  display: flex;
  gap: 1rem;
  padding: 2rem 5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  padding: 2rem 10rem;
}
.filter button {
  padding: 7px 24px;
  border: 2px dotted var(--biru2);
  border-radius: 8px;
  background: transparent;
  color: var(--putih);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  min-width: 80px;
  font-family: inherit;
}
.filter button:hover {
  background: var(--biru1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.filter button.active {
  background: var(--biru1);
  color: white;
}
