/* Talon, discard, declare. Token variables only. */

.tl-pair { display: flex; gap: var(--space-sm); }

/* §4.3 court tier: the face washed in its own suit colour as it turns — a frame from the 220 ms `flash`. */
.tl-court { position: relative; flex: none; }
.tl-court::after {
  content: '';
  position: absolute;
  inset: calc(var(--cw) * 0.05);
  z-index: 2;
  background: color-mix(in srgb, var(--wash, var(--pip-S)) 28%, transparent);
  pointer-events: none;
}
.tl-court[data-s='C'] { --wash: var(--pip-C); }
.tl-court[data-s='D'] { --wash: var(--pip-D); }
.tl-court[data-s='H'] { --wash: var(--pip-H); }

.tl-caption { font-size: var(--font-size-micro); letter-spacing: var(--font-tracking-label); text-transform: uppercase; }

.tl-slots { display: flex; gap: var(--space-sm); }
.tl-slot {
  flex: none;
  width: var(--cw);
  height: calc(var(--cw) / var(--size-card-aspect));
  border: var(--border-control) dashed var(--color-semantic-turn);
}
.tl-slot[data-seat='left'], .tl-slot[data-seat='right'] { border-color: var(--seat); }
.tl-slot.is-full { border: 0; }

.tl-hint { white-space: nowrap; }

.tl-groups { display: flex; align-items: flex-end; justify-content: center; }
.tl-group { display: flex; align-items: flex-end; gap: var(--space-xs); }
.tl-glabel { align-self: center; font-size: var(--font-size-body); }

.tl-big { display: grid; place-items: center; }

/* B: the tray sits above the hand, with its button beside it */
.bB-verbs:has(.tl-tray) { align-items: center; }
.tl-tray { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* C: the two places and the ladder, sent together */
.tl-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); width: 100%; }
.tl-crow { display: flex; align-items: center; gap: var(--space-sm); }
.tl-crow .tl-slots { margin-left: var(--space-sm); }

@container device (min-width: 900px) {
  .tl-step { flex-direction: row; align-items: center; justify-content: center; gap: var(--space-xl); }
  .tl-crow { flex-direction: column; }
  .tl-crow .tl-slots { margin-left: 0; }
}
