/* ---------------------------------------------------------------------------
   Room-player portrait frames (2026-11-13 15:18).
   The user asked for a SQUARE avatar frame, not for the avatars to be
   replaced by X / O pieces: the two smiley faces stay, and the right-hand
   piece badge stays. Only the shape of the portrait's white border changes.

   table.css still declares the circular 50% base (the leaderboard frame test
   relies on that), so this file is a deliberate override loaded after it.
   rank-badges.css already gives the leaderboard a 22% soft square — reusing
   the same radius keeps the two portrait families visually consistent.
   --------------------------------------------------------------------------- */
body.table-home-theme .players-panel .seat .seat-avatar{
  border-radius:22%;
}
/* Empty "waiting for player" placeholder has no portrait of its own. */
body.table-home-theme .players-panel .empty-seat .avatar-shell{
  border-radius:22%;
}
/* The gold / cloud / night VIP crest is a circular ornament wrapped around
   the portrait; its inner image must stay round for the crest to fit. */
body.table-home-theme .players-panel .seat:has(.avatar-frame) .seat-avatar{
  border-radius:50%;
}

/* Match portraits are unframed; waiting rooms and shop previews keep their
   own presentation. #seats moves into the pool/snooker header during play. */
body.table-home-theme[data-screen="play"] #seats .avatar-frame{display:none}
body.table-home-theme[data-screen="play"] #seats .seat-avatar{
  border:0!important;
  box-shadow:none!important;
  border-radius:22%!important;
}
/* The legacy .member-label.annual gradient otherwise beats table.css's
   generic image rule and renders an empty gold rectangle. */
body.table-home-theme[data-screen="play"] #seats .member-label{
  display:inline-block!important;
  width:64px;height:32px;flex-shrink:0;
  padding:0;border:0;box-shadow:none;font-size:0;color:transparent;
  background:url('/assets/member/vip-laurel-v3.png') center/contain no-repeat;
}
body.table-home-theme[data-screen="play"] #seats .member-label.annual{
  background-image:url('/assets/member/annual-vip-laurel-v3.png');
}
@media(max-width:760px){
  body.table-home-theme[data-screen="play"] #seats .member-label{width:48px;height:24px}
}
