/* Public tabletop markers; never occupy opponent rows until a card is revealed. */
.pp-treachery-leader { --pp-role-color: #ffd98b; }
.pp-treachery-guardian { --pp-role-color: #89e4ef; }
.pp-treachery-assassin { --pp-role-color: #ff9fba; }
.pp-treachery-traitor { --pp-role-color: #d9b5ff; }
.pp-treachery-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: .26em;
  min-width: 0;
  color: var(--pp-role-color);
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}
.pp-treachery-chip svg {
  width: 1.13em;
  height: 1.13em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pp-treachery-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pp-table .pp-treachery-open {
  flex: none;
  max-width: 35%;
  min-height: 30px;
  padding: .15rem .36rem;
  border-radius: 7px;
  border-color: #665678;
  background: #211b2de6;
  margin: 0;
  font-size: .72rem;
  line-height: 1;
  white-space: nowrap;
}
.pp-table .pp-treachery-open.pp-treachery-known {
  border-color: color-mix(in srgb, currentColor 45%, #6d607c);
  overflow: hidden;
}
.pp-treachery-open .pp-treachery-own { max-width: 100%; }
.pp-treachery-open:has(.pp-treachery-leader) { color: #ffd98b; }
.pp-treachery-open:has(.pp-treachery-guardian) { color: #89e4ef; }
.pp-treachery-open:has(.pp-treachery-assassin) { color: #ff9fba; }
.pp-treachery-open:has(.pp-treachery-traitor) { color: #d9b5ff; }
.pp-treachery-mode-help { margin: -.2rem 0 .3rem; }
.pp-damage-direct .pp-treachery-opponent {
  border-radius: 4px;
  padding: .05em .12em;
  background: color-mix(in srgb, var(--pp-role-color) 17%, #251e33);
  align-self: center;
  font-size: .95em;
}
.pp-damage-direct .pp-treachery-opponent > span { display: none; }
@media (min-width: 1280px) and (min-height: 900px) {
  .pp-table-board:not(.pp-table-board-sided) .pp-damage-has-role .pp-counter-name {
    display: grid;
    grid-template-columns: minmax(0, auto) max-content;
    justify-content: start;
    row-gap: .12rem;
  }
  .pp-table-board:not(.pp-table-board-sided) .pp-treachery-opponent {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
    font-size: .9em;
    padding-inline: .27em;
  }
  .pp-table-board:not(.pp-table-board-sided) .pp-treachery-opponent > span { display: inline; }
}

.pp-table-dialog .pp-treachery-qr{display:block;width:min(16rem,100%);height:auto;margin:.75rem auto;background:#fff;border:0;border-radius:.3rem}
.pp-table-dialog .pp-treachery-setup{padding:.6rem;border:1px solid #595065;border-radius:.75rem;margin:.5rem 0}
.pp-table-dialog .pp-treachery-setup p{margin:.35rem 0 .5rem}
.pp-table-dialog .pp-treachery-setup small{display:block}
.pp-treachery-handset{max-width:30rem;margin:0 auto;padding:clamp(1rem,5vw,2.25rem);width:100%}
.pp-treachery-handset h1{margin-top:1.35rem}
.pp-treachery-card{background:#212034;border:1px solid #514865;border-radius:1rem;padding:clamp(1rem,5vw,2rem)}
.pp-treachery-card small{display:block;margin:.45rem 0;color:#d9c8f0}
.pp-treachery-card button{margin-bottom:.5rem}
