/* Shared identity rows. Fixed art + flexible copy keeps labels readable on
   narrow phone screens while preserving one stable visual column everywhere. */
.vz-identity {
  --vz-identity-art-size: 2.2em;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}

.vz-identity-art {
  position: relative;
  display: inline-flex;
  flex: 0 0 var(--vz-identity-art-size);
  align-items: center;
  justify-content: center;
  width: var(--vz-identity-art-size);
  height: var(--vz-identity-art-size);
  min-width: var(--vz-identity-art-size);
  aspect-ratio: 1;
}

.vz-identity-art .data-icon,
.vz-identity-art img,
.vz-identity-art svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.vz-identity-art .vz-identity-portrait {
  position: relative;
  z-index: 1;
}

.vz-identity-art .vz-identity-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.vz-identity-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vz-identity-compact,
.vz-identity.compact,
.vz-identity.is-compact {
  --vz-identity-art-size: 1.35em;
  gap: .3em;
}

.vz-identity-compact .vz-identity-copy,
.vz-identity.compact .vz-identity-copy,
.vz-identity.is-compact .vz-identity-copy {
  font-size: .92em;
}

.vz-item-identity[data-rarity] .vz-identity-art {
  filter: drop-shadow(0 0 .28em var(--vz-identity-rarity-glow, transparent));
}

.vz-item-identity[data-rarity="rare"] { --vz-identity-rarity-glow: rgba(63, 167, 255, .7); }
.vz-item-identity[data-rarity="epic"] { --vz-identity-rarity-glow: rgba(180, 107, 255, .75); }
.vz-item-identity[data-rarity="legendary"] { --vz-identity-rarity-glow: rgba(255, 178, 63, .8); }
.vz-item-identity[data-rarity="mythic"] { --vz-identity-rarity-glow: rgba(255, 88, 170, .85); }

@media (max-width: 430px) {
  .vz-identity { --vz-identity-art-size: 2em; gap: .4em; }
  .vz-identity-compact,
  .vz-identity.compact,
  .vz-identity.is-compact { --vz-identity-art-size: 1.25em; }
}
