/* Team page: LEGO flip, with a hint people can actually read */

/* Words switch by device: "Tap" on phones, "Hover" with a mouse */
.fh-hover { display: none; }
@media (hover: hover) and (pointer: fine) {
  .fh-tap { display: none; }
  .fh-hover { display: inline; }
}

.team-flip-note {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 2.25rem;
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.team-flip-note i { color: var(--accent); }

/* The badge on each photo */
.member-photo .flip-hint {
  left: 50%; right: auto; bottom: 0.7rem;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.42rem 0.75rem;
  animation: hintNudge 2.6s var(--e-soft) 1.2s 2;
}
.member-photo .flip-hint i { font-size: 0.85em; }
.member-photo .fh-on { display: none; }
.member-photo.flip.is-flipped .fh-off { display: none; }
.member-photo.flip.is-flipped .fh-on { display: inline; }
.member-photo.flip.is-flipped .flip-hint {
  transform: translateX(-50%) scale(1.04);
}
.member-photo.flip.is-flipped .flip-hint::after { content: none; }
/* With a mouse, hovering only lifts the badge; the click does the switch */
@media (hover: hover) and (pointer: fine) {
  .member-photo.flip:hover .flip-hint { transform: translateX(-50%) scale(1.06); }
}

@keyframes hintNudge {
  0%, 100% { transform: translateX(-50%) scale(1); }
  12% { transform: translateX(-50%) scale(1.1); }
  24% { transform: translateX(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .member-photo .flip-hint { animation: none; }
}
