/* peek.css, owner: track D2. Holds: the peek chips (render/peek.js puts .peek-hand under a computer's seat plate: one small chip per suit, "♠ A A K 10 Q").
   Load order 13 of 15: base, primitives, frame, home, room, friends, center, table, rails, chat, coach, meld, peek, results, dialogs.
   The chips grow the seat by a line or two (the sides stack their suits) and never overlap the trick or the bids. Text is 12 px or more (AC-02), on a phone too. */

.peek-hand { min-width: 0; max-width: 100%; }
.peek-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1875rem var(--sp-1); max-width: 100%; }
.peek-chip {
  display: inline-flex; align-items: baseline; gap: 0.1875rem; padding: 0.125rem var(--sp-2); border: 1px solid var(--hair); border-radius: var(--r-md);
  background: var(--paper); color: var(--suit-black); font-size: max(0.75rem, 12px); font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em; line-height: 1.35; white-space: nowrap;
}
.peek-chip b { font-size: 0.9em; }
.peek-chip.suit-H b, .peek-chip.suit-D b { color: var(--suit-red); }
.four-color-deck .peek-chip.suit-D b { color: var(--suit-4c-d, var(--suit-red)); }
.four-color-deck .peek-chip.suit-C b { color: var(--suit-4c-c, var(--suit-black)); }
/* The side seats: one suit per line, so a 20-card hand stays narrow; the top seat is one row while it fits */
.player-left .peek-chips, .player-right .peek-chips { flex-direction: column; align-items: center; }
.player-top .peek-hand { max-width: min(35rem, 92vw); }
@media (max-width: 599.98px), (max-height: 500px) {
  .peek-chip { gap: 0.125rem; padding: 0 var(--sp-1); border-radius: var(--r-sm); }
  .peek-chips { gap: 0.125rem 0.1875rem; }
  /* Phone side seats are narrow: each suit's chip wraps onto two lines rather than running under the bid panel or off the screen */
  .player-left .peek-hand, .player-right .peek-hand { width: 100%; max-width: 100%; }
  .player-left .peek-chips, .player-right .peek-chips { align-items: stretch; }
  .player-left .peek-chip, .player-right .peek-chip {
    display: block; padding: 0.125rem var(--sp-1); text-align: center; white-space: normal; word-spacing: -0.05em;
  }
}
.easy-view .peek-chip { font-size: max(0.86rem, 12px); }
