body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #0f1722, #111827);
  color: #e5e7eb;
}

header {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(90deg, #111827, #0f1722);
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

#searchInput {
  margin-top: 20px;
  padding: 12px 20px;
  width: 50%;
  max-width: 400px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

#searchInput::placeholder {
  color: rgba(229, 231, 235, 0.5);
}

#gamesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  padding: 40px;
  max-width: 1400px;
  margin: auto;
}

.game-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.35s ease;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.game-card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.game-info {
  padding: 15px;
}

.game-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sale-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #22c55e;
}

.discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.aaa-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: gold;
  color: black;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 20px;
}

#loading {
    text-align: center;
    padding: 50px;
    font-size: 1.5rem;
}
