.leader-name-action {
  cursor: pointer;
  border-radius: 12px;
  outline: none;
  position: relative;
  padding-right: 18px;
}
.leader-name-action::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 1px;
  color: var(--soft);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  opacity: .72;
  transition: transform .18s var(--ease-out), color .18s var(--ease-out), opacity .18s var(--ease-out);
}
.leader-name-action:hover::after,
.leader-name-action:focus-visible::after {
  color: var(--accent);
  opacity: 1;
  transform: translateX(2px);
}
.leader-name-action:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body.player-details-open {
  overflow: hidden;
}
.player-completed-backdrop {
  z-index: 1200;
  padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  align-items: center;
}
.player-completed-modal {
  width: min(620px, calc(100vw - 24px));
  max-height: min(78dvh, 760px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.player-completed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.player-completed-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.05;
}
.player-completed-head p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}
.player-completed-explainer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--input);
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}
.player-completed-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 9px;
  padding-right: 2px;
  scrollbar-width: thin;
}
.player-completed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.player-completed-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.player-completed-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.25;
}
.player-completed-copy small {
  color: var(--soft);
  font-size: .7rem;
  font-weight: 750;
}
.player-completed-votes {
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 65%);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  white-space: nowrap;
}
.player-completed-votes span {
  font-size: .9rem;
}
.player-completed-votes strong {
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.player-completed-loading,
.player-completed-empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.player-completed-empty strong {
  color: var(--text);
  font-size: .95rem;
}
.player-completed-empty span {
  font-size: .78rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .player-completed-backdrop {
    align-items: flex-end;
    padding: 10px 8px max(8px, env(safe-area-inset-bottom));
  }
  .player-completed-modal {
    width: 100%;
    max-height: min(82dvh, 760px);
    border-radius: 24px;
  }
  .player-completed-item {
    min-height: 62px;
    padding: 11px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leader-name-action::after {
    transition: none;
  }
}
