/* ============================================================
   斗地主界面样式
   ============================================================ */

.dz-table {
  position: relative;
  width: 100%;
  min-height: 480px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(47, 107, 255, 0.08), transparent 65%),
    linear-gradient(165deg, #14301f, #0e2418);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 左右家 */
.dz-seat {
  position: absolute;
  top: 14px;
  width: 128px;
  padding: 10px 12px;
  background: rgba(7, 11, 22, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink);
}

.dz-seat.dz-left {
  left: 14px;
}

.dz-seat.dz-right {
  right: 14px;
  text-align: right;
}

.dz-seat-name {
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dz-seat-count {
  font-size: 12px;
  color: var(--ink-3);
}

/* 中央 */
.dz-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  min-height: 130px;
}

.dz-bottom-cards {
  display: flex;
  gap: 6px;
  min-height: 52px;
  align-items: center;
}

.dz-played {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  min-height: 72px;
}

.dz-played-by {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.dz-multip {
  font-size: 12.5px;
  color: var(--gold);
}

.dz-hint {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 我的区域 */
.dz-my-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dz-my-info {
  font-size: 13px;
  color: var(--ink-2);
}

.dz-my-played {
  min-height: 8px;
}

/* ---------------- 手牌 ---------------- */
.dz-hand {
  display: flex;
  justify-content: center;
  padding: 18px 6px 6px;
  max-width: 100%;
  overflow-x: auto;
}

.dz-card {
  position: relative;
  width: 46px;
  height: 64px;
  margin-left: -22px;
  background: linear-gradient(160deg, #ffffff, #eef2f9);
  border: 1px solid rgba(120, 140, 180, 0.5);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease;
  user-select: none;
  flex: 0 0 auto;
  font-weight: 700;
}

.dz-hand .dz-card:first-child {
  margin-left: 0;
}

.dz-card:hover {
  transform: translateY(-6px);
  z-index: 5;
}

.dz-card.sel {
  transform: translateY(-18px);
  box-shadow: 0 0 0 2.5px var(--accent), 0 6px 14px rgba(0, 0, 0, 0.4);
  z-index: 6;
}

.dz-card .dz-rank {
  font-size: 17px;
  line-height: 1;
  color: #1b2a3f;
}

.dz-card.red .dz-rank,
.dz-card.red .dz-suit {
  color: #d23b30;
}

.dz-card .dz-suit {
  font-size: 12px;
  color: #1b2a3f;
  margin-top: 2px;
}

/* 中央出的牌稍大 */
.dz-played .dz-card,
.dz-bottom-cards .dz-card {
  cursor: default;
}

/* 地主徽标 */
.dz-lord {
  font-size: 10.5px;
  color: var(--gold);
  background: rgba(255, 201, 77, 0.14);
  border: 1px solid rgba(255, 201, 77, 0.4);
  padding: 2px 7px;
  border-radius: 5px;
  flex: 0 0 auto;
}

/* 叫分按钮组 */
.dz-bid-btns {
  display: flex;
  gap: 7px;
  align-items: center;
}

.dz-bid-btns.hidden {
  display: none;
}

/* ---------------- 浅色主题 ---------------- */
[data-theme="light"] .dz-table {
  background: linear-gradient(165deg, #e6f2e8, #d5e8d8);
  border-color: rgba(40, 90, 60, 0.25);
  box-shadow: 0 12px 36px rgba(27, 42, 63, 0.12);
}

[data-theme="light"] .dz-seat {
  background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 720px) {
  .dz-seat {
    width: 100px;
  }

  .dz-card {
    width: 40px;
    height: 56px;
    margin-left: -20px;
  }
}
