.loot-body {
  margin: 0;
  font-family: sans-serif;
  background-image: url('images/bg3.png');
  background-repeat: repeat;
  background-size: auto;
  min-height: 100vh;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-home {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 0.85rem;
  color: pink;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.back-home:hover {
  opacity: 1;
}

.loot-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.loot-header h1 {
  font-size: 2rem;
  color: pink;
  text-shadow: 1px 1px red;
  margin: 0;
}

.loot-sub {
  font-size: 0.85rem;
  color: pink;
  margin-top: 0.4rem;
  font-style: italic;
}

.loot-grid {
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem;
}

.loot-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.loot-item img {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

.loot-item:hover img {
  transform: scale(1.08) translateY(-4px);
}

/* tooltip */
.loot-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid black;
  padding: 0.5rem 0.75rem;
  width: 160px;
  text-align: center;
  z-index: 100;
  display: none;
  pointer-events: none;
}

.loot-item:hover .loot-tooltip {
  display: block;           
}
.loot-item:hover {
  z-index: 99;
}

.tooltip-title {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

.tooltip-desc {
  display: block;
  font-size: 0.72rem;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .loot-grid {
    grid-template-columns: repeat(2, 130px);
    gap: 1.5rem;
  }

  .loot-item img {
    max-width: 130px;
    max-height: 130px;
  }
}