h2.participant-list-title {
  display: block;
  border: 1px solid #000000;
  padding: 12px;
  text-align: center;
  max-width: 420px;
  margin: 40px auto 0 auto;
}

.participant-list-date {
  text-align: center;
  font-size: 14px;
  margin: 8px 0 24px 0;
}

p.notice-warning {
  color: rgb(240, 80, 80);
}

.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 24px 0;
  overflow: hidden;
}

.participant-list .participant {
  display: flex;
  border: 1px solid #000000;
  width: calc(25% - 9px);
  font-size: 1.6rem;
  flex: 0 0 auto;
}

@media screen and (max-width: 940px) {
  .participant-list .participant {
    width: calc(33.333% - 8px);
  }
}

@media screen and (max-width: 720px) {
  .participant-list .participant {
    width: calc(50% - 6px);
  }
}

@media screen and (max-width: 480px) {
  .participant-list .participant {
    width: 100%;
  }
}

.participant .nickname {
  padding: 8px 0 8px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.participant .age {
  display: none;
}

/* Animation styles for slide-in effect */
.participant {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--animation-delay, 0s);
  position: relative;
}

.participant.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Sparkling effect */
@keyframes sparkle {
  0% {
    background-position: 100% 100%;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  75% {
    opacity: 1;
  }
  100% {
    background-position: 0% 0%;
    opacity: 0;
  }
}

.participant::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    135deg,
    transparent 20%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  pointer-events: none;
  opacity: 0;
}

.participant:hover::before {
  opacity: 1;
  animation: sparkle 0.6s ease-in-out forwards;
}

.loading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  width: 100%;
}
