.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: #f7f7fa;
  opacity: 0;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
  overflow: hidden;
}

.avatar:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 20px rgba(7, 7, 7, 0.1));
}

.avatar.is-visible {
  opacity: 1;
}

.avatar-frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  user-select: none;
}

.avatar-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.avatar-controls button {
  border: 1px solid var(--line);
  background: #f3f3f3;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}

.avatar-controls button:hover {
  background: #e6e6e6;
}

.avatar-controls button.is-active {
  border-color: #d5ddff;
  background: #edf1ff;
}

@media (max-width: 960px) {
  .avatar-controls {
    gap: 8px;
  }

  .avatar-controls button {
    font-size: 13px;
  }
}
