/**
 * Dolls page — class & element badges (two sizes).
 * --cell: solo table column (Leaderboard, My Dolls)
 * --compact: stacked (Meta Guide) or inline chips (Overview)
 * Color tokens: .type-* / .element-badge--* from style.css
 */

.doll-type-badge,
.doll-element-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.25rem;
    box-sizing: border-box;
    white-space: nowrap;
    max-width: 100%;
}

.doll-type-badge.type-badge {
    min-width: 0;
    text-align: center;
    border: 1px solid transparent;
}

.doll-element-badge.element-badge {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.doll-badge__icon {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.doll-badge__label {
    line-height: 1.2;
}

/* Solo column — fixed width, larger */
.doll-badge--cell.doll-type-badge,
.doll-badge--cell.doll-element-badge {
    min-width: 6.75rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
}

.doll-badge--cell.doll-type-badge.type-badge {
    min-width: 6.75rem;
}

.doll-badge--cell .doll-badge__icon {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

/* Compact — stacked Meta Guide or Overview header chips */
.doll-badge--compact.doll-type-badge,
.doll-badge--compact.doll-element-badge {
    min-width: 5.75rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    gap: 0.25rem;
}

.doll-badge--compact .doll-badge__icon {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
}

.doll-badge-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 auto;
}

.doll-badge-col {
    text-align: center;
    vertical-align: middle;
    width: 6.5rem;
}

.doll-badge-fallback {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--gfl-text-muted, #6c757d);
    white-space: nowrap;
}

.doll-badge-fallback.doll-badge--cell {
    min-width: 6.75rem;
    text-align: center;
    padding: 0.35rem 0.25rem;
}

.doll-badge-fallback.doll-badge--compact {
    min-width: 5.75rem;
    text-align: center;
    font-size: 0.7rem;
}

/* Overview: compact badges side-by-side (not stacked) */
.doll-overview-badges .doll-badge--compact {
    min-width: 0;
    width: auto;
}
