.child-list-container {
  background: var(--child-list-bg, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 1rem;
  color: var(--child-list-title-color, #fff);
  width: 100%;
  box-sizing: border-box;
}

.child-list-container h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--child-list-title-color, #fff);
}

.scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.scroll-wrapper::-webkit-scrollbar-track {
  background: var(--child-list-scrollbar-track, rgba(255, 255, 255, 0.05));
  border-radius: 10px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(
    --child-list-scrollbar-thumb,
    linear-gradient(180deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8))
  );
  border-radius: 10px;
  border: var(--child-list-scrollbar-thumb-border, 2px solid rgba(255, 255, 255, 0.08));
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(
    --child-list-scrollbar-thumb-hover,
    linear-gradient(180deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1))
  );
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.item-scroll {
  display: flex;
  gap: 0.75rem;
  min-width: min-content;
  padding: 0.5rem 0;
}

/* Fallback for browsers that don't support flex gap */
.item-card + .item-card {
  margin-left: 0.75rem;
}

.item-card {
  position: relative;
  background: var(--item-card-bg, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 0.75rem;
  min-width: 140px;
  max-width: 220px;
  width: 100%;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
  border: var(--item-card-border, 1px solid rgba(255, 255, 255, 0.08));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--item-card-hover-shadow, 0 8px 20px rgba(0, 0, 0, 0.12));
}

.item-card.ready {
  box-shadow: var(--item-card-ready-shadow, 0 0 0 3px #667eea88, 0 0 12px #667eea44);
  border-color: var(--item-card-ready-border, #667eea);
  animation: ready-glow 0.7s;
}

.item-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.7);
}

.item-card.good {
  border-color: var(--item-card-good-border, rgba(46, 204, 113, 0.9)); /* green */
  background: var(--item-card-good-bg, rgba(46, 204, 113, 0.06));
}

.item-card.bad {
  border-color: var(--item-card-bad-border, rgba(255, 99, 71, 0.95)); /* red */
  background: var(--item-card-bad-bg, rgba(255, 99, 71, 0.03));
}

@keyframes ready-glow {
  0% {
    box-shadow: 0 0 0 0 #667eea00;
    border-color: inherit;
  }
  100% {
    box-shadow: var(--item-card-ready-shadow, 0 0 0 3px #667eea88, 0 0 12px #667eea44);
    border-color: var(--item-card-ready-border, #667eea);
  }
}

.item-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--item-name-color, #fff);
  line-height: 1.2;
  word-break: break-word;
}

/* Image styling */
.item-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 0.4rem auto;
  display: block;
}

.item-points {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--item-points-color, #ffd166);
  font-size: 1rem;
  font-weight: 900;
  text-shadow: var(
    --item-points-shadow,
    -1px -1px 0 #1a3d1f,
    1px -1px 0 #1a3d1f,
    -1px 1px 0 #1a3d1f,
    1px 1px 0 #1a3d1f
  );
}

.item-points.ready {
  color: var(--item-points-ready-color, #38c172); /* a nice green */
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .item-card {
    min-width: 110px;
    max-width: 150px;
    padding: 0.6rem;
  }
  .item-name {
    font-size: 0.86rem;
  }
  .item-image {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.3rem auto;
  }
  .item-points {
    font-size: 0.78rem;
  }
  .scroll-wrapper::-webkit-scrollbar {
    height: 10px;
  }
  .scroll-wrapper::-webkit-scrollbar-thumb {
    border-width: 1px;
  }
}

.pending-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  background: var(--pending-block-bg, #222b);
  color: var(--pending-block-color, #62ff7a);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  border-radius: 6px;
  padding: 0.4rem 0;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
}
