.dx h3 {
  font-size: 1.1rem;
}

.dx-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  width: 92px;
  height: 128px;
  padding: 8px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--bg));
  font-size: 2rem;
  line-height: 1;
  cursor: default;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.dx-card span:first-child {
  grid-column: span 2;
}

.dx-card.can,
.dx-card[data-vote] {
  cursor: pointer;
}

.dx-card.can:hover,
.dx-card[data-vote]:hover {
  transform: translateY(-4px);
}

.dx-card.sel {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px var(--warning);
}

.dx-card.own {
  border-style: dashed;
}

.dx-card.teller {
  border-color: var(--success);
  box-shadow: 0 0 0 3px var(--success);
}

.dx-hand,
.dx-table {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.dx-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  max-width: 120px;
  font-size: 0.75rem;
}

.dx-hand-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.dx-clue {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 460px;
}

.dx-clue input {
  flex: 1;
  min-width: 0;
}

.qz-plus {
  color: var(--success);
  font-style: normal;
  font-weight: 800;
}

/* ---------- телефон: задание, ввод ассоциации и свои карты — на одном экране ---------- */
@media (max-width: 640px) {
  .pt-panel.dx {
    gap: 8px;
    padding: 10px 8px;
  }

  /* игроки — в один ряд маленькими плашками */
  .dx .pt-seats {
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
  }

  .dx .pt-seat {
    flex: 1 1 0;
    min-width: 0;
    padding: 3px 4px;
    font-size: 0.75rem;
  }

  .dx .pt-seat b {
    max-width: 100%;
    font-size: 0.78rem;
  }

  .dx h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .dx .pt-muted {
    font-size: 0.78rem;
  }

  .dx-clue input {
    padding: 8px 10px;
  }

  /* карты — по три в ряд, пониже, чтобы вся рука была видна вместе с полем ввода */
  .dx-hand,
  .dx-table {
    gap: 6px;
  }

  .dx-card {
    width: min(92px, calc((100vw - 76px) / 3));
    height: 86px;
    padding: 4px;
    border-radius: 12px;
    font-size: 1.5rem;
  }

  .dx-slot {
    max-width: min(120px, calc((100vw - 76px) / 3));
  }

  .dx-hand-label {
    font-size: 0.8rem;
  }
}
