.account-card > p,
.account-backup-details p,
.account-invitation p,
.leaderboard-intro p,
.leaderboard-join p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}
.account-card-heading,
.account-identity,
.account-invitation,
.leaderboard-intro,
.leaderboard-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-status,
.account-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.account-status { white-space: nowrap; }
.account-identity { justify-content: flex-start; margin-top: 20px; }
.account-identity strong { font-size: 15px; overflow-wrap: anywhere; }
.account-identity p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.account-backup-details { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 15px; }
.account-backup-details summary { color: var(--ink); font-size: 12px; cursor: pointer; line-height: 1.6; }
.account-logout { margin-top: 15px; font-size: 12px; }
.google-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 18px;
  cursor: pointer;
}
.google-button:disabled { opacity: .5; cursor: default; }
.account-error { color: var(--warning); font-size: 12px; line-height: 1.6; margin-top: 14px; }
.account-invitation { padding: 18px 22px; border-radius: 16px; }
.account-invitation strong { font-size: 13px; font-weight: 550; }
.account-invitation p { margin-top: 4px; font-size: 12px; }
.account-invitation > button { font-size: 12px; white-space: nowrap; }
.account-profile-edit { margin-top: 6px; font-size: 11px; padding: 4px 0; }
.account-profile-form { margin-top: 22px; }
.account-profile-form > input {
  display: block;
  width: 100%;
  background: var(--surface-muted);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;
  margin-top: 8px;
}
.account-profile-form > .account-help { margin-top: 8px; }
.account-avatar-choice { border: 0; padding: 0; margin-top: 22px; display: flex; gap: 12px; }
.account-avatar-choice legend { padding: 0; color: var(--ink); font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.account-avatar-choice > label {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 8px;
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 12px;
}
.account-avatar-choice > label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.account-avatar-choice input { position: absolute; top: 10px; right: 10px; accent-color: var(--accent); }
.account-avatar-choice .adventure-art { width: 112px; height: 112px; background: transparent; }
.leaderboard-intro { padding: 22px; border-radius: 16px; }
.leaderboard-intro h2 { font-size: 19px; }
.leaderboard-intro p { margin-top: 8px; }
.leaderboard-join { padding: 22px; border-radius: 16px; }
.leaderboard-join h3 { font-size: 15px; }
.leaderboard-card { border-radius: 16px; overflow: hidden; }
.leaderboard-card > header { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.leaderboard-card > header h3 { font-size: 13px; font-weight: 550; }
.leaderboard-card > header button { padding: 5px 0; font-size: 11px; }
.leaderboard-list { list-style: none; margin: 0; padding: 0; }
.leaderboard-row { display: flex; align-items: center; gap: 12px; padding: 16px 22px; }
.leaderboard-row + .leaderboard-row { border-top: 1px solid var(--border); }
.leaderboard-row.is-me { background: var(--accent-soft); }
.leaderboard-rank { min-width: 20px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.leaderboard-player { flex: 1; min-width: 0; }
.leaderboard-player strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.leaderboard-player strong span { color: var(--accent); font-size: 10px; margin-left: 4px; }
.leaderboard-player p { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 4px; }
.leaderboard-distance { color: var(--ink); font-size: 14px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leaderboard-distance small { font-size: 10px; font-weight: 400; color: var(--muted); }
.leaderboard-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 42px 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.leaderboard-empty > i { width: 28px; height: 28px; color: var(--accent); }
.leaderboard-empty > span { font-size: 11px; }
.leaderboard-self { overflow: hidden; border-radius: 16px; }
.leaderboard-self > p { font-size: 11px; color: var(--muted); padding: 16px 22px 0; }
.account-pending { text-align: center; }
@media(max-width:760px) {
  .account-invitation { padding: 16px 18px; gap: 12px; }
  .account-invitation p { max-width: 220px; font-size: 11px; }
  .leaderboard-intro,
  .leaderboard-join { padding: 18px; }
  .leaderboard-intro > img { width: 48px; height: 48px; }
  .leaderboard-intro h2 { font-size: 17px; }
  .leaderboard-row { gap: 9px; padding: 15px 16px; }
  .leaderboard-row > img { width: 36px; height: 36px; }
  .leaderboard-rank { min-width: 17px; }
  .leaderboard-card > header { padding: 16px; }
  .account-avatar-choice .adventure-art { width: 104px; height: 104px; }
}
@media(max-width:370px) {
  .adventure-profile-heading .adventure-art { width: 112px; height: 112px; }
  .leaderboard-row { gap: 8px; padding-inline: 12px; }
  .leaderboard-player strong { font-size: 12px; }
  .leaderboard-player p { font-size: 9px; }
  .leaderboard-distance { font-size: 12px; }
}
