/* Эмблемы сущностей вики и аватары участников сезона. Токены tokens.css. */
.emblem {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--accent);
}
.emblem svg { width: 62%; height: 62%; }
.emblem--xs { width: 24px; height: 24px; border-radius: var(--r-sm); }
.emblem--xs svg { width: 70%; height: 70%; stroke-width: 2.4; }
.emblem--sm { width: 40px; height: 40px; }
.emblem--md { width: 48px; height: 48px; }
.emblem--lg { width: 64px; height: 64px; border-radius: var(--r-lg); }
.emblem--xl { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-lg); }
.emblem--xl svg { width: 46%; height: 46%; stroke-width: 1.5; }
.emblem--hero { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.emblem--hero svg { width: 34%; height: 34%; stroke-width: 1.4; }
.emblem--shield { color: var(--text-muted); }
.emblem--shield svg { width: 78%; height: 78%; stroke-width: 1.4; }
.emblem--hero.emblem--shield svg { width: 50%; height: 50%; }
.emblem--xl.emblem--shield svg { width: 64%; height: 64%; }
.emblem--shield { container-type: inline-size; }
/* Монограмма считается от ширины самой эмблемы (cqw), чтобы помещаться внутри щита:
   щит занимает ~67% ширины своего svg, четыре заглавные буквы ≈ 3.2em. */
.emblem__mono {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-bottom: 6%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13cqw;
    letter-spacing: 0;
    white-space: nowrap;
    color: var(--accent);
}
.emblem--xs .emblem__mono { display: none; }
.emblem--xl .emblem__mono { font-size: 10.5cqw; }
.emblem--hero .emblem__mono { font-size: min(28px, 8cqw); }
.emblem--lg .emblem__mono { font-size: 16.5cqw; }
@container (max-width: 55px) { .emblem__mono { display: none; } }

/* Аватар — лицо с карточки участника: кадрируем без генерации файлов */
.av {
    display: inline-block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--surface-3);
    background-repeat: no-repeat;
    background-size: 230%;
    background-position: 50% 18%;
    border: 2px solid var(--bg-soft);
}
.av--empty { background-image: var(--grad-avatar); background-size: cover; background-position: center; }
