@import url("./common.css");

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
}

.team-grid__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.team-grid__backdrop {
  aspect-ratio: 1440 / 1800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 0.75rem;
}

.team-grid__item--gold .team-grid__backdrop {
  background: linear-gradient(160deg, #c9a227 0%, #8b6914 100%);
}

.team-grid__item--ltblue .team-grid__backdrop {
  background: linear-gradient(160deg, #7eb6d9 0%, #3d7ea6 100%);
}

.team-grid__item--orange .team-grid__backdrop {
  background: linear-gradient(160deg, #e07a3f 0%, #a84318 100%);
}

.team-grid__item--ink .team-grid__backdrop {
  background: linear-gradient(160deg, #2d2d44 0%, #0f0f1a 100%);
}

.team-grid__avatar {
  width: 72%;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.5rem;
}

.team-grid__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

.team-grid__caption p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.team-grid__caption p + p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.team-legend {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}

.team-legend code {
  font-size: 0.75rem;
}

.demo-hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
