@font-face {
  font-family: 'Zeitung Pro';
  src:
    url("https://use.typekit.net/af/37ff2c/00000000000000003b9b2a25/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"),
    url("https://use.typekit.net/af/37ff2c/00000000000000003b9b2a25/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff"),
    url("https://use.typekit.net/af/37ff2c/00000000000000003b9b2a25/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Zeitung Pro';
  src:
    url("https://use.typekit.net/af/37ff2c/00000000000000003b9b2a25/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"),
    url("https://use.typekit.net/af/37ff2c/00000000000000003b9b2a25/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff"),
    url("https://use.typekit.net/af/37ff2c/00000000000000003b9b2a25/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("opentype");
  font-weight: bold;
  font-style: normal;
}

.poker-renderer-host {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zeitung Pro', sans-serif;
  background-color: #28303F;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.poker-game-layout {
  width: 1000px;
  height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-origin: center center;
}

.poker-table-container {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poker-table {
  width: 900px;
  height: 400px;
  background: radial-gradient(43.33% 50% at 50% 50%, #20BD48 0%, #0A4018 99.99%);
  border-radius: 300px;
  position: relative;
  border: 20px solid #5C3A21;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: 0 8px 12px 6px rgba(0, 0, 0, 0.15), 0 4px 4px 0 rgba(0, 0, 0, 0.30);
}

.muck-line {
  position: absolute;
  width: 780px;
  height: 300px;
  border: 1px solid #9AA0A6;
  border-radius: 240px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.players-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.player-container {
  position: absolute;
  width: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.player-container-0 {
  top: 0;
}

.player-container-1 {
  bottom: 0;
  flex-direction: column-reverse;
}

.player-card-area {
  color: white;
  text-align: center;
  display: flex;
  justify-content: left;
  align-items: left;
  pointer-events: auto;
  flex: 1;
}

.stack-cards-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px;
  width: 100%;
}

.player-info-area {
  color: white;
  width: auto;
  min-width: 280px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  padding: 10px;
  background-color: rgba(32, 33, 36, 0.70);
  ;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.player-info-area.active-player {
  border-color: #20BEFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(32, 190, 255, 0.5);
}

.player-info-area.winner-player {
  border-color: #FFEB70;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 235, 112, 0.6);
}

.player-container-0 .player-info-area {
  flex-direction: column-reverse;
}

.player-name-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 60px;
  padding: 5px 0;
}

.player-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  flex-shrink: 0;
  padding: 6px;
}

.player-name {
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  text-align: center;
}

.player-name.winner {
  color: #FFEB70;
}

.player-name.current-turn {
  color: #20BEFF;
}

.player-stack {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.player-stats-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 12px;
}

.player-hand-rank,
.player-win-prob,
.player-tie-prob {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
  height: 20px;
  align-self: flex-start;
}

.player-cards-container {
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 44px;
  height: 70px;
  border: 2px solid #202124;
  border-radius: 8px;
  background-color: white;
  color: black;
  font-weight: bold;
  text-align: center;
  overflow: hidden;
  position: relative;
  padding: 6px;
  box-shadow: 0 6px 10px 4px rgba(0, 0, 0, 0.15), 0 2px 3px 0 rgba(0, 0, 0, 0.30);
}

.card-rank {
  font-family: 'Inter' sans-serif;
  font-size: 32px;
  line-height: 1;
  display: block;
  align-self: flex-start;
}

.card-suit {
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 2px;
}

.player-cards-container .card {
  width: 38px;
  height: 60px;
  border-radius: 6px;
}

.player-cards-container .card:nth-child(2) {
  transform: rotate(20deg);
  margin-top: 14px;
  margin-left: -6px;
}

.player-cards-container .card-rank {
  font-size: 26px;
}

.player-cards-container .card-suit {
  width: 28px;
  height: 28px;
}

.card-suit svg {
  width: 100%;
  height: 100%;
}

.card-red .card-rank {
  color: #B3261E;
}

.card-red .card-suit svg {
  fill: #B3261E;
}

.card-black .card-rank {
  color: #000000;
}

.card-black .card-suit svg {
  fill: #000000;
}

.card-blue .card-rank {
  color: #0B57D0;
}

.card-blue .card-suit svg {
  fill: #0B57D0;
}

.card-green .card-rank {
  color: #146C2E;
}

.card-green .card-suit svg {
  fill: #146C2E;
}

.card-back {
  background-color: #2b6cb0;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1)),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1));
  background-size: 10px 10px;
  border: 2px solid #63b3ed;
}

.card-back .card-rank,
.card-back .card-suit {
  display: none;
}

.card-empty {
  background-color: rgba(232, 234, 237, 0.1);
  border: 2px solid rgba(154, 160, 166, 0.5);
  box-shadow: none
}

.card-empty .card-rank,
.card-empty .card-suit {
  display: none;
}

.community-cards-area {
  text-align: center;
  z-index: 10;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.community-cards-container {
  min-height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 8px;
}

.pot-display {
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.bet-display {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  background-color: #ffffff;
  color: black;
  font-family: 'Inter' sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  height: 20pxrem;
  line-height: 20px;
  width: 150px;
  height: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.blind-indicator {
  font-size: 0.7rem;
  color: #a0aec0;
  margin-top: 3px;
}

.dealer-button {
  width: 36px;
  height: 36px;
  background-color: #f0f0f0;
  color: #333;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 28px;
  position: absolute;
  padding-left: 1px;
  line-height: 33px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 15;
  pointer-events: auto;
  border: 2px solid black;
  outline: 2px solid #20BEFF;
}

.dealer-button.dealer-player0 {
  top: 170px;
}

.dealer-button.dealer-player1 {
  bottom: 170px;
}

.step-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background-color: rgba(60, 64, 67, 0.9);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hand-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;
  color: #535965;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 40px;
  font-weight: 600;
}

.chip-stack {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 12;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
}

.chip-stack.chip-stack-player0 {
  top: 60px;
}

.chip-stack.chip-stack-player1 {
  bottom: 60px;
}

.chip-stack-chips {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.chip-denomination-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  position: relative;
}

.chip {
  width: 40px;
  height: 40px;
  position: relative;
  margin-bottom: -34px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chip:first-child {
  margin-bottom: 0;
}

.chip img {
  width: 100%;
  height: 100%;
  display: block;
}

.chip-stack-label {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}

.legend {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 280px;
  background-color: rgba(32, 33, 36, 0.70);
  border-radius: 8px;
  color: white;
  z-index: 100;
  display: flex;
  flex-direction: column;
  max-height: 212px;
}

.legend-title {
  padding: 10px;
  font-weight: bold;
  border-bottom: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-leader-info {
  display: flex;
  align-items: center;
}

.legend-title-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
}

.legend-body {
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.legend-table {
  display: table;
  width: 100%;
}

.legend-row {
  display: table-row;
}

.legend-header .legend-cell {
  font-weight: bold;
}

.legend-cell {
  display: table-cell;
  padding: 2px 5px;
  vertical-align: middle;
}

.legend-cell:nth-child(1) {
  width: 20%;
}

.legend-cell:nth-child(2) {
  width: 50%;
}

.legend-cell:nth-child(3) {
  width: 30%;
  text-align: right;
}

.legend-winner-cell {
  display: flex;
  align-items: center;
}

.legend-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 5px;
}