/* ── Bloque «Más activos hoy» ── */

.block-active-users {
  margin-bottom: 2.5rem;
}

.block-active-users__header {
  margin-bottom: 1.1rem;
}

.block-active-users__icon {
  display: inline-block;
  vertical-align: -3px;
  color: var(--coral);
  margin-right: .25rem;
}

/* ── Fila horizontal única ── */
.au-list {
  list-style: none;
  margin: 0;
  padding: 0 0 2px;      /* 2px para box-shadow */
  display: flex;
  flex-direction: row;
  gap: .65rem;
  overflow-x: auto;      /* scroll en pantallas muy pequeñas */
}

/* ── Tarjeta individual ── */
.au-item {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .45rem;
  padding: 1rem .6rem .85rem;
  border-radius: 14px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  transition: box-shadow .18s, transform .18s;
}
.au-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* Gold / silver / bronze */
.au-item--gold   { border-color: #f59e0b; background: #fffbeb; }
.au-item--silver { border-color: #94a3b8; background: #f8fafc; }
.au-item--bronze { border-color: #d97706; background: #fffbeb; }

/* ── Número de posición ── */
.au-item__rank {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  background: var(--gray-light);
  color: var(--gray);
}
.au-item--gold   .au-item__rank { background: #f59e0b; color: #fff; }
.au-item--silver .au-item__rank { background: #94a3b8; color: #fff; }
.au-item--bronze .au-item__rank { background: #d97706; color: #fff; }

/* ── Avatar ── */
.au-item__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-deep);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.au-item__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Info (nombre + chips) ── */
.au-item__info {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.au-item__name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
}

/* ── Chips de stats ── */
.au-item__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem;
}

.au-chip {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .4rem;
  border-radius: 999px;
  white-space: nowrap;
}
.au-chip--read { background: rgba(232,93,74,.1);  color: var(--coral); }
.au-chip--time { background: rgba(16,185,129,.1); color: #059669; }
.au-chip--quiz { background: rgba(99,102,241,.1); color: #4f46e5; }
