/* Card table: a rounded rectangle of felt with the players sitting on its rim. */

/* Seats look the same everywhere: avatar on top, a dark name tag below. */
#roomMain .card-game-stage .table-seat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: auto;
  max-width: 96px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  outline: none;
  text-align: center;
}
#roomMain .card-game-stage .table-seat .seat-avatar {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0;
  overflow: hidden;
  border: 3px solid #fff8e8;
  border-radius: 14px;
  background: #c6abff;
  box-shadow: 0 3px 0 #3b2210, 0 6px 12px #0005;
}
#roomMain .card-game-stage .table-seat .seat-avatar svg { display: block; width: 100%; height: 100%; }
#roomMain .card-game-stage .table-seat .seat-tag {
  display: grid;
  max-width: 100%;
  margin-top: -6px;
  padding: 2px 8px 3px;
  border-radius: 999px;
  background: #241b2fe6;
  color: #fff;
  box-shadow: 0 2px 6px #0004;
}
#roomMain .card-game-stage .table-seat .seat-tag b { overflow: hidden; font-size: 11px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
#roomMain .card-game-stage .table-seat .seat-tag span { font-size: 10px; line-height: 1.2; opacity: .8; white-space: nowrap; }
#roomMain .card-game-stage .table-seat-active { background: none; outline: none; box-shadow: none; }
#roomMain .card-game-stage .table-seat-active .seat-avatar { border-color: #f8d633; }
#roomMain .card-game-stage .table-seat-active .seat-tag { background: #f8d633; color: #241b2f; }
#roomMain .card-game-stage .table-seat-active::after { inset: -6px -6px auto; height: 62px; border-radius: 18px; }
#roomMain .card-game-stage .seat-passed .seat-avatar { filter: grayscale(.5) brightness(.9); }
#roomMain .card-game-stage .table-seat .seat-turn { top: -10px; right: -12px; }

/* Rectangle felt (13 and Hold'em). */
:root #roomMain .card-game-stage.card-game-stage .table-felt.table-felt { border-radius: 26px; }

/* 13: seats on the rim (top, left, right, and you at the bottom), cards in the middle. */
#roomMain .card-game-thirteen .thirteen-table {
  position: relative;
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 46px 22px;
}
#roomMain .card-game-thirteen .thirteen-table .table-felt {
  height: 156px;
  padding: 30px 46px 26px;
}
#roomMain .card-game-thirteen .thirteen-table .table-seat { position: absolute; z-index: 3; }
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="top"] { top: 0; left: 50%; transform: translateX(-50%); }
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="bottom"] { display: flex; bottom: 0; left: 50%; transform: translateX(-50%); }
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="left"] { top: 50%; left: 0; transform: translateY(-50%); }
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="right"] { top: 50%; right: 0; transform: translateY(-50%); }
/* Your own seat sits low on the rim so it doesn't cover the cards. */
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="bottom"] .seat-avatar { width: 42px; height: 42px; }

@media (max-width: 680px) {
  #roomMain .card-game-thirteen .thirteen-table { padding: 26px 30px; }
  #roomMain .card-game-thirteen .thirteen-table .table-felt { height: 156px; padding: 26px 30px; }
  #roomMain .card-game-stage .table-seat { max-width: 70px; }
  #roomMain .card-game-stage .table-seat .seat-avatar { width: 42px; height: 42px; border-radius: 12px; }
  #roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="bottom"] .seat-avatar { width: 36px; height: 36px; }
  #roomMain .card-game-stage .table-seat .seat-tag { padding: 1px 6px 2px; }
  #roomMain .card-game-stage .table-seat-active::after { height: 52px; }
}

/* Hold'em: the others sit along the top rim, you along the bottom rim. */
#roomMain .card-game-poker .card-table .table-seats { position: relative; z-index: 3; gap: 10px; margin-bottom: -26px; }
#roomMain .card-game-poker .card-table .table-seats-you { margin: -24px 0 0; }
#roomMain .card-game-poker .card-table .table-felt { padding-block: 40px; }

/* Full-body avatars at the table: each player stands on the rim. */
#roomMain .card-game-stage .table-seat .seat-avatar { width: 48px; height: 72px; border-radius: 12px; }
#roomMain .card-game-stage .table-seat-active::after { height: 84px; border-radius: 16px; }
#roomMain .card-game-thirteen .thirteen-table { padding-block: 54px; }
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="top"] { top: -4px; }
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="bottom"] { bottom: -4px; }
#roomMain .card-game-thirteen .thirteen-table .table-felt { height: 150px; padding-block: 34px; }
#roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="bottom"] .seat-avatar { width: 44px; height: 66px; }
/* Space for the taller seats: the drag tip moves into a tooltip on wide screens. */
@media (min-width: 681px) {
  #roomMain .card-game-thirteen .thirteen-hand .hand-tip { display: none; }
  #roomMain .card-game-thirteen > .room-turn { margin-bottom: 0; }
}
@media (max-width: 680px) {
  #roomMain .card-game-stage .table-seat .seat-avatar { width: 36px; height: 54px; border-radius: 9px; border-width: 2px; }
  #roomMain .card-game-thirteen .thirteen-table .table-seat[data-seat="bottom"] .seat-avatar { width: 34px; height: 51px; }
  #roomMain .card-game-stage .table-seat-active::after { height: 64px; }
  #roomMain .card-game-thirteen .thirteen-table { padding-block: 42px; }
  #roomMain .card-game-thirteen .thirteen-table .table-felt { height: 150px; padding-block: 30px; }
}
