/* sam quiz : classement bien visible (bouton du haut, apercu dans la carte, tuile cliquable) */

.rank-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
}

.rank-btn::after {
  content: "Classement";
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 350px) {
  .rank-btn {
    padding: 0 12px;
  }

  .rank-btn::after {
    display: none;
  }
}

.stat-tile:nth-child(2) {
  cursor: pointer;
}

.stat-tile:nth-child(2) span::after {
  content: " ›";
  font-weight: 900;
}

.lb-card {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
}

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 800;
}

.lb-all {
  flex: none;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.lb-row.me {
  background: rgba(251, 191, 36, 0.28);
}

.lb-medal {
  flex: none;
  width: 28px;
  font-size: 1.25rem;
  text-align: center;
}

.lb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-sg {
  flex: none;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.lb-note {
  margin: 4px 2px 0;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.85;
}

.lb-skel {
  height: 38px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
