/* Special per-player decorations drawn over an avatar: a frame (wraps around it) or a hat (sits on top of it) */
.nw-tc-avatar.nw-has-cf{position:relative;overflow:visible!important}
.nw-tc-avatar.nw-has-cf>.nw-cf{position:absolute;pointer-events:none;z-index:7;background-position:center;background-size:contain;background-repeat:no-repeat;aspect-ratio:var(--cf-ar,560/552);filter:drop-shadow(0 4px 9px rgba(0,0,0,.5))}
/* frame: avatar shows through its opening */
.nw-tc-avatar.nw-has-cf>.nw-cf:not(.hat){left:50%;top:50%;width:calc(var(--cf-scale,2.15)*100%);transform:translate(-49.9%,-52.7%)}
.nw-r5-card .nw-r5-avatar:has(.nw-cf:not(.hat)){margin-bottom:26px}
.nw-r5-card .nw-tc-avatar.nw-has-cf>.nw-cf:not(.hat){width:calc(2.05*100%)}
.nw-r5-row .nw-tc-avatar.nw-has-cf>.nw-cf:not(.hat){width:calc(1.7*100%)}
/* hat: brim bottom sits slightly over the top of the avatar */
.nw-tc-avatar.nw-has-cf>.nw-cf.hat{left:50%;top:auto;bottom:calc((1 - var(--cf-sink,.2))*100%);width:calc(var(--cf-scale,1.5)*100%);transform:translateX(-50%)}
.nw-r5-card .nw-tc-avatar.nw-has-cf>.nw-cf.hat{width:calc(var(--cf-scale,1.5)*92%)}
.nw-r5-row .nw-tc-avatar.nw-has-cf>.nw-cf.hat{width:calc(var(--cf-scale,1.5)*84%)}
.nw-r5-card .nw-r5-avatar:has(.nw-cf.hat){margin-top:30px}

/* M2 scarf sits in front of the avatar (v1.3) */
.nw-cf[style*="shemagh"]{z-index:30!important}
