/* Scoreboard actions reserve space and appear only on the hovered row. */
#scoreboard .sb-actions { gap: 3px; }
#scoreboard .sb-act { font-size: .68em; white-space: nowrap; padding: 3px 5px; }
#scoreboard .sb-act:disabled { opacity: .45; cursor: default; }
#scoreboard .sb-kick { color: var(--ui-danger, #f09c87); }

#player-action-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .7);
  pointer-events: auto;
  color: var(--ui-text, #eee8dc);
  font-family: var(--font-body);
}
.player-dialog-card, #vote-kick-panel {
  box-sizing: border-box;
  background: var(--ui-panel, #1d2326);
  border: 1px solid var(--ui-border-hi, #75684d);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .55);
}
.player-dialog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}
.player-dialog-card h2 { margin: 0; font: 600 22px var(--font-display); overflow-wrap: anywhere; }
.player-dialog-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ui-muted, #bec0c1); }
.player-dialog-card label { font-size: 14px; }
.player-dialog-card select, .player-dialog-card textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  background: var(--ui-well, #111719);
  border: 1px solid var(--ui-border-hi, #75684d);
  border-radius: 4px;
  color: inherit;
  font: inherit;
}
.player-dialog-card textarea { resize: vertical; min-height: 90px; }
.player-report-counter { align-self: flex-end; font-size: 12px; color: var(--ui-muted, #bec0c1); }
.player-dialog-buttons, .vote-kick-buttons { display: flex; gap: 8px; }
.player-dialog-buttons { justify-content: flex-end; margin-top: 8px; }
.player-dialog-buttons button, .vote-kick-buttons button {
  padding: 9px 14px;
  border: 1px solid var(--ui-border-hi, #75684d);
  border-radius: 4px;
  background: #292f32;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.player-dialog-buttons .moderation-primary, .vote-kick-buttons .selected {
  background: var(--ui-selected, #4a4030);
  border-color: var(--ui-gold, #d6b16c);
}
.player-dialog-buttons button:disabled, .vote-kick-buttons button:disabled { cursor: default; opacity: .55; }
.player-dialog-card :focus-visible, .vote-kick-buttons :focus-visible { outline: 2px solid var(--ui-gold, #d6b16c); outline-offset: 2px; }

/* Nested below the minimap so map size and place labels cannot overlap it. */
#vote-kick-panel {
  position: relative;
  z-index: 500;
  align-self: flex-end;
  flex-direction: column;
  gap: 8px;
  width: min(300px, calc(100vw - 40px));
  margin-top: 14px;
  padding: 14px;
  pointer-events: auto;
  text-align: left;
  color: var(--ui-text, #eee8dc);
  font: 13px var(--font-body);
}
#vote-kick-panel h3 { margin: 0; font: 600 16px var(--font-display); overflow-wrap: anywhere; }
#vote-kick-panel p { margin: 0; line-height: 1.4; }
.vote-kick-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ui-gold, #d6b16c); }
#vote-kick-panel progress { width: 100%; height: 6px; accent-color: var(--ui-gold, #d6b16c); }
.vote-kick-buttons button { flex: 1; padding: 7px 10px; }
.vote-kick-hint { font-size: 11px; color: var(--ui-muted, #bec0c1); }
