/* trix: rules used only by the trix pages (loaded after base.css). */
/* Trix: the running contract in large type on top with the kingdom and
   its five contracts (tick = done, arrow = now); a score board that is
   always visible, with each player's penalty cards of this deal as mini
   cards; the four Trix rows as mini cards from low to high (the Jack
   framed double). Hand cards that fit a row carry a black corner. */
.tx-top {
  text-align: center;
  margin: 0 0 0.4rem;
}

.tx-contract {
  font-size: 1.35rem;
  font-weight: 700;
}

.tx-kingdom {
  font-size: 0.95rem;
  margin: 0.1rem 0;
}

.tx-contract-item {
  display: inline-block;
  margin: 0.1rem 0.3rem;
  padding: 0 0.3rem;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.tx-contract-done {
  border-style: dashed;
}

.tx-contract-now {
  border-width: 3px;
  font-weight: 700;
}

.tx-contract-mark {
  margin-right: 0.25rem;
}

[dir="rtl"] .tx-contract-mark {
  margin-right: 0;
  margin-left: 0.25rem;
}

.tx-players {
  margin: 0.3rem 0;
}

.tx-player {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  width: 48%;
  margin: 0 1% 0.3rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  min-height: 2.2rem;
}

.tx-player-active {
  border-width: 3px;
}

.tx-player-head > span {
  display: inline-block;
  margin-right: 0.35rem;
}

[dir="rtl"] .tx-player-head > span {
  margin-right: 0;
  margin-left: 0.35rem;
}

.tx-player-name {
  font-size: 0.9rem;
}

.tx-total {
  font-weight: 700;
}

.tx-deal-score {
  border: 1px solid var(--border);
  padding: 0 0.25rem;
  font-size: 0.9rem;
}

.tx-player-info {
  font-size: 0.85rem;
  min-height: 1rem;
}

.pc-card-mini {
  width: 1.75rem;
  height: 2.5rem;
  margin: 0.1rem 0.05rem 0;
  padding-top: 0.1rem;
  font-size: 0.8rem;
  border-width: 1px;
  border-radius: 3px;
  cursor: default;
}

.pc-card-mini .pc-suit {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.05rem;
}

.tx-choose {
  text-align: center;
  margin: 0.4rem 0;
}

.tx-rows {
  margin: 0.4rem 0;
}

.tx-row {
  min-height: 2.9rem;
  margin: 0.15rem 0;
  padding: 0.1rem 0.2rem;
  border-bottom: 1px dotted var(--border);
  text-align: center;
}

.tx-row-suit {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3rem;
}

[dir="rtl"] .tx-row-suit {
  margin-right: 0;
  margin-left: 0.3rem;
}

.tx-row-suit .card-suit {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
}

.tx-row .pc-card-mini {
  vertical-align: middle;
}

.tx-row-jack {
  border: 3px double var(--border);
}

.tx-row-empty {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.85rem;
}

.pc-card.tx-playable::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 1rem 1rem 0;
  border-color: transparent var(--text) transparent transparent;
}
