/* 四方玩家头像牌（对照参考图 · 1920×1080） */

.player-badges-mount {
  position: absolute;
  inset: 0;
  z-index: 32;
  pointer-events: none;
}

.player-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}

.player-badge__name {
  max-width: 120px;
  padding: 0 2px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-badge__dice {
  min-height: 16px;
  padding: 0 2px 2px;
  color: #80cbc4;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.player-badge__dice[hidden] {
  display: none;
}

.player-badge__body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
}

.player-badge__card {
  width: 88px;
  padding: 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, #143524 0%, #0b2216 100%);
  border: 3px solid #0a1a10;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.player-badge__avatar-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #f4f4f0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-sizing: border-box;
}

.player-badge__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-badge__avatar--placeholder {
  background: linear-gradient(145deg, #ffe0b2, #ffcc80);
}

.player-badge__score {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 2px 2px 1px;
}

.player-badge__score-label {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffd54f 0%, #ffb300 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.player-badge__score-value {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.player-badge__tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.player-badge__tag {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.player-badge__tag--dealer {
  background: linear-gradient(180deg, #ffe082 0%, #ff8f00 100%);
  color: #5d4037;
  text-shadow: none;
}

.player-badge__tag[hidden] {
  display: none;
}
