.player-profile-link{border:0;background:transparent;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:#819486;text-underline-offset:4px;line-height:1.5;overflow-wrap:anywhere}
.player-profile-link:hover{color:var(--gold)}
#player-profile{width:min(640px,calc(100% - 24px));max-height:88vh;max-height:88dvh;overflow:auto;padding:24px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 70px #0006}
#player-profile::backdrop{background:#040a19bb}
html:has(#player-profile[open]){overflow:hidden}
.profile-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#player-profile-name{font-size:clamp(23px,5vw,32px);line-height:1.2;margin:0;overflow-wrap:anywhere}
#player-profile-close,#player-profile-share{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:transparent;cursor:pointer;font:inherit;font-size:13px}
.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.profile-stats>div{padding:18px;border:1px solid var(--line);border-radius:10px}
.profile-stats span{display:block;font-size:12px;color:var(--muted)}.profile-stats strong{display:block;font-size:32px;margin-top:6px;font-variant-numeric:tabular-nums}
.profile-note{font-size:13px;line-height:1.7;color:var(--muted);text-transform:none}
#player-profile-body h3{font-size:18px;margin-top:26px}
.profile-record{display:flex;flex-direction:column;gap:7px;margin:10px 0;padding:16px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:inherit}
.profile-record p{margin:0}.profile-record span,.profile-record p{font-size:13px;line-height:1.6;text-transform:none}.profile-record small{color:var(--gold)}
#player-profile-body>a:not(.profile-record){display:block;margin-top:18px;text-decoration:underline}
.profile-actions{margin-top:24px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}#profile-feedback{font-size:12px}
@media(max-width:500px){#player-profile{padding:18px}.profile-header{gap:10px}#player-profile-close{padding:10px}.profile-stats>div{padding:14px}}
