.player-profile{margin:18px 0;padding:16px;border:1px solid #8f815b;border-radius:10px;text-align:left}.player-profile[hidden],.profile-avatar[hidden]{display:none}.profile-identity{display:flex;align-items:center;gap:12px;margin-bottom:12px}.profile-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;border:1px solid #b59c64}.profile-initials{display:flex;align-items:center;justify-content:center;background:#292e38;color:#ead09c;font-weight:bold}.player-profile label{display:block;margin:10px 0 6px;font-size:13px}.player-profile input,.player-profile select{box-sizing:border-box;width:100%;padding:10px;border:1px solid #8f815b;border-radius:6px;background:transparent;color:inherit;font:inherit}.player-profile small{display:block;font-size:11px;line-height:1.5;margin:7px 0}.profile-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.profile-buttons button{flex:1;cursor:pointer}.player-profile #profileStatus{font-size:12px;line-height:1.5}.player-profile #profileStatus:empty{display:none}.player-account-label{display:flex;align-items:center;gap:7px;font-size:12px;margin:5px 0}.player-account-label img,.ranking-avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;vertical-align:middle;margin-right:6px}.ranking-avatar{width:28px;height:28px}

.player-profile select{margin-top:8px;max-width:100%}.player-profile select option{background:#fff;color:#172033}

/* Show original card art centered, without cropping the chosen portrait. */
.profile-identity{flex-direction:column;justify-content:center;text-align:center}.profile-identity .profile-avatar{width:90px;height:120px;border-radius:8px;object-fit:contain;object-position:center}.profile-identity label{margin:4px 0}.profile-card-gallery{display:grid;grid-template-columns:repeat(auto-fill,58px);justify-content:center;align-content:start;gap:9px;max-height:270px;overflow:auto;padding:10px;margin-top:10px;border:1px solid var(--line);border-radius:8px;scrollbar-gutter:stable}.profile-card-choice{display:flex;align-items:center;justify-content:center;width:58px;height:82px;padding:3px;border:2px solid transparent;border-radius:6px;background:transparent;cursor:pointer}.profile-card-choice img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.profile-card-choice[aria-pressed=true]{border-color:var(--accent-text);background:#d8bc7e24;box-shadow:0 0 0 1px var(--accent-text)}.profile-card-choice:hover,.profile-card-choice:focus-visible{border-color:var(--accent-text);outline-offset:2px}.player-account-label img,.ranking-avatar{object-fit:contain;object-position:center;border-radius:4px}.player-profile .profile-buttons button{justify-content:center}

/* Profile portraits use the original centered circular crop. */
.profile-identity .profile-avatar{width:80px;height:80px;border-radius:50%;object-fit:cover;object-position:center;overflow:hidden}.player-account-label img,.ranking-avatar{border-radius:50%;object-fit:cover;object-position:center}

/* Circular portraits focus on the character artwork rather than the card text. */
.portrait-frame,.profile-card-choice{position:relative;display:inline-block;overflow:hidden;border-radius:50%;flex-shrink:0;background:#242630}
.portrait-frame[hidden]{display:none}
.profile-main-portrait{width:80px;height:80px;border:1px solid var(--accent-text)}
.player-portrait{width:30px;height:30px}.portrait-frame.ranking-avatar{width:28px;height:28px;vertical-align:middle;margin-right:6px}
.profile-card-choice{width:58px;height:58px;padding:0;border:2px solid transparent}
.portrait-frame img,.profile-card-choice img,.player-account-label .portrait-frame img{position:absolute;display:block;left:50%;top:50%;width:180%;height:auto;max-width:none;margin:0;border:0;border-radius:0;object-fit:initial;transform:translate(-50%,-35%)}
html[data-theme=light] .portrait-frame,html[data-theme=light] .profile-card-choice{background:#ece4d4}

.profile-stats-summary{padding:14px;margin:16px 0;border:1px solid var(--line);border-radius:8px}.profile-stats-summary p{margin:7px 0}.profile-stats-summary strong{color:var(--accent-text);font-size:13px}.profile-stats-summary a{font-size:12px}
