/* Стол для карточных игр на двоих (Тысяча, Сека, Холдем, Пьяница) */

.tb {
  --cw: clamp(44px, 11vw, 72px);
  --ch: calc(var(--cw) * 1.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  padding: 14px;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at center, #1f6f4a, #0f3d28);
  box-shadow: var(--shadow);
  color: #fff;
}

.tb .sol-card {
  position: relative;
  flex: none;
  transform: none;
  transition: transform 0.15s;
  cursor: default;
}

.tb-hand {
  display: flex;
  justify-content: center;
  min-height: var(--ch);
  padding: 0 calc(var(--cw) * 0.3);
}

.tb-hand .sol-card + .sol-card {
  margin-left: calc(var(--cw) * var(--ov, -0.42));
}

.tb-hand.mine .sol-card + .sol-card {
  margin-left: calc(var(--cw) * var(--ov, -0.25));
}

.tb-hand.mine .sol-card.playable {
  cursor: pointer;
  transform: translateY(-10px);
}

.tb-hand.mine .sol-card.playable:hover {
  transform: translateY(-16px);
}

.tb-hand.mine .sol-card.sel {
  transform: translateY(-18px);
  filter: drop-shadow(0 0 6px var(--warning));
}

.tb-hand .sol-card.dim {
  filter: brightness(0.7);
}

.tb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: var(--ch);
}

.tb-label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.tb-label .chips {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.tb-label .turn {
  color: #fde047;
}

.tb-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
}

.tb-pot {
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-weight: 800;
}

.tb-msg {
  min-height: 1.3em;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.tb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tb-actions .btn {
  padding: 8px 14px;
}

.tb-actions .btn[hidden] {
  display: none;
}

.tb-actions input[type="range"] {
  width: min(220px, 60vw);
}
