/* Player pills / leaderboard */
.player-pill {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(15,23,42,0.6); /* slate-900/60 */
  border: 1px solid rgb(51,65,85);       /* slate-700 */
  padding: 0.5rem 0.75rem;
  color: rgb(226,232,240);               /* slate-200 */
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: grab;
  position: relative;
}
.player-pill.drag-hover {
  background-color: rgba(253,224,71,0.08);
  border-color: rgb(253,224,71);         /* yellow-300 */
}
.player-pill:active {
  cursor: grabbing;
  opacity: 0.8;
}

.player-main {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.player-handle {
  cursor: grab;
  color: rgb(148,163,184);               /* slate-400 */
  font-size: 0.75rem;
  line-height: 1rem;
  user-select: none;
  padding-top: 0.1rem;
}

.player-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(226,232,240);               /* slate-200 */
  word-break: break-word;
}

/* "42 (+7)" block. We always render the (+X) span
   and keep a min-width so rows don't shift when some players
   have partials and others don't. */
.player-score-block {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.4rem;
  line-height: 1.1;
  min-width: 4.5rem;
  min-height: 1.25rem;
  justify-content: flex-end;
  text-align: right;
}

.player-score-main {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25rem;
  color: rgb(253,224,71);                /* yellow-300 */
  white-space: nowrap;
}

.player-score-partial {
  font-size: 0.7rem;
  line-height: 1rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 2.5rem;
  text-align: right;
}

.player-score-partial-active {
  color: rgb(148,163,184);               /* slate-400 */
}

.player-score-partial-placeholder {
  color: transparent;
}

.player-remove-btn {
  font-size: 0.65rem;
  line-height: 1rem;
  background-color: transparent;
  color: rgb(148,163,184);               /* slate-400 */
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
}
.player-remove-btn:hover {
  color: rgb(248,113,113);               /* red-400 */
}
.player-remove-btn:active {
  transform: scale(0.95);
}

/* History table */
.history-th {
  text-align: center;
  font-weight: 600;
  color: rgb(226,232,240);               /* slate-200 */
  background-color: rgba(51,65,85,0.5);  /* slate-700/50 */
  border-bottom: 1px solid rgb(71,85,105);
  padding: 0.5rem 0.5rem;
  white-space: nowrap;
  font-size: 0.7rem;
  line-height: 1rem;
}
.history-th-firstcol {
  text-align: left;
}
.history-th-sub {
  font-weight: 500;
  color: rgb(148,163,184);               /* slate-400 */
  background-color: rgba(30,41,59,0.8);  /* slate-800-ish */
  border-bottom: 1px solid rgb(71,85,105);
  padding: 0.4rem 0.5rem;
  white-space: nowrap;
  font-size: 0.7rem;
  line-height: 1rem;
  text-align: center;
}

.history-td {
  vertical-align: middle;
  border-bottom: 1px solid rgb(51,65,85);/* slate-700 */
  padding: 0.5rem 0.5rem;
  white-space: nowrap;
  font-size: 0.7rem;
  line-height: 1rem;
  color: rgb(203,213,225);               /* slate-300 */
}
.history-td-round {
  font-weight: 600;
  text-align: left;
  color: rgb(203,213,225);               /* slate-300 */
}
.history-td-score {
  font-weight: 700;
  text-align: center;
  color: rgb(226,232,240);               /* slate-200 */
}
.history-td-cum {
  font-weight: 700;
  text-align: center;
  color: rgb(253,224,71);                /* yellow-300 */
}

.history-input {
  width: 3rem;
  text-align: center;
  color: rgb(226,232,240);               /* slate-200 */
  background-color: rgb(15,23,42);       /* slate-900 */
  border: 1px solid rgb(71,85,105);      /* slate-600 */
  border-radius: 0.375rem;
  padding: 0.25rem 0.25rem;
  font-size: 0.7rem;
  line-height: 1rem;
  font-weight: 600;
}

/* increment buttons */
.incBtn {
  -webkit-user-select: none;
  user-select: none;
}
