/* supporter-avatar.html 案A。58x78の飾りに対する割合を全サイズで共用する。 */
.deco-avatar {
  --deco-w:30px;
  position:relative; display:inline-block; flex:none; float:none;
  width:var(--deco-w); height:auto; min-width:0; max-width:none;
  aspect-ratio:58/78; vertical-align:middle; line-height:0;
  margin:0; padding:0; border:0; box-sizing:border-box;
}
.deco-avatar--inline { --deco-w:20px; }
.deco-avatar > * {
  position:absolute; float:none; flex:none; margin:0; padding:0;
  box-sizing:border-box; min-width:0; max-width:none; min-height:0; max-height:none;
  border:0; transform:none;
}
.deco-avatar > .deco-avatar__face {
  left:0; top:6.41%; width:100%; height:74.36%; border-radius:50%; overflow:hidden;
  border:max(1px,calc(var(--deco-w)*0.03)) solid rgba(0,0,0,.25);
  display:flex; align-items:center; justify-content:center;
}
.deco-avatar > .deco-avatar__face > span {
  position:static; display:block; float:none; flex:none; margin:0; padding:0; border:0;
  box-sizing:border-box; font-weight:bold; color:#fff;
  font-size:calc(var(--deco-w)*0.5); line-height:1; text-shadow:none;
}
.deco-avatar > .deco-avatar__face--light > span { color:#222; }
.deco-avatar > .deco-avatar__face--named > span { text-shadow:0 1px 2px rgba(0,0,0,.6); }
.deco-avatar > img.deco-avatar__frame {
  left:0; top:0; width:100%; height:100%; max-width:none;
  display:block; object-fit:fill; border-radius:0; pointer-events:none;
  /* 暗い背景(ロビーなど)でも濃い色の絵が沈まないよう、ふちに薄い白を足す。明るい背景では見えない */
  filter:drop-shadow(0 0 1px rgba(255,255,255,.85)) drop-shadow(0 0 1px rgba(255,255,255,.85));
}
