.pairs {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  width: 100%;
}

.pairs-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  min-height: clamp(8rem, 20vw, 12rem);
}

.pairs-meta {
  margin: 0;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--c-ink-muted);
}

/* --- The pairs ----------------------------------------------------------- */

.pair-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-4);
}

.pair-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--hue-tint);
  color: var(--c-ink);
  border-top: 4px solid var(--hue);
  animation: pair-in 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* The cards land one after another rather than all at once — with a room
   watching, the reveal is half the fun. */
.pair-card:nth-child(1) {
  animation-delay: 0ms;
}
.pair-card:nth-child(2) {
  animation-delay: 60ms;
}
.pair-card:nth-child(3) {
  animation-delay: 120ms;
}
.pair-card:nth-child(4) {
  animation-delay: 180ms;
}
.pair-card:nth-child(5) {
  animation-delay: 240ms;
}
.pair-card:nth-child(6) {
  animation-delay: 300ms;
}
.pair-card:nth-child(n + 7) {
  animation-delay: 360ms;
}

@keyframes pair-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pair-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--hue);
}

.pair-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pair-people li {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

/* The person sitting out is stated plainly rather than hidden — they need to
   know, and so does the room. */
.pair-card.is-solo {
  background: transparent;
  border: 1px dashed var(--c-line);
  border-top: 4px solid var(--c-line);
}

.pair-card.is-solo .pair-label {
  color: var(--c-ink-muted);
}

.pair-card.is-solo .pair-people li {
  color: var(--c-ink-muted);
}

/* --- Setup --------------------------------------------------------------- */

.name-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  min-height: 36px;
  border-radius: 999px;
  background: var(--hue-tint);
  color: var(--c-ink);
  font-weight: 600;
}

.pairs-names {
  width: 100%;
  max-width: 26rem;
}

.pairs-names textarea {
  font: inherit;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  width: 100%;
  resize: vertical;
  min-height: 8rem;
}

.pairs-odd {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: center;
  align-items: center;
}

.pairs-odd legend {
  padding: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ink-muted);
  text-align: center;
  width: 100%;
  margin-bottom: var(--space-2);
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-target);
  font-size: var(--text-sm);
  color: var(--c-ink);
  cursor: pointer;
}

.radio input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--c-confirm);
}

.pairs-hint {
  margin: 0;
  color: var(--c-ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.pairs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

/* --- Fullscreen ---------------------------------------------------------- */

.toy.is-fullscreen .pairs {
  justify-content: center;
  height: 100%;
}

.toy.is-fullscreen .pair-people li {
  font-size: var(--text-xl);
}

.toy.is-fullscreen .pairs-names,
.toy.is-fullscreen .pairs-odd {
  opacity: 0;
  transition: opacity 200ms ease;
}

.toy.is-fullscreen .pairs-names:focus-within,
.toy.is-fullscreen .pairs-odd:focus-within,
.toy.is-fullscreen:hover .pairs-names,
.toy.is-fullscreen:hover .pairs-odd {
  opacity: 1;
}
