.scroll-wrapper {
  position: relative;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #1e1e2f;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Scrollbar styling for Webkit */
.scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}

.scroll-wrapper::-webkit-scrollbar-track {
  background: #2e2e44;
  border-radius: 12px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: #6c63ff;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #8e85ff;
}

/* Scrollbar styling for Firefox */
.scroll-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #6c63ff #2e2e44;
}

ul.body {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 16px;
}

/* Item container */
ul.body li.item {
  background: #2a2a40;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

ul.body li.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(108, 99, 255, 0.6);
}

/* Kép */
ul.body li.item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #1e1e2f;
  padding: 10px;
}

/* Szöveg alul */
ul.body li.item .bottomContainer {
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #eee;
  background: linear-gradient(90deg, rgba(108, 99, 255, 0.1), rgba(108, 99, 255, 0.2));
  border-top: 1px solid rgba(108, 99, 255, 0.3);
}

/* Ritkasági színek */
.rarity_superrare .bottomContainer {
  color: #c5aaff;
  text-shadow: 0 0 6px #b399ff88;
}

.rarity_rare .bottomContainer {
  color: #6c63ff;
  text-shadow: 0 0 4px #6c63ffbb;
}

.rarity_uncommon .bottomContainer {
  color: #5ad58e;
  text-shadow: 0 0 4px #5ad58ebb;
}

/* Reszponzív */
@media (max-width: 480px) {
  ul.body {
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    gap: 12px;
  }
}
