.pl { display: grid; gap: 20px; }
.pl-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pl-top .kv-tabs { flex: 1 1 220px; }
.pl-panel { display: grid; gap: 18px; }
.pl-options { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: end; }
.pl-target { max-width: 170px; }

.pl-banner {
  margin: 0; padding: 10px 14px; border-radius: 10px; font-weight: 650;
  background: var(--kit-soft); border-left: 4px solid var(--kit);
}
.pl-banner.is-win { font-size: 1.2rem; font-weight: 780; background: var(--kit); color: #14213d; border-left-color: #14213d; }

/* Cartões de cada dupla ou jogador */
.pl-board { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .pl-board--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-board--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pl-card {
  display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; min-width: 0;
  padding: 14px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface);
}
.pl-card.is-winner { box-shadow: 0 0 0 4px var(--kit); }
.pl-card.is-lost { opacity: 0.6; }
.pl-name {
  width: 100%; min-width: 0; font: inherit; font-size: 1.15rem; font-weight: 750; text-align: center; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px dashed var(--line); border-radius: 0; padding: 4px;
}
.pl-name::placeholder { color: var(--ink); opacity: 1; }
.pl-name:focus { outline: none; border-bottom-color: var(--focus); }
.pl-score { font-size: clamp(3.4rem, 2.4rem + 7vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pl-of { margin: 0; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.pl-bar { width: 100%; height: 10px; border-radius: 5px; background: var(--sunken); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 0; background: var(--kit); border-radius: 5px; transition: width 0.2s ease; }

.pl-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; margin-top: 4px; }
.pl-add {
  display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 48px; padding: 6px 4px;
  font: inherit; font-size: 1.15rem; font-weight: 780; font-variant-numeric: tabular-nums; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px;
  touch-action: manipulation;
}
.pl-add small { font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.pl-add:hover { background: var(--sunken); }
.pl-add:active { transform: translateY(1px); }
.pl-add--main { grid-column: 1 / -1; min-height: 64px; font-size: 1.6rem; background: var(--kit); color: #14213d; }
.pl-add--main small { color: #14213d; }
.pl-add--main:hover { background: #ffd54f; }
.pl-add--minus { border-color: var(--line); color: var(--muted); font-size: 1rem; }
.pl-add[disabled] { opacity: 0.35; cursor: not-allowed; }
.pl-other { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-other .kv-input { flex: 1 1 90px; min-width: 0; max-width: none; padding: 8px; font-variant-numeric: tabular-nums; }
.pl-other .kv-btn { flex: 1 1 auto; padding: 8px 10px; }
.pl-wins { margin: 4px 0 0; font-weight: 650; font-size: 0.95rem; }

.pl-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pl-history summary { cursor: pointer; font-weight: 700; }
.pl-log { margin: 10px 0 0; padding-left: 1.8em; display: grid; gap: 4px; max-height: 260px; overflow: auto; font-variant-numeric: tabular-nums; }
.pl-history .kv-help { margin: 10px 0 0; }

/* Tela cheia: só o placar */
.pl:fullscreen { background: var(--surface); padding: 20px 24px; overflow: auto; align-content: start; }
.pl:fullscreen .pl-options, .pl:fullscreen .pl-history { display: none; }
.pl:fullscreen .pl-score { font-size: min(22vw, 26vh); }
@media (max-width: 600px) { .pl-top [data-fs] { display: none; } }
