.profile-modal {
    width: min(500px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 16px;
    border: 0;
    border-radius: 9px;
    color: var(--stake-text-primary);
    background: var(--stake-bg-primary);
    font-size: 14px;
}
.profile-modal::backdrop { background: #07121bc9; }
.profile-modal [hidden], #player-profile-status:empty { display: none !important; }
.profile-modal header, .profile-identity, .profile-edit-row, #player-profile-ignored li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.profile-modal header { align-items: center; margin-bottom: 16px; }
.profile-modal h2, .profile-modal h3 { font-size: 16px; font-weight: 650; margin: 0; }
.profile-modal header i, .profile-modal label, .profile-modal dt, .profile-modal p {
    color: var(--stake-text-secondary);
}
.profile-modal p { margin: 2px 0 0; font-size: 13px; }
.profile-modal button, .profile-modal select, .profile-modal input {
    font: inherit;
    color: inherit;
    background: var(--stake-border);
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
}
.profile-modal button:hover { filter: brightness(1.18); }
.profile-modal button:disabled { opacity: .65; }
.profile-modal :focus-visible { outline: 2px solid var(--stake-accent); outline-offset: 2px; }
.profile-modal button.profile-close { color: var(--stake-text-secondary); font-size: 24px; padding: 0 3px; line-height: 1; background: transparent; }
.profile-identity { overflow-wrap: anywhere; }
#player-profile-ignore { flex-shrink: 0; }
.profile-tier {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    margin: 14px 0 16px;
    border-radius: 7px;
    background: var(--stake-bg-secondary);
}
.profile-tier i { color: var(--stake-accent); }
.profile-modal label { display: block; margin-bottom: 4px; font-size: 13px; }
.profile-modal select { width: min(230px, 100%); }
.profile-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
}
.profile-cards div { padding: 16px; border-radius: 8px; background: var(--stake-bg-secondary); overflow-wrap: anywhere; }
.profile-cards dt { font-size: 13px; font-weight: 400; }
.profile-cards dd { margin: 7px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-currency-icon {
    display: inline-grid;
    place-items: center;
    width: 1.05em;
    height: 1.05em;
    margin-left: 5px;
    border-radius: 50%;
    background: #ffcc12;
    color: #15170c;
    font-size: .8em;
    vertical-align: .09em;
}
.profile-currency-icon[data-currency="SC"] { background: #69dc17; }
.profile-edit-row input { min-width: 0; flex: 1; background: var(--stake-bg-inset); border: 1px solid var(--stake-border); }
#player-profile-open-stats, #player-profile-ignored { margin-top: 16px; }
#player-profile-ignored ul { margin: 8px 0 0; padding: 0; list-style: none; }
#player-profile-ignored li { align-items: center; padding: 5px 0; overflow-wrap: anywhere; }
#player-profile-status { margin-bottom: 10px; }
#player-profile-status[data-error="true"] { color: #ffa5ab; }
