.leaderboard-player { border: 0; background: transparent; padding: 4px 0; min-height: 36px; text-align: left; overflow-wrap: anywhere; max-width: 100%; color: var(--green); text-decoration: underline; text-decoration-color: #8b9b7f80; text-underline-offset: 4px; }
.leaderboard-player:hover { text-decoration-color: currentColor; }
body:has(.player-identity[open]) { overflow: hidden; }
.player-identity { width: min(740px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); border: 2px solid var(--ink); background: linear-gradient(135deg, #fffaf1, #eff9f4); box-shadow: 6px 6px 0 #222b2466; overflow-y: auto; overscroll-behavior: contain; }
.player-identity::backdrop { background: #242d2980; }
.identity-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.identity-toolbar h2 { margin: 0; font-size: 16px; letter-spacing: 1px; }
.identity-status:not(:empty) { margin: 24px 18px; font-size: 13px; color: var(--muted); }
.identity-retry { margin: 0 18px 20px; padding: 8px 16px; border: 1px solid #8b9b7f; background: #e8eedc; }
.identity-content { padding: 16px; }
.identity-cover { min-height: 180px; padding: 24px; border: 1px solid #dec5c6; border-radius: 8px; background: url('../assets/profile-pigniu-id-photo-v1.webp') right 12px top -28px / 292px auto no-repeat, #fee3e4; }
.identity-cover[style*="background-image"] { background-size: cover; background-position: center; }
.identity-head { display: flex; gap: 16px; align-items: center; }
.identity-avatar { position: relative; display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 76px; border: 3px solid #fffaf1; border-radius: 50%; background: #74bda5; color: #fffaf1; font-size: 30px; font-weight: 900; overflow: hidden; }
.identity-avatar img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.identity-info { min-width: 0; overflow-wrap: anywhere; }
.identity-id { color: #496e87; font-size: 11px; font-weight: 700; }
.identity-name { margin: 5px 0; font-size: 26px; }
.identity-bio { margin: 8px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.identity-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.identity-tags span { padding: 4px 9px; border: 1px solid #25231f1a; border-radius: 20px; background: #fffaf1cc; font-size: 11px; }
.identity-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.identity-stats > div { border: 1px solid #25231f1a; border-radius: 8px; padding: 13px; background: #ffffff66; }
.identity-stats span { font-size: 12px; color: var(--muted); }
.identity-stats strong { display: block; margin-top: 8px; font-size: 18px; overflow-wrap: anywhere; }
.identity-medals { margin-top: 12px; padding: 16px; border: 1px solid #25231f1a; border-radius: 8px; background: #ffffff55; }
.identity-medals h3 { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 16px; }
.identity-badge-count { font-size: 12px; color: var(--muted); font-weight: 400; }
.identity-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.identity-badge { display: grid; justify-items: center; align-content: start; gap: 7px; padding: 10px 4px; border: 1px solid #25231f1a; border-radius: 8px; background: #fffaf188; }
.identity-badge b { display: grid; place-items: center; width: 48px; height: 48px; background: #f8e5a8; border-radius: 50%; color: #79634a; font-size: 22px; }
.identity-badge img { width: 100%; height: 100%; object-fit: contain; }
.identity-badge > span { font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.identity-empty { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .identity-content { padding: 10px; }.identity-cover { padding: 18px 12px; }.identity-head { align-items: flex-start; gap: 12px; }.identity-avatar { flex-basis: 54px; width: 54px; height: 54px; font-size: 24px; }.identity-name { font-size: 21px; }.identity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.identity-stats strong { font-size: 16px; } }
@media (max-width: 480px) {
  .identity-cover { background: linear-gradient(90deg, #fee3e4eb, #fee3e4b3), url('../assets/profile-pigniu-id-photo-v1.webp') right top / 250px auto no-repeat, #fee3e4; }
}
