#screen-collection {
  justify-content: flex-start;
  padding-top: 100px;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 50px;
}

#screen-collection::-webkit-scrollbar {
  display: none;
}

.collection-header {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.collection-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#collection-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  padding: 0 20px;
  gap: 30px;
}

.tier-section {
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.tier-header {
  font-size: 1.2rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  width: 100%;
}

.tier-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 10px 0;
}

.pet-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
  position: relative;
  min-height: 220px;
  justify-content: space-between;
}

.pet-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.pet-card h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  text-transform: capitalize;
  text-align: center;
}

.pet-count {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 10px;
  border-radius: 10px;
  opacity: 0.7;
}

.pet-card.locked {
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

.pet-card.locked img {
  filter: brightness(0) invert(1) opacity(0.1);
}

.mega-card-unlocked {
  background: linear-gradient(145deg, rgba(50, 0, 50, 0.6), rgba(0, 0, 0, 0.8));
  border: 1px solid #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
  transform: scale(1.02);
}

.mega-title {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900 !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
}

.evolve-btn {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border: none;
  color: #000;
  font-weight: 900;
  padding: 8px 15px;
  border-radius: 20px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px #ffd700;
  animation: wiggle 2s infinite;
  width: 100%;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.evolve-btn:hover {
  transform: scale(1.05);
}

.glow-mega {
  filter: drop-shadow(0 0 15px #ff00ff) !important;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  5% {
    transform: rotate(-2deg);
  }
  10% {
    transform: rotate(2deg);
  }
  15% {
    transform: rotate(0deg);
  }
}
