.player-avatar { display:block; width:44px; height:44px; flex:0 0 auto; object-fit:cover; border-radius:50%; border:2px solid #fffaf0; box-shadow:0 0 0 1px #b2c9b9; background:#fffaf0; }
.avatar-picker { margin:22px 0 0; padding:0; border:0; min-width:0; }
.avatar-picker legend { font-size:11px; font-weight:700; margin-bottom:10px; color:var(--ink-soft); }
.avatar-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.avatar-option { position:relative; min-width:0; padding:8px 3px 6px; display:flex; align-items:center; flex-direction:column; gap:7px; border-radius:12px; border:2px solid transparent; background:#edf2e7; color:var(--ink); transition:border-color .18s,background .18s,transform .18s; }
.avatar-option .player-avatar { width:clamp(32px,5vw,52px); height:auto; aspect-ratio:1; }
.avatar-option>span { font-size:8px; line-height:1.2; white-space:nowrap; }
.avatar-option>i { display:none; position:absolute; top:2px; right:2px; width:15px; height:15px; border-radius:50%; background:var(--coral); color:white; font:700 11px/15px system-ui; }
.avatar-option[aria-pressed="true"] { border-color:var(--coral); background:#fff0e4; }
.avatar-option[aria-pressed="true"]>i { display:block; }
.avatar-option:hover { background:#fff7e9; transform:translateY(-2px); }
.avatar-option:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.avatar-option:disabled { opacity:.65; cursor:wait; }
#battle-view .seat-heading h2,#battle-view .own-identity h2 { display:flex; align-items:center; gap:6px; }
#battle-view h2>.player-avatar { width:26px; height:26px; border-width:1px; }
#battle-view .own-identity h2>.player-avatar { width:34px; height:34px; }
#battle-view h2>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#battle-view .current-seat h2::before { margin-right:0; flex:0 0 auto; }
.result-row strong { display:flex; align-items:center; gap:8px; min-width:0; }
.result-row strong>.player-avatar { width:28px; height:28px; }
.result-row strong>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:720px) {
  #battle-view h2>.player-avatar { width:20px; height:20px; }
  #battle-view .own-identity h2>.player-avatar { width:24px; height:24px; }
  #battle-view .seat-heading h2 { gap:4px; font-size:14px; }
  .avatar-option .player-avatar { width:45px; }
}
@media(max-width:720px) and (max-height:700px) {
  #battle-view .seat-heading h2 { gap:2px; font-size:11px; }
  #battle-view h2>.player-avatar { width:18px; height:18px; }
}
@media(min-width:721px) and (max-height:500px) {
  #battle-view h2>.player-avatar { width:19px; height:19px; }
  #battle-view .seat-heading h2 { font-size:12px; gap:3px; }
  #battle-view .own-identity h2>.player-avatar { width:24px; height:24px; }
}
@media(prefers-reduced-motion:reduce) { .avatar-option { transition:none; } }
.reduce-motion .avatar-option { transition:none; }
