.seat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ===== 竖排铭牌：头像在上，名字、金额依次在下 ===== */
.seat__plate {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.seat__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  padding: 2px;
  /* 金属斜面边框 */
  background: linear-gradient(145deg, #f7e3a8 0%, #c69a45 30%, #6f4f24 55%, #c69a45 80%, #f7e3a8 100%);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 248, 220, 0.7),
    inset 0 -1px 2px rgba(0, 0, 0, 0.55);
}
.seat__avatar {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 50% 60%, hsl(var(--seat-hue, 250) 55% 46%), hsl(var(--seat-hue, 250) 52% 28%) 60%, hsl(var(--seat-hue, 250) 50% 15%));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), inset 0 -3px 7px rgba(0, 0, 0, 0.55);
}
.seat__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.seat__avatar-mono {
  font-size: 19px;
  font-weight: 800;
  color: #d8d4ea;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0;
}

.seat__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.seat__name {
  max-width: 84px;
  font-size: 11px;
  font-weight: 700;
  color: #ecebf6;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat__chips {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  color: #f4d27a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.seat__chips-coin {
  font-size: 12px;
}

/* 庄家筹码（蓝色 DEALER 筹，立体） */
.seat__dealer {
  position: absolute;
  left: -7px;
  bottom: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 33%, #6f97e0, #3460bd 55%, #20418c);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.9),
    inset 0 0 0 3px rgba(40, 70, 140, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

/* ===== 统一状态/操作徽标（头像右上角，固定位置）===== */
.seat__tag {
  position: absolute;
  top: -7px;
  right: -14px;
  z-index: 5;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.seat__tag--fold {
  background: linear-gradient(180deg, #cdd2e4, #8a91ad);
  color: #2a2f44;
}
.seat__tag--rest {
  background: linear-gradient(180deg, #5fb4ef, #2360a8);
}
.seat__tag--knock {
  background: linear-gradient(180deg, #ef8b8b, #c92f2f);
}
.seat__tag--call {
  background: linear-gradient(180deg, #4fbd7c, #1f8a48);
}
.seat__tag--raise {
  background: linear-gradient(180deg, #ffe7a6, #d89a2a);
  color: #3a2708;
}
.seat__tag--split {
  background: linear-gradient(180deg, #f0c24a, #c79220);
  color: #3a2708;
}
.seat__tag--splitting,
.seat__tag--reserve {
  background: linear-gradient(180deg, #5aa0e6, #2f5fb0);
}

/* 本轮下注筹码（橙色 S 筹 + 数额，头像右下角，统一位置） */
.seat__betchip {
  position: absolute;
  bottom: -8px;
  right: -16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px 1px 2px;
  font-size: 10px;
  font-weight: 800;
  color: #ffe9c4;
  background: rgba(10, 12, 22, 0.78);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.seat__betchip-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 0;
  /* 边缘白色分段 + 橙色筹码本体 */
  background:
    repeating-conic-gradient(#fff 0deg 14deg, transparent 14deg 31deg),
    radial-gradient(circle at 38% 30%, #f7b35a, #e07a1e 58%, #b4540f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 210, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.5);
}
.seat__betchip-ico::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #f7b35a, #d2691a 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 210, 0.7);
}

/* ===== 对手底牌：叠在头像上方 ===== */
.seat__hole {
  position: absolute;
  bottom: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 2;
  pointer-events: none;
  animation: holeIn 0.25s ease both;
}
.seat__hole > * + * {
  margin-left: -10px;
}
.seat__hole > *:first-child {
  transform: rotate(-7deg);
}
.seat__hole > *:last-child {
  transform: rotate(7deg);
}
.seat__hole > * {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
@keyframes holeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

/* ===== 手牌 ===== */
.seat__cards-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seat__cards {
  display: flex;
}

/* 对手：头像铭牌与手牌分开（牌在上、铭牌在下，留间距） */
.seat--opp {
  gap: 5px;
}
.seat--opp .seat__cards > * + * {
  margin-left: -13px;
}
.seat--opp .seat__cards > * {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* 明牌点数/牌型标签（牌与铭牌之间） */
.seat__cardhint {
  margin-top: 3px;
  padding: 1px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(8, 10, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
}

/* ===== 当前发话玩家：金色光环 ===== */
.seat--active .seat__avatar-wrap {
  background: linear-gradient(160deg, #ffe9a8, #d8a73a);
  box-shadow:
    0 0 0 2px rgba(244, 210, 122, 0.5),
    0 0 16px 3px rgba(244, 210, 122, 0.75);
  animation: seatPulse 1.4s ease-in-out infinite;
}
@keyframes seatPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(244, 210, 122, 0.45),
      0 0 14px 2px rgba(244, 210, 122, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(244, 210, 122, 0.7),
      0 0 22px 6px rgba(244, 210, 122, 0.9);
  }
}

/* ===== 回合倒计时环 ===== */
.seat__timer {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.seat__timer-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 7;
}
.seat__timer-arc {
  fill: none;
  stroke: #ffd65a;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(255, 214, 90, 0.8));
}
.seat__timer-arc--low {
  stroke: #ff5a4d;
  filter: drop-shadow(0 0 4px rgba(255, 90, 77, 0.9));
}

/* ===== 已丢牌：整体变暗 ===== */
.seat--folded {
  opacity: 0.45;
  filter: grayscale(0.6);
}

/* ===== 本人：牌在左，铭牌在右 ===== */
.seat--hero {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  column-gap: 8px;
}
.seat--hero .seat__cards-wrap {
  order: 1;
}
.seat--hero .seat__plate {
  order: 2;
}
.seat--hero .seat__hint {
  order: 3;
  width: 100%;
}
.seat--hero .seat__avatar-wrap {
  width: 48px;
  height: 48px;
}
.seat--hero .seat__avatar {
  font-size: 26px;
}
.seat--hero .seat__cards > * + * {
  margin-left: -10px;
}
.seat--hero .seat__cards > * {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}
.seat--hero .seat__cards > *:nth-child(1) {
  transform: rotate(-7deg) translateY(3px);
}
.seat--hero .seat__cards > *:nth-child(2) {
  transform: rotate(-2deg);
}
.seat--hero .seat__cards > *:nth-child(3) {
  transform: rotate(2deg);
}
.seat--hero .seat__cards > *:nth-child(4) {
  transform: rotate(7deg) translateY(3px);
}

.seat__hint {
  margin-top: 5px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff4d6;
  text-align: center;
  background: linear-gradient(180deg, rgba(48, 36, 12, 0.78), rgba(22, 15, 5, 0.78));
  border: 1px solid rgba(244, 210, 122, 0.42);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
